@odigos/ui-kit 0.0.227 → 0.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as n,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{SamplerIcon as l,PiiMaskingIcon as c,ActionIcon as d,RenameAttributeIcon as p,DeleteAttributeIcon as u,AddClusterInfoIcon as h,K8sLogo as m,ImageErrorIcon as g,KafkaLogo as f,RedisLogo as x,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as k,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as A,DotnetLogo as D,PythonLogo as T,NodejsLogo as I,GoLogo as N,JavaLogo as O,AwsXrayLogo as R,VictoriaMetricsLogo as _,UptraceLogo as F,TraceloopLogo as P,TingyunLogo as L,TempoLogo as z,TelemetryHubLogo as M,SumoLogicLogo as B,SplunkLogo as U,SignozLogo as j,SeqLogo as W,AwsS3Logo as H,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as q,OracleLogo as J,OpsVerseLogo as Y,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as re,MiddlewareLogo as oe,LumigoLogo as ne,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as pe,HyperDxLogo as ue,HoneycombLogo as he,GroundcoverLogo as me,GreptimeLogo as ge,GrafanaLogo as fe,GoogleCloudPlatformLogo as xe,ElasticSearchLogo as ye,ElasticApmLogo as be,DynatraceLogo as ve,DatadogLogo as $e,Dash0Logo as we,CoralogixLogo as Se,AwsCloudwatchLogo as ke,ClickhouseLogo as Ce,ChronosphereLogo as Ee,ChecklyLogo as Ae,CauselyLogo as De,BonreeLogo as Te,BetterStackLogo as Ie,AzureMonitorLogo as Ne,AzureBlobLogo as Oe,AxiomLogo as Re,AppDynamicsLogo as _e,AlibabaCloudLogo as Fe,AlaudaLogo as Pe,SamplingIcon as Le,InstrumentationRuleIcon as ze,DestinationIcon as Me,SourceIcon as Be,NamespacesIcon as Ue,PayloadCollectionIcon as je,HeadersCollectionIcon as We,CustomInstrumentationIcon as He,CodeAttributesIcon as Xe,TracesIcon as Ge,MetricsIcon as Ve,LogsIcon as Ke,VmLogo as qe,DotsHorizontalIcon as Je,QuestionCircleIcon as Ye,XSquareIcon as Qe,VSquareIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as nt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as pt,AwsSnsLogo as ut,AwsSqsLogo as ht,AwsDynamoDbLogo as mt,AwsStsLogo as gt,VIcon as ft,CopyIcon as xt,XIcon as yt,MinusIcon as bt,ListIcon as vt,CodeIcon as $t,ExtendArrowIcon as wt,PlusIcon as St,EditIcon as kt,NoDataIcon as Ct,RefreshIcon as Et,EyeClosedIcon as At,EyeOpenIcon as Dt,SearchIcon as Tt,TrashIcon as It,EditedIcon as Nt,SortArrowsIcon as Ot,NotebookIcon as Rt,ChevronUpIcon as _t,ChevronDownIcon as Ft,ArrowIcon as Pt,DotsVerticalIcon as Lt,DotIcon as zt,FilterIcon as Mt}from"../icons.js";import{create as Bt}from"zustand";import{Fragment as Ut,useState as jt,useEffect as Wt,useMemo as Ht,useRef as Xt,useCallback as Gt,useContext as Vt,createContext as Kt,forwardRef as qt,memo as Jt,useLayoutEffect as Yt}from"react";import Qt from"javascript-time-ago";import{p as Zt,c as er,s as tr,l as rr}from"./vendor-C150cdxb.js";import{Handle as or,Position as nr,ReactFlowProvider as ir,ReactFlow as ar,Controls as sr,ControlButton as lr,useReactFlow as cr}from"@xyflow/react";import dr,{createPortal as pr}from"react-dom";import{Highlight as ur,themes as hr}from"prism-react-renderer";import{ErrorBoundary as mr}from"react-error-boundary";import gr from"lottie-react";import{VList as fr}from"virtua";const xr=e=>e.charAt(0).toUpperCase()+e.slice(1),yr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,r(o)]:[e,o]));return Object.entries(e).reduce((e,[o,n])=>{try{const i=JSON.parse(n);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(r(i)):n}catch(i){"object"==typeof n&&null!==n?Array.isArray(n)?e[o]=JSON.stringify(t(n)):e[o]=JSON.stringify(r(n)):e[o]=n}return e},{})};var br;!function(e){e.SIGNALS="SIGNALS"}(br||(br={}));const vr=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,n,i]=e;if(o===br.SIGNALS)switch(n){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=r.find(e=>e.name===o||e.key===o);if(!a)return!1;switch(n){case"===":case"==":return a.value===i;case"!==":case"!=":return a.value!==i;case">":return Number(a.value)>Number(i);case"<":return Number(a.value)<Number(i);case">=":return Number(a.value)>=Number(i);case"<=":return Number(a.value)<=Number(i);default:return!0}},$r=e=>JSON.parse(JSON.stringify(e)),wr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Sr=(e,t,r)=>{const o=t.split(".");let n=e;for(let e=0;e<o.length-1;e++)o[e]in n&&"object"==typeof n[o[e]]||(n[o[e]]={}),n=n[o[e]];n[o[o.length-1]]=r},kr=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},Cr=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Er=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Ar,Dr,Tr,Ir,Nr,Or,Rr,_r,Fr,Pr,Lr,zr,Mr,Br,Ur,jr,Wr,Hr,Xr,Gr,Vr,Kr,qr,Jr,Yr,Qr,Zr,eo,to,ro,oo,no,io,ao,so,lo,co,po,uo,ho,mo,go;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ar||(Ar={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(Dr||(Dr={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(Tr||(Tr={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(Ir||(Ir={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Nr||(Nr={})),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"}(Or||(Or={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Rr||(Rr={})),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"}(_r||(_r={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fr||(Fr={})),function(e){e.Ascending="ascending",e.Descending="descending"}(Pr||(Pr={})),function(e){e.Community="community",e.Onprem="onprem"}(Lr||(Lr={})),function(e){e.K8s="k8s",e.Vm="vm"}(zr||(zr={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Mr||(Mr={})),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"}(Br||(Br={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Ur||(Ur={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(jr||(jr={})),function(e){e.DataStream="DataStream"}(Wr||(Wr={})),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",e.Time="time"}(Hr||(Hr={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Xr||(Xr={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Gr||(Gr={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Vr||(Vr={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Kr||(Kr={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(qr||(qr={})),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"}(Jr||(Jr={})),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"}(Yr||(Yr={})),function(e){e.Labeled="labeled"}(Qr||(Qr={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Zr||(Zr={})),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"}(eo||(eo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(to||(to={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(ro||(ro={})),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"}(no||(no={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(io||(io={})),function(e){e.HeaderKeys="headerKeys"}(ao||(ao={})),function(e){e.Java="java",e.Golang="golang"}(so||(so={}));class fo{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 xo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,o){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(lo||(lo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(co||(co={})),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"}(uo||(uo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ho||(ho={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(mo||(mo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(go||(go={}));const yo={[mo.Logs]:go.Logs,[mo.Metrics]:go.Metrics,[mo.Traces]:go.Traces},bo={[go.Logs]:mo.Logs,[go.Metrics]:mo.Metrics,[go.Traces]:mo.Traces},vo=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({namespace:t})=>e.has(t))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({kind:t})=>e.has(t))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({containers:t})=>t?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.conditions?.length){const e=new Set(t.conditions.map(({id:e})=>e));r=r.filter(({conditions:t})=>t?.some(({type:t,reason:r})=>e.has(`${t}#${r}`)))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum)||e.has(t?.message))}if(t.onlyErrors&&(r=r.filter(e=>e.conditions?.some(e=>e.status===Gr.Error))),t.errors?.length){const e=new Set(t.errors.map(({id:e})=>e));r=r.filter(t=>t.conditions?.some(t=>e.has(t.message)))}return r},$o="https://docs.odigos.io",wo="default",So="this-cluster",ko="This Cluster",Co={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Eo={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)'},Ao={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",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},Do={GET_STARTED:"Get started",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"},To=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===wo&&!e.dataStreamNames.length):[],Io=(e,t="",r={})=>{for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],i=t?`${t}.${o}`:o;null===n||"object"!=typeof n||Array.isArray(n)?Array.isArray(n)?n.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?Io(e,o,r):r[o]=e}):r[i]=n:Io(n,i,r)}return r},No=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]}`},Oo=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`}},Ro=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const o=e[t%16];t++;return("1"===r?o:"0"===r?63&o|128:15&o|64).toString(16)})},_o=e=>{const t=e?.toLowerCase(),r=t?.includes(Ar.Samplers),o=t===Ar.Attributes;if(r)return l;if(o)return c;return{[Dr.K8sAttributes]:m,[Dr.AddClusterInfo]:h,[Dr.DeleteAttributes]:u,[Dr.PiiMasking]:c,[Dr.RenameAttributes]:p,[Dr.URLTemplatization]:d,[Dr.ErrorSampler]:l,[Dr.ProbabilisticSampler]:l,[Dr.LatencySampler]:l,[Dr.ServiceNameSampler]:l,[Dr.SpanAttributeSampler]:l}[e]||g},Fo=e=>{const t=e?.filter(({status:e})=>e===Gr.Error),r=e?.filter(({status:e})=>e===Gr.Warning),o=e?.filter(({status:e})=>e===Kr.Disabled),n=e?.filter(({status:e})=>e===Kr.Loading),i=t.length>0,a=r.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:r,hasWarnings:a,disableds:o,hasDisableds:s,loadings:n,hasLoadings:n.length>0,priorotizedStatus:i?Gr.Error:a?Gr.Warning:s?Gr.Info:void 0}},Po=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Lo=e=>({[Br.Java]:O,[Br.Go]:N,[Br.JavaScript]:I,[Br.Python]:T,[Br.DotNet]:D,[Br.CSharp]:A,[Br.CPlusPlus]:E,[Br.Php]:C,[Br.Ruby]:k,[Br.Rust]:S,[Br.Swift]:w,[Br.Elixir]:$,[Br.MySql]:v,[Br.Nginx]:b,[Br.Postgres]:y,[Br.Redis]:x,[Br.Kafka]:f,[Br.Ignored]:g,[Br.Unknown]:g,[Br.Processing]:g,[Br.NoContainers]:g,[Br.NoRunningPods]:g}[e]||g),zo=e=>e?.map(e=>{return Lo((t=e,t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language??"unknown"));var t})||[],Mo=e=>e?.map(e=>Lo(e))||[],Bo=e=>e.detectedLanguages?.length?Mo(e.detectedLanguages):zo(e.containers),Uo=(e,t)=>{const r={[eo.Alauda]:Pe,[eo.AlibabaCloud]:Fe,[eo.AppDynamics]:_e,[eo.Axiom]:Re,[eo.AzureBlob]:Oe,[eo.AzureMonitor]:Ne,[eo.BetterStack]:Ie,[eo.Bonree]:Te,[eo.Causely]:De,[eo.Checkly]:Ae,[eo.Chronosphere]:Ee,[eo.ClickHouse]:Ce,[eo.CloudWatch]:ke,[eo.Coralogix]:Se,[eo.Dash0]:we,[eo.Datadog]:$e,[eo.Dynamic]:q,[eo.Dynatrace]:ve,[eo.ElasticApm]:be,[eo.ElasticSearch]:ye,[eo.GoogleCloud]:xe,[eo.GoogleCloudOTLP]:xe,[eo.GrafanaCloudLoki]:fe,[eo.GrafanaCloudPrometheus]:fe,[eo.GrafanaCloudTempo]:fe,[eo.Greptime]:ge,[eo.Groundcover]:me,[eo.Honeycomb]:he,[eo.HyperDX]:ue,[eo.Instana]:pe,[eo.Jaeger]:de,[eo.Kafka]:f,[eo.Kloudmate]:ce,[eo.Last9]:le,[eo.Lightstep]:se,[eo.LogzIo]:ae,[eo.Loki]:ie,[eo.Lumigo]:ne,[eo.Middleware]:oe,[eo.NewRelic]:re,[eo.Observe]:te,[eo.Odigos]:ee,[eo.OneUptime]:Z,[eo.OpenObserve]:Q,[eo.Opsverse]:Y,[eo.Oracle]:J,[eo.OTLP]:q,[eo.OTLPHttp]:q,[eo.Prometheus]:K,[eo.Qryn]:V,[eo.QrynOss]:G,[eo.Quickwit]:X,[eo.S3]:H,[eo.Seq]:W,[eo.Signalfx]:U,[eo.Signoz]:j,[eo.Splunk]:U,[eo.SplunkSapm]:U,[eo.SplunkOtlp]:U,[eo.SumoLogic]:B,[eo.TelemetryHub]:M,[eo.Tempo]:z,[eo.Tingyun]:L,[eo.Traceloop]:P,[eo.Uptrace]:F,[eo.VictoriaMetrics]:_,[eo.VictoriaMetricsCloud]:_,[eo.XRay]:R}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},jo=e=>({[jr.Namespace]:Ue,[jr.Source]:Be,[jr.Destination]:Me,[jr.Action]:d,[jr.InstrumentationRule]:ze,[jr.SamplingRule]:Le}[e]),Wo=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,Ho=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Xo=e=>Ho(Wo(e)),Go=(e,t,r)=>{const{extended:o,prioritizeDisplayName:n}=r||{};let i="",a="";switch(t){case jr.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case jr.Source:const r=e;i=r.name,a=r.otelServiceName;break;case jr.Action:const o=e;i=o.type,a=o.name;break;case jr.Destination:const n=e;i=n.destinationType.displayName,a=n.name;break;case jr.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):n&&a||i},Vo=(e,t)=>{if(t===jr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,o]=e.split("=");t[r]=o}),t}return e},Ko=e=>({[no.CodeAttributes]:Xe,[no.CustomInstrumentation]:He,[no.HeadersCollection]:We,[no.PayloadCollection]:je,[no.UnknownType]:g}[e]||g),qo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Br.Unknown,Jo=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Br.Processing:Br.NoRunningPods;const o=r?.filter(e=>qo(e)!==Br.Ignored);if(!o.length)return Br.NoContainers;const n=o.find(e=>qo(e)!==Br.Unknown);return n?qo(n):Br.Unknown},Yo=(e,t,r)=>(t===jr.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Qo=e=>({[mo.Logs]:Ke,[mo.Metrics]:Ve,[mo.Traces]:Ge}[e]),Zo=e=>{if(!e)return ee;return{[zr.K8s]:m,[zr.Vm]:qe}[e]},en=e=>{if(!e)return"Unknown";return{[zr.K8s]:"Kubernetes Cluster",[zr.Vm]:"Virtual Machine"}[e]},tn=(e,t,r)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[r],n=[];return void 0!==o&&(Array.isArray(o)?n.push(...o):n.push(o)),n.push(...tn(e,t,r)),n}):[]},rn=(e,t)=>{if(t===jr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},on=(e,t,r)=>{switch(t){case Gr.Default:return e.v2.colors.purple[r];case Gr.Info:return e.v2.colors.blue[r];case Gr.Error:return e.v2.colors.red[r];case Gr.Warning:return e.v2.colors.yellow[r];case Gr.Success:return e.v2.colors.green[r];case Kr.Loading:case qr.Disabled:case qr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},nn=e=>{switch(e){case co.Updating:case po.Pending:case uo.ContainerCreating:case ho.Waiting:return Gr.Info;case co.Healthy:case po.Succeeded:case po.Running:case uo.Running:case ho.Running:return Gr.Success;case co.Degraded:return Gr.Warning;case co.Failed:case po.Failed:case uo.Error:case uo.CrashLoopBackOff:case uo.CreateContainerError:case uo.CreateContainerConfigError:case uo.ErrImagePull:case uo.ErrImageNeverPull:case uo.ImagePullBackOff:case uo.InvalidImageName:case uo.RegistryUnavailable:case uo.NetworkNotReady:case uo.OOMKilled:case uo.ContainerCannotRun:case ho.Terminated:case uo.DeadlineExceeded:case uo.StartError:return Gr.Error;case co.Down:case uo.Completed:return qr.Disabled;case co.Unknown:case po.Unknown:default:return qr.Unknown}};var an,sn;!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"}(an||(an={})),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"}(sn||(sn={}));const ln=o.p`
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as n,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{SamplerIcon as l,PiiMaskingIcon as c,ActionIcon as d,RenameAttributeIcon as p,DeleteAttributeIcon as u,AddClusterInfoIcon as h,K8sLogo as m,ImageErrorIcon as g,KafkaLogo as f,RedisLogo as x,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as k,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as A,DotnetLogo as D,PythonLogo as T,NodejsLogo as I,GoLogo as N,JavaLogo as R,AwsXrayLogo as O,VictoriaMetricsLogo as _,UptraceLogo as F,TraceloopLogo as P,TingyunLogo as L,TempoLogo as z,TelemetryHubLogo as M,SumoLogicLogo as B,SplunkLogo as U,SignozLogo as j,SeqLogo as W,AwsS3Logo as H,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as q,OracleLogo as J,OpsVerseLogo as Y,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as re,MiddlewareLogo as oe,LumigoLogo as ne,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as pe,HyperDxLogo as ue,HoneycombLogo as he,GroundcoverLogo as me,GreptimeLogo as ge,GrafanaLogo as fe,GoogleCloudPlatformLogo as xe,ElasticSearchLogo as ye,ElasticApmLogo as be,DynatraceLogo as ve,DatadogLogo as $e,Dash0Logo as we,CoralogixLogo as Se,AwsCloudwatchLogo as ke,ClickhouseLogo as Ce,ChronosphereLogo as Ee,ChecklyLogo as Ae,CauselyLogo as De,BonreeLogo as Te,BetterStackLogo as Ie,AzureMonitorLogo as Ne,AzureBlobLogo as Re,AxiomLogo as Oe,AppDynamicsLogo as _e,AlibabaCloudLogo as Fe,AlaudaLogo as Pe,SamplingIcon as Le,InstrumentationRuleIcon as ze,DestinationIcon as Me,SourceIcon as Be,NamespacesIcon as Ue,PayloadCollectionIcon as je,HeadersCollectionIcon as We,CustomInstrumentationIcon as He,CodeAttributesIcon as Xe,TracesIcon as Ge,MetricsIcon as Ve,LogsIcon as Ke,VmLogo as qe,DotsHorizontalIcon as Je,QuestionCircleIcon as Ye,XSquareIcon as Qe,VSquareIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as nt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as pt,AwsSnsLogo as ut,AwsSqsLogo as ht,AwsDynamoDbLogo as mt,AwsStsLogo as gt,VIcon as ft,CopyIcon as xt,XIcon as yt,MinusIcon as bt,ListIcon as vt,CodeIcon as $t,ExtendArrowIcon as wt,PlusIcon as St,EditIcon as kt,NoDataIcon as Ct,RefreshIcon as Et,EyeClosedIcon as At,EyeOpenIcon as Dt,SearchIcon as Tt,TrashIcon as It,EditedIcon as Nt,SortArrowsIcon as Rt,NotebookIcon as Ot,ChevronUpIcon as _t,ChevronDownIcon as Ft,ArrowIcon as Pt,DotsVerticalIcon as Lt,DotIcon as zt,FilterIcon as Mt}from"../icons.js";import{create as Bt}from"zustand";import{forwardRef as Ut,Fragment as jt,useState as Wt,useEffect as Ht,useMemo as Xt,useRef as Gt,useCallback as Vt,useContext as Kt,createContext as qt,memo as Jt,useLayoutEffect as Yt}from"react";import Qt from"javascript-time-ago";import{p as Zt,c as er,s as tr,l as rr}from"./vendor-C150cdxb.js";import{Handle as or,Position as nr,ReactFlowProvider as ir,ReactFlow as ar,Controls as sr,ControlButton as lr,useReactFlow as cr}from"@xyflow/react";import dr,{createPortal as pr}from"react-dom";import{Highlight as ur,themes as hr}from"prism-react-renderer";import{ErrorBoundary as mr}from"react-error-boundary";import gr from"lottie-react";import{VList as fr}from"virtua";const xr=e=>e.charAt(0).toUpperCase()+e.slice(1),yr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,r(o)]:[e,o]));return Object.entries(e).reduce((e,[o,n])=>{try{const i=JSON.parse(n);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(r(i)):n}catch(i){"object"==typeof n&&null!==n?Array.isArray(n)?e[o]=JSON.stringify(t(n)):e[o]=JSON.stringify(r(n)):e[o]=n}return e},{})};var br;!function(e){e.SIGNALS="SIGNALS"}(br||(br={}));const vr=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,n,i]=e;if(o===br.SIGNALS)switch(n){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=r.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(n){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},$r=e=>JSON.parse(JSON.stringify(e)),wr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Sr=(e,t,r)=>{const o=t.split(".");let n=e;for(let e=0;e<o.length-1;e++)o[e]in n&&"object"==typeof n[o[e]]||(n[o[e]]={}),n=n[o[e]];n[o[o.length-1]]=r},kr=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},Cr=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Er=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Ar,Dr,Tr,Ir,Nr,Rr,Or,_r,Fr,Pr,Lr,zr,Mr,Br,Ur,jr,Wr,Hr,Xr,Gr,Vr,Kr,qr,Jr,Yr,Qr,Zr,eo,to,ro,oo,no,io,ao,so,lo,co,po,uo,ho,mo,go;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ar||(Ar={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(Dr||(Dr={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(Tr||(Tr={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(Ir||(Ir={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Nr||(Nr={})),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"}(Rr||(Rr={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Or||(Or={})),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"}(_r||(_r={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fr||(Fr={})),function(e){e.Ascending="ascending",e.Descending="descending"}(Pr||(Pr={})),function(e){e.Community="community",e.Onprem="onprem"}(Lr||(Lr={})),function(e){e.K8s="k8s",e.Vm="vm"}(zr||(zr={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Mr||(Mr={})),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"}(Br||(Br={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Ur||(Ur={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(jr||(jr={})),function(e){e.DataStream="DataStream"}(Wr||(Wr={})),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",e.Time="time"}(Hr||(Hr={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Xr||(Xr={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Gr||(Gr={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Vr||(Vr={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Kr||(Kr={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(qr||(qr={})),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"}(Jr||(Jr={})),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"}(Yr||(Yr={})),function(e){e.Labeled="labeled"}(Qr||(Qr={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Zr||(Zr={})),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"}(eo||(eo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(to||(to={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(ro||(ro={})),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"}(no||(no={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(io||(io={})),function(e){e.HeaderKeys="headerKeys"}(ao||(ao={})),function(e){e.Java="java",e.Golang="golang"}(so||(so={}));class fo{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 xo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,o){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(lo||(lo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(co||(co={})),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"}(uo||(uo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ho||(ho={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(mo||(mo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(go||(go={}));const yo={[mo.Logs]:go.Logs,[mo.Metrics]:go.Metrics,[mo.Traces]:go.Traces},bo={[go.Logs]:mo.Logs,[go.Metrics]:mo.Metrics,[go.Traces]:mo.Traces},vo=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({namespace:t})=>e.has(t))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({kind:t})=>e.has(t))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({containers:t})=>t?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.conditions?.length){const e=new Set(t.conditions.map(({id:e})=>e));r=r.filter(({conditions:t})=>t?.some(({type:t,reason:r})=>e.has(`${t}#${r}`)))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum)||e.has(t?.message))}if(t.onlyErrors&&(r=r.filter(e=>e.conditions?.some(e=>e.status===Gr.Error))),t.errors?.length){const e=new Set(t.errors.map(({id:e})=>e));r=r.filter(t=>t.conditions?.some(t=>e.has(t.message)))}return r},$o="https://docs.odigos.io",wo="default",So="this-cluster",ko="This Cluster",Co={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Eo={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)'},Ao={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",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},Do={GET_STARTED:"Get started",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"},To=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===wo&&!e.dataStreamNames.length):[],Io=(e,t="",r={})=>{for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],i=t?`${t}.${o}`:o;null===n||"object"!=typeof n||Array.isArray(n)?Array.isArray(n)?n.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?Io(e,o,r):r[o]=e}):r[i]=n:Io(n,i,r)}return r},No=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]}`},Ro=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`}},Oo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const o=e[t%16];t++;return("1"===r?o:"0"===r?63&o|128:15&o|64).toString(16)})},_o=e=>{const t=e?.toLowerCase(),r=t?.includes(Ar.Samplers),o=t===Ar.Attributes;if(r)return l;if(o)return c;return{[Dr.K8sAttributes]:m,[Dr.AddClusterInfo]:h,[Dr.DeleteAttributes]:u,[Dr.PiiMasking]:c,[Dr.RenameAttributes]:p,[Dr.URLTemplatization]:d,[Dr.ErrorSampler]:l,[Dr.ProbabilisticSampler]:l,[Dr.LatencySampler]:l,[Dr.ServiceNameSampler]:l,[Dr.SpanAttributeSampler]:l}[e]||g},Fo=e=>{const t=e?.filter(({status:e})=>e===Gr.Error),r=e?.filter(({status:e})=>e===Gr.Warning),o=e?.filter(({status:e})=>e===Kr.Disabled),n=e?.filter(({status:e})=>e===Kr.Loading),i=t.length>0,a=r.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:r,hasWarnings:a,disableds:o,hasDisableds:s,loadings:n,hasLoadings:n.length>0,priorotizedStatus:i?Gr.Error:a?Gr.Warning:s?Gr.Info:void 0}},Po=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Lo=e=>({[Br.Java]:R,[Br.Go]:N,[Br.JavaScript]:I,[Br.Python]:T,[Br.DotNet]:D,[Br.CSharp]:A,[Br.CPlusPlus]:E,[Br.Php]:C,[Br.Ruby]:k,[Br.Rust]:S,[Br.Swift]:w,[Br.Elixir]:$,[Br.MySql]:v,[Br.Nginx]:b,[Br.Postgres]:y,[Br.Redis]:x,[Br.Kafka]:f,[Br.Ignored]:g,[Br.Unknown]:g,[Br.Processing]:g,[Br.NoContainers]:g,[Br.NoRunningPods]:g}[e]||g),zo=e=>e?.map(e=>{return Lo((t=e,t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language??"unknown"));var t})||[],Mo=e=>e?.map(e=>Lo(e))||[],Bo=e=>e.detectedLanguages?.length?Mo(e.detectedLanguages):zo(e.containers),Uo=(e,t)=>{const r={[eo.Alauda]:Pe,[eo.AlibabaCloud]:Fe,[eo.AppDynamics]:_e,[eo.Axiom]:Oe,[eo.AzureBlob]:Re,[eo.AzureMonitor]:Ne,[eo.BetterStack]:Ie,[eo.Bonree]:Te,[eo.Causely]:De,[eo.Checkly]:Ae,[eo.Chronosphere]:Ee,[eo.ClickHouse]:Ce,[eo.CloudWatch]:ke,[eo.Coralogix]:Se,[eo.Dash0]:we,[eo.Datadog]:$e,[eo.Dynamic]:q,[eo.Dynatrace]:ve,[eo.ElasticApm]:be,[eo.ElasticSearch]:ye,[eo.GoogleCloud]:xe,[eo.GoogleCloudOTLP]:xe,[eo.GrafanaCloudLoki]:fe,[eo.GrafanaCloudPrometheus]:fe,[eo.GrafanaCloudTempo]:fe,[eo.Greptime]:ge,[eo.Groundcover]:me,[eo.Honeycomb]:he,[eo.HyperDX]:ue,[eo.Instana]:pe,[eo.Jaeger]:de,[eo.Kafka]:f,[eo.Kloudmate]:ce,[eo.Last9]:le,[eo.Lightstep]:se,[eo.LogzIo]:ae,[eo.Loki]:ie,[eo.Lumigo]:ne,[eo.Middleware]:oe,[eo.NewRelic]:re,[eo.Observe]:te,[eo.Odigos]:ee,[eo.OneUptime]:Z,[eo.OpenObserve]:Q,[eo.Opsverse]:Y,[eo.Oracle]:J,[eo.OTLP]:q,[eo.OTLPHttp]:q,[eo.Prometheus]:K,[eo.Qryn]:V,[eo.QrynOss]:G,[eo.Quickwit]:X,[eo.S3]:H,[eo.Seq]:W,[eo.Signalfx]:U,[eo.Signoz]:j,[eo.Splunk]:U,[eo.SplunkSapm]:U,[eo.SplunkOtlp]:U,[eo.SumoLogic]:B,[eo.TelemetryHub]:M,[eo.Tempo]:z,[eo.Tingyun]:L,[eo.Traceloop]:P,[eo.Uptrace]:F,[eo.VictoriaMetrics]:_,[eo.VictoriaMetricsCloud]:_,[eo.XRay]:O}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},jo=e=>({[jr.Namespace]:Ue,[jr.Source]:Be,[jr.Destination]:Me,[jr.Action]:d,[jr.InstrumentationRule]:ze,[jr.SamplingRule]:Le}[e]),Wo=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,Ho=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Xo=e=>Ho(Wo(e)),Go=(e,t,r)=>{const{extended:o,prioritizeDisplayName:n}=r||{};let i="",a="";switch(t){case jr.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case jr.Source:const r=e;i=r.name,a=r.otelServiceName;break;case jr.Action:const o=e;i=o.type,a=o.name;break;case jr.Destination:const n=e;i=n.destinationType.displayName,a=n.name;break;case jr.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):n&&a||i},Vo=(e,t)=>{if(t===jr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,o]=e.split("=");t[r]=o}),t}return e},Ko=e=>({[no.CodeAttributes]:Xe,[no.CustomInstrumentation]:He,[no.HeadersCollection]:We,[no.PayloadCollection]:je,[no.UnknownType]:g}[e]||g),qo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Br.Unknown,Jo=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Br.Processing:Br.NoRunningPods;const o=r?.filter(e=>qo(e)!==Br.Ignored);if(!o.length)return Br.NoContainers;const n=o.find(e=>qo(e)!==Br.Unknown);return n?qo(n):Br.Unknown},Yo=(e,t,r)=>(t===jr.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Qo=e=>({[mo.Logs]:Ke,[mo.Metrics]:Ve,[mo.Traces]:Ge}[e]),Zo=e=>{if(!e)return ee;return{[zr.K8s]:m,[zr.Vm]:qe}[e]},en=e=>{if(!e)return"Unknown";return{[zr.K8s]:"Kubernetes Cluster",[zr.Vm]:"Virtual Machine"}[e]},tn=(e,t,r)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[r],n=[];return void 0!==o&&(Array.isArray(o)?n.push(...o):n.push(o)),n.push(...tn(e,t,r)),n}):[]},rn=(e,t)=>{if(t===jr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},on=(e,t,r)=>{switch(t){case Gr.Default:return e.v2.colors.purple[r];case Gr.Info:return e.v2.colors.blue[r];case Gr.Error:return e.v2.colors.red[r];case Gr.Warning:return e.v2.colors.yellow[r];case Gr.Success:return e.v2.colors.green[r];case Kr.Loading:case qr.Disabled:case qr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},nn=e=>{switch(e){case co.Updating:case po.Pending:case uo.ContainerCreating:case ho.Waiting:return Gr.Info;case co.Healthy:case po.Succeeded:case po.Running:case uo.Running:case ho.Running:return Gr.Success;case co.Degraded:return Gr.Warning;case co.Failed:case po.Failed:case uo.Error:case uo.CrashLoopBackOff:case uo.CreateContainerError:case uo.CreateContainerConfigError:case uo.ErrImagePull:case uo.ErrImageNeverPull:case uo.ImagePullBackOff:case uo.InvalidImageName:case uo.RegistryUnavailable:case uo.NetworkNotReady:case uo.OOMKilled:case uo.ContainerCannotRun:case ho.Terminated:case uo.DeadlineExceeded:case uo.StartError:return Gr.Error;case co.Down:case uo.Completed:return qr.Disabled;case co.Unknown:case po.Unknown:default:return qr.Unknown}};var an,sn;!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"}(an||(an={})),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"}(sn||(sn={}));const ln=o.p`
2
2
  margin: 0;
3
3
  color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -26,7 +26,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
26
26
  text-decoration: underline;
27
27
  }
28
28
  `}
29
- `,cn=({children:r,variant:o=an.P,color:n,size:i=sn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:p,underline:u,onClick:h,disabled:m,...g})=>{const f=r?.toString().split("\n")||[];return e(ln,{as:o,$color:n,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:p,$underline:u,$withClick:!!h&&!m,onClick:m?void 0:h,...g,children:f.map((r,o)=>t(Ut,{children:[r,o!==f.length-1&&e("br",{})]},`typography-${o}-${r}`))})},dn=o.div`
29
+ `,cn=Ut(({children:r,variant:o=an.P,color:n,size:i=sn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:p,underline:u,onClick:h,disabled:m,...g},f)=>{const x=r?.toString().split("\n")||[];return e(ln,{ref:f,as:o,$color:n,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:p,$underline:u,$withClick:!!h&&!m,onClick:m?void 0:h,...g,children:x.map((r,o)=>t(jt,{children:[r,o!==x.length-1&&e("br",{})]},`typography-${o}-${r}`))})});cn.displayName="Typography";const dn=o.div`
30
30
  border-radius: 100%;
31
31
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
32
32
  position: relative;
@@ -122,12 +122,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
122
122
  padding: ${({$padding:e})=>e||"unset"};
123
123
  align-items: center;
124
124
  justify-content: center;
125
- `,On=o.div`
125
+ `,Rn=o.div`
126
126
  display: flex;
127
127
  flex-direction: column;
128
128
  padding: 12px;
129
129
  overflow-y: scroll;
130
- `,Rn=o.div`
130
+ `,On=o.div`
131
131
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
132
132
  top: 0;
133
133
  left: 0;
@@ -166,7 +166,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
166
166
  background-clip: text;
167
167
  color: transparent;
168
168
  animation: ${zn} 1s reverse linear infinite;
169
- `,Bn=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),o=Math.floor(r/60),n=r%60;return`${String(o).padStart(2,"0")}:${String(n).padStart(2,"0")}`},Un=({icon:r,title:o,titleColor:n,titleSize:a=sn.S,subTitle:s,subTitleColor:l,subTitleSize:c=sn.XXXS,startedAt:d,withGradient:p,gradientColor:u,withSpinner:h,withSpinnerOld:m,scaleSpinnerOld:g=1,percentage:f,withVisual:x,visualIcon:y=Je})=>{const b=i(),[v,$]=jt(()=>d?Bn(d):"");Wt(()=>{if(!d)return;$(Bn(d));const e=setInterval(()=>$(Bn(d)),1e3);return()=>clearInterval(e)},[d]);const w=n||b.v2.colors.white[500],S=l||b.v2.colors.silver[200],k=u||b.v2.colors.black[500];return t(In,{$gap:16,$alignItems:"center",children:[x?e(vn,{scale:1.7,icon:y}):h?e(hn,{percentage:f}):m?e(yn,{scale:g}):null,(o||s||d||r)&&t(In,{$gap:8,$alignItems:"center",children:[t(Tn,{$gap:4,children:[r&&e(r,{}),p?e(Mn,{align:"center",size:a,$titleColor:w,$gradientColor:k,children:o}):e(cn,{align:"center",size:a,color:w,children:o})]}),s?e(cn,{align:"center",size:c,color:S,children:s}):null,v?e(cn,{align:"center",size:c,color:w,children:v}):null]})]})},jn=(e,t)=>{const r={[Gr.Default]:r=>ee({fill:on(t,e,"300"),...r}),[Gr.Info]:r=>rt({fill:on(t,e,"400"),...r}),[Gr.Error]:r=>tt({fill:on(t,e,"500"),...r}),[Gr.Warning]:r=>et({fill:on(t,e,"500"),...r}),[Gr.Success]:r=>Ze({fill:on(t,e,"500"),...r}),[Kr.Loading]:e=>Un({withSpinnerOld:!0,...e}),[qr.Disabled]:r=>Qe({fill:on(t,e,"400"),...r}),[qr.Unknown]:r=>Ye({fill:on(t,e,"300"),...r})};return r[e]},Wn=e=>{switch(e){case oo.Success:return Gr.Success;case oo.Error:case oo.Failure:return Gr.Error;case oo.Notice:return Gr.Warning;case oo.Unsupported:case oo.Unknown:return Gr.Info;case oo.Irrelevant:case oo.Disabled:return Kr.Disabled;case oo.Waiting:return Kr.Loading;case oo.Pending:default:return Gr.Default}},Hn=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Xn={redis:x,mysql:v,postgresql:y,postgres:y,kafka:f,elasticsearch:ye,clickhouse:Ce,oracle:J,aws:ot},Gn={sts:gt,dynamodb:mt,s3:H,sqs:ht,sns:ut,lambda:pt,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:nt,cloudwatch:ke},Vn=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Xn[r.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Xn[o.toLowerCase()];if(e)return e}const n=t["rpc.system"];if(n?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Gn[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xn))if(i.includes(e))return t;return Me},Kn=({namespace:e,name:t,kind:r})=>({namespace:e,name:t,kind:r});function qn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Jn=(e,t)=>{const r=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=qn(t.fields,{}),n=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==n&&r.push(...e.items[n].fields.map(e=>({...e,initialValue:o[e.name]})))}return r},Yn=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Gr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1},Qn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Zn=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ei=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},ti=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ri=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ni=e=>oi.test(e),ii=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",ai=e=>e?.map(({status:e,type:t,reason:r,message:o})=>({status:e?.toLowerCase(),type:ii(t),reason:r?ii(r):"",message:o}))||[],si=(e,t)=>{const r=qn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},li=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>bo[e]):[],ci=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>bo[e]):[],di=e=>e.replace(/[^\d]/g,""),pi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ui=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},hi=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(r);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},mi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const o=e[r];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>mi(e)))}else if("object"==typeof o&&null!==o){const e=mi(o);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(o)||(t[r]=o)}),t},gi=(e,t=2)=>JSON.stringify(e||{},null,t),fi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),xi=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),yi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)},bi=o.div`
169
+ `,Bn=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),o=Math.floor(r/60),n=r%60;return`${String(o).padStart(2,"0")}:${String(n).padStart(2,"0")}`},Un=({icon:r,title:o,titleColor:n,titleSize:a=sn.S,subTitle:s,subTitleColor:l,subTitleSize:c=sn.XXXS,startedAt:d,withGradient:p,gradientColor:u,withSpinner:h,withSpinnerOld:m,scaleSpinnerOld:g=1,percentage:f,withVisual:x,visualIcon:y=Je})=>{const b=i(),[v,$]=Wt(()=>d?Bn(d):"");Ht(()=>{if(!d)return;$(Bn(d));const e=setInterval(()=>$(Bn(d)),1e3);return()=>clearInterval(e)},[d]);const w=n||b.v2.colors.white[500],S=l||b.v2.colors.silver[200],k=u||b.v2.colors.black[500];return t(In,{$gap:16,$alignItems:"center",children:[x?e(vn,{scale:1.7,icon:y}):h?e(hn,{percentage:f}):m?e(yn,{scale:g}):null,(o||s||d||r)&&t(In,{$gap:8,$alignItems:"center",children:[t(Tn,{$gap:4,children:[r&&e(r,{}),p?e(Mn,{align:"center",size:a,$titleColor:w,$gradientColor:k,children:o}):e(cn,{align:"center",size:a,color:w,children:o})]}),s?e(cn,{align:"center",size:c,color:S,children:s}):null,v?e(cn,{align:"center",size:c,color:w,children:v}):null]})]})},jn=(e,t)=>{const r={[Gr.Default]:r=>ee({fill:on(t,e,"300"),...r}),[Gr.Info]:r=>rt({fill:on(t,e,"400"),...r}),[Gr.Error]:r=>tt({fill:on(t,e,"500"),...r}),[Gr.Warning]:r=>et({fill:on(t,e,"500"),...r}),[Gr.Success]:r=>Ze({fill:on(t,e,"500"),...r}),[Kr.Loading]:e=>Un({withSpinnerOld:!0,...e}),[qr.Disabled]:r=>Qe({fill:on(t,e,"400"),...r}),[qr.Unknown]:r=>Ye({fill:on(t,e,"300"),...r})};return r[e]},Wn=e=>{switch(e){case oo.Success:return Gr.Success;case oo.Error:case oo.Failure:return Gr.Error;case oo.Notice:return Gr.Warning;case oo.Unsupported:case oo.Unknown:return Gr.Info;case oo.Irrelevant:case oo.Disabled:return Kr.Disabled;case oo.Waiting:return Kr.Loading;case oo.Pending:default:return Gr.Default}},Hn=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Xn={redis:x,mysql:v,postgresql:y,postgres:y,kafka:f,elasticsearch:ye,clickhouse:Ce,oracle:J,aws:ot},Gn={sts:gt,dynamodb:mt,s3:H,sqs:ht,sns:ut,lambda:pt,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:nt,cloudwatch:ke},Vn=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Xn[r.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Xn[o.toLowerCase()];if(e)return e}const n=t["rpc.system"];if(n?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Gn[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xn))if(i.includes(e))return t;return Me},Kn=({namespace:e,name:t,kind:r})=>({namespace:e,name:t,kind:r});function qn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Jn=(e,t)=>{const r=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=qn(t.fields,{}),n=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==n&&r.push(...e.items[n].fields.map(e=>({...e,initialValue:o[e.name]})))}return r},Yn=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Gr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1},Qn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Zn=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ei=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},ti=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ri=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ni=e=>oi.test(e),ii=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",ai=e=>e?.map(({status:e,type:t,reason:r,message:o})=>({status:e?.toLowerCase(),type:ii(t),reason:r?ii(r):"",message:o}))||[],si=(e,t)=>{const r=qn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},li=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>bo[e]):[],ci=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>bo[e]):[],di=e=>e.replace(/[^\d]/g,""),pi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ui=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},hi=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(r);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},mi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const o=e[r];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>mi(e)))}else if("object"==typeof o&&null!==o){const e=mi(o);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(o)||(t[r]=o)}),t},gi=(e,t=2)=>JSON.stringify(e||{},null,t),fi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),xi=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),yi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)},bi=o.div`
170
170
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
171
171
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
172
172
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -177,7 +177,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
177
177
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
178
178
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
179
179
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
180
- `,vi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,o]=e.split('"');return{original:e,href:r,label:o.replace("</a>","").replace(">","")}})},$i=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},wi=(r,o)=>{const n=vi(r);n?.forEach((e,t)=>{r=r.replace(e.original,`LINK-${t}###`)});const i=$i(r);i?.forEach((e,t)=>{r=r.replace(e.original,`STRONG-${t}###`)});return r.split(" ").map(r=>{if(r.includes("LINK-")){const[i,a]=r.split("###"),s=n?.[parseInt(i.replace("LINK-",""))];return t(Ut,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},r)}if(r.includes("STRONG-")){const[o,n]=r.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Ut,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),n?`${n} `:" "]},r)}return r+" "})},Si=({children:r,color:o,size:n,weight:a,align:s,family:l,opacity:c,decoration:d,transform:p,nowrap:u,...h})=>{const m=i(),g=Ht(()=>(r?["string","number"].includes(typeof r)?r.toString():Array.isArray(r)?r.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[r]);return e(bi,{$color:o,$size:n,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:p,$nowrap:u,...h,children:g.length?g.map((r,o)=>t(Ut,{children:[wi(r,m),o!==g.length-1?e("br",{}):null]},`text-${o}-${r}`)):r})},ki=o.div`
180
+ `,vi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,o]=e.split('"');return{original:e,href:r,label:o.replace("</a>","").replace(">","")}})},$i=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},wi=(r,o)=>{const n=vi(r);n?.forEach((e,t)=>{r=r.replace(e.original,`LINK-${t}###`)});const i=$i(r);i?.forEach((e,t)=>{r=r.replace(e.original,`STRONG-${t}###`)});return r.split(" ").map(r=>{if(r.includes("LINK-")){const[i,a]=r.split("###"),s=n?.[parseInt(i.replace("LINK-",""))];return t(jt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},r)}if(r.includes("STRONG-")){const[o,n]=r.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(jt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),n?`${n} `:" "]},r)}return r+" "})},Si=({children:r,color:o,size:n,weight:a,align:s,family:l,opacity:c,decoration:d,transform:p,nowrap:u,...h})=>{const m=i(),g=Xt(()=>(r?["string","number"].includes(typeof r)?r.toString():Array.isArray(r)?r.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[r]);return e(bi,{$color:o,$size:n,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:p,$nowrap:u,...h,children:g.length?g.map((r,o)=>t(jt,{children:[wi(r,m),o!==g.length-1?e("br",{}):null]},`text-${o}-${r}`)):r})},ki=o.div`
181
181
  padding: 4px 0 0 0;
182
182
  `,Ci=o(Si)`
183
183
  font-size: 12px;
@@ -246,9 +246,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
246
246
  &:hover {
247
247
  background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
248
248
  }
249
- `,Oi=o.div`
250
- width: 100%;
251
249
  `,Ri=o.div`
250
+ width: 100%;
251
+ `,Oi=o.div`
252
252
  display: flex;
253
253
  width: 100%;
254
254
  `,_i=o.div`
@@ -273,7 +273,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
273
273
  margin: 4px 0 0 0;
274
274
  list-style: none;
275
275
  width: 100%;
276
- `,Mi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const o=Mi(r.items,t);o.length&&e.push({...r,items:o})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Bi=({placeholder:r="Type to search...",options:o,selectedOption:n,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=jt(n?.label||a||""),[m,g]=jt(Mi(o,u)),[f,x]=jt(!1);jt(-1),Wt(()=>g(Mi(o,u)),[o]);const y=n?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),x(!e),i?.(e)};return t(Ai,{style:l,children:[t(Di,{$hasError:!!d,children:[y&&e(y,{}),e(Ti,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Mi(o,t),n=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(n)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&x(!1),onFocus:()=>!c&&x(!0),...p})]}),f&&m.length?e(Ii,{children:m.map(t=>e(Ui,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ei,{children:d})]})},Ui=({option:r,renderIcon:o=!0,onClick:n})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Ni,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:n(r),children:[a&&o&&e(a,{}),t(Oi,{children:[t(Fi,{children:[e(Pi,{children:r.label}),e(Li,{children:r.description})]}),i&&e(zi,{children:r.items?.map(r=>t(Ri,{children:[e(_i,{}),e(Ui,{option:r,renderIcon:!1,onClick:n})]},r.type||r.label))})]})]})},ji=Bt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Wi=[{type:Dr.K8sAttributes,icon:_o(Dr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Dr.AddClusterInfo,icon:_o(Dr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.DeleteAttributes,icon:_o(Dr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.RenameAttributes,icon:_o(Dr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.PiiMasking,icon:_o(Dr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Dr.URLTemplatization,icon:_o(Dr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:yi("v1.21.0")}],Hi=[{type:Dr.ErrorSampler,icon:_o(Ar.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Dr.LatencySampler,icon:_o(Ar.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[mo.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:Dr.ProbabilisticSampler,icon:_o(Ar.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Dr.ServiceNameSampler,icon:_o(Ar.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Dr.SpanAttributeSampler,icon:_o(Ar.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[mo.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."}],Xi=[{label:"Attributes",icon:_o(Ar.Attributes),items:Wi},{label:"Samplers",icon:_o(Ar.Samplers),items:Hi}];var Gi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Gi||(Gi={}));const Vi={[Gi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Gi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Gi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Gi.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Gi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Gi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Ki=[{type:no.CodeAttributes,icon:Ko(no.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:[Br.Go,Br.Python]},{type:no.CustomInstrumentation,icon:Ko(no.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for 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:[Br.Go,Br.Java]},{type:no.HeadersCollection,icon:Ko(no.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:[Br.Go,Br.Java,Br.JavaScript]},{type:no.PayloadCollection,icon:Ko(no.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:[Br.Go,Br.JavaScript]}],qi="Cancel",Ji="Save",Yi="Edit rule",Qi="Edit auto rule",Zi="Create rule",ea="Delete rule",ta="Save",ra="Rule name",oa="Rule type",na="Rule Enabled",ia="Rule Disabled",aa="Note",sa="HTTP route",la="Method",ca="Keep Percentage",da="Drop Percentage",pa="Keep traces with duration larger than",ua="Keep traces with errors",ha="Keep at least this percentage of matching traces",ma="Keep at most this percentage of matching traces",ga="Custom percentage",fa="Disabled rule",xa="Sample",ya="Keep all",ba="Drop all",va="Operation type",$a="HTTP route prefix",wa="Templated path",Sa="Templated path prefix",ka="Kafka topic",Ca="Custom duration (ms)",Ea="No preview available",Aa="Server address",Da="Drop at most this percentage of matching traces",Ta="Unnamed rule",Ia="Sampling Preview",Na="Source Scope",Oa="Operation",Ra="Duration",_a="Errors",Fa="Keep Percentage",Pa="Drop Percentage",La="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",za="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Ma="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ba="Retain traces with errors from the selected services and operations.",Ua="Specify the exact percentage of matching traces to keep",ja="Specify the exact percentage of matching traces to drop",Wa="Type rule name",Ha="Add note here...",Xa="Type here",Ga="Search source name",Va="e.g. collector.my.vendor.com",Ka="Optional notes (not used by the system). Add any context or details for this sampling rule.",qa="Rule will apply to all sources in the cluster",Ja="If multiple source scopes are set, they must all match simultaneously.",Ya="All sources",Qa="-",Za="All",es="All operations",ts="HTTP server endpoint",rs="HTTP client endpoint",os="Kafka consumer",ns="Kafka producer",is="Sampling Rules",as='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',ss="Refresh",ls="Create rule",cs="Sampling docs",ds="75vw",ps="Delete rule?",us="Are you sure you want to delete this sampling rule?",hs="Delete",ms="Cancel",gs="Kubernetes Health Probes",fs="Keep All Error Traces",xs="Drop Traces Cluster-Wide",ys="A rule with the same matching conditions already exists.",bs="Create 'Noisy Operation Kubernetes Health Probes' rule",vs="Edit 'Noisy Operation Kubernetes Health Probes' rule",$s="Automatically detect and sample health probe traces across the cluster.",ws="Create 'Highly Relevant Operations' rule",Ss="Edit 'Highly Relevant Operations' rule",ks="Automatically keep all error traces across the entire cluster.",Cs="Create 'Cost Reduction' rule",Es="Edit 'Cost Reduction' rule",As="Automatically drop a percentage of traces across the entire cluster.",Ds={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Ts={noisy:bs,highlyRelevant:ws,costReduction:Cs},Is={noisy:vs,highlyRelevant:Ss,costReduction:Es},Ns={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Os=[{id:mo.Logs,value:"Logs"},{id:mo.Metrics,value:"Metrics"},{id:mo.Traces,value:"Traces"}],Rs={[Br.Go]:"Go",[Br.Java]:"Java",[Br.JavaScript]:"Node.js",[Br.Python]:"Python",[Br.DotNet]:".NET",[Br.CSharp]:"C#",[Br.CPlusPlus]:"C++",[Br.Php]:"PHP",[Br.Ruby]:"Ruby",[Br.Rust]:"Rust",[Br.Swift]:"Swift",[Br.Elixir]:"Elixir",[Br.MySql]:"MySQL",[Br.Nginx]:"Nginx",[Br.Postgres]:"PostgreSQL",[Br.Redis]:"Redis",[Br.Kafka]:"Kafka",[Br.Ignored]:"Ignored",[Br.Unknown]:"Unknown",[Br.Processing]:"Processing",[Br.NoContainers]:"No Containers",[Br.NoRunningPods]:"No Running Pods"},_s=[{id:Br.Go,value:Rs[Br.Go],icon:Lo(Br.Go)},{id:Br.Java,value:Rs[Br.Java],icon:Lo(Br.Java)},{id:Br.JavaScript,value:Rs[Br.JavaScript],icon:Lo(Br.JavaScript)},{id:Br.Python,value:Rs[Br.Python],icon:Lo(Br.Python)},{id:Br.Php,value:Rs[Br.Php],icon:Lo(Br.Php)},{id:Br.Ruby,value:Rs[Br.Ruby],icon:Lo(Br.Ruby)},{id:Br.Rust,value:Rs[Br.Rust],icon:Lo(Br.Rust)},{id:Br.DotNet,value:Rs[Br.DotNet],icon:Lo(Br.DotNet)},{id:Br.CSharp,value:Rs[Br.CSharp],icon:Lo(Br.CSharp)},{id:Br.CPlusPlus,value:Rs[Br.CPlusPlus],icon:Lo(Br.CPlusPlus)},{id:Br.Swift,value:Rs[Br.Swift],icon:Lo(Br.Swift)},{id:Br.Elixir,value:Rs[Br.Elixir],icon:Lo(Br.Elixir)}],Fs={id:ro.OpentelemetryEbpfInstrumentation,value:ro.OpentelemetryEbpfInstrumentation,icon:q},Ps={[Br.Go]:{community:[{id:ro.GolangCommunity,value:ro.GolangCommunity,icon:Lo(Br.Go)},Fs],enterprise:[{id:ro.GolangEnterprise,value:ro.GolangEnterprise,icon:Lo(Br.Go)}]},[Br.JavaScript]:{community:[{id:ro.NodejsCommunity,value:ro.NodejsCommunity,icon:Lo(Br.JavaScript)},Fs],enterprise:[{id:ro.NodejsEnterprise,value:ro.NodejsEnterprise,icon:Lo(Br.JavaScript)}]},[Br.Python]:{community:[{id:ro.PythonCommunity,value:ro.PythonCommunity,icon:Lo(Br.Python)},Fs],enterprise:[{id:ro.PythonEnterprise,value:ro.PythonEnterprise,icon:Lo(Br.Python)}]},[Br.Java]:{community:[{id:ro.JavaCommunity,value:ro.JavaCommunity,icon:Lo(Br.Java)},Fs],enterprise:[{id:ro.JavaEnterprise,value:ro.JavaEnterprise,icon:Lo(Br.Java)},{id:ro.JavaEbpfInstrumentations,value:ro.JavaEbpfInstrumentations,icon:Lo(Br.Java)}]},[Br.DotNet]:{community:[{id:ro.DotNetCommunity,value:ro.DotNetCommunity,icon:Lo(Br.DotNet)},Fs],enterprise:[{id:ro.DotNetEnterprise,value:ro.DotNetEnterprise,icon:Lo(Br.DotNet)}]},[Br.Ruby]:{community:[{id:ro.RubyCommunity,value:ro.RubyCommunity,icon:Lo(Br.Ruby)},Fs],enterprise:[{id:ro.RubyEnterprise,value:ro.RubyEnterprise,icon:Lo(Br.Ruby)}]},[Br.Php]:{community:[{id:ro.PhpCommunity,value:ro.PhpCommunity,icon:Lo(Br.Php)},Fs],enterprise:[]},[Br.CSharp]:{community:[],enterprise:[{id:ro.CPlusPlusEnterprise,value:ro.CPlusPlusEnterprise,icon:Lo(Br.CSharp)}]},[Br.MySql]:{community:[],enterprise:[{id:ro.MySqlEnterprise,value:ro.MySqlEnterprise,icon:Lo(Br.MySql)}]},[Br.CPlusPlus]:{community:[Fs],enterprise:[]},[Br.Rust]:{community:[Fs],enterprise:[]},[Br.Swift]:{community:[Fs],enterprise:[]},[Br.Elixir]:{community:[Fs],enterprise:[]},[Br.Nginx]:{community:[Fs],enterprise:[]},[Br.Postgres]:{community:[Fs],enterprise:[]},[Br.Redis]:{community:[Fs],enterprise:[]},[Br.Kafka]:{community:[Fs],enterprise:[]},[Br.Ignored]:{community:[],enterprise:[]},[Br.Unknown]:{community:[],enterprise:[]},[Br.Processing]:{community:[],enterprise:[]},[Br.NoContainers]:{community:[],enterprise:[]},[Br.NoRunningPods]:{community:[],enterprise:[]}},Ls=6048e5,zs=Bt()(Zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Co.DARK_MODE,storage:"undefined"!=typeof window?er(()=>localStorage):void 0})),Ms={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:wo},Bs=Bt(e=>({...Ms,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Ms)})),Us=Bt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),js=Bt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const o=t===jr.Namespace?"namespacesLoading":t===jr.Source?"sourcesLoading":t===jr.Destination?"destinationsLoading":t===jr.Action?"actionsLoading":t===jr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:r})},setEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:r})},addEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],n=new Map;return t.forEach((e,t)=>{n.set(Xo(e),t)}),r.forEach(e=>{const r=Xo(e),o=n.get(r);void 0!==o?t[o]={...t[o],...e}:(n.set(r,t.length),t.push(e))}),{[o]:t}})},removeEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(r.map(e=>Ho(e))),n=e[o].filter(e=>!t.has(Xo(e)));return{[o]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Ws=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Hs=Bt(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:Ws})),Xs=Bt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Gs=Bt((e,t)=>({notifications:[],addNotification:r=>{const o=new Date,n=`${o.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:n,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Vs;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Vs||(Vs={}));const Ks=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),qs=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Js=Bt((e,t)=>({progress:{},setProgress:(r,o)=>{const n=t(),i=Ks();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...n.progress,[r]:qs(i)}})},addProgress:(r,o,n)=>{const i=t(),a=Ks(r,i.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...i.progress,[r]:qs(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ys=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Qs={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Zs=(e,t)=>e.destinationType.type!==t.destinationType.type,el=Bt(e=>({...Qs,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=>Zs(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Zs(e,t))})),clearStore:()=>e(()=>({...Qs}))})),tl={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"}},rl={v2:tl.v2,darkMode:!0,colors:{...tl.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:tl.font_family},ol={v2:tl.v2,darkMode:!1,colors:{...tl.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:tl.font_family},nl=e=>e?rl:ol;var il=Object.freeze({__proto__:null,baseTheme:tl,darkModeTheme:rl,getTheme:nl,lightModeTheme:ol});tr('@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 al=({children:t})=>{const{darkMode:r}=zs();return e(s,{theme:nl(r),children:t})},sl={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var ll=Object.freeze({__proto__:null,hex:sl});const cl={in:{left:a`
276
+ `,Mi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const o=Mi(r.items,t);o.length&&e.push({...r,items:o})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Bi=({placeholder:r="Type to search...",options:o,selectedOption:n,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Wt(n?.label||a||""),[m,g]=Wt(Mi(o,u)),[f,x]=Wt(!1);Wt(-1),Ht(()=>g(Mi(o,u)),[o]);const y=n?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),x(!e),i?.(e)};return t(Ai,{style:l,children:[t(Di,{$hasError:!!d,children:[y&&e(y,{}),e(Ti,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Mi(o,t),n=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(n)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&x(!1),onFocus:()=>!c&&x(!0),...p})]}),f&&m.length?e(Ii,{children:m.map(t=>e(Ui,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ei,{children:d})]})},Ui=({option:r,renderIcon:o=!0,onClick:n})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Ni,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:n(r),children:[a&&o&&e(a,{}),t(Ri,{children:[t(Fi,{children:[e(Pi,{children:r.label}),e(Li,{children:r.description})]}),i&&e(zi,{children:r.items?.map(r=>t(Oi,{children:[e(_i,{}),e(Ui,{option:r,renderIcon:!1,onClick:n})]},r.type||r.label))})]})]})},ji=Bt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Wi=[{type:Dr.K8sAttributes,icon:_o(Dr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Dr.AddClusterInfo,icon:_o(Dr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.DeleteAttributes,icon:_o(Dr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.RenameAttributes,icon:_o(Dr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.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:Dr.PiiMasking,icon:_o(Dr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Dr.URLTemplatization,icon:_o(Dr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:yi("v1.21.0")}],Hi=[{type:Dr.ErrorSampler,icon:_o(Ar.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Dr.LatencySampler,icon:_o(Ar.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[mo.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:Dr.ProbabilisticSampler,icon:_o(Ar.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Dr.ServiceNameSampler,icon:_o(Ar.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Dr.SpanAttributeSampler,icon:_o(Ar.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[mo.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."}],Xi=[{label:"Attributes",icon:_o(Ar.Attributes),items:Wi},{label:"Samplers",icon:_o(Ar.Samplers),items:Hi}];var Gi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Gi||(Gi={}));const Vi={[Gi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Gi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Gi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Gi.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Gi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Gi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Ki=[{type:no.CodeAttributes,icon:Ko(no.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:[Br.Go,Br.Python]},{type:no.CustomInstrumentation,icon:Ko(no.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for 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:[Br.Go,Br.Java]},{type:no.HeadersCollection,icon:Ko(no.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:[Br.Go,Br.Java,Br.JavaScript]},{type:no.PayloadCollection,icon:Ko(no.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:[Br.Go,Br.JavaScript]}],qi="Cancel",Ji="Save",Yi="Edit rule",Qi="Edit auto rule",Zi="Create rule",ea="Delete rule",ta="Save",ra="Rule name",oa="Rule type",na="Rule Enabled",ia="Rule Disabled",aa="Note",sa="HTTP route",la="Method",ca="Keep Percentage",da="Drop Percentage",pa="Keep traces with duration larger than",ua="Keep traces with errors",ha="Keep at least this percentage of matching traces",ma="Keep at most this percentage of matching traces",ga="Custom percentage",fa="Disabled rule",xa="Sample",ya="Keep all",ba="Drop all",va="Operation type",$a="HTTP route prefix",wa="Templated path",Sa="Templated path prefix",ka="Kafka topic",Ca="Custom duration (ms)",Ea="No preview available",Aa="Server address",Da="Drop at most this percentage of matching traces",Ta="Unnamed rule",Ia="Sampling Preview",Na="Source Scope",Ra="Operation",Oa="Duration",_a="Errors",Fa="Keep Percentage",Pa="Drop Percentage",La="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",za="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Ma="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ba="Retain traces with errors from the selected services and operations.",Ua="Specify the exact percentage of matching traces to keep",ja="Specify the exact percentage of matching traces to drop",Wa="Type rule name",Ha="Add note here...",Xa="Type here",Ga="Search source name",Va="e.g. collector.my.vendor.com",Ka="Optional notes (not used by the system). Add any context or details for this sampling rule.",qa="Rule will apply to all sources in the cluster",Ja="If multiple source scopes are set, they must all match simultaneously.",Ya="All sources",Qa="-",Za="All",es="All operations",ts="HTTP server endpoint",rs="HTTP client endpoint",os="Kafka consumer",ns="Kafka producer",is="Sampling Rules",as='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',ss="Refresh",ls="Create rule",cs="Sampling docs",ds="75vw",ps="Delete rule?",us="Are you sure you want to delete this sampling rule?",hs="Delete",ms="Cancel",gs="Kubernetes Health Probes",fs="Keep All Error Traces",xs="Drop Traces Cluster-Wide",ys="A rule with the same matching conditions already exists.",bs="Create 'Noisy Operation Kubernetes Health Probes' rule",vs="Edit 'Noisy Operation Kubernetes Health Probes' rule",$s="Automatically detect and sample health probe traces across the cluster.",ws="Create 'Highly Relevant Operations' rule",Ss="Edit 'Highly Relevant Operations' rule",ks="Automatically keep all error traces across the entire cluster.",Cs="Create 'Cost Reduction' rule",Es="Edit 'Cost Reduction' rule",As="Automatically drop a percentage of traces across the entire cluster.",Ds={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Ts={noisy:bs,highlyRelevant:ws,costReduction:Cs},Is={noisy:vs,highlyRelevant:Ss,costReduction:Es},Ns={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Rs=[{id:mo.Logs,value:"Logs"},{id:mo.Metrics,value:"Metrics"},{id:mo.Traces,value:"Traces"}],Os={[Br.Go]:"Go",[Br.Java]:"Java",[Br.JavaScript]:"Node.js",[Br.Python]:"Python",[Br.DotNet]:".NET",[Br.CSharp]:"C#",[Br.CPlusPlus]:"C++",[Br.Php]:"PHP",[Br.Ruby]:"Ruby",[Br.Rust]:"Rust",[Br.Swift]:"Swift",[Br.Elixir]:"Elixir",[Br.MySql]:"MySQL",[Br.Nginx]:"Nginx",[Br.Postgres]:"PostgreSQL",[Br.Redis]:"Redis",[Br.Kafka]:"Kafka",[Br.Ignored]:"Ignored",[Br.Unknown]:"Unknown",[Br.Processing]:"Processing",[Br.NoContainers]:"No Containers",[Br.NoRunningPods]:"No Running Pods"},_s=[{id:Br.Go,value:Os[Br.Go],icon:Lo(Br.Go)},{id:Br.Java,value:Os[Br.Java],icon:Lo(Br.Java)},{id:Br.JavaScript,value:Os[Br.JavaScript],icon:Lo(Br.JavaScript)},{id:Br.Python,value:Os[Br.Python],icon:Lo(Br.Python)},{id:Br.Php,value:Os[Br.Php],icon:Lo(Br.Php)},{id:Br.Ruby,value:Os[Br.Ruby],icon:Lo(Br.Ruby)},{id:Br.Rust,value:Os[Br.Rust],icon:Lo(Br.Rust)},{id:Br.DotNet,value:Os[Br.DotNet],icon:Lo(Br.DotNet)},{id:Br.CSharp,value:Os[Br.CSharp],icon:Lo(Br.CSharp)},{id:Br.CPlusPlus,value:Os[Br.CPlusPlus],icon:Lo(Br.CPlusPlus)},{id:Br.Swift,value:Os[Br.Swift],icon:Lo(Br.Swift)},{id:Br.Elixir,value:Os[Br.Elixir],icon:Lo(Br.Elixir)}],Fs={id:ro.OpentelemetryEbpfInstrumentation,value:ro.OpentelemetryEbpfInstrumentation,icon:q},Ps={[Br.Go]:{community:[{id:ro.GolangCommunity,value:ro.GolangCommunity,icon:Lo(Br.Go)},Fs],enterprise:[{id:ro.GolangEnterprise,value:ro.GolangEnterprise,icon:Lo(Br.Go)}]},[Br.JavaScript]:{community:[{id:ro.NodejsCommunity,value:ro.NodejsCommunity,icon:Lo(Br.JavaScript)},Fs],enterprise:[{id:ro.NodejsEnterprise,value:ro.NodejsEnterprise,icon:Lo(Br.JavaScript)}]},[Br.Python]:{community:[{id:ro.PythonCommunity,value:ro.PythonCommunity,icon:Lo(Br.Python)},Fs],enterprise:[{id:ro.PythonEnterprise,value:ro.PythonEnterprise,icon:Lo(Br.Python)}]},[Br.Java]:{community:[{id:ro.JavaCommunity,value:ro.JavaCommunity,icon:Lo(Br.Java)},Fs],enterprise:[{id:ro.JavaEnterprise,value:ro.JavaEnterprise,icon:Lo(Br.Java)},{id:ro.JavaEbpfInstrumentations,value:ro.JavaEbpfInstrumentations,icon:Lo(Br.Java)}]},[Br.DotNet]:{community:[{id:ro.DotNetCommunity,value:ro.DotNetCommunity,icon:Lo(Br.DotNet)},Fs],enterprise:[{id:ro.DotNetEnterprise,value:ro.DotNetEnterprise,icon:Lo(Br.DotNet)}]},[Br.Ruby]:{community:[{id:ro.RubyCommunity,value:ro.RubyCommunity,icon:Lo(Br.Ruby)},Fs],enterprise:[{id:ro.RubyEnterprise,value:ro.RubyEnterprise,icon:Lo(Br.Ruby)}]},[Br.Php]:{community:[{id:ro.PhpCommunity,value:ro.PhpCommunity,icon:Lo(Br.Php)},Fs],enterprise:[]},[Br.CSharp]:{community:[],enterprise:[{id:ro.CPlusPlusEnterprise,value:ro.CPlusPlusEnterprise,icon:Lo(Br.CSharp)}]},[Br.MySql]:{community:[],enterprise:[{id:ro.MySqlEnterprise,value:ro.MySqlEnterprise,icon:Lo(Br.MySql)}]},[Br.CPlusPlus]:{community:[Fs],enterprise:[]},[Br.Rust]:{community:[Fs],enterprise:[]},[Br.Swift]:{community:[Fs],enterprise:[]},[Br.Elixir]:{community:[Fs],enterprise:[]},[Br.Nginx]:{community:[Fs],enterprise:[]},[Br.Postgres]:{community:[Fs],enterprise:[]},[Br.Redis]:{community:[Fs],enterprise:[]},[Br.Kafka]:{community:[Fs],enterprise:[]},[Br.Ignored]:{community:[],enterprise:[]},[Br.Unknown]:{community:[],enterprise:[]},[Br.Processing]:{community:[],enterprise:[]},[Br.NoContainers]:{community:[],enterprise:[]},[Br.NoRunningPods]:{community:[],enterprise:[]}},Ls=6048e5,zs=Bt()(Zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Co.DARK_MODE,storage:"undefined"!=typeof window?er(()=>localStorage):void 0})),Ms={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:wo},Bs=Bt(e=>({...Ms,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Ms)})),Us=Bt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),js=Bt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const o=t===jr.Namespace?"namespacesLoading":t===jr.Source?"sourcesLoading":t===jr.Destination?"destinationsLoading":t===jr.Action?"actionsLoading":t===jr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:r})},setEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:r})},addEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],n=new Map;return t.forEach((e,t)=>{n.set(Xo(e),t)}),r.forEach(e=>{const r=Xo(e),o=n.get(r);void 0!==o?t[o]={...t[o],...e}:(n.set(r,t.length),t.push(e))}),{[o]:t}})},removeEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(r.map(e=>Ho(e))),n=e[o].filter(e=>!t.has(Xo(e)));return{[o]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Ws=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Hs=Bt(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:Ws})),Xs=Bt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Gs=Bt((e,t)=>({notifications:[],addNotification:r=>{const o=new Date,n=`${o.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:n,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Vs;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Vs||(Vs={}));const Ks=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),qs=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Js=Bt((e,t)=>({progress:{},setProgress:(r,o)=>{const n=t(),i=Ks();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...n.progress,[r]:qs(i)}})},addProgress:(r,o,n)=>{const i=t(),a=Ks(r,i.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...i.progress,[r]:qs(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ys=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Qs={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Zs=(e,t)=>e.destinationType.type!==t.destinationType.type,el=Bt(e=>({...Qs,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=>Zs(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Zs(e,t))})),clearStore:()=>e(()=>({...Qs}))})),tl={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"}},rl={v2:tl.v2,darkMode:!0,colors:{...tl.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:tl.font_family},ol={v2:tl.v2,darkMode:!1,colors:{...tl.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:tl.font_family},nl=e=>e?rl:ol;var il=Object.freeze({__proto__:null,baseTheme:tl,darkModeTheme:rl,getTheme:nl,lightModeTheme:ol});tr('@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 al=({children:t})=>{const{darkMode:r}=zs();return e(s,{theme:nl(r),children:t})},sl={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var ll=Object.freeze({__proto__:null,hex:sl});const cl={in:{left:a`
277
277
  from { transform: translateX(-100%); }
278
278
  to { transform: translateX(0); }
279
279
  `,right:a`
@@ -453,7 +453,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
453
453
  }
454
454
  `:""}
455
455
  `}
456
- `,vl=({children:t,variant:r="primary",onClick:o,...n})=>{const i=Xt(null);return e(xl,{$variant:r,children:e(bl,{ref:i,$variant:r,onClick:e=>{o&&o(e),i.current?.blur()},...n,children:t})})},$l=e=>{function t(){return void 0===e?{}:$r(e)}const[r,o]=jt(t()),[n,i]=jt({}),a=Gt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(a(e,o[t])).length:e===o[t])||(r[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const o=a(n,t[e]);Object.keys(o).length>0&&(r[e]=o)}else n!==t[e]&&(r[e]=t[e])}for(const o of Object.keys(t))o in e||(r[o]=t[o]);return r},[]),s=(e,t)=>0===Object.keys(a(e,t)).length,l=Ht(()=>void 0!==e&&!s(e,r),[e,r]);Wt(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(n)&&o(n)},[e,r]);const c=Gt((e,t)=>wr("formData"===e?r:n,t.toString()),[r,n]);return{formData:r,formErrors:n,getFormDiff:a,areFormValuesEqual:s,isFormDirty:l,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&o({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&i({...r})},resetFormData:e=>{o(e||t()),i({})},getNestedValue:c}},wl={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},Sl=()=>{const{addNotification:e}=Gs(),{formData:t,formErrors:r,handleFormChange:o,handleErrorChange:n,resetFormData:i}=$l(wl),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:r,handleFormChange:o,resetFormData:i,validateForm:r=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Qn(t)&&(o[e]=Eo.FIELD_IS_REQUIRED)}}),t.type===Dr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Eo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&r?.withAlert&&e({type:Gr.Warning,title:r.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:n,disabled:i,fields:s})=>{const l={...$r(wl),type:e,signals:t,name:r,notes:n,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Tr.LabelsAttributes:case Tr.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Tr.CollectContainerAttributes:case Tr.CollectReplicaSetAttributes:case Tr.CollectWorkloadId:case Tr.CollectClusterId:case Tr.ClusterAttributes:case Tr.OverwriteExistingValues:case Tr.AttributeNamesToDelete:case Tr.Renames:case Tr.PiiCategories:case Tr.FallbackSamplingRatio:case Tr.SamplingPercentage:case Tr.EndpointsFilters:case Tr.ServicesNameFilters:case Tr.AttributeFilters:case Tr.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},kl=e=>{Wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Cl=()=>{const{setCurrentModal:e}=Xs(),{setDrawerType:t,setDrawerEntityId:r}=Us(),{setActiveNodeType:o,setActiveNodeId:n,activeNodeId:i}=ji();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(o(null),n(null)):(o(c),n(l)),p){case jr.Source:case jr.Destination:case jr.Action:case jr.InstrumentationRule:t(p),r(d);break;case Zr.AddSource:e(jr.Source);break;case Zr.AddDestination:e(jr.Destination);break;case Zr.AddAction:e(jr.Action);break;case Zr.AddRule:e(jr.InstrumentationRule)}}}},El=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Us(),{markAsDismissed:r,markAsSeen:o}=Gs();return{onClickNotification:(n,i)=>{const{id:a,crdType:s,target:l}=n,{dismissToast:c}=i||{};if(s&&l)switch(s){case jr.InstrumentationRule:e(jr.InstrumentationRule),t(Vo(l,jr.InstrumentationRule));break;case jr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jr.Source),t(Vo(l,jr.Source));break;case jr.Action:e(jr.Action),t(Vo(l,jr.Action));break;case jr.Destination:case"Destination":e(jr.Destination),t(Vo(l,jr.Destination))}o(a),c&&r(a)}}},Al=()=>{const e=Xt(null),[t,r]=jt(0),[o,n]=jt(0);return Wt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();r(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Dl;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Dl||(Dl={}));const Tl=o.div`
456
+ `,vl=({children:t,variant:r="primary",onClick:o,...n})=>{const i=Gt(null);return e(xl,{$variant:r,children:e(bl,{ref:i,$variant:r,onClick:e=>{o&&o(e),i.current?.blur()},...n,children:t})})},$l=e=>{function t(){return void 0===e?{}:$r(e)}const[r,o]=Wt(t()),[n,i]=Wt({}),[a,s]=Wt(t()),l=Vt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(r[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const o=l(n,t[e]);Object.keys(o).length>0&&(r[e]=o)}else n!==t[e]&&(r[e]=t[e])}for(const o of Object.keys(t))o in e||(r[o]=t[o]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Xt(()=>!c(a,r),[a,r]);Ht(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(n)&&(o(n),s(n))},[e,r]);const p=Vt((e,t)=>wr("formData"===e?r:n,t.toString()),[r,n]);return{formData:r,formErrors:n,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&o({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&i({...r})},resetFormData:e=>{const r=e||t();o(r),s(r),i({})},getNestedValue:p}},wl={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},Sl=()=>{const{addNotification:e}=Gs(),{formData:t,formErrors:r,handleFormChange:o,handleErrorChange:n,resetFormData:i}=$l(wl),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:r,handleFormChange:o,resetFormData:i,validateForm:r=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Qn(t)&&(o[e]=Eo.FIELD_IS_REQUIRED)}}),t.type===Dr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Eo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&r?.withAlert&&e({type:Gr.Warning,title:r.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:n,disabled:i,fields:s})=>{const l={...$r(wl),type:e,signals:t,name:r,notes:n,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Tr.LabelsAttributes:case Tr.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Tr.CollectContainerAttributes:case Tr.CollectReplicaSetAttributes:case Tr.CollectWorkloadId:case Tr.CollectClusterId:case Tr.ClusterAttributes:case Tr.OverwriteExistingValues:case Tr.AttributeNamesToDelete:case Tr.Renames:case Tr.PiiCategories:case Tr.FallbackSamplingRatio:case Tr.SamplingPercentage:case Tr.EndpointsFilters:case Tr.ServicesNameFilters:case Tr.AttributeFilters:case Tr.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},kl=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Cl=()=>{const{setCurrentModal:e}=Xs(),{setDrawerType:t,setDrawerEntityId:r}=Us(),{setActiveNodeType:o,setActiveNodeId:n,activeNodeId:i}=ji();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(o(null),n(null)):(o(c),n(l)),p){case jr.Source:case jr.Destination:case jr.Action:case jr.InstrumentationRule:t(p),r(d);break;case Zr.AddSource:e(jr.Source);break;case Zr.AddDestination:e(jr.Destination);break;case Zr.AddAction:e(jr.Action);break;case Zr.AddRule:e(jr.InstrumentationRule)}}}},El=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Us(),{markAsDismissed:r,markAsSeen:o}=Gs();return{onClickNotification:(n,i)=>{const{id:a,crdType:s,target:l}=n,{dismissToast:c}=i||{};if(s&&l)switch(s){case jr.InstrumentationRule:e(jr.InstrumentationRule),t(Vo(l,jr.InstrumentationRule));break;case jr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jr.Source),t(Vo(l,jr.Source));break;case jr.Action:e(jr.Action),t(Vo(l,jr.Action));break;case jr.Destination:case"Destination":e(jr.Destination),t(Vo(l,jr.Destination))}o(a),c&&r(a)}}},Al=()=>{const e=Gt(null),[t,r]=Wt(0),[o,n]=Wt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();r(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Dl;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Dl||(Dl={}));const Tl=o.div`
457
457
  width: ${({$size:e})=>1.5*e}px;
458
458
  height: ${({$size:e})=>1.5*e}px;
459
459
  display: flex;
@@ -464,7 +464,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
464
464
  &:hover {
465
465
  background: ${({theme:e})=>e.v2.colors.silver[900]};
466
466
  }
467
- `,Il=({"data-id":t,icon:r,size:o=Dl.S,onClick:n,disabled:i})=>e(Tl,{"data-id":t,$size:o,$disabled:i,onClick:e=>{n&&!i&&(e.stopPropagation(),n(e))},children:e(r,{size:o})}),Nl=({onDone:t}={})=>{const[r,o]=jt(!1),[n,i]=jt(-1),a=Gt(async(e,n)=>{if(!r){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Gt(({value:t,size:o})=>e(Il,{icon:r?ft:xt,size:o,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:n,clickCopy:a}},Ol=e=>{const{addNotification:t}=Gs(),{formData:r,handleFormChange:o,formErrors:n,handleErrorChange:i,resetFormData:a}=$l(e);return{formData:r,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return r.name?Zn(r.name)?o.name=void 0:(n=!1,o.name=Eo.ILLEGAL_K8S_LABEL):(n=!1,o.name=Eo.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const r={...$r(e),name:t};o(void 0,void 0,r)}}},Rl={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},_l=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:o}=Gs(),{formData:n,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=$l(Rl),[c,d]=jt([]),[p,u]=jt([]);Wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e;if(r===Hr.Dropdown){const e=qn(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:n,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:n,value:i,renderCondition:a,...qn(o,{})}})).map(e=>{if(r){const t="string"==typeof r?qn(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Wt(()=>{if(t&&0===li(n.exportedSignals).length){const{logs:e,metrics:r,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:o.supported})}},[t,n.exportedSignals]);return{formData:n,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:o,required:n})=>{n&&!o&&(r=!1,t[e]=Eo.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&o({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:o,fields:n})=>{const i={...$r(Rl),type:e,name:t,disabled:r,exportedSignals:o,fields:Object.entries(qn(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Fl={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lo.HttpRequest]:null,[lo.HttpResponse]:null,[lo.DbQuery]:null,[lo.Messaging]:null},codeAttributes:{[io.Column]:null,[io.FilePath]:null,[io.Function]:null,[io.LineNumber]:null,[io.Namespace]:null,[io.StackTrace]:null},headersCollection:null,customInstrumentations:{[so.Java]:null,[so.Golang]:null}},Pl=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=$l(Fl);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:n,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...$r(Fl),ruleName:e,notes:t,disabled:o};n&&(l.payloadCollection={[lo.HttpRequest]:n[lo.HttpRequest]?{}:null,[lo.HttpResponse]:n[lo.HttpResponse]?{}:null,[lo.DbQuery]:n[lo.DbQuery]?{}:null,[lo.Messaging]:n[lo.Messaging]?{}:null}),i&&(l.codeAttributes={[io.Column]:i[io.Column]||null,[io.FilePath]:i[io.FilePath]||null,[io.Function]:i[io.Function]||null,[io.LineNumber]:i[io.LineNumber]||null,[io.Namespace]:i[io.Namespace]||null,[io.StackTrace]:i[io.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[so.Java]:s[so.Java]||null,[so.Golang]:s[so.Golang]||null}),r(void 0,void 0,l)}}},Ll=({active:e,key:t,withAltKey:r,withCtrlKey:o,withShiftKey:n,withMetaKey:i},a)=>(Wt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,o,n,i,a]),null),zl=(e,t)=>{Wt(()=>{const r=r=>{e.current&&!e.current.contains(r.target)&&t()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])},Ml=({sectionNames:e,threshold:t=.4})=>{const[r,o]=jt(e[0]||""),[n,i]=jt(null),a=Xt({}),s=Xt(!1),l=Xt(!1),c=Gt((e,t)=>{a.current[e]=t},[]),d=Gt(e=>{i(e)},[]),p=Gt(e=>{l.current=!0,o(e)},[]);return Wt(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),Wt(()=>{const r=a.current,i=e.map(e=>r[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,n]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},Bl=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:o="local"}={})=>{const n=Xt(null),[i,a]=jt(!1),[s,l]=jt({top:0,left:0}),[c,d]=jt({edge:"top",align:"left"});zl(n,()=>{i&&(a(!1),r?.())});return{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===o)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=n.current?.clientWidth||t,p=n.current?.clientHeight||e,u=r/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let m=i,g=r;if(m>=s/2&&(m+=-p),"center"===h){g=r-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=r-c);l({top:m,left:g})}}},Ul=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?qn(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),jl={otelServiceName:"",currentStreamName:""},Wl=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=$l(jl);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...$r(jl),otelServiceName:e||t||""};r(void 0,void 0,o)}}},Hl=Kt({platformType:zr.K8s,tier:Lr.Community,version:"v0.0.0"}),Xl=({children:t,platformType:r,tier:o,version:n})=>{const i=Ht(()=>({platformType:r,tier:o,version:n}),[r,o,n]);return e(Hl.Provider,{value:i,children:t})},Gl=(e,t)=>!t||yi(e)>=yi(t),Vl=e=>{const t=Vt(Hl),r=Gl(t.version,e),o=t.platformType===zr.Vm;return{...t,isVersionSupported:r,isVm:o,isEnterprise:t.tier===Lr.Onprem}},Kl=new Set([to.StaticPod]),ql=e=>{const t=e.workloads.filter(({selected:e})=>e).length,r=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===r,isSomeSourced:t>0&&t<r,isFutureApps:e.selected||!1}},Jl=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:o}=ql(e);return t||r||o}return!0},Yl=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),Ql=(e,t,r)=>{const o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,n=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!o||n)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},Zl=(e,t,r)=>({...Ql(e,t),currentStreamName:t}),ec=(e,t,r)=>{const o="boolean"==typeof r,n=e.dataStreamNames?.includes(t),i=(o?r:e.selected)||!1;return{namespace:e.name,selected:!(!n&&!o)&&i,currentStreamName:t}},tc=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Vl(),o=e=>r!==Lr.Onprem&&Kl.has(e),{selectedStreamName:n}=Bs(),{namespaces:i,addEntities:a}=js(),[s,l]=jt(!1),[c,d]=jt({}),[p,u]=jt(!1),[h,m]=jt(""),[g,f]=jt({}),[x,y]=jt({}),[b,v]=jt(""),[$,w]=jt(jr.Source),[S,k]=jt(!1),[C,E]=jt(!1),A=Ht(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,jr.Namespace)).forEach(([r,o])=>{const n=o.filter(t=>{return e(t.name,jr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===jr.Namespace||$===jr.Source&&n.length))&&(t[r]=n)}),t},[x,b,$,S,C]);return Wt(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const o=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of o){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>Ql(e,n)),s[e.name]=t.map(e=>Zl(e,n)),c[e.name]=ec(e,n)}a(jr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=el.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const r=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==r&&(s[e][r]={...s[e][r],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(i),y(s),f(c)})()},[n]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,r])=>{r.forEach(r=>{const o=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);o?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const o=i?.find(e=>e.name===t);(r.selected&&!o?.dataStreamNames?.includes(n)||!r.selected&&o?.dataStreamNames?.includes(n))&&(e[t]=r)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(i.find(t=>t.name===e)){const r="boolean"==typeof t;m(t=>t!==e||r?e:""),r&&(y(r=>({...r,[e]:(r[e]||[]).map(e=>t&&o(e.kind)?e:{...e,selected:t,currentStreamName:n})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&o(t.kind)?t:{...t,selected:e,currentStreamName:n});return r})},selectedSources:x,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(o(e.kind))return;const i=[...x[r]||[]],a=i.findIndex(({name:t,kind:r})=>t===e.name&&r===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});y(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const o=i.find(e=>e.name===t);o&&f(t=>({...t,[r]:ec(o,n,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Qt.addDefaultLocale(rr)}catch(e){}const rc=()=>{const e=Xt(new Qt(rr.locale));return{formatTimeAgo:Gt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},oc=o.div`
467
+ `,Il=({"data-id":t,icon:r,size:o=Dl.S,onClick:n,disabled:i})=>e(Tl,{"data-id":t,$size:o,$disabled:i,onClick:e=>{n&&!i&&(e.stopPropagation(),n(e))},children:e(r,{size:o})}),Nl=({onDone:t}={})=>{const[r,o]=Wt(!1),[n,i]=Wt(-1),a=Vt(async(e,n)=>{if(!r){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Vt(({value:t,size:o})=>e(Il,{icon:r?ft:xt,size:o,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:n,clickCopy:a}},Rl=e=>{const{addNotification:t}=Gs(),{formData:r,handleFormChange:o,formErrors:n,handleErrorChange:i,resetFormData:a}=$l(e);return{formData:r,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return r.name?Zn(r.name)?o.name=void 0:(n=!1,o.name=Eo.ILLEGAL_K8S_LABEL):(n=!1,o.name=Eo.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const r={...$r(e),name:t};o(void 0,void 0,r)}}},Ol={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},_l=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:o}=Gs(),{formData:n,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=$l(Ol),[c,d]=Wt([]),[p,u]=Wt([]);Ht(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e;if(r===Hr.Dropdown){const e=qn(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:n,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:n,value:i,renderCondition:a,...qn(o,{})}})).map(e=>{if(r){const t="string"==typeof r?qn(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Ht(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Ht(()=>{if(t&&0===li(n.exportedSignals).length){const{logs:e,metrics:r,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:o.supported})}},[t,n.exportedSignals]);return{formData:n,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:o,required:n})=>{n&&!o&&(r=!1,t[e]=Eo.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&o({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:o,fields:n})=>{const i={...$r(Ol),type:e,name:t,disabled:r,exportedSignals:o,fields:Object.entries(qn(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Fl={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lo.HttpRequest]:null,[lo.HttpResponse]:null,[lo.DbQuery]:null,[lo.Messaging]:null},codeAttributes:{[io.Column]:null,[io.FilePath]:null,[io.Function]:null,[io.LineNumber]:null,[io.Namespace]:null,[io.StackTrace]:null},headersCollection:null,customInstrumentations:{[so.Java]:null,[so.Golang]:null}},Pl=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=$l(Fl);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:n,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...$r(Fl),ruleName:e,notes:t,disabled:o};n&&(l.payloadCollection={[lo.HttpRequest]:n[lo.HttpRequest]?{}:null,[lo.HttpResponse]:n[lo.HttpResponse]?{}:null,[lo.DbQuery]:n[lo.DbQuery]?{}:null,[lo.Messaging]:n[lo.Messaging]?{}:null}),i&&(l.codeAttributes={[io.Column]:i[io.Column]||null,[io.FilePath]:i[io.FilePath]||null,[io.Function]:i[io.Function]||null,[io.LineNumber]:i[io.LineNumber]||null,[io.Namespace]:i[io.Namespace]||null,[io.StackTrace]:i[io.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[so.Java]:s[so.Java]||null,[so.Golang]:s[so.Golang]||null}),r(void 0,void 0,l)}}},Ll=({active:e,key:t,withAltKey:r,withCtrlKey:o,withShiftKey:n,withMetaKey:i},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,o,n,i,a]),null),zl=(e,t)=>{Ht(()=>{const r=r=>{e.current&&!e.current.contains(r.target)&&t()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])},Ml=({sectionNames:e,threshold:t=.4})=>{const[r,o]=Wt(e[0]||""),[n,i]=Wt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),c=Vt((e,t)=>{a.current[e]=t},[]),d=Vt(e=>{i(e)},[]),p=Vt(e=>{l.current=!0,o(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),Ht(()=>{const r=a.current,i=e.map(e=>r[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,n]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},Bl=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:o="local"}={})=>{const n=Gt(null),[i,a]=Wt(!1),[s,l]=Wt({top:0,left:0}),[c,d]=Wt({edge:"top",align:"left"});zl(n,()=>{i&&(a(!1),r?.())});return{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===o)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=n.current?.clientWidth||t,p=n.current?.clientHeight||e,u=r/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let m=i,g=r;if(m>=s/2&&(m+=-p),"center"===h){g=r-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=r-c);l({top:m,left:g})}}},Ul=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?qn(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),jl={otelServiceName:"",currentStreamName:""},Wl=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=$l(jl);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...$r(jl),otelServiceName:e||t||""};r(void 0,void 0,o)}}},Hl=qt({platformType:zr.K8s,tier:Lr.Community,version:"v0.0.0"}),Xl=({children:t,platformType:r,tier:o,version:n})=>{const i=Xt(()=>({platformType:r,tier:o,version:n}),[r,o,n]);return e(Hl.Provider,{value:i,children:t})},Gl=(e,t)=>!t||yi(e)>=yi(t),Vl=e=>{const t=Kt(Hl),r=Gl(t.version,e),o=t.platformType===zr.Vm;return{...t,isVersionSupported:r,isVm:o,isEnterprise:t.tier===Lr.Onprem}},Kl=new Set([to.StaticPod]),ql=e=>{const t=e.workloads.filter(({selected:e})=>e).length,r=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===r,isSomeSourced:t>0&&t<r,isFutureApps:e.selected||!1}},Jl=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:o}=ql(e);return t||r||o}return!0},Yl=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),Ql=(e,t,r)=>{const o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,n=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!o||n)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},Zl=(e,t,r)=>({...Ql(e,t),currentStreamName:t}),ec=(e,t,r)=>{const o="boolean"==typeof r,n=e.dataStreamNames?.includes(t),i=(o?r:e.selected)||!1;return{namespace:e.name,selected:!(!n&&!o)&&i,currentStreamName:t}},tc=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Vl(),o=e=>r!==Lr.Onprem&&Kl.has(e),{selectedStreamName:n}=Bs(),{namespaces:i,addEntities:a}=js(),[s,l]=Wt(!1),[c,d]=Wt({}),[p,u]=Wt(!1),[h,m]=Wt(""),[g,f]=Wt({}),[x,y]=Wt({}),[b,v]=Wt(""),[$,w]=Wt(jr.Source),[S,k]=Wt(!1),[C,E]=Wt(!1),A=Xt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,jr.Namespace)).forEach(([r,o])=>{const n=o.filter(t=>{return e(t.name,jr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===jr.Namespace||$===jr.Source&&n.length))&&(t[r]=n)}),t},[x,b,$,S,C]);return Ht(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const o=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of o){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>Ql(e,n)),s[e.name]=t.map(e=>Zl(e,n)),c[e.name]=ec(e,n)}a(jr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=el.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const r=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==r&&(s[e][r]={...s[e][r],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(i),y(s),f(c)})()},[n]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,r])=>{r.forEach(r=>{const o=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);o?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const o=i?.find(e=>e.name===t);(r.selected&&!o?.dataStreamNames?.includes(n)||!r.selected&&o?.dataStreamNames?.includes(n))&&(e[t]=r)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(i.find(t=>t.name===e)){const r="boolean"==typeof t;m(t=>t!==e||r?e:""),r&&(y(r=>({...r,[e]:(r[e]||[]).map(e=>t&&o(e.kind)?e:{...e,selected:t,currentStreamName:n})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&o(t.kind)?t:{...t,selected:e,currentStreamName:n});return r})},selectedSources:x,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(o(e.kind))return;const i=[...x[r]||[]],a=i.findIndex(({name:t,kind:r})=>t===e.name&&r===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});y(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const o=i.find(e=>e.name===t);o&&f(t=>({...t,[r]:ec(o,n,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Qt.addDefaultLocale(rr)}catch(e){}const rc=()=>{const e=Gt(new Qt(rr.locale));return{formatTimeAgo:Vt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},oc=o.div`
468
468
  position: fixed;
469
469
  top: 50%;
470
470
  left: 50%;
@@ -515,7 +515,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
515
515
  font-family: ${({theme:e})=>e.font_family.secondary};
516
516
  text-decoration: underline;
517
517
  cursor: pointer;
518
- `,pc=({isOpen:o,noOverlay:n,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(Ll({key:"Escape",active:o&&c},()=>s()),kl(o),o?dr.createPortal(t(r,{children:[e(Rn,{hidden:!o,onClick:s,style:{opacity:n?0:1}}),t(oc,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(nc,{children:[t(ic,{onClick:s,children:[e(yt,{}),e(dc,{children:"Cancel"})]}),e(lc,{children:e(cc,{children:i.title})}),e(ac,{children:a})]}),e(sc,{children:l})]})]}),document.body):null),uc=o.div`
518
+ `,pc=({isOpen:o,noOverlay:n,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(Ll({key:"Escape",active:o&&c},()=>s()),kl(o),o?dr.createPortal(t(r,{children:[e(On,{hidden:!o,onClick:s,style:{opacity:n?0:1}}),t(oc,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(nc,{children:[t(ic,{onClick:s,children:[e(yt,{}),e(dc,{children:"Cancel"})]}),e(lc,{children:e(cc,{children:i.title})}),e(ac,{children:a})]}),e(sc,{children:l})]})]}),document.body):null),uc=o.div`
519
519
  width: ${({$orientation:e,$thickness:t,$length:r})=>"vertical"===e?`${t}px`:r||"100%"};
520
520
  height: ${({$orientation:e,$thickness:t,$length:r})=>"horizontal"===e?`${t}px`:r||"100%"};
521
521
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
@@ -545,14 +545,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
545
545
  `,xc=o.div`
546
546
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
547
547
  border-top: 1px solid ${({theme:e})=>e.colors.border};
548
- `,yc=qt(({isOpen:r,asPortal:o,...n},i)=>{const a=Ht(()=>{const{children:r,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:p,maxWidth:u,width:h,header:m,footer:g,withPointerEvents:f,...x}=n;return t(mc,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:o,$withPointerEvents:f,...x,children:[m&&e(gc,{$padding:p,children:m}),e(fc,{$padding:p,children:r}),g&&e(xc,{$padding:p,children:g})]})},[i,n,o]);return r?o?dr.createPortal(a,document.body):a:null});yc.displayName=yc.name;const bc=o.div`
548
+ `,yc=Ut(({isOpen:r,asPortal:o,...n},i)=>{const a=Xt(()=>{const{children:r,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:p,maxWidth:u,width:h,header:m,footer:g,withPointerEvents:f,...x}=n;return t(mc,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:o,$withPointerEvents:f,...x,children:[m&&e(gc,{$padding:p,children:m}),e(fc,{$padding:p,children:r}),g&&e(xc,{$padding:p,children:g})]})},[i,n,o]);return r?o?dr.createPortal(a,document.body):a:null});yc.displayName=yc.name;const bc=o.div`
549
549
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
550
550
  position: relative;
551
551
  display: flex;
552
552
  align-items: center;
553
553
  gap: 4px;
554
- cursor: help;
555
- ${({$ellipsis:e})=>e&&"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}
554
+
555
+ /* Only signal "this is hoverable" when there's actually a tooltip to show. Important for callers (e.g. truncation-aware wrappers) that always mount the Tooltip with "keepAlive" and toggle "text" based on overflow we don't want every wrapped element to show a help cursor when no tooltip would actually appear. */
556
+ cursor: ${({$hasText:e})=>e?"help":"inherit"};
557
+ ${({$ellipsis:e})=>e&&n`
558
+ overflow: hidden;
559
+ text-overflow: ellipsis;
560
+ white-space: nowrap;
561
+ `}
556
562
  `,vc=o.div`
557
563
  display: flex;
558
564
  flex-direction: column;
@@ -589,7 +595,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
589
595
  padding: 8px;
590
596
  box-sizing: border-box;
591
597
  min-width: 0;
592
- `,Cc=({withIcon:o,titleIcon:n,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:p=!1,ellipsis:u=!1})=>{const h=i(),{popupRef:m,popupOpen:g,setPopupOpen:f,popupPosition:x,arrowPlacement:y,handlePosition:b}=Bl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Ht(()=>!!vi(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:o}=e;v?b(x.left||r,x.top||o):b(r,o),f("mouseleave"!==t)};return s||p?t(bc,{$fullWidth:d,$ellipsis:u,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,o&&e(Ye,{fill:h.v2.colors.white[500]}),e(yc,{ref:m,isOpen:g&&!!s,top:x.top,left:x.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(Sc,{children:["top"===y.edge&&e($c,{$align:y.align,children:e(wc,{$pointsUp:!0})}),e(kc,{children:t(vc,{children:[(!!n||!!a)&&t(Tn,{$gap:4,style:{alignItems:"center"},children:[n&&e(n,{size:16},"icon"),a&&e(cn,{size:sn.XS,children:a},"title")]}),!!s&&e(cn,{size:sn.XXXS,children:s}),!!l&&e(cn,{size:sn.XXXS,color:h.v2.colors.silver[200],children:new Date(l).toLocaleString()})]})}),"bottom"===y.edge&&e($c,{$align:y.align,children:e(wc,{$pointsUp:!1})})]})})]}):e(r,{children:c})},Ec=o.button`
598
+ `,Cc=({withIcon:o,titleIcon:n,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:p=!1,ellipsis:u=!1})=>{const h=i(),{popupRef:m,popupOpen:g,setPopupOpen:f,popupPosition:x,arrowPlacement:y,handlePosition:b}=Bl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Xt(()=>!!vi(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:o}=e;v?b(x.left||r,x.top||o):b(r,o),f("mouseleave"!==t)};return s||p?t(bc,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,o&&e(Ye,{fill:h.v2.colors.white[500]}),e(yc,{ref:m,isOpen:g&&!!s,top:x.top,left:x.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(Sc,{children:["top"===y.edge&&e($c,{$align:y.align,children:e(wc,{$pointsUp:!0})}),e(kc,{children:t(vc,{children:[(!!n||!!a)&&t(Tn,{$gap:4,style:{alignItems:"center"},children:[n&&e(n,{size:16},"icon"),a&&e(cn,{size:sn.XS,children:a},"title")]}),!!s&&e(cn,{size:sn.XXXS,children:s}),!!l&&e(cn,{size:sn.XXXS,color:h.v2.colors.silver[200],children:new Date(l).toLocaleString()})]})}),"bottom"===y.edge&&e($c,{$align:y.align,children:e(wc,{$pointsUp:!1})})]})})]}):e(r,{children:c})},Ec=o.button`
593
599
  position: relative;
594
600
  width: ${({$size:e})=>e}px;
595
601
  height: ${({$size:e})=>e}px;
@@ -646,14 +652,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
646
652
  padding: 0 12px;
647
653
  border-radius: 32px;
648
654
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
649
- `,Oc=o.div`
655
+ `,Rc=o.div`
650
656
  display: flex;
651
657
  align-items: center;
652
658
  margin: 0 auto 0 0;
653
659
  padding: 8px 0;
654
660
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
655
661
  min-height: 12px;
656
- `,Rc=o(Si)`
662
+ `,Oc=o(Si)`
657
663
  font-size: 14px;
658
664
  color: ${({$type:e,theme:t})=>t.text[e]};
659
665
  `,_c=o(Si)`
@@ -670,7 +676,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
670
676
  transform: scale(1.1);
671
677
  transition: transform 0.3s;
672
678
  }
673
- `,Lc=({type:r,icon:o,title:n,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=jt(!1),g=Xt(null),f=Xt(null),x=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Wt(()=>(g.current=setTimeout(()=>x({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const y=o||jn(r,u);return t(Tc,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{g.current&&clearTimeout(g.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;g.current=setTimeout(()=>x({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(Nc,{"data-id":"toast",$type:r,style:p,children:[e(y,{fill:u.text[r]}),t(Oc,{$withAction:!!s,$overrideMaxWidth:d,children:[n&&e(Rc,{$type:r,children:n}),n&&a&&e(hc,{orientation:"vertical",type:r}),a&&e(_c,{$type:r,children:a})]}),(!!s||!!l)&&t(Fc,{children:[s&&e(Pc,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Dc,{"data-id":"toast-close",onClick:()=>x({asSeen:!0}),children:e(yt,{size:12})})]})]}),l&&e(Ic,{ref:f,$duration:c,$type:r})]})},zc=o.div`
679
+ `,Lc=({type:r,icon:o,title:n,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Wt(!1),g=Gt(null),f=Gt(null),x=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Ht(()=>(g.current=setTimeout(()=>x({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const y=o||jn(r,u);return t(Tc,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{g.current&&clearTimeout(g.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;g.current=setTimeout(()=>x({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(Nc,{"data-id":"toast",$type:r,style:p,children:[e(y,{fill:u.text[r]}),t(Rc,{$withAction:!!s,$overrideMaxWidth:d,children:[n&&e(Oc,{$type:r,children:n}),n&&a&&e(hc,{orientation:"vertical",type:r}),a&&e(_c,{$type:r,children:a})]}),(!!s||!!l)&&t(Fc,{children:[s&&e(Pc,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Dc,{"data-id":"toast-close",onClick:()=>x({asSeen:!0}),children:e(yt,{size:12})})]})]}),l&&e(Ic,{ref:f,$duration:c,$type:r})]})},zc=o.div`
674
680
  padding: 24px 32px;
675
681
  `,Mc=o.div`
676
682
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
@@ -711,7 +717,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
711
717
  &:hover {
712
718
  border: 1px solid ${({theme:e})=>e.colors.secondary};
713
719
  }
714
- `,qc=({title:r,titleColor:o,tooltip:n,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=jt(a);Wt(()=>g(a),[a]);return t(In,{children:[t(Vc,{"data-id":"checkbox"+(r?`-${r}`:""),$disabled:c,onClick:e=>{c||(u||e.stopPropagation(),l?l(!!s||!m):g(e=>!!s||!e))},style:d,children:[e(Kc,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(bt,{fill:h.text.white}):m?e(ft,{fill:h.text.white}):null}),r&&e(Cc,{text:n,withIcon:!0,children:e(Si,{size:12,color:o||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ei,{children:p})]})},Jc=o(Tn)`
720
+ `,qc=({title:r,titleColor:o,tooltip:n,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Wt(a);Ht(()=>g(a),[a]);return t(In,{children:[t(Vc,{"data-id":"checkbox"+(r?`-${r}`:""),$disabled:c,onClick:e=>{c||(u||e.stopPropagation(),l?l(!!s||!m):g(e=>!!s||!e))},style:d,children:[e(Kc,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(bt,{fill:h.text.white}):m?e(ft,{fill:h.text.white}):null}),r&&e(Cc,{text:n,withIcon:!0,children:e(Si,{size:12,color:o||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ei,{children:p})]})},Jc=o(Tn)`
715
721
  gap: 0;
716
722
  `,Yc=o.button`
717
723
  padding: 4px 8px;
@@ -748,7 +754,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
748
754
  /* Fallback for older browsers */
749
755
  -ms-word-break: break-all;
750
756
  font-size: 12px;
751
- `,id=({language:t,code:r,theme:o,flatten:n,pretty:a})=>{const{darkMode:s}=i(),l=o?hr[o]:s?hr.palenight:hr.vsLight;let c="";if("json"===t){const e=qn(r,{}),t=mi(e);c=gi(n?Io(t):t)}else c=r;return a&&"json"===t?e(ad,{darkMode:s,str:c}):e(ur,{theme:l||(s?hr.palenight:hr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:o})=>e("pre",{children:o.map((o,n)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(nd,{...r({token:t})},`line-${n}-token-${o}`))},`line-${n}`))})})},ad=({darkMode:r,str:o})=>{const n=i(),a=(r,o)=>{const i=new Array(r).fill(r=>t(td,{...r,children:[e(rd,{}),e(rd,{})]}));return e(Ut,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${n.colors.border}`}:{}},`empty-row-${o}-${r}`))})};return e(ur,{theme:r?hr.palenight:hr.vsLight,language:"json",code:o,children:({getLineProps:r,getTokenProps:o,tokens:i})=>e(Zc,{children:e(ed,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],o=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(o.split("@")[0])&&(r[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:o}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Ut,{children:[a(2,s),t(td,{...c,children:[e(rd,{children:e(od,{children:l[0].content})}),e(rd,{})]})]},`line-${s}`):2===l.length?e(td,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[o,...n]=t.split("@");return{text:o,components:n?.map((t,o)=>{if(!t.includes("="))return null;const[n,i]=t.split("=");switch(n){case"tooltip":return e(Cc,{withIcon:!0,text:i},`${n}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${n}-${i}-${o}`);let t=jn(i,r);return t||(t=jn(Gr.Warning,r)),e(t,{},`${n}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,n),c=0===i;return e(rd,{children:t(Tn,{children:[e(Tn,{children:l}),e(nd,{$noWrap:c,...o({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},sd={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ld(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return sd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function cd(e){const t=ld(e);return`${t.value}${t.unit}`}const dd=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),pd=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=ld(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},x=(e,t)=>({position:"absolute",width:cd(1.5),height:cd(4),borderRadius:cd(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${dd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...x(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...x(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...x(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...x(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...x(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...x(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...x(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...x(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},ud=o.div`
757
+ `,id=({language:t,code:r,theme:o,flatten:n,pretty:a})=>{const{darkMode:s}=i(),l=o?hr[o]:s?hr.palenight:hr.vsLight;let c="";if("json"===t){const e=qn(r,{}),t=mi(e);c=gi(n?Io(t):t)}else c=r;return a&&"json"===t?e(ad,{darkMode:s,str:c}):e(ur,{theme:l||(s?hr.palenight:hr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:o})=>e("pre",{children:o.map((o,n)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(nd,{...r({token:t})},`line-${n}-token-${o}`))},`line-${n}`))})})},ad=({darkMode:r,str:o})=>{const n=i(),a=(r,o)=>{const i=new Array(r).fill(r=>t(td,{...r,children:[e(rd,{}),e(rd,{})]}));return e(jt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${n.colors.border}`}:{}},`empty-row-${o}-${r}`))})};return e(ur,{theme:r?hr.palenight:hr.vsLight,language:"json",code:o,children:({getLineProps:r,getTokenProps:o,tokens:i})=>e(Zc,{children:e(ed,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],o=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(o.split("@")[0])&&(r[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:o}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(jt,{children:[a(2,s),t(td,{...c,children:[e(rd,{children:e(od,{children:l[0].content})}),e(rd,{})]})]},`line-${s}`):2===l.length?e(td,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[o,...n]=t.split("@");return{text:o,components:n?.map((t,o)=>{if(!t.includes("="))return null;const[n,i]=t.split("=");switch(n){case"tooltip":return e(Cc,{withIcon:!0,text:i},`${n}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${n}-${i}-${o}`);let t=jn(i,r);return t||(t=jn(Gr.Warning,r)),e(t,{},`${n}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,n),c=0===i;return e(rd,{children:t(Tn,{children:[e(Tn,{children:l}),e(nd,{$noWrap:c,...o({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},sd={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ld(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return sd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function cd(e){const t=ld(e);return`${t.value}${t.unit}`}const dd=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),pd=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=ld(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},x=(e,t)=>({position:"absolute",width:cd(1.5),height:cd(4),borderRadius:cd(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${dd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...x(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...x(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...x(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...x(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...x(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...x(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...x(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...x(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},ud=o.div`
752
758
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
753
759
  display: flex;
754
760
  align-items: center;
@@ -779,7 +785,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
779
785
  white-space: nowrap;
780
786
  `,bd=o(In)`
781
787
  width: 16px;
782
- `,vd=({conditions:r,headerLabelError:o="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=jt(!1),d=Ht(()=>ai(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Ht(()=>Fo(d),[d]);Wt(()=>{c(u||m||g)},[u,m,g]);const x=(!d.length||f)&&!u&&!m&&!g,y=u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,b=jn(y,s),v=u?o:m||g?n:x?"Loading...":a,$=u?s.text.error:m?s.text.warning:s.text.info,w=`(${u?p.length:m?h.length:d.length}/${d.length})`,S=u?s.text.error_secondary:m?s.text.warning_secondary:s.text.info_secondary,k=Gt(()=>c(e=>!e),[]);return t(md,{onClick:k,$status:y,children:[t(gd,{children:[e(x?pd:b,{}),e(Si,{color:$,size:14,children:v}),e(Si,{color:S,size:12,family:"secondary",children:w}),e(hd,{extend:l,align:"right"})]}),l&&e(fd,{children:d.map(({status:r,type:o,reason:n,message:i},a)=>{const l=r===Kr.Loading?()=>e(pd,{scale:.8}):r===Kr.Disabled?jn(Gr.Info,s):jn(r,s),c=r===Kr.Disabled?s.text.info:r===Gr.Error?s.text.error:r===Gr.Warning?s.text.warning:s.text.info,d=r===Kr.Disabled?s.text.info_secondary:r===Gr.Error?s.text.error_secondary:r===Gr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(xd,{children:[e(bd,{children:e(l,{})}),t(Si,{color:c,size:12,children:[e(yd,{color:d,size:12,weight:700,children:o}),i||n]})]},`condition-${a}`)})})]})},$d=o.div`
788
+ `,vd=({conditions:r,headerLabelError:o="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Wt(!1),d=Xt(()=>ai(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{c(u||m||g)},[u,m,g]);const x=(!d.length||f)&&!u&&!m&&!g,y=u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,b=jn(y,s),v=u?o:m||g?n:x?"Loading...":a,$=u?s.text.error:m?s.text.warning:s.text.info,w=`(${u?p.length:m?h.length:d.length}/${d.length})`,S=u?s.text.error_secondary:m?s.text.warning_secondary:s.text.info_secondary,k=Vt(()=>c(e=>!e),[]);return t(md,{onClick:k,$status:y,children:[t(gd,{children:[e(x?pd:b,{}),e(Si,{color:$,size:14,children:v}),e(Si,{color:S,size:12,family:"secondary",children:w}),e(hd,{extend:l,align:"right"})]}),l&&e(fd,{children:d.map(({status:r,type:o,reason:n,message:i},a)=>{const l=r===Kr.Loading?()=>e(pd,{scale:.8}):r===Kr.Disabled?jn(Gr.Info,s):jn(r,s),c=r===Kr.Disabled?s.text.info:r===Gr.Error?s.text.error:r===Gr.Warning?s.text.warning:s.text.info,d=r===Kr.Disabled?s.text.info_secondary:r===Gr.Error?s.text.error_secondary:r===Gr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(xd,{children:[e(bd,{children:e(l,{})}),t(Si,{color:c,size:12,children:[e(yd,{color:d,size:12,weight:700,children:o}),i||n]})]},`condition-${a}`)})})]})},$d=o.div`
783
789
  display: flex;
784
790
  align-items: center;
785
791
  gap: ${({$size:e})=>e/3}px;
@@ -815,7 +821,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
815
821
  content: '';
816
822
  display: block;
817
823
  }
818
- `,Nd=({maxWidth:r,text:o,textSize:n=16,textColor:i})=>{const[a,s]=jt(!1),l=Xt(null);return Wt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-n)&&e>.95*(r-n))}},[r,n,o]),t(Tn,{$gap:0,children:[o&&e(Cc,{text:a?o:void 0,children:e(Id,{ref:l,$maxWidth:r-n,size:n,color:i,children:o})}),a&&e(Id,{$maxWidth:n,size:n,color:i,children:"..."})]})},Od=({src:t="",alt:r="",size:o=16})=>{const[n,i]=jt(!1);return t&&!n?e("img",{src:t,alt:r,width:o,height:o,onError:()=>i(!0)}):e(g,{size:o})},Rd=o.div`
824
+ `,Nd=({maxWidth:r,text:o,textSize:n=16,textColor:i})=>{const[a,s]=Wt(!1),l=Gt(null);return Ht(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-n)&&e>.95*(r-n))}},[r,n,o]),t(Tn,{$gap:0,children:[o&&e(Cc,{text:a?o:void 0,children:e(Id,{ref:l,$maxWidth:r-n,size:n,color:i,children:o})}),a&&e(Id,{$maxWidth:n,size:n,color:i,children:"..."})]})},Rd=({src:t="",alt:r="",size:o=16})=>{const[n,i]=Wt(!1);return t&&!n?e("img",{src:t,alt:r,width:o,height:o,onError:()=>i(!0)}):e(g,{size:o})},Od=o.div`
819
825
  display: flex;
820
826
  align-items: center;
821
827
  justify-content: center;
@@ -823,7 +829,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
823
829
  height: ${({$size:e})=>e}px;
824
830
  border-radius: 8px;
825
831
  background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+sl["030"]} 100%)`}};
826
- `,_d=({icon:t,src:r="",alt:o="",status:n,size:i=36})=>e(Rd,{$status:n,$size:i,children:r?e(Od,{src:r,alt:o,size:i-12}):e(t||g,{size:i-12})}),Fd=o.div`
832
+ `,_d=({icon:t,src:r="",alt:o="",status:n,size:i=36})=>e(Od,{$status:n,$size:i,children:r?e(Rd,{src:r,alt:o,size:i-12}):e(t||g,{size:i-12})}),Fd=o.div`
827
833
  position: relative;
828
834
  display: flex;
829
835
  flex-wrap: wrap;
@@ -844,7 +850,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
844
850
  border-radius: 100%;
845
851
  border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+sl["030"]};
846
852
  background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+sl["030"]} 100%)`}};
847
- `,Ld=({icons:r=[],iconSrcs:o=[],status:n,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(Ld,{icons:o.map(t=>()=>e(Od,{src:t,size:c})),status:n,size:a,id:s});if(1===r.length)return e(_d,{icon:r[0],status:n,size:a});const d=e=>r.length<=2?.5*c:0===e||1===e?0:1.15*c,p=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(Fd,{$status:n,$size:a,children:r.map((o,i)=>i>2?null:e(Pd,{$status:n,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Si,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},zd=Os.map(({id:e})=>e),Md=({monitors:r=zd,withTooltips:o,withLabels:n,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(Tn,{$gap:n?a:a/2,children:r.map(r=>{const i=xr(r.toLowerCase()),s=Qo(r);return s?e(Cc,{text:o?i:"",children:t(Tn,{$gap:a/3,children:[e(s,{size:n?a+2:a,fill:c}),n&&e(Si,{size:a,color:c,children:i})]})},r):null})})},Bd=o.div`
853
+ `,Ld=({icons:r=[],iconSrcs:o=[],status:n,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(Ld,{icons:o.map(t=>()=>e(Rd,{src:t,size:c})),status:n,size:a,id:s});if(1===r.length)return e(_d,{icon:r[0],status:n,size:a});const d=e=>r.length<=2?.5*c:0===e||1===e?0:1.15*c,p=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(Fd,{$status:n,$size:a,children:r.map((o,i)=>i>2?null:e(Pd,{$status:n,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Si,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},zd=Rs.map(({id:e})=>e),Md=({monitors:r=zd,withTooltips:o,withLabels:n,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(Tn,{$gap:n?a:a/2,children:r.map(r=>{const i=xr(r.toLowerCase()),s=Qo(r);return s?e(Cc,{text:o?i:"",children:t(Tn,{$gap:a/3,children:[e(s,{size:n?a+2:a,fill:c}),n&&e(Si,{size:a,color:c,children:i})]})},r):null})})},Bd=o.div`
848
854
  visibility: hidden;
849
855
  `,Ud=o.div`
850
856
  display: flex;
@@ -875,7 +881,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
875
881
  `,Hd=o(Si)`
876
882
  font-size: 10px;
877
883
  color: ${({theme:e})=>e.text.grey};
878
- `,Xd=({title:r,subTitle:o,hoverText:n,onClick:a,renderActions:s,iconProps:{icon:l,icons:c,iconSrc:d,iconSrcs:p}={},visualProps:{status:u,faded:h,bgColor:m,bgColorHover:g,monitors:f,monitorsWithLabels:x,componentsUnderTitles:y}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=jt(C||!1),[N,O]=jt(0),R=Xt(null),_=Xt(null),F=Xt(null);return Wt(()=>{if(R.current){const e=R.current.clientWidth,t=_.current?.clientWidth||0;O(e-((b?125:85)+t))}},[b]),t(Ud,{ref:R,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(Tn,{$gap:8,children:[t(Tn,{$gap:16,children:[w?e(pd,{}):b?e(qc,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(Ld,{icons:c,iconSrcs:p,status:u,id:`${r}-${o}`}):l||d?e(_d,{icon:l,src:d,status:u}):null]}),t(In,{$gap:4,children:[r&&e(Nd,{maxWidth:N,text:r,textSize:14}),t(Tn,{$gap:4,children:[o&&e(Nd,{maxWidth:N-(F.current?.clientWidth||0),text:o,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(Tn,{$gap:4,ref:F,children:[o&&e(Hd,{children:"•"}),e(Md,{monitors:f,withLabels:x,size:10})]})]}),y&&y.length>0?e(Tn,{$gap:4,children:y?.map((t,r)=>e(Ut,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(jd,{ref:_,children:[!!n&&e(Bd,{children:e(Wd,{size:14,family:"secondary",children:n})}),s&&s(),k&&t(Ut,{children:[e(hc,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(Dc,{onClick:()=>I(e=>!e),children:e(hd,{extend:T})})]})]})]}),T&&E&&t(In,{children:[e(hc,{margin:"16px 0"}),E()]})]})},Gd=o(Tn)`
884
+ `,Xd=({title:r,subTitle:o,hoverText:n,onClick:a,renderActions:s,iconProps:{icon:l,icons:c,iconSrc:d,iconSrcs:p}={},visualProps:{status:u,faded:h,bgColor:m,bgColorHover:g,monitors:f,monitorsWithLabels:x,componentsUnderTitles:y}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Wt(C||!1),[N,R]=Wt(0),O=Gt(null),_=Gt(null),F=Gt(null);return Ht(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t(Ud,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(Tn,{$gap:8,children:[t(Tn,{$gap:16,children:[w?e(pd,{}):b?e(qc,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(Ld,{icons:c,iconSrcs:p,status:u,id:`${r}-${o}`}):l||d?e(_d,{icon:l,src:d,status:u}):null]}),t(In,{$gap:4,children:[r&&e(Nd,{maxWidth:N,text:r,textSize:14}),t(Tn,{$gap:4,children:[o&&e(Nd,{maxWidth:N-(F.current?.clientWidth||0),text:o,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(Tn,{$gap:4,ref:F,children:[o&&e(Hd,{children:"•"}),e(Md,{monitors:f,withLabels:x,size:10})]})]}),y&&y.length>0?e(Tn,{$gap:4,children:y?.map((t,r)=>e(jt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(jd,{ref:_,children:[!!n&&e(Bd,{children:e(Wd,{size:14,family:"secondary",children:n})}),s&&s(),k&&t(jt,{children:[e(hc,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(Dc,{onClick:()=>I(e=>!e),children:e(hd,{extend:T})})]})]})]}),T&&E&&t(In,{children:[e(hc,{margin:"16px 0"}),E()]})]})},Gd=o(Tn)`
879
885
  width: 100%;
880
886
  justify-content: space-between;
881
887
  `,Vd=o(Si)`
@@ -894,7 +900,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
894
900
  text-align: right;
895
901
  `,Yd=({title:r,subTitle:o,tooltip:n,value:i})=>t(Gd,{children:[e(In,{$gap:4,children:t(Cc,{text:n||"",children:[r&&e(Vd,{children:r},"title"),o&&e(Kd,{children:o},"subtitle")]})}),e(qd,{children:i?.status?e(kd,{status:"transitioning"===i.status?Kr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(Jd,{children:i?.text||"-"})})]}),Qd=o(In)`
896
902
  width: 100%;
897
- `,Zd=({containerName:r,actualDevices:o,started:n,ready:i,instrumentationInstances:a})=>{const s=Ht(()=>{const t=[];return n?.name&&t.push(e(kd,{status:ti(n.value)?pi(n.value)?Gr.Success:Gr.Error:Gr.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(kd,{status:ti(i.value)?pi(i.value)?Gr.Success:Gr.Error:Gr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[n?.name,n?.value,i?.name,i?.value]);return e(Xd,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(kd,{status:Gr.Info,title:"Instrumentation Device",subtitle:o.value&&"[]"!==o.value?o.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(Qd,{$gap:24,children:a.map((r,o)=>t(Qd,{$gap:8,children:[e(Yd,{title:`Instrumented Process #${o+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Gr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Yd,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${o}`))})}})},ep=({title:r="Data not found",subTitle:o})=>{const n=i().v2.colors.grey[400];return t(Nn,{children:[t(Tn,{$gap:8,children:[e(Ct,{fill:n}),e(cn,{size:sn.XS,color:n,align:"center",children:r})]}),o&&e(cn,{size:sn.XXS,color:n,align:"center",children:o})]})},tp=o(In)`
903
+ `,Zd=({containerName:r,actualDevices:o,started:n,ready:i,instrumentationInstances:a})=>{const s=Xt(()=>{const t=[];return n?.name&&t.push(e(kd,{status:ti(n.value)?pi(n.value)?Gr.Success:Gr.Error:Gr.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(kd,{status:ti(i.value)?pi(i.value)?Gr.Success:Gr.Error:Gr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[n?.name,n?.value,i?.name,i?.value]);return e(Xd,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(kd,{status:Gr.Info,title:"Instrumentation Device",subtitle:o.value&&"[]"!==o.value?o.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(Qd,{$gap:24,children:a.map((r,o)=>t(Qd,{$gap:8,children:[e(Yd,{title:`Instrumented Process #${o+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Gr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Yd,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${o}`))})}})},ep=({title:r="Data not found",subTitle:o})=>{const n=i().v2.colors.grey[400];return t(Nn,{children:[t(Tn,{$gap:8,children:[e(Ct,{fill:n}),e(cn,{size:sn.XS,color:n,align:"center",children:r})]}),o&&e(cn,{size:sn.XXS,color:n,align:"center",children:o})]})},tp=o(In)`
898
904
  max-width: 300px;
899
905
  padding: 12px;
900
906
  border-radius: 12px;
@@ -942,17 +948,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
942
948
  transform: scale(1.4);
943
949
  }
944
950
  }
945
- `,dp={[Yr.MapItem]:ap,[Yr.NoData]:rp},pp=({trigger:e})=>{const{fitView:t}=cr(),r=Xt(!0);return Wt(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(sp))},[e,t]),null},up=({nodes:r,edges:o,onNodesChange:n,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=Cl(),{setActiveNodeType:h,setActiveNodeId:m}=ji();return t(ar,{zoomOnScroll:s,nodes:r,nodeTypes:dp,edges:o,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:n,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(pp,{trigger:a}),e(cp,{children:e(sr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:sp,children:p&&e(lr,{onClick:p,children:e(Et,{size:20})})})})]})},hp=t=>e(lp,{children:e(ir,{children:e(up,{...t})})}),mp={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},gp=Kt(null),fp=({children:t})=>{const[r,o]=jt(null),[n,i]=jt(void 0),a=$l(mp),s=Gt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),o(e)},[]),l=Gt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:o,signals:n,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!o,signals:n??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Wi.find(e=>e.type===t)??Hi.find(e=>e.type===t)??null))},[]),c=Gt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:$r(mp)};const e=(t=a.formData,$r(t));var t;const o={};a.handleErrorChange(void 0,void 0,o);const n=Object.keys(o).length>0?"Invalid form values":void 0;return i(n),{errorMessage:n,preparedFormData:e}},[a,r]),d=Ht(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(gp.Provider,{value:d,children:t})},xp=()=>{const e=Vt(gp);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},yp={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[]},bp={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:$r(yp)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},vp=Kt(bp),$p=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e,s=r===Hr.Dropdown,l=qn(o,{});return{componentType:r,renderCondition:a,name:t,title:n,value:i,placeholder:l.placeholder||(s?"Select an option":void 0),options:s&&Array.isArray(l.values)?l.values.map(e=>({id:e,value:e})):void 0,...l}}),wp=({children:t})=>{const{selectedStreamName:r}=Bs(),[o,n]=jt(null),[i,a]=jt(),[s,l]=jt(bp.unsavedDestinations),c=Ht(()=>"number"==typeof o?.unsavedIdx?s[o.unsavedIdx]:void 0,[o,s]),d=Gt((e,t)=>{o&&(l(t=>[...t,{...e,option:o.option}]),n(t?e=>e?{...e,listType:Gi.UNSAVED,unsavedIdx:s.length}:null:null))},[o,s.length]),p=Gt((e,t,r)=>{o&&(l(r=>r.map((r,n)=>n===e?{...r,...t,option:o.option}:r)),n(r?e=>e?{...e,listType:Gi.UNSAVED}:null:null))},[o]),u=Gt(e=>{l(t=>t.filter((t,r)=>r!==e)),n(null)},[]),h=$l({...yp,currentStreamName:r});Wt(()=>{if(o)if(c)h.handleFormChange(void 0,void 0,c.formData);else{h.handleFormChange("type",o.option.type),h.handleFormChange("name",o.option.displayName),h.handleFormChange("disabled",!1);const e=ci(o.option.supportedSignals);h.handleFormChange("exportedSignals",{logs:e.includes(mo.Logs),metrics:e.includes(mo.Metrics),traces:e.includes(mo.Traces)}),h.handleFormChange("fields",o.dynamicFields.map(e=>({key:e.name,value:e.value})))}},[o,c]);const m=Gt(e=>{h.resetFormData(),h.handleErrorChange(void 0,void 0,{}),a(void 0),n(e?{...e,dynamicFields:e.option?.fields?$p(e.option.fields):[]}:null)},[]),g=Gt((e,t)=>{let r;for(const o of t){const t=o.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const o=qn(e.fields,{}),i={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:r?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:r?r.fields.map(e=>({...e,initialValue:o[e.name]??e.initialValue})):[]};h.resetFormData(),h.handleErrorChange(void 0,void 0,{}),a(void 0),n({listType:Gi.EXISTS,option:i,dynamicFields:$p(i.fields)}),queueMicrotask(()=>{h.handleFormChange("name",e.name||e.destinationType.displayName),h.handleFormChange("disabled",!!e.disabled),h.handleFormChange("exportedSignals",{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces})})},[]),f=Gt(()=>{const e=$r(h.formData),t={};o?.dynamicFields.forEach(({name:r,required:o})=>{if(o){const o=e.fields.find(e=>e.key===r)?.value;Qn(o)&&(t[r]=Eo.FIELD_IS_REQUIRED)}});li(e.exportedSignals).length||(t.exportedSignals=Eo.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return h.handleErrorChange(void 0,void 0,t),a(r),{errorMessage:r,preparedFormData:e}},[h,o]);return e(vp.Provider,{value:{activeForm:o,onChangeActiveForm:m,loadDestination:g,genericForm:h,formErrorMessage:i,validateFormData:f,unsavedDestinations:s,thisUnsavedDestination:c,setUnsavedDestinations:l,addUnsavedDestination:d,updateUnsavedDestination:p,deleteUnsavedDestination:u},children:t})},Sp=()=>Vt(vp),kp={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},Cp=Kt(null),Ep=({children:t})=>{const[r,o]=jt(null),[n,i]=jt(void 0),a=$l(kp),s=Gt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),o(e)},[]),l=Gt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:o,instrumentationLibraries:n,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:o??null,instrumentationLibraries:n??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Ki.find(e=>e.type===t)??null))},[]),c=Gt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:$r(kp)};const e=(e=>{const t=$r(e);return t.headersCollection?.[ao.HeaderKeys]?.length&&(t.headersCollection[ao.HeaderKeys]=t.headersCollection[ao.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[so.Golang]?.length&&(t.customInstrumentations[so.Golang]=t.customInstrumentations[so.Golang].map(e=>new xo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>e.Verify())),t.customInstrumentations?.[so.Java]?.length&&(t.customInstrumentations[so.Java]=t.customInstrumentations[so.Java].map(e=>new fo(e.className,e.methodName)).filter(e=>e.Verify())),t})(a.formData),t=((e,t)=>{const r={};switch(e){case no.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case no.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case no.HeadersCollection:t.headersCollection?.[ao.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case no.CustomInstrumentation:t.customInstrumentations?.[so.Golang]?.length||t.customInstrumentations?.[so.Java]?.length||(r.customInstrumentations="Custom instrumentation are required")}return r})(r.type,e);a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Ht(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(Cp.Provider,{value:d,children:t})},Ap=()=>{const e=Vt(Cp);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function Dp(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:[],operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function Tp(e){if(!e.sourceScopes.length)return null;const t=[];for(const r of e.sourceScopes)if("source"===r.scopeType&&r.workloadName){const e={workloadName:r.workloadName};r.workloadKind&&(e.workloadKind=r.workloadKind),r.workloadNamespace&&(e.workloadNamespace=r.workloadNamespace),t.push(e)}else"namespace"===r.scopeType&&r.workloadNamespace?t.push({workloadNamespace:r.workloadNamespace}):"language"===r.scopeType&&r.workloadLanguage&&t.push({workloadLanguage:r.workloadLanguage});return t.length?t:null}function Ip(e){return Tp(e)}function Np(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function Op(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function Rp(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function _p(e){return"all"===e.operationType?null:"httpServer"===e.operationType?Rp(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Fp(e){return"all"===e.operationType?null:"httpServer"===e.operationType?Rp(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Pp(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Tp(e),percentageAtMost:Np(e),operation:_p(e)}}function Lp(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Tp(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?Op(e):null,percentageAtLeast:Np(e),operation:Fp(e)}}function zp(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Tp(e),percentageAtMost:Np(e)??0,operation:Fp(e)}}function Mp(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Ip(e),operation:_p(e),percentageAtMost:Np(e),notes:e.notes||null}}function Bp(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Ip(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?Op(e):null,operation:Fp(e),percentageAtLeast:Np(e),notes:e.notes||null}}function Up(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Ip(e),operation:Fp(e),percentageAtMost:Np(e)??0,notes:e.notes||null}}const jp=["5000","1000","500","100","50"],Wp=["50","25","10","1","0.5","0.1","0"];function Hp(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=Wp.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function Xp(e){if(!e)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};const t=e;if(t.httpServer){return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""}}return t.kafkaConsumer?{operationType:"kafkaConsumer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaConsumer.kafkaTopic||""}:t.kafkaProducer?{operationType:"kafkaProducer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaProducer.kafkaTopic||""}:{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}function Gp(e){const t=Dp(),r=(o=e.rule.sourceScopes,o?.length?o.map(e=>e.workloadLanguage?{scopeType:"language",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:e.workloadLanguage}:e.workloadName?{scopeType:"source",workloadName:e.workloadName,workloadKind:e.workloadKind??"",workloadNamespace:e.workloadNamespace??"",workloadLanguage:""}:e.workloadNamespace?{scopeType:"namespace",workloadName:"",workloadKind:"",workloadNamespace:e.workloadNamespace,workloadLanguage:""}:{scopeType:"all",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:""}).filter(e=>"all"!==e.scopeType):[]);var o;const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let i,a,s={durationPreset:"500",customDurationMs:""},l=!1;switch(e.category){case"noisy":i=function(e){const t=e.rule.operation;if(!t)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};if(t.httpServer)return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""};if(t.httpClient)return{operationType:"httpClient",routeType:t.httpClient.templatedPathPrefix?"routePrefix":"route",route:t.httpClient.templatedPath||t.httpClient.templatedPathPrefix||"",serverAddress:t.httpClient.serverAddress||"",method:t.httpClient.method||"",kafkaTopic:""};return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}(e),a=Hp(e.rule.percentageAtMost);break;case"highlyRelevant":i=Xp(e.rule.operation),a=Hp(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=jp.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),l=e.rule.error;break;case"costReduction":i=Xp(e.rule.operation),a=Hp(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...i,...s,keepErrors:l,...a}}var Vp;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Vp||(Vp={}));const Kp=[Vp.Action,Vp.Endpoint,Vp.Scope,Vp.Duration],qp=o.span`
951
+ `,dp={[Yr.MapItem]:ap,[Yr.NoData]:rp},pp=({trigger:e})=>{const{fitView:t}=cr(),r=Gt(!0);return Ht(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(sp))},[e,t]),null},up=({nodes:r,edges:o,onNodesChange:n,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=Cl(),{setActiveNodeType:h,setActiveNodeId:m}=ji();return t(ar,{zoomOnScroll:s,nodes:r,nodeTypes:dp,edges:o,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:n,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(pp,{trigger:a}),e(cp,{children:e(sr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:sp,children:p&&e(lr,{onClick:p,children:e(Et,{size:20})})})})]})},hp=t=>e(lp,{children:e(ir,{children:e(up,{...t})})}),mp={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},gp=qt(null),fp="All row fields are required",xp="At least one row is required",yp=Eo.LATENCY_HTTP_ROUTE,bp=e=>"string"==typeof e?!e.trim():Qn(e),vp=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!bp(r)}),$p=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=$l(mp),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:o,signals:n,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!o,signals:n??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Wi.find(e=>e.type===t)??Hi.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:$r(mp)};const e=(e=>{const t=$r(e),r=t.fields||{},o=r[Tr.UrlTemplatizationRulesGroups];o?.length&&(r[Tr.UrlTemplatizationRulesGroups]=o.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const n=r[Tr.AttributeNamesToDelete];n?.length&&(r[Tr.AttributeNamesToDelete]=n.filter(e=>!!e?.trim()));const i=r[Tr.Renames];return i&&(r[Tr.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};Qn(e.signals)&&(t.signals=Eo.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const o={},n=t.fields||{},i=r.fields||{};switch(e){case Dr.K8sAttributes:{const e=!(n[Tr.CollectContainerAttributes]||n[Tr.CollectReplicaSetAttributes]||n[Tr.CollectWorkloadId]||n[Tr.CollectClusterId]),t=!n[Tr.LabelsAttributes]?.length,r=!n[Tr.AnnotationsAttributes]?.length;e&&t&&r&&(o[Tr.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=n[Tr.LabelsAttributes];i?.some(e=>!vp(e,["labelKey","attributeKey","fromSources"]))&&(o[Tr.LabelsAttributes]=fp);const a=n[Tr.AnnotationsAttributes];a?.some(e=>!vp(e,["annotationKey","attributeKey","fromSources"]))&&(o[Tr.AnnotationsAttributes]=fp);break}case Dr.AddClusterInfo:{const e=n[Tr.ClusterAttributes];e?.length?e.some(e=>!vp(e,["attributeName","attributeStringValue"]))&&(o[Tr.ClusterAttributes]=fp):o[Tr.ClusterAttributes]=xp;break}case Dr.DeleteAttributes:{const e=i[Tr.AttributeNamesToDelete]||[],t=n[Tr.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(o[Tr.AttributeNamesToDelete]=fp):o[Tr.AttributeNamesToDelete]=e.length?fp:xp;break}case Dr.RenameAttributes:{const e=Object.entries(i[Tr.Renames]||{}),t=Object.entries(n[Tr.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(o[Tr.Renames]=fp):o[Tr.Renames]=e.length?fp:xp;break}case Dr.PiiMasking:{const e=n[Tr.PiiCategories];e?.length||(o[Tr.PiiCategories]="Select at least one attribute to mask");break}case Dr.ErrorSampler:bp(n[Tr.FallbackSamplingRatio])&&(o[Tr.FallbackSamplingRatio]=Eo.FIELD_IS_REQUIRED);break;case Dr.ProbabilisticSampler:bp(n[Tr.SamplingPercentage])&&(o[Tr.SamplingPercentage]=Eo.FIELD_IS_REQUIRED);break;case Dr.LatencySampler:{const e=n[Tr.EndpointsFilters];e?.length?e.some(e=>!vp(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?o[Tr.EndpointsFilters]=fp:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(o[Tr.EndpointsFilters]=yp):o[Tr.EndpointsFilters]=xp;break}case Dr.ServiceNameSampler:{const e=n[Tr.ServicesNameFilters];e?.length?e.some(e=>!vp(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(o[Tr.ServicesNameFilters]=fp):o[Tr.ServicesNameFilters]=xp;break}case Dr.SpanAttributeSampler:{const e=n[Tr.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!vp(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const o=e.condition||{},n=t.find(e=>!!o[e]);if(!n)return!0;const i=o[n]||{},a=i.operation;return!a||!(r.has(a)||!bp(i.expectedValue))})&&(o[Tr.AttributeFilters]=fp):o[Tr.AttributeFilters]=xp;break}case Dr.URLTemplatization:{const e=n[Tr.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(o[Tr.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return o})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(gp.Provider,{value:d,children:t})},wp=()=>{const e=Kt(gp);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},Sp={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[]},kp={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:$r(Sp)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},Cp=qt(kp),Ep=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e,s=r===Hr.Dropdown,l=qn(o,{});return{componentType:r,renderCondition:a,name:t,title:n,value:i,placeholder:l.placeholder||(s?"Select an option":void 0),options:s&&Array.isArray(l.values)?l.values.map(e=>({id:e,value:e})):void 0,...l}}),Ap=({children:t})=>{const{selectedStreamName:r}=Bs(),[o,n]=Wt(null),[i,a]=Wt(),[s,l]=Wt(kp.unsavedDestinations),c=Xt(()=>"number"==typeof o?.unsavedIdx?s[o.unsavedIdx]:void 0,[o,s]),d=Vt((e,t)=>{o&&(l(t=>[...t,{...e,option:o.option}]),n(t?e=>e?{...e,listType:Gi.UNSAVED,unsavedIdx:s.length}:null:null))},[o,s.length]),p=Vt((e,t,r)=>{o&&(l(r=>r.map((r,n)=>n===e?{...r,...t,option:o.option}:r)),n(r?e=>e?{...e,listType:Gi.UNSAVED}:null:null))},[o]),u=Vt(e=>{l(t=>t.filter((t,r)=>r!==e)),n(null)},[]),h=$l({...Sp,currentStreamName:r});Ht(()=>{if(o&&o.listType!==Gi.EXISTS)if(c)h.resetFormData({...c.formData});else{const e=ci(o.option.supportedSignals);h.resetFormData({type:o.option.type,name:o.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(mo.Logs),metrics:e.includes(mo.Metrics),traces:e.includes(mo.Traces)},fields:o.dynamicFields.map(e=>({key:e.name,value:e.value}))})}},[o,c]);const m=Vt(e=>{h.resetFormData(),h.handleErrorChange(void 0,void 0,{}),a(void 0),n(e?{...e,dynamicFields:e.option?.fields?Ep(e.option.fields):[]}:null)},[]),g=Vt((e,t)=>{let o;for(const r of t){const t=r.items.find(t=>t.type===e.destinationType.type);if(t){o=t;break}}const i=qn(e.fields,{}),s={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:o?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:o?o.fields.map(e=>({...e,initialValue:i[e.name]??e.initialValue})):[]},l=Ep(s.fields);n({listType:Gi.EXISTS,option:s,dynamicFields:l}),a(void 0),h.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:r,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces},fields:l.map(e=>({key:e.name,value:e.value}))})},[r]),f=Vt(()=>{const e=$r(h.formData),t={};o?.dynamicFields.forEach(({name:r,required:o})=>{if(o){const o=e.fields.find(e=>e.key===r)?.value;Qn(o)&&(t[r]=Eo.FIELD_IS_REQUIRED)}});li(e.exportedSignals).length||(t.exportedSignals=Eo.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return h.handleErrorChange(void 0,void 0,t),a(r),{errorMessage:r,preparedFormData:e}},[h,o]);return e(Cp.Provider,{value:{activeForm:o,onChangeActiveForm:m,loadDestination:g,genericForm:h,formErrorMessage:i,validateFormData:f,unsavedDestinations:s,thisUnsavedDestination:c,setUnsavedDestinations:l,addUnsavedDestination:d,updateUnsavedDestination:p,deleteUnsavedDestination:u},children:t})},Dp=()=>Kt(Cp),Tp={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},Ip=qt(null),Np=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=$l(Tp),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:o,instrumentationLibraries:n,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:o??null,instrumentationLibraries:n??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Ki.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:$r(Tp)};const e=(e=>{const t=$r(e);return t.headersCollection?.[ao.HeaderKeys]?.length&&(t.headersCollection[ao.HeaderKeys]=t.headersCollection[ao.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[so.Golang]?.length&&(t.customInstrumentations[so.Golang]=t.customInstrumentations[so.Golang].map(e=>new xo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>{return t=e,!!(t.packageName?.trim()||t.functionName?.trim()||t.receiverName?.trim()||t.receiverMethodName?.trim());var t})),t.customInstrumentations?.[so.Java]?.length&&(t.customInstrumentations[so.Java]=t.customInstrumentations[so.Java].map(e=>new fo(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(a.formData),t=((e,t)=>{const r={};switch(e){case no.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case no.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case no.HeadersCollection:t.headersCollection?.[ao.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case no.CustomInstrumentation:{const e=t.customInstrumentations?.[so.Golang]||[],o=t.customInstrumentations?.[so.Java]||[];if(!e.length&&!o.length){r.customInstrumentations="Custom instrumentation are required";break}const n=e.findIndex(e=>!new xo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==n){r.customInstrumentations=`Golang probe #${n+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=o.findIndex(e=>!new fo(e.className,e.methodName).Verify());if(-1!==i){r.customInstrumentations=`Java probe #${i+1} is invalid: both class name and method name are required`;break}break}}return r})(r.type,e);a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(Ip.Provider,{value:d,children:t})},Rp=()=>{const e=Kt(Ip);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function Op(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:[],operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function _p(e){if(!e.sourceScopes.length)return null;const t=[];for(const r of e.sourceScopes)if("source"===r.scopeType&&r.workloadName){const e={workloadName:r.workloadName};r.workloadKind&&(e.workloadKind=r.workloadKind),r.workloadNamespace&&(e.workloadNamespace=r.workloadNamespace),t.push(e)}else"namespace"===r.scopeType&&r.workloadNamespace?t.push({workloadNamespace:r.workloadNamespace}):"language"===r.scopeType&&r.workloadLanguage&&t.push({workloadLanguage:r.workloadLanguage});return t.length?t:null}function Fp(e){return _p(e)}function Pp(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function Lp(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function zp(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function Mp(e){return"all"===e.operationType?null:"httpServer"===e.operationType?zp(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Bp(e){return"all"===e.operationType?null:"httpServer"===e.operationType?zp(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Up(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:_p(e),percentageAtMost:Pp(e),operation:Mp(e)}}function jp(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:_p(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?Lp(e):null,percentageAtLeast:Pp(e),operation:Bp(e)}}function Wp(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:_p(e),percentageAtMost:Pp(e)??0,operation:Bp(e)}}function Hp(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Fp(e),operation:Mp(e),percentageAtMost:Pp(e),notes:e.notes||null}}function Xp(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Fp(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?Lp(e):null,operation:Bp(e),percentageAtLeast:Pp(e),notes:e.notes||null}}function Gp(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Fp(e),operation:Bp(e),percentageAtMost:Pp(e)??0,notes:e.notes||null}}const Vp=["5000","1000","500","100","50"],Kp=["50","25","10","1","0.5","0.1","0"];function qp(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=Kp.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function Jp(e){if(!e)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};const t=e;if(t.httpServer){return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""}}return t.kafkaConsumer?{operationType:"kafkaConsumer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaConsumer.kafkaTopic||""}:t.kafkaProducer?{operationType:"kafkaProducer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaProducer.kafkaTopic||""}:{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}function Yp(e){const t=Op(),r=(o=e.rule.sourceScopes,o?.length?o.map(e=>e.workloadLanguage?{scopeType:"language",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:e.workloadLanguage}:e.workloadName?{scopeType:"source",workloadName:e.workloadName,workloadKind:e.workloadKind??"",workloadNamespace:e.workloadNamespace??"",workloadLanguage:""}:e.workloadNamespace?{scopeType:"namespace",workloadName:"",workloadKind:"",workloadNamespace:e.workloadNamespace,workloadLanguage:""}:{scopeType:"all",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:""}).filter(e=>"all"!==e.scopeType):[]);var o;const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let i,a,s={durationPreset:"500",customDurationMs:""},l=!1;switch(e.category){case"noisy":i=function(e){const t=e.rule.operation;if(!t)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};if(t.httpServer)return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""};if(t.httpClient)return{operationType:"httpClient",routeType:t.httpClient.templatedPathPrefix?"routePrefix":"route",route:t.httpClient.templatedPath||t.httpClient.templatedPathPrefix||"",serverAddress:t.httpClient.serverAddress||"",method:t.httpClient.method||"",kafkaTopic:""};return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}(e),a=qp(e.rule.percentageAtMost);break;case"highlyRelevant":i=Jp(e.rule.operation),a=qp(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=Vp.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),l=e.rule.error;break;case"costReduction":i=Jp(e.rule.operation),a=qp(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...i,...s,keepErrors:l,...a}}var Qp;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Qp||(Qp={}));const Zp=[Qp.Action,Qp.Endpoint,Qp.Scope,Qp.Duration],eu=o.span`
946
952
  font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
947
953
  font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
948
954
  line-height: 20px;
949
955
  color: ${({theme:e,$variant:t})=>{const r=e.v2.colors;switch(t){case"action":return r.green[400];case"endpoint":return r.purple[300];case"scope":return r.yellow[400];case"duration":return r.orange[600];default:return r.white[500]}}};
950
- `,Jp=o.span`
956
+ `,tu=o.span`
951
957
  display: inline;
952
958
  cursor: help;
953
959
  text-decoration: underline dotted;
954
960
  text-underline-offset: 3px;
955
- `,Yp=o.div`
961
+ `,ru=o.div`
956
962
  display: flex;
957
963
  flex-direction: column;
958
964
  gap: 4px;
@@ -960,13 +966,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
960
966
  border-radius: 4px;
961
967
  padding: 8px;
962
968
  max-width: 300px;
963
- `,Qp=({items:r,children:o})=>{const{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=Bl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(Jp,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[o,e(yc,{ref:n,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(Yp,{children:r.map((t,r)=>e(cn,{size:sn.XXXS,children:t},r))})})]})},Zp=({parts:o})=>e(r,{children:o.map((o,n)=>{const i=e(qp,{$variant:o.variant,$isMono:Kp.includes(o.variant),children:o.text});return t(Ut,{children:[0!==n&&e(r,{children:" "}),o.tooltipItems?.length?e(Qp,{items:o.tooltipItems,children:i}):i]},`${o.variant}-${n}`)})});var eu;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(eu||(eu={}));const tu=[{value:eu.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:eu.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:eu.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],ru={[eu.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[eu.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[eu.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},ou={[eu.Noisy]:"Noisy Operations rules list",[eu.HighlyRelevant]:"Highly Relevant Operations rules list",[eu.CostReduction]:"Cost Reduction rules list"},nu={[eu.Noisy]:"noisy",[eu.HighlyRelevant]:"highlyRelevant",[eu.CostReduction]:"costReduction"};function iu(e){if(e.workloadName){const t=e.workloadKind?.toLowerCase()||"deployment";return e.workloadNamespace?`${t} '${e.workloadName}' in namespace '${e.workloadNamespace}'`:`${t} '${e.workloadName}'`}return e.workloadNamespace?`namespace '${e.workloadNamespace}'`:e.workloadLanguage?`${e.workloadLanguage} services`:""}function au(e){if(!e?.length)return[{text:" for ",variant:Vp.Default},{text:"entire cluster",variant:Vp.Scope}];const t=e.map(iu).filter(Boolean);if(!t.length)return[{text:" for ",variant:Vp.Default},{text:"entire cluster",variant:Vp.Scope}];const r=[{text:" for ",variant:Vp.Default}],o=t.slice(0,2),n=t.slice(2);return o.forEach((e,t)=>{t>0&&r.push({text:", ",variant:Vp.Default}),r.push({text:e,variant:Vp.Scope})}),n.length>0&&r.push({text:` + ${n.length} more`,variant:Vp.Default,tooltipItems:n}),r}function su(e,t){if(!e)return[];const r=(o=e).startsWith("/")?o.slice(1):o;var o;const n=[{text:" starting at ",variant:Vp.Default}];return t?n.push({text:`${t} /${r}`,variant:Vp.Endpoint}):n.push({text:`endpoint /${r}`,variant:Vp.Endpoint}),n}function lu(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Vp.Action}),t.push({text:" of traces",variant:Vp.Default})):t.push({text:"Drop all traces",variant:Vp.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...su(r,o));const n=e.operation.httpClient,i=n?.templatedPath||n?.templatedPathPrefix,a=n?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:Vp.Default}),o?t.push({text:`${o} /${e}`,variant:Vp.Endpoint}):t.push({text:`/${e}`,variant:Vp.Endpoint})}}else t.push({text:" on ",variant:Vp.Default}),t.push({text:"any operation",variant:Vp.Endpoint});return t.push(...au(e.sourceScopes)),t}function cu(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:Vp.Action}),t.push({text:" of traces",variant:Vp.Default})):t.push({text:"Keep all traces",variant:Vp.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...su(r,o))}else t.push({text:" on ",variant:Vp.Default}),t.push({text:"any operation",variant:Vp.Endpoint});return t.push(...au(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:Vp.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:Vp.Duration})),t}function du(e){const t=[];if(t.push({text:`Drop ${e.percentageAtMost}%`,variant:Vp.Action}),t.push({text:" of traces",variant:Vp.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...su(r,o));const n=e.operation.kafkaConsumer?.kafkaTopic;n&&!r&&(t.push({text:" from ",variant:Vp.Default}),t.push({text:`topic '${n}'`,variant:Vp.Endpoint}))}else t.push({text:" on ",variant:Vp.Default}),t.push({text:"any operation",variant:Vp.Endpoint});return t.push(...au(e.sourceScopes)),t}function pu(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function uu(e,t,r){const o=nu[t],n=[];for(const i of e)switch(t){case eu.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:lu(e),category:o});break;case eu.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:cu(e),category:o,typeBadge:pu(e)});break;case eu.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:du(e),category:o})}return n}function hu(e,t){switch(e){case"noisy":return lu(t);case"highlyRelevant":return cu(t);case"costReduction":return du(t)}}function mu(e,t,r,o){for(const n of e)if(n.id===t)switch(o){case"noisy":{const e=n.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:n.id,rule:e};break}case"highlyRelevant":{const e=n.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:n.id,rule:e};break}case"costReduction":{const e=n.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:n.id,rule:e};break}}return null}function gu(e,t){const r=mu(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:hu(r.category,r.rule)}:null}function fu(e,t){const r=mu(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function xu(e){return null==e||Array.isArray(e)&&0===e.length?null:e}function yu(e,t){return JSON.stringify({sourceScopes:xu(e),operation:xu(t)})}function bu(e,t,r,o){return JSON.stringify({sourceScopes:xu(e),error:t??!1,durationAtLeastMs:xu(r),operation:xu(o)})}function vu(e,t){return JSON.stringify({sourceScopes:xu(e),operation:xu(t)})}function $u(e,t,r,o){switch(t){case"noisy":{const t=yu(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!o||e.ruleId!==o)&&yu(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=bu(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!o||e.ruleId!==o)&&bu(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=vu(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!o||e.ruleId!==o)&&vu(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function wu(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:Vp.Default},{text:"disabled",variant:Vp.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:Vp.Action},{text:" of ",variant:Vp.Default},{text:"traces for kubelet health probes in the entire cluster",variant:Vp.Scope}]}function Su(e){return!(!0!==e.error||e.sourceScopes&&0!==e.sourceScopes.length||e.operation||null!=e.percentageAtLeast&&100!==e.percentageAtLeast)}function ku(e){for(const t of e){const e=t.highlyRelevantOperations.find(Su);if(e)return{rule:e,samplingId:t.id}}return null}function Cu(e){return!e||e.disabled?[{text:"Auto rule is ",variant:Vp.Default},{text:"disabled",variant:Vp.Action}]:[{text:"Keep 100%",variant:Vp.Action},{text:" of ",variant:Vp.Default},{text:"error traces across the entire cluster",variant:Vp.Scope}]}function Eu(e){return!(e.sourceScopes&&0!==e.sourceScopes.length||e.operation)}function Au(e){for(const t of e){const e=t.costReductionRules.find(Eu);if(e)return{rule:e,samplingId:t.id}}return null}function Du(e){return!e||e.disabled?[{text:" is ",variant:Vp.Default},{text:"disabled",variant:Vp.Action}]:[{text:`Drop ${e.percentageAtMost}%`,variant:Vp.Action},{text:" of ",variant:Vp.Default},{text:"traces across the entire cluster",variant:Vp.Scope}]}var Tu;!function(e){e.Create="create",e.View="view",e.EditAutoNoisy="edit-auto-noisy",e.EditAutoCostReduction="edit-auto-cost-reduction",e.EditAutoHighlyRelevant="edit-auto-highly-relevant"}(Tu||(Tu={}));const Iu=Kt(null),Nu=["50","25","10","1","0"];function Ou(e){const t=String(e);return Nu.includes(t)?t:"custom"}const Ru=({category:t,sourceOptions:r=[],namespaceOptions:o=[],children:n})=>{const{formData:i,handleFormChange:a,resetFormData:s}=$l(Dp(t)),[l,c]=jt(null);Wt(()=>{s(Dp(t)),c(null)},[t]);const d=Gt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Gt(()=>{s(Dp(t)),c(null)},[t,s]),u=Ht(()=>({formType:Tu.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:o}),[t,i,d,p,l,r,o]);return e(Iu.Provider,{value:u,children:n})},_u=({data:t,defaultEditMode:r,sourceOptions:o=[],namespaceOptions:n=[],children:i})=>{const[a,s]=jt(!1),{formData:l,handleFormChange:c,resetFormData:d}=$l(void 0),p=Xt(null),[u,h]=jt(null);Wt(()=>{t!==p.current&&(p.current=t,t&&r?(d(Gp(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Gt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Gt(()=>{t&&(d(Gp(t)),h(null),s(!0))},[t,d]),f=Gt(()=>{s(!1),h(null)},[]),x=Ht(()=>({formType:Tu.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:o,namespaceOptions:n}),[t,a,l,m,g,f,u,o,n]);return e(Iu.Provider,{value:x,children:i})};function Fu(e){const[t,r]=jt(()=>Ou(e)),[o,n]=jt(()=>"custom"===Ou(e)?String(e):"");Wt(()=>{const t=Ou(e);r(t),n("custom"===t?String(e):"")},[e]);const i=Ht(()=>"custom"===t?Number(o)||0:Number(t),[t,o]);return{percentagePreset:t,setPercentagePreset:r,customPercentage:o,setCustomPercentage:n,resolvedPercentage:i}}const Pu=({enabled:t,keepPercentage:r,children:o})=>{const[n,i]=jt(t),a=Fu(r);Wt(()=>{i(t)},[t]);const s=Ht(()=>wu({enabled:n,keepPercentage:a.resolvedPercentage}),[n,a.resolvedPercentage]),l=Ht(()=>({formType:Tu.EditAutoNoisy,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Iu.Provider,{value:l,children:o})},Lu=({enabled:t,dropPercentage:r,children:o})=>{const[n,i]=jt(t),a=Fu(r);Wt(()=>{i(t)},[t]);const s=Ht(()=>Du(n?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[n,a.resolvedPercentage]),l=Ht(()=>({formType:Tu.EditAutoCostReduction,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Iu.Provider,{value:l,children:o})},zu=({enabled:t,children:r})=>{const[o,n]=jt(t);Wt(()=>{n(t)},[t]);const i=Ht(()=>Cu(o?{disabled:!1}:null),[o]),a=Ht(()=>({formType:Tu.EditAutoHighlyRelevant,localEnabled:o,setLocalEnabled:n,summary:i}),[o,i]);return e(Iu.Provider,{value:a,children:r})},Mu=t=>{switch(t.formType){case Tu.Create:return e(Ru,{...t});case Tu.View:return e(_u,{...t});case Tu.EditAutoNoisy:return e(Pu,{...t});case Tu.EditAutoCostReduction:return e(Lu,{...t});case Tu.EditAutoHighlyRelevant:return e(zu,{...t})}};function Bu(e){const t=Vt(Iu);if(!t)throw new Error("useSamplingRulesFormContext must be used within a SamplingRulesFormProvider");if(e&&t.formType!==e)throw new Error(`Expected formType "${e}" but found "${t.formType}"`);return t}const Uu=Kt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),ju=({children:t,selectedConnectionIds:r,initialInputs:o})=>{const{tier:n}=Vl(),i=n===Lr.Onprem,{selectedStreamName:a}=Bs(),[s,l]=jt(!1),[c,d]=jt(null),[p,u]=jt([]);Wt(()=>{c&&u(e=>{const t=((e,t)=>$r(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(c,r);return t.map(t=>{const r=e?.find(e=>e.clusterId===t.clusterId),n=r??t;if(o?.[t.clusterId]){const e=o[t.clusterId],r=$r(n);return e.forEach(e=>{const t=r.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const r=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);r&&(r.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Kl.has(e.kind)&&!i||(e.selected=!0)})}),r}return n})})},[c,r,o]);const{formDiff:h,isFormDirty:m}=Ht(()=>{const e=((e,t,r)=>{const o={};return e.forEach(e=>{e.namespaces.forEach(n=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===n.name),a=n.selected||!1,s=a!==i?.selected;if(s&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push({namespace:n.name,selected:a,currentStreamName:r}),a&&(o[e.clusterId]=o[e.clusterId].filter(e=>e.namespace!==n.name||e.namespace===n.name&&(!e.name||!e.kind)))),!s||!a){const t=((e,t,r)=>{const o=[];return t.workloads.forEach(n=>{const i=e?.workloads.find(e=>e.name===n.name&&e.kind===n.kind);n.selected!==i?.selected&&o.push({namespace:t.name,name:n.name,kind:n.kind,selected:n.selected||!1,currentStreamName:r})}),o})(i,n,r);t.length>0&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push(...t))}})}),o})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Gt(e=>!i&&Kl.has(e),[i]),f=Gt(({clusterId:e,workloadId:t,selected:r,auto:o})=>{u(n=>{const i=$r(n),a=i.findIndex(t=>t.clusterId===e);if(-1===a)return i;const s=i[a].namespaces.findIndex(e=>e.name===t.namespace);if(-1===s)return i;if(t.kind&&t.name){const e=i[a].namespaces[s].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return i;const o="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=o,o){const e=i[a].namespaces[s].workloads.filter(e=>!g(e.kind));e.every(e=>e.selected)&&(i[a].namespaces[s].selected=!0)}else i[a].namespaces[s].selected=!1}else{const e="boolean"==typeof o?o:!i[a].namespaces[s].selected;i[a].namespaces[s].selected=e,e?i[a].namespaces[s].workloads.forEach(e=>{g(e.kind)||(e.selected=!0)}):"boolean"!=typeof r||r||i[a].namespaces[s].workloads.forEach(e=>{e.selected=!1})}return i})},[g]),x=Gt(({clusterId:e,namespaceName:t,boolean:r,searchText:o="",searchBy:n="",filters:i})=>{u(a=>{const s=$r(a),l=n===jr.Namespace?o:"",c=n===jr.Source?o:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((o,n)=>{e&&o.clusterId!==e||o.namespaces.forEach(({name:e,workloads:o},a)=>{if(!t||e===t)if(d)if(t){o.forEach((e,t)=>{r&&g(e.kind)||Yl(e,c,i||{showOnlySelected:!1})&&(s[n].namespaces[a].workloads[t].selected=r)});const e=s[n].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[n].namespaces[a].selected=t}else{if(!Jl(s[n].namespaces[a],l,i||{showOnlySelected:!1}))return;s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})}else s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Uu.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:x,formDiff:h,isFormDirty:m},children:t})},Wu=()=>Vt(Uu),Hu=Kt({formType:void 0}),Xu=({children:t,formType:r})=>{const o=Ht(()=>({formType:r}),[r]);return e(Hu.Provider,{value:o,children:t})},Gu=()=>Vt(Hu),Vu=o.div`
969
+ `,ou=({items:r,children:o})=>{const{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=Bl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(tu,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[o,e(yc,{ref:n,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(ru,{children:r.map((t,r)=>e(cn,{size:sn.XXXS,children:t},r))})})]})},nu=({parts:o})=>e(r,{children:o.map((o,n)=>{const i=e(eu,{$variant:o.variant,$isMono:Zp.includes(o.variant),children:o.text});return t(jt,{children:[0!==n&&e(r,{children:" "}),o.tooltipItems?.length?e(ou,{items:o.tooltipItems,children:i}):i]},`${o.variant}-${n}`)})});var iu;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(iu||(iu={}));const au=[{value:iu.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:iu.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:iu.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],su={[iu.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[iu.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[iu.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},lu={[iu.Noisy]:"Noisy Operations rules list",[iu.HighlyRelevant]:"Highly Relevant Operations rules list",[iu.CostReduction]:"Cost Reduction rules list"},cu={[iu.Noisy]:"noisy",[iu.HighlyRelevant]:"highlyRelevant",[iu.CostReduction]:"costReduction"};function du(e){if(e.workloadName){const t=e.workloadKind?.toLowerCase()||"deployment";return e.workloadNamespace?`${t} '${e.workloadName}' in namespace '${e.workloadNamespace}'`:`${t} '${e.workloadName}'`}return e.workloadNamespace?`namespace '${e.workloadNamespace}'`:e.workloadLanguage?`${e.workloadLanguage} services`:""}function pu(e){if(!e?.length)return[{text:" for ",variant:Qp.Default},{text:"entire cluster",variant:Qp.Scope}];const t=e.map(du).filter(Boolean);if(!t.length)return[{text:" for ",variant:Qp.Default},{text:"entire cluster",variant:Qp.Scope}];const r=[{text:" for ",variant:Qp.Default}],o=t.slice(0,2),n=t.slice(2);return o.forEach((e,t)=>{t>0&&r.push({text:", ",variant:Qp.Default}),r.push({text:e,variant:Qp.Scope})}),n.length>0&&r.push({text:` + ${n.length} more`,variant:Qp.Default,tooltipItems:n}),r}function uu(e,t){if(!e)return[];const r=(o=e).startsWith("/")?o.slice(1):o;var o;const n=[{text:" starting at ",variant:Qp.Default}];return t?n.push({text:`${t} /${r}`,variant:Qp.Endpoint}):n.push({text:`endpoint /${r}`,variant:Qp.Endpoint}),n}function hu(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Qp.Action}),t.push({text:" of traces",variant:Qp.Default})):t.push({text:"Drop all traces",variant:Qp.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...uu(r,o));const n=e.operation.httpClient,i=n?.templatedPath||n?.templatedPathPrefix,a=n?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:Qp.Default}),o?t.push({text:`${o} /${e}`,variant:Qp.Endpoint}):t.push({text:`/${e}`,variant:Qp.Endpoint})}}else t.push({text:" on ",variant:Qp.Default}),t.push({text:"any operation",variant:Qp.Endpoint});return t.push(...pu(e.sourceScopes)),t}function mu(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:Qp.Action}),t.push({text:" of traces",variant:Qp.Default})):t.push({text:"Keep all traces",variant:Qp.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...uu(r,o))}else t.push({text:" on ",variant:Qp.Default}),t.push({text:"any operation",variant:Qp.Endpoint});return t.push(...pu(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:Qp.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:Qp.Duration})),t}function gu(e){const t=[];if(t.push({text:`Drop ${e.percentageAtMost}%`,variant:Qp.Action}),t.push({text:" of traces",variant:Qp.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...uu(r,o));const n=e.operation.kafkaConsumer?.kafkaTopic;n&&!r&&(t.push({text:" from ",variant:Qp.Default}),t.push({text:`topic '${n}'`,variant:Qp.Endpoint}))}else t.push({text:" on ",variant:Qp.Default}),t.push({text:"any operation",variant:Qp.Endpoint});return t.push(...pu(e.sourceScopes)),t}function fu(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function xu(e,t,r){const o=cu[t],n=[];for(const i of e)switch(t){case iu.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:hu(e),category:o});break;case iu.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:mu(e),category:o,typeBadge:fu(e)});break;case iu.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:gu(e),category:o})}return n}function yu(e,t){switch(e){case"noisy":return hu(t);case"highlyRelevant":return mu(t);case"costReduction":return gu(t)}}function bu(e,t,r,o){for(const n of e)if(n.id===t)switch(o){case"noisy":{const e=n.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:n.id,rule:e};break}case"highlyRelevant":{const e=n.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:n.id,rule:e};break}case"costReduction":{const e=n.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:n.id,rule:e};break}}return null}function vu(e,t){const r=bu(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:yu(r.category,r.rule)}:null}function $u(e,t){const r=bu(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function wu(e){return null==e||Array.isArray(e)&&0===e.length?null:e}function Su(e,t){return JSON.stringify({sourceScopes:wu(e),operation:wu(t)})}function ku(e,t,r,o){return JSON.stringify({sourceScopes:wu(e),error:t??!1,durationAtLeastMs:wu(r),operation:wu(o)})}function Cu(e,t){return JSON.stringify({sourceScopes:wu(e),operation:wu(t)})}function Eu(e,t,r,o){switch(t){case"noisy":{const t=Su(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!o||e.ruleId!==o)&&Su(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=ku(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!o||e.ruleId!==o)&&ku(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=Cu(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!o||e.ruleId!==o)&&Cu(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function Au(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:Qp.Default},{text:"disabled",variant:Qp.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:Qp.Action},{text:" of ",variant:Qp.Default},{text:"traces for kubelet health probes in the entire cluster",variant:Qp.Scope}]}function Du(e){return!(!0!==e.error||e.sourceScopes&&0!==e.sourceScopes.length||e.operation||null!=e.percentageAtLeast&&100!==e.percentageAtLeast)}function Tu(e){for(const t of e){const e=t.highlyRelevantOperations.find(Du);if(e)return{rule:e,samplingId:t.id}}return null}function Iu(e){return!e||e.disabled?[{text:"Auto rule is ",variant:Qp.Default},{text:"disabled",variant:Qp.Action}]:[{text:"Keep 100%",variant:Qp.Action},{text:" of ",variant:Qp.Default},{text:"error traces across the entire cluster",variant:Qp.Scope}]}function Nu(e){return!(e.sourceScopes&&0!==e.sourceScopes.length||e.operation)}function Ru(e){for(const t of e){const e=t.costReductionRules.find(Nu);if(e)return{rule:e,samplingId:t.id}}return null}function Ou(e){return!e||e.disabled?[{text:" is ",variant:Qp.Default},{text:"disabled",variant:Qp.Action}]:[{text:`Drop ${e.percentageAtMost}%`,variant:Qp.Action},{text:" of ",variant:Qp.Default},{text:"traces across the entire cluster",variant:Qp.Scope}]}var _u;!function(e){e.Create="create",e.View="view",e.EditAutoNoisy="edit-auto-noisy",e.EditAutoCostReduction="edit-auto-cost-reduction",e.EditAutoHighlyRelevant="edit-auto-highly-relevant"}(_u||(_u={}));const Fu=qt(null),Pu=["50","25","10","1","0"];function Lu(e){const t=String(e);return Pu.includes(t)?t:"custom"}const zu=({category:t,sourceOptions:r=[],namespaceOptions:o=[],children:n})=>{const{formData:i,handleFormChange:a,resetFormData:s}=$l(Op(t)),[l,c]=Wt(null);Ht(()=>{s(Op(t)),c(null)},[t]);const d=Vt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Vt(()=>{s(Op(t)),c(null)},[t,s]),u=Xt(()=>({formType:_u.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:o}),[t,i,d,p,l,r,o]);return e(Fu.Provider,{value:u,children:n})},Mu=({data:t,defaultEditMode:r,sourceOptions:o=[],namespaceOptions:n=[],children:i})=>{const[a,s]=Wt(!1),{formData:l,handleFormChange:c,resetFormData:d}=$l(void 0),p=Gt(null),[u,h]=Wt(null);Ht(()=>{t!==p.current&&(p.current=t,t&&r?(d(Yp(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Vt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Vt(()=>{t&&(d(Yp(t)),h(null),s(!0))},[t,d]),f=Vt(()=>{s(!1),h(null)},[]),x=Xt(()=>({formType:_u.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:o,namespaceOptions:n}),[t,a,l,m,g,f,u,o,n]);return e(Fu.Provider,{value:x,children:i})};function Bu(e){const[t,r]=Wt(()=>Lu(e)),[o,n]=Wt(()=>"custom"===Lu(e)?String(e):"");Ht(()=>{const t=Lu(e);r(t),n("custom"===t?String(e):"")},[e]);const i=Xt(()=>"custom"===t?Number(o)||0:Number(t),[t,o]);return{percentagePreset:t,setPercentagePreset:r,customPercentage:o,setCustomPercentage:n,resolvedPercentage:i}}const Uu=({enabled:t,keepPercentage:r,children:o})=>{const[n,i]=Wt(t),a=Bu(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>Au({enabled:n,keepPercentage:a.resolvedPercentage}),[n,a.resolvedPercentage]),l=Xt(()=>({formType:_u.EditAutoNoisy,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Fu.Provider,{value:l,children:o})},ju=({enabled:t,dropPercentage:r,children:o})=>{const[n,i]=Wt(t),a=Bu(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>Ou(n?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[n,a.resolvedPercentage]),l=Xt(()=>({formType:_u.EditAutoCostReduction,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Fu.Provider,{value:l,children:o})},Wu=({enabled:t,children:r})=>{const[o,n]=Wt(t);Ht(()=>{n(t)},[t]);const i=Xt(()=>Iu(o?{disabled:!1}:null),[o]),a=Xt(()=>({formType:_u.EditAutoHighlyRelevant,localEnabled:o,setLocalEnabled:n,summary:i}),[o,i]);return e(Fu.Provider,{value:a,children:r})},Hu=t=>{switch(t.formType){case _u.Create:return e(zu,{...t});case _u.View:return e(Mu,{...t});case _u.EditAutoNoisy:return e(Uu,{...t});case _u.EditAutoCostReduction:return e(ju,{...t});case _u.EditAutoHighlyRelevant:return e(Wu,{...t})}};function Xu(e){const t=Kt(Fu);if(!t)throw new Error("useSamplingRulesFormContext must be used within a SamplingRulesFormProvider");if(e&&t.formType!==e)throw new Error(`Expected formType "${e}" but found "${t.formType}"`);return t}const Gu=qt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Vu=({children:t,selectedConnectionIds:r,initialInputs:o})=>{const{tier:n}=Vl(),i=n===Lr.Onprem,{selectedStreamName:a}=Bs(),[s,l]=Wt(!1),[c,d]=Wt(null),[p,u]=Wt([]);Ht(()=>{c&&u(e=>{const t=((e,t)=>$r(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(c,r);return t.map(t=>{const r=e?.find(e=>e.clusterId===t.clusterId),n=r??t;if(o?.[t.clusterId]){const e=o[t.clusterId],r=$r(n);return e.forEach(e=>{const t=r.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const r=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);r&&(r.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Kl.has(e.kind)&&!i||(e.selected=!0)})}),r}return n})})},[c,r,o]);const{formDiff:h,isFormDirty:m}=Xt(()=>{const e=((e,t,r)=>{const o={};return e.forEach(e=>{e.namespaces.forEach(n=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===n.name),a=n.selected||!1,s=a!==i?.selected;if(s&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push({namespace:n.name,selected:a,currentStreamName:r}),a&&(o[e.clusterId]=o[e.clusterId].filter(e=>e.namespace!==n.name||e.namespace===n.name&&(!e.name||!e.kind)))),!s||!a){const t=((e,t,r)=>{const o=[];return t.workloads.forEach(n=>{const i=e?.workloads.find(e=>e.name===n.name&&e.kind===n.kind);n.selected!==i?.selected&&o.push({namespace:t.name,name:n.name,kind:n.kind,selected:n.selected||!1,currentStreamName:r})}),o})(i,n,r);t.length>0&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push(...t))}})}),o})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Vt(e=>!i&&Kl.has(e),[i]),f=Vt(({clusterId:e,workloadId:t,selected:r,auto:o})=>{u(n=>{const i=$r(n),a=i.findIndex(t=>t.clusterId===e);if(-1===a)return i;const s=i[a].namespaces.findIndex(e=>e.name===t.namespace);if(-1===s)return i;if(t.kind&&t.name){const e=i[a].namespaces[s].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return i;const o="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=o,o){const e=i[a].namespaces[s].workloads.filter(e=>!g(e.kind));e.every(e=>e.selected)&&(i[a].namespaces[s].selected=!0)}else i[a].namespaces[s].selected=!1}else{const e="boolean"==typeof o?o:!i[a].namespaces[s].selected;i[a].namespaces[s].selected=e,e?i[a].namespaces[s].workloads.forEach(e=>{g(e.kind)||(e.selected=!0)}):"boolean"!=typeof r||r||i[a].namespaces[s].workloads.forEach(e=>{e.selected=!1})}return i})},[g]),x=Vt(({clusterId:e,namespaceName:t,boolean:r,searchText:o="",searchBy:n="",filters:i})=>{u(a=>{const s=$r(a),l=n===jr.Namespace?o:"",c=n===jr.Source?o:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((o,n)=>{e&&o.clusterId!==e||o.namespaces.forEach(({name:e,workloads:o},a)=>{if(!t||e===t)if(d)if(t){o.forEach((e,t)=>{r&&g(e.kind)||Yl(e,c,i||{showOnlySelected:!1})&&(s[n].namespaces[a].workloads[t].selected=r)});const e=s[n].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[n].namespaces[a].selected=t}else{if(!Jl(s[n].namespaces[a],l,i||{showOnlySelected:!1}))return;s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})}else s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Gu.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:x,formDiff:h,isFormDirty:m},children:t})},Ku=()=>Kt(Gu),qu=qt({formType:void 0}),Ju=({children:t,formType:r})=>{const o=Xt(()=>({formType:r}),[r]);return e(qu.Provider,{value:o,children:t})},Yu=()=>Kt(qu),Qu=o.div`
964
970
  display: flex;
965
971
 
966
972
  align-items: center;
967
973
  gap: 6px;
968
974
  margin-bottom: 4px;
969
- `,Ku=o(Si)`
975
+ `,Zu=o(Si)`
970
976
  font-size: 14px;
971
977
  opacity: 0.8;
972
978
  line-height: 22px;
@@ -974,16 +980,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
974
980
  white-space: nowrap;
975
981
  text-overflow: ellipsis;
976
982
  color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
977
- `,qu=o(Si)`
983
+ `,eh=o(Si)`
978
984
  font-size: 12px;
979
985
  color: ${({theme:e})=>e.text.darker_grey};
980
986
  opacity: 0.8;
981
- `,Ju=({title:r,required:o,tooltip:n,style:i,status:a})=>r?e(Vu,{style:i,children:t(Cc,{text:n,withIcon:!0,children:[e(Ku,{$status:a,children:r}),!o&&e(qu,{children:"(optional)"})]})}):null,Yu=o.div`
987
+ `,th=({title:r,required:o,tooltip:n,style:i,status:a})=>r?e(Qu,{style:i,children:t(Cc,{text:n,withIcon:!0,children:[e(Zu,{$status:a,children:r}),!o&&e(eh,{children:"(optional)"})]})}):null,rh=o.div`
982
988
  display: flex;
983
989
  flex-direction: column;
984
990
  position: relative;
985
991
  width: 100%;
986
- `,Qu=o.div`
992
+ `,oh=o.div`
987
993
  width: 100%;
988
994
  display: flex;
989
995
  align-items: center;
@@ -1009,7 +1015,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1009
1015
  &:focus-within {
1010
1016
  border-color: ${({theme:e})=>e.colors.secondary};
1011
1017
  }
1012
- `,Zu=o.input`
1018
+ `,nh=o.input`
1013
1019
  padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1014
1020
  flex: 1;
1015
1021
  min-width: 150px;
@@ -1038,13 +1044,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1038
1044
  -webkit-appearance: none;
1039
1045
  margin: 0;
1040
1046
  }
1041
- `,eh=o.div`
1047
+ `,ih=o.div`
1042
1048
  display: flex;
1043
1049
  align-items: center;
1044
1050
  margin-left: 12px;
1045
- `,th=o(eh)`
1051
+ `,ah=o(ih)`
1046
1052
  cursor: pointer;
1047
- `,rh=o.button`
1053
+ `,sh=o.button`
1048
1054
  background-color: ${({theme:e})=>e.colors.primary};
1049
1055
  border: none;
1050
1056
  color: ${({theme:e})=>e.text.secondary};
@@ -1059,15 +1065,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1059
1065
  background-color: ${({theme:e})=>e.colors.border};
1060
1066
  cursor: not-allowed;
1061
1067
  }
1062
- `,oh=({icon:r,buttonLabel:o,onButtonClick:n,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Xr.Text,name:m,status:g,...f})=>{const x=i(),y=h===Xr.Password,[b,v]=jt(!1);return t(Yu,{children:[e(Ju,{title:l,required:d,tooltip:c,status:g}),t(Qu,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[y?e(th,{onClick:()=>v(e=>!e),children:e(b?At:Dt,{size:14,fill:x.text.grey})}):r?e(eh,{children:e(r,{size:14,fill:x.text.grey})}):null,e(Zu,{"data-id":m,type:b||h===Xr.Number?Xr.Text:h,$hasIcon:!!r||y,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Xr.Number&&(e.target.value=di(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),o&&n&&e(rh,{onClick:n,disabled:f.disabled,children:o})]}),!!s&&e(Ei,{children:s})]})},nh=o.div`
1068
+ `,lh=({icon:r,buttonLabel:o,onButtonClick:n,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Xr.Text,name:m,status:g,...f})=>{const x=i(),y=h===Xr.Password,[b,v]=Wt(!1);return t(rh,{children:[e(th,{title:l,required:d,tooltip:c,status:g}),t(oh,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[y?e(ah,{onClick:()=>v(e=>!e),children:e(b?At:Dt,{size:14,fill:x.text.grey})}):r?e(ih,{children:e(r,{size:14,fill:x.text.grey})}):null,e(nh,{"data-id":m,type:b||h===Xr.Number?Xr.Text:h,$hasIcon:!!r||y,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Xr.Number&&(e.target.value=di(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),o&&n&&e(sh,{onClick:n,disabled:f.disabled,children:o})]}),!!s&&e(Ei,{children:s})]})},ch=o.div`
1063
1069
  display: flex;
1064
1070
  flex-direction: column;
1065
1071
  min-width: 120px;
1066
1072
  width: 100%;
1067
1073
  opacity: ${({$disabled:e})=>e?.5:1};
1068
- `,ih=o.div`
1074
+ `,dh=o.div`
1069
1075
  position: relative;
1070
- `,ah=o.div`
1076
+ `,ph=o.div`
1071
1077
  display: flex;
1072
1078
  align-items: center;
1073
1079
  justify-content: space-between;
@@ -1093,14 +1099,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1093
1099
  &:hover {
1094
1100
  border-color: ${({$isMulti:e,$hasSelections:t,$disabled:r,theme:o})=>r?"auto":e&&t?o.colors.border:o.colors.secondary};
1095
1101
  }
1096
- `,sh=o.div`
1102
+ `,uh=o.div`
1097
1103
  display: flex;
1098
1104
  align-items: center;
1099
1105
  gap: 4px;
1100
- `,lh=({options:r,value:o,onSelect:n,onDeselect:i,title:a,tooltip:s,placeholder:l,disabled:c=!1,isMulti:d=!1,showSearch:p=!1,required:u=!1,errorMessage:h,hasError:m=!1,status:g})=>{const[f,x]=jt(!1),[y,b]=jt(!1),v=Xt(null);zl(v,()=>x(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),x(e=>!e)},w=Array.isArray(o)?o.length:0;return t(nh,{$disabled:c,children:[e(Ju,{title:a,required:u,tooltip:s,status:g}),t(ih,{ref:v,children:[t(ah,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(o)&&!!o.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(uh,{value:o,placeholder:l,onDeselect:i}),t(sh,{children:[d&&e(fl,{label:w,filled:!!w}),e(hd,{extend:f})]})]}),f&&e(gh,{openUpwards:y,options:r,value:o,onSelect:e=>{n?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ei,{children:h})]})},ch=o(sh)`
1106
+ `,hh=({options:r,value:o,onSelect:n,onDeselect:i,title:a,tooltip:s,placeholder:l,disabled:c=!1,isMulti:d=!1,showSearch:p=!1,required:u=!1,errorMessage:h,hasError:m=!1,status:g})=>{const[f,x]=Wt(!1),[y,b]=Wt(!1),v=Gt(null);zl(v,()=>x(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),x(e=>!e)},w=Array.isArray(o)?o.length:0;return t(ch,{$disabled:c,children:[e(th,{title:a,required:u,tooltip:s,status:g}),t(dh,{ref:v,children:[t(ph,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(o)&&!!o.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(xh,{value:o,placeholder:l,onDeselect:i}),t(uh,{children:[d&&e(fl,{label:w,filled:!!w}),e(hd,{extend:f})]})]}),f&&e(vh,{openUpwards:y,options:r,value:o,onSelect:e=>{n?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ei,{children:h})]})},mh=o(uh)`
1101
1107
  max-width: calc(100% - 50px);
1102
1108
  overflow-x: auto;
1103
- `,dh=o(Si)`
1109
+ `,gh=o(Si)`
1104
1110
  display: flex;
1105
1111
  align-items: center;
1106
1112
  gap: 2px;
@@ -1115,7 +1121,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1115
1121
  transition: transform 0.3s;
1116
1122
  }
1117
1123
  }
1118
- `,ph=o(Si)``,uh=({value:r,placeholder:o,onDeselect:n})=>{const a=i();return Array.isArray(r)?r.length?e(ch,{children:r.map(r=>t(dh,{size:14,children:[r.value,e(hc,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(yt,{size:12,onClick:e=>{e.stopPropagation(),n?.(r)}})]},`multi-label-${r.id}`))}):e(ph,{size:14,color:a.text.darker_grey,children:o}):e(ph,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||o})},hh=o.div`
1124
+ `,fh=o(Si)``,xh=({value:r,placeholder:o,onDeselect:n})=>{const a=i();return Array.isArray(r)?r.length?e(mh,{children:r.map(r=>t(gh,{size:14,children:[r.value,e(hc,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(yt,{size:12,onClick:e=>{e.stopPropagation(),n?.(r)}})]},`multi-label-${r.id}`))}):e(fh,{size:14,color:a.text.darker_grey,children:o}):e(fh,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||o})},yh=o.div`
1119
1125
  position: absolute;
1120
1126
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1121
1127
  left: 0;
@@ -1130,11 +1136,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1130
1136
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1131
1137
  border: 1px solid ${({theme:e})=>e.colors.border};
1132
1138
  border-radius: 24px;
1133
- `,mh=o.div`
1139
+ `,bh=o.div`
1134
1140
  display: flex;
1135
1141
  flex-direction: column;
1136
1142
  align-items: center;
1137
- `,gh=({openUpwards:r,options:o,value:n,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=jt(""),p=o.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(hh,{$openUpwards:r,children:[l&&t(mh,{children:[e(oh,{placeholder:"Search...",icon:Tt,value:c,onChange:e=>d(e.target.value)}),e(hc,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(ep,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(xh,{option:t,value:n,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},fh=o.div`
1143
+ `,vh=({openUpwards:r,options:o,value:n,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Wt(""),p=o.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(yh,{$openUpwards:r,children:[l&&t(bh,{children:[e(lh,{placeholder:"Search...",icon:Tt,value:c,onChange:e=>d(e.target.value)}),e(hc,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(ep,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(wh,{option:t,value:n,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},$h=o.div`
1138
1144
  padding: 8px 12px;
1139
1145
  cursor: pointer;
1140
1146
  display: flex;
@@ -1145,21 +1151,21 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1145
1151
  &.selected {
1146
1152
  background: ${({theme:e})=>e.colors.majestic_blue+sl["024"]};
1147
1153
  }
1148
- `,xh=({option:r,value:o,isMulti:n,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(o)?!!o?.find(e=>e.id===r.id):o?.id===r.id,d=e=>e?a?.(r):s?.(r);return n?e(fh,{className:c?"selected":"",onClick:()=>d(!c),children:e(qc,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(fh,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(Tn,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Si,{size:14,children:r.value})]}),c&&e(ft,{})]})},yh=o(In)`
1154
+ `,wh=({option:r,value:o,isMulti:n,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(o)?!!o?.find(e=>e.id===r.id):o?.id===r.id,d=e=>e?a?.(r):s?.(r);return n?e($h,{className:c?"selected":"",onClick:()=>d(!c),children:e(qc,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t($h,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(Tn,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Si,{size:14,children:r.value})]}),c&&e(ft,{})]})},Sh=o(In)`
1149
1155
  gap: 12px;
1150
- `,bh=o(Tn)`
1156
+ `,kh=o(Tn)`
1151
1157
  width: 100%;
1152
1158
  gap: 12px;
1153
1159
  align-items: flex-end;
1154
- `,vh=({clientX:r=0,flipX:o,clientY:n=0,flipY:a,isOpen:s,onClose:l,onSave:c,withDelete:d,onDelete:p,title:u,titleTooltip:h,warning:m,children:g})=>{const f=i(),{popupRef:x,popupPosition:y,handlePosition:b}=Bl({onClickOutside:l});return Ll({key:"Enter",active:s},c),Wt(()=>b(r,n),[r,n]),0===y.top&&0!==n||0===y.left&&0!==r?null:e(yc,{ref:x,isOpen:s,top:a?void 0:y.top,bottom:a?y.top:void 0,left:o?void 0:y.left,right:o?y.left:void 0,padding:"24px",children:t(yh,{children:[e(Cc,{text:h,withIcon:!0,children:e(Si,{size:14,children:u})}),t(bh,{children:[g,t(Tn,{$gap:6,children:[e(Dc,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(yt,{})}),e(Dc,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(ft,{fill:f.text.primary})}),d&&e(Dc,{onClick:p,tooltip:"Undo",children:e(It,{})})]})]}),m&&e(Lc,{type:Gr.Warning,message:m})]})})},$h=o.div`
1160
+ `,Ch=({clientX:r=0,flipX:o,clientY:n=0,flipY:a,isOpen:s,onClose:l,onSave:c,withDelete:d,onDelete:p,title:u,titleTooltip:h,warning:m,children:g})=>{const f=i(),{popupRef:x,popupPosition:y,handlePosition:b}=Bl({onClickOutside:l});return Ll({key:"Enter",active:s},c),Ht(()=>b(r,n),[r,n]),0===y.top&&0!==n||0===y.left&&0!==r?null:e(yc,{ref:x,isOpen:s,top:a?void 0:y.top,bottom:a?y.top:void 0,left:o?void 0:y.left,right:o?y.left:void 0,padding:"24px",children:t(Sh,{children:[e(Cc,{text:h,withIcon:!0,children:e(Si,{size:14,children:u})}),t(kh,{children:[g,t(Tn,{$gap:6,children:[e(Dc,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(yt,{})}),e(Dc,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(ft,{fill:f.text.primary})}),d&&e(Dc,{onClick:p,tooltip:"Undo",children:e(It,{})})]})]}),m&&e(Lc,{type:Gr.Warning,message:m})]})})},Eh=o.div`
1155
1161
  position: relative;
1156
- `,wh=({defaultLanguage:r=Br.Unknown,defaultVersion:o="",defaultOtelDistroName:n=null,handleSave:i})=>{const{tier:a}=Vl(),{addNotification:s}=Gs(),{formData:l,handleFormChange:c,resetFormData:d}=$l({language:r,version:o,otelDistroName:n}),[p,u]=jt(!1),h=()=>{u(!1),d()},m=Ht(()=>{if(!l.language)return[];const e=Ps[l.language].community,t=a===Lr.Onprem?Ps[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t($h,{children:[e(Dc,{tooltip:Ao.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(kt,{})}),e(vh,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||ni(l.version)?(await i({...l}),h()):s({type:Gr.Warning,message:Eo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Ao.OVERRIDE_RUNTIME_DETAILS,warning:Ao.OVERRIDE_RUNTIME_WARNING,children:t(In,{$gap:12,children:[t(Tn,{$gap:12,children:[e(lh,{title:Ao.LANGUAGE,options:_s,value:_s.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(oh,{title:Ao.RUNTIME_VERSION,placeholder:Ao.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(lh,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},Sh=o(Tn)`
1162
+ `,Ah=({defaultLanguage:r=Br.Unknown,defaultVersion:o="",defaultOtelDistroName:n=null,handleSave:i})=>{const{tier:a}=Vl(),{addNotification:s}=Gs(),{formData:l,handleFormChange:c,resetFormData:d}=$l({language:r,version:o,otelDistroName:n}),[p,u]=Wt(!1),h=()=>{u(!1),d()},m=Xt(()=>{if(!l.language)return[];const e=Ps[l.language].community,t=a===Lr.Onprem?Ps[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(Eh,{children:[e(Dc,{tooltip:Ao.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(kt,{})}),e(Ch,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||ni(l.version)?(await i({...l}),h()):s({type:Gr.Warning,message:Eo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Ao.OVERRIDE_RUNTIME_DETAILS,warning:Ao.OVERRIDE_RUNTIME_WARNING,children:t(In,{$gap:12,children:[t(Tn,{$gap:12,children:[e(hh,{title:Ao.LANGUAGE,options:_s,value:_s.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(lh,{title:Ao.RUNTIME_VERSION,placeholder:Ao.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(hh,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},Dh=o(Tn)`
1157
1163
  width: 100%;
1158
1164
  justify-content: center;
1159
- `,kh=({containerName:o,runtimeInfo:n,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??n,p=d?.language??Br.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,x=m?Gr.Success:g?Gr.Info:Gr.Warning,y=m?Vr.INSTRUMENTED:g?Vr.NOT_INSTRUMENTED:Vr.INSTRUMENTING;return e(Xd,{title:o,subTitle:`${p?Rs[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:Lo(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(Sh,{children:e(Si,{size:12,family:"secondary",color:c.text.info,children:ii(g)})})},renderActions:()=>t(r,{children:[e(kd,{status:x,title:y,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(kd,{status:Gr.Default,forceIcon:Nt,title:Ao.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(wh,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:o})})]})})},Ch=o.tr`
1165
+ `,Th=({containerName:o,runtimeInfo:n,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??n,p=d?.language??Br.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,x=m?Gr.Success:g?Gr.Info:Gr.Warning,y=m?Vr.INSTRUMENTED:g?Vr.NOT_INSTRUMENTED:Vr.INSTRUMENTING;return e(Xd,{title:o,subTitle:`${p?Os[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:Lo(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(Dh,{children:e(Si,{size:12,family:"secondary",color:c.text.info,children:ii(g)})})},renderActions:()=>t(r,{children:[e(kd,{status:x,title:y,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(kd,{status:Gr.Default,forceIcon:Nt,title:Ao.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(Ah,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:o})})]})})},Ih=o.tr`
1160
1166
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1161
1167
  opacity: ${({$faded:e})=>e?.5:1};
1162
- `,Eh=o.td`
1168
+ `,Nh=o.td`
1163
1169
  position: relative;
1164
1170
  width: fit-content;
1165
1171
  padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
@@ -1167,7 +1173,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1167
1173
  font-family: ${({theme:e})=>e.font_family.primary};
1168
1174
  font-size: 14px;
1169
1175
  white-space: nowrap;
1170
- `,Ah=o(Si)`
1176
+ `,Rh=o(Si)`
1171
1177
  font-size: 14px;
1172
1178
  color: ${({$color:e,theme:t})=>e??t.text.secondary};
1173
1179
  line-height: 16px;
@@ -1180,7 +1186,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1180
1186
  display: -webkit-box;
1181
1187
  -webkit-line-clamp: 2;
1182
1188
  -webkit-box-orient: vertical;
1183
- `,Dh=o.div`
1189
+ `,Oh=o.div`
1184
1190
  position: absolute;
1185
1191
  top: 0;
1186
1192
  left: 0;
@@ -1189,56 +1195,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1189
1195
  height: ${({$height:e})=>e}px;
1190
1196
  border-radius: 16px;
1191
1197
  background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+sl["020"]:e.colors.majestic_blue+sl["030"]:r?e.text[r]+sl["010"]:e.colors.secondary+sl["005"]};
1192
- `,Th=({index:r,columns:o,cells:n,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=Al(),[p,u]=jt(!1);return e(Ch,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:o.map(({key:o},i)=>{const s=n.find(({columnKey:e})=>e===o);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(Eh,{$isFirst:0===i,children:[m?e(_d,{icon:m}):g?e(g,{}):e(Cc,{text:h&&l?String(l):"",children:e(Ah,{$color:u,children:Qn(l)?"-":l})}),0===i&&e(Dh,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${o}-${l}-${r}-${i}`)})})},Ih=o.div`
1198
+ `,_h=({index:r,columns:o,cells:n,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=Al(),[p,u]=Wt(!1);return e(Ih,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:o.map(({key:o},i)=>{const s=n.find(({columnKey:e})=>e===o);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(Nh,{$isFirst:0===i,children:[m?e(_d,{icon:m}):g?e(g,{}):e(Cc,{text:h&&l?String(l):"",children:e(Rh,{$color:u,children:Qn(l)?"-":l})}),0===i&&e(Oh,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${o}-${l}-${r}-${i}`)})})},Fh=o.div`
1193
1199
  width: 100%;
1194
- `,Nh=o.table`
1200
+ `,Ph=o.table`
1195
1201
  position: relative;
1196
1202
  z-index: 0;
1197
1203
  width: 100%;
1198
1204
  border-collapse: separate;
1199
1205
  border-spacing: 0 12px;
1200
- `,Oh=o.thead`
1206
+ `,Lh=o.thead`
1201
1207
  // only supported with "border-collapse: collapse;"
1202
1208
  // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1203
1209
  // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1204
- `,Rh=o.th`
1210
+ `,zh=o.th`
1205
1211
  // only required with "border-collapse: separate;"
1206
1212
  border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1207
1213
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1208
1214
 
1209
1215
  padding: 8px;
1210
- `,_h=o(Tn)`
1216
+ `,Mh=o(Tn)`
1211
1217
  cursor: pointer;
1212
1218
  &:hover {
1213
1219
  * {
1214
1220
  color: ${({theme:e})=>e.text.secondary};
1215
1221
  }
1216
1222
  }
1217
- `,Fh=o(Si)`
1223
+ `,Bh=o(Si)`
1218
1224
  color: ${({theme:e})=>e.text.darker_grey};
1219
1225
  font-family: ${({theme:e})=>e.font_family.secondary};
1220
1226
  text-transform: uppercase;
1221
1227
  font-size: 12px;
1222
1228
  font-weight: 500;
1223
1229
  text-wrap: nowrap;
1224
- `,Ph=o.tbody``,Lh=({columns:r,rows:o})=>{const[n,i]=jt(Pr.Ascending),[a,s]=jt("name"),l=Gt(e=>{a===e?i(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending):(s(e),i(Pr.Ascending))},[a]),c=Ht(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...o].sort((e,r)=>{const o=t(e,a),i=t(r,a);return(n===Pr.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o).map(({status:t,faded:o,cells:n,onClick:i},a)=>e(Th,{index:a,columns:r,cells:n,onClick:i,status:t,faded:o},`row-${a}`))},[r,o,a,n]);return e(Ih,{children:t(Nh,{children:[e(Oh,{children:e("tr",{children:r.map(({key:r,title:o,sortable:n})=>e(Rh,{children:n?t(_h,{onClick:()=>l(r),children:[e(Ot,{}),e(Fh,{children:o})]}):e(Fh,{children:o})},`column-${r}`))})}),e(Ph,{children:c})]})})};var zh;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(zh||(zh={}));const Mh=o.div`
1230
+ `,Uh=o.tbody``,jh=({columns:r,rows:o})=>{const[n,i]=Wt(Pr.Ascending),[a,s]=Wt("name"),l=Vt(e=>{a===e?i(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending):(s(e),i(Pr.Ascending))},[a]),c=Xt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...o].sort((e,r)=>{const o=t(e,a),i=t(r,a);return(n===Pr.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o).map(({status:t,faded:o,cells:n,onClick:i},a)=>e(_h,{index:a,columns:r,cells:n,onClick:i,status:t,faded:o},`row-${a}`))},[r,o,a,n]);return e(Fh,{children:t(Ph,{children:[e(Lh,{children:e("tr",{children:r.map(({key:r,title:o,sortable:n})=>e(zh,{children:n?t(Mh,{onClick:()=>l(r),children:[e(Rt,{}),e(Bh,{children:o})]}):e(Bh,{children:o})},`column-${r}`))})}),e(Uh,{children:c})]})})};var Wh;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(Wh||(Wh={}));const Hh=o.div`
1225
1231
  display: flex;
1226
1232
  flex-wrap: wrap;
1227
1233
  gap: 16px 32px;
1228
1234
  width: 100%;
1229
- `,Bh=o.div`
1235
+ `,Xh=o.div`
1230
1236
  display: flex;
1231
1237
  flex-direction: column;
1232
1238
  gap: 2px;
1233
1239
  width: ${({$width:e})=>e};
1234
- `,Uh=o(Si)`
1240
+ `,Gh=o(Si)`
1235
1241
  color: ${({theme:e})=>e.text.grey};
1236
1242
  font-size: 10px;
1237
1243
  line-height: 16px;
1238
- `,jh=o(Si)`
1244
+ `,Vh=o(Si)`
1239
1245
  font-size: 12px;
1240
1246
  white-space: pre-wrap;
1241
- `,Wh=({data:r})=>e(Mh,{children:r?.map(({type:r,title:o,titleIcon:n,tooltip:i,value:a},s)=>t(Bh,{$width:r&&[zh.Code,zh.Table].includes(r)?"inherit":r&&[zh.Loader,zh.Divider,zh.CopyText].includes(r)?"100%":"unset",children:[e(Cc,{text:i,withIcon:!0,children:t(Tn,{$alignItems:"center",$gap:4,children:[n&&e(n,{size:14}),!!o&&e(Uh,{transform:"capitalize",children:o})]})}),e(Hh,{type:r,value:a})]},`data-field-${o||(a?JSON.stringify(a):s)}`))}),Hh=({type:t,value:r})=>{const o=i();switch(t){case zh.Divider:return e(hc,{length:"100%",margin:"0"});case zh.Loader:return e(Nn,{children:e(pd,{scale:1.2})});case zh.Monitors:return e(Md,{monitors:r?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case zh.Badge:{const{label:t,filled:o,...n}=qn(r,{label:"-",filled:!1});return e(fl,{label:t,filled:o,...n})}case zh.Code:{const{language:t,code:o,...n}=qn(r,{language:"",code:""});return e(id,{language:t,code:o,...n})}case zh.Table:{const{columns:t,rows:o,...n}=qn(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(Lh,{columns:t,rows:o,...n})}case zh.ActiveStatus:return e(kd,{status:"true"==r?Gr.Success:Gr.Error,title:"true"==r?Ao.ENABLED:Ao.DISABLED,size:10,withIcon:!0,withBorder:!0});case zh.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(Ad,{value:t})}default:return e(jh,{children:ui("string"==typeof r?r||"-":"")})}},Xh=o.div`
1247
+ `,Kh=({data:r})=>e(Hh,{children:r?.map(({type:r,title:o,titleIcon:n,tooltip:i,value:a},s)=>t(Xh,{$width:r&&[Wh.Code,Wh.Table].includes(r)?"inherit":r&&[Wh.Loader,Wh.Divider,Wh.CopyText].includes(r)?"100%":"unset",children:[e(Cc,{text:i,withIcon:!0,children:t(Tn,{$alignItems:"center",$gap:4,children:[n&&e(n,{size:14}),!!o&&e(Gh,{transform:"capitalize",children:o})]})}),e(qh,{type:r,value:a})]},`data-field-${o||(a?JSON.stringify(a):s)}`))}),qh=({type:t,value:r})=>{const o=i();switch(t){case Wh.Divider:return e(hc,{length:"100%",margin:"0"});case Wh.Loader:return e(Nn,{children:e(pd,{scale:1.2})});case Wh.Monitors:return e(Md,{monitors:r?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Wh.Badge:{const{label:t,filled:o,...n}=qn(r,{label:"-",filled:!1});return e(fl,{label:t,filled:o,...n})}case Wh.Code:{const{language:t,code:o,...n}=qn(r,{language:"",code:""});return e(id,{language:t,code:o,...n})}case Wh.Table:{const{columns:t,rows:o,...n}=qn(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(jh,{columns:t,rows:o,...n})}case Wh.ActiveStatus:return e(kd,{status:"true"==r?Gr.Success:Gr.Error,title:"true"==r?Ao.ENABLED:Ao.DISABLED,size:10,withIcon:!0,withBorder:!0});case Wh.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(Ad,{value:t})}default:return e(Vh,{children:ui("string"==typeof r?r||"-":"")})}},Jh=o.div`
1242
1248
  display: flex;
1243
1249
  flex-direction: column;
1244
1250
  align-items: flex-start;
@@ -1249,27 +1255,27 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1249
1255
  border: 1px solid ${({theme:e})=>e.colors.border};
1250
1256
  background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+sl["010"]:"transparent"};
1251
1257
  transition: background-color 0.3s;
1252
- `,Gh=o.div`
1258
+ `,Yh=o.div`
1253
1259
  width: 100%;
1254
1260
  display: flex;
1255
1261
  flex-direction: column;
1256
1262
  gap: 4px;
1257
1263
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
1258
- `,Vh=o(Si)`
1264
+ `,Qh=o(Si)`
1259
1265
  width: 100%;
1260
1266
  display: flex;
1261
1267
  align-items: center;
1262
1268
  gap: 8px;
1263
1269
  font-size: 16px;
1264
- `,Kh=o(Si)`
1270
+ `,Zh=o(Si)`
1265
1271
  font-size: 12px;
1266
1272
  color: ${({theme:e})=>e.text.grey};
1267
- `,qh=o(Tn)`
1273
+ `,em=o(Tn)`
1268
1274
  margin-left: auto;
1269
1275
  gap: 8px;
1270
- `,Jh=({title:r="Details",titleBadge:o,titleIcon:n,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=jt(l),[h,m]=jt(!1);return t(Xh,{$hovered:h,children:[r||n||i||a?t(Gh,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(Tn,{children:[t(Tn,{$alignItems:"center",$gap:8,children:[n&&e(Tn,{$alignItems:"center",children:e(n,{size:20})}),!!r&&e(Vh,{transform:"capitalize",children:r}),o===Kr.Loading?e(pd,{}):void 0!==o&&e(fl,{label:o})]}),(!!a||s)&&t(qh,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(hd,{extend:p})]})]}),!!i&&e(Kh,{children:i})]}):null,(!s||s&&p)&&(d||e(Wh,{data:c}))]})},Yh=o.div`
1276
+ `,tm=({title:r="Details",titleBadge:o,titleIcon:n,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Wt(l),[h,m]=Wt(!1);return t(Jh,{$hovered:h,children:[r||n||i||a?t(Yh,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(Tn,{children:[t(Tn,{$alignItems:"center",$gap:8,children:[n&&e(Tn,{$alignItems:"center",children:e(n,{size:20})}),!!r&&e(Qh,{transform:"capitalize",children:r}),o===Kr.Loading?e(pd,{}):void 0!==o&&e(fl,{label:o})]}),(!!a||s)&&t(em,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(hd,{extend:p})]})]}),!!i&&e(Zh,{children:i})]}):null,(!s||s&&p)&&(d||e(Kh,{data:c}))]})},rm=o.div`
1271
1277
  visibility: hidden;
1272
- `,Qh=o(Tn)`
1278
+ `,om=o(Tn)`
1273
1279
  align-self: stretch;
1274
1280
  width: calc(100% - 32px);
1275
1281
  padding: 16px;
@@ -1279,58 +1285,58 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1279
1285
  &:hover {
1280
1286
  cursor: pointer;
1281
1287
  background-color: ${e.colors.secondary+sl["010"]};
1282
- ${Yh} {
1288
+ ${rm} {
1283
1289
  visibility: visible;
1284
1290
  }
1285
1291
  }
1286
- `:`\n &:hover {\n ${Yh} {\n visibility: visible;\n }\n }\n `}
1287
- `,Zh=o(Tn)`
1292
+ `:`\n &:hover {\n ${rm} {\n visibility: visible;\n }\n }\n `}
1293
+ `,nm=o(Tn)`
1288
1294
  margin-left: auto;
1289
1295
  gap: 8px;
1290
- `,em=o(Si)`
1296
+ `,im=o(Si)`
1291
1297
  font-size: 10px;
1292
1298
  color: ${({theme:e})=>e.text.grey};
1293
- `,tm=({title:o,subTitle:n,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=jt(0),h=Xt(null),m=Xt(null);return Wt(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(Qh,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(Ld,{id:`${o}-${n}`,icons:a,iconSrcs:s}),o&&e(Nd,{maxWidth:p/2,text:o,textSize:14}),o&&n&&e(em,{children:"•"}),n&&e(Nd,{maxWidth:p/2,text:n,textSize:10,textColor:d.text.grey}),e(Zh,{ref:m,children:c&&t(r,{children:[e(hc,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},rm=({isOpen:t,noOverlay:r,name:o,type:n,isLastItem:i,onApprove:a,onDeny:s})=>{const l=n===jr.Source?"uninstrument":"delete";return e(Xc,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Gr.Warning,title:`You're about to ${l} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},om=o(vl)`
1299
+ `,am=({title:o,subTitle:n,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Wt(0),h=Gt(null),m=Gt(null);return Ht(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(om,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(Ld,{id:`${o}-${n}`,icons:a,iconSrcs:s}),o&&e(Nd,{maxWidth:p/2,text:o,textSize:14}),o&&n&&e(im,{children:"•"}),n&&e(Nd,{maxWidth:p/2,text:n,textSize:10,textColor:d.text.grey}),e(nm,{ref:m,children:c&&t(r,{children:[e(hc,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},sm=({isOpen:t,noOverlay:r,name:o,type:n,isLastItem:i,onApprove:a,onDeny:s})=>{const l=n===jr.Source?"uninstrument":"delete";return e(Xc,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Gr.Warning,title:`You're about to ${l} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},lm=o(vl)`
1294
1300
  display: flex;
1295
1301
  align-items: center;
1296
1302
  justify-content: center;
1297
1303
  font-size: 14px;
1298
1304
  gap: 6px;
1299
1305
  min-width: 100px;
1300
- `,nm=({endpoint:r="/",variant:o="secondary"})=>t(om,{variant:o,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(Rt,{size:18}),"Docs"]}),im=o(Tn)`
1306
+ `,cm=({endpoint:r="/",variant:o="secondary"})=>t(lm,{variant:o,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(Ot,{size:18}),"Docs"]}),dm=o(Tn)`
1301
1307
  border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1302
- `,am=o.div`
1308
+ `,pm=o.div`
1303
1309
  display: flex;
1304
1310
  align-items: center;
1305
1311
  border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1306
1312
  cursor: pointer;
1307
- `,sm=o(Si)`
1313
+ `,um=o(Si)`
1308
1314
  padding: 12px;
1309
1315
  font-size: 14px;
1310
1316
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1311
- `,lm=({tabs:r,hideBorder:o=!1})=>r?.length?e(im,{$hideBorder:o,children:r.map(({label:r,icon:o,onClick:n,selected:i})=>t(am,{onClick:n,$selected:i,children:[e(sm,{$selected:i,children:r}),o&&e(o,{})]},`tab-${r}`))}):null,cm=o.section`
1317
+ `,hm=({tabs:r,hideBorder:o=!1})=>r?.length?e(dm,{$hideBorder:o,children:r.map(({label:r,icon:o,onClick:n,selected:i})=>t(pm,{onClick:n,$selected:i,children:[e(um,{$selected:i,children:r}),o&&e(o,{})]},`tab-${r}`))}):null,mm=o.section`
1312
1318
  padding: 0px 32px;
1313
1319
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1314
- `,dm=o.div`
1320
+ `,gm=o.div`
1315
1321
  height: 76px;
1316
1322
  display: flex;
1317
1323
  justify-content: space-between;
1318
1324
  flex-shrink: 0;
1319
1325
  align-self: stretch;
1320
- `,pm=o.div`
1326
+ `,fm=o.div`
1321
1327
  display: flex;
1322
1328
  align-items: center;
1323
1329
  gap: ${({$gap:e})=>e||16}px;
1324
- `,um=o(Si)`
1330
+ `,xm=o(Si)`
1325
1331
  font-size: 18px;
1326
1332
  line-height: 26px;
1327
1333
  max-width: ${({$maxWidth:e})=>e};
1328
1334
  overflow: hidden;
1329
1335
  white-space: nowrap;
1330
1336
  text-overflow: ellipsis;
1331
- `,hm=o(vl)`
1337
+ `,ym=o(vl)`
1332
1338
  gap: 8px;
1333
- `,mm=o(vl)``,gm=({onClose:r,width:o,icons:n,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(cm,{children:[t(dm,{children:[t(pm,{children:[n?.length||i?.length?e(Ld,{icons:n,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(Cc,{text:s||a,withIcon:!!s,children:a&&e(um,{$maxWidth:`calc(${o} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(pm,{$gap:2,children:[c,d.map((t,r)=>e(hm,{...t},`header-action-button-${r}`)),e(mm,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(yt,{size:12})})]})]}),e(lm,{tabs:p,hideBorder:!0})]}),fm=o.div`
1339
+ `,bm=o(vl)``,vm=({onClose:r,width:o,icons:n,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(mm,{children:[t(gm,{children:[t(fm,{children:[n?.length||i?.length?e(Ld,{icons:n,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(Cc,{text:s||a,withIcon:!!s,children:a&&e(xm,{$maxWidth:`calc(${o} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(fm,{$gap:2,children:[c,d.map((t,r)=>e(ym,{...t},`header-action-button-${r}`)),e(bm,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(yt,{size:12})})]})]}),e(hm,{tabs:p,hideBorder:!0})]}),$m=o.div`
1334
1340
  display: flex;
1335
1341
  justify-content: space-between;
1336
1342
  gap: 8px;
@@ -1339,16 +1345,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1339
1345
  background-color: ${({theme:e})=>e.colors.translucent_bg};
1340
1346
  transform: translateY(100%);
1341
1347
  animation-name: ${cl.in.bottom};
1342
- `,xm=o(Tn)`
1348
+ `,wm=o(Tn)`
1343
1349
  margin-right: auto;
1344
- `,ym=o(Tn)`
1350
+ `,Sm=o(Tn)`
1345
1351
  margin: 0 auto;
1346
- `,bm=o(Tn)`
1352
+ `,km=o(Tn)`
1347
1353
  margin-left: auto;
1348
- `,vm=o(vl)`
1354
+ `,Cm=o(vl)`
1349
1355
  min-width: 140px;
1350
1356
  font-size: 14px;
1351
- `,$m=({isOpen:r,leftButtons:o=[],centerButtons:n=[],rightButtons:i=[]})=>r?t(fm,{children:[e(xm,{children:o.map((t,r)=>e(vm,{...t},`footer-left-button-${r}`))}),e(ym,{children:n.map((t,r)=>e(vm,{...t},`footer-center-button-${r}`))}),e(bm,{children:i.map((t,r)=>e(vm,{...t},`footer-right-button-${r}`))})]}):null,wm=o.div`
1357
+ `,Em=({isOpen:r,leftButtons:o=[],centerButtons:n=[],rightButtons:i=[]})=>r?t($m,{children:[e(wm,{children:o.map((t,r)=>e(Cm,{...t},`footer-left-button-${r}`))}),e(Sm,{children:n.map((t,r)=>e(Cm,{...t},`footer-center-button-${r}`))}),e(km,{children:i.map((t,r)=>e(Cm,{...t},`footer-right-button-${r}`))})]}):null,Am=o.div`
1352
1358
  position: fixed;
1353
1359
  top: 0;
1354
1360
  bottom: 0;
@@ -1359,36 +1365,36 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1359
1365
  box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+sl["010"]};
1360
1366
  overflow-y: auto;
1361
1367
  animation-name: ${({$position:e})=>cl.in[e]};
1362
- `,Sm=o.div`
1368
+ `,Dm=o.div`
1363
1369
  display: flex;
1364
1370
  flex-direction: column;
1365
1371
  height: 100%;
1366
- `,km=o.div`
1372
+ `,Tm=o.div`
1367
1373
  flex-grow: 1;
1368
1374
  padding: 24px 32px;
1369
1375
  overflow-y: auto;
1370
- `,Cm=({isOpen:o,onClose:n,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(Ll({key:"Escape",active:o&&i},()=>n()),kl(o),o?dr.createPortal(t(r,{children:[e(Rn,{hidden:!o,onClick:n}),e(wm,{"data-id":"drawer",$position:a,$width:s,children:t(Sm,{children:[e(gm,{onClose:n,width:s,...c}),e(km,{children:l}),e($m,{...d})]})})]}),document.body):null),Em=({error:r})=>{const o=i(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:n.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:n.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:n.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:n.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:n.infoText,children:"Try refreshing the page or contact support"}),e(vl,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},Am=({children:t})=>e(mr,{FallbackComponent:({error:t,...r})=>e(al,{children:e(Em,{...r,error:t})}),children:t}),Dm=o(Tn)`
1376
+ `,Im=({isOpen:o,onClose:n,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(Ll({key:"Escape",active:o&&i},()=>n()),kl(o),o?dr.createPortal(t(r,{children:[e(On,{hidden:!o,onClick:n}),e(Am,{"data-id":"drawer",$position:a,$width:s,children:t(Dm,{children:[e(vm,{onClose:n,width:s,...c}),e(Tm,{children:l}),e(Em,{...d})]})})]}),document.body):null),Nm=({error:r})=>{const o=i(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:n.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:n.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:n.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:n.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:n.infoText,children:"Try refreshing the page or contact support"}),e(vl,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},Rm=({children:t})=>e(mr,{FallbackComponent:({error:t,...r})=>e(al,{children:e(Nm,{...r,error:t})}),children:t}),Om=o(Tn)`
1371
1377
  position: relative;
1372
1378
  width: calc(100% - 24px);
1373
1379
  padding: 12px;
1374
1380
  background-color: ${({theme:e})=>e.colors.dark_grey};
1375
1381
  border-bottom: 1px solid ${({theme:e})=>e.colors.border+sl["050"]};
1376
- `,Tm=o(Tn)`
1382
+ `,_m=o(Tn)`
1377
1383
  margin-right: auto;
1378
1384
  margin-left: 32px;
1379
1385
  gap: 12px;
1380
- `,Im=o(Tn)`
1386
+ `,Fm=o(Tn)`
1381
1387
  margin-left: auto;
1382
1388
  margin-right: 32px;
1383
1389
  gap: 12px;
1384
- `,Nm=o(Tn)`
1390
+ `,Pm=o(Tn)`
1385
1391
  position: absolute;
1386
1392
  left: 50%;
1387
1393
  transform: translateX(-50%);
1388
1394
  gap: 12px;
1389
- `,Om=({left:r=[],center:o=[],right:n=[]})=>t(Dm,{children:[e(Tm,{children:r.map((t,r)=>t&&e(Ut,{children:t},r))}),e(Nm,{children:o.map((t,r)=>t&&e(Ut,{children:t},r))}),e(Im,{children:n.map((t,r)=>t&&e(Ut,{children:t},r))})]}),Rm=o(Si)`
1395
+ `,Lm=({left:r=[],center:o=[],right:n=[]})=>t(Om,{children:[e(_m,{children:r.map((t,r)=>t&&e(jt,{children:t},r))}),e(Pm,{children:o.map((t,r)=>t&&e(jt,{children:t},r))}),e(Fm,{children:n.map((t,r)=>t&&e(jt,{children:t},r))})]}),zm=o(Si)`
1390
1396
  color: ${({theme:e})=>e.text.grey};
1391
- `,_m=({icon:r,title:o,badge:n,badgeTooltip:i,loading:a})=>t(Tn,{$gap:6,children:[r&&e(r,{}),e(Rm,{size:14,children:o}),void 0!==n&&e(Cc,{text:i,children:e(fl,{label:n})}),a&&e(pd,{})]}),Fm=o.div`
1397
+ `,Mm=({icon:r,title:o,badge:n,badgeTooltip:i,loading:a})=>t(Tn,{$gap:6,children:[r&&e(r,{}),e(zm,{size:14,children:o}),void 0!==n&&e(Cc,{text:i,children:e(fl,{label:n})}),a&&e(pd,{})]}),Bm=o.div`
1392
1398
  width: fit-content;
1393
1399
  height: fit-content;
1394
1400
  padding: 4px;
@@ -1400,7 +1406,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1400
1406
  flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1401
1407
  align-items: center;
1402
1408
  justify-content: center;
1403
- `,Pm=o.div`
1409
+ `,Um=o.div`
1404
1410
  width: 32px;
1405
1411
  height: 32px;
1406
1412
 
@@ -1413,63 +1419,63 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1413
1419
  justify-content: center;
1414
1420
 
1415
1421
  cursor: pointer;
1416
- `,Lm=({orientation:r="vertical",flip:o,mainIcons:n,subIcons:i})=>t(Fm,{$orientation:r,$flip:o,children:[n.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(Cc,{text:n,children:e(Pm,{$selected:r,onClick:o,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!n.length&&!!i.length&&e(hc,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(Cc,{text:n,children:e(Pm,{$selected:r,onClick:o,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),zm=o.div`
1422
+ `,jm=({orientation:r="vertical",flip:o,mainIcons:n,subIcons:i})=>t(Bm,{$orientation:r,$flip:o,children:[n.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(Cc,{text:n,children:e(Um,{$selected:r,onClick:o,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!n.length&&!!i.length&&e(hc,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(Cc,{text:n,children:e(Um,{$selected:r,onClick:o,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),Wm=o.div`
1417
1423
  display: flex;
1418
1424
  flex-direction: column;
1419
1425
  width: 100%;
1420
- `,Mm=o.div`
1426
+ `,Hm=o.div`
1421
1427
  display: flex;
1422
1428
  flex-direction: column;
1423
1429
  gap: 8px;
1424
- `,Bm=o.div`
1430
+ `,Xm=o.div`
1425
1431
  display: flex;
1426
1432
  align-items: center;
1427
1433
  gap: 16px;
1428
- `,Um=o(Dc)`
1434
+ `,Gm=o(Dc)`
1429
1435
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1430
1436
  opacity: ${({$disabled:e})=>e?.5:1};
1431
- `,jm=({initialValues:r=[],value:o,onChange:n,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=jt(o||r);Wt(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Xt(JSON.stringify(p));Wt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,n&&n(p))},[p]);const h=(e,t)=>{d(r=>{const o=[...r];return o[t]=e,o})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(zm,{children:[e(Ju,{title:i,required:s,tooltip:a}),e(Mm,{children:c.map((r,o)=>{const n=o===c.length-1;return t(Bm,{children:[e(oh,{value:r,onChange:e=>h(e.target.value,o),hasError:!!l,autoFocus:Qn(r)&&!m&&n}),o===c.length-1&&e(Um,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(St,{})}),e(Um,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(o),children:e(It,{})})]},`input-list-${o}`)})}),!!l&&e(Ei,{children:l})]})},Wm=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:s,errorMessage:l,limitFieldsPerRow:c})=>{const{keyName:d,title:p,tooltip:u,placeholder:h,required:m,type:g,componentType:f,options:x,renderCondition:y}=t,b=o[d];if(y&&!y(o))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Hr.Dropdown:const t=x?.find(e=>e.id===b);return e(lh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:x||[],value:t,onSelect:e=>s(d,e.id,n),onDeselect:()=>s(d,"",n),hasError:!!l&&(!m||m&&Qn(b))});case"multi-dropdown":const o=Array.isArray(b)&&x?.filter(e=>b.includes(e.id))||[];return e(lh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:x||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,n)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,n)},hasError:!!l&&(!m||m&&Qn(b))});default:const f=i>1&&n===i-1&&0===r&&Qn(b);return e(oh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,type:g,required:m,autoFocus:f,value:b,onChange:({target:{value:e}})=>s(d,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&Qn(b))})}})()},`input-table-${n}-${d}`)},Hm=o.div`
1437
+ `,Vm=({initialValues:r=[],value:o,onChange:n,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Wt(o||r);Ht(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Gt(JSON.stringify(p));Ht(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,n&&n(p))},[p]);const h=(e,t)=>{d(r=>{const o=[...r];return o[t]=e,o})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(Wm,{children:[e(th,{title:i,required:s,tooltip:a}),e(Hm,{children:c.map((r,o)=>{const n=o===c.length-1;return t(Xm,{children:[e(lh,{value:r,onChange:e=>h(e.target.value,o),hasError:!!l,autoFocus:Qn(r)&&!m&&n}),o===c.length-1&&e(Gm,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(St,{})}),e(Gm,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(o),children:e(It,{})})]},`input-list-${o}`)})}),!!l&&e(Ei,{children:l})]})},Km=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:s,errorMessage:l,limitFieldsPerRow:c})=>{const{keyName:d,title:p,tooltip:u,placeholder:h,required:m,type:g,componentType:f,options:x,renderCondition:y}=t,b=o[d];if(y&&!y(o))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Hr.Dropdown:const t=x?.find(e=>e.id===b);return e(hh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:x||[],value:t,onSelect:e=>s(d,e.id,n),onDeselect:()=>s(d,"",n),hasError:!!l&&(!m||m&&Qn(b))});case"multi-dropdown":const o=Array.isArray(b)&&x?.filter(e=>b.includes(e.id))||[];return e(hh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:x||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,n)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,n)},hasError:!!l&&(!m||m&&Qn(b))});default:const f=i>1&&n===i-1&&0===r&&Qn(b);return e(lh,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,type:g,required:m,autoFocus:f,value:b,onChange:({target:{value:e}})=>s(d,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&Qn(b))})}})()},`input-table-${n}-${d}`)},qm=o.div`
1432
1438
  display: flex;
1433
1439
  flex-direction: column;
1434
1440
  width: 100%;
1435
- `,Xm=o.button`
1441
+ `,Jm=o.button`
1436
1442
  margin-top: ${({$marginTop:e})=>e};
1437
1443
  background: none;
1438
1444
  border: none;
1439
1445
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1440
1446
  opacity: ${({disabled:e})=>e?.5:1};
1441
- `,Gm=({columns:r,initialValues:o=[],value:n,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=jt({}),[p,u]=jt(n||o),h=Ht(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Wt(()=>{if(!p.length){const e={};r.forEach(({keyName:t})=>e[t]=""),d(e),u([e])}},[]);const m=p.filter(e=>{for(const[t,r]of Object.entries(e)){const o=h.get(t);if((!o?.renderCondition||o.renderCondition(e))&&(o?.required&&Qn(r)))return!1}return!0}),g=Xt(JSON.stringify(m)),f=m.length!==p.length,x=`${Math.floor(640/((s||r.length)+.4))}px`;Wt(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const y=(e,t,r)=>{u(o=>{const n=$r(o);return n[r][e]=t,n})},b=Ht(()=>{if(s){const e=[];for(let t=0;;t+=s){const o=r.slice(t,t+s);if(!o.length)break;e.push(o)}return e}return[r]},[s,r]);return t(Hm,{children:[e(Ju,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:o})=>e("th",{style:{maxWidth:x},children:e(Ju,{title:t,required:o,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((o,n)=>t(Ut,{children:[s&&n>0?e("tr",{children:e("td",{colSpan:b.length,children:e(hc,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(Wm,{col:t,colIdx:r,row:o,rowIdx:n,rowsLength:p.length,maxWidth:x,limitFieldsPerRow:s,errorMessage:a,handleChange:y},`input-table-row-${n}-col-${r}`)),0===l&&e("td",{children:e(Xm,{$marginTop:s?"24px":"0",onClick:()=>{return e=n,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>y(t,r===Xr.Number?"0":"",e)));var e},children:e(It,{})})})]},`input-table-matrix-${n}-${l}`))]},`input-table-row-${n}`))})]}),!!a&&e(Ei,{children:a}),e(Cd,{onClick:()=>{u(e=>{const t=$r(e);return t.push($r(c)),t})},disabled:f})]})},Vm=o.div`
1447
+ `,Ym=({columns:r,initialValues:o=[],value:n,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Wt({}),[p,u]=Wt(n||o),h=Xt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Ht(()=>{if(!p.length){const e={};r.forEach(({keyName:t})=>e[t]=""),d(e),u([e])}},[]);const m=p.filter(e=>{for(const[t,r]of Object.entries(e)){const o=h.get(t);if((!o?.renderCondition||o.renderCondition(e))&&(o?.required&&Qn(r)))return!1}return!0}),g=Gt(JSON.stringify(m)),f=m.length!==p.length,x=`${Math.floor(640/((s||r.length)+.4))}px`;Ht(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const y=(e,t,r)=>{u(o=>{const n=$r(o);return n[r][e]=t,n})},b=Xt(()=>{if(s){const e=[];for(let t=0;;t+=s){const o=r.slice(t,t+s);if(!o.length)break;e.push(o)}return e}return[r]},[s,r]);return t(qm,{children:[e(th,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:o})=>e("th",{style:{maxWidth:x},children:e(th,{title:t,required:o,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((o,n)=>t(jt,{children:[s&&n>0?e("tr",{children:e("td",{colSpan:b.length,children:e(hc,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(Km,{col:t,colIdx:r,row:o,rowIdx:n,rowsLength:p.length,maxWidth:x,limitFieldsPerRow:s,errorMessage:a,handleChange:y},`input-table-row-${n}-col-${r}`)),0===l&&e("td",{children:e(Jm,{$marginTop:s?"24px":"0",onClick:()=>{return e=n,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>y(t,r===Xr.Number?"0":"",e)));var e},children:e(It,{})})})]},`input-table-matrix-${n}-${l}`))]},`input-table-row-${n}`))})]}),!!a&&e(Ei,{children:a}),e(Cd,{onClick:()=>{u(e=>{const t=$r(e);return t.push($r(c)),t})},disabled:f})]})},Qm=o.div`
1442
1448
  display: flex;
1443
1449
  flex-direction: column;
1444
1450
  width: 100%;
1445
- `,Km=o.div`
1451
+ `,Zm=o.div`
1446
1452
  display: flex;
1447
1453
  flex-direction: column;
1448
1454
  gap: 8px;
1449
- `,qm=o.div`
1455
+ `,eg=o.div`
1450
1456
  display: flex;
1451
1457
  align-items: center;
1452
1458
  gap: 8px;
1453
- `,Jm=o.div`
1459
+ `,tg=o.div`
1454
1460
  width: 100%;
1455
1461
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1456
- `,Ym=o(Dc)`
1462
+ `,rg=o(Dc)`
1457
1463
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1458
1464
  opacity: ${({$disabled:e})=>e?.5:1};
1459
- `,Qm={key:"",value:""},Zm=({initialKeyValuePairs:r=[],value:o,onChange:n,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=jt(o||r);Wt(()=>{h.length||m([{...Qm}])},[]);const g=h.filter(({key:e,value:t})=>!Qn(e.trim())&&!Qn(t.trim())),f=Xt(JSON.stringify(g));Wt(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,n&&n(g))},[g]);const x=(e,t,r)=>{m(o=>{const n=[...o];return n[r][e]=t,n})},y=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||y&&b;return t(Vm,{children:[e(Ju,{title:i,required:l,tooltip:a}),e(Km,{children:h.map(({key:r,value:o},n)=>t(qm,{children:[e(Jm,{$maxWidth:u,children:e(oh,{placeholder:d,disabled:s,value:r,onChange:e=>x("key",e.target.value,n),hasError:!!c&&(!l||l&&!r),autoFocus:Qn(o)&&!y&&n===h.length-1})}),e(Jm,{$maxWidth:n===h.length-1?u-38:u,children:e(oh,{placeholder:p,disabled:s,value:o,onChange:e=>x("value",e.target.value,n),hasError:!!c&&(!l||l&&Qn(o)),autoFocus:!1})}),n===h.length-1&&e(Ym,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...Qm}),t})},children:e(St,{})}),e(Ym,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{y?(x("key","",e),x("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(n),children:e(It,{})})]},`key-value-input-list-${n}`))}),!!c&&e(Ei,{children:c})]})},eg=a`
1465
+ `,og={key:"",value:""},ng=({initialKeyValuePairs:r=[],value:o,onChange:n,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Wt(o||r);Ht(()=>{h.length||m([{...og}])},[]);const g=h.filter(({key:e,value:t})=>!Qn(e.trim())&&!Qn(t.trim())),f=Gt(JSON.stringify(g));Ht(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,n&&n(g))},[g]);const x=(e,t,r)=>{m(o=>{const n=[...o];return n[r][e]=t,n})},y=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||y&&b;return t(Qm,{children:[e(th,{title:i,required:l,tooltip:a}),e(Zm,{children:h.map(({key:r,value:o},n)=>t(eg,{children:[e(tg,{$maxWidth:u,children:e(lh,{placeholder:d,disabled:s,value:r,onChange:e=>x("key",e.target.value,n),hasError:!!c&&(!l||l&&!r),autoFocus:Qn(o)&&!y&&n===h.length-1})}),e(tg,{$maxWidth:n===h.length-1?u-38:u,children:e(lh,{placeholder:p,disabled:s,value:o,onChange:e=>x("value",e.target.value,n),hasError:!!c&&(!l||l&&Qn(o)),autoFocus:!1})}),n===h.length-1&&e(rg,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...og}),t})},children:e(St,{})}),e(rg,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{y?(x("key","",e),x("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(n),children:e(It,{})})]},`key-value-input-list-${n}`))}),!!c&&e(Ei,{children:c})]})},ig=a`
1460
1466
  0% {
1461
1467
  background-position: 0% 50%;
1462
1468
  }
1463
1469
  100% {
1464
1470
  background-position: 100% 50%;
1465
1471
  }
1466
- `,tg=o(Si)`
1472
+ `,ag=o(Si)`
1467
1473
  background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1468
1474
  background-size: 250% 100%; /* Expand background to allow movement */
1469
1475
  background-clip: text;
1470
1476
  color: transparent;
1471
- animation: ${eg} 1s reverse linear infinite;
1472
- `,rg=({children:t="Loading...",textColor:r,stripColor:o,...n})=>{const a=i(),s=r||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(tg,{$textColor:s,$stripColor:l,...n,children:t})},og=o.div`
1477
+ animation: ${ig} 1s reverse linear infinite;
1478
+ `,sg=({children:t="Loading...",textColor:r,stripColor:o,...n})=>{const a=i(),s=r||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(ag,{$textColor:s,$stripColor:l,...n,children:t})},lg=o.div`
1473
1479
  display: flex;
1474
1480
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1475
1481
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1478,17 +1484,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1478
1484
  border-radius: 32px;
1479
1485
  padding: 8px;
1480
1486
  `}
1481
- `,ng=(e,t)=>!t?.length||!!t?.find(t=>t===e),ig=({isVertical:r,title:o="Monitors",required:n,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=jt(1===s.length),p=Xt(JSON.stringify(s));Wt(()=>{const e=s;e.length||Os.forEach(({id:t})=>{ng(t,a)&&e.push(t)});const t=JSON.stringify(e);return p.current!==t&&(p.current=t,l(e),d(1===e.length)),()=>{p.current=""}},[a]);return t("div",{children:[o&&e(Ju,{title:o,required:n}),e(og,{$isVertical:r,$hasError:!!i,children:Os.map(t=>{const r=ng(t.id,a),o=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(qc,{title:t.value,disabled:!r||c&&o,value:o,onChange:e=>((e,t)=>{const r=e,o=t?[...s,r]:s.filter(e=>e!==r);l(o),d(1===o.length)})(t.id,e)},t.id):null})}),!!i&&e(Ei,{children:i})]})},ag=o.div`
1487
+ `,cg=(e,t)=>!t?.length||!!t?.find(t=>t===e),dg=({isVertical:r,title:o="Monitors",required:n,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Wt(1===s.length),p=Gt(JSON.stringify(s));Ht(()=>{const e=s;e.length||Rs.forEach(({id:t})=>{cg(t,a)&&e.push(t)});const t=JSON.stringify(e);return p.current!==t&&(p.current=t,l(e),d(1===e.length)),()=>{p.current=""}},[a]);return t("div",{children:[o&&e(th,{title:o,required:n}),e(lg,{$isVertical:r,$hasError:!!i,children:Rs.map(t=>{const r=cg(t.id,a),o=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(qc,{title:t.value,disabled:!r||c&&o,value:o,onChange:e=>((e,t)=>{const r=e,o=t?[...s,r]:s.filter(e=>e!==r);l(o),d(1===o.length)})(t.id,e)},t.id):null})}),!!i&&e(Ei,{children:i})]})},pg=o.div`
1482
1488
  display: flex;
1483
1489
  gap: 8px;
1484
1490
  align-items: center;
1485
- `,sg=o(vl)`
1491
+ `,ug=o(vl)`
1486
1492
  display: flex;
1487
1493
  align-items: center;
1488
1494
  justify-content: center;
1489
1495
  gap: 8px;
1490
1496
  min-width: 90px;
1491
- `,lg=({buttons:r})=>{const o=i(),n=({button:e,index:t})=>r.length>1&&0===t&&(e.icon||e.iconSrc),a=({button:t,rotate:r})=>t.icon?e(t.icon,{size:14,rotate:r,fill:o.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(ag,{children:r.map((r,o)=>e(Cc,{text:r.tooltip||"",children:t(sg,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[n({button:r,index:o})&&a({button:r,rotate:0}),r.label,!n({button:r,index:o})&&a({button:r,rotate:180})]},o)},o))})},cg=o.div`
1497
+ `,hg=({buttons:r})=>{const o=i(),n=({button:e,index:t})=>r.length>1&&0===t&&(e.icon||e.iconSrc),a=({button:t,rotate:r})=>t.icon?e(t.icon,{size:14,rotate:r,fill:o.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(pg,{children:r.map((r,o)=>e(Cc,{text:r.tooltip||"",children:t(ug,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[n({button:r,index:o})&&a({button:r,rotate:0}),r.label,!n({button:r,index:o})&&a({button:r,rotate:180})]},o)},o))})},mg=o.div`
1492
1498
  width: 100%;
1493
1499
  height: 100%;
1494
1500
 
@@ -1496,26 +1502,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1496
1502
  animation: none !important;
1497
1503
  transition: none !important;
1498
1504
  }
1499
- `,dg=({width:t="100%",height:r="100%",gap:o=0,elements:n,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Xt(null),l=Ht(()=>o?n.map((t,r)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${r}`)):n,[n,o]),c=Gt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(fr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(cg,{children:d}):d},pg=o.div`
1505
+ `,gg=({width:t="100%",height:r="100%",gap:o=0,elements:n,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Gt(null),l=Xt(()=>o?n.map((t,r)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${r}`)):n,[n,o]),c=Vt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(fr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(mg,{children:d}):d},fg=o.div`
1500
1506
  display: flex;
1501
1507
  justify-content: space-between;
1502
1508
  align-items: center;
1503
1509
  gap: 16px;
1504
- `,ug=o.div`
1510
+ `,xg=o.div`
1505
1511
  display: flex;
1506
1512
  flex-direction: column;
1507
1513
  gap: 4px;
1508
- `,hg=o.div`
1514
+ `,yg=o.div`
1509
1515
  display: flex;
1510
1516
  align-items: center;
1511
1517
  gap: 8px;
1512
- `,mg=o(Si)``,gg=o(Si)``,fg=({title:r,description:o,badgeLabel:n,icon:i,actionButton:a,size:s="medium"})=>{const l="small"===s?16:"medium"===s?20:24,c="small"===s?12:"medium"===s?14:16;return t(pg,{children:[t(ug,{children:[t(hg,{children:[i&&e(i,{size:l}),e(mg,{weight:300,size:l,children:r}),void 0!==n&&e(fl,{label:n,filled:!!n})]}),e(gg,{weight:200,opacity:.8,size:c,children:o})]}),a&&e("div",{children:a})]})},xg=o.div`
1518
+ `,bg=o(Si)``,vg=o(Si)``,$g=({title:r,description:o,badgeLabel:n,icon:i,actionButton:a,size:s="medium"})=>{const l="small"===s?16:"medium"===s?20:24,c="small"===s?12:"medium"===s?14:16;return t(fg,{children:[t(xg,{children:[t(yg,{children:[i&&e(i,{size:l}),e(bg,{weight:300,size:l,children:r}),void 0!==n&&e(fl,{label:n,filled:!!n})]}),e(vg,{weight:200,opacity:.8,size:c,children:o})]}),a&&e("div",{children:a})]})},wg=o.div`
1513
1519
  position: relative;
1514
1520
  gap: 0;
1515
1521
  z-index: 0;
1516
1522
  display: grid;
1517
1523
  grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1518
- `,yg=o.button`
1524
+ `,Sg=o.button`
1519
1525
  flex: 1;
1520
1526
  display: flex;
1521
1527
  align-items: center;
@@ -1529,7 +1535,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1529
1535
  &:hover {
1530
1536
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1531
1537
  }
1532
- `,bg=o.div`
1538
+ `,kg=o.div`
1533
1539
  position: absolute;
1534
1540
  top: ${({$y:e})=>e}px;
1535
1541
  left: ${({$x:e})=>e}px;
@@ -1539,7 +1545,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1539
1545
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1540
1546
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1541
1547
  transition: all 0.3s;
1542
- `,vg=({options:r=[],selected:o,setSelected:n})=>{const i=r.findIndex(e=>e.value===o),[a,s]=jt(r[i]?.selectedBgColor||""),[l,c]=jt({width:0,height:0}),[d,p]=jt({x:0,y:0}),u=Xt(null);return Wt(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[o,i]),t(xg,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=o===l;return t(yg,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{n(l),s(c||"")},children:[i&&e(i,{}),a&&e(Si,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(bg,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},$g=o(vl)`
1548
+ `,Cg=({options:r=[],selected:o,setSelected:n})=>{const i=r.findIndex(e=>e.value===o),[a,s]=Wt(r[i]?.selectedBgColor||""),[l,c]=Wt({width:0,height:0}),[d,p]=Wt({x:0,y:0}),u=Gt(null);return Ht(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[o,i]),t(wg,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=o===l;return t(Sg,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{n(l),s(c||"")},children:[i&&e(i,{}),a&&e(Si,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(kg,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},Eg=o(vl)`
1543
1549
  gap: 8px;
1544
1550
  text-transform: none;
1545
1551
  text-decoration: none;
@@ -1553,71 +1559,71 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1553
1559
  &.selected {
1554
1560
  background-color: ${({theme:e})=>e.colors.majestic_blue+sl["030"]};
1555
1561
  }
1556
- `,wg=o(Si)`
1562
+ `,Ag=o(Si)`
1557
1563
  white-space: nowrap;
1558
1564
  overflow: hidden;
1559
1565
  text-overflow: ellipsis;
1560
1566
  font-size: 14px;
1561
- `,Sg=({label:r,onClick:o,icon:n,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t($g,{onClick:o,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[n&&e("div",{children:e(n,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(wg,{children:r}),c&&e("div",{children:e(ft,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(fl,{label:s,filled:l||c})]})},kg=o.div`
1567
+ `,Dg=({label:r,onClick:o,icon:n,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(Eg,{onClick:o,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[n&&e("div",{children:e(n,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(Ag,{children:r}),c&&e("div",{children:e(ft,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(fl,{label:s,filled:l||c})]})},Tg=o.div`
1562
1568
  display: flex;
1563
1569
  flex-direction: column;
1564
1570
  gap: 16px;
1565
1571
  ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1566
- `,Cg=o.div`
1572
+ `,Ig=o.div`
1567
1573
  display: flex;
1568
1574
  align-items: center;
1569
1575
  gap: 16px;
1570
- `,Eg=o.div`
1576
+ `,Ng=o.div`
1571
1577
  width: 50px;
1572
1578
  height: 50px;
1573
1579
  border-radius: 8px;
1574
1580
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1575
1581
  background-size: 200% 100%;
1576
1582
  animation: ${ul} 10s infinite linear;
1577
- `,Ag=o(In)`
1583
+ `,Rg=o(In)`
1578
1584
  flex: 1;
1579
1585
  gap: 12px;
1580
- `,Dg=o.div`
1586
+ `,Og=o.div`
1581
1587
  width: ${({$width:e})=>e};
1582
1588
  height: 16px;
1583
1589
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1584
1590
  background-size: 200% 100%;
1585
1591
  animation: ${ul} 1.5s infinite linear;
1586
1592
  border-radius: 4px;
1587
- `,Tg=({size:r=5,maxWidth:o})=>e(kg,{$maxWidth:o,children:[...Array(r)].map((r,o)=>t(Cg,{children:[e(Eg,{}),t(Ag,{children:[e(Dg,{$width:"80%"}),e(Dg,{$width:"100%"})]})]},o))});var Ig;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Ig||(Ig={}));const Ng=o.div`
1593
+ `,_g=({size:r=5,maxWidth:o})=>e(Tg,{$maxWidth:o,children:[...Array(r)].map((r,o)=>t(Ig,{children:[e(Ng,{}),t(Rg,{children:[e(Og,{$width:"80%"}),e(Og,{$width:"100%"})]})]},o))});var Fg;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Fg||(Fg={}));const Pg=o.div`
1588
1594
  display: flex;
1589
1595
  flex-direction: column;
1590
1596
  gap: 32px;
1591
- `,Og=o.div`
1597
+ `,Lg=o.div`
1592
1598
  display: flex;
1593
1599
  gap: 16px;
1594
1600
  padding: 8px;
1595
- opacity: ${({$state:e})=>e===Ig.Active?1:e===Ig.Disabled?.5:.8};
1601
+ opacity: ${({$state:e})=>e===Fg.Active?1:e===Fg.Disabled?.5:.8};
1596
1602
  transition: all 0.3s;
1597
- `,Rg=o(Tn)`
1603
+ `,zg=o(Tn)`
1598
1604
  justify-content: center;
1599
1605
  width: 24px;
1600
1606
  height: 24px;
1601
1607
  border-radius: 32px;
1602
- border: ${({theme:e,$state:t})=>t===Ig.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1603
- opacity: ${({$state:e})=>e===Ig.Finished?.8:1};
1604
- `,_g=o(In)`
1608
+ border: ${({theme:e,$state:t})=>t===Fg.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1609
+ opacity: ${({$state:e})=>e===Fg.Finished?.8:1};
1610
+ `,Mg=o(In)`
1605
1611
  justify-content: center;
1606
1612
  gap: 8px;
1607
- `,Fg=o(Si)``,Pg=o(Si)``,Lg=({data:r,currentStep:o=0})=>{const[n,i]=jt([]);return Wt(()=>{i(r.map((e,t)=>t<o-1?{...e,state:Ig.Finished,subtitle:e.subtitle||Gr.Success}:t===o-1?{...e,state:Ig.Active,subtitle:""}:{...e,state:Ig.Disabled,subtitle:""}))},[o,r]),e(Ng,{children:n.map((r,o)=>t(Og,{$state:r.state,children:[e(Rg,{$state:r.state,children:[Ig.Active,Ig.Disabled].includes(r.state)?e(Si,{size:12,children:r.stepNumber}):r.state===Ig.Finished?e(ft,{size:20}):null}),t(_g,{children:[e(Fg,{family:"secondary",children:r.title}),r.subtitle&&e(Pg,{size:10,weight:300,children:r.subtitle})]})]},o))})},zg=o(Tn)`
1613
+ `,Bg=o(Si)``,Ug=o(Si)``,jg=({data:r,currentStep:o=0})=>{const[n,i]=Wt([]);return Ht(()=>{i(r.map((e,t)=>t<o-1?{...e,state:Fg.Finished,subtitle:e.subtitle||Gr.Success}:t===o-1?{...e,state:Fg.Active,subtitle:""}:{...e,state:Fg.Disabled,subtitle:""}))},[o,r]),e(Pg,{children:n.map((r,o)=>t(Lg,{$state:r.state,children:[e(zg,{$state:r.state,children:[Fg.Active,Fg.Disabled].includes(r.state)?e(Si,{size:12,children:r.stepNumber}):r.state===Fg.Finished?e(ft,{size:20}):null}),t(Mg,{children:[e(Bg,{family:"secondary",children:r.title}),r.subtitle&&e(Ug,{size:10,weight:300,children:r.subtitle})]})]},o))})},Wg=o(Tn)`
1608
1614
  width: fit-content;
1609
1615
  gap: 6px;
1610
1616
  padding: 6px 12px;
1611
1617
  border-radius: 360px;
1612
1618
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
1613
- `,Mg=o(Si)`
1619
+ `,Hg=o(Si)`
1614
1620
  color: ${({$type:e,theme:t})=>t.text[e]};
1615
- `,Bg=({type:r=Gr.Info,icon:o,title:n,size:i,family:a,children:s,...l})=>t(zg,{$type:r,children:[o&&e(o,{}),e(Mg,{$type:r,size:i||12,family:a||"secondary",...l,children:s||n})]}),Ug=o.div`
1621
+ `,Xg=({type:r=Gr.Info,icon:o,title:n,size:i,family:a,children:s,...l})=>t(Wg,{$type:r,children:[o&&e(o,{}),e(Hg,{$type:r,size:i||12,family:a||"secondary",...l,children:s||n})]}),Gg=o.div`
1616
1622
  display: flex;
1617
1623
  flex-direction: column;
1618
1624
  position: relative;
1619
1625
  width: 100%;
1620
- `,jg=o.div`
1626
+ `,Vg=o.div`
1621
1627
  width: 100%;
1622
1628
  display: flex;
1623
1629
  align-items: center;
@@ -1645,7 +1651,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1645
1651
  &:focus-within {
1646
1652
  border-color: ${({theme:e})=>e.colors.secondary};
1647
1653
  }
1648
- `,Wg=o.textarea`
1654
+ `,Kg=o.textarea`
1649
1655
  flex: 1;
1650
1656
  border: none;
1651
1657
  outline: none;
@@ -1669,13 +1675,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1669
1675
  background-color: ${({theme:e})=>e.colors.border};
1670
1676
  cursor: not-allowed;
1671
1677
  }
1672
- `,Hg=({errorMessage:r,title:o,tooltip:n,required:i,onChange:a,name:s,...l})=>{const c=Xt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Ug,{children:[e(Ju,{title:o,required:i,tooltip:n}),e(jg,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(Wg,{ref:c,"data-id":s,name:s,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{e.stopPropagation(),d(!0),a?.(e)},onKeyDown:e=>{e.stopPropagation()},...l})}),!!r&&e(Ei,{children:r})]})},Xg=o.div`
1678
+ `,qg=({errorMessage:r,title:o,tooltip:n,required:i,onChange:a,name:s,...l})=>{const c=Gt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Gg,{children:[e(th,{title:o,required:i,tooltip:n}),e(Vg,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(Kg,{ref:c,"data-id":s,name:s,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{e.stopPropagation(),d(!0),a?.(e)},onKeyDown:e=>{e.stopPropagation()},...l})}),!!r&&e(Ei,{children:r})]})},Jg=o.div`
1673
1679
  display: flex;
1674
1680
  align-items: center;
1675
1681
  gap: 12px;
1676
1682
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1677
1683
  opacity: ${({$disabled:e})=>e?.6:1};
1678
- `,Gg=o.div`
1684
+ `,Yg=o.div`
1679
1685
  width: 24px;
1680
1686
  height: 12px;
1681
1687
  border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
@@ -1697,11 +1703,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1697
1703
  transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1698
1704
  transition: background-color 0.3s, transform 0.3s;
1699
1705
  }
1700
- `,Vg=({title:r,tooltip:o,initialValue:n=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=jt(n);Wt(()=>d(n),[n]);return t(Xg,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(Gg,{$disabled:a,$isActive:c}),(r||o)&&e(Cc,{text:o,withIcon:!0,children:r&&e(Si,{size:14,children:r})}),l&&e(Gg,{$disabled:a,$isActive:c})]})};var Kg={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const qg=o.div`
1706
+ `,Qg=({title:r,tooltip:o,initialValue:n=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Wt(n);Ht(()=>d(n),[n]);return t(Jg,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(Yg,{$disabled:a,$isActive:c}),(r||o)&&e(Cc,{text:o,withIcon:!0,children:r&&e(Si,{size:14,children:r})}),l&&e(Yg,{$disabled:a,$isActive:c})]})};var Zg={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const ef=o.div`
1701
1707
  width: ${({$width:e})=>e}px;
1702
1708
  height: ${({$height:e})=>e}px;
1703
1709
  position: relative;
1704
- `,Jg=({width:t=620})=>{const{darkMode:r}=i(),o=t/(620/220);return e(qg,{$width:t,$height:o,children:e(gr,{autoplay:!0,loop:!0,animationData:Kg,style:{width:o,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:r?"invert(0)":"invert(1)"}})})},Yg=o.div`
1710
+ `,tf=({width:t=620})=>{const{darkMode:r}=i(),o=t/(620/220);return e(ef,{$width:t,$height:o,children:e(gr,{autoplay:!0,loop:!0,animationData:Zg,style:{width:o,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:r?"invert(0)":"invert(1)"}})})},rf=o.div`
1705
1711
  display: flex;
1706
1712
  align-items: center;
1707
1713
  justify-content: center;
@@ -1711,17 +1717,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1711
1717
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1712
1718
  border-radius: 100px;
1713
1719
  background-color: ${({$backgroundColor:e})=>e};
1714
- `,Qg=({label:r,leftIcon:o,rightIcon:n,tooltip:a,status:s=qr.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:p,backgroundColor:u,minWidth:h="unset",fullWidth:m=!1})=>{const g=i(),f=r?.toString(),x=s?[qr.Disabled].includes(s)?on(g,s,c?"400":"700"):[qr.Unknown].includes(s)?on(g,s,"600"):on(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],y=p||(c&&![qr.Unknown].includes(s)?x:[qr.Disabled].includes(s)?g.v2.colors.grey[400]:[Gr.Error,Gr.Warning,Gr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![qr.Unknown].includes(s)?[qr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:x);return e(Cc,{text:a,fullWidth:m,children:t(Yg,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[o&&e(o,{fill:y,size:14}),f&&e(cn,{color:y,size:d||sn.XXS,nowrap:!0,children:f}),n&&e(n,{fill:y,size:14})]})})},Zg=o.span`
1720
+ `,of=({label:r,leftIcon:o,rightIcon:n,tooltip:a,status:s=qr.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:p,backgroundColor:u,minWidth:h="unset",fullWidth:m=!1})=>{const g=i(),f=r?.toString(),x=s?[qr.Disabled].includes(s)?on(g,s,c?"400":"700"):[qr.Unknown].includes(s)?on(g,s,"600"):on(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],y=p||(c&&![qr.Unknown].includes(s)?x:[qr.Disabled].includes(s)?g.v2.colors.grey[400]:[Gr.Error,Gr.Warning,Gr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![qr.Unknown].includes(s)?[qr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:x);return e(Cc,{text:a,fullWidth:m,children:t(rf,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[o&&e(o,{fill:y,size:14}),f&&e(cn,{color:y,size:d||sn.XXS,nowrap:!0,children:f}),n&&e(n,{fill:y,size:14})]})})},nf=o.span`
1715
1721
  font-family: ${({theme:e})=>e.font_family.primary};
1716
1722
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1717
1723
  font-weight: 400;
1718
1724
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1719
- `,ef=o.span`
1725
+ `,af=o.span`
1720
1726
  font-family: ${({theme:e})=>e.font_family.primary};
1721
1727
  font-size: 14px;
1722
1728
  font-weight: 400;
1723
1729
  color: ${({theme:e})=>e.v2.colors.red[500]};
1724
- `,tf=({label:r,tooltip:o,required:n,badge:i,width:a,smallAndDark:s})=>r||o||n?t(Tn,{$width:a,$justifyContent:"space-between",children:[r&&e(Zg,{$smallAndDark:s,children:r}),t(Tn,{$gap:4,children:[i&&e(Qg,{...i,textSize:sn.XXXS}),n&&e(ef,{children:"*"}),o&&e(Cc,{text:o,withIcon:!0})]})]}):null,rf=({errorMessage:r,warnMessage:o,helpMessage:n})=>{const a=i(),s=r?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(rt,{size:12,fill:s});return r||o||n?t(Tn,{$alignItems:"center",children:[l&&e(In,{children:l}),e(cn,{size:sn.XXS,weight:400,color:s,children:r||o||n})]}):null},of=o.div`
1730
+ `,sf=({label:r,tooltip:o,required:n,badge:i,width:a,smallAndDark:s})=>r||o||n?t(Tn,{$width:a,$justifyContent:"space-between",children:[r&&e(nf,{$smallAndDark:s,children:r}),t(Tn,{$gap:4,children:[i&&e(of,{...i,textSize:sn.XXXS}),n&&e(af,{children:"*"}),o&&e(Cc,{text:o,withIcon:!0})]})]}):null,lf=({errorMessage:r,warnMessage:o,helpMessage:n})=>{const a=i(),s=r?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(rt,{size:12,fill:s});return r||o||n?t(Tn,{$alignItems:"center",children:[l&&e(In,{children:l}),e(cn,{size:sn.XXS,weight:400,color:s,children:r||o||n})]}):null},cf=o.div`
1725
1731
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
1726
1732
 
1727
1733
  display: flex;
@@ -1739,7 +1745,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1739
1745
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1740
1746
  }
1741
1747
  `}
1742
- `,nf=o.input`
1748
+ `,df=o.input`
1743
1749
  max-width: ${({$maxWidth:e})=>e||"unset"};
1744
1750
  width: ${({$width:e})=>e||"unset"};
1745
1751
 
@@ -1765,12 +1771,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1765
1771
  overflow: hidden;
1766
1772
  text-overflow: ellipsis;
1767
1773
  white-space: nowrap;
1768
- `,af=o.div`
1774
+ `,pf=o.div`
1769
1775
  display: flex;
1770
1776
  align-items: center;
1771
1777
  justify-content: center;
1772
1778
  cursor: pointer;
1773
- `,sf=({label:r,required:o,tooltip:n,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Xr.Text,name:m,value:g,onChange:f,disabled:x,maxWidth:y,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Xr.Password,[C,E]=jt(!1),[A,D]=jt(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:x?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(In,{$width:b,$gap:6,children:[e(tf,{label:r,tooltip:n,required:o,badge:a}),t(of,{$small:v,$disabled:x,$error:T,onClick:$,children:[s?e(s,{size:N,fill:I}):null,e(nf,{"data-id":m,type:C||h===Xr.Number?Xr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Xr.Number&&(e.target.value=di(t),t&&t!==e.target.value?D("Please enter a valid number"):D(null)),f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:x,$maxWidth:y,$width:b,$small:v,...w}),k?e(af,{onClick:()=>E(e=>!e),children:e(C?At:Dt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(rf,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var lf,cf;!function(e){e.S="s",e.L="l"}(lf||(lf={})),function(e){e.Filled="filled",e.Underline="underline"}(cf||(cf={}));const df=o.div`
1779
+ `,uf=({label:r,required:o,tooltip:n,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Xr.Text,name:m,value:g,onChange:f,disabled:x,maxWidth:y,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Xr.Password,[C,E]=Wt(!1),[A,D]=Wt(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:x?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(In,{$width:b,$gap:6,children:[e(sf,{label:r,tooltip:n,required:o,badge:a}),t(cf,{$small:v,$disabled:x,$error:T,onClick:$,children:[s?e(s,{size:N,fill:I}):null,e(df,{"data-id":m,type:C||h===Xr.Number?Xr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Xr.Number&&(e.target.value=di(t),t&&t!==e.target.value?D("Please enter a valid number"):D(null)),f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:x,$maxWidth:y,$width:b,$small:v,...w}),k?e(pf,{onClick:()=>E(e=>!e),children:e(C?At:Dt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(lf,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var hf,mf;!function(e){e.S="s",e.L="l"}(hf||(hf={})),function(e){e.Filled="filled",e.Underline="underline"}(mf||(mf={}));const gf=o.div`
1774
1780
  display: flex;
1775
1781
  align-items: center;
1776
1782
  gap: 2px;
@@ -1778,13 +1784,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1778
1784
  border-radius: 8px;
1779
1785
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1780
1786
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1781
- `,pf=o.button`
1787
+ `,ff=o.button`
1782
1788
  flex: 1;
1783
1789
  display: flex;
1784
1790
  align-items: center;
1785
1791
  justify-content: center;
1786
1792
  gap: 8px;
1787
- padding: ${({$size:e})=>e===lf.S?"4px 8px":"8px 16px"};
1793
+ padding: ${({$size:e})=>e===hf.S?"4px 8px":"8px 16px"};
1788
1794
  border-radius: 6px;
1789
1795
  border: none;
1790
1796
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
@@ -1799,10 +1805,10 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1799
1805
  background-color: ${t?r||o.v2.colors.black[500]:o.v2.colors.silver[800]};
1800
1806
  }
1801
1807
  `}
1802
- `,uf=o.div`
1808
+ `,xf=o.div`
1803
1809
  display: flex;
1804
1810
  align-items: stretch;
1805
- `,hf=o.button`
1811
+ `,yf=o.button`
1806
1812
  display: flex;
1807
1813
  height: 34px;
1808
1814
  padding: 8px 12px 8px 16px;
@@ -1821,7 +1827,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1821
1827
  &:hover {
1822
1828
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
1823
1829
  }
1824
- `,mf=({"data-id":o,size:n=lf.L,variant:a=cf.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===cf.Underline,h=u?hf:pf;return e(u?uf:df,{"data-id":o,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:m,disabled:g},f)=>{const x=l===o,y=g||d,b=y?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],v=n===lf.S?sn.XXS:sn.XS,$=x?500:400,w=t(r,{children:[a&&e(a,{fill:b}),i&&e(cn,{size:v,weight:$,color:b,nowrap:!0,children:i})]});return e(h,{onClick:()=>!y&&c(o),$disabled:y,$isSelected:x,$size:n,...!u&&{$selectedBgColor:m},children:s?e(Cc,{text:s,withIcon:!0,children:w}):w},`segment-${i||f}-${o}`)})})},gf=o.div`
1830
+ `,bf=({"data-id":o,size:n=hf.L,variant:a=mf.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===mf.Underline,h=u?yf:ff;return e(u?xf:gf,{"data-id":o,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:m,disabled:g},f)=>{const x=l===o,y=g||d,b=y?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],v=n===hf.S?sn.XXS:sn.XS,$=x?500:400,w=t(r,{children:[a&&e(a,{fill:b}),i&&e(cn,{size:v,weight:$,color:b,nowrap:!0,children:i})]});return e(h,{onClick:()=>!y&&c(o),$disabled:y,$isSelected:x,$size:n,...!u&&{$selectedBgColor:m},children:s?e(Cc,{text:s,withIcon:!0,children:w}):w},`segment-${i||f}-${o}`)})})},vf=o.div`
1825
1831
  box-sizing: border-box !important;
1826
1832
  width: ${({$width:e})=>e??"fit-content"};
1827
1833
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -1835,7 +1841,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1835
1841
  border: none;
1836
1842
  border-radius: 6px;
1837
1843
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:o,theme:n})=>{const i=r??n.v2.colors.silver[800],a=o??n.v2.colors.silver[700];return e||t?a:i}};
1838
- `,ff=o.input`
1844
+ `,$f=o.input`
1839
1845
  min-width: 0;
1840
1846
  flex: 1;
1841
1847
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -1852,7 +1858,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1852
1858
  overflow: hidden;
1853
1859
  text-overflow: ellipsis;
1854
1860
  white-space: nowrap;
1855
- `,xf=({"data-id":r,value:o,onChange:n,placeholder:a,width:s,segment:l,idleBackgroundColor:c,emphasizeBackgroundColor:d})=>{const p=i(),[u,h]=jt(!1),[m,g]=jt(!1),[f,x]=jt(!1),y=u?p.v2.colors.white[500]:p.v2.colors.silver[200],b=!!l?.options?.length,v=Ht(()=>{if(b)return l?.options.find(e=>e.value===l.selected)?.label},[b,l?.options,l?.selected]),$=Ht(()=>a||(b&&v?`Search by ${v.toLowerCase()}`:"Search..."),[a,b,v]);return t(gf,{$width:s,$withSegment:b,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),$isHovered:m&&!f,$isActive:u,$idleBackgroundColor:c,$emphasizeBackgroundColor:d,children:[e(Tt,{size:18,fill:y}),e(ff,{"data-id":r??"search",name:"search",type:"text",placeholder:$,value:o,onChange:e=>{e.stopPropagation(),n(e.target.value)},onFocus:()=>h(!0),onBlur:()=>h(!1),$textColor:y}),b&&e("div",{style:{flexShrink:0},onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:e(mf,{"data-id":l["data-id"],options:l.options,selected:l.selected,setSelected:l.setSelected,size:lf.S})})]})};var yf,bf;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(yf||(yf={})),function(e){e.S="small",e.M="medium",e.L="large"}(bf||(bf={}));const vf=o.button`
1861
+ `,wf=({"data-id":r,value:o,onChange:n,placeholder:a,width:s,segment:l,idleBackgroundColor:c,emphasizeBackgroundColor:d})=>{const p=i(),[u,h]=Wt(!1),[m,g]=Wt(!1),[f,x]=Wt(!1),y=u?p.v2.colors.white[500]:p.v2.colors.silver[200],b=!!l?.options?.length,v=Xt(()=>{if(b)return l?.options.find(e=>e.value===l.selected)?.label},[b,l?.options,l?.selected]),$=Xt(()=>a||(b&&v?`Search by ${v.toLowerCase()}`:"Search..."),[a,b,v]);return t(vf,{$width:s,$withSegment:b,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),$isHovered:m&&!f,$isActive:u,$idleBackgroundColor:c,$emphasizeBackgroundColor:d,children:[e(Tt,{size:18,fill:y}),e($f,{"data-id":r??"search",name:"search",type:"text",placeholder:$,value:o,onChange:e=>{e.stopPropagation(),n(e.target.value)},onFocus:()=>h(!0),onBlur:()=>h(!1),$textColor:y}),b&&e("div",{style:{flexShrink:0},onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:e(bf,{"data-id":l["data-id"],options:l.options,selected:l.selected,setSelected:l.setSelected,size:hf.S})})]})};var Sf,kf;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Sf||(Sf={})),function(e){e.S="small",e.M="medium",e.L="large"}(kf||(kf={}));const Cf=o.button`
1856
1862
  display: flex;
1857
1863
  align-items: center;
1858
1864
  justify-content: center;
@@ -1862,14 +1868,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1862
1868
  `}
1863
1869
  border: none;
1864
1870
  border-radius: 6px;
1865
- ${({$size:e,$hasLabel:t})=>e===bf.S?n`
1871
+ ${({$size:e,$hasLabel:t})=>e===kf.S?n`
1866
1872
  height: 32px;
1867
1873
  ${t?n`
1868
1874
  padding: 8px 16px;
1869
1875
  `:n`
1870
1876
  width: 32px;
1871
1877
  `}
1872
- `:e===bf.M?n`
1878
+ `:e===kf.M?n`
1873
1879
  height: 38px;
1874
1880
  ${t?n`
1875
1881
  padding: 8px 18px;
@@ -1894,7 +1900,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1894
1900
  ${({$withShadow:e})=>e?n`
1895
1901
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1896
1902
  `:""}
1897
- ${({$variant:e})=>e===yf.Primary?n`
1903
+ ${({$variant:e})=>e===Sf.Primary?n`
1898
1904
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1899
1905
  &:hover {
1900
1906
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -1902,7 +1908,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1902
1908
  &:active {
1903
1909
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1904
1910
  }
1905
- `:e===yf.Secondary?n`
1911
+ `:e===Sf.Secondary?n`
1906
1912
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1907
1913
  &:hover {
1908
1914
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -1910,7 +1916,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1910
1916
  &:active {
1911
1917
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1912
1918
  }
1913
- `:e===yf.Text?n`
1919
+ `:e===Sf.Text?n`
1914
1920
  background-color: transparent;
1915
1921
  &:hover {
1916
1922
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -1920,7 +1926,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1920
1926
  }
1921
1927
  `:""}
1922
1928
  }
1923
- `,$f=qt(({"data-id":o,label:n,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=yf.Primary,size:p=bf.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:x,onClick:y,...b},v)=>{const $=i(),w=u||(p===bf.L?18:16),S=p===bf.L?sn.S:sn.XS,k=f||(x?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=jt(!1),A=Gt(async e=>{e.stopPropagation(),E(!0),await(y?.(e)),E(!1)},[y]);return e(vf,{ref:v,"data-id":o,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!n,disabled:x,onClick:h||C?void 0:A,...b,children:e(Cc,{text:a,withIcon:!s,children:h||C?n?e(rg,{size:$.v2.text.size[S],textColor:k}):e(pd,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),n?e(cn,{size:S,weight:500,color:k,nowrap:!0,children:n}):null,c&&e(c,{size:w,fill:k})]})})})});$f.displayName=$f.name;const wf=o.div`
1929
+ `,Ef=Ut(({"data-id":o,label:n,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Sf.Primary,size:p=kf.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:x,onClick:y,...b},v)=>{const $=i(),w=u||(p===kf.L?18:16),S=p===kf.L?sn.S:sn.XS,k=f||(x?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Wt(!1),A=Vt(async e=>{e.stopPropagation(),E(!0),await(y?.(e)),E(!1)},[y]);return e(Cf,{ref:v,"data-id":o,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!n,disabled:x,onClick:h||C?void 0:A,...b,children:e(Cc,{text:a,withIcon:!s,children:h||C?n?e(sg,{size:$.v2.text.size[S],textColor:k}):e(pd,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),n?e(cn,{size:S,weight:500,color:k,nowrap:!0,children:n}):null,c&&e(c,{size:w,fill:k})]})})})});Ef.displayName=Ef.name;const Af=o.div`
1924
1930
  display: flex;
1925
1931
  align-items: center;
1926
1932
  justify-content: center;
@@ -1929,31 +1935,31 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1929
1935
  padding: 8px;
1930
1936
  border-radius: 100%;
1931
1937
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1932
- `,Sf=({icon:r=yt,hideIcon:o=!1,title:n="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(In,{$gap:12,$alignItems:"center",children:[!o&&e(wf,{children:e(r,{size:32,fill:l})}),t(In,{$gap:4,$alignItems:"center",children:[e(cn,{size:sn.S,align:"center",children:n}),a&&e(cn,{size:sn.XXS,align:"center",color:l,children:a})]}),s&&e($f,{variant:yf.Secondary,...s})]})};var kf;!function(e){e.S="small",e.L="large"}(kf||(kf={}));const Cf=o.div`
1938
+ `,Df=({icon:r=yt,hideIcon:o=!1,title:n="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(In,{$gap:12,$alignItems:"center",children:[!o&&e(Af,{children:e(r,{size:32,fill:l})}),t(In,{$gap:4,$alignItems:"center",children:[e(cn,{size:sn.S,align:"center",children:n}),a&&e(cn,{size:sn.XXS,align:"center",color:l,children:a})]}),s&&e(Ef,{variant:Sf.Secondary,...s})]})};var Tf;!function(e){e.S="small",e.L="large"}(Tf||(Tf={}));const If=o.div`
1933
1939
  width: fit-content;
1934
1940
  display: flex;
1935
1941
  align-items: center;
1936
1942
  gap: 8px;
1937
1943
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1938
- `,Ef=o.div`
1939
- width: ${({$size:e})=>e===kf.S?"16px":"20px"};
1940
- height: ${({$size:e})=>e===kf.S?"16px":"20px"};
1944
+ `,Nf=o.div`
1945
+ width: ${({$size:e})=>e===Tf.S?"16px":"20px"};
1946
+ height: ${({$size:e})=>e===Tf.S?"16px":"20px"};
1941
1947
  display: flex;
1942
1948
  align-items: center;
1943
1949
  justify-content: center;
1944
1950
  border-radius: 4px;
1945
1951
  border: 1px solid ${({$borderColor:e})=>e};
1946
1952
  background-color: ${({$backgroundColor:e})=>e};
1947
- `,Af=({name:r,label:o,tooltip:n,badge:a,size:s=kf.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,x]=jt(!1),y=c||d,b=s===kf.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=y?"transparent":l?g.v2.colors.grey[700]:f?g.v2.colors.silver[400]:g.v2.colors.silver[600],w=l?g.v2.colors.grey[600]:y?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(In,{$gap:4,children:[t(Tn,{$justifyContent:"space-between",children:[t(Cf,{"data-id":r||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[e(Ef,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(bt,{size:b,fill:v}):d?e(ft,{size:b,fill:v}):null}),o&&e(cn,{size:s===kf.S?sn.XXS:sn.XS,nowrap:!0,children:o})]}),e(tf,{tooltip:n,badge:a})]}),e(rf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Df=o.div`
1953
+ `,Rf=({name:r,label:o,tooltip:n,badge:a,size:s=Tf.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,x]=Wt(!1),y=c||d,b=s===Tf.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=y?"transparent":l?g.v2.colors.grey[700]:f?g.v2.colors.silver[400]:g.v2.colors.silver[600],w=l?g.v2.colors.grey[600]:y?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(In,{$gap:4,children:[t(Tn,{$justifyContent:"space-between",children:[t(If,{"data-id":r||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:[e(Nf,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(bt,{size:b,fill:v}):d?e(ft,{size:b,fill:v}):null}),o&&e(cn,{size:s===Tf.S?sn.XXS:sn.XS,nowrap:!0,children:o})]}),e(sf,{tooltip:n,badge:a})]}),e(lf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Of=o.div`
1948
1954
  display: flex;
1949
1955
  flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
1950
1956
  gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
1951
- `,Tf=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=n===kf.S?sn.XXS:sn.XS,p=Ht(()=>s.every(e=>l[e.id]),[s,l]),u=Ht(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const o={...r};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(Df,{$direction:r,children:[o&&a?e(Af,{label:o,partiallyChecked:u,value:p,onChange:e=>h("",e),size:n}):o&&!a?e(cn,{size:d,children:o}):null,s.map(t=>e(Af,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:n},`${o}-checkbox-${t.id}`))]})};var If,Nf;!function(e){e.Left="left",e.Right="right"}(If||(If={})),function(e){e.Top="top",e.Bottom="bottom"}(Nf||(Nf={}));const Of=o.div`
1957
+ `,_f=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=n===Tf.S?sn.XXS:sn.XS,p=Xt(()=>s.every(e=>l[e.id]),[s,l]),u=Xt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const o={...r};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(Of,{$direction:r,children:[o&&a?e(Rf,{label:o,partiallyChecked:u,value:p,onChange:e=>h("",e),size:n}):o&&!a?e(cn,{size:d,children:o}):null,s.map(t=>e(Rf,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:n},`${o}-checkbox-${t.id}`))]})};var Ff,Pf;!function(e){e.Left="left",e.Right="right"}(Ff||(Ff={})),function(e){e.Top="top",e.Bottom="bottom"}(Pf||(Pf={}));const Lf=o.div`
1952
1958
  position: relative;
1953
1959
  display: flex;
1954
1960
  flex-direction: column;
1955
1961
  gap: 4px;
1956
- `,Rf=o.div`
1962
+ `,zf=o.div`
1957
1963
  position: fixed;
1958
1964
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
1959
1965
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -1971,7 +1977,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1971
1977
  border-radius: 6px;
1972
1978
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1973
1979
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1974
- `,_f=o.div`
1980
+ `,Mf=o.div`
1975
1981
  display: flex;
1976
1982
  flex-direction: column;
1977
1983
  gap: 0;
@@ -1979,7 +1985,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1979
1985
  width: 100%;
1980
1986
  max-height: ${({$maxHeight:e})=>e||"230px"};
1981
1987
  overflow-y: auto;
1982
- `,Ff=o.div`
1988
+ `,Bf=o.div`
1983
1989
  display: flex;
1984
1990
  align-items: center;
1985
1991
  gap: 8px;
@@ -1995,7 +2001,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1995
2001
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1996
2002
  }
1997
2003
  `}
1998
- `,Pf=({defaultOpen:r,open:o,onOpenChange:n,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:x,isLoading:y,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==o,S=!!f||!!x||!!v,[k,C]=jt(r??!S),E=w?o:k,A=Gt(e=>{w||C(e),n?.(e)},[w,n]),[D,T]=jt({x:a||If.Left,y:s||Nf.Bottom}),I=Xt(null),N=Xt(null),[O,R]=jt({}),_=Gt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const o=S?8:0;R({top:t===Nf.Bottom?S?r.bottom+o:r.top:void 0,bottom:t===Nf.Top?S?window.innerHeight-r.top+o:window.innerHeight-r.bottom:void 0,left:e===If.Left?r.left:void 0,right:e===If.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),F=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?If.Right:If.Left),y:s||(e.clientY>window.innerHeight/2?Nf.Top:Nf.Bottom)};T(r),_(r.x,r.y)};Yt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Wt(()=>{if(!E)return;const e=e=>{const t=e.target;I.current?.contains(t)||N.current?.contains(t)||A(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[E,A]),Wt(()=>{if(!E)return;const e=()=>A(!1),t=()=>A(!1);return document.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[E,A]);const P=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=jt(""),M=Ht(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t(Of,{ref:I,children:[p&&e(tf,{label:p}),f&&e($f,{...f,fullWidth:m,rightIcon:E?_t:Ft,onClick:F}),x&&e(Il,{...x,onClick:F}),"function"==typeof v?v({ChevronIcon:E?_t:Ft,handleClick:F}):v,E&&pr(t(Rf,{ref:N,$coords:O,children:[h&&e(xf,{value:L,onChange:z,width:"100%"}),y?e(Un,{withSpinner:!0,title:"Loading...",titleSize:sn.XS}):0===M.length&&b?e(Sf,{subTitle:b}):e(_f,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:o,label:n,icon:i,withCheckbox:a}=r,s=c.includes(o);return t(Ff,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>P(o),children:[a&&e(Af,{value:s,onChange:()=>P(o)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(cn,{size:sn.XS,nowrap:!0,color:r.color||$.v2.colors.white[500],children:n})]},o)})}),u&&e($f,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Lf=t=>{const{"data-id":r,options:o,placeholder:n="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=jt(""),[c,d]=jt(!1),p=Ht(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Ht(()=>{if(a){const e=p.length;return e?1===e?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,p]),h=c?s:u,m=Ht(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),g=Gt(()=>{l(""),d(!0)},[]),f=Gt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),x=Gt(e=>{d(e),e||l("")},[]),y=Gt(e=>{if(a)return void t.onSelect(e);const r=o.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,o]),b=c&&(i||m.length>0||s.length>0);return e(Pf,{open:b,onOpenChange:x,items:m,selectedIds:p,setSelectedIds:y,withMultiSelect:a,isLoading:i,emptyMessage:"No results found",fullWidth:!0,alignY:Nf.Bottom,children:e(sf,{name:r,leftIcon:Tt,placeholder:n,value:h,onChange:f,onFocus:g})})},zf=o.button`
2004
+ `,Uf=({defaultOpen:r,open:o,onOpenChange:n,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:x,isLoading:y,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==o,S=!!f||!!x||!!v,[k,C]=Wt(r??!S),E=w?o:k,A=Vt(e=>{w||C(e),n?.(e)},[w,n]),[D,T]=Wt({x:a||Ff.Left,y:s||Pf.Bottom}),I=Gt(null),N=Gt(null),[R,O]=Wt({}),_=Vt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const o=S?8:0;O({top:t===Pf.Bottom?S?r.bottom+o:r.top:void 0,bottom:t===Pf.Top?S?window.innerHeight-r.top+o:window.innerHeight-r.bottom:void 0,left:e===Ff.Left?r.left:void 0,right:e===Ff.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),F=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?Ff.Right:Ff.Left),y:s||(e.clientY>window.innerHeight/2?Pf.Top:Pf.Bottom)};T(r),_(r.x,r.y)};Yt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Ht(()=>{if(!E)return;const e=e=>{const t=e.target;I.current?.contains(t)||N.current?.contains(t)||A(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[E,A]),Ht(()=>{if(!E)return;const e=()=>A(!1),t=()=>A(!1);return document.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[E,A]);const P=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=Wt(""),M=Xt(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t(Lf,{ref:I,children:[p&&e(sf,{label:p}),f&&e(Ef,{...f,fullWidth:m,rightIcon:E?_t:Ft,onClick:F}),x&&e(Il,{...x,onClick:F}),"function"==typeof v?v({ChevronIcon:E?_t:Ft,handleClick:F}):v,E&&pr(t(zf,{ref:N,$coords:R,children:[h&&e(wf,{value:L,onChange:z,width:"100%"}),y?e(Un,{withSpinner:!0,title:"Loading...",titleSize:sn.XS}):0===M.length&&b?e(Df,{subTitle:b}):e(Mf,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:o,label:n,icon:i,withCheckbox:a}=r,s=c.includes(o);return t(Bf,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>P(o),children:[a&&e(Rf,{value:s,onChange:()=>P(o)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(cn,{size:sn.XS,nowrap:!0,color:r.color||$.v2.colors.white[500],children:n})]},o)})}),u&&e(Ef,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},jf=t=>{const{"data-id":r,options:o,placeholder:n="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Wt(""),[c,d]=Wt(!1),p=Xt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Xt(()=>{if(a){const e=p.length;return e?1===e?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,p]),h=c?s:u,m=Xt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),g=Vt(()=>{l(""),d(!0)},[]),f=Vt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),x=Vt(e=>{d(e),e||l("")},[]),y=Vt(e=>{if(a)return void t.onSelect(e);const r=o.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,o]),b=c&&(i||m.length>0||s.length>0);return e(Uf,{open:b,onOpenChange:x,items:m,selectedIds:p,setSelectedIds:y,withMultiSelect:a,isLoading:i,emptyMessage:"No results found",fullWidth:!0,alignY:Pf.Bottom,children:e(uf,{name:r,leftIcon:Tt,placeholder:n,value:h,onChange:f,onFocus:g})})},Wf=o.button`
1999
2005
  width: 100%;
2000
2006
  padding: 0;
2001
2007
  padding-right: 12px;
@@ -2016,7 +2022,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2016
2022
  cursor: not-allowed;
2017
2023
  opacity: 0.5;
2018
2024
  }
2019
- `,Mf=o.div`
2025
+ `,Hf=o.div`
2020
2026
  width: ${({$hasIcon:e})=>e?"56px":"0"};
2021
2027
  height: 56px;
2022
2028
  display: flex;
@@ -2027,20 +2033,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2027
2033
  `:n`
2028
2034
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2029
2035
  `}
2030
- `,Bf=o.div`
2036
+ `,Xf=o.div`
2031
2037
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
2032
2038
  display: flex;
2033
2039
  justify-content: space-between;
2034
2040
  align-items: center;
2035
2041
  gap: 8px;
2036
- `,Uf=({label:r,icon:o,loading:n,disabled:i,onClick:a})=>{const[s,l]=jt(!1);return t(zf,{$hovered:s,type:"button",disabled:i||n,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Mf,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(Bf,{$hasIcon:!!o,children:[n?e(rg,{size:16}):e(cn,{variant:an.Span,align:"center",children:r}),e(Pt,{rotate:90,size:24})]})]})},jf=({buttons:t})=>e(In,{$gap:12,children:t.map(t=>e(Uf,{...t},t.label))});var Wf;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Wf||(Wf={}));const Hf=({onAnyClick:t,actions:r})=>e(Tn,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Wf.Button:return e($f,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case Wf.ButtonDropData:return e(Pf,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{r.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:r.buttonProps},r.id);default:return null}})}),Xf=o.div`
2042
+ `,Gf=({label:r,icon:o,loading:n,disabled:i,onClick:a})=>{const[s,l]=Wt(!1);return t(Wf,{$hovered:s,type:"button",disabled:i||n,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Hf,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(Xf,{$hasIcon:!!o,children:[n?e(sg,{size:16}):e(cn,{variant:an.Span,align:"center",children:r}),e(Pt,{rotate:90,size:24})]})]})},Vf=({buttons:t})=>e(In,{$gap:12,children:t.map(t=>e(Gf,{...t},t.label))});var Kf;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Kf||(Kf={}));const qf=({onAnyClick:t,actions:r})=>e(Tn,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Kf.Button:return e(Ef,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case Kf.ButtonDropData:return e(Uf,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{r.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:r.buttonProps},r.id);default:return null}})}),Jf=({children:t,fullText:r,...o})=>{const n=Gt(null),[i,a]=Wt(!1);Yt(()=>{const e=n.current;if(!e)return;const t=()=>{a(e.scrollWidth>e.clientWidth+1)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[t]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=n.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(Cc,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(cn,{ref:n,...o,children:t})})},Yf=o.div`
2037
2043
  display: flex;
2038
2044
  align-items: center;
2039
2045
  justify-content: center;
2040
2046
  padding: 8px;
2041
2047
  border-radius: 8px;
2042
2048
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2043
- `,Gf=({icon:r,title:o,subTitle:n,withCopy:a,badge:s,children:l})=>{const c=i(),{CopyButton:d}=Nl();return t(Tn,{$gap:n?8:6,$alignItems:"center",children:[r&&(n?e(Xf,{children:e(r,{size:24})}):e(r,{size:24})),o||s||n?t(In,{children:[o||s?t(Tn,{$gap:6,$alignItems:"center",children:[o&&e(cn,{nowrap:!0,children:o}),a&&o&&e(d,{value:o,size:Dl.XS}),s&&e(Qg,{...s})]}):null,n&&e(cn,{size:sn.XXS,color:c.v2.colors.silver[200],nowrap:!0,children:n})]}):null,l]})},Vf=o.div`
2049
+ `,Qf=({icon:r,title:o,subTitle:n,withCopy:a,badge:s,children:l})=>{const c=i(),{CopyButton:d}=Nl();return t(Tn,{$gap:n?8:6,$alignItems:"center",children:[r&&(n?e(Yf,{children:e(r,{size:24})}):e(r,{size:24})),o||s||n?t(In,{children:[o||s?t(Tn,{$gap:6,$alignItems:"center",children:[o&&e(cn,{nowrap:!0,children:o}),a&&o&&e(d,{value:o,size:Dl.XS}),s&&e(of,{...s})]}):null,n&&e(cn,{size:sn.XXS,color:c.v2.colors.silver[200],nowrap:!0,children:n})]}):null,l]})},Zf=o.div`
2044
2050
  display: flex;
2045
2051
  flex-direction: column;
2046
2052
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -2049,18 +2055,19 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2049
2055
  padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
2050
2056
  border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
2051
2057
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
2052
- `,Kf=o.div`
2058
+ `,ex=o.div`
2053
2059
  display: flex;
2054
2060
  align-items: center;
2055
2061
  flex-wrap: wrap;
2056
2062
  width: 100%;
2057
- `,qf=o.div`
2063
+ `,tx=o.div`
2058
2064
  width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
2059
2065
  margin: 8px;
2060
2066
  display: flex;
2061
2067
  flex-direction: column;
2062
2068
  gap: 4px;
2063
- `,Jf=({bgTint:r="900",fullHeight:o=!1,moreSpacing:n=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,actions:c=[],cellsPerRow:d,items:p,children:u})=>{const h=i(),{CopyButton:m}=Nl(),[g,f]=jt(l||!1),x=!s||s&&g;return t(Vf,{$bgTint:r,$fullHeight:o,$moreSpacing:n,children:[(a||s)&&t(Tn,{$gap:16,$justifyContent:"space-between",children:[a?e(Gf,{...a}):e("div",{}),t(Tn,{children:[x&&e(Hf,{actions:c}),s&&e(Tn,{$gap:8,$alignItems:"center",children:e($f,{variant:yf.Text,size:bf.S,leftIcon:g?_t:Ft,onClick:()=>f(e=>!e)})})]})]}),x&&p?e(Kf,{children:p.map(({id:r,title:o,label:n,withCopy:i,badge:a})=>t(qf,{$cellsPerRow:d||p.length,children:[e(cn,{size:sn.XXXS,color:h.v2.colors.silver[200],nowrap:!0,children:o}),t(Tn,{$gap:4,children:[a&&e(Qg,{...a}),n&&e(cn,{size:sn.XS,nowrap:!0,children:n}),i&&e(m,{value:n||a?.label?.toString()||"",size:Dl.XS})]})]},r))}):null,x&&u]})};var Yf;!function(e){e.S="small",e.M="medium"}(Yf||(Yf={}));const Qf=o.div`
2069
+ min-width: 0;
2070
+ `,rx=({item:r,cellsPerRow:o})=>{const n=i(),{CopyButton:a}=Nl(),{title:s,label:l,withCopy:c,badge:d}=r;return t(tx,{$cellsPerRow:o,children:[!!s&&e(Jf,{size:sn.XXXS,color:n.v2.colors.silver[200],nowrap:!0,children:s}),t(Tn,{$gap:4,children:[d&&e(of,{...d}),l&&e(Jf,{size:sn.XS,nowrap:!0,children:l}),c&&e(a,{value:l||d?.label?.toString()||"",size:Dl.XS})]})]})},ox=({bgTint:r="900",fullHeight:o=!1,moreSpacing:n=!1,richTitle:i,withCollapse:a,collapseIsDefaultOpen:s,actions:l=[],cellsPerRow:c,items:d,children:p})=>{const[u,h]=Wt(s||!1),m=!a||a&&u;return t(Zf,{$bgTint:r,$fullHeight:o,$moreSpacing:n,children:[(i||a)&&t(Tn,{$gap:16,$justifyContent:"space-between",children:[i?e(Qf,{...i}):e("div",{}),t(Tn,{children:[m&&e(qf,{actions:l}),a&&e(Tn,{$gap:8,$alignItems:"center",children:e(Ef,{variant:Sf.Text,size:kf.S,leftIcon:u?_t:Ft,onClick:()=>h(e=>!e)})})]})]}),m&&d?e(ex,{children:d.map(t=>e(rx,{item:t,cellsPerRow:c&&c<d.length?c:d.length},t.id))}):null,m&&p]})};var nx;!function(e){e.S="small",e.M="medium"}(nx||(nx={}));const ix=o.div`
2064
2071
  display: flex;
2065
2072
  flex-direction: column;
2066
2073
  gap: ${({$gap:e})=>e}px;
@@ -2069,7 +2076,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2069
2076
  padding: ${({$padding:e})=>e}px;
2070
2077
  border-radius: 16px;
2071
2078
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2072
- `,Zf=qt(({id:r,size:o=Yf.M,fullHeight:n=!1,richTitle:i,search:a,actions:s,children:l},c)=>{const d=o===Yf.S?4:16,p=o===Yf.S?12:16;return t(Qf,{ref:c,id:r,"data-section-name":r,$padding:p,$gap:d,$fullHeight:n,children:[a||i||s?t(Tn,{$gap:d,$justifyContent:"space-between",children:[a||i?e(Gf,{...i,children:a&&e(xf,{...a})}):null,e(Hf,{actions:s??[]})]}):null,l]})});Zf.displayName="SectionCard";const ex=o.div`
2079
+ `,ax=Ut(({id:r,size:o=nx.M,fullHeight:n=!1,richTitle:i,search:a,actions:s,children:l},c)=>{const d=o===nx.S?4:16,p=o===nx.S?12:16;return t(ix,{ref:c,id:r,"data-section-name":r,$padding:p,$gap:d,$fullHeight:n,children:[a||i||s?t(Tn,{$gap:d,$justifyContent:"space-between",children:[a||i?e(Qf,{...i,children:a&&e(wf,{...a})}):null,e(qf,{actions:s??[]})]}):null,l]})});ax.displayName="SectionCard";const sx=o.div`
2073
2080
  flex: 1;
2074
2081
  align-self: stretch;
2075
2082
  display: flex;
@@ -2078,7 +2085,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2078
2085
  padding: 16px;
2079
2086
  border-radius: 12px;
2080
2087
  background-color: ${({theme:e,$status:t})=>on(e,t,t===qr.Unknown?"750":"500")};
2081
- `,tx=o.div`
2088
+ `,lx=o.div`
2082
2089
  display: flex;
2083
2090
  align-items: center;
2084
2091
  justify-content: center;
@@ -2087,7 +2094,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2087
2094
  padding: 8px;
2088
2095
  border-radius: 12px;
2089
2096
  background-color: ${({theme:e,$status:t})=>t===qr.Unknown?on(e,t,"800"):on(e,t,"900")+sl["015"]};
2090
- `,rx=({status:r,icon:o,title:n,description:a})=>{const s=i(),l=o??jn(r,s),c=[Gr.Default,Gr.Info,qr.Disabled,qr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(ex,{$status:r,children:[e(tx,{$status:r,children:e(l,{size:32,fill:c})}),t(In,{$gap:2,$justifyContent:"center",children:[e(cn,{size:sn.M,weight:500,color:c,nowrap:!0,children:n}),e(cn,{size:sn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},ox=o.div`
2097
+ `,cx=({status:r,icon:o,title:n,description:a})=>{const s=i(),l=o??jn(r,s),c=[Gr.Default,Gr.Info,qr.Disabled,qr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(sx,{$status:r,children:[e(lx,{$status:r,children:e(l,{size:32,fill:c})}),t(In,{$gap:2,$justifyContent:"center",children:[e(cn,{size:sn.M,weight:500,color:c,nowrap:!0,children:n}),e(cn,{size:sn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},dx=o.div`
2091
2098
  flex: 0.5;
2092
2099
  display: flex;
2093
2100
  flex-direction: column;
@@ -2095,25 +2102,25 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2095
2102
  padding: 12px;
2096
2103
  border-radius: 12px;
2097
2104
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2098
- `,nx=["-","N/A","undefined","null","undefined/undefined","null/null"],ix=({title:r,cells:o})=>{const n=i();return t(ox,{children:[e(cn,{size:sn.XXS,color:n.v2.colors.grey[150],children:r}),e(Tn,{$gap:32,children:o.map(o=>t(In,{$gap:2,children:[!o.isLoading||o.value&&!nx.includes(o.value)?e(cn,{size:o.label?sn.M:sn.L,children:o.value}):e(pd,{scale:.9}),o.label&&e(cn,{size:sn.XXS,children:o.label})]},`${r}-${o.label}-${o.value}`))})]})};var ax;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(ax||(ax={}));const sx=o.div`
2105
+ `,px=["-","N/A","undefined","null","undefined/undefined","null/null"],ux=({title:r,cells:o})=>{const n=i();return t(dx,{children:[e(cn,{size:sn.XXS,color:n.v2.colors.grey[150],children:r}),e(Tn,{$gap:32,children:o.map(o=>t(In,{$gap:2,children:[!o.isLoading||o.value&&!px.includes(o.value)?e(cn,{size:o.label?sn.M:sn.L,children:o.value}):e(pd,{scale:.9}),o.label&&e(cn,{size:sn.XXS,children:o.label})]},`${r}-${o.label}-${o.value}`))})]})};var hx;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(hx||(hx={}));const mx=o.div`
2099
2106
  display: flex;
2100
2107
  align-items: flex-end;
2101
2108
  justify-content: space-between;
2102
2109
  gap: 24px;
2103
2110
  width: fit-content;
2104
- `,lx=o.div`
2111
+ `,gx=o.div`
2105
2112
  position: relative;
2106
2113
  display: flex;
2107
2114
  flex-direction: column;
2108
2115
  align-items: center;
2109
2116
  width: ${({$width:e})=>e??150}px;
2110
2117
  flex-shrink: 0;
2111
- `,cx=o.svg`
2118
+ `,fx=o.svg`
2112
2119
  display: block;
2113
2120
  width: 100%;
2114
2121
  height: auto;
2115
2122
  overflow: visible;
2116
- `,dx=o(In)`
2123
+ `,xx=o(In)`
2117
2124
  position: absolute;
2118
2125
  left: 0;
2119
2126
  right: 0;
@@ -2121,14 +2128,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2121
2128
  align-items: center;
2122
2129
  gap: 2px;
2123
2130
  pointer-events: none;
2124
- `,px=o.span`
2131
+ `,yx=o.span`
2125
2132
  display: inline-block;
2126
2133
  flex-shrink: 0;
2127
2134
  width: 9px;
2128
2135
  height: 9px;
2129
2136
  border-radius: 50%;
2130
2137
  background-color: ${({$color:e})=>e};
2131
- `,ux=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},hx=10,mx=(e,t,r,o)=>{const n=o*Math.PI/180;return{x:e+r*Math.cos(n),y:t-r*Math.sin(n)}},gx=(e,t,r,o,n)=>{const i=mx(e,t,r,o),a=mx(e,t,r,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},fx=({variant:r=ax.CurrentOfMax,gaugeWidth:o,title:n,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=ux(a),{number:m}=ux(s),{number:g,prefix:f,suffix:x}=ux(l),y=i(),b=((e,t,r)=>Math.min(Math.max(e,t),r))((g-h)/Math.max(m-h,1),0,1),v=180-180*b,$=b>0?gx(60,60,55,180,v):null,w=b<1?gx(60,60,55,v,0):null,S=mx(60,60,55,180),k=mx(60,60,55,0),C=d??(r===ax.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),E=u??(r===ax.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[A,D]=jt(null),T=e=>`${f}${e}${x}`,I=r===ax.GoodAgainstBad?Math.max(m-g,0):m,N="primary"===A?c:"secondary"===A?p:"",O="primary"===A?T(g):"secondary"===A?T(I):"",R=()=>D("primary"),_=()=>D("secondary"),F=()=>D(null);return t(sx,{children:[t(lx,{$width:o,children:[e(Cc,{keepAlive:!0,fullWidth:!0,title:N,text:O,children:t(cx,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:hx,strokeLinecap:1===b?"round":"butt",onMouseEnter:R,onMouseLeave:F}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:hx,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:F}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:R,onMouseLeave:F}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:F})]})}),n&&t(dx,{children:[e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],align:"center",children:n}),e(cn,{size:sn.L,weight:500,align:"center",children:`${f}${g}${x}`})]})]}),t(In,{$gap:7,children:[t(Tn,{$gap:8,$alignItems:"center",children:[e(px,{$color:C}),e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Tn,{$gap:8,$alignItems:"center",children:[e(px,{$color:E}),e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},xx=o(Tn)`
2138
+ `,bx=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},vx=10,$x=(e,t,r,o)=>{const n=o*Math.PI/180;return{x:e+r*Math.cos(n),y:t-r*Math.sin(n)}},wx=(e,t,r,o,n)=>{const i=$x(e,t,r,o),a=$x(e,t,r,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},Sx=({variant:r=hx.CurrentOfMax,gaugeWidth:o,title:n,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=bx(a),{number:m}=bx(s),{number:g,prefix:f,suffix:x}=bx(l),y=i(),b=((e,t,r)=>Math.min(Math.max(e,t),r))((g-h)/Math.max(m-h,1),0,1),v=180-180*b,$=b>0?wx(60,60,55,180,v):null,w=b<1?wx(60,60,55,v,0):null,S=$x(60,60,55,180),k=$x(60,60,55,0),C=d??(r===hx.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),E=u??(r===hx.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[A,D]=Wt(null),T=e=>`${f}${e}${x}`,I=r===hx.GoodAgainstBad?Math.max(m-g,0):m,N="primary"===A?c:"secondary"===A?p:"",R="primary"===A?T(g):"secondary"===A?T(I):"",O=()=>D("primary"),_=()=>D("secondary"),F=()=>D(null);return t(mx,{children:[t(gx,{$width:o,children:[e(Cc,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(fx,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:vx,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:F}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:vx,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:F}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:F}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:F})]})}),n&&t(xx,{children:[e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],align:"center",children:n}),e(cn,{size:sn.L,weight:500,align:"center",children:`${f}${g}${x}`})]})]}),t(In,{$gap:7,children:[t(Tn,{$gap:8,$alignItems:"center",children:[e(yx,{$color:C}),e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Tn,{$gap:8,$alignItems:"center",children:[e(yx,{$color:E}),e(cn,{size:sn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},kx=o(Tn)`
2132
2139
  width: calc(100% - 20px);
2133
2140
  padding: 10px;
2134
2141
  border-radius: 6px;
@@ -2137,24 +2144,24 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2137
2144
  align-items: center;
2138
2145
  justify-content: space-between;
2139
2146
  gap: 12px;
2140
- `,yx=o.div`
2147
+ `,Cx=o.div`
2141
2148
  position: relative;
2142
2149
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
2143
2150
  display: flex;
2144
2151
  align-items: center;
2145
2152
  gap: 4px;
2146
- `,bx=o.pre`
2153
+ `,Ex=o.pre`
2147
2154
  flex: 1;
2148
2155
  margin: 0;
2149
2156
  padding: 0;
2150
2157
  font-size: 14px;
2151
2158
  color: #5ffb98; // TODO: add to theme
2152
2159
  overflow-x: auto;
2153
- `,vx=o.span`
2160
+ `,Ax=o.span`
2154
2161
  flex-shrink: 0;
2155
2162
  font-size: 14px;
2156
2163
  color: #5ffb98; // TODO: add to theme
2157
- `,$x=({value:r,hideCopy:o=!1,onDone:n})=>{const{CopyButton:i}=Nl({onDone:n}),a=Xt(null),[s,l]=jt(!1);return Wt(()=>{const e=()=>{if(a.current){const{scrollWidth:e,clientWidth:t}=a.current;l(e>t)}};e();const t=new ResizeObserver(e);return a.current&&t.observe(a.current),()=>{t.disconnect()}},[r]),t(xx,{children:[t(yx,{$hideCopy:o,children:[e(bx,{ref:a,children:r}),s&&e(vx,{children:"..."})]}),!o&&e(i,{value:r,size:Dl.XS})]})},wx=o.div`
2164
+ `,Dx=({value:r,hideCopy:o=!1,onDone:n})=>{const{CopyButton:i}=Nl({onDone:n}),a=Gt(null),[s,l]=Wt(!1);return Ht(()=>{const e=()=>{if(a.current){const{scrollWidth:e,clientWidth:t}=a.current;l(e>t)}};e();const t=new ResizeObserver(e);return a.current&&t.observe(a.current),()=>{t.disconnect()}},[r]),t(kx,{children:[t(Cx,{$hideCopy:o,children:[e(Ex,{ref:a,children:r}),s&&e(Ax,{children:"..."})]}),!o&&e(i,{value:r,size:Dl.XS})]})},Tx=o.div`
2158
2165
  display: flex;
2159
2166
  align-items: center;
2160
2167
  gap: 8px;
@@ -2169,7 +2176,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2169
2176
  background-color: ${t};
2170
2177
  }
2171
2178
  `}
2172
- `,Sx=o.div`
2179
+ `,Ix=o.div`
2173
2180
  display: flex;
2174
2181
  align-items: center;
2175
2182
  justify-content: center;
@@ -2178,44 +2185,44 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2178
2185
  height: 42px;
2179
2186
  border-radius: 11px;
2180
2187
  background-color: ${({$backgroundColor:e})=>e};
2181
- `,kx=o(In)`
2188
+ `,Nx=o(In)`
2182
2189
  flex: 1;
2183
2190
  min-width: 0;
2184
- `,Cx=o.div`
2191
+ `,Rx=o.div`
2185
2192
  display: flex;
2186
2193
  align-items: center;
2187
2194
  justify-content: center;
2188
2195
  flex-shrink: 0;
2189
2196
  width: 24px;
2190
2197
  height: 24px;
2191
- `,Ex=({status:r,title:o,subTitle:n,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=jn(r,p),h=c?l?_t:Ft:void 0,m=r===qr.Unknown,g=r===qr.Disabled,f=[Gr.Error,Gr.Warning,Gr.Success].includes(r),x=on(p,r,g?d?"400":"700":m?"600":d?"300":"500"),y=g?p.v2.colors.grey[400]:d?p.v2.colors.white[500]:f?p.v2.colors.black[500]:p.v2.colors.white[500],b=d&&!m?x:y,v=d&&!m?g?p.v2.colors.grey[700]:l?p.v2.colors.silver[500]:p.v2.colors.silver[600]:"rgba(21, 22, 24, 0.1)",$=d||m?l?p.v2.colors.silver[700]:p.v2.colors.silver[800]:g?l?p.v2.colors.grey[800]:p.v2.colors.grey[900]:on(p,r,l?"400":"500"),w=d||m?l?p.v2.colors.silver[600]:p.v2.colors.silver[700]:g?l?p.v2.colors.grey[700]:p.v2.colors.grey[800]:on(p,r,l?"700":"800");return t(wx,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(Sx,{$backgroundColor:v,children:s?e(pd,{scale:1.2}):e(u,{size:32,fill:b})}),t(kx,{$gap:4,$justifyContent:"center",children:[t(Tn,{$gap:10,$alignItems:"center",children:[e(cn,{size:sn.S,weight:500,color:y,children:o}),a&&e(Qg,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:sn.XXXS})]}),n&&e(cn,{size:sn.XXXS,color:y,children:n})]}),h&&e(Cx,{children:e(h,{size:24,fill:y})})]})},Ax=o.div`
2198
+ `,Ox=({status:r,title:o,subTitle:n,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=jn(r,p),h=c?l?_t:Ft:void 0,m=r===qr.Unknown,g=r===qr.Disabled,f=[Gr.Error,Gr.Warning,Gr.Success].includes(r),x=on(p,r,g?d?"400":"700":m?"600":d?"300":"500"),y=g?p.v2.colors.grey[400]:d?p.v2.colors.white[500]:f?p.v2.colors.black[500]:p.v2.colors.white[500],b=d&&!m?x:y,v=d&&!m?g?p.v2.colors.grey[700]:l?p.v2.colors.silver[500]:p.v2.colors.silver[600]:"rgba(21, 22, 24, 0.1)",$=d||m?l?p.v2.colors.silver[700]:p.v2.colors.silver[800]:g?l?p.v2.colors.grey[800]:p.v2.colors.grey[900]:on(p,r,l?"400":"500"),w=d||m?l?p.v2.colors.silver[600]:p.v2.colors.silver[700]:g?l?p.v2.colors.grey[700]:p.v2.colors.grey[800]:on(p,r,l?"700":"800");return t(Tx,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(Ix,{$backgroundColor:v,children:s?e(pd,{scale:1.2}):e(u,{size:32,fill:b})}),t(Nx,{$gap:4,$justifyContent:"center",children:[t(Tn,{$gap:10,$alignItems:"center",children:[e(cn,{size:sn.S,weight:500,color:y,children:o}),a&&e(of,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:sn.XXXS})]}),n&&e(cn,{size:sn.XXXS,color:y,children:n})]}),h&&e(Rx,{children:e(h,{size:24,fill:y})})]})},_x=o.div`
2192
2199
  display: flex;
2193
2200
  flex-direction: column;
2194
2201
  width: 100%;
2195
2202
  border-radius: 12px;
2196
2203
  overflow: hidden;
2197
- `,Dx=o.div`
2204
+ `,Fx=o.div`
2198
2205
  display: flex;
2199
2206
  flex-direction: column;
2200
2207
  gap: 8px;
2201
2208
  padding: 8px 12px 16px 12px;
2202
2209
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2203
- `,Tx=o.div`
2210
+ `,Px=o.div`
2204
2211
  display: flex;
2205
2212
  align-items: center;
2206
2213
  gap: 8px;
2207
- `,Ix=o.div`
2214
+ `,Lx=o.div`
2208
2215
  display: flex;
2209
2216
  align-items: center;
2210
2217
  justify-content: center;
2211
2218
  flex-shrink: 0;
2212
2219
  width: 18px;
2213
2220
  height: 18px;
2214
- `,Nx=({conditions:r,title:o,subTitle:n})=>{const a=i(),[s,l]=jt(!1),c=Gt(()=>l(e=>!e),[]),d=Ht(()=>ai(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Ht(()=>Fo(d),[d]);Wt(()=>{l(u||m||g)},[u,m,g]);const x=Ht(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),y=Ht(()=>u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,[u,m,g]),b=Ht(()=>o||(1===d.length?ii(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:o})=>{const n="Something isn't right";return e?"Something Failed":t||r?n:o?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:x}),[o,d,u,m,g,x]),v=Ht(()=>n||1===d.length&&d[0].message||void 0,[n,d]),$=Ht(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(Ax,{children:[e(Ex,{status:y,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:x,isExtended:s,toggleExtended:c}),s&&e(Dx,{children:d.map(({status:r,type:o,reason:n,message:i},s)=>{const l=r===Kr.Loading,c=r===Kr.Disabled?Gr.Info:r,d=l?null:jn(c,a),p=r===Gr.Error?on(a,Gr.Error,"500"):r===Gr.Warning?on(a,Gr.Warning,"500"):a.v2.colors.white[500],u=[o,i||n].filter(Boolean).join(" - ");return t(Tx,{children:[e(Ix,{children:l||!d?e(Un,{withSpinnerOld:!0}):e(d,{size:18})}),e(cn,{size:sn.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var Ox,Rx,_x;!function(e){e.Default="default",e.SuccessError="successError"}(Ox||(Ox={})),function(e){e.S="small",e.L="large"}(Rx||(Rx={})),function(e){e.Left="left",e.Right="right"}(_x||(_x={}));const Fx=o.div`
2221
+ `,zx=({conditions:r,title:o,subTitle:n})=>{const a=i(),[s,l]=Wt(!1),c=Vt(()=>l(e=>!e),[]),d=Xt(()=>ai(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{l(u||m||g)},[u,m,g]);const x=Xt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),y=Xt(()=>u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,[u,m,g]),b=Xt(()=>o||(1===d.length?ii(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:o})=>{const n="Something isn't right";return e?"Something Failed":t||r?n:o?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:x}),[o,d,u,m,g,x]),v=Xt(()=>n||1===d.length&&d[0].message||void 0,[n,d]),$=Xt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(_x,{children:[e(Ox,{status:y,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:x,isExtended:s,toggleExtended:c}),s&&e(Fx,{children:d.map(({status:r,type:o,reason:n,message:i},s)=>{const l=r===Kr.Loading,c=r===Kr.Disabled?Gr.Info:r,d=l?null:jn(c,a),p=r===Gr.Error?on(a,Gr.Error,"500"):r===Gr.Warning?on(a,Gr.Warning,"500"):a.v2.colors.white[500],u=[o,i||n].filter(Boolean).join(" - ");return t(Px,{children:[e(Lx,{children:l||!d?e(Un,{withSpinnerOld:!0}):e(d,{size:18})}),e(cn,{size:sn.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var Mx,Bx,Ux;!function(e){e.Default="default",e.SuccessError="successError"}(Mx||(Mx={})),function(e){e.S="small",e.L="large"}(Bx||(Bx={})),function(e){e.Left="left",e.Right="right"}(Ux||(Ux={}));const jx=o.div`
2215
2222
  display: flex;
2216
2223
  align-items: center;
2217
2224
  gap: ${({$gap:e})=>e}px;
2218
- `,Px=o.div`
2225
+ `,Wx=o.div`
2219
2226
  position: relative;
2220
2227
  display: flex;
2221
2228
  align-items: center;
@@ -2225,11 +2232,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2225
2232
  height: ${({$size:e})=>e}px;
2226
2233
  padding: ${4}px;
2227
2234
  border-radius: ${({$size:e})=>2*e}px;
2228
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:o,$value:n,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&n)return t;if(r&&!n)return r;switch(o){case Ox.SuccessError:return n?i.v2.colors.green[500]:i.v2.colors.red[500];case Ox.Default:default:return n?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2235
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:o,$value:n,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&n)return t;if(r&&!n)return r;switch(o){case Mx.SuccessError:return n?i.v2.colors.green[500]:i.v2.colors.red[500];case Mx.Default:default:return n?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2229
2236
 
2230
2237
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
2231
2238
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2232
- `,Lx=o.div`
2239
+ `,Hx=o.div`
2233
2240
  position: absolute;
2234
2241
  top: 50%;
2235
2242
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -2239,17 +2246,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2239
2246
  border-radius: 100%;
2240
2247
  background-color: ${({$color:e})=>e};
2241
2248
  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)"};
2242
- `,zx=({variant:o=Ox.Default,size:n=Rx.L,name:a,label:s,labelAlign:l=_x.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=ft,offIcon:x=yt,onBgColor:y,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=n===Rx.S?10:16,E=c||S.v2.colors.silver[200],A=n===Rx.S?sn.XXXS:sn.XS,D=n===Rx.S?8:12;return t(In,{$gap:4,children:[t(Tn,{$justifyContent:"space-between",children:[t(Fx,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===_x.Left&&e(cn,{color:E,size:A,nowrap:!0,children:s}),t(Px,{$onBgColor:y,$offBgColor:b,$variant:o,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(Lx,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(x,{size:C,fill:k})]})]}),s&&l===_x.Right&&e(cn,{color:E,size:A,nowrap:!0,children:s})]}),e(tf,{tooltip:d,badge:p})]}),e(rf,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Mx=o.div`
2249
+ `,Xx=({variant:o=Mx.Default,size:n=Bx.L,name:a,label:s,labelAlign:l=Ux.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=ft,offIcon:x=yt,onBgColor:y,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=n===Bx.S?10:16,E=c||S.v2.colors.silver[200],A=n===Bx.S?sn.XXXS:sn.XS,D=n===Bx.S?8:12;return t(In,{$gap:4,children:[t(Tn,{$justifyContent:"space-between",children:[t(jx,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===Ux.Left&&e(cn,{color:E,size:A,nowrap:!0,children:s}),t(Wx,{$onBgColor:y,$offBgColor:b,$variant:o,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(Hx,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(x,{size:C,fill:k})]})]}),s&&l===Ux.Right&&e(cn,{color:E,size:A,nowrap:!0,children:s})]}),e(sf,{tooltip:d,badge:p})]}),e(lf,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Gx=o.div`
2243
2250
  display: flex;
2244
2251
  flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
2245
2252
  gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
2246
- `,Bx=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,options:a,values:s,setValues:l})=>{const c=n===Rx.S?sn.XS:sn.S;return t(Mx,{$direction:r,children:[o&&e(cn,{size:c,children:o}),a.map(t=>e(zx,{...t,labelAlign:_x.Right,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return r?t[r]=o:a.forEach(e=>t[e.id]=o),t});var r,o},disabled:i,size:n},`${o}-toggle-${t.id}`))]})},Ux=o.div`
2253
+ `,Vx=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,options:a,values:s,setValues:l})=>{const c=n===Bx.S?sn.XS:sn.S;return t(Gx,{$direction:r,children:[o&&e(cn,{size:c,children:o}),a.map(t=>e(Xx,{...t,labelAlign:Ux.Right,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return r?t[r]=o:a.forEach(e=>t[e.id]=o),t});var r,o},disabled:i,size:n},`${o}-toggle-${t.id}`))]})},Kx=o.div`
2247
2254
  display: flex;
2248
2255
  align-items: center;
2249
2256
  justify-content: space-between;
2250
2257
  width: 100%;
2251
2258
  overflow: hidden;
2252
- `,jx=o.div`
2259
+ `,qx=o.div`
2253
2260
  display: flex;
2254
2261
  align-items: center;
2255
2262
  gap: 16px;
@@ -2257,7 +2264,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2257
2264
  min-width: 0;
2258
2265
  flex: 1;
2259
2266
  overflow: hidden;
2260
- `,Wx=o.div`
2267
+ `,Jx=o.div`
2261
2268
  display: flex;
2262
2269
  align-items: center;
2263
2270
  justify-content: center;
@@ -2266,15 +2273,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2266
2273
  height: 36px;
2267
2274
  border-radius: 8px;
2268
2275
  background: ${({theme:e})=>e.v2.colors.silver[800]};
2269
- `,Hx=o.img`
2276
+ `,Yx=o.img`
2270
2277
  width: 24px;
2271
2278
  height: 24px;
2272
- `,Xx=o.div`
2279
+ `,Qx=o.div`
2273
2280
  display: flex;
2274
2281
  align-items: center;
2275
2282
  gap: 16px;
2276
2283
  flex-shrink: 0;
2277
- `,Gx=({icon:r,iconSrc:o,title:n,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(Ux,{children:[t(jx,{children:[r?e(Wx,{children:e(r,{size:24})}):o?e(Wx,{children:e(Hx,{src:o,alt:n||"icon"})}):null,(n||i)&&t(In,{$gap:6,children:[n&&e(cn,{size:sn.S,weight:500,children:n}),i&&e(cn,{size:sn.XXS,children:i})]})]}),t(Xx,{children:[a&&e(zx,{...a}),s?.length?e(Pf,{iconButtonProps:{"data-id":"drawer-actions",icon:Lt},items:s,selectedIds:s?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>s?.find(t=>t?.id===e[0])?.onClick?.()}):null,l&&e(Il,{"data-id":"drawer-close",icon:yt,size:Dl.M,onClick:l,disabled:c})]})]}),Vx=o.div`
2284
+ `,Zx=({icon:r,iconSrc:o,title:n,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(Kx,{children:[t(qx,{children:[r?e(Jx,{children:e(r,{size:24})}):o?e(Jx,{children:e(Yx,{src:o,alt:n||"icon"})}):null,(n||i)&&t(In,{$gap:6,children:[n&&e(cn,{size:sn.S,weight:500,children:n}),i&&e(cn,{size:sn.XXS,children:i})]})]}),t(Qx,{children:[a&&e(Xx,{...a}),s?.length?e(Uf,{iconButtonProps:{"data-id":"drawer-actions",icon:Lt},items:s,selectedIds:s?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>s?.find(t=>t?.id===e[0])?.onClick?.()}):null,l&&e(Il,{"data-id":"drawer-close",icon:yt,size:Dl.M,onClick:l,disabled:c})]})]}),ey=o.div`
2278
2285
  display: flex;
2279
2286
  align-items: center;
2280
2287
  gap: 10px;
@@ -2284,7 +2291,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2284
2291
  padding: 4px 12px 4px 4px;
2285
2292
  border-radius: 8px;
2286
2293
  background-color: ${({theme:e,$status:t})=>on(e,t,[Gr.Info].includes(t)?"1000":"900")};
2287
- `,Kx=o.div`
2294
+ `,ty=o.div`
2288
2295
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
2289
2296
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
2290
2297
  display: flex;
@@ -2292,23 +2299,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2292
2299
  justify-content: center;
2293
2300
  border-radius: 6px;
2294
2301
  background-color: ${({theme:e,$status:t})=>on(e,t,[Gr.Info].includes(t)?"900":"800")};
2295
- `,qx=o.div`
2302
+ `,ry=o.div`
2296
2303
  margin-left: auto;
2297
2304
  margin-right: 8px;
2298
2305
  cursor: pointer;
2299
2306
  &:hover {
2300
2307
  transform: scale(1.2);
2301
2308
  }
2302
- `,Jx=({status:r,message:o,action:n,fullWidth:a,smallIcon:s})=>{const l=i(),c=jn(r,l),d=on(l,r,r===Gr.Default?"300":r===Gr.Info?"400":"500");return t(Vx,{$status:r,$fullWidth:a,children:[e("div",{children:e(Kx,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(cn,{color:d,size:sn.XXXS,weight:400,children:o}),n&&e(qx,{"data-id":n["data-id"],onClick:n.onClick,children:e(cn,{color:d,size:sn.XXS,weight:500,underline:!0,children:n.label})})]})},Yx=o.div`
2309
+ `,oy=({status:r,message:o,action:n,fullWidth:a,smallIcon:s})=>{const l=i(),c=jn(r,l),d=on(l,r,r===Gr.Default?"300":r===Gr.Info?"400":"500");return t(ey,{$status:r,$fullWidth:a,children:[e("div",{children:e(ty,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(cn,{color:d,size:sn.XXXS,weight:400,children:o}),n&&e(ry,{"data-id":n["data-id"],onClick:n.onClick,children:e(cn,{color:d,size:sn.XXS,weight:500,underline:!0,children:n.label})})]})},ny=o.div`
2303
2310
  display: flex;
2304
2311
  align-items: center;
2305
2312
  gap: 8px;
2306
2313
  padding: 4px 12px;
2307
- `,Qx=o.div`
2314
+ `,iy=o.div`
2308
2315
  flex: 1;
2309
- `,Zx=o.div`
2316
+ `,ay=o.div`
2310
2317
  width: 150px;
2311
- `,ey=({note:r,actions:o,children:n})=>n?e(Yx,{children:n}):t(Yx,{children:[r&&e(Jx,{...r}),e(Qx,{}),o?.map((t,r)=>e(Zx,{children:e($f,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),ty=o.div`
2318
+ `,sy=({note:r,actions:o,children:n})=>n?e(ny,{children:n}):t(ny,{children:[r&&e(oy,{...r}),e(iy,{}),o?.map((t,r)=>e(ay,{children:e(Ef,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),ly=o.div`
2312
2319
  position: fixed;
2313
2320
  top: 0;
2314
2321
  bottom: 0;
@@ -2329,14 +2336,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2329
2336
  ${({$disableAnimation:e,$position:t})=>!e&&n`
2330
2337
  animation-name: ${cl.in[t]};
2331
2338
  `}
2332
- `,ry=o.div`
2339
+ `,cy=o.div`
2333
2340
  display: flex;
2334
2341
  flex-direction: column;
2335
2342
  gap: 12px;
2336
2343
 
2337
2344
  height: calc(100% - ${56}px);
2338
2345
  overflow-y: auto;
2339
- `,oy=({isOpen:o,hideOverlay:n=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(kl(o),o?pr(t(r,{children:[!n&&e(Rn,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(ty,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(Gx,{...l}),e(ry,{children:d}),c&&e(ey,{...c})]})]}),document.body):null),ny=({options:t,values:r,setValues:o,withMultiSelect:n,withSearch:i,...a})=>{const s=Ht(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(Pf,{withMultiSelect:n,withSearch:i,alignX:If.Left,items:t,selectedIds:r,setSelectedIds:o,children:({ChevronIcon:t,handleClick:r})=>e(sf,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},iy=o.header`
2346
+ `,dy=({isOpen:o,hideOverlay:n=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(kl(o),o?pr(t(r,{children:[!n&&e(On,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(ly,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(Zx,{...l}),e(cy,{children:d}),c&&e(sy,{...c})]})]}),document.body):null),py=({options:t,values:r,setValues:o,withMultiSelect:n,withSearch:i,...a})=>{const s=Xt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(Uf,{withMultiSelect:n,withSearch:i,alignX:Ff.Left,items:t,selectedIds:r,setSelectedIds:o,children:({ChevronIcon:t,handleClick:r})=>e(uf,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},uy=o.header`
2340
2347
  position: relative;
2341
2348
  width: calc(100% - 36px);
2342
2349
  padding: 12px 18px;
@@ -2344,12 +2351,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2344
2351
  display: flex;
2345
2352
  align-items: center;
2346
2353
  justify-content: space-between;
2347
- `,ay=o(Tn)`
2354
+ `,hy=o(Tn)`
2348
2355
  position: absolute;
2349
2356
  left: 50%;
2350
2357
  transform: translateX(-50%);
2351
2358
  gap: 16px;
2352
- `,sy=({left:r=[],center:o=[],right:n=[]})=>t(iy,{children:[e(Tn,{$gap:16,children:r}),e(ay,{children:o}),e(Tn,{$gap:16,children:n})]}),ly=o.div`
2359
+ `,my=({left:r=[],center:o=[],right:n=[]})=>t(uy,{children:[e(Tn,{$gap:16,children:r}),e(hy,{children:o}),e(Tn,{$gap:16,children:n})]}),gy=o.div`
2353
2360
  display: flex;
2354
2361
  align-items: center;
2355
2362
  gap: 2px;
@@ -2364,17 +2371,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2364
2371
  left: ${({$left:e})=>e||"unset"};
2365
2372
  top: 50%;
2366
2373
  transform: translateY(-50%);
2367
- `,cy=({isOpen:t,actions:r,positionRight:o,positionLeft:n})=>t?e(ly,{$right:o,$left:n,children:r.map(t=>{if(!t)return null;const{tooltip:r,...o}=t;return e(Cc,{text:r||"",children:e($f,{...o,variant:yf.Secondary,size:bf.S})},o.id)})}):null,dy=({values:r,setValues:o,name:n,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:p,helpMessage:u,placeholder:h,disabled:m})=>{const g=i(),f=r.length<=1,x=m,y=m||f&&x,b=r.length?r:[""];return t(In,{"data-id":n,$gap:6,children:[e(tf,{label:a,tooltip:s,required:c,badge:l}),e(In,{$gap:8,children:b.map((n,i)=>{const a=i===b.length-1;return t(Tn,{$gap:8,$alignItems:"center",children:[e(sf,{width:"100%",autoFocus:Qn(n)&&!f&&a,value:n,onChange:e=>((e,t)=>{const n=[...r||[]];n[t]=e,o(n)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e($f,{leftIcon:St,variant:yf.Secondary,size:bf.S,disabled:x,onClick:()=>(()=>{const e=[...r||[]];e.push(""),o(e)})()}),e($f,{leftIcon:y?It:()=>e(It,{fill:g.v2.colors.red[500]}),variant:yf.Secondary,size:bf.S,disabled:y,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(rf,{errorMessage:d,warnMessage:p,helpMessage:u})]})},py=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,handleChange:a,errorMessage:s,disabled:l})=>{const{keyName:c,componentType:d,inputType:p,label:u,placeholder:h,options:m,renderCondition:g}=t,f=o[c];if(g&&!g(o))return null;switch(d){case Hr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],o=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(ny,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(c,t?e:e[0]??"",n),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===n&&0===r&&Qn(f);return e(sf,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,n),disabled:l,hasError:!!s})}},uy=o.table`
2374
+ `,fy=({isOpen:t,actions:r,positionRight:o,positionLeft:n})=>t?e(gy,{$right:o,$left:n,children:r.map(t=>{if(!t)return null;const{tooltip:r,...o}=t;return e(Cc,{text:r||"",children:e(Ef,{...o,variant:Sf.Secondary,size:kf.S})},o.id)})}):null,xy=({values:r,setValues:o,name:n,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:p,helpMessage:u,placeholder:h,disabled:m})=>{const g=i(),f=r.length<=1,x=m,y=m||f&&x,b=r.length?r:[""];return t(In,{"data-id":n,$gap:6,children:[e(sf,{label:a,tooltip:s,required:c,badge:l}),e(In,{$gap:8,children:b.map((n,i)=>{const a=i===b.length-1;return t(Tn,{$gap:8,$alignItems:"center",children:[e(uf,{width:"100%",autoFocus:Qn(n)&&!f&&a,value:n,onChange:e=>((e,t)=>{const n=[...r||[]];n[t]=e,o(n)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(Ef,{leftIcon:St,variant:Sf.Secondary,size:kf.S,disabled:x,onClick:()=>(()=>{const e=[...r||[]];e.push(""),o(e)})()}),e(Ef,{leftIcon:y?It:()=>e(It,{fill:g.v2.colors.red[500]}),variant:Sf.Secondary,size:kf.S,disabled:y,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(lf,{errorMessage:d,warnMessage:p,helpMessage:u})]})},yy=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,handleChange:a,errorMessage:s,disabled:l})=>{const{keyName:c,componentType:d,inputType:p,label:u,placeholder:h,options:m,renderCondition:g}=t,f=o[c];if(g&&!g(o))return null;switch(d){case Hr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],o=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(py,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(c,t?e:e[0]??"",n),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===n&&0===r&&Qn(f);return e(uf,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,n),disabled:l,hasError:!!s})}},by=o.table`
2368
2375
  width: 100%;
2369
2376
  border-collapse: separate;
2370
2377
  border-spacing: 0 8px;
2371
- `,hy=o.td`
2378
+ `,vy=o.td`
2372
2379
  padding: 0 8px 0 0;
2373
- `,my=o.td`
2380
+ `,$y=o.td`
2374
2381
  width: 72px;
2375
2382
  padding-bottom: 2px;
2376
2383
  vertical-align: bottom;
2377
- `,gy=({columns:r,values:o,setValues:n,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),x=Ht(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),y=(e,t,r)=>{const i=o.length?$r(o):[$r(x)];i[r][e]=t,n(i)},b=Ht(()=>{if(g){const e=[];for(let t=0;;t+=g){const o=r.slice(t,t+g);if(!o.length)break;e.push(o)}return e}return[r]},[g,r]),v=o.length?o:[x];return t(In,{"data-id":a,$gap:0,children:[e(tf,{label:s,tooltip:l,required:d,badge:c}),e(uy,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(Ut,{children:[g&&i>0?e("tr",{children:e(hy,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,o)=>t.renderCondition&&!t.renderCondition(r)?null:e(hy,{children:e(py,{col:t,colIdx:o,row:r,rowIdx:i,rowsLength:v.length,handleChange:y,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${o}`)),0===l&&e(my,{children:t(Tn,{$gap:8,$justifyContent:"flex-end",children:[a&&e($f,{leftIcon:St,variant:yf.Secondary,size:bf.S,disabled:p,onClick:()=>(()=>{const e=$r(o);e.push($r(x)),n(e)})()}),e($f,{leftIcon:p?It:()=>e(It,{fill:f.v2.colors.red[500]}),variant:yf.Secondary,size:bf.S,disabled:p,onClick:()=>(e=>{const t=o.filter((t,r)=>r!==e);t.length||t.push($r(x)),n(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(rf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},fy=o.div`
2384
+ `,wy=({columns:r,values:o,setValues:n,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),x=Xt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),y=(e,t,r)=>{const i=o.length?$r(o):[$r(x)];i[r][e]=t,n(i)},b=Xt(()=>{if(g){const e=[];for(let t=0;;t+=g){const o=r.slice(t,t+g);if(!o.length)break;e.push(o)}return e}return[r]},[g,r]),v=o.length?o:[x];return t(In,{"data-id":a,$gap:0,children:[e(sf,{label:s,tooltip:l,required:d,badge:c}),e(by,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(jt,{children:[g&&i>0?e("tr",{children:e(vy,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,o)=>t.renderCondition&&!t.renderCondition(r)?null:e(vy,{children:e(yy,{col:t,colIdx:o,row:r,rowIdx:i,rowsLength:v.length,handleChange:y,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${o}`)),0===l&&e($y,{children:t(Tn,{$gap:8,$justifyContent:"flex-end",children:[a&&e(Ef,{leftIcon:St,variant:Sf.Secondary,size:kf.S,disabled:p,onClick:()=>(()=>{const e=$r(o);e.push($r(x)),n(e)})()}),e(Ef,{leftIcon:p?It:()=>e(It,{fill:f.v2.colors.red[500]}),variant:Sf.Secondary,size:kf.S,disabled:p,onClick:()=>(e=>{const t=o.filter((t,r)=>r!==e);t.length||t.push($r(x)),n(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(lf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Sy=o.div`
2378
2385
  display: flex;
2379
2386
  align-items: center;
2380
2387
  justify-content: space-between;
@@ -2390,7 +2397,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2390
2397
  left: 50%;
2391
2398
  z-index: 1;
2392
2399
  animation-name: ${cl.in.center};
2393
- `,xy=({isOpen:r,onClose:o,richTitle:n,actions:i})=>r?t(fy,{children:[e(Gf,{...n}),e(Hf,{onAnyClick:o,actions:i})]}):null,yy=o.div`
2400
+ `,ky=({isOpen:r,onClose:o,richTitle:n,actions:i})=>r?t(Sy,{children:[e(Qf,{...n}),e(qf,{onAnyClick:o,actions:i})]}):null,Cy=o.div`
2394
2401
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2395
2402
  top: 50%;
2396
2403
  left: 50%;
@@ -2403,18 +2410,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2403
2410
  overflow: hidden;
2404
2411
 
2405
2412
  animation-name: ${cl.in.center};
2406
- `,by=o.div`
2413
+ `,Ey=o.div`
2407
2414
  position: relative;
2408
- `,vy=o.div`
2415
+ `,Ay=o.div`
2409
2416
  position: absolute;
2410
2417
  top: 16px;
2411
2418
  left: 16px;
2412
- `,$y=({isOpen:o,hideOverlay:n=!1,relativeToParent:i=!1,onBack:a,onClose:s,children:l})=>{if(kl(o),!o)return null;const c=t(r,{children:[!n&&e(Rn,{$relativeToParent:i,onClick:s}),e(yy,{"data-id":"modal",$relativeToParent:i,children:t(by,{children:[a&&e(vy,{children:e(Il,{icon:t=>e(Pt,{rotate:-90,...t}),size:Dl.L,onClick:a})}),l]})})]});return i?c:pr(c,document.body)},wy=o.div`
2419
+ `,Dy=({isOpen:o,hideOverlay:n=!1,relativeToParent:i=!1,onBack:a,onClose:s,children:l})=>{if(kl(o),!o)return null;const c=t(r,{children:[!n&&e(On,{$relativeToParent:i,onClick:s}),e(Cy,{"data-id":"modal",$relativeToParent:i,children:t(Ey,{children:[a&&e(Ay,{children:e(Il,{icon:t=>e(Pt,{rotate:-90,...t}),size:Dl.L,onClick:a})}),l]})})]});return i?c:pr(c,document.body)},Ty=o.div`
2413
2420
  position: relative;
2414
2421
  width: ${64}px;
2415
2422
  height: ${({$height:e})=>e};
2416
2423
  flex-shrink: 0;
2417
- `,Sy=o.aside`
2424
+ `,Iy=o.aside`
2418
2425
  position: absolute;
2419
2426
  top: 0;
2420
2427
  left: 0;
@@ -2432,7 +2439,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2432
2439
  transition:
2433
2440
  width 200ms ease,
2434
2441
  padding 200ms ease;
2435
- `,ky=o.button`
2442
+ `,Ny=o.button`
2436
2443
  display: flex;
2437
2444
  align-items: center;
2438
2445
  width: 100%;
@@ -2452,58 +2459,58 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2452
2459
  &:active {
2453
2460
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
2454
2461
  }
2455
- `,Cy=o.div`
2462
+ `,Ry=o.div`
2456
2463
  width: ${40}px;
2457
2464
  height: ${40}px;
2458
2465
  display: flex;
2459
2466
  align-items: center;
2460
2467
  justify-content: center;
2461
2468
  flex-shrink: 0;
2462
- `,Ey=o.div`
2469
+ `,Oy=o.div`
2463
2470
  flex: 1 1 0;
2464
2471
  min-width: 0;
2465
2472
  overflow: hidden;
2466
2473
  padding-right: 12px;
2467
2474
  pointer-events: none;
2468
- `,Ay=({height:r,icons:o})=>{const n=i(),[a,s]=jt(!1);return e(wy,{$height:r,children:e(Sy,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:r,label:o,selected:i,icon:s,onClick:l})=>t(ky,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(Cy,{children:e(s,{size:24,fill:n.v2.colors.white[500]})}),a&&e(Ey,{children:e(cn,{size:sn.S,weight:500,color:n.v2.colors.white[500],nowrap:!0,children:o})})]},r))})})};var Dy;!function(e){e.S="small",e.L="large"}(Dy||(Dy={}));const Ty=o.div`
2475
+ `,_y=({height:r,icons:o})=>{const n=i(),[a,s]=Wt(!1);return e(Ty,{$height:r,children:e(Iy,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:r,label:o,selected:i,icon:s,onClick:l})=>t(Ny,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(Ry,{children:e(s,{size:24,fill:n.v2.colors.white[500]})}),a&&e(Oy,{children:e(cn,{size:sn.S,weight:500,color:n.v2.colors.white[500],nowrap:!0,children:o})})]},r))})})};var Fy;!function(e){e.S="small",e.L="large"}(Fy||(Fy={}));const Py=o.div`
2469
2476
  width: fit-content;
2470
2477
  display: flex;
2471
2478
  align-items: center;
2472
2479
  gap: 8px;
2473
2480
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2474
- `,Iy=o.div`
2475
- width: ${({$size:e})=>e===Dy.S?"16px":"20px"};
2476
- height: ${({$size:e})=>e===Dy.S?"16px":"20px"};
2481
+ `,Ly=o.div`
2482
+ width: ${({$size:e})=>e===Fy.S?"16px":"20px"};
2483
+ height: ${({$size:e})=>e===Fy.S?"16px":"20px"};
2477
2484
  display: flex;
2478
2485
  align-items: center;
2479
2486
  justify-content: center;
2480
2487
  border-radius: 100%;
2481
2488
  border: 1px solid ${({$borderColor:e})=>e};
2482
2489
  background-color: ${({$backgroundColor:e})=>e};
2483
- `,Ny=({"data-id":r,label:o,value:n,onChange:a,disabled:s,size:l=Dy.L})=>{const c=i(),[d,p]=jt(!1),u=n,h=l===Dy.S?6:8,m=s?c.v2.colors.grey[400]:c.v2.colors.white[500],g=u?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:u?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(Ty,{"data-id":r??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!n)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(Iy,{$size:l,$borderColor:g,$backgroundColor:f,children:n?e(zt,{size:h,fill:m}):null}),o&&e(cn,{size:l===Dy.S?sn.XXS:sn.XS,children:o})]})},Oy=o.div`
2490
+ `,zy=({"data-id":r,label:o,value:n,onChange:a,disabled:s,size:l=Fy.L})=>{const c=i(),[d,p]=Wt(!1),u=n,h=l===Fy.S?6:8,m=s?c.v2.colors.grey[400]:c.v2.colors.white[500],g=u?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:u?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(Py,{"data-id":r??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!n)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(Ly,{$size:l,$borderColor:g,$backgroundColor:f,children:n?e(zt,{size:h,fill:m}):null}),o&&e(cn,{size:l===Fy.S?sn.XXS:sn.XS,children:o})]})},My=o.div`
2484
2491
  display: flex;
2485
2492
  flex-direction: ${({$flexDirection:e})=>e};
2486
2493
  gap: ${({$gap:e})=>e}px;
2487
- `,Ry=({label:r,direction:o,disabled:n,size:i,options:a,values:s,setValues:l})=>t(Oy,{$flexDirection:o===Fr.Horizontal?"row":"column",$gap:o===Fr.Horizontal?16:8,children:[r&&e(cn,{children:r}),a.map(t=>e(Ny,{...t,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=o,t});var r,o},disabled:n,size:i},`${r}-radio-${t.id}`))]}),_y=({currentStep:r,data:o,gap:n=12})=>e(In,{$gap:n,children:o.map(o=>{const n=o.step<r,i=o.step===r;return t(Tn,{$gap:8,children:[n||o.forceDoneBadge?e(Qg,{status:Gr.Success,label:"",leftIcon:ft}):e(Qg,{status:Gr.Default,label:o.step.toString()}),e(cn,{size:i?sn.M:sn.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var Fy;!function(e){e.Data="data",e.Pretty="pretty"}(Fy||(Fy={}));const Py=o.div`
2494
+ `,By=({label:r,direction:o,disabled:n,size:i,options:a,values:s,setValues:l})=>t(My,{$flexDirection:o===Fr.Horizontal?"row":"column",$gap:o===Fr.Horizontal?16:8,children:[r&&e(cn,{children:r}),a.map(t=>e(zy,{...t,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=o,t});var r,o},disabled:n,size:i},`${r}-radio-${t.id}`))]}),Uy=({currentStep:r,data:o,gap:n=12})=>e(In,{$gap:n,children:o.map(o=>{const n=o.step<r,i=o.step===r;return t(Tn,{$gap:8,children:[n||o.forceDoneBadge?e(of,{status:Gr.Success,label:"",leftIcon:ft}):e(of,{status:Gr.Default,label:o.step.toString()}),e(cn,{size:i?sn.M:sn.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var jy;!function(e){e.Data="data",e.Pretty="pretty"}(jy||(jy={}));const Wy=o.div`
2488
2495
  height: ${({$maxHeight:e})=>e};
2489
2496
  width: 100%;
2490
2497
  display: flex;
2491
2498
  flex-direction: column;
2492
2499
  overflow: hidden;
2493
- `,Ly=o.div`
2500
+ `,Hy=o.div`
2494
2501
  width: 100%;
2495
2502
  flex: 1;
2496
2503
  display: flex;
2497
2504
  flex-direction: column;
2498
- `,zy=o.div`
2505
+ `,Xy=o.div`
2499
2506
  flex-shrink: 0;
2500
2507
  position: relative;
2501
2508
  z-index: 2;
2502
- `,My=o.div`
2509
+ `,Gy=o.div`
2503
2510
  position: relative;
2504
2511
  display: flex;
2505
2512
  width: 100%;
2506
- `,By=o.div`
2513
+ `,Vy=o.div`
2507
2514
  position: relative;
2508
2515
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2509
2516
  flex: ${({$flex:e})=>e??1};
@@ -2514,12 +2521,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2514
2521
 
2515
2522
  ${({$variant:e,$backgroundColor:t})=>{if(t)return n`
2516
2523
  background-color: ${t};
2517
- `;switch(e){case Fy.Data:return n`
2524
+ `;switch(e){case jy.Data:return n`
2518
2525
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2519
- `;case Fy.Pretty:return n`
2526
+ `;case jy.Pretty:return n`
2520
2527
  background-color: transparent;
2521
2528
  `;default:return""}}}
2522
- `,Uy=o.div`
2529
+ `,Ky=o.div`
2523
2530
  position: absolute;
2524
2531
  top: 50%;
2525
2532
  right: 0;
@@ -2527,7 +2534,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2527
2534
  width: 1px;
2528
2535
  height: 18px;
2529
2536
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2530
- `,jy=o.div`
2537
+ `,qy=o.div`
2531
2538
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2532
2539
  flex: ${({$flex:e})=>e??1};
2533
2540
  overflow: hidden;
@@ -2538,23 +2545,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2538
2545
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2539
2546
  box-sizing: border-box;
2540
2547
 
2541
- ${({$variant:e,$selected:t,$hovered:r,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Fy.Data:return n`
2548
+ ${({$variant:e,$selected:t,$hovered:r,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case jy.Data:return n`
2542
2549
  border-bottom: ${({theme:e})=>o?"none":`1px solid ${e.v2.colors.silver[500]}`};
2543
2550
  border-radius: ${o?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
2544
2551
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2545
- `;case Fy.Pretty:return n`
2552
+ `;case jy.Pretty:return n`
2546
2553
  border: none;
2547
2554
  border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
2548
2555
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2549
2556
  `;default:return""}}}
2550
- `,Wy=o.div`
2557
+ `,Jy=o.div`
2551
2558
  width: 100%;
2552
2559
  display: flex;
2553
2560
  align-items: center;
2554
2561
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2555
2562
  gap: 4px;
2556
2563
  text-align: ${({$textAlign:e})=>e||"left"};
2557
- `,Hy=({variant:r,columns:o,rows:n,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=jt(null),p=Ht(()=>n.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:x,hideCheckbox:y}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===n.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(My,{children:[l&&e(jy,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!y&&e(Af,{value:g,onChange:()=>g?x?.():f?.()})},"checkbox-column"),o.map(({key:n,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===n),f=0===m&&!l,x=m===o.length-1,y=v.length&&(a&&x||s&&f||!a&&!s&&x),w=e(Tn,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(cn,{size:sn.XS,children:g?.rawValue||"-"})});return t(jy,{$variant:r,$flex:d,$minWidth:p,...$(f,x),children:[i?e(Cc,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,y?e(cy,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[n,c,i,a,s,l,o]);return e(dg,{gap:r===Fy.Pretty?8:0,elements:p})},Xy=({columnKey:t,sortDirection:r,sortByKey:o,onSort:n})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Pr.Ascending?0:180;return e(Il,{icon:t=>e(Pt,{fill:s,rotate:l,...t}),onClick:()=>n(t)})},Gy=({columnKey:t,filters:r,onFilter:o,rowsUnfiltered:n,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(n.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[n,t,a]);return e(Pf,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Mt,{fill:l,...t})}})},Vy=({variant:r,backgroundColor:o,columns:n,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(My,{children:[p&&e(By,{$variant:r,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(Af,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),n.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:x,filterOverride:y,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===n.length-1,C=e(cn,{size:sn.XS,align:$,children:h});return t(By,{$variant:r,$backgroundColor:o,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(Wy,{$textAlign:$,children:[g||m?e(Cc,{text:g||h,children:C}):C,!f&&e(Xy,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!x&&e(Gy,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:y})]}),!k&&r===Fy.Data&&e(Uy,{})]},`column-${u}`)})]}),Ky=({variant:r,maxHeight:o="256px",headerBackgroundColor:n,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h})=>{const[m,g]=jt(Pr.Ascending),[f,x]=jt(""),[y,b]=jt({}),v=Gt(e=>{x(e),g(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending)},[]),$=Gt((e,t)=>{b(r=>({...r,[e]:t}))},[]),w=Ht(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(f?[...c].sort((t,r)=>{const o=e(t,f),n=e(r,f);return(m===Pr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,n)}):c).filter(t=>{for(const[r,o]of Object.entries(y)){if(!o.length)continue;const n=l.find(e=>e.key===r)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1}else if(!o.includes(e(t,r)))return!1}return!0})},[c,f,m,y,l]),{partiallySelected:S,allSelected:k}=Ht(()=>{const e=w.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[w]);return e(Py,{$maxHeight:o,children:t(Ly,{$variant:r,children:[!i&&e(zy,{children:e(Vy,{variant:r,backgroundColor:n,columns:l,rowsUnfiltered:c,sortDirection:m,sortByKey:f,onSort:v,filters:y,onFilter:$,withCheckboxes:h,partiallySelected:S,allSelected:k,onSelectAll:e=>{e?w.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):w.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),w.length?e(Hy,{variant:r,columns:l,rows:w,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Nn,{style:{height:o},children:a?e(Un,{withSpinner:!0}):e(Sf,{...s})})]})})},qy=o.div`
2564
+ `,Yy=({variant:r,columns:o,rows:n,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Wt(null),p=Xt(()=>n.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:x,hideCheckbox:y}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===n.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(Gy,{children:[l&&e(qy,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!y&&e(Rf,{value:g,onChange:()=>g?x?.():f?.()})},"checkbox-column"),o.map(({key:n,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===n),f=0===m&&!l,x=m===o.length-1,y=v.length&&(a&&x||s&&f||!a&&!s&&x),w=e(Tn,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(cn,{size:sn.XS,children:g?.rawValue||"-"})});return t(qy,{$variant:r,$flex:d,$minWidth:p,...$(f,x),children:[i?e(Cc,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,y?e(fy,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[n,c,i,a,s,l,o]);return e(gg,{gap:r===jy.Pretty?8:0,elements:p})},Qy=({columnKey:t,sortDirection:r,sortByKey:o,onSort:n})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Pr.Ascending?0:180;return e(Il,{icon:t=>e(Pt,{fill:s,rotate:l,...t}),onClick:()=>n(t)})},Zy=({columnKey:t,filters:r,onFilter:o,rowsUnfiltered:n,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Xt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(n.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[n,t,a]);return e(Uf,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Mt,{fill:l,...t})}})},eb=({variant:r,backgroundColor:o,columns:n,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(Gy,{children:[p&&e(Vy,{$variant:r,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(Rf,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),n.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:x,filterOverride:y,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===n.length-1,C=e(cn,{size:sn.XS,align:$,children:h});return t(Vy,{$variant:r,$backgroundColor:o,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(Jy,{$textAlign:$,children:[g||m?e(Cc,{text:g||h,children:C}):C,!f&&e(Qy,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!x&&e(Zy,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:y})]}),!k&&r===jy.Data&&e(Ky,{})]},`column-${u}`)})]}),tb=({variant:r,maxHeight:o="256px",headerBackgroundColor:n,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h})=>{const[m,g]=Wt(Pr.Ascending),[f,x]=Wt(""),[y,b]=Wt({}),v=Vt(e=>{x(e),g(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending)},[]),$=Vt((e,t)=>{b(r=>({...r,[e]:t}))},[]),w=Xt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(f?[...c].sort((t,r)=>{const o=e(t,f),n=e(r,f);return(m===Pr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,n)}):c).filter(t=>{for(const[r,o]of Object.entries(y)){if(!o.length)continue;const n=l.find(e=>e.key===r)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1}else if(!o.includes(e(t,r)))return!1}return!0})},[c,f,m,y,l]),{partiallySelected:S,allSelected:k}=Xt(()=>{const e=w.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[w]);return e(Wy,{$maxHeight:o,children:t(Hy,{$variant:r,children:[!i&&e(Xy,{children:e(eb,{variant:r,backgroundColor:n,columns:l,rowsUnfiltered:c,sortDirection:m,sortByKey:f,onSort:v,filters:y,onFilter:$,withCheckboxes:h,partiallySelected:S,allSelected:k,onSelectAll:e=>{e?w.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):w.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),w.length?e(Yy,{variant:r,columns:l,rows:w,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Nn,{style:{height:o},children:a?e(Un,{withSpinner:!0}):e(Df,{...s})})]})})},rb=o.div`
2558
2565
  display: flex;
2559
2566
  align-items: center;
2560
2567
  justify-content: center;
@@ -2586,7 +2593,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2586
2593
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2587
2594
  border: 1px solid transparent;
2588
2595
  `}
2589
- `,Jy=({label:r,leftIcon:o,rightIcon:n,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(qy,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[o&&e(o,{fill:d,size:16}),e(cn,{color:d,size:sn.XS,nowrap:!0,children:r}),n&&e(n,{fill:d,size:16})]})},Yy=o.div`
2596
+ `,ob=({label:r,leftIcon:o,rightIcon:n,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(rb,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[o&&e(o,{fill:d,size:16}),e(cn,{color:d,size:sn.XS,nowrap:!0,children:r}),n&&e(n,{fill:d,size:16})]})},nb=o.div`
2590
2597
  padding: 6px 12px;
2591
2598
 
2592
2599
  display: flex;
@@ -2604,7 +2611,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2604
2611
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2605
2612
  }
2606
2613
  `}
2607
- `,Qy=o.textarea`
2614
+ `,ib=o.textarea`
2608
2615
  max-width: ${({$maxWidth:e})=>e||"unset"};
2609
2616
  min-height: ${({$minHeight:e})=>e||"50px"};
2610
2617
  flex: 1;
@@ -2629,24 +2636,24 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2629
2636
  color: ${({theme:e})=>e.v2.colors.grey[400]};
2630
2637
  }
2631
2638
  }
2632
- `,Zy=({label:r,required:o,tooltip:n,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Xt(null),x=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(In,{$gap:6,children:[e(tf,{label:r,tooltip:n,required:o,badge:i}),e(Yy,{$disabled:u,$error:!!a,children:e(Qy,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),x(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:x,onBlur:x,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(rf,{errorMessage:a,warnMessage:s,helpMessage:l})]})},eb=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],tb=o.div`
2639
+ `,ab=({label:r,required:o,tooltip:n,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Gt(null),x=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(In,{$gap:6,children:[e(sf,{label:r,tooltip:n,required:o,badge:i}),e(nb,{$disabled:u,$error:!!a,children:e(ib,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),x(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:x,onBlur:x,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(lf,{errorMessage:a,warnMessage:s,helpMessage:l})]})},sb=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],lb=o.div`
2633
2640
  flex: 1;
2634
2641
  min-width: 0;
2635
- `,rb=o.div`
2642
+ `,cb=o.div`
2636
2643
  flex: 0 0 auto;
2637
2644
  min-width: 140px;
2638
- `,ob=({name:r,label:o,tooltip:n,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=eb,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:x})=>{const y=Ht(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Ht(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),n=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(n);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(c,p,y),[c,p,y]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(In,{$width:x,$gap:6,children:[e(tf,{label:o,tooltip:n,required:s,badge:i}),t(Tn,{$gap:8,$alignItems:"center",children:[e(tb,{children:e(sf,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(di(e.target.value),v)})}),e(rb,{children:e(ny,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(rf,{errorMessage:h,warnMessage:m,helpMessage:g})]})},nb=o.div`
2645
+ `,db=({name:r,label:o,tooltip:n,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=sb,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:x})=>{const y=Xt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Xt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),n=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(n);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(c,p,y),[c,p,y]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(In,{$width:x,$gap:6,children:[e(sf,{label:o,tooltip:n,required:s,badge:i}),t(Tn,{$gap:8,$alignItems:"center",children:[e(lb,{children:e(uf,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(di(e.target.value),v)})}),e(cb,{children:e(py,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(lf,{errorMessage:h,warnMessage:m,helpMessage:g})]})},pb=o.div`
2639
2646
  width: 530px;
2640
- `,ib=o.div`
2647
+ `,ub=o.div`
2641
2648
  display: flex;
2642
2649
  flex-direction: column;
2643
2650
  align-items: center;
2644
2651
  gap: 16px;
2645
2652
  padding: 24px;
2646
- `,ab=o.div`
2653
+ `,hb=o.div`
2647
2654
  display: flex;
2648
2655
  justify-content: center;
2649
2656
  gap: 16px;
2650
2657
  padding: 16px 24px;
2651
2658
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2652
- `,sb=({visual:r,title:o,description:n,isOpen:a,onClose:s,onDeny:l,denyLabel:c="Deny",onApprove:d,approveLabel:p="Approve",...u})=>{const h=i();return e($y,{isOpen:a,onClose:s,...u,children:t(nb,{children:[t(ib,{children:[r&&e(r,{}),e(cn,{size:sn.M,weight:500,color:h.v2.colors.white[500],children:o}),e(In,{$alignItems:"center",$gap:4,children:n.split("\n").map(t=>e(cn,{size:sn.XS,weight:400,color:h.v2.colors.silver[200],children:t},t))})]}),(l||d)&&t(ab,{children:[e($f,{"data-id":"deny",variant:yf.Secondary,label:c,onClick:()=>{l?.(),s()}}),d&&e($f,{"data-id":"approve",variant:yf.Primary,label:p,onClick:()=>{d(),s()}})]})]})})};export{Bu as $,Wf as A,bf as B,id as C,Jf as D,Gr as E,In as F,mo as G,li as H,sf as I,ci as J,Ir as K,hi as L,io as M,Sf as N,Cc as O,ao as P,lo as Q,xo as R,mf as S,zx as T,fo as U,so as V,no as W,Ap as X,Qg as Y,Rs as Z,Lo as _,yf as a,Mu as a$,Tu as a0,fs as a1,Da as a2,ja as a3,Pa as a4,xs as a5,ha as a6,Ua as a7,Fa as a8,gs as a9,ql as aA,Js as aB,Wu as aC,jr as aD,Vs as aE,ko as aF,So as aG,Wo as aH,oy as aI,Do as aJ,Dn as aK,Nx as aL,_o as aM,$l as aN,si as aO,Bs as aP,Er as aQ,Jn as aR,ii as aS,Gs as aT,Eo as aU,Jy as aV,Ko as aW,qi as aX,ta as aY,Yi as aZ,ea as a_,Zf as aa,ga as ab,sl as ac,Wi as ad,Hi as ae,Ao as af,Il as ag,Dl as ah,Gi as ai,Un as aj,Vi as ak,Uo as al,ny as am,lf as an,$r as ao,qn as ap,js as aq,Ki as ar,Vl as as,Yl as at,Kl as au,qr as av,Lr as aw,Rx as ax,an as ay,Jl as az,Nn as b,ls as b$,Ds as b0,Is as b1,Ta as b2,Zi as b3,Ts as b4,ks as b5,Ss as b6,As as b7,Es as b8,$s as b9,co as bA,rx as bB,fx as bC,ix as bD,An as bE,cf as bF,Zp as bG,fa as bH,Za as bI,eu as bJ,wu as bK,ku as bL,Cu as bM,Au as bN,Du as bO,gu as bP,uu as bQ,Up as bR,Bp as bS,Mp as bT,fu as bU,hu as bV,nu as bW,$u as bX,ys as bY,cs as bZ,ss as b_,vs as ba,Ji as bb,ds as bc,na as bd,ia as be,Ox as bf,Ll as bg,rc as bh,ei as bi,Pf as bj,Nf as bk,If as bl,Gl as bm,En as bn,Ky as bo,Fy as bp,ju as bq,wp as br,fp as bs,Ep as bt,xy as bu,_y as bv,Gf as bw,Hf as bx,nn as by,$x as bz,Tr as c,fi as c$,as as c0,is as c1,tu as c2,ru as c3,ou as c4,sb as c5,ms as c6,hs as c7,us as c8,ps as c9,Ur as cA,Xs as cB,yi as cC,pc as cD,_n as cE,Lc as cF,Bi as cG,lg as cH,Fo as cI,kd as cJ,Kr as cK,ai as cL,jn as cM,Hs as cN,kr as cO,_d as cP,Go as cQ,Md as cR,Fn as cS,Pn as cT,_m as cU,jo as cV,Ln as cW,Lh as cX,ep as cY,Jg as cZ,fl as c_,Ml as ca,zh as cb,Ju as cc,qc as cd,Ei as ce,oh as cf,Gm as cg,Vg as ch,Zm as ci,jm as cj,Dc as ck,Cd as cl,vg as cm,fg as cn,nm as co,ig as cp,Hg as cq,Si as cr,Us as cs,Cm as ct,rm as cu,Gc as cv,Sl as cw,Xi as cx,vd as cy,Jh as cz,tf as d,zo as d$,pd as d0,vl as d1,Ys as d2,Xd as d3,oo as d4,Xo as d5,Ho as d6,dg as d7,No as d8,Bo as d9,Wh as dA,Yo as dB,Bg as dC,Pl as dD,Xc as dE,cl as dF,Kn as dG,El as dH,Yr as dI,Vn as dJ,ji as dK,hp as dL,Dd as dM,Lm as dN,Br as dO,xf as dP,Wn as dQ,Yn as dR,Ad as dS,Yd as dT,Zd as dU,cy as dV,ti as dW,pi as dX,Wl as dY,to as dZ,kh as d_,Tg as da,Al as db,To as dc,vo as dd,Cr as de,Cl as df,Bl as dg,yc as dh,On as di,Sg as dj,zl as dk,lh as dl,Os as dm,Co as dn,Ul as dp,Ol as dq,el as dr,wo as ds,hd as dt,Td as du,Wr as dv,_l as dw,xr as dx,yo as dy,Lg as dz,Af as e,Lf as e$,tc as e0,Ld as e1,Po as e2,vh as e3,zs as e4,Oo as e5,Qc as e6,tn as e7,Nd as e8,ob as e9,ca as eA,da as eB,ma as eC,xa as eD,ba as eE,ya as eF,ra as eG,oa as eH,aa as eI,Wa as eJ,Ha as eK,Ka as eL,Ns as eM,Vp as eN,Qi as eO,du as eP,zp as eQ,cu as eR,Lp as eS,lu as eT,Pp as eU,Ia as eV,Ea as eW,Na as eX,qa as eY,La as eZ,Ja as e_,_a as ea,ua as eb,Ra as ec,pa as ed,Ba as ee,Ma as ef,Ca as eg,Oa as eh,za as ei,Va as ej,Aa as ek,Ny as el,Xa as em,wa as en,sa as eo,Sa as ep,$a as eq,la as er,ka as es,ts as et,va as eu,Qa as ev,rs as ew,es as ex,os as ey,ns as ez,rf as f,ap as f$,Ga as f0,kf as f1,vn as f2,Ar as f3,Zr as f4,Rr as f5,eo as f6,Qr as f7,Mr as f8,Vr as f9,on as fA,Hn as fB,Zn as fC,ri as fD,ni as fE,di as fF,ui as fG,mi as fH,gi as fI,Sr as fJ,xi as fK,Ya as fL,Cs as fM,ws as fN,bs as fO,_s as fP,Fs as fQ,Ps as fR,Ls as fS,al as fT,ml as fU,ll as fV,il as fW,kl as fX,Xl as fY,Xu as fZ,Gu as f_,_r as fa,Fr as fb,Or as fc,ro as fd,zr as fe,ho as ff,uo as fg,po as fh,Jr as fi,bo as fj,go as fk,Pr as fl,Nr as fm,wn as fn,$n as fo,Cn as fp,yr as fq,Io as fr,wr as fs,Mo as ft,Vo as fu,Jo as fv,Qo as fw,Zo as fx,en as fy,rn as fz,Ro as g,rp as g0,tm as g1,$m as g2,gm as g3,Am as g4,Om as g5,Od as g6,rg as g7,Rn as g8,lm as g9,vi as ga,$i as gb,wi as gc,Uf as gd,jf as ge,Tf as gf,Ex as gg,eb as gh,ax as gi,sy as gj,$y as gk,Ay as gl,Ry as gm,Dy as gn,Yf as go,Bx as gp,Xr as h,Qn as i,gy as j,_x as k,dy as l,hc as m,Tn as n,$f as o,Hr as p,Dr as q,xp as r,cn as s,sn as t,Nl as u,$o as v,Zy as w,vr as x,Sp as y,Jx as z};
2659
+ `,mb=({visual:r,title:o,description:n,isOpen:a,onClose:s,onDeny:l,denyLabel:c="Deny",onApprove:d,approveLabel:p="Approve",...u})=>{const h=i();return e(Dy,{isOpen:a,onClose:s,...u,children:t(pb,{children:[t(ub,{children:[r&&e(r,{}),e(cn,{size:sn.M,weight:500,color:h.v2.colors.white[500],children:o}),e(In,{$alignItems:"center",$gap:4,children:n.split("\n").map(t=>e(cn,{size:sn.XS,weight:400,color:h.v2.colors.silver[200],children:t},t))})]}),(l||d)&&t(hb,{children:[e(Ef,{"data-id":"deny",variant:Sf.Secondary,label:c,onClick:()=>{l?.(),s()}}),d&&e(Ef,{"data-id":"approve",variant:Sf.Primary,label:p,onClick:()=>{d(),s()}})]})]})})};export{Xu as $,Kf as A,kf as B,id as C,ox as D,Gr as E,In as F,mo as G,li as H,uf as I,ci as J,Ir as K,hi as L,io as M,Df as N,Cc as O,ao as P,lo as Q,xo as R,bf as S,Xx as T,fo as U,so as V,no as W,Rp as X,of as Y,Os as Z,Lo as _,Sf as a,Hu as a$,_u as a0,fs as a1,Da as a2,ja as a3,Pa as a4,xs as a5,ha as a6,Ua as a7,Fa as a8,gs as a9,ql as aA,Js as aB,Ku as aC,jr as aD,Vs as aE,ko as aF,So as aG,Wo as aH,dy as aI,Do as aJ,Dn as aK,zx as aL,_o as aM,$l as aN,si as aO,Bs as aP,Er as aQ,Jn as aR,ii as aS,Gs as aT,Eo as aU,ob as aV,Ko as aW,qi as aX,ta as aY,Yi as aZ,ea as a_,ax as aa,ga as ab,sl as ac,Wi as ad,Hi as ae,Ao as af,Il as ag,Dl as ah,Gi as ai,Un as aj,Vi as ak,Uo as al,py as am,hf as an,$r as ao,qn as ap,js as aq,Ki as ar,Vl as as,Yl as at,Kl as au,qr as av,Lr as aw,Bx as ax,an as ay,Jl as az,Nn as b,ls as b$,Ds as b0,Is as b1,Ta as b2,Zi as b3,Ts as b4,ks as b5,Ss as b6,As as b7,Es as b8,$s as b9,co as bA,cx as bB,Sx as bC,ux as bD,An as bE,mf as bF,nu as bG,fa as bH,Za as bI,iu as bJ,Au as bK,Tu as bL,Iu as bM,Ru as bN,Ou as bO,vu as bP,xu as bQ,Gp as bR,Xp as bS,Hp as bT,$u as bU,yu as bV,cu as bW,Eu as bX,ys as bY,cs as bZ,ss as b_,vs as ba,Ji as bb,ds as bc,na as bd,ia as be,Mx as bf,Ll as bg,rc as bh,ei as bi,Uf as bj,Pf as bk,Ff as bl,Gl as bm,En as bn,tb as bo,jy as bp,Vu as bq,Ap as br,$p as bs,Np as bt,ky as bu,Uy as bv,Qf as bw,qf as bx,nn as by,Dx as bz,Tr as c,fi as c$,as as c0,is as c1,au as c2,su as c3,lu as c4,mb as c5,ms as c6,hs as c7,us as c8,ps as c9,Ur as cA,Xs as cB,yi as cC,pc as cD,_n as cE,Lc as cF,Bi as cG,hg as cH,Fo as cI,kd as cJ,Kr as cK,ai as cL,jn as cM,Hs as cN,kr as cO,_d as cP,Go as cQ,Md as cR,Fn as cS,Pn as cT,Mm as cU,jo as cV,Ln as cW,jh as cX,ep as cY,tf as cZ,fl as c_,Ml as ca,Wh as cb,th as cc,qc as cd,Ei as ce,lh as cf,Ym as cg,Qg as ch,ng as ci,Vm as cj,Dc as ck,Cd as cl,Cg as cm,$g as cn,cm as co,dg as cp,qg as cq,Si as cr,Us as cs,Im as ct,sm as cu,Gc as cv,Sl as cw,Xi as cx,vd as cy,tm as cz,sf as d,zo as d$,pd as d0,vl as d1,Ys as d2,Xd as d3,oo as d4,Xo as d5,Ho as d6,gg as d7,No as d8,Bo as d9,Kh as dA,Yo as dB,Xg as dC,Pl as dD,Xc as dE,cl as dF,Kn as dG,El as dH,Yr as dI,Vn as dJ,ji as dK,hp as dL,Dd as dM,jm as dN,Br as dO,wf as dP,Wn as dQ,Yn as dR,Ad as dS,Yd as dT,Zd as dU,fy as dV,ti as dW,pi as dX,Wl as dY,to as dZ,Th as d_,_g as da,Al as db,To as dc,vo as dd,Cr as de,Cl as df,Bl as dg,yc as dh,Rn as di,Dg as dj,zl as dk,hh as dl,Rs as dm,Co as dn,Ul as dp,Rl as dq,el as dr,wo as ds,hd as dt,Td as du,Wr as dv,_l as dw,xr as dx,yo as dy,jg as dz,Rf as e,jf as e$,tc as e0,Ld as e1,Po as e2,Ch as e3,zs as e4,Ro as e5,Qc as e6,tn as e7,Nd as e8,db as e9,ca as eA,da as eB,ma as eC,xa as eD,ba as eE,ya as eF,ra as eG,oa as eH,aa as eI,Wa as eJ,Ha as eK,Ka as eL,Ns as eM,Qp as eN,Qi as eO,gu as eP,Wp as eQ,mu as eR,jp as eS,hu as eT,Up as eU,Ia as eV,Ea as eW,Na as eX,qa as eY,La as eZ,Ja as e_,_a as ea,ua as eb,Oa as ec,pa as ed,Ba as ee,Ma as ef,Ca as eg,Ra as eh,za as ei,Va as ej,Aa as ek,zy as el,Xa as em,wa as en,sa as eo,Sa as ep,$a as eq,la as er,ka as es,ts as et,va as eu,Qa as ev,rs as ew,es as ex,os as ey,ns as ez,lf as f,ap as f$,Ga as f0,Tf as f1,vn as f2,Ar as f3,Zr as f4,Or as f5,eo as f6,Qr as f7,Mr as f8,Vr as f9,on as fA,Hn as fB,Zn as fC,ri as fD,ni as fE,di as fF,ui as fG,mi as fH,gi as fI,Sr as fJ,xi as fK,Ya as fL,Cs as fM,ws as fN,bs as fO,_s as fP,Fs as fQ,Ps as fR,Ls as fS,al as fT,ml as fU,ll as fV,il as fW,kl as fX,Xl as fY,Ju as fZ,Yu as f_,_r as fa,Fr as fb,Rr as fc,ro as fd,zr as fe,ho as ff,uo as fg,po as fh,Jr as fi,bo as fj,go as fk,Pr as fl,Nr as fm,wn as fn,$n as fo,Cn as fp,yr as fq,Io as fr,wr as fs,Mo as ft,Vo as fu,Jo as fv,Qo as fw,Zo as fx,en as fy,rn as fz,Oo as g,rp as g0,am as g1,Em as g2,vm as g3,Rm as g4,Lm as g5,Rd as g6,sg as g7,On as g8,hm as g9,vi as ga,$i as gb,wi as gc,Gf as gd,Vf as ge,_f as gf,Ox as gg,sb as gh,hx as gi,my as gj,Dy as gk,_y as gl,By as gm,Fy as gn,nx as go,Vx as gp,Jf as gq,Xr as h,Qn as i,wy as j,Ux as k,xy as l,hc as m,Tn as n,Ef as o,Hr as p,Dr as q,wp as r,cn as s,sn as t,Nl as u,$o as v,ab as w,vr as x,Dp as y,oy as z};