@odigos/ui-kit 0.0.235 → 0.0.236

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,6 +1,6 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as o,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 y,PostgresLogo as x,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,PyroscopeLogo as O,AwsXrayLogo as _,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as L,TingyunLogo as z,TempoLogo as M,TelemetryHubLogo as B,SumoLogicLogo as U,SplunkLogo as j,SignozLogo as W,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as G,GigapipeLogo as V,QrynLogo as K,PrometheusLogo as q,OpenTelemetryLogo as J,OracleLogo as Y,OpsVerseLogo as Q,OpenObserveLogo as Z,OneUptimeLogo as ee,OdigosLogo as te,ObserveLogo as re,NewRelicLogo as ne,MiddlewareLogo as oe,LumigoLogo as ie,LokiLogo as ae,LogzioLogo as se,LightstepLogo as le,Last9Logo as ce,KloudmateLogo as de,JaegerLogo as pe,InstanaLogo as ue,HyperDxLogo as he,HoneycombLogo as me,GroundcoverLogo as ge,GreptimeLogo as fe,GrafanaLogo as ye,GoogleCloudPlatformLogo as xe,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as ke,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Ae,ChecklyLogo as De,CauselyLogo as Te,BonreeLogo as Ie,BetterStackLogo as Ne,AzureMonitorLogo as Re,AzureBlobLogo as Oe,AxiomLogo as _e,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Le,SamplingIcon as ze,InstrumentationRuleIcon as Me,DestinationIcon as Be,SourceIcon as Ue,NamespacesIcon as je,PayloadCollectionIcon as We,HeadersCollectionIcon as He,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ge,TracesIcon as Ve,MetricsIcon as Ke,LogsIcon as qe,VmLogo as Je,DotsHorizontalIcon as Ye,QuestionCircleIcon as Qe,XSquareIcon as Ze,VSquareIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as rt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as pt,AwsLambdaLogo as ut,AwsSnsLogo as ht,AwsSqsLogo as mt,AwsDynamoDbLogo as gt,AwsStsLogo as ft,VIcon as yt,CopyIcon as xt,XIcon as bt,MinusIcon as vt,ListIcon as $t,CodeIcon as wt,ExtendArrowIcon as St,PlusIcon as kt,EditIcon as Ct,NoDataIcon as Et,RefreshIcon as At,EyeClosedIcon as Dt,EyeOpenIcon as Tt,SearchIcon as It,TrashIcon as Nt,EditedIcon as Rt,SortArrowsIcon as Ot,NotebookIcon as _t,ChevronUpIcon as Pt,ChevronDownIcon as Ft,ArrowIcon as Lt,DotsVerticalIcon as zt,DotIcon as Mt,FilterIcon as Bt}from"../icons.js";import{create as Ut}from"zustand";import{forwardRef as jt,Fragment as Wt,useState as Ht,useEffect as Xt,useMemo as Gt,useRef as Vt,useCallback as Kt,useContext as qt,createContext as Jt,memo as Yt,useLayoutEffect as Qt}from"react";import Zt from"javascript-time-ago";import{p as er,c as tr,s as rr,l as nr}from"./vendor-C150cdxb.js";import{Handle as or,Position as ir,ReactFlowProvider as ar,ReactFlow as sr,Controls as lr,ControlButton as cr,useReactFlow as dr}from"@xyflow/react";import pr,{createPortal as ur}from"react-dom";import{Highlight as hr,themes as mr}from"prism-react-renderer";import{ErrorBoundary as gr}from"react-error-boundary";import fr from"lottie-react";import{VList as yr}from"virtua";const xr=e=>e.charAt(0).toUpperCase()+e.slice(1),br=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,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,r(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]="object"==typeof i&&null!==i?JSON.stringify(r(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(r(o)):e[n]=o}return e},{})};var vr;!function(e){e.SIGNALS="SIGNALS"}(vr||(vr={}));const $r=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,i]=e;if(n===vr.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=r.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){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}},wr=e=>JSON.parse(JSON.stringify(e)),Sr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),kr=(e,t,r)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length-1;e++)n[e]in o&&"object"==typeof o[n[e]]||(o[n[e]]={}),o=o[n[e]];o[n[n.length-1]]=r},Cr=(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},Er=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Ar=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Dr,Tr,Ir,Nr,Rr,Or,_r,Pr,Fr,Lr,zr,Mr,Br,Ur,jr,Wr,Hr,Xr,Gr,Vr,Kr,qr,Jr,Yr,Qr,Zr,en,tn,rn,nn,on,an,sn,ln,cn,dn,pn,un,hn,mn,gn,fn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Dr||(Dr={})),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"}(Tr||(Tr={})),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"}(Ir||(Ir={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(Nr||(Nr={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Rr||(Rr={})),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"}(_r||(_r={})),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"}(Pr||(Pr={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fr||(Fr={})),function(e){e.Ascending="ascending",e.Descending="descending"}(Lr||(Lr={})),function(e){e.Community="community",e.Onprem="onprem"}(zr||(zr={})),function(e){e.K8s="k8s",e.Vm="vm"}(Mr||(Mr={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Br||(Br={})),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"}(Ur||(Ur={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(jr||(jr={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(Wr||(Wr={})),function(e){e.DataStream="DataStream"}(Hr||(Hr={})),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"}(Xr||(Xr={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Gr||(Gr={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Vr||(Vr={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Kr||(Kr={})),function(e){e.Loading="loading",e.Disabled="disabled"}(qr||(qr={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Jr||(Jr={})),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"}(Yr||(Yr={})),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"}(Qr||(Qr={})),function(e){e.Labeled="labeled"}(Zr||(Zr={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(en||(en={})),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",e.Pyroscope="pyroscope"}(tn||(tn={})),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"}(rn||(rn={})),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"}(nn||(nn={})),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"}(on||(on={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(an||(an={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(sn||(sn={})),function(e){e.HeaderKeys="headerKeys"}(ln||(ln={})),function(e){e.Java="java",e.Golang="golang"}(cn||(cn={}));class yn{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 xn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,n){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=n||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(dn||(dn={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(pn||(pn={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(un||(un={})),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"}(hn||(hn={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(mn||(mn={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(gn||(gn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(fn||(fn={}));const bn={[gn.Logs]:fn.Logs,[gn.Metrics]:fn.Metrics,[gn.Traces]:fn.Traces,[gn.Profiles]:fn.Profiles},vn={[fn.Logs]:gn.Logs,[fn.Metrics]:gn.Metrics,[fn.Traces]:gn.Traces,[fn.Profiles]:gn.Profiles},$n=(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===Vr.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},wn="https://docs.odigos.io",Sn="default",kn="this-cluster",Cn="This Cluster",En={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},An={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)'},Dn={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",RENAME_STREAM:e=>`Rename "${e}"`,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}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,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",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",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."},Tn={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"},In=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Sn&&!e.dataStreamNames.length):[],Nn=(e,t="",r={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${i}[${t}]`;null!==e&&"object"==typeof e?Nn(e,n,r):r[n]=e}):r[i]=o:Nn(o,i,r)}return r},Rn=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]}`},On=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`}},_n=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const n=e[t%16];t++;return("1"===r?n:"0"===r?63&n|128:15&n|64).toString(16)})},Pn=e=>{const t=e?.toLowerCase(),r=t?.includes(Dr.Samplers),n=t===Dr.Attributes;if(r)return l;if(n)return c;return{[Tr.K8sAttributes]:m,[Tr.AddClusterInfo]:h,[Tr.DeleteAttributes]:u,[Tr.PiiMasking]:c,[Tr.RenameAttributes]:p,[Tr.URLTemplatization]:d,[Tr.ErrorSampler]:l,[Tr.ProbabilisticSampler]:l,[Tr.LatencySampler]:l,[Tr.ServiceNameSampler]:l,[Tr.SpanAttributeSampler]:l}[e]||g},Fn=e=>{const t=e?.filter(({status:e})=>e===Vr.Error),r=e?.filter(({status:e})=>e===Vr.Warning),n=e?.filter(({status:e})=>e===qr.Disabled),o=e?.filter(({status:e})=>e===qr.Loading),i=t.length>0,a=r.length>0,s=n.length>0;return{errors:t,hasErrors:i,warnings:r,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Vr.Error:a?Vr.Warning:s?Vr.Info:void 0}},Ln=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zn=e=>({[Ur.Java]:R,[Ur.Go]:N,[Ur.JavaScript]:I,[Ur.Python]:T,[Ur.DotNet]:D,[Ur.CSharp]:A,[Ur.CPlusPlus]:E,[Ur.Php]:C,[Ur.Ruby]:k,[Ur.Rust]:S,[Ur.Swift]:w,[Ur.Elixir]:$,[Ur.MySql]:v,[Ur.Nginx]:b,[Ur.Postgres]:x,[Ur.Redis]:y,[Ur.Kafka]:f,[Ur.Ignored]:g,[Ur.Unknown]:g,[Ur.Processing]:g,[Ur.NoContainers]:g,[Ur.NoRunningPods]:g}[e]||g),Mn=e=>e?.map(e=>{return zn((t=e,t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language??"unknown"));var t})||[],Bn=e=>e?.map(e=>zn(e))||[],Un=e=>e.detectedLanguages?.length?Bn(e.detectedLanguages):Mn(e.containers),jn=(e,t)=>{const r={[tn.Alauda]:Le,[tn.AlibabaCloud]:Fe,[tn.AppDynamics]:Pe,[tn.Axiom]:_e,[tn.AzureBlob]:Oe,[tn.AzureMonitor]:Re,[tn.BetterStack]:Ne,[tn.Bonree]:Ie,[tn.Causely]:Te,[tn.Checkly]:De,[tn.Chronosphere]:Ae,[tn.ClickHouse]:Ee,[tn.CloudWatch]:Ce,[tn.Coralogix]:ke,[tn.Dash0]:Se,[tn.Datadog]:we,[tn.Dynamic]:J,[tn.Dynatrace]:$e,[tn.ElasticApm]:ve,[tn.ElasticSearch]:be,[tn.GoogleCloud]:xe,[tn.GoogleCloudOTLP]:xe,[tn.GrafanaCloudLoki]:ye,[tn.GrafanaCloudPrometheus]:ye,[tn.GrafanaCloudTempo]:ye,[tn.Greptime]:fe,[tn.Groundcover]:ge,[tn.Honeycomb]:me,[tn.HyperDX]:he,[tn.Instana]:ue,[tn.Jaeger]:pe,[tn.Kafka]:f,[tn.Kloudmate]:de,[tn.Last9]:ce,[tn.Lightstep]:le,[tn.LogzIo]:se,[tn.Loki]:ae,[tn.Lumigo]:ie,[tn.Middleware]:oe,[tn.NewRelic]:ne,[tn.Observe]:re,[tn.Odigos]:te,[tn.OneUptime]:ee,[tn.OpenObserve]:Z,[tn.Opsverse]:Q,[tn.Oracle]:Y,[tn.OTLP]:J,[tn.OTLPHttp]:J,[tn.Prometheus]:q,[tn.Qryn]:K,[tn.QrynOss]:V,[tn.Quickwit]:G,[tn.S3]:X,[tn.Seq]:H,[tn.Signalfx]:j,[tn.Signoz]:W,[tn.Splunk]:j,[tn.SplunkSapm]:j,[tn.SplunkOtlp]:j,[tn.SumoLogic]:U,[tn.TelemetryHub]:B,[tn.Tempo]:M,[tn.Tingyun]:z,[tn.Traceloop]:L,[tn.Uptrace]:F,[tn.VictoriaMetrics]:P,[tn.VictoriaMetricsCloud]:P,[tn.XRay]:_,[tn.Pyroscope]:O}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Wn=e=>({[Wr.Namespace]:je,[Wr.Source]:Ue,[Wr.Destination]:Be,[Wr.Action]:d,[Wr.InstrumentationRule]:Me,[Wr.SamplingRule]:ze}[e]),Hn=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,Xn=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Gn=e=>Xn(Hn(e)),Vn=(e,t,r)=>{const{extended:n,prioritizeDisplayName:o}=r||{};let i="",a="";switch(t){case Wr.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Wr.Source:const r=e;i=r.name,a=r.otelServiceName;break;case Wr.Action:const n=e;i=n.type,a=n.name;break;case Wr.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Wr.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):o&&a||i},Kn=(e,t)=>{if(t===Wr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=n}),t}return e},qn=e=>({[an.CodeAttributes]:Ge,[an.CustomInstrumentation]:Xe,[an.HeadersCollection]:He,[an.PayloadCollection]:We,[an.UnknownType]:g}[e]||g),Jn=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Ur.Unknown,Yn=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Ur.Processing:Ur.NoRunningPods;const n=r?.filter(e=>Jn(e)!==Ur.Ignored);if(!n.length)return Ur.NoContainers;const o=n.find(e=>Jn(e)!==Ur.Unknown);return o?Jn(o):Ur.Unknown},Qn=(e,t,r)=>(t===Wr.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},Zn=e=>({[gn.Logs]:qe,[gn.Metrics]:Ke,[gn.Traces]:Ve,[gn.Profiles]:te}[e]),eo=e=>{if(!e)return te;return{[Mr.K8s]:m,[Mr.Vm]:Je}[e]},to=e=>{if(!e)return"Unknown";return{[Mr.K8s]:"Kubernetes Cluster",[Mr.Vm]:"Virtual Machine"}[e]},ro=(e,t,r)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[r],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...ro(e,t,r)),o}):[]},no=(e,t)=>{if(t===Wr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},oo=(e,t,r)=>{switch(t){case Vr.Default:return e.v2.colors.purple[r];case Vr.Info:return e.v2.colors.blue[r];case Vr.Error:return e.v2.colors.red[r];case Vr.Warning:return e.v2.colors.yellow[r];case Vr.Success:return e.v2.colors.green[r];case qr.Loading:case Jr.Disabled:case Jr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},io=e=>{switch(e){case pn.Updating:case un.Pending:case hn.ContainerCreating:case mn.Waiting:return Vr.Info;case pn.Healthy:case un.Succeeded:case un.Running:case hn.Running:case mn.Running:return Vr.Success;case pn.Degraded:return Vr.Warning;case pn.Failed:case un.Failed:case hn.Error:case hn.CrashLoopBackOff:case hn.CreateContainerError:case hn.CreateContainerConfigError:case hn.ErrImagePull:case hn.ErrImageNeverPull:case hn.ImagePullBackOff:case hn.InvalidImageName:case hn.RegistryUnavailable:case hn.NetworkNotReady:case hn.OOMKilled:case hn.ContainerCannotRun:case mn.Terminated:case hn.DeadlineExceeded:case hn.StartError:return Vr.Error;case pn.Down:case hn.Completed:return Jr.Disabled;case pn.Unknown:case un.Unknown:default:return Jr.Unknown}};var ao,so,lo;!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"}(ao||(ao={})),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"}(so||(so={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(lo||(lo={}));const co=new Set(Object.values(lo)),po=(e,t)=>{if("string"!=typeof(r=t)||!co.has(r))return t;var r;switch(t){case lo.Primary:return e.v2.colors.white[500];case lo.Secondary:return e.v2.colors.silver[200];case lo.Tertiary:return e.v2.colors.black[500];case lo.Disable:return e.v2.colors.grey[400];case lo.Error:return e.v2.colors.red[500];case lo.Mandatory:return e.v2.colors.red[600];case lo.Link:return e.v2.colors.purple[400];case lo.Success:return e.v2.colors.green[400];default:return}},uo=n.p`
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as o,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 y,PostgresLogo as x,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,PyroscopeLogo as O,AwsXrayLogo as _,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as L,TingyunLogo as z,TempoLogo as M,TelemetryHubLogo as B,SumoLogicLogo as U,SplunkLogo as j,SignozLogo as W,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as G,GigapipeLogo as V,QrynLogo as K,PrometheusLogo as q,OpenTelemetryLogo as J,OracleLogo as Y,OpsVerseLogo as Q,OpenObserveLogo as Z,OneUptimeLogo as ee,OdigosLogo as te,ObserveLogo as re,NewRelicLogo as ne,MiddlewareLogo as oe,LumigoLogo as ie,LokiLogo as ae,LogzioLogo as se,LightstepLogo as le,Last9Logo as ce,KloudmateLogo as de,JaegerLogo as pe,InstanaLogo as ue,HyperDxLogo as he,HoneycombLogo as me,GroundcoverLogo as ge,GreptimeLogo as fe,GrafanaLogo as ye,GoogleCloudPlatformLogo as xe,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as ke,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Ae,ChecklyLogo as De,CauselyLogo as Te,BonreeLogo as Ie,BetterStackLogo as Ne,AzureMonitorLogo as Re,AzureBlobLogo as Oe,AxiomLogo as _e,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Le,SamplingIcon as ze,InstrumentationRuleIcon as Me,DestinationIcon as Be,SourceIcon as Ue,NamespacesIcon as je,PayloadCollectionIcon as We,HeadersCollectionIcon as He,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ge,TracesIcon as Ve,MetricsIcon as Ke,LogsIcon as qe,VmLogo as Je,DotsHorizontalIcon as Ye,QuestionCircleIcon as Qe,XSquareIcon as Ze,VSquareIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as rt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as pt,AwsLambdaLogo as ut,AwsSnsLogo as ht,AwsSqsLogo as mt,AwsDynamoDbLogo as gt,AwsStsLogo as ft,VIcon as yt,CopyIcon as xt,XIcon as bt,MinusIcon as vt,ListIcon as $t,CodeIcon as wt,ExtendArrowIcon as St,PlusIcon as kt,EditIcon as Ct,NoDataIcon as Et,RefreshIcon as At,EyeClosedIcon as Dt,EyeOpenIcon as Tt,SearchIcon as It,TrashIcon as Nt,EditedIcon as Rt,SortArrowsIcon as Ot,NotebookIcon as _t,ChevronUpIcon as Pt,ChevronDownIcon as Ft,ArrowIcon as Lt,DotsVerticalIcon as zt,DotIcon as Mt,FilterIcon as Bt}from"../icons.js";import{create as Ut}from"zustand";import{forwardRef as jt,Fragment as Wt,useState as Ht,useEffect as Xt,useMemo as Gt,useRef as Vt,useCallback as Kt,useContext as qt,createContext as Jt,memo as Yt,useLayoutEffect as Qt,createElement as Zt}from"react";import er from"javascript-time-ago";import{p as tr,c as rr,s as nr,l as or}from"./vendor-C150cdxb.js";import{Handle as ir,Position as ar,ReactFlowProvider as sr,ReactFlow as lr,Controls as cr,ControlButton as dr,useReactFlow as pr}from"@xyflow/react";import ur,{createPortal as hr}from"react-dom";import{Highlight as mr,themes as gr}from"prism-react-renderer";import{ErrorBoundary as fr}from"react-error-boundary";import yr from"lottie-react";import{VList as xr}from"virtua";const br=e=>e.charAt(0).toUpperCase()+e.slice(1),vr=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,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,r(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]="object"==typeof i&&null!==i?JSON.stringify(r(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(r(o)):e[n]=o}return e},{})};var $r;!function(e){e.SIGNALS="SIGNALS"}($r||($r={}));const wr=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,i]=e;if(n===$r.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=r.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){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}},Sr=e=>JSON.parse(JSON.stringify(e)),kr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Cr=(e,t,r)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length-1;e++)n[e]in o&&"object"==typeof o[n[e]]||(o[n[e]]={}),o=o[n[e]];o[n[n.length-1]]=r},Er=(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},Ar=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Dr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Tr,Ir,Nr,Rr,Or,_r,Pr,Fr,Lr,zr,Mr,Br,Ur,jr,Wr,Hr,Xr,Gr,Vr,Kr,qr,Jr,Yr,Qr,Zr,en,tn,rn,nn,on,an,sn,ln,cn,dn,pn,un,hn,mn,gn,fn,yn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Tr||(Tr={})),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"}(Ir||(Ir={})),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"}(Nr||(Nr={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(Rr||(Rr={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Or||(Or={})),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"}(_r||(_r={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Pr||(Pr={})),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"}(Fr||(Fr={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Lr||(Lr={})),function(e){e.Ascending="ascending",e.Descending="descending"}(zr||(zr={})),function(e){e.Community="community",e.Onprem="onprem"}(Mr||(Mr={})),function(e){e.K8s="k8s",e.Vm="vm"}(Br||(Br={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Ur||(Ur={})),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"}(jr||(jr={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Wr||(Wr={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(Hr||(Hr={})),function(e){e.DataStream="DataStream"}(Xr||(Xr={})),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"}(Gr||(Gr={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Vr||(Vr={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Kr||(Kr={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(qr||(qr={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Jr||(Jr={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Yr||(Yr={})),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"}(Qr||(Qr={})),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"}(Zr||(Zr={})),function(e){e.Labeled="labeled"}(en||(en={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(tn||(tn={})),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",e.Pyroscope="pyroscope"}(rn||(rn={})),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"}(nn||(nn={})),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"}(on||(on={})),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"}(an||(an={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(sn||(sn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(ln||(ln={})),function(e){e.HeaderKeys="headerKeys"}(cn||(cn={})),function(e){e.Java="java",e.Golang="golang"}(dn||(dn={}));class xn{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 bn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,n){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=n||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(pn||(pn={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(un||(un={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(hn||(hn={})),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"}(mn||(mn={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(gn||(gn={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(fn||(fn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(yn||(yn={}));const vn={[fn.Logs]:yn.Logs,[fn.Metrics]:yn.Metrics,[fn.Traces]:yn.Traces,[fn.Profiles]:yn.Profiles},$n={[yn.Logs]:fn.Logs,[yn.Metrics]:fn.Metrics,[yn.Traces]:fn.Traces,[yn.Profiles]:fn.Profiles},wn=(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(({detectedLanguages:t,containers:r})=>t?.some(t=>e.has(t))||r?.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===Kr.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},Sn="https://docs.odigos.io",kn="default",Cn="this-cluster",En="This Cluster",An={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Dn={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)'},Tn={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",RENAME_STREAM:e=>`Rename "${e}"`,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}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,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",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",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."},In={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"},Nn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===kn&&!e.dataStreamNames.length):[],Rn=(e,t="",r={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${i}[${t}]`;null!==e&&"object"==typeof e?Rn(e,n,r):r[n]=e}):r[i]=o:Rn(o,i,r)}return r},On=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]}`},_n=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`}},Pn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const n=e[t%16];t++;return("1"===r?n:"0"===r?63&n|128:15&n|64).toString(16)})},Fn=e=>{const t=e?.toLowerCase(),r=t?.includes(Tr.Samplers),n=t===Tr.Attributes;if(r)return l;if(n)return c;return{[Ir.K8sAttributes]:m,[Ir.AddClusterInfo]:h,[Ir.DeleteAttributes]:u,[Ir.PiiMasking]:c,[Ir.RenameAttributes]:p,[Ir.URLTemplatization]:d,[Ir.ErrorSampler]:l,[Ir.ProbabilisticSampler]:l,[Ir.LatencySampler]:l,[Ir.ServiceNameSampler]:l,[Ir.SpanAttributeSampler]:l}[e]||g},Ln=e=>{const t=e?.filter(({status:e})=>e===Kr.Error),r=e?.filter(({status:e})=>e===Kr.Warning),n=e?.filter(({status:e})=>e===Jr.Disabled),o=e?.filter(({status:e})=>e===Jr.Loading),i=t.length>0,a=r.length>0,s=n.length>0;return{errors:t,hasErrors:i,warnings:r,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Kr.Error:a?Kr.Warning:s?Kr.Info:void 0}},zn=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Mn=e=>({[jr.Java]:R,[jr.Go]:N,[jr.JavaScript]:I,[jr.Python]:T,[jr.DotNet]:D,[jr.CSharp]:A,[jr.CPlusPlus]:E,[jr.Php]:C,[jr.Ruby]:k,[jr.Rust]:S,[jr.Swift]:w,[jr.Elixir]:$,[jr.MySql]:v,[jr.Nginx]:b,[jr.Postgres]:x,[jr.Redis]:y,[jr.Kafka]:f,[jr.Ignored]:g,[jr.Unknown]:g,[jr.Processing]:g,[jr.NoContainers]:g,[jr.NoRunningPods]:g}[e]||g),Bn=e=>e?.map(e=>{return Mn((t=e,t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language??"unknown"));var t})||[],Un=e=>e?.map(e=>Mn(e))||[],jn=e=>e.detectedLanguages?.length?Un(e.detectedLanguages):Bn(e.containers),Wn=(e,t)=>{const r={[rn.Alauda]:Le,[rn.AlibabaCloud]:Fe,[rn.AppDynamics]:Pe,[rn.Axiom]:_e,[rn.AzureBlob]:Oe,[rn.AzureMonitor]:Re,[rn.BetterStack]:Ne,[rn.Bonree]:Ie,[rn.Causely]:Te,[rn.Checkly]:De,[rn.Chronosphere]:Ae,[rn.ClickHouse]:Ee,[rn.CloudWatch]:Ce,[rn.Coralogix]:ke,[rn.Dash0]:Se,[rn.Datadog]:we,[rn.Dynamic]:J,[rn.Dynatrace]:$e,[rn.ElasticApm]:ve,[rn.ElasticSearch]:be,[rn.GoogleCloud]:xe,[rn.GoogleCloudOTLP]:xe,[rn.GrafanaCloudLoki]:ye,[rn.GrafanaCloudPrometheus]:ye,[rn.GrafanaCloudTempo]:ye,[rn.Greptime]:fe,[rn.Groundcover]:ge,[rn.Honeycomb]:me,[rn.HyperDX]:he,[rn.Instana]:ue,[rn.Jaeger]:pe,[rn.Kafka]:f,[rn.Kloudmate]:de,[rn.Last9]:ce,[rn.Lightstep]:le,[rn.LogzIo]:se,[rn.Loki]:ae,[rn.Lumigo]:ie,[rn.Middleware]:oe,[rn.NewRelic]:ne,[rn.Observe]:re,[rn.Odigos]:te,[rn.OneUptime]:ee,[rn.OpenObserve]:Z,[rn.Opsverse]:Q,[rn.Oracle]:Y,[rn.OTLP]:J,[rn.OTLPHttp]:J,[rn.Prometheus]:q,[rn.Qryn]:K,[rn.QrynOss]:V,[rn.Quickwit]:G,[rn.S3]:X,[rn.Seq]:H,[rn.Signalfx]:j,[rn.Signoz]:W,[rn.Splunk]:j,[rn.SplunkSapm]:j,[rn.SplunkOtlp]:j,[rn.SumoLogic]:U,[rn.TelemetryHub]:B,[rn.Tempo]:M,[rn.Tingyun]:z,[rn.Traceloop]:L,[rn.Uptrace]:F,[rn.VictoriaMetrics]:P,[rn.VictoriaMetricsCloud]:P,[rn.XRay]:_,[rn.Pyroscope]:O}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Hn=e=>({[Hr.Namespace]:je,[Hr.Source]:Ue,[Hr.Destination]:Be,[Hr.Action]:d,[Hr.InstrumentationRule]:Me,[Hr.SamplingRule]:ze}[e]),Xn=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,Gn=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Vn=e=>Gn(Xn(e)),Kn=(e,t,r)=>{const{extended:n,prioritizeDisplayName:o}=r||{};let i="",a="";switch(t){case Hr.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Hr.Source:const r=e;i=r.name,a=r.otelServiceName;break;case Hr.Action:const n=e;i=n.type,a=n.name;break;case Hr.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Hr.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):o&&a||i},qn=(e,t)=>{if(t===Hr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=n}),t}return e},Jn=e=>({[sn.CodeAttributes]:Ge,[sn.CustomInstrumentation]:Xe,[sn.HeadersCollection]:He,[sn.PayloadCollection]:We,[sn.UnknownType]:g}[e]||g),Yn=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??jr.Unknown,Qn=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?jr.Processing:jr.NoRunningPods;const n=r?.filter(e=>Yn(e)!==jr.Ignored);if(!n.length)return jr.NoContainers;const o=n.find(e=>Yn(e)!==jr.Unknown);return o?Yn(o):jr.Unknown},Zn=(e,t,r)=>(t===Hr.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},eo=e=>({[fn.Logs]:qe,[fn.Metrics]:Ke,[fn.Traces]:Ve,[fn.Profiles]:te}[e]),to=e=>{if(!e)return te;return{[Br.K8s]:m,[Br.Vm]:Je}[e]},ro=e=>{if(!e)return"Unknown";return{[Br.K8s]:"Kubernetes Cluster",[Br.Vm]:"Virtual Machine"}[e]},no=(e,t,r)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[r],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...no(e,t,r)),o}):[]},oo=(e,t)=>{if(t===Hr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},io=(e,t,r)=>{switch(t){case Kr.Default:return e.v2.colors.purple[r];case Kr.Info:return e.v2.colors.blue[r];case Kr.Error:return e.v2.colors.red[r];case Kr.Warning:return e.v2.colors.yellow[r];case Kr.Success:return e.v2.colors.green[r];case Jr.Loading:case Yr.Disabled:case Yr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},ao=e=>{switch(e){case un.Updating:case hn.Pending:case mn.ContainerCreating:case gn.Waiting:return Kr.Info;case un.Healthy:case hn.Succeeded:case hn.Running:case mn.Running:case gn.Running:return Kr.Success;case un.Degraded:return Kr.Warning;case un.Failed:case hn.Failed:case mn.Error:case mn.CrashLoopBackOff:case mn.CreateContainerError:case mn.CreateContainerConfigError:case mn.ErrImagePull:case mn.ErrImageNeverPull:case mn.ImagePullBackOff:case mn.InvalidImageName:case mn.RegistryUnavailable:case mn.NetworkNotReady:case mn.OOMKilled:case mn.ContainerCannotRun:case gn.Terminated:case mn.DeadlineExceeded:case mn.StartError:return Kr.Error;case un.Down:case mn.Completed:return Yr.Disabled;case un.Unknown:case hn.Unknown:default:return Yr.Unknown}};var so,lo,co;!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"}(so||(so={})),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"}(lo||(lo={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(co||(co={}));const po=new Set(Object.values(co)),uo=(e,t)=>{if("string"!=typeof(r=t)||!po.has(r))return t;var r;switch(t){case co.Primary:return e.v2.colors.white[500];case co.Secondary:return e.v2.colors.silver[200];case co.Tertiary:return e.v2.colors.black[500];case co.Disable:return e.v2.colors.grey[400];case co.Error:return e.v2.colors.red[500];case co.Mandatory:return e.v2.colors.red[600];case co.Link:return e.v2.colors.purple[400];case co.Success:return e.v2.colors.green[400];default:return}},ho=n.p`
2
2
  margin: 0;
3
- color: ${({$color:e,theme:t})=>po(t,e)||t.v2.colors.grey[50]};
3
+ color: ${({$color:e,theme:t})=>uo(t,e)||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
5
5
  font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
6
  font-weight: ${({$weight:e})=>e};
@@ -26,11 +26,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
26
26
  text-decoration: underline;
27
27
  }
28
28
  `}
29
- `,ho=jt(({children:r,variant:n=ao.P,color:o,size:i=so.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 y=r?.toString().split("\n")||[];return e(uo,{ref:f,as:n,$color:o,$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:y.map((r,n)=>t(Wt,{children:[r,n!==y.length-1&&e("br",{})]},`typography-${n}-${r}`))})});ho.displayName="Typography";const mo=n.div`
29
+ `,mo=jt(({children:r,variant:n=so.P,color:o,size:i=lo.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 y=r?.toString().split("\n")||[];return e(ho,{ref:f,as:n,$color:o,$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:y.map((r,n)=>t(Wt,{children:[r,n!==y.length-1&&e("br",{})]},`typography-${n}-${r}`))})});mo.displayName="Typography";const go=n.div`
30
30
  border-radius: 100%;
31
31
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
32
32
  position: relative;
33
- `,go=n.div`
33
+ `,fo=n.div`
34
34
  width: 80px;
35
35
  height: 80px;
36
36
  border-radius: 100%;
@@ -44,12 +44,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
44
44
  transform: rotate(360deg);
45
45
  }
46
46
  }
47
- `,fo=n(ho)`
47
+ `,yo=n(mo)`
48
48
  position: absolute;
49
49
  top: 50%;
50
50
  left: 50%;
51
51
  transform: translate(-50%, -50%);
52
- `,yo=({percentage:r})=>t(mo,{children:[e(go,{}),"number"==typeof r?e(fo,{size:so.M,weight:500,children:`${r}%`}):null]}),xo={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 bo(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 n=(e.match(/[^0-9]*$/)||"").toString();return xo[n]?{value:t,unit:n}:{value:t,unit:"px"}}function vo(e){const t=bo(e);return`${t.value}${t.unit}`}const $o=((e,t,r)=>{const n=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return n;const o=document.createElement("style");document.head.appendChild(o);const i=o.sheet,a=`\n @keyframes ${n} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),n})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),wo=({loading:r=!0,color:n,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=n||d.text.secondary;if(!r)return null;const{value:u}=bo(2),h=u+4.2,m=h/2+h/5.5,g=4*h*o,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:vo(1.5),height:vo(4),borderRadius:vo(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${$o} ${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:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},So=n.div`
52
+ `,xo=({percentage:r})=>t(go,{children:[e(fo,{}),"number"==typeof r?e(yo,{size:lo.M,weight:500,children:`${r}%`}):null]}),bo={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 vo(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 n=(e.match(/[^0-9]*$/)||"").toString();return bo[n]?{value:t,unit:n}:{value:t,unit:"px"}}function $o(e){const t=vo(e);return`${t.value}${t.unit}`}const wo=((e,t,r)=>{const n=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return n;const o=document.createElement("style");document.head.appendChild(o);const i=o.sheet,a=`\n @keyframes ${n} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),n})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),So=({loading:r=!0,color:n,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=n||d.text.secondary;if(!r)return null;const{value:u}=vo(2),h=u+4.2,m=h/2+h/5.5,g=4*h*o,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:$o(1.5),height:$o(4),borderRadius:$o(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${wo} ${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:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},ko=n.div`
53
53
  width: ${({$size:e})=>e}px;
54
54
  height: ${({$size:e})=>e}px;
55
55
  border-radius: 100%;
@@ -57,7 +57,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
57
57
  display: flex;
58
58
  align-items: center;
59
59
  justify-content: center;
60
- `,ko=({scale:t,icon:r})=>{const n=i();return e(So,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(So,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(So,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(So,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(So,{$size:23*t,$color:"#50F6E8",children:e(r,{size:16*t,fill:n.v2.colors.black[500]})})})})})})},Co=434,Eo=635,Ao=n.div`
60
+ `,Co=({scale:t,icon:r})=>{const n=i();return e(ko,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(ko,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(ko,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(ko,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(ko,{$size:23*t,$color:"#50F6E8",children:e(r,{size:16*t,fill:n.v2.colors.black[500]})})})})})})},Eo=434,Ao=635,Do=n.div`
61
61
  width: ${434}px;
62
62
  height: ${635}px;
63
63
  display: flex;
@@ -67,12 +67,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
67
67
  padding: 16px;
68
68
  background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
69
69
  position: relative;
70
- `,Do=n.div`
70
+ `,To=n.div`
71
71
  position: absolute;
72
72
  top: 50%;
73
73
  left: 50%;
74
74
  transform: translate(-50%, -50%);
75
- `,To=()=>t(Ao,{children:[e(Do,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(Do,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Do,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Do,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Do,{children:e(te,{size:112})})]}),Io=n.div`
75
+ `,Io=()=>t(Do,{children:[e(To,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(To,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(To,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(To,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(To,{children:e(te,{size:112})})]}),No=n.div`
76
76
  width: ${({$size:e})=>e}px;
77
77
  height: ${({$size:e})=>e}px;
78
78
  border-radius: 100%;
@@ -80,7 +80,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
80
80
  display: flex;
81
81
  align-items: center;
82
82
  justify-content: center;
83
- `,No=({scale:t=1,icon:r})=>{const n=i();return e(Io,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(Io,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(Io,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(Io,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(Io,{$size:39*t,$color:n.v2.colors.purple[500],children:e(r,{size:32*t,fill:n.v2.colors.white[500]})})})})})})},Ro=n.div`
83
+ `,Ro=({scale:t=1,icon:r})=>{const n=i();return e(No,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(No,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(No,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(No,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(No,{$size:39*t,$color:n.v2.colors.purple[500],children:e(r,{size:32*t,fill:n.v2.colors.white[500]})})})})})})},Oo=n.div`
84
84
  flex: 1;
85
85
  align-self: stretch;
86
86
  display: flex;
@@ -90,7 +90,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
90
90
 
91
91
  max-height: calc(100vh - 24px - ${({$heightOffset:e})=>e||0}px);
92
92
  padding: 24px 24px 0 24px;
93
- `,Oo=n.div`
93
+ `,_o=n.div`
94
94
  position: relative;
95
95
 
96
96
  // inherit all the properties of the parent (PageContent)
@@ -100,9 +100,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
100
100
  flex-direction: inherit;
101
101
  gap: inherit;
102
102
  overflow-x: inherit;
103
- `,_o=n.div`
104
- padding: ${({$padding:e})=>e||"12px"};
105
103
  `,Po=n.div`
104
+ padding: ${({$padding:e})=>e||"12px"};
105
+ `,Fo=n.div`
106
106
  display: flex;
107
107
  flex-direction: row;
108
108
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -113,7 +113,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
113
113
  height: ${({$height:e})=>e||"unset"};
114
114
  margin: ${({$margin:e="unset"})=>e};
115
115
  padding: ${({$padding:e="unset"})=>e};
116
- `,Fo=n.div`
116
+ `,Lo=n.div`
117
117
  display: flex;
118
118
  flex-direction: column;
119
119
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -124,18 +124,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
124
124
  height: ${({$height:e})=>e||"unset"};
125
125
  margin: ${({$margin:e="unset"})=>e};
126
126
  padding: ${({$padding:e="unset"})=>e};
127
- `,Lo=n(Fo)`
127
+ `,zo=n(Lo)`
128
128
  width: ${({$width:e})=>e||"100%"};
129
129
  height: ${({$height:e})=>e||"unset"};
130
130
  padding: ${({$padding:e})=>e||"unset"};
131
131
  align-items: center;
132
132
  justify-content: center;
133
- `,zo=n.div`
133
+ `,Mo=n.div`
134
134
  display: flex;
135
135
  flex-direction: column;
136
136
  padding: 12px;
137
137
  overflow-y: scroll;
138
- `,Mo=n.div`
138
+ `,Bo=n.div`
139
139
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
140
140
  top: 0;
141
141
  left: 0;
@@ -146,37 +146,37 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
146
146
  z-index: ${({theme:e})=>e.v2.zIndex.modal};
147
147
  background: rgba(0, 0, 0, 0.6);
148
148
  backdrop-filter: blur(2px);
149
- `,Bo=n.div`
149
+ `,Uo=n.div`
150
150
  width: 800px;
151
151
  min-height: ${({$minHeight:e})=>e||"unset"};
152
152
  height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
153
153
  margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
154
154
  padding: 0 2px;
155
155
  overflow-y: scroll;
156
- `,Uo=n(Fo)`
156
+ `,jo=n(Lo)`
157
157
  max-width: ${({$maxWidth:e})=>e||"unset"};
158
158
  width: 100%;
159
- `,jo=n(Po)`
159
+ `,Wo=n(Fo)`
160
160
  gap: 16px;
161
161
  padding: 16px;
162
- `,Wo=n.div`
162
+ `,Ho=n.div`
163
163
  width: 100%;
164
164
  max-height: ${({$maxHeight:e})=>e||"unset"};
165
165
  overflow-y: auto;
166
- `,Ho=a`
166
+ `,Xo=a`
167
167
  0% {
168
168
  background-position: 0% 50%;
169
169
  }
170
170
  100% {
171
171
  background-position: 100% 50%;
172
172
  }
173
- `,Xo=n(ho)`
173
+ `,Go=n(mo)`
174
174
  background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
175
175
  background-size: 250% 100%; /* Expand background to allow movement */
176
176
  background-clip: text;
177
177
  color: transparent;
178
- animation: ${Ho} 1s reverse linear infinite;
179
- `,Go=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),n=Math.floor(r/60),o=r%60;return`${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`},Vo=({icon:r,title:n,titleColor:o,titleSize:a=so.S,subTitle:s,subTitleColor:l,subTitleSize:c=so.XXXS,startedAt:d,withGradient:p,gradientColor:u,withSpinner:h,withSpinnerOld:m,scaleSpinnerOld:g=1,percentage:f,withVisual:y,visualIcon:x=Ye})=>{const b=i(),[v,$]=Ht(()=>d?Go(d):"");Xt(()=>{if(!d)return;$(Go(d));const e=setInterval(()=>$(Go(d)),1e3);return()=>clearInterval(e)},[d]);const w=o||b.v2.colors.white[500],S=l||b.v2.colors.silver[200],k=u||b.v2.colors.black[500];return t(Fo,{$gap:16,$alignItems:"center",children:[y?e(ko,{scale:1.7,icon:x}):h?e(yo,{percentage:f}):m?e(wo,{scale:g}):null,(n||s||d||r)&&t(Fo,{$gap:8,$alignItems:"center",children:[t(Po,{$gap:4,children:[r&&e(r,{}),p?e(Xo,{align:"center",size:a,$titleColor:w,$gradientColor:k,children:n}):e(ho,{align:"center",size:a,color:w,children:n})]}),s?e(ho,{align:"center",size:c,color:S,children:s}):null,v?e(ho,{align:"center",size:c,color:w,children:v}):null]})]})},Ko=(e,t)=>{const r={[Vr.Default]:r=>te({fill:oo(t,e,"300"),...r}),[Vr.Info]:r=>nt({fill:oo(t,e,"400"),...r}),[Vr.Error]:r=>rt({fill:oo(t,e,"500"),...r}),[Vr.Warning]:r=>tt({fill:oo(t,e,"500"),...r}),[Vr.Success]:r=>et({fill:oo(t,e,"500"),...r}),[qr.Loading]:e=>Vo({withSpinnerOld:!0,...e}),[Jr.Disabled]:r=>Ze({fill:oo(t,e,"400"),...r}),[Jr.Unknown]:r=>Qe({fill:oo(t,e,"300"),...r})};return r[e]},qo=e=>{switch(e){case on.Success:return Vr.Success;case on.Error:case on.Failure:return Vr.Error;case on.Notice:return Vr.Warning;case on.Unsupported:case on.Unknown:return Vr.Info;case on.Irrelevant:case on.Disabled:return qr.Disabled;case on.Waiting:return qr.Loading;case on.Pending:default:return Vr.Default}},Jo=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Yo={redis:y,mysql:v,postgresql:x,postgres:x,kafka:f,elasticsearch:be,clickhouse:Ee,oracle:Y,aws:ot},Qo={sts:ft,dynamodb:gt,s3:X,sqs:mt,sns:ht,lambda:ut,kinesis:pt,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ce},Zo=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Yo[r.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Yo[n.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Qo[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Yo))if(i.includes(e))return t;return Be},ei=({namespace:e,name:t,kind:r})=>({namespace:e,name:t,kind:r});function ti(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ri=(e,t)=>{const r=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ti(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&r.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return r},ni=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Vr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1},oi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ii=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)},ai=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},si=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},li=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ci=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,di=e=>ci.test(e),pi=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",ui=e=>e?.map(({status:e,type:t,reason:r,message:n})=>({status:e?.toLowerCase(),type:pi(t),reason:r?pi(r):"",message:n}))||[],hi=(e,t)=>{const r=ti(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}))},mi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>vn[e]):[],gi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>vn[e]):[],fi=e=>e.replace(/[^\d]/g,""),yi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},xi=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},bi=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const n=(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!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},vi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const n=e[r];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>vi(e)))}else if("object"==typeof n&&null!==n){const e=vi(n);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(n)||(t[r]=n)}),t},$i=(e,t=2)=>JSON.stringify(e||{},null,t),wi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Si=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),ki=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)},Ci=n.div`
178
+ animation: ${Xo} 1s reverse linear infinite;
179
+ `,Vo=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),n=Math.floor(r/60),o=r%60;return`${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`},Ko=({icon:r,title:n,titleColor:o,titleSize:a=lo.S,subTitle:s,subTitleColor:l,subTitleSize:c=lo.XXXS,startedAt:d,withGradient:p,gradientColor:u,withSpinner:h,withSpinnerOld:m,scaleSpinnerOld:g=1,percentage:f,withVisual:y,visualIcon:x=Ye})=>{const b=i(),[v,$]=Ht(()=>d?Vo(d):"");Xt(()=>{if(!d)return;$(Vo(d));const e=setInterval(()=>$(Vo(d)),1e3);return()=>clearInterval(e)},[d]);const w=o||b.v2.colors.white[500],S=l||b.v2.colors.silver[200],k=u||b.v2.colors.black[500];return t(Lo,{$gap:16,$alignItems:"center",children:[y?e(Co,{scale:1.7,icon:x}):h?e(xo,{percentage:f}):m?e(So,{scale:g}):null,(n||s||d||r)&&t(Lo,{$gap:8,$alignItems:"center",children:[t(Fo,{$gap:4,children:[r&&e(r,{}),p?e(Go,{align:"center",size:a,$titleColor:w,$gradientColor:k,children:n}):e(mo,{align:"center",size:a,color:w,children:n})]}),s?e(mo,{align:"center",size:c,color:S,children:s}):null,v?e(mo,{align:"center",size:c,color:w,children:v}):null]})]})},qo=(e,t)=>{const r={[Kr.Default]:r=>te({fill:io(t,e,"300"),...r}),[Kr.Info]:r=>nt({fill:io(t,e,"400"),...r}),[Kr.Error]:r=>rt({fill:io(t,e,"500"),...r}),[Kr.Warning]:r=>tt({fill:io(t,e,"500"),...r}),[Kr.Success]:r=>et({fill:io(t,e,"500"),...r}),[Jr.Loading]:e=>Ko({withSpinnerOld:!0,...e}),[Yr.Disabled]:r=>Ze({fill:io(t,e,"400"),...r}),[Yr.Unknown]:r=>Qe({fill:io(t,e,"300"),...r})};return r[e]},Jo=e=>{switch(e){case an.Success:return Kr.Success;case an.Error:case an.Failure:return Kr.Error;case an.Notice:return Kr.Warning;case an.Unsupported:case an.Unknown:return Kr.Info;case an.Irrelevant:case an.Disabled:return Jr.Disabled;case an.Waiting:return Jr.Loading;case an.Pending:default:return Kr.Default}},Yo=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Qo={redis:y,mysql:v,postgresql:x,postgres:x,kafka:f,elasticsearch:be,clickhouse:Ee,oracle:Y,aws:ot},Zo={sts:ft,dynamodb:gt,s3:X,sqs:mt,sns:ht,lambda:ut,kinesis:pt,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ce},ei=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Qo[r.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Qo[n.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Zo[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Qo))if(i.includes(e))return t;return Be},ti=({namespace:e,name:t,kind:r})=>({namespace:e,name:t,kind:r});function ri(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ni=(e,t)=>{const r=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ri(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&r.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return r},oi=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Kr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1},ii=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ai=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)},si=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},li=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ci=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,di=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,pi=e=>di.test(e),ui=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",hi=e=>e?.map(({status:e,type:t,reason:r,message:n})=>({status:e?.toLowerCase(),type:ui(t),reason:r?ui(r):"",message:n}))||[],mi=(e,t)=>{const r=ri(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}))},gi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>$n[e]):[],fi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>$n[e]):[],yi=e=>e.replace(/[^\d]/g,""),xi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},bi=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},vi=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const n=(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!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},$i=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const n=e[r];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>$i(e)))}else if("object"==typeof n&&null!==n){const e=$i(n);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(n)||(t[r]=n)}),t},wi=(e,t=2)=>JSON.stringify(e||{},null,t),Si=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),ki=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),Ci=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)},Ei=n.div`
180
180
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
181
181
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
182
182
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -187,15 +187,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
187
187
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
188
188
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
189
189
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
190
- `,Ei=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,n]=e.split('"');return{original:e,href:r,label:n.replace("</a>","").replace(">","")}})},Ai=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Di=(r,n)=>{const o=Ei(r);o?.forEach((e,t)=>{r=r.replace(e.original,`LINK-${t}###`)});const i=Ai(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=o?.[parseInt(i.replace("LINK-",""))];return t(Wt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:n.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},r)}if(r.includes("STRONG-")){const[n,o]=r.split("###"),a=i?.[parseInt(n.replace("STRONG-",""))];return t(Wt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),o?`${o} `:" "]},r)}return r+" "})},Ti=({children:r,color:n,size:o,weight:a,align:s,family:l,opacity:c,decoration:d,transform:p,nowrap:u,...h})=>{const m=i(),g=Gt(()=>(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(Ci,{$color:n,$size:o,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:p,$nowrap:u,...h,children:g.length?g.map((r,n)=>t(Wt,{children:[Di(r,m),n!==g.length-1?e("br",{}):null]},`text-${n}-${r}`)):r})},Ii=n.div`
190
+ `,Ai=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,n]=e.split('"');return{original:e,href:r,label:n.replace("</a>","").replace(">","")}})},Di=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Ti=(r,n)=>{const o=Ai(r);o?.forEach((e,t)=>{r=r.replace(e.original,`LINK-${t}###`)});const i=Di(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=o?.[parseInt(i.replace("LINK-",""))];return t(Wt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:n.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},r)}if(r.includes("STRONG-")){const[n,o]=r.split("###"),a=i?.[parseInt(n.replace("STRONG-",""))];return t(Wt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),o?`${o} `:" "]},r)}return r+" "})},Ii=({children:r,color:n,size:o,weight:a,align:s,family:l,opacity:c,decoration:d,transform:p,nowrap:u,...h})=>{const m=i(),g=Gt(()=>(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(Ei,{$color:n,$size:o,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:p,$nowrap:u,...h,children:g.length?g.map((r,n)=>t(Wt,{children:[Ti(r,m),n!==g.length-1?e("br",{}):null]},`text-${n}-${r}`)):r})},Ni=n.div`
191
191
  padding: 4px 0 0 0;
192
- `,Ni=n(Ti)`
192
+ `,Ri=n(Ii)`
193
193
  font-size: 12px;
194
194
  color: ${({theme:e})=>e.text.error};
195
- `,Ri=({children:t})=>e(Ii,{children:e(Ni,{children:t})}),Oi=n.div`
195
+ `,Oi=({children:t})=>e(Ni,{children:e(Ri,{children:t})}),_i=n.div`
196
196
  position: relative;
197
197
  width: 100%;
198
- `,_i=n.div`
198
+ `,Pi=n.div`
199
199
  width: calc(100% - 16px);
200
200
  display: flex;
201
201
  align-items: center;
@@ -212,7 +212,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
212
212
  &:focus-within {
213
213
  border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
214
214
  }
215
- `,Pi=n.input`
215
+ `,Fi=n.input`
216
216
  flex: 1;
217
217
  border: none;
218
218
  outline: none;
@@ -233,7 +233,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
233
233
  &:disabled {
234
234
  cursor: not-allowed;
235
235
  }
236
- `,Fi=n.ul`
236
+ `,Li=n.ul`
237
237
  position: absolute;
238
238
  max-height: 500px;
239
239
  top: 32px;
@@ -244,7 +244,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
244
244
  border: 1px solid ${({theme:e})=>e.colors.border};
245
245
  z-index: 9999;
246
246
  padding: 12px;
247
- `,Li=n.li`
247
+ `,zi=n.li`
248
248
  width: calc(100% - 24px);
249
249
  padding: 8px 12px;
250
250
  cursor: ${({$isList:e})=>e?"default":"pointer"};
@@ -256,34 +256,34 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
256
256
  &:hover {
257
257
  background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
258
258
  }
259
- `,zi=n.div`
260
- width: 100%;
261
259
  `,Mi=n.div`
262
- display: flex;
263
260
  width: 100%;
264
261
  `,Bi=n.div`
262
+ display: flex;
263
+ width: 100%;
264
+ `,Ui=n.div`
265
265
  width: 1px;
266
266
  height: 52px;
267
267
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
268
268
  position: absolute;
269
269
  left: 33px;
270
- `,Ui=n.div`
270
+ `,ji=n.div`
271
271
  display: flex;
272
272
  flex-direction: column;
273
273
  gap: 4px;
274
- `,ji=n(Ti)`
274
+ `,Wi=n(Ii)`
275
275
  flex: 1;
276
276
  font-size: 14px;
277
- `,Wi=n(Ti)`
277
+ `,Hi=n(Ii)`
278
278
  color: ${({theme:e})=>e.text.grey};
279
279
  font-size: 10px;
280
280
  line-height: 150%;
281
- `,Hi=n.ul`
281
+ `,Xi=n.ul`
282
282
  padding-left: 0px;
283
283
  margin: 4px 0 0 0;
284
284
  list-style: none;
285
285
  width: 100%;
286
- `,Xi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const n=Xi(r.items,t);n.length&&e.push({...r,items:n})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Gi=({placeholder:r="Type to search...",options:n,selectedOption:o,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Ht(o?.label||a||""),[m,g]=Ht(Xi(n,u)),[f,y]=Ht(!1);Ht(-1),Xt(()=>g(Xi(n,u)),[n]);const x=o?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),y(!e),i?.(e)};return t(Oi,{style:l,children:[t(_i,{$hasError:!!d,children:[x&&e(x,{}),e(Pi,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Xi(n,t),o=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&y(!1),onFocus:()=>!c&&y(!0),...p})]}),f&&m.length?e(Fi,{children:m.map(t=>e(Vi,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ri,{children:d})]})},Vi=({option:r,renderIcon:n=!0,onClick:o})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Li,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:o(r),children:[a&&n&&e(a,{}),t(zi,{children:[t(Ui,{children:[e(ji,{children:r.label}),e(Wi,{children:r.description})]}),i&&e(Hi,{children:r.items?.map(r=>t(Mi,{children:[e(Bi,{}),e(Vi,{option:r,renderIcon:!1,onClick:o})]},r.type||r.label))})]})]})},Ki=Ut(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),qi=[{type:Tr.K8sAttributes,icon:Pn(Tr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[gn.Traces,gn.Metrics,gn.Logs,gn.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Tr.AddClusterInfo,icon:Pn(Tr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[gn.Traces,gn.Metrics,gn.Logs,gn.Profiles],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:Tr.DeleteAttributes,icon:Pn(Tr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[gn.Traces,gn.Metrics,gn.Logs,gn.Profiles],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:Tr.RenameAttributes,icon:Pn(Tr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[gn.Traces,gn.Metrics,gn.Logs,gn.Profiles],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:Tr.PiiMasking,icon:Pn(Tr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[gn.Traces,gn.Profiles],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Tr.URLTemplatization,icon:Pn(Tr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[gn.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:ki("v1.21.0")}],Ji=[{type:Tr.ErrorSampler,icon:Pn(Dr.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[gn.Traces,gn.Profiles],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Tr.LatencySampler,icon:Pn(Dr.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[gn.Traces,gn.Profiles],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:Tr.ProbabilisticSampler,icon:Pn(Dr.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[gn.Traces,gn.Profiles],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Tr.ServiceNameSampler,icon:Pn(Dr.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[gn.Traces,gn.Profiles],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Tr.SpanAttributeSampler,icon:Pn(Dr.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[gn.Traces,gn.Profiles],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Yi=[{label:"Attributes",icon:Pn(Dr.Attributes),items:qi},{label:"Samplers",icon:Pn(Dr.Samplers),items:Ji}];var Qi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Qi||(Qi={}));const Zi={[Qi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Qi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Qi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Qi.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."},[Qi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Qi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ea=[{type:an.CodeAttributes,icon:qn(an.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:[Ur.Go,Ur.Python]},{type:an.CustomInstrumentation,icon:qn(an.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:[Ur.Go,Ur.Java]},{type:an.HeadersCollection,icon:qn(an.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:[Ur.Go,Ur.Java,Ur.JavaScript]},{type:an.PayloadCollection,icon:qn(an.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:[Ur.Go,Ur.JavaScript]}],ta="Cancel",ra="Save",na="Edit rule",oa="Edit auto rule",ia="Create rule",aa="Delete rule",sa="Save",la="Create your first rule",ca="No Rules Exist",da="No Results",pa=e=>`No rules match the search term "${e}"`,ua="Rule name",ha="Rule type",ma="Select the type of condition that makes a trace highly relevant.",ga="Rule Enabled",fa="Rule Disabled",ya="Enabled",xa="Disabled",ba="Note",va="HTTP route",$a="Method",wa="Keep Percentage",Sa="Drop Percentage",ka="Keep traces with duration larger than",Ca="Keep traces with errors",Ea="Keep at least this percentage of matching traces",Aa="Keep at most this percentage of matching traces",Da="Custom percentage",Ta="Disabled rule",Ia="Sample",Na="Keep all",Ra="Drop all",Oa="Operation type",_a="HTTP route prefix",Pa="Templated path",Fa="Templated path prefix",La="Kafka topic",za="Custom duration (ms)",Ma="No preview available",Ba="Server address",Ua="Drop at most this percentage of matching traces",ja="Unnamed rule",Wa="Sampling Preview",Ha="Source Scope",Xa="Unknown source",Ga="Operation",Va="Duration",Ka="Errors",qa="Keep Percentage",Ja="Drop Percentage",Ya="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Qa="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.",Za="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",es="Retain traces with errors from the selected services and operations.",ts="Specify the exact percentage of matching traces to keep",rs="Specify the exact percentage of matching traces to drop",ns="Type rule name",os="Add note here...",is="Type here",as="Search source name",ss="e.g. collector.my.vendor.com",ls="Optional notes (not used by the system). Add any context or details for this sampling rule.",cs="Rule will apply to all sources in the cluster",ds="If multiple source scopes are set, they must all match simultaneously.",ps="All sources",us="-",hs="All",ms="All operations",gs="HTTP server endpoint",fs="HTTP client endpoint",ys="Kafka consumer",xs="Kafka producer",bs="Sampling Rules",vs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',$s="Refresh",ws="Create rule",Ss="Sampling docs",ks="75vw",Cs="Delete rule?",Es="Are you sure you want to delete this sampling rule?",As="Delete",Ds="Cancel",Ts="Kubernetes Health Probes",Is="Keep All Error Traces",Ns="Drop Traces Cluster-Wide",Rs="A rule with the same matching conditions already exists.",Os="Create 'Noisy Operation Kubernetes Health Probes' rule",_s="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ps="Automatically detect and sample health probe traces across the cluster.",Fs="Create 'Highly Relevant Operations' rule",Ls="Edit 'Highly Relevant Operations' rule",zs="Automatically keep all error traces across the entire cluster.",Ms="Create 'Cost Reduction' rule",Bs="Edit 'Cost Reduction' rule",Us="Automatically drop a percentage of traces across the entire cluster.",js="Skip setup",Ws="Start setup",Hs="Next",Xs="Go to Sampling",Gs="Read more",Vs="Welcome to Sampling",Ks="Cut costs without losing what matters",qs="Odigos sampling works in three stages:",Js="Filter noisy traffic",Ys="Remove non-actionable traces like health checks.",Qs="Guarantee highly relevance operations",Zs="Keep traces with errors, high latency, or mission-critical endpoints/services.",el="Reduce cost",tl="Sample routine traffic using percentages.",rl="Sampling does not drop individual spans - it keeps or drops the entire trace.",nl="Filter noisy operations",ol="Cut traces with little or no observability value (health-checks, metric scarping, etc)",il="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",al="Preset Rules",sl="Kubernetes Health Probes",ll="Automatically ignore health checks",cl="You can review, adjust, and add additional custom rules later.",dl="Choose your sampling strategy",pl="Pick the approach that best fits your balance of cost vs data-completeness",ul="Keep List",hl="Budget Friendly",ml="Define which traces must be kept, while all others are sampled by default to minimize cost.",gl="Cost-oriented - keeps only what you explicitly select.",fl="Best for very large clusters with high volumes of traces and high costs.",yl="Higher risk of missing important traces without ongoing review.",xl="Drop List",bl="Safe Choice",vl="Define which traces must be aggressively dropped, while all others are kept by default.",$l="Preserves most data unless explicitly filtered.",wl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Sl="Advanced",kl="Maximum Flexibility",Cl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",El="'Keep List' profile",Al="Protect important traces",Dl="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Tl="Traces with errors",Il="Slow requests (duration above threshold)",Nl="Mission-Critical endpoints or services",Rl="Services under test or evaluation",Ol="New deployments",_l="You can review, adjust, and add rules once onboarding is complete.",Pl="Common Rules",Fl="Preset Rules",Ll="Error collection - entire cluster",zl="Keep all traces with errors",Ml="Ambient sampling percentage",Bl="'Drop List' profile",Ul="Reduce high-volume traffic",jl="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Wl="Advanced Configuration",Hl="Configure sampling rules",Xl="Advanced mode allows you to configure all sampling categories:",Gl="Noise Filtering - remove non-actionable traces",Vl="Highly Relevance - guarantee important traces are kept",Kl='Cost Control - drop traces for "Normal" operations',ql="Rules can target:",Jl="Services",Yl="HTTP Endpoints",Ql="DB Operations",Zl="Errors",ec="Latency and more...",tc="Sampling configured successfully!",rc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",nc="Odigos will now:",oc="Filter noisy operations",ic="Guarantee important traces",ac="Reduce cost using controlled sampling",sc="Recommended",lc={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."},cc={noisy:Os,highlyRelevant:Fs,costReduction:Ms},dc={noisy:_s,highlyRelevant:Ls,costReduction:Bs},pc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},uc=[{id:gn.Logs,value:"Logs"},{id:gn.Metrics,value:"Metrics"},{id:gn.Traces,value:"Traces"},{id:gn.Profiles,value:"Profiles"}],hc={[Ur.Go]:"Go",[Ur.Java]:"Java",[Ur.JavaScript]:"Node.js",[Ur.Python]:"Python",[Ur.DotNet]:".NET",[Ur.CSharp]:"C#",[Ur.CPlusPlus]:"C++",[Ur.Php]:"PHP",[Ur.Ruby]:"Ruby",[Ur.Rust]:"Rust",[Ur.Swift]:"Swift",[Ur.Elixir]:"Elixir",[Ur.MySql]:"MySQL",[Ur.Nginx]:"Nginx",[Ur.Postgres]:"PostgreSQL",[Ur.Redis]:"Redis",[Ur.Kafka]:"Kafka",[Ur.Ignored]:"Ignored",[Ur.Unknown]:"Unknown",[Ur.Processing]:"Processing",[Ur.NoContainers]:"No Containers",[Ur.NoRunningPods]:"No Running Pods"},mc=[{id:Ur.Go,value:hc[Ur.Go],icon:zn(Ur.Go)},{id:Ur.Java,value:hc[Ur.Java],icon:zn(Ur.Java)},{id:Ur.JavaScript,value:hc[Ur.JavaScript],icon:zn(Ur.JavaScript)},{id:Ur.Python,value:hc[Ur.Python],icon:zn(Ur.Python)},{id:Ur.Php,value:hc[Ur.Php],icon:zn(Ur.Php)},{id:Ur.Ruby,value:hc[Ur.Ruby],icon:zn(Ur.Ruby)},{id:Ur.Rust,value:hc[Ur.Rust],icon:zn(Ur.Rust)},{id:Ur.DotNet,value:hc[Ur.DotNet],icon:zn(Ur.DotNet)},{id:Ur.CSharp,value:hc[Ur.CSharp],icon:zn(Ur.CSharp)},{id:Ur.CPlusPlus,value:hc[Ur.CPlusPlus],icon:zn(Ur.CPlusPlus)},{id:Ur.Swift,value:hc[Ur.Swift],icon:zn(Ur.Swift)},{id:Ur.Elixir,value:hc[Ur.Elixir],icon:zn(Ur.Elixir)}],gc={id:nn.OpentelemetryEbpfInstrumentation,value:nn.OpentelemetryEbpfInstrumentation,icon:J},fc={[Ur.Go]:{community:[{id:nn.GolangCommunity,value:nn.GolangCommunity,icon:zn(Ur.Go)},gc],enterprise:[{id:nn.GolangEnterprise,value:nn.GolangEnterprise,icon:zn(Ur.Go)}]},[Ur.JavaScript]:{community:[{id:nn.NodejsCommunity,value:nn.NodejsCommunity,icon:zn(Ur.JavaScript)},gc],enterprise:[{id:nn.NodejsEnterprise,value:nn.NodejsEnterprise,icon:zn(Ur.JavaScript)}]},[Ur.Python]:{community:[{id:nn.PythonCommunity,value:nn.PythonCommunity,icon:zn(Ur.Python)},gc],enterprise:[{id:nn.PythonEnterprise,value:nn.PythonEnterprise,icon:zn(Ur.Python)}]},[Ur.Java]:{community:[{id:nn.JavaCommunity,value:nn.JavaCommunity,icon:zn(Ur.Java)},gc],enterprise:[{id:nn.JavaEnterprise,value:nn.JavaEnterprise,icon:zn(Ur.Java)},{id:nn.JavaEbpfInstrumentations,value:nn.JavaEbpfInstrumentations,icon:zn(Ur.Java)}]},[Ur.DotNet]:{community:[{id:nn.DotNetCommunity,value:nn.DotNetCommunity,icon:zn(Ur.DotNet)},gc],enterprise:[{id:nn.DotNetEnterprise,value:nn.DotNetEnterprise,icon:zn(Ur.DotNet)}]},[Ur.Ruby]:{community:[{id:nn.RubyCommunity,value:nn.RubyCommunity,icon:zn(Ur.Ruby)},gc],enterprise:[{id:nn.RubyEnterprise,value:nn.RubyEnterprise,icon:zn(Ur.Ruby)}]},[Ur.Php]:{community:[{id:nn.PhpCommunity,value:nn.PhpCommunity,icon:zn(Ur.Php)},gc],enterprise:[]},[Ur.CSharp]:{community:[],enterprise:[{id:nn.CPlusPlusEnterprise,value:nn.CPlusPlusEnterprise,icon:zn(Ur.CSharp)}]},[Ur.MySql]:{community:[],enterprise:[{id:nn.MySqlEnterprise,value:nn.MySqlEnterprise,icon:zn(Ur.MySql)}]},[Ur.CPlusPlus]:{community:[gc],enterprise:[]},[Ur.Rust]:{community:[gc],enterprise:[]},[Ur.Swift]:{community:[gc],enterprise:[]},[Ur.Elixir]:{community:[gc],enterprise:[]},[Ur.Nginx]:{community:[gc],enterprise:[]},[Ur.Postgres]:{community:[gc],enterprise:[]},[Ur.Redis]:{community:[gc],enterprise:[]},[Ur.Kafka]:{community:[gc],enterprise:[]},[Ur.Ignored]:{community:[],enterprise:[]},[Ur.Unknown]:{community:[],enterprise:[]},[Ur.Processing]:{community:[],enterprise:[]},[Ur.NoContainers]:{community:[],enterprise:[]},[Ur.NoRunningPods]:{community:[],enterprise:[]}},yc=6048e5,xc=Ut()(er(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:En.DARK_MODE,storage:"undefined"!=typeof window?tr(()=>localStorage):void 0})),bc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Sn},vc=Ut(e=>({...bc,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(bc)})),$c=Ut(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),wc=Ut(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const n=t===Wr.Namespace?"namespacesLoading":t===Wr.Source?"sourcesLoading":t===Wr.Destination?"destinationsLoading":t===Wr.Action?"actionsLoading":t===Wr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:r})},setEntities:(t,r)=>{const n=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:r})},addEntities:(t,r)=>{const n=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(Gn(e),t)}),r.forEach(e=>{const r=Gn(e),n=o.get(r);void 0!==n?t[n]={...t[n],...e}:(o.set(r,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,r)=>{const n=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=new Set(r.map(e=>Xn(e))),o=e[n].filter(e=>!t.has(Gn(e)));return{[n]:o}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Sc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),kc=Ut(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:Sc})),Cc=Ut(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Ec=Ut((e,t)=>({notifications:[],addNotification:r=>{const n=new Date,o=`${n.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:o,time:n.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 Ac;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Ac||(Ac={}));const Dc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Tc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Ic=Ut((e,t)=>({progress:{},setProgress:(r,n)=>{const o=t(),i=Dc();return"number"==typeof n.total&&(i.total=n.total),"number"==typeof n.current&&(i.current=n.current),Array.isArray(n.list)&&(i.list=n.list),e({progress:{...o.progress,[r]:Tc(i)}})},addProgress:(r,n,o)=>{const i=t(),a=Dc(r,i.progress);return a.current+=n,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[r]:Tc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Nc=Ut(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Rc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Oc=(e,t)=>e.destinationType.type!==t.destinationType.type,_c=Ut(e=>({...Rc,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=>Oc(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=>Oc(e,t))})),clearStore:()=>e(()=>({...Rc}))})),Pc={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:"#8855FF",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:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},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"}},Fc={v2:Pc.v2,darkMode:!0,colors:{...Pc.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:Pc.font_family},Lc={v2:Pc.v2,darkMode:!1,colors:{...Pc.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:Pc.font_family},zc=e=>e?Fc:Lc;var Mc=Object.freeze({__proto__:null,baseTheme:Pc,darkModeTheme:Fc,getTheme:zc,lightModeTheme:Lc});rr('@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 Bc=({children:t})=>{const{darkMode:r}=xc();return e(s,{theme:zc(r),children:t})},Uc={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 jc=Object.freeze({__proto__:null,hex:Uc});const Wc={in:{left:a`
286
+ `,Gi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const n=Gi(r.items,t);n.length&&e.push({...r,items:n})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Vi=({placeholder:r="Type to search...",options:n,selectedOption:o,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Ht(o?.label||a||""),[m,g]=Ht(Gi(n,u)),[f,y]=Ht(!1);Ht(-1),Xt(()=>g(Gi(n,u)),[n]);const x=o?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),y(!e),i?.(e)};return t(_i,{style:l,children:[t(Pi,{$hasError:!!d,children:[x&&e(x,{}),e(Fi,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Gi(n,t),o=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&y(!1),onFocus:()=>!c&&y(!0),...p})]}),f&&m.length?e(Li,{children:m.map(t=>e(Ki,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Oi,{children:d})]})},Ki=({option:r,renderIcon:n=!0,onClick:o})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(zi,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:o(r),children:[a&&n&&e(a,{}),t(Mi,{children:[t(ji,{children:[e(Wi,{children:r.label}),e(Hi,{children:r.description})]}),i&&e(Xi,{children:r.items?.map(r=>t(Bi,{children:[e(Ui,{}),e(Ki,{option:r,renderIcon:!1,onClick:o})]},r.type||r.label))})]})]})},qi=Ut(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Ji=[{type:Ir.K8sAttributes,icon:Fn(Ir.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[fn.Traces,fn.Metrics,fn.Logs,fn.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Ir.AddClusterInfo,icon:Fn(Ir.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[fn.Traces,fn.Metrics,fn.Logs,fn.Profiles],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:Ir.DeleteAttributes,icon:Fn(Ir.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[fn.Traces,fn.Metrics,fn.Logs,fn.Profiles],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:Ir.RenameAttributes,icon:Fn(Ir.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[fn.Traces,fn.Metrics,fn.Logs,fn.Profiles],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:Ir.PiiMasking,icon:Fn(Ir.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[fn.Traces,fn.Profiles],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Ir.URLTemplatization,icon:Fn(Ir.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[fn.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:Ci("v1.21.0")}],Yi=[{type:Ir.ErrorSampler,icon:Fn(Tr.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[fn.Traces,fn.Profiles],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Ir.LatencySampler,icon:Fn(Tr.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[fn.Traces,fn.Profiles],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:Ir.ProbabilisticSampler,icon:Fn(Tr.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[fn.Traces,fn.Profiles],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Ir.ServiceNameSampler,icon:Fn(Tr.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[fn.Traces,fn.Profiles],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Ir.SpanAttributeSampler,icon:Fn(Tr.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[fn.Traces,fn.Profiles],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Qi=[{label:"Attributes",icon:Fn(Tr.Attributes),items:Ji},{label:"Samplers",icon:Fn(Tr.Samplers),items:Yi}];var Zi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Zi||(Zi={}));const ea={[Zi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Zi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Zi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Zi.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."},[Zi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Zi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ta=[{type:sn.CodeAttributes,icon:Jn(sn.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:[jr.Go,jr.Python]},{type:sn.CustomInstrumentation,icon:Jn(sn.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:[jr.Go,jr.Java]},{type:sn.HeadersCollection,icon:Jn(sn.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:[jr.Go,jr.Java,jr.JavaScript]},{type:sn.PayloadCollection,icon:Jn(sn.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:[jr.Go,jr.JavaScript]}],ra="Cancel",na="Save",oa="Edit rule",ia="Edit auto rule",aa="Create rule",sa="Delete rule",la="Save",ca="Create your first rule",da="No Rules Exist",pa="No Results",ua=e=>`No rules match the search term "${e}"`,ha="Rule name",ma="Rule type",ga="Select the type of condition that makes a trace highly relevant.",fa="Rule Enabled",ya="Rule Disabled",xa="Enabled",ba="Disabled",va="Note",$a="HTTP route",wa="Method",Sa="Keep Percentage",ka="Drop Percentage",Ca="Keep traces with duration larger than",Ea="Keep traces with errors",Aa="Keep at least this percentage of matching traces",Da="Keep at most this percentage of matching traces",Ta="Custom percentage",Ia="Disabled rule",Na="Sample",Ra="Keep all",Oa="Drop all",_a="Operation type",Pa="HTTP route prefix",Fa="Templated path",La="Templated path prefix",za="Kafka topic",Ma="Custom duration (ms)",Ba="No preview available",Ua="Server address",ja="Drop at most this percentage of matching traces",Wa="Unnamed rule",Ha="Sampling Preview",Xa="Source Scope",Ga="Unknown source",Va="Operation",Ka="Duration",qa="Errors",Ja="Keep Percentage",Ya="Drop Percentage",Qa="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.",es="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ts="Retain traces with errors from the selected services and operations.",rs="Specify the exact percentage of matching traces to keep",ns="Specify the exact percentage of matching traces to drop",os="Type rule name",is="Add note here...",as="Type here",ss="Search source name",ls="e.g. collector.my.vendor.com",cs="Optional notes (not used by the system). Add any context or details for this sampling rule.",ds="Rule will apply to all sources in the cluster",ps="If multiple source scopes are set, they must all match simultaneously.",us="All sources",hs="-",ms="All",gs="All operations",fs="HTTP server endpoint",ys="HTTP client endpoint",xs="Kafka consumer",bs="Kafka producer",vs="Sampling Rules",$s='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',ws="Refresh",Ss="Create rule",ks="Sampling docs",Cs="75vw",Es="Delete rule?",As="Are you sure you want to delete this sampling rule?",Ds="Delete",Ts="Cancel",Is="Kubernetes Health Probes",Ns="Keep All Error Traces",Rs="Drop Traces Cluster-Wide",Os="A rule with the same matching conditions already exists.",_s="Create 'Noisy Operation Kubernetes Health Probes' rule",Ps="Edit 'Noisy Operation Kubernetes Health Probes' rule",Fs="Automatically detect and sample health probe traces across the cluster.",Ls="Create 'Highly Relevant Operations' rule",zs="Edit 'Highly Relevant Operations' rule",Ms="Automatically keep all error traces across the entire cluster.",Bs="Create 'Cost Reduction' rule",Us="Edit 'Cost Reduction' rule",js="Automatically drop a percentage of traces across the entire cluster.",Ws="Skip setup",Hs="Start setup",Xs="Next",Gs="Go to Sampling",Vs="Read more",Ks="Welcome to Sampling",qs="Cut costs without losing what matters",Js="Odigos sampling works in three stages:",Ys="Filter noisy traffic",Qs="Remove non-actionable traces like health checks.",Zs="Guarantee highly relevance operations",el="Keep traces with errors, high latency, or mission-critical endpoints/services.",tl="Reduce cost",rl="Sample routine traffic using percentages.",nl="Sampling does not drop individual spans - it keeps or drops the entire trace.",ol="Filter noisy operations",il="Cut traces with little or no observability value (health-checks, metric scarping, etc)",al="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",sl="Preset Rules",ll="Kubernetes Health Probes",cl="Automatically ignore health checks",dl="You can review, adjust, and add additional custom rules later.",pl="Choose your sampling strategy",ul="Pick the approach that best fits your balance of cost vs data-completeness",hl="Keep List",ml="Budget Friendly",gl="Define which traces must be kept, while all others are sampled by default to minimize cost.",fl="Cost-oriented - keeps only what you explicitly select.",yl="Best for very large clusters with high volumes of traces and high costs.",xl="Higher risk of missing important traces without ongoing review.",bl="Drop List",vl="Safe Choice",$l="Define which traces must be aggressively dropped, while all others are kept by default.",wl="Preserves most data unless explicitly filtered.",Sl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",kl="Advanced",Cl="Maximum Flexibility",El="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Al="'Keep List' profile",Dl="Protect important traces",Tl="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Il="Traces with errors",Nl="Slow requests (duration above threshold)",Rl="Mission-Critical endpoints or services",Ol="Services under test or evaluation",_l="New deployments",Pl="You can review, adjust, and add rules once onboarding is complete.",Fl="Common Rules",Ll="Preset Rules",zl="Error collection - entire cluster",Ml="Keep all traces with errors",Bl="Ambient sampling percentage",Ul="'Drop List' profile",jl="Reduce high-volume traffic",Wl="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Hl="Advanced Configuration",Xl="Configure sampling rules",Gl="Advanced mode allows you to configure all sampling categories:",Vl="Noise Filtering - remove non-actionable traces",Kl="Highly Relevance - guarantee important traces are kept",ql='Cost Control - drop traces for "Normal" operations',Jl="Rules can target:",Yl="Services",Ql="HTTP Endpoints",Zl="DB Operations",ec="Errors",tc="Latency and more...",rc="Sampling configured successfully!",nc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",oc="Odigos will now:",ic="Filter noisy operations",ac="Guarantee important traces",sc="Reduce cost using controlled sampling",lc="Recommended",cc={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."},dc={noisy:_s,highlyRelevant:Ls,costReduction:Bs},pc={noisy:Ps,highlyRelevant:zs,costReduction:Us},uc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},hc=[{id:fn.Logs,value:"Logs"},{id:fn.Metrics,value:"Metrics"},{id:fn.Traces,value:"Traces"},{id:fn.Profiles,value:"Profiles"}],mc={[jr.Go]:"Go",[jr.Java]:"Java",[jr.JavaScript]:"Node.js",[jr.Python]:"Python",[jr.DotNet]:".NET",[jr.CSharp]:"C#",[jr.CPlusPlus]:"C++",[jr.Php]:"PHP",[jr.Ruby]:"Ruby",[jr.Rust]:"Rust",[jr.Swift]:"Swift",[jr.Elixir]:"Elixir",[jr.MySql]:"MySQL",[jr.Nginx]:"Nginx",[jr.Postgres]:"PostgreSQL",[jr.Redis]:"Redis",[jr.Kafka]:"Kafka",[jr.Ignored]:"Ignored",[jr.Unknown]:"Unknown",[jr.Processing]:"Processing",[jr.NoContainers]:"No Containers",[jr.NoRunningPods]:"No Running Pods"},gc=[{id:jr.Go,value:mc[jr.Go],icon:Mn(jr.Go)},{id:jr.Java,value:mc[jr.Java],icon:Mn(jr.Java)},{id:jr.JavaScript,value:mc[jr.JavaScript],icon:Mn(jr.JavaScript)},{id:jr.Python,value:mc[jr.Python],icon:Mn(jr.Python)},{id:jr.Php,value:mc[jr.Php],icon:Mn(jr.Php)},{id:jr.Ruby,value:mc[jr.Ruby],icon:Mn(jr.Ruby)},{id:jr.Rust,value:mc[jr.Rust],icon:Mn(jr.Rust)},{id:jr.DotNet,value:mc[jr.DotNet],icon:Mn(jr.DotNet)},{id:jr.CSharp,value:mc[jr.CSharp],icon:Mn(jr.CSharp)},{id:jr.CPlusPlus,value:mc[jr.CPlusPlus],icon:Mn(jr.CPlusPlus)},{id:jr.Swift,value:mc[jr.Swift],icon:Mn(jr.Swift)},{id:jr.Elixir,value:mc[jr.Elixir],icon:Mn(jr.Elixir)}],fc={id:on.OpentelemetryEbpfInstrumentation,value:on.OpentelemetryEbpfInstrumentation,icon:J},yc={[jr.Go]:{community:[{id:on.GolangCommunity,value:on.GolangCommunity,icon:Mn(jr.Go)},fc],enterprise:[{id:on.GolangEnterprise,value:on.GolangEnterprise,icon:Mn(jr.Go)}]},[jr.JavaScript]:{community:[{id:on.NodejsCommunity,value:on.NodejsCommunity,icon:Mn(jr.JavaScript)},fc],enterprise:[{id:on.NodejsEnterprise,value:on.NodejsEnterprise,icon:Mn(jr.JavaScript)}]},[jr.Python]:{community:[{id:on.PythonCommunity,value:on.PythonCommunity,icon:Mn(jr.Python)},fc],enterprise:[{id:on.PythonEnterprise,value:on.PythonEnterprise,icon:Mn(jr.Python)}]},[jr.Java]:{community:[{id:on.JavaCommunity,value:on.JavaCommunity,icon:Mn(jr.Java)},fc],enterprise:[{id:on.JavaEnterprise,value:on.JavaEnterprise,icon:Mn(jr.Java)},{id:on.JavaEbpfInstrumentations,value:on.JavaEbpfInstrumentations,icon:Mn(jr.Java)}]},[jr.DotNet]:{community:[{id:on.DotNetCommunity,value:on.DotNetCommunity,icon:Mn(jr.DotNet)},fc],enterprise:[{id:on.DotNetEnterprise,value:on.DotNetEnterprise,icon:Mn(jr.DotNet)}]},[jr.Ruby]:{community:[{id:on.RubyCommunity,value:on.RubyCommunity,icon:Mn(jr.Ruby)},fc],enterprise:[{id:on.RubyEnterprise,value:on.RubyEnterprise,icon:Mn(jr.Ruby)}]},[jr.Php]:{community:[{id:on.PhpCommunity,value:on.PhpCommunity,icon:Mn(jr.Php)},fc],enterprise:[]},[jr.CSharp]:{community:[],enterprise:[{id:on.CPlusPlusEnterprise,value:on.CPlusPlusEnterprise,icon:Mn(jr.CSharp)}]},[jr.MySql]:{community:[],enterprise:[{id:on.MySqlEnterprise,value:on.MySqlEnterprise,icon:Mn(jr.MySql)}]},[jr.CPlusPlus]:{community:[fc],enterprise:[]},[jr.Rust]:{community:[fc],enterprise:[]},[jr.Swift]:{community:[fc],enterprise:[]},[jr.Elixir]:{community:[fc],enterprise:[]},[jr.Nginx]:{community:[fc],enterprise:[]},[jr.Postgres]:{community:[fc],enterprise:[]},[jr.Redis]:{community:[fc],enterprise:[]},[jr.Kafka]:{community:[fc],enterprise:[]},[jr.Ignored]:{community:[],enterprise:[]},[jr.Unknown]:{community:[],enterprise:[]},[jr.Processing]:{community:[],enterprise:[]},[jr.NoContainers]:{community:[],enterprise:[]},[jr.NoRunningPods]:{community:[],enterprise:[]}},xc=6048e5,bc=Ut()(tr(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:An.DARK_MODE,storage:"undefined"!=typeof window?rr(()=>localStorage):void 0})),vc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:kn},$c=Ut(e=>({...vc,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(vc)})),wc=Ut(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Sc=Ut(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const n=t===Hr.Namespace?"namespacesLoading":t===Hr.Source?"sourcesLoading":t===Hr.Destination?"destinationsLoading":t===Hr.Action?"actionsLoading":t===Hr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:r})},setEntities:(t,r)=>{const n=t===Hr.Namespace?"namespaces":t===Hr.Source?"sources":t===Hr.Destination?"destinations":t===Hr.Action?"actions":t===Hr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:r})},addEntities:(t,r)=>{const n=t===Hr.Namespace?"namespaces":t===Hr.Source?"sources":t===Hr.Destination?"destinations":t===Hr.Action?"actions":t===Hr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(Vn(e),t)}),r.forEach(e=>{const r=Vn(e),n=o.get(r);void 0!==n?t[n]={...t[n],...e}:(o.set(r,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,r)=>{const n=t===Hr.Namespace?"namespaces":t===Hr.Source?"sources":t===Hr.Destination?"destinations":t===Hr.Action?"actions":t===Hr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=new Set(r.map(e=>Gn(e))),o=e[n].filter(e=>!t.has(Vn(e)));return{[n]:o}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),kc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Cc=Ut(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:kc})),Ec=Ut(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Ac=Ut((e,t)=>({notifications:[],addNotification:r=>{const n=new Date,o=`${n.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:o,time:n.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 Dc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Dc||(Dc={}));const Tc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ic=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Nc=Ut((e,t)=>({progress:{},setProgress:(r,n)=>{const o=t(),i=Tc();return"number"==typeof n.total&&(i.total=n.total),"number"==typeof n.current&&(i.current=n.current),Array.isArray(n.list)&&(i.list=n.list),e({progress:{...o.progress,[r]:Ic(i)}})},addProgress:(r,n,o)=>{const i=t(),a=Tc(r,i.progress);return a.current+=n,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[r]:Ic(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Rc=Ut(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Oc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},_c=(e,t)=>e.destinationType.type!==t.destinationType.type,Pc=Ut(e=>({...Oc,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=>_c(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=>_c(e,t))})),clearStore:()=>e(()=>({...Oc}))})),Fc={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:"#8855FF",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:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},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"}},Lc={v2:Fc.v2,darkMode:!0,colors:{...Fc.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:Fc.font_family},zc={v2:Fc.v2,darkMode:!1,colors:{...Fc.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:Fc.font_family},Mc=e=>e?Lc:zc;var Bc=Object.freeze({__proto__:null,baseTheme:Fc,darkModeTheme:Lc,getTheme:Mc,lightModeTheme:zc});nr('@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 Uc=({children:t})=>{const{darkMode:r}=bc();return e(s,{theme:Mc(r),children:t})},jc={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 Wc=Object.freeze({__proto__:null,hex:jc});const Hc={in:{left:a`
287
287
  from { transform: translateX(-100%); }
288
288
  to { transform: translateX(0); }
289
289
  `,right:a`
@@ -313,7 +313,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
313
313
  `,center:a`
314
314
  from { transform: translate(-50%, -50%); }
315
315
  to { transform: translate(-50%, 100%); }
316
- `}},Hc={in:a`
316
+ `}},Xc={in:a`
317
317
  from {
318
318
  width: 0%;
319
319
  }
@@ -327,7 +327,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
327
327
  to {
328
328
  width: 0%;
329
329
  }
330
- `},Xc=a`
330
+ `},Gc=a`
331
331
  0% {
332
332
  transform: scale(1);
333
333
  opacity: 1;
@@ -336,14 +336,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
336
336
  transform: scale(2);
337
337
  opacity: 0;
338
338
  }
339
- `,Gc=a`
339
+ `,Vc=a`
340
340
  0% {
341
341
  background-position: -500px 0;
342
342
  }
343
343
  100% {
344
344
  background-position: 500px 0;
345
345
  }
346
- `,Vc={in:a`
346
+ `,Kc={in:a`
347
347
  from {
348
348
  opacity: 0;
349
349
  }
@@ -357,7 +357,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
357
357
  to {
358
358
  opacity: 0;
359
359
  }
360
- `};var Kc=Object.freeze({__proto__:null,fade:Vc,ping:Xc,progress:Hc,shimmer:Gc,slide:Wc});const qc=n.span`
360
+ `};var qc=Object.freeze({__proto__:null,fade:Kc,ping:Gc,progress:Xc,shimmer:Vc,slide:Hc});const Jc=n.span`
361
361
  display: flex;
362
362
  align-items: center;
363
363
  justify-content: center;
@@ -369,15 +369,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
369
369
  gap: 2px;
370
370
 
371
371
  border-radius: 50px;
372
- border: 1px solid ${({theme:e,$filled:t,$status:r})=>r?e.text[r]+(t?"":Uc["050"]):t?"transparent":e.colors.border};
372
+ border: 1px solid ${({theme:e,$filled:t,$status:r})=>r?e.text[r]+(t?"":jc["050"]):t?"transparent":e.colors.border};
373
373
  background-color: ${({theme:e,$filled:t,$status:r})=>t?r?e.colors[r]:e.colors.majestic_blue:"transparent"};
374
374
  color: ${({theme:e,$filled:t,$status:r})=>t&&r?e.text.secondary:t?e.text.white:r?e.text[r]:e.text.grey};
375
375
  font-family: ${({theme:e})=>e.font_family.secondary};
376
376
  font-size: 12px;
377
377
  white-space: nowrap;
378
378
 
379
- ${({theme:e,$filled:t,$status:r,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${r?e.colors[r]+Uc["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Uc["020"]};\n }`}
380
- `,Jc=({label:r,filled:n,status:o,withIcon:a,onClick:s})=>{const l=i(),c=o&&a?Ko(o,l):null;return t(qc,{$filled:n,$status:o,$clickable:!!s,onClick:s,children:[!!c&&e(c,{}),r]})},Yc=n.div`
379
+ ${({theme:e,$filled:t,$status:r,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${r?e.colors[r]+jc["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+jc["020"]};\n }`}
380
+ `,Yc=({label:r,filled:n,status:o,withIcon:a,onClick:s})=>{const l=i(),c=o&&a?qo(o,l):null;return t(Jc,{$filled:n,$status:o,$clickable:!!s,onClick:s,children:[!!c&&e(c,{}),r]})},Qc=n.div`
381
381
  height: fit-content;
382
382
  border: 2px solid transparent;
383
383
  padding: 2px;
@@ -387,15 +387,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
387
387
  &:focus-within {
388
388
  border-color: ${({theme:e})=>e.colors.secondary};
389
389
  }
390
- `,Qc={primary:o`
391
- border: 1px solid ${({theme:e})=>e.text.secondary+Uc["024"]};
390
+ `,Zc={primary:o`
391
+ border: 1px solid ${({theme:e})=>e.text.secondary+jc["024"]};
392
392
  background: ${({theme:e})=>e.colors.secondary};
393
393
  color: ${({theme:e})=>e.colors.primary};
394
394
  &:hover {
395
- background: ${({theme:e})=>e.colors.secondary+Uc["080"]};
395
+ background: ${({theme:e})=>e.colors.secondary+jc["080"]};
396
396
  }
397
397
  &:active {
398
- background: ${({theme:e})=>e.text.secondary+Uc["060"]};
398
+ background: ${({theme:e})=>e.text.secondary+jc["060"]};
399
399
  }
400
400
  `,secondary:o`
401
401
  border: 1px solid ${({theme:e})=>e.colors.border};
@@ -403,17 +403,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
403
403
  color: ${({theme:e})=>e.colors.secondary};
404
404
  &:hover {
405
405
  border: 1px solid ${({theme:e})=>e.text.darker_grey};
406
- background: ${({theme:e})=>e.colors.secondary+Uc["010"]};
406
+ background: ${({theme:e})=>e.colors.secondary+jc["010"]};
407
407
  }
408
408
  &:active {
409
409
  border: 1px solid ${({theme:e})=>e.text.dark_grey};
410
- background: ${({theme:e})=>e.colors.secondary+Uc["015"]};
410
+ background: ${({theme:e})=>e.colors.secondary+jc["015"]};
411
411
  }
412
412
  `,tertiary:o`
413
413
  border-color: transparent;
414
414
  background: transparent;
415
415
  &:hover {
416
- background: ${({theme:e})=>e.colors.dropdown_bg_2+Uc["040"]};
416
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+jc["040"]};
417
417
  }
418
418
  &:active {
419
419
  background: ${({theme:e})=>e.colors.dropdown_bg_2};
@@ -422,21 +422,21 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
422
422
  border-color: transparent;
423
423
  background: ${({theme:e})=>e.text.error};
424
424
  &:hover {
425
- background: ${({theme:e})=>e.text.error+Uc["090"]};
425
+ background: ${({theme:e})=>e.text.error+jc["090"]};
426
426
  }
427
427
  &:active {
428
- background: ${({theme:e})=>e.text.error+Uc["080"]};
428
+ background: ${({theme:e})=>e.text.error+jc["080"]};
429
429
  }
430
430
  `,warning:o`
431
431
  border-color: transparent;
432
432
  background: ${({theme:e})=>e.text.warning};
433
433
  &:hover {
434
- background: ${({theme:e})=>e.text.warning+Uc["090"]};
434
+ background: ${({theme:e})=>e.text.warning+jc["090"]};
435
435
  }
436
436
  &:active {
437
- background: ${({theme:e})=>e.text.warning+Uc["080"]};
437
+ background: ${({theme:e})=>e.text.warning+jc["080"]};
438
438
  }
439
- `},Zc=n.button`
439
+ `},ed=n.button`
440
440
  height: 36px;
441
441
  border-radius: 32px;
442
442
  cursor: pointer;
@@ -450,20 +450,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
450
450
  text-decoration: underline;
451
451
  font-weight: 600;
452
452
  outline: none;
453
- ${({$variant:e})=>e&&Qc[e]}
453
+ ${({$variant:e})=>e&&Zc[e]}
454
454
  ${({disabled:e,$variant:t})=>e&&o`
455
455
  opacity: 0.5;
456
456
  cursor: not-allowed;
457
457
 
458
458
  ${"primary"===t?o`
459
459
  color: ${({theme:e})=>e.colors.secondary};
460
- background: ${({theme:e})=>e.text.secondary+Uc["010"]};
460
+ background: ${({theme:e})=>e.text.secondary+jc["010"]};
461
461
  &:hover {
462
- background: ${({theme:e})=>e.text.secondary+Uc["015"]};
462
+ background: ${({theme:e})=>e.text.secondary+jc["015"]};
463
463
  }
464
464
  `:""}
465
465
  `}
466
- `,ed=({children:t,variant:r="primary",onClick:n,...o})=>{const i=Vt(null);return e(Yc,{$variant:r,children:e(Zc,{ref:i,$variant:r,onClick:e=>{n&&n(e),i.current?.blur()},...o,children:t})})},td=e=>{function t(){return void 0===e?{}:wr(e)}const[r,n]=Ht(t()),[o,i]=Ht({}),[a,s]=Ht(t()),l=Kt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[n,o]of Object.entries(e)){const e=n;if(Array.isArray(o)){const n=t[e];Array.isArray(n)&&o.length===n.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(r[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const n=l(o,t[e]);Object.keys(n).length>0&&(r[e]=n)}else o!==t[e]&&(r[e]=t[e])}for(const n of Object.keys(t))n in e||(r[n]=t[n]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Gt(()=>!c(a,r),[a,r]);Xt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(o)&&(n(o),s(o))},[e,r]);const p=Kt((e,t)=>Sr("formData"===e?r:o,t.toString()),[r,o]);return{formData:r,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?n(r=>({...r,[e]:t})):n(e=>{const n=wr(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n})}else r&&n({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const n=wr(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n})}else r&&i({...r})},resetFormData:e=>{const r=e||t();n(r),s(r),i({})},getNestedValue:p}},rd={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}},nd=()=>{const{addNotification:e}=Ec(),{formData:t,formErrors:r,handleFormChange:n,handleErrorChange:o,resetFormData:i}=td(rd),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:n,resetFormData:i,validateForm:r=>{const n={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":oi(t)&&(n[e]=An.FIELD_IS_REQUIRED)}}),t.type===Tr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=An.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&r?.withAlert&&e({type:Vr.Warning,title:r.alertTitle,message:An.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:o,disabled:i,fields:s})=>{const l={...wr(rd),type:e,signals:t,name:r,notes:o,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Ir.LabelsAttributes:case Ir.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Ir.CollectContainerAttributes:case Ir.CollectReplicaSetAttributes:case Ir.CollectWorkloadId:case Ir.CollectClusterId:case Ir.ClusterAttributes:case Ir.OverwriteExistingValues:case Ir.AttributeNamesToDelete:case Ir.Renames:case Ir.PiiCategories:case Ir.FallbackSamplingRatio:case Ir.SamplingPercentage:case Ir.EndpointsFilters:case Ir.ServicesNameFilters:case Ir.AttributeFilters:case Ir.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),n(void 0,void 0,l)}}},od=e=>{Xt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},id=()=>{const{setCurrentModal:e}=Cc(),{setDrawerType:t,setDrawerEntityId:r}=$c(),{setActiveNodeType:n,setActiveNodeId:o,activeNodeId:i}=Ki();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(n(null),o(null)):(n(c),o(l)),p){case Wr.Source:case Wr.Destination:case Wr.Action:case Wr.InstrumentationRule:t(p),r(d);break;case en.AddSource:e(Wr.Source);break;case en.AddDestination:e(Wr.Destination);break;case en.AddAction:e(Wr.Action);break;case en.AddRule:e(Wr.InstrumentationRule)}}}},ad=()=>{const{setDrawerType:e,setDrawerEntityId:t}=$c(),{markAsDismissed:r,markAsSeen:n}=Ec();return{onClickNotification:(o,i)=>{const{id:a,crdType:s,target:l}=o,{dismissToast:c}=i||{};if(s&&l)switch(s){case Wr.InstrumentationRule:e(Wr.InstrumentationRule),t(Kn(l,Wr.InstrumentationRule));break;case Wr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Wr.Source),t(Kn(l,Wr.Source));break;case Wr.Action:e(Wr.Action),t(Kn(l,Wr.Action));break;case Wr.Destination:case"Destination":e(Wr.Destination),t(Kn(l,Wr.Destination))}n(a),c&&r(a)}}},sd=()=>{const e=Vt(null),[t,r]=Ht(0),[n,o]=Ht(0);return Xt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();r(t),o(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var ld;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(ld||(ld={}));const cd=n.div`
466
+ `,td=({children:t,variant:r="primary",onClick:n,...o})=>{const i=Vt(null);return e(Qc,{$variant:r,children:e(ed,{ref:i,$variant:r,onClick:e=>{n&&n(e),i.current?.blur()},...o,children:t})})},rd=e=>{function t(){return void 0===e?{}:Sr(e)}const[r,n]=Ht(t()),[o,i]=Ht({}),[a,s]=Ht(t()),l=Kt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[n,o]of Object.entries(e)){const e=n;if(Array.isArray(o)){const n=t[e];Array.isArray(n)&&o.length===n.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(r[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const n=l(o,t[e]);Object.keys(n).length>0&&(r[e]=n)}else o!==t[e]&&(r[e]=t[e])}for(const n of Object.keys(t))n in e||(r[n]=t[n]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Gt(()=>!c(a,r),[a,r]);Xt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(o)&&(n(o),s(o))},[e,r]);const p=Kt((e,t)=>kr("formData"===e?r:o,t.toString()),[r,o]);return{formData:r,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?n(r=>({...r,[e]:t})):n(e=>{const n=Sr(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n})}else r&&n({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const n=Sr(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n})}else r&&i({...r})},resetFormData:e=>{const r=e||t();n(r),s(r),i({})},getNestedValue:p}},nd={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}},od=()=>{const{addNotification:e}=Ac(),{formData:t,formErrors:r,handleFormChange:n,handleErrorChange:o,resetFormData:i}=rd(nd),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:n,resetFormData:i,validateForm:r=>{const n={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ii(t)&&(n[e]=Dn.FIELD_IS_REQUIRED)}}),t.type===Ir.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Dn.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&r?.withAlert&&e({type:Kr.Warning,title:r.alertTitle,message:Dn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:o,disabled:i,fields:s})=>{const l={...Sr(nd),type:e,signals:t,name:r,notes:o,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Nr.LabelsAttributes:case Nr.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Nr.CollectContainerAttributes:case Nr.CollectReplicaSetAttributes:case Nr.CollectWorkloadId:case Nr.CollectClusterId:case Nr.ClusterAttributes:case Nr.OverwriteExistingValues:case Nr.AttributeNamesToDelete:case Nr.Renames:case Nr.PiiCategories:case Nr.FallbackSamplingRatio:case Nr.SamplingPercentage:case Nr.EndpointsFilters:case Nr.ServicesNameFilters:case Nr.AttributeFilters:case Nr.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),n(void 0,void 0,l)}}},id=e=>{Xt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ad=()=>{const{setCurrentModal:e}=Ec(),{setDrawerType:t,setDrawerEntityId:r}=wc(),{setActiveNodeType:n,setActiveNodeId:o,activeNodeId:i}=qi();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(n(null),o(null)):(n(c),o(l)),p){case Hr.Source:case Hr.Destination:case Hr.Action:case Hr.InstrumentationRule:t(p),r(d);break;case tn.AddSource:e(Hr.Source);break;case tn.AddDestination:e(Hr.Destination);break;case tn.AddAction:e(Hr.Action);break;case tn.AddRule:e(Hr.InstrumentationRule)}}}},sd=()=>{const{setDrawerType:e,setDrawerEntityId:t}=wc(),{markAsDismissed:r,markAsSeen:n}=Ac();return{onClickNotification:(o,i)=>{const{id:a,crdType:s,target:l}=o,{dismissToast:c}=i||{};if(s&&l)switch(s){case Hr.InstrumentationRule:e(Hr.InstrumentationRule),t(qn(l,Hr.InstrumentationRule));break;case Hr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Hr.Source),t(qn(l,Hr.Source));break;case Hr.Action:e(Hr.Action),t(qn(l,Hr.Action));break;case Hr.Destination:case"Destination":e(Hr.Destination),t(qn(l,Hr.Destination))}n(a),c&&r(a)}}},ld=()=>{const e=Vt(null),[t,r]=Ht(0),[n,o]=Ht(0);return Xt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();r(t),o(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var cd;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(cd||(cd={}));const dd=n.div`
467
467
  width: ${({$size:e})=>1.5*e}px;
468
468
  height: ${({$size:e})=>1.5*e}px;
469
469
  display: flex;
@@ -474,7 +474,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
474
474
  &:hover {
475
475
  background: ${({theme:e})=>e.v2.colors.silver[900]};
476
476
  }
477
- `,dd=({"data-id":t,icon:r,size:n=ld.S,onClick:o,disabled:i})=>e(cd,{"data-id":t,$size:n,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:e(r,{size:n})}),pd=({onDone:t}={})=>{const[r,n]=Ht(!1),[o,i]=Ht(-1),a=Kt(async(e,o)=>{if(!r){if(n(!0),void 0!==o&&i(o),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(()=>{n(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Kt(({value:t,size:n})=>e(dd,{icon:r?yt:xt,size:n,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:o,clickCopy:a}},ud=e=>{const{addNotification:t}=Ec(),{formData:r,handleFormChange:n,formErrors:o,handleErrorChange:i,resetFormData:a}=td(e);return{formData:r,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return r.name?ii(r.name)?n.name=void 0:(o=!1,n.name=An.ILLEGAL_K8S_LABEL):(o=!1,n.name=An.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Vr.Warning,title:e.alertTitle,message:An.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const r={...wr(e),name:t};n(void 0,void 0,r)}}},hd={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},md=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:n}=Ec(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=td(hd),[c,d]=Ht([]),[p,u]=Ht([]);Xt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:o,initialValue:i,renderCondition:a}=e;if(r===Xr.Dropdown){const e=ti(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:o,value:i,renderCondition:a,...ti(n,{})}})).map(e=>{if(r){const t="string"==typeof r?ti(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Xt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Xt(()=>{if(t&&0===mi(o.exportedSignals).length){const{logs:e,metrics:r,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:n.supported})}},[t,o.exportedSignals]);return{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(r=!1,t[e]=An.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&n({type:Vr.Warning,title:e.alertTitle,message:An.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:n,fields:o})=>{const i={...wr(hd),type:e,name:t,disabled:r,exportedSignals:n,fields:Object.entries(ti(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},gd={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[dn.HttpRequest]:null,[dn.HttpResponse]:null,[dn.DbQuery]:null,[dn.Messaging]:null},codeAttributes:{[sn.Column]:null,[sn.FilePath]:null,[sn.Function]:null,[sn.LineNumber]:null,[sn.Namespace]:null,[sn.StackTrace]:null},headersCollection:null,customInstrumentations:{[cn.Java]:null,[cn.Golang]:null}},fd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:o}=td(gd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...wr(gd),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[dn.HttpRequest]:o[dn.HttpRequest]?{}:null,[dn.HttpResponse]:o[dn.HttpResponse]?{}:null,[dn.DbQuery]:o[dn.DbQuery]?{}:null,[dn.Messaging]:o[dn.Messaging]?{}:null}),i&&(l.codeAttributes={[sn.Column]:i[sn.Column]||null,[sn.FilePath]:i[sn.FilePath]||null,[sn.Function]:i[sn.Function]||null,[sn.LineNumber]:i[sn.LineNumber]||null,[sn.Namespace]:i[sn.Namespace]||null,[sn.StackTrace]:i[sn.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[cn.Java]:s[cn.Java]||null,[cn.Golang]:s[cn.Golang]||null}),r(void 0,void 0,l)}}},yd=({active:e,key:t,withAltKey:r,withCtrlKey:n,withShiftKey:o,withMetaKey:i},a)=>(Xt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,n,o,i,a]),null),xd="data-ignore-outside-click",bd=(e,t)=>{const r=Vt(t);r.current=t,Xt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(xd))return!0;t=t.parentNode}return!1})(n)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},vd=({sectionNames:e,threshold:t=.4})=>{const[r,n]=Ht(e[0]||""),[o,i]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),c=Kt((e,t)=>{a.current[e]=t},[]),d=Kt(e=>{i(e)},[]),p=Kt(e=>{l.current=!0,n(e)},[]);return Xt(()=>{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]),Xt(()=>{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&&n(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},$d=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:n="local"}={})=>{const o=Vt(null),[i,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[c,d]=Ht({edge:"top",align:"left"});bd(o,()=>{i&&(a(!1),r?.())});return{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===n)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,p=o.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})}}},wd=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ti(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Sd={otelServiceName:"",currentStreamName:""},kd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:o}=td(Sd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...wr(Sd),otelServiceName:e||t||""};r(void 0,void 0,n)}}},Cd=Jt({platformType:Mr.K8s,tier:zr.Community,version:"v0.0.0"}),Ed=({children:t,platformType:r,tier:n,version:o})=>{const i=Gt(()=>({platformType:r,tier:n,version:o}),[r,n,o]);return e(Cd.Provider,{value:i,children:t})},Ad=(e,t)=>!t||ki(e)>=ki(t),Dd=e=>{const t=qt(Cd),r=Ad(t.version,e),n=t.platformType===Mr.Vm;return{...t,isVersionSupported:r,isVm:n,isEnterprise:t.tier===zr.Onprem}},Td=new Set([rn.StaticPod]),Id=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}},Nd=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:n}=Id(e);return t||r||n}return!0},Rd=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),Od=(e,t,r)=>{const n=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,o=n&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!n||o)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},_d=(e,t,r)=>({...Od(e,t),currentStreamName:t}),Pd=(e,t,r)=>{const n="boolean"==typeof r,o=e.dataStreamNames?.includes(t),i=(n?r:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&i,currentStreamName:t}},Fd=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Dd(),n=e=>r!==zr.Onprem&&Td.has(e),{selectedStreamName:o}=vc(),{namespaces:i,addEntities:a}=wc(),[s,l]=Ht(!1),[c,d]=Ht({}),[p,u]=Ht(!1),[h,m]=Ht(""),[g,f]=Ht({}),[y,x]=Ht({}),[b,v]=Ht(""),[$,w]=Ht(Wr.Source),[S,k]=Ht(!1),[C,E]=Ht(!1),A=Gt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(y).filter(([t])=>e(t,Wr.Namespace)).forEach(([r,n])=>{const o=n.filter(t=>{return e(t.name,Wr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===Wr.Namespace||$===Wr.Source&&o.length))&&(t[r]=o)}),t},[y,b,$,S,C]);return Xt(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const n=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of n){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>Od(e,o)),s[e.name]=t.map(e=>_d(e,o)),c[e.name]=Pd(e,o)}a(Wr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=_c.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),x(s),f(c)})()},[o]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(y).forEach(([t,r])=>{r.forEach(r=>{const n=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);n?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const n=i?.find(e=>e.name===t);(r.selected&&!n?.dataStreamNames?.includes(o)||!r.selected&&n?.dataStreamNames?.includes(o))&&(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&&(x(r=>({...r,[e]:(r[e]||[]).map(e=>t&&n(e.kind)?e:{...e,selected:t,currentStreamName:o})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),x(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&n(t.kind)?t:{...t,selected:e,currentStreamName:o});return r})},selectedSources:y,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(n(e.kind))return;const i=[...y[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:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});x(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const n=i.find(e=>e.name===t);n&&f(t=>({...t,[r]:Pd(n,o,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Zt.addDefaultLocale(nr)}catch(e){}const Ld=()=>{const e=Vt(new Zt(nr.locale));return{formatTimeAgo:Kt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},zd=n.div`
477
+ `,pd=({"data-id":t,icon:r,size:n=cd.S,onClick:o,disabled:i})=>e(dd,{"data-id":t,$size:n,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:e(r,{size:n})}),ud=({onDone:t}={})=>{const[r,n]=Ht(!1),[o,i]=Ht(-1),a=Kt(async(e,o)=>{if(!r){if(n(!0),void 0!==o&&i(o),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(()=>{n(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Kt(({value:t,size:n})=>e(pd,{icon:r?yt:xt,size:n,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:o,clickCopy:a}},hd=e=>{const{addNotification:t}=Ac(),{formData:r,handleFormChange:n,formErrors:o,handleErrorChange:i,resetFormData:a}=rd(e);return{formData:r,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return r.name?ai(r.name)?n.name=void 0:(o=!1,n.name=Dn.ILLEGAL_K8S_LABEL):(o=!1,n.name=Dn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Kr.Warning,title:e.alertTitle,message:Dn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const r={...Sr(e),name:t};n(void 0,void 0,r)}}},md={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},gd=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:n}=Ac(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=rd(md),[c,d]=Ht([]),[p,u]=Ht([]);Xt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:o,initialValue:i,renderCondition:a}=e;if(r===Gr.Dropdown){const e=ri(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:o,value:i,renderCondition:a,...ri(n,{})}})).map(e=>{if(r){const t="string"==typeof r?ri(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Xt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Xt(()=>{if(t&&0===gi(o.exportedSignals).length){const{logs:e,metrics:r,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:n.supported})}},[t,o.exportedSignals]);return{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(r=!1,t[e]=Dn.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&n({type:Kr.Warning,title:e.alertTitle,message:Dn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:n,fields:o})=>{const i={...Sr(md),type:e,name:t,disabled:r,exportedSignals:n,fields:Object.entries(ri(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},fd={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[pn.HttpRequest]:null,[pn.HttpResponse]:null,[pn.DbQuery]:null,[pn.Messaging]:null},codeAttributes:{[ln.Column]:null,[ln.FilePath]:null,[ln.Function]:null,[ln.LineNumber]:null,[ln.Namespace]:null,[ln.StackTrace]:null},headersCollection:null,customInstrumentations:{[dn.Java]:null,[dn.Golang]:null}},yd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:o}=rd(fd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...Sr(fd),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[pn.HttpRequest]:o[pn.HttpRequest]?{}:null,[pn.HttpResponse]:o[pn.HttpResponse]?{}:null,[pn.DbQuery]:o[pn.DbQuery]?{}:null,[pn.Messaging]:o[pn.Messaging]?{}:null}),i&&(l.codeAttributes={[ln.Column]:i[ln.Column]||null,[ln.FilePath]:i[ln.FilePath]||null,[ln.Function]:i[ln.Function]||null,[ln.LineNumber]:i[ln.LineNumber]||null,[ln.Namespace]:i[ln.Namespace]||null,[ln.StackTrace]:i[ln.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[dn.Java]:s[dn.Java]||null,[dn.Golang]:s[dn.Golang]||null}),r(void 0,void 0,l)}}},xd=({active:e,key:t,withAltKey:r,withCtrlKey:n,withShiftKey:o,withMetaKey:i},a)=>(Xt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,n,o,i,a]),null),bd="data-ignore-outside-click",vd=(e,t)=>{const r=Vt(t);r.current=t,Xt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(bd))return!0;t=t.parentNode}return!1})(n)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},$d=({sectionNames:e,threshold:t=.4})=>{const[r,n]=Ht(e[0]||""),[o,i]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),c=Kt((e,t)=>{a.current[e]=t},[]),d=Kt(e=>{i(e)},[]),p=Kt(e=>{l.current=!0,n(e)},[]);return Xt(()=>{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]),Xt(()=>{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&&n(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},wd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:n="local"}={})=>{const o=Vt(null),[i,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[c,d]=Ht({edge:"top",align:"left"});vd(o,()=>{i&&(a(!1),r?.())});return{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===n)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,p=o.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})}}},Sd=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ri(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),kd={otelServiceName:"",currentStreamName:""},Cd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:o}=rd(kd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...Sr(kd),otelServiceName:e||t||""};r(void 0,void 0,n)}}},Ed=Jt({platformType:Br.K8s,tier:Mr.Community,version:"v0.0.0"}),Ad=({children:t,platformType:r,tier:n,version:o})=>{const i=Gt(()=>({platformType:r,tier:n,version:o}),[r,n,o]);return e(Ed.Provider,{value:i,children:t})},Dd=(e,t)=>!t||Ci(e)>=Ci(t),Td=e=>{const t=qt(Ed),r=Dd(t.version,e),n=t.platformType===Br.Vm;return{...t,isVersionSupported:r,isVm:n,isEnterprise:t.tier===Mr.Onprem}},Id=new Set([nn.StaticPod]),Nd=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}},Rd=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:n}=Nd(e);return t||r||n}return!0},Od=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),_d=(e,t,r)=>{const n=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,o=n&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!n||o)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},Pd=(e,t,r)=>({..._d(e,t),currentStreamName:t}),Fd=(e,t,r)=>{const n="boolean"==typeof r,o=e.dataStreamNames?.includes(t),i=(n?r:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&i,currentStreamName:t}},Ld=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Td(),n=e=>r!==Mr.Onprem&&Id.has(e),{selectedStreamName:o}=$c(),{namespaces:i,addEntities:a}=Sc(),[s,l]=Ht(!1),[c,d]=Ht({}),[p,u]=Ht(!1),[h,m]=Ht(""),[g,f]=Ht({}),[y,x]=Ht({}),[b,v]=Ht(""),[$,w]=Ht(Hr.Source),[S,k]=Ht(!1),[C,E]=Ht(!1),A=Gt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(y).filter(([t])=>e(t,Hr.Namespace)).forEach(([r,n])=>{const o=n.filter(t=>{return e(t.name,Hr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===Hr.Namespace||$===Hr.Source&&o.length))&&(t[r]=o)}),t},[y,b,$,S,C]);return Xt(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const n=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of n){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>_d(e,o)),s[e.name]=t.map(e=>Pd(e,o)),c[e.name]=Fd(e,o)}a(Hr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=Pc.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),x(s),f(c)})()},[o]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(y).forEach(([t,r])=>{r.forEach(r=>{const n=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);n?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const n=i?.find(e=>e.name===t);(r.selected&&!n?.dataStreamNames?.includes(o)||!r.selected&&n?.dataStreamNames?.includes(o))&&(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&&(x(r=>({...r,[e]:(r[e]||[]).map(e=>t&&n(e.kind)?e:{...e,selected:t,currentStreamName:o})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),x(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&n(t.kind)?t:{...t,selected:e,currentStreamName:o});return r})},selectedSources:y,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(n(e.kind))return;const i=[...y[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:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});x(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const n=i.find(e=>e.name===t);n&&f(t=>({...t,[r]:Fd(n,o,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{er.addDefaultLocale(or)}catch(e){}const zd=()=>{const e=Vt(new er(or.locale));return{formatTimeAgo:Kt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Md=n.div`
478
478
  position: fixed;
479
479
  top: 50%;
480
480
  left: 50%;
@@ -484,28 +484,28 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
484
484
  background: ${({theme:e})=>e.colors.translucent_bg};
485
485
  border: ${({theme:e})=>`1px solid ${e.colors.border}`};
486
486
  border-radius: 40px;
487
- box-shadow: ${({theme:e})=>{const t=e.colors.primary+Uc["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
488
- animation-name: ${Wc.in.center};
489
- `,Md=n.div`
487
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+jc["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
488
+ animation-name: ${Hc.in.center};
489
+ `,Bd=n.div`
490
490
  display: flex;
491
491
  justify-content: space-between;
492
492
  align-items: center;
493
493
  height: 80px;
494
494
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
495
495
  padding: 0 24px;
496
- `,Bd=n.div`
496
+ `,Ud=n.div`
497
497
  cursor: pointer;
498
498
  display: flex;
499
499
  align-items: center;
500
500
  gap: 8px;
501
- `,Ud=n.div`
501
+ `,jd=n.div`
502
502
  display: flex;
503
503
  align-items: center;
504
504
  gap: 8px;
505
- `,jd=n(Lo)`
505
+ `,Wd=n(zo)`
506
506
  min-width: 350px;
507
507
  min-height: 150px;
508
- `,Wd=n.div`
508
+ `,Hd=n.div`
509
509
  position: absolute;
510
510
  left: 50%;
511
511
  transform: translateX(-50%);
@@ -514,24 +514,24 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
514
514
  justify-content: center;
515
515
  width: 100%;
516
516
  pointer-events: none;
517
- `,Hd=n(Ti)`
517
+ `,Xd=n(Ii)`
518
518
  text-transform: uppercase;
519
519
  font-family: ${({theme:e})=>e.font_family.secondary};
520
520
  pointer-events: auto;
521
- `,Xd=n(Ti)`
521
+ `,Gd=n(Ii)`
522
522
  text-transform: uppercase;
523
523
  font-weight: 500;
524
524
  font-size: 14px;
525
525
  font-family: ${({theme:e})=>e.font_family.secondary};
526
526
  text-decoration: underline;
527
527
  cursor: pointer;
528
- `,Gd=({isOpen:n,noOverlay:o,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(yd({key:"Escape",active:n&&c},()=>s()),od(n),n?pr.createPortal(t(r,{children:[e(Mo,{hidden:!n,onClick:s,style:{opacity:o?0:1}}),t(zd,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(Md,{children:[t(Bd,{onClick:s,children:[e(bt,{}),e(Xd,{children:"Cancel"})]}),e(Wd,{children:e(Hd,{children:i.title})}),e(Ud,{children:a})]}),e(jd,{children:l})]})]}),document.body):null),Vd=n.div`
528
+ `,Vd=({isOpen:n,noOverlay:o,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(xd({key:"Escape",active:n&&c},()=>s()),id(n),n?ur.createPortal(t(r,{children:[e(Bo,{hidden:!n,onClick:s,style:{opacity:o?0:1}}),t(Md,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(Bd,{children:[t(Ud,{onClick:s,children:[e(bt,{}),e(Gd,{children:"Cancel"})]}),e(Hd,{children:e(Xd,{children:i.title})}),e(jd,{children:a})]}),e(Wd,{children:l})]})]}),document.body):null),Kd=n.div`
529
529
  width: ${({$orientation:e,$thickness:t,$length:r})=>"vertical"===e?`${t}px`:r||"100%"};
530
530
  height: ${({$orientation:e,$thickness:t,$length:r})=>"horizontal"===e?`${t}px`:r||"100%"};
531
531
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
532
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Uc["050"]};
532
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+jc["050"]};
533
533
  opacity: ${({$opacity:e})=>e||1};
534
- `,Kd=({orientation:t="horizontal",type:r,thickness:n=1,length:o,margin:i,opacity:a})=>e(Vd,{$orientation:t,$type:r,$thickness:n,$length:o,$margin:i,$opacity:a}),qd=n.div`
534
+ `,qd=({orientation:t="horizontal",type:r,thickness:n=1,length:o,margin:i,opacity:a})=>e(Kd,{$orientation:t,$type:r,$thickness:n,$length:o,$margin:i,$opacity:a}),Jd=n.div`
535
535
  /* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
536
536
  position: ${({$asPortal:e})=>e?"fixed":"absolute"};
537
537
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
@@ -547,15 +547,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
547
547
  width: ${({$width:e})=>void 0!==e?e:"unset"};
548
548
 
549
549
  ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
550
- `,Jd=n.div`
551
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
552
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
553
550
  `,Yd=n.div`
554
551
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
552
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
555
553
  `,Qd=n.div`
556
554
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
555
+ `,Zd=n.div`
556
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
557
557
  border-top: 1px solid ${({theme:e})=>e.colors.border};
558
- `,Zd=jt(({isOpen:r,asPortal:n,...o},i)=>{const a=Gt(()=>{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,...y}=o;return t(qd,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:n,$withPointerEvents:f,...y,children:[m&&e(Jd,{$padding:p,children:m}),e(Yd,{$padding:p,children:r}),g&&e(Qd,{$padding:p,children:g})]})},[i,o,n]);return r?n?pr.createPortal(a,document.body):a:null});Zd.displayName=Zd.name;const ep=n.div`
558
+ `,ep=jt(({isOpen:r,asPortal:n,...o},i)=>{const a=Gt(()=>{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,...y}=o;return t(Jd,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:n,$withPointerEvents:f,...y,children:[m&&e(Yd,{$padding:p,children:m}),e(Qd,{$padding:p,children:r}),g&&e(Zd,{$padding:p,children:g})]})},[i,o,n]);return r?n?ur.createPortal(a,document.body):a:null});ep.displayName=ep.name;const tp=n.div`
559
559
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
560
560
  position: relative;
561
561
  display: flex;
@@ -569,13 +569,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
569
569
  text-overflow: ellipsis;
570
570
  white-space: nowrap;
571
571
  `}
572
- `,tp=n.div`
572
+ `,rp=n.div`
573
573
  display: flex;
574
574
  flex-direction: column;
575
575
  align-items: flex-start;
576
576
  gap: 8px;
577
577
  width: 100%;
578
- `,rp=n.div`
578
+ `,np=n.div`
579
579
  display: flex;
580
580
  width: 100%;
581
581
  flex-shrink: 0;
@@ -585,7 +585,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
585
585
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
586
586
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
587
587
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
588
- `,np=n.div`
588
+ `,op=n.div`
589
589
  width: 0;
590
590
  height: 0;
591
591
  border-style: solid;
@@ -594,18 +594,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
594
594
  flex-shrink: 0;
595
595
 
596
596
  ${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
597
- `,op=n.div`
597
+ `,ip=n.div`
598
598
  display: flex;
599
599
  flex-direction: column;
600
600
  align-items: stretch;
601
601
  min-width: 0;
602
- `,ip=n.div`
602
+ `,ap=n.div`
603
603
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
604
604
  border-radius: 4px;
605
605
  padding: 8px;
606
606
  box-sizing: border-box;
607
607
  min-width: 0;
608
- `,ap=({withIcon:n,titleIcon:o,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:y,arrowPlacement:x,handlePosition:b}=$d({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Gt(()=>!!Ei(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:n}=e;v?b(y.left||r,y.top||n):b(r,n),f("mouseleave"!==t)};return s||p?t(ep,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,n&&e(Qe,{fill:h.v2.colors.white[500]}),e(Zd,{ref:m,isOpen:g&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(op,{children:["top"===x.edge&&e(rp,{$align:x.align,children:e(np,{$pointsUp:!0})}),e(ip,{children:t(tp,{children:[(!!o||!!a)&&t(Po,{$gap:4,style:{alignItems:"center"},children:[o&&e(o,{size:16},"icon"),a&&e(ho,{size:so.XS,children:a},"title")]}),!!s&&e(ho,{size:so.XXXS,children:s}),!!l&&e(ho,{size:so.XXXS,color:lo.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===x.edge&&e(rp,{$align:x.align,children:e(np,{$pointsUp:!1})})]})})]}):e(r,{children:c})},sp=n.button`
608
+ `,sp=({withIcon:n,titleIcon:o,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:y,arrowPlacement:x,handlePosition:b}=wd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Gt(()=>!!Ai(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:n}=e;v?b(y.left||r,y.top||n):b(r,n),f("mouseleave"!==t)};return s||p?t(tp,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,n&&e(Qe,{fill:h.v2.colors.white[500]}),e(ep,{ref:m,isOpen:g&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(ip,{children:["top"===x.edge&&e(np,{$align:x.align,children:e(op,{$pointsUp:!0})}),e(ap,{children:t(rp,{children:[(!!o||!!a)&&t(Fo,{$gap:4,style:{alignItems:"center"},children:[o&&e(o,{size:16},"icon"),a&&e(mo,{size:lo.XS,children:a},"title")]}),!!s&&e(mo,{size:lo.XXXS,children:s}),!!l&&e(mo,{size:lo.XXXS,color:co.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===x.edge&&e(np,{$align:x.align,children:e(op,{$pointsUp:!1})})]})})]}):e(r,{children:c})},lp=n.button`
609
609
  position: relative;
610
610
  width: ${({$size:e})=>e}px;
611
611
  height: ${({$size:e})=>e}px;
@@ -617,9 +617,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
617
617
  justify-content: center;
618
618
  cursor: pointer;
619
619
  &:hover {
620
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+Uc["070"]:e.colors.dropdown_bg_2};
620
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+jc["070"]:e.colors.dropdown_bg_2};
621
621
  }
622
- `,lp=n.div`
622
+ `,cp=n.div`
623
623
  position: absolute;
624
624
  top: ${({$size:e})=>e/5}px;
625
625
  right: ${({$size:e})=>e/5}px;
@@ -634,17 +634,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
634
634
  inset: 0;
635
635
  border-radius: 100%;
636
636
  background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
637
- animation: ${Xc} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
637
+ animation: ${Gc} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
638
638
  }
639
- `,cp=({children:r,onClick:n,tooltip:o,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(ap,{text:o,children:t(sp,{$size:i,$withBorder:l,$backgroundColor:c,onClick:n,...d,children:[a&&e(lp,{$size:i,$color:s}),r]})}),dp=n.div`
639
+ `,dp=({children:r,onClick:n,tooltip:o,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(sp,{text:o,children:t(lp,{$size:i,$withBorder:l,$backgroundColor:c,onClick:n,...d,children:[a&&e(cp,{$size:i,$color:s}),r]})}),pp=n.div`
640
640
  position: relative;
641
641
  &.animated {
642
642
  overflow: hidden;
643
643
  padding-bottom: 1px;
644
644
  border-radius: 32px;
645
- animation: ${({$isLeaving:e})=>e?Wc.out.bottom:Wc.in.bottom} ${({$duration:e})=>e/10}ms forwards;
645
+ animation: ${({$isLeaving:e})=>e?Hc.out.bottom:Hc.in.bottom} ${({$duration:e})=>e/10}ms forwards;
646
646
  }
647
- `,pp=n.div`
647
+ `,up=n.div`
648
648
  position: absolute;
649
649
  bottom: -1px;
650
650
  left: 0;
@@ -653,8 +653,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
653
653
  height: 100%;
654
654
  border-radius: 32px;
655
655
  background-color: ${({$type:e,theme:t})=>t.text[e]};
656
- animation: ${Hc.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
657
- `,up=n.div`
656
+ animation: ${Xc.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
657
+ `,hp=n.div`
658
658
  display: flex;
659
659
  align-items: center;
660
660
  flex: 1;
@@ -662,20 +662,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
662
662
  padding: 0 12px;
663
663
  border-radius: 32px;
664
664
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
665
- `,hp=n.div`
665
+ `,mp=n.div`
666
666
  display: flex;
667
667
  align-items: center;
668
668
  margin: 0 auto 0 0;
669
669
  padding: 8px 0;
670
670
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
671
671
  min-height: 12px;
672
- `,mp=n(Ti)`
672
+ `,gp=n(Ii)`
673
673
  font-size: 14px;
674
674
  color: ${({$type:e,theme:t})=>t.text[e]};
675
- `,gp=n(Ti)`
675
+ `,fp=n(Ii)`
676
676
  color: ${({$type:e,theme:t})=>t.text[e]};
677
677
  font-size: 12px;
678
- `,fp=n(Po)``,yp=n(Ti)`
678
+ `,yp=n(Fo)``,xp=n(Ii)`
679
679
  text-transform: uppercase;
680
680
  text-decoration: underline;
681
681
  font-size: 12px;
@@ -686,34 +686,34 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
686
686
  transform: scale(1.1);
687
687
  transition: transform 0.3s;
688
688
  }
689
- `,xp=({type:r,icon:n,title:o,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Ht(!1),g=Vt(null),f=Vt(null),y=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Xt(()=>(g.current=setTimeout(()=>y({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const x=n||Ko(r,u);return t(dp,{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(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(up,{"data-id":"toast",$type:r,style:p,children:[e(x,{fill:u.text[r]}),t(hp,{$withAction:!!s,$overrideMaxWidth:d,children:[o&&e(mp,{$type:r,children:o}),o&&a&&e(Kd,{orientation:"vertical",type:r}),a&&e(gp,{$type:r,children:a})]}),(!!s||!!l)&&t(fp,{children:[s&&e(yp,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(cp,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(bt,{size:12})})]})]}),l&&e(pp,{ref:f,$duration:c,$type:r})]})},bp=n.div`
689
+ `,bp=({type:r,icon:n,title:o,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Ht(!1),g=Vt(null),f=Vt(null),y=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Xt(()=>(g.current=setTimeout(()=>y({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const x=n||qo(r,u);return t(pp,{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(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(hp,{"data-id":"toast",$type:r,style:p,children:[e(x,{fill:u.text[r]}),t(mp,{$withAction:!!s,$overrideMaxWidth:d,children:[o&&e(gp,{$type:r,children:o}),o&&a&&e(qd,{orientation:"vertical",type:r}),a&&e(fp,{$type:r,children:a})]}),(!!s||!!l)&&t(yp,{children:[s&&e(xp,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(dp,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(bt,{size:12})})]})]}),l&&e(up,{ref:f,$duration:c,$type:r})]})},vp=n.div`
690
690
  padding: 24px 32px;
691
- `,vp=n.div`
691
+ `,$p=n.div`
692
692
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
693
- `,$p=n(Ti)`
693
+ `,wp=n(Ii)`
694
694
  font-size: 20px;
695
695
  line-height: 28px;
696
- `,wp=n(Ti)`
696
+ `,Sp=n(Ii)`
697
697
  color: ${({theme:e})=>e.text.grey};
698
698
  width: 416px;
699
699
  font-style: normal;
700
700
  font-weight: 300;
701
701
  line-height: 24px;
702
- `,Sp=n.div`
702
+ `,kp=n.div`
703
703
  display: flex;
704
704
  justify-content: space-between;
705
705
  gap: 12px;
706
- `,kp=n(ed)`
706
+ `,Cp=n(td)`
707
707
  width: 250px;
708
- `,Cp=n.div`
708
+ `,Ep=n.div`
709
709
  margin-bottom: 12px;
710
- `,Ep=({isOpen:r,noOverlay:n,title:o="",description:i="",note:a,approveButton:s,denyButton:l,closeOnEscape:c=!0})=>{yd({key:"Enter",active:r&&c},()=>s.onClick());const d=()=>l.onClick();return e(Gd,{isOpen:r,noOverlay:n,onClose:d,children:t(bp,{children:[e($p,{children:o}),e(vp,{$withNote:!!a,children:e(wp,{children:i})}),!!a&&e(Cp,{children:e(xp,{type:a.type,title:a.title,message:a.message})}),t(Sp,{children:[e(kp,{"data-id":"approve",variant:s.variant||"primary",onClick:()=>s.onClick(),children:s.text}),e(kp,{"data-id":"deny",variant:l.variant||"secondary",onClick:d,children:l.text})]})]})})},Ap=({isOpen:t,noOverlay:r,name:n,onApprove:o,onDeny:i})=>e(Ep,{isOpen:t,noOverlay:r,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Vr.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Dp=n.div`
710
+ `,Ap=({isOpen:r,noOverlay:n,title:o="",description:i="",note:a,approveButton:s,denyButton:l,closeOnEscape:c=!0})=>{xd({key:"Enter",active:r&&c},()=>s.onClick());const d=()=>l.onClick();return e(Vd,{isOpen:r,noOverlay:n,onClose:d,children:t(vp,{children:[e(wp,{children:o}),e($p,{$withNote:!!a,children:e(Sp,{children:i})}),!!a&&e(Ep,{children:e(bp,{type:a.type,title:a.title,message:a.message})}),t(kp,{children:[e(Cp,{"data-id":"approve",variant:s.variant||"primary",onClick:()=>s.onClick(),children:s.text}),e(Cp,{"data-id":"deny",variant:l.variant||"secondary",onClick:d,children:l.text})]})]})})},Dp=({isOpen:t,noOverlay:r,name:n,onApprove:o,onDeny:i})=>e(Ap,{isOpen:t,noOverlay:r,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Kr.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Tp=n.div`
711
711
  display: flex;
712
712
  align-items: center;
713
713
  gap: 8px;
714
714
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
715
715
  opacity: ${({$disabled:e})=>e?.6:1};
716
- `,Tp=n.div`
716
+ `,Ip=n.div`
717
717
  width: 18px;
718
718
  height: 18px;
719
719
  border-radius: 6px;
@@ -721,15 +721,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
721
721
  display: flex;
722
722
  align-items: center;
723
723
  justify-content: center;
724
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e?r.colors.majestic_blue:t?r.colors.majestic_blue_soft:r.colors.secondary+Uc["020"]};
724
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e?r.colors.majestic_blue:t?r.colors.majestic_blue_soft:r.colors.secondary+jc["020"]};
725
725
  pointer-events: ${({$disabled:e})=>e?"none":"auto"};
726
726
  transition: border 0.3s;
727
727
  &:hover {
728
728
  border: 1px solid ${({theme:e})=>e.colors.secondary};
729
729
  }
730
- `,Ip=({title:r,titleColor:n,tooltip:o,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Ht(a);Xt(()=>g(a),[a]);return t(Fo,{children:[t(Dp,{"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(Tp,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(vt,{fill:h.text.white}):m?e(yt,{fill:h.text.white}):null}),r&&e(ap,{text:o,withIcon:!0,children:e(Ti,{size:12,color:n||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ri,{children:p})]})},Np=n(Po)`
730
+ `,Np=({title:r,titleColor:n,tooltip:o,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Ht(a);Xt(()=>g(a),[a]);return t(Lo,{children:[t(Tp,{"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(Ip,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(vt,{fill:h.text.white}):m?e(yt,{fill:h.text.white}):null}),r&&e(sp,{text:o,withIcon:!0,children:e(Ii,{size:12,color:n||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Oi,{children:p})]})},Rp=n(Fo)`
731
731
  gap: 0;
732
- `,Rp=n.button`
732
+ `,Op=n.button`
733
733
  padding: 4px 8px;
734
734
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
735
735
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -741,22 +741,22 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
741
741
  &:hover {
742
742
  border: 1px solid ${({theme:e})=>e.colors.secondary};
743
743
  }
744
- `,Op=({isPrettyMode:r,setIsPrettyMode:n})=>t(Np,{children:[e(Rp,{$position:"left",$selected:r,onClick:()=>n(!0),children:e($t,{})}),e(Rp,{$position:"right",$selected:!r,onClick:()=>n(!1),children:e(wt,{})})]}),_p=n.table`
744
+ `,_p=({isPrettyMode:r,setIsPrettyMode:n})=>t(Rp,{children:[e(Op,{$position:"left",$selected:r,onClick:()=>n(!0),children:e($t,{})}),e(Op,{$position:"right",$selected:!r,onClick:()=>n(!1),children:e(wt,{})})]}),Pp=n.table`
745
745
  border-collapse: collapse;
746
746
  font-family: ${({theme:e})=>e.font_family.primary};
747
- `,Pp=n.tbody``,Fp=n.tr`
747
+ `,Fp=n.tbody``,Lp=n.tr`
748
748
  td:first-child {
749
749
  padding-left: 0 !important;
750
750
  }
751
751
  td:last-child {
752
752
  padding-right: 0 !important;
753
753
  }
754
- `,Lp=n.td`
754
+ `,zp=n.td`
755
755
  vertical-align: top;
756
756
  padding: 4px 6px;
757
- `,zp=n(Ti)`
757
+ `,Mp=n(Ii)`
758
758
  white-space: nowrap;
759
- `,Mp=n.span`
759
+ `,Bp=n.span`
760
760
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
761
761
  overflow-wrap: break-word;
762
762
  word-break: break-word;
@@ -764,56 +764,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
764
764
  /* Fallback for older browsers */
765
765
  -ms-word-break: break-all;
766
766
  font-size: 12px;
767
- `,Bp=({language:t,code:r,theme:n,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=n?mr[n]:s?mr.palenight:mr.vsLight;let c="";if("json"===t){const e=ti(r,{}),t=vi(e);c=$i(o?Nn(t):t)}else c=r;return a&&"json"===t?e(Up,{darkMode:s,str:c}):e(hr,{theme:l||(s?mr.palenight:mr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:n})=>e("pre",{children:n.map((n,o)=>e("div",{...t({line:n}),children:n.map((t,n)=>e(Mp,{...r({token:t})},`line-${o}-token-${n}`))},`line-${o}`))})})},Up=({darkMode:r,str:n})=>{const o=i(),a=(r,n)=>{const i=new Array(r).fill(r=>t(Fp,{...r,children:[e(Lp,{}),e(Lp,{})]}));return e(Wt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${n}-${r}`))})};return e(hr,{theme:r?mr.palenight:mr.vsLight,language:"json",code:n,children:({getLineProps:r,getTokenProps:n,tokens:i})=>e(_p,{children:e(Pp,{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],n=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(n.split("@")[0])&&(r[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:n}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Wt,{children:[a(2,s),t(Fp,{...c,children:[e(Lp,{children:e(zp,{children:l[0].content})}),e(Lp,{})]})]},`line-${s}`):2===l.length?e(Fp,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[n,...o]=t.split("@");return{text:n,components:o?.map((t,n)=>{if(!t.includes("="))return null;const[o,i]=t.split("=");switch(o){case"tooltip":return e(ap,{withIcon:!0,text:i},`${o}-${i}-${n}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${o}-${i}-${n}`);let t=Ko(i,r);return t||(t=Ko(Vr.Warning,r)),e(t,{},`${o}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,o),c=0===i;return e(Lp,{children:t(Po,{children:[e(Po,{children:l}),e(Mp,{$noWrap:c,...n({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},jp={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 Wp(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 n=(e.match(/[^0-9]*$/)||"").toString();return jp[n]?{value:t,unit:n}:{value:t,unit:"px"}}function Hp(e){const t=Wp(e);return`${t.value}${t.unit}`}const Xp=((e,t,r)=>{const n=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return n;const o=document.createElement("style");document.head.appendChild(o);const i=o.sheet,a=`\n @keyframes ${n} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),n})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Gp=({loading:r=!0,color:n,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=n||d.text.secondary;if(!r)return null;const{value:u}=Wp(2),h=u+4.2,m=h/2+h/5.5,g=4*h*o,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:Hp(1.5),height:Hp(4),borderRadius:Hp(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${Xp} ${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:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Vp=n.div`
767
+ `,Up=({language:t,code:r,theme:n,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=n?gr[n]:s?gr.palenight:gr.vsLight;let c="";if("json"===t){const e=ri(r,{}),t=$i(e);c=wi(o?Rn(t):t)}else c=r;return a&&"json"===t?e(jp,{darkMode:s,str:c}):e(mr,{theme:l||(s?gr.palenight:gr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:n})=>e("pre",{children:n.map((n,o)=>e("div",{...t({line:n}),children:n.map((t,n)=>e(Bp,{...r({token:t})},`line-${o}-token-${n}`))},`line-${o}`))})})},jp=({darkMode:r,str:n})=>{const o=i(),a=(r,n)=>{const i=new Array(r).fill(r=>t(Lp,{...r,children:[e(zp,{}),e(zp,{})]}));return e(Wt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${n}-${r}`))})};return e(mr,{theme:r?gr.palenight:gr.vsLight,language:"json",code:n,children:({getLineProps:r,getTokenProps:n,tokens:i})=>e(Pp,{children:e(Fp,{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],n=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(n.split("@")[0])&&(r[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:n}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Wt,{children:[a(2,s),t(Lp,{...c,children:[e(zp,{children:e(Mp,{children:l[0].content})}),e(zp,{})]})]},`line-${s}`):2===l.length?e(Lp,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[n,...o]=t.split("@");return{text:n,components:o?.map((t,n)=>{if(!t.includes("="))return null;const[o,i]=t.split("=");switch(o){case"tooltip":return e(sp,{withIcon:!0,text:i},`${o}-${i}-${n}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${o}-${i}-${n}`);let t=qo(i,r);return t||(t=qo(Kr.Warning,r)),e(t,{},`${o}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,o),c=0===i;return e(zp,{children:t(Fo,{children:[e(Fo,{children:l}),e(Bp,{$noWrap:c,...n({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Wp={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 Hp(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 n=(e.match(/[^0-9]*$/)||"").toString();return Wp[n]?{value:t,unit:n}:{value:t,unit:"px"}}function Xp(e){const t=Hp(e);return`${t.value}${t.unit}`}const Gp=((e,t,r)=>{const n=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return n;const o=document.createElement("style");document.head.appendChild(o);const i=o.sheet,a=`\n @keyframes ${n} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),n})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Vp=({loading:r=!0,color:n,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=n||d.text.secondary;if(!r)return null;const{value:u}=Hp(2),h=u+4.2,m=h/2+h/5.5,g=4*h*o,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:Xp(1.5),height:Xp(4),borderRadius:Xp(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${Gp} ${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:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Kp=n.div`
768
768
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
769
769
  display: flex;
770
770
  align-items: center;
771
771
  justify-content: center;
772
- `,Kp=({extend:t,size:r=14,align:n="center"})=>e(Vp,{$align:n,children:e(St,{size:r,rotate:t?180:0})}),qp=n.div`
772
+ `,qp=({extend:t,size:r=14,align:n="center"})=>e(Kp,{$align:n,children:e(St,{size:r,rotate:t?180:0})}),Jp=n.div`
773
773
  border-radius: 24px;
774
- background-color: ${({theme:e,$status:t})=>t===Vr.Error?e.text.error+Uc["010"]:t===Vr.Warning?e.text.warning+Uc["010"]:e.colors.secondary+Uc["005"]};
774
+ background-color: ${({theme:e,$status:t})=>t===Kr.Error?e.text.error+jc["010"]:t===Kr.Warning?e.text.warning+jc["010"]:e.colors.secondary+jc["005"]};
775
775
  &:hover {
776
- background-color: ${({theme:e,$status:t})=>t===Vr.Error?e.text.error+Uc["020"]:t===Vr.Warning?e.text.warning+Uc["020"]:e.colors.secondary+Uc["010"]};
776
+ background-color: ${({theme:e,$status:t})=>t===Kr.Error?e.text.error+jc["020"]:t===Kr.Warning?e.text.warning+jc["020"]:e.colors.secondary+jc["010"]};
777
777
  }
778
778
  cursor: pointer;
779
779
  transition: background 0.3s;
780
- `,Jp=n.div`
780
+ `,Yp=n.div`
781
781
  display: flex;
782
782
  align-items: center;
783
783
  gap: 12px;
784
784
  padding: 12px 18px;
785
- `,Yp=n.div`
785
+ `,Qp=n.div`
786
786
  display: flex;
787
787
  flex-direction: column;
788
788
  gap: 8px;
789
789
  padding: 6px 18px 12px 18px;
790
- `,Qp=n.div`
790
+ `,Zp=n.div`
791
791
  display: flex;
792
792
  align-items: center;
793
793
  gap: 12px;
794
- `,Zp=n(Ti)`
794
+ `,eu=n(Ii)`
795
795
  white-space: nowrap;
796
- `,eu=n(Fo)`
796
+ `,tu=n(Lo)`
797
797
  width: 16px;
798
- `,tu=({conditions:r,headerLabelError:n="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Ht(!1),d=Gt(()=>ui(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Fn(d),[d]);Xt(()=>{c(u||m||g)},[u,m,g]);const y=(!d.length||f)&&!u&&!m&&!g,x=u?Vr.Error:m?Vr.Warning:g?Vr.Info:Vr.Success,b=Ko(x,s),v=u?n:m||g?o:y?"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=Kt(()=>c(e=>!e),[]);return t(qp,{onClick:k,$status:x,children:[t(Jp,{children:[e(y?Gp:b,{}),e(Ti,{color:$,size:14,children:v}),e(Ti,{color:S,size:12,family:"secondary",children:w}),e(Kp,{extend:l,align:"right"})]}),l&&e(Yp,{children:d.map(({status:r,type:n,reason:o,message:i},a)=>{const l=r===qr.Loading?()=>e(Gp,{scale:.8}):r===qr.Disabled?Ko(Vr.Info,s):Ko(r,s),c=r===qr.Disabled?s.text.info:r===Vr.Error?s.text.error:r===Vr.Warning?s.text.warning:s.text.info,d=r===qr.Disabled?s.text.info_secondary:r===Vr.Error?s.text.error_secondary:r===Vr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(Qp,{children:[e(eu,{children:e(l,{})}),t(Ti,{color:c,size:12,children:[e(Zp,{color:d,size:12,weight:700,children:n}),i||o]})]},`condition-${a}`)})})]})},ru=n.div`
798
+ `,ru=({conditions:r,headerLabelError:n="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Ht(!1),d=Gt(()=>hi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Ln(d),[d]);Xt(()=>{c(u||m||g)},[u,m,g]);const y=(!d.length||f)&&!u&&!m&&!g,x=u?Kr.Error:m?Kr.Warning:g?Kr.Info:Kr.Success,b=qo(x,s),v=u?n:m||g?o:y?"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=Kt(()=>c(e=>!e),[]);return t(Jp,{onClick:k,$status:x,children:[t(Yp,{children:[e(y?Vp:b,{}),e(Ii,{color:$,size:14,children:v}),e(Ii,{color:S,size:12,family:"secondary",children:w}),e(qp,{extend:l,align:"right"})]}),l&&e(Qp,{children:d.map(({status:r,type:n,reason:o,message:i},a)=>{const l=r===Jr.Loading?()=>e(Vp,{scale:.8}):r===Jr.Disabled?qo(Kr.Info,s):qo(r,s),c=r===Jr.Disabled?s.text.info:r===Kr.Error?s.text.error:r===Kr.Warning?s.text.warning:s.text.info,d=r===Jr.Disabled?s.text.info_secondary:r===Kr.Error?s.text.error_secondary:r===Kr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(Zp,{children:[e(tu,{children:e(l,{})}),t(Ii,{color:c,size:12,children:[e(eu,{color:d,size:12,weight:700,children:n}),i||o]})]},`condition-${a}`)})})]})},nu=n.div`
799
799
  display: flex;
800
800
  align-items: center;
801
801
  gap: ${({$size:e})=>e/3}px;
802
802
  padding: ${({$size:e,$withBorder:t,$withBackground:r})=>t||r?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
803
803
  width: ${({$width:e})=>e||"fit-content"};
804
804
  border-radius: 360px;
805
- border: ${({$withBorder:e,$status:t,theme:r})=>e?`1px solid ${r.text[t]+Uc["050"]}`:"none"};
806
- background: ${({$withBackground:e,$status:t,theme:r})=>e?`linear-gradient(90deg, transparent 0%, ${r.text[t]+Uc["030"]} 100%)`:"transparent"};
807
- `,nu=n.div`
805
+ border: ${({$withBorder:e,$status:t,theme:r})=>e?`1px solid ${r.text[t]+jc["050"]}`:"none"};
806
+ background: ${({$withBackground:e,$status:t,theme:r})=>e?`linear-gradient(90deg, transparent 0%, ${r.text[t]+jc["030"]} 100%)`:"transparent"};
807
+ `,ou=n.div`
808
808
  display: flex;
809
809
  align-items: center;
810
- `,ou=n.div`
810
+ `,iu=n.div`
811
811
  display: flex;
812
812
  align-items: center;
813
- `,iu=({title:r,subtitle:n,status:o=Vr.Default,forceIcon:a,withIcon:s,withBorder:l,withBackground:c,width:d,size:p=12,family:u="secondary",nowrap:h=!1})=>{const m=i(),g=[qr.Loading,qr.Disabled].includes(o)?Vr.Info:o,f=a?()=>e(a,{size:p+2,fill:m.text[g]}):o===qr.Loading?()=>e(Gp,{scale:.8}):()=>Ko(g,m)?.({size:p+2});return t(ru,{$status:g,$width:d,$size:p,$withIcon:s,$withBorder:l,$withBackground:c,children:[s&&e(nu,{children:e(f,{})}),(!!r||!!n)&&t(ou,{children:[!!r&&e(Ti,{size:p,family:u,color:m.text[g],nowrap:h,children:r}),!!r&&!!n&&e(Kd,{orientation:"vertical",length:p-2+"px",type:g}),!!n&&e(Ti,{size:p-2,family:u,color:m.text[`${g}_secondary`],nowrap:h,children:n})]})]})},au=({label:r,onClick:n,variant:o="tertiary",textProps:a,...s})=>{const l=i();return t(ed,{onClick:n,variant:o,...s,children:[e(kt,{fill:"primary"===o?l.text.primary:l.text.info}),e(Ti,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?l.text.primary:void 0,...a,children:r||Tn.ADD})]})},su=n(Po)`
813
+ `,au=({title:r,subtitle:n,status:o=Kr.Default,forceIcon:a,withIcon:s,withBorder:l,withBackground:c,width:d,size:p=12,family:u="secondary",nowrap:h=!1})=>{const m=i(),g=[Jr.Loading,Jr.Disabled].includes(o)?Kr.Info:o,f=a?()=>e(a,{size:p+2,fill:m.text[g]}):o===Jr.Loading?()=>e(Vp,{scale:.8}):()=>qo(g,m)?.({size:p+2});return t(nu,{$status:g,$width:d,$size:p,$withIcon:s,$withBorder:l,$withBackground:c,children:[s&&e(ou,{children:e(f,{})}),(!!r||!!n)&&t(iu,{children:[!!r&&e(Ii,{size:p,family:u,color:m.text[g],nowrap:h,children:r}),!!r&&!!n&&e(qd,{orientation:"vertical",length:p-2+"px",type:g}),!!n&&e(Ii,{size:p-2,family:u,color:m.text[`${g}_secondary`],nowrap:h,children:n})]})]})},su=({label:r,onClick:n,variant:o="tertiary",textProps:a,...s})=>{const l=i();return t(td,{onClick:n,variant:o,...s,children:[e(kt,{fill:"primary"===o?l.text.primary:l.text.info}),e(Ii,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?l.text.primary:void 0,...a,children:r||In.ADD})]})},lu=n(Fo)`
814
814
  width: 100%;
815
815
  border-radius: 8px;
816
- background-color: ${({theme:e})=>e.colors.secondary+Uc["010"]};
816
+ background-color: ${({theme:e})=>e.colors.secondary+jc["010"]};
817
817
  pre {
818
818
  color: ${({theme:e})=>e.text.default};
819
819
  font-size: 12px;
@@ -821,7 +821,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
821
821
  width: 100%;
822
822
  padding-left: 12px;
823
823
  }
824
- `,lu=({value:r,callbackCopyDone:n})=>{const{clickCopy:o,isCopied:i}=pd();return t(su,{children:[e("pre",{children:r}),e(cp,{onClick:e=>{e.stopPropagation(),o(r),n?.()},tooltip:i?"Copied!":"Copy",children:e(i?yt:xt,{})})]})},cu=({label:r,onClick:n,variant:o="tertiary",...a})=>{const s=i();return t(ed,{onClick:n,variant:o,...a,children:[e(Ct,{fill:"primary"===o?s.text.primary:s.text.info}),e(Ti,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?s.text.primary:void 0,children:r||Tn.EDIT})]})},du=({onClick:t})=>e(xp,{type:Vr.Default,icon:nt,message:Dn.QUICK_BACK_TO_SUMMARY,action:{label:Dn.GO_TO_SUMMARY,onClick:t}}),pu=n(Ti)`
824
+ `,cu=({value:r,callbackCopyDone:n})=>{const{clickCopy:o,isCopied:i}=ud();return t(lu,{children:[e("pre",{children:r}),e(dp,{onClick:e=>{e.stopPropagation(),o(r),n?.()},tooltip:i?"Copied!":"Copy",children:e(i?yt:xt,{})})]})},du=({label:r,onClick:n,variant:o="tertiary",...a})=>{const s=i();return t(td,{onClick:n,variant:o,...a,children:[e(Ct,{fill:"primary"===o?s.text.primary:s.text.info}),e(Ii,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?s.text.primary:void 0,children:r||In.EDIT})]})},pu=({onClick:t})=>e(bp,{type:Kr.Default,icon:nt,message:Tn.QUICK_BACK_TO_SUMMARY,action:{label:Tn.GO_TO_SUMMARY,onClick:t}}),uu=n(Ii)`
825
825
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
826
826
  white-space: nowrap;
827
827
  overflow-x: auto;
@@ -831,15 +831,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
831
831
  content: '';
832
832
  display: block;
833
833
  }
834
- `,uu=({maxWidth:r,text:n,textSize:o=16,textColor:i})=>{const[a,s]=Ht(!1),l=Vt(null);return Xt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-o)&&e>.95*(r-o))}},[r,o,n]),t(Po,{$gap:0,children:[n&&e(ap,{text:a?n:void 0,children:e(pu,{ref:l,$maxWidth:r-o,size:o,color:i,children:n})}),a&&e(pu,{$maxWidth:o,size:o,color:i,children:"..."})]})},hu=({src:t="",alt:r="",size:n=16})=>{const[o,i]=Ht(!1);return t&&!o?e("img",{src:t,alt:r,width:n,height:n,onError:()=>i(!0)}):e(g,{size:n})},mu=n.div`
834
+ `,hu=({maxWidth:r,text:n,textSize:o=16,textColor:i})=>{const[a,s]=Ht(!1),l=Vt(null);return Xt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-o)&&e>.95*(r-o))}},[r,o,n]),t(Fo,{$gap:0,children:[n&&e(sp,{text:a?n:void 0,children:e(uu,{ref:l,$maxWidth:r-o,size:o,color:i,children:n})}),a&&e(uu,{$maxWidth:o,size:o,color:i,children:"..."})]})},mu=({src:t="",alt:r="",size:n=16})=>{const[o,i]=Ht(!1);return t&&!o?e("img",{src:t,alt:r,width:n,height:n,onError:()=>i(!0)}):e(g,{size:n})},gu=n.div`
835
835
  display: flex;
836
836
  align-items: center;
837
837
  justify-content: center;
838
838
  width: ${({$size:e})=>e}px;
839
839
  height: ${({$size:e})=>e}px;
840
840
  border-radius: 8px;
841
- background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Uc["030"]} 100%)`}};
842
- `,gu=({icon:t,src:r="",alt:n="",status:o,size:i=36})=>e(mu,{$status:o,$size:i,children:r?e(hu,{src:r,alt:n,size:i-12}):e(t||g,{size:i-12})}),fu=n.div`
841
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+jc["030"]} 100%)`}};
842
+ `,fu=({icon:t,src:r="",alt:n="",status:o,size:i=36})=>e(gu,{$status:o,$size:i,children:r?e(mu,{src:r,alt:n,size:i-12}):e(t||g,{size:i-12})}),yu=n.div`
843
843
  position: relative;
844
844
  display: flex;
845
845
  flex-wrap: wrap;
@@ -847,7 +847,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
847
847
  justify-content: center;
848
848
  width: ${({$size:e})=>e}px;
849
849
  height: ${({$size:e})=>e}px;
850
- `,yu=n.div`
850
+ `,xu=n.div`
851
851
  position: absolute;
852
852
  top: ${({$top:e})=>e}px;
853
853
  left: ${({$left:e})=>e}px;
@@ -858,73 +858,73 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
858
858
  width: ${({$size:e})=>e}px;
859
859
  height: ${({$size:e})=>e}px;
860
860
  border-radius: 100%;
861
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Uc["030"]};
862
- background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Uc["030"]} 100%)`}};
863
- `,xu=({icons:r=[],iconSrcs:n=[],status:o,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===n.length?a-12:a/2.7;if(n.length>0)return e(xu,{icons:n.map(t=>()=>e(hu,{src:t,size:c})),status:o,size:a,id:s});if(1===r.length)return e(gu,{icon:r[0],status:o,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(fu,{$status:o,$size:a,children:r.map((n,i)=>i>2?null:e(yu,{$status:o,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Ti,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(n,{size:c})},`icon-${s}-${i}`))})},bu=uc.map(({id:e})=>e),vu=({monitors:r=bu,withTooltips:n,withLabels:o,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(Po,{$gap:o?a:a/2,children:r.map(r=>{const i=xr(r.toLowerCase()),s=Zn(r);return s?e(ap,{text:n?i:"",children:t(Po,{$gap:a/3,children:[e(s,{size:o?a+2:a,fill:c}),o&&e(Ti,{size:a,color:c,children:i})]})},r):null})})},$u=n.div`
861
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+jc["030"]};
862
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+jc["030"]} 100%)`}};
863
+ `,bu=({icons:r=[],iconSrcs:n=[],status:o,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===n.length?a-12:a/2.7;if(n.length>0)return e(bu,{icons:n.map(t=>()=>e(mu,{src:t,size:c})),status:o,size:a,id:s});if(1===r.length)return e(fu,{icon:r[0],status:o,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(yu,{$status:o,$size:a,children:r.map((n,i)=>i>2?null:e(xu,{$status:o,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Ii,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(n,{size:c})},`icon-${s}-${i}`))})},vu=hc.map(({id:e})=>e),$u=({monitors:r=vu,withTooltips:n,withLabels:o,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(Fo,{$gap:o?a:a/2,children:r.map(r=>{const i=br(r.toLowerCase()),s=eo(r);return s?e(sp,{text:n?i:"",children:t(Fo,{$gap:a/3,children:[e(s,{size:o?a+2:a,fill:c}),o&&e(Ii,{size:a,color:c,children:i})]})},r):null})})},wu=n.div`
864
864
  visibility: hidden;
865
- `,wu=n.div`
865
+ `,Su=n.div`
866
866
  display: flex;
867
867
  flex-direction: column;
868
868
  align-self: stretch;
869
869
  padding: 16px;
870
870
  width: calc(100% - 32px);
871
871
  border-radius: 16px;
872
- background-color: ${({theme:e,$status:t,$bgColor:r})=>r||(t?e.text[t]+Uc["010"]:e.colors.secondary+Uc["005"])};
872
+ background-color: ${({theme:e,$status:t,$bgColor:r})=>r||(t?e.text[t]+jc["010"]:e.colors.secondary+jc["005"])};
873
873
  opacity: ${({$faded:e})=>e?.5:1};
874
874
 
875
875
  ${({theme:e,$status:t,$bgColorHover:r,$withClick:n})=>n?o`
876
876
  &:hover {
877
877
  cursor: pointer;
878
- background-color: ${r||(t?e.text[t]+Uc["020"]:e.colors.secondary+Uc["010"])};
879
- ${$u} {
878
+ background-color: ${r||(t?e.text[t]+jc["020"]:e.colors.secondary+jc["010"])};
879
+ ${wu} {
880
880
  visibility: visible;
881
881
  }
882
882
  }
883
- `:`\n &:hover {\n ${$u} {\n visibility: visible;\n }\n }\n `}
884
- `,Su=n.div`
883
+ `:`\n &:hover {\n ${wu} {\n visibility: visible;\n }\n }\n `}
884
+ `,ku=n.div`
885
885
  display: flex;
886
886
  align-items: center;
887
887
  gap: 8px;
888
888
  margin-left: auto;
889
- `,ku=n(Ti)`
889
+ `,Cu=n(Ii)`
890
890
  margin-right: 16px;
891
- `,Cu=n(Ti)`
891
+ `,Eu=n(Ii)`
892
892
  font-size: 10px;
893
893
  color: ${({theme:e})=>e.text.grey};
894
- `,Eu=({title:r,subTitle:n,hoverText:o,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:y,componentsUnderTitles:x}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Ht(C||!1),[N,R]=Ht(0),O=Vt(null),_=Vt(null),P=Vt(null);return Xt(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t(wu,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(Po,{$gap:8,children:[t(Po,{$gap:16,children:[w?e(Gp,{}):b?e(Ip,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(xu,{icons:c,iconSrcs:p,status:u,id:`${r}-${n}`}):l||d?e(gu,{icon:l,src:d,status:u}):null]}),t(Fo,{$gap:4,children:[r&&e(uu,{maxWidth:N,text:r,textSize:14}),t(Po,{$gap:4,children:[n&&e(uu,{maxWidth:N-(P.current?.clientWidth||0),text:n,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(Po,{$gap:4,ref:P,children:[n&&e(Cu,{children:"•"}),e(vu,{monitors:f,withLabels:y,size:10})]})]}),x&&x.length>0?e(Po,{$gap:4,children:x?.map((t,r)=>e(Wt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(Su,{ref:_,children:[!!o&&e($u,{children:e(ku,{size:14,family:"secondary",children:o})}),s&&s(),k&&t(Wt,{children:[e(Kd,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(cp,{onClick:()=>I(e=>!e),children:e(Kp,{extend:T})})]})]})]}),T&&E&&t(Fo,{children:[e(Kd,{margin:"16px 0"}),E()]})]})},Au=n(Po)`
894
+ `,Au=({title:r,subTitle:n,hoverText:o,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:y,componentsUnderTitles:x}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Ht(C||!1),[N,R]=Ht(0),O=Vt(null),_=Vt(null),P=Vt(null);return Xt(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t(Su,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(Fo,{$gap:8,children:[t(Fo,{$gap:16,children:[w?e(Vp,{}):b?e(Np,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(bu,{icons:c,iconSrcs:p,status:u,id:`${r}-${n}`}):l||d?e(fu,{icon:l,src:d,status:u}):null]}),t(Lo,{$gap:4,children:[r&&e(hu,{maxWidth:N,text:r,textSize:14}),t(Fo,{$gap:4,children:[n&&e(hu,{maxWidth:N-(P.current?.clientWidth||0),text:n,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(Fo,{$gap:4,ref:P,children:[n&&e(Eu,{children:"•"}),e($u,{monitors:f,withLabels:y,size:10})]})]}),x&&x.length>0?e(Fo,{$gap:4,children:x?.map((t,r)=>e(Wt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(ku,{ref:_,children:[!!o&&e(wu,{children:e(Cu,{size:14,family:"secondary",children:o})}),s&&s(),k&&t(Wt,{children:[e(qd,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(dp,{onClick:()=>I(e=>!e),children:e(qp,{extend:T})})]})]})]}),T&&E&&t(Lo,{children:[e(qd,{margin:"16px 0"}),E()]})]})},Du=n(Fo)`
895
895
  width: 100%;
896
896
  justify-content: space-between;
897
- `,Du=n(Ti)`
897
+ `,Tu=n(Ii)`
898
898
  font-size: 12px;
899
899
  color: ${({theme:e})=>e.text.grey};
900
- `,Tu=n(Ti)`
900
+ `,Iu=n(Ii)`
901
901
  font-size: 10px;
902
902
  color: ${({theme:e})=>e.text.darker_grey};
903
- `,Iu=n.div`
903
+ `,Nu=n.div`
904
904
  display: flex;
905
905
  align-items: center;
906
906
  gap: 8px;
907
907
  margin-left: auto;
908
- `,Nu=n(Ti)`
908
+ `,Ru=n(Ii)`
909
909
  font-size: 12px;
910
910
  text-align: right;
911
- `,Ru=({title:r,subTitle:n,tooltip:o,value:i})=>t(Au,{children:[e(Fo,{$gap:4,children:t(ap,{text:o||"",children:[r&&e(Du,{children:r},"title"),n&&e(Tu,{children:n},"subtitle")]})}),e(Iu,{children:i?.status?e(iu,{status:"transitioning"===i.status?qr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(Nu,{children:i?.text||"-"})})]}),Ou=n(Fo)`
911
+ `,Ou=({title:r,subTitle:n,tooltip:o,value:i})=>t(Du,{children:[e(Lo,{$gap:4,children:t(sp,{text:o||"",children:[r&&e(Tu,{children:r},"title"),n&&e(Iu,{children:n},"subtitle")]})}),e(Nu,{children:i?.status?e(au,{status:"transitioning"===i.status?Jr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(Ru,{children:i?.text||"-"})})]}),_u=n(Lo)`
912
912
  width: 100%;
913
- `,_u=({containerName:r,actualDevices:n,started:o,ready:i,instrumentationInstances:a})=>{const s=Gt(()=>{const t=[];return o?.name&&t.push(e(iu,{status:si(o.value)?yi(o.value)?Vr.Success:Vr.Error:Vr.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(iu,{status:si(i.value)?yi(i.value)?Vr.Success:Vr.Error:Vr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[o?.name,o?.value,i?.name,i?.value]);return e(Eu,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(iu,{status:Vr.Info,title:"Instrumentation Device",subtitle:n.value&&"[]"!==n.value?n.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(Ou,{$gap:24,children:a.map((r,n)=>t(Ou,{$gap:8,children:[e(Ru,{title:`Instrumented Process #${n+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Vr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Ru,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${n}`))})}})},Pu=({title:r="Data not found",subTitle:n})=>{const o=i().v2.colors.grey[400];return t(Lo,{children:[t(Po,{$gap:8,children:[e(Et,{fill:o}),e(ho,{size:so.XS,color:o,align:"center",children:r})]}),n&&e(ho,{size:so.XXS,color:o,align:"center",children:n})]})},Fu=n(Fo)`
913
+ `,Pu=({containerName:r,actualDevices:n,started:o,ready:i,instrumentationInstances:a})=>{const s=Gt(()=>{const t=[];return o?.name&&t.push(e(au,{status:li(o.value)?xi(o.value)?Kr.Success:Kr.Error:Kr.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(au,{status:li(i.value)?xi(i.value)?Kr.Success:Kr.Error:Kr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[o?.name,o?.value,i?.name,i?.value]);return e(Au,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(au,{status:Kr.Info,title:"Instrumentation Device",subtitle:n.value&&"[]"!==n.value?n.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(_u,{$gap:24,children:a.map((r,n)=>t(_u,{$gap:8,children:[e(Ou,{title:`Instrumented Process #${n+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Kr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Ou,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${n}`))})}})},Fu=({title:r="Data not found",subTitle:n})=>{const o=i().v2.colors.grey[400];return t(zo,{children:[t(Fo,{$gap:8,children:[e(Et,{fill:o}),e(mo,{size:lo.XS,color:o,align:"center",children:r})]}),n&&e(mo,{size:lo.XXS,color:o,align:"center",children:n})]})},Lu=n(Lo)`
914
914
  max-width: 300px;
915
915
  padding: 12px;
916
916
  border-radius: 12px;
917
917
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
918
918
  justify-content: center;
919
- `,Lu=Yt(({id:t,data:r})=>{const{title:n,subTitle:o}=r;return e(Fu,{"data-id":t,children:e(Pu,{title:n,subTitle:o})})});Lu.displayName=Lu.name;const zu=n.div`
919
+ `,zu=Yt(({id:t,data:r})=>{const{title:n,subTitle:o}=r;return e(Lu,{"data-id":t,children:e(Fu,{title:n,subTitle:o})})});zu.displayName=zu.name;const Mu=n.div`
920
920
  padding: 6px;
921
921
  border-radius: 12px;
922
922
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
923
923
  cursor: pointer;
924
924
  ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
925
- `,Mu=n.div`
926
- position: relative;
927
925
  `,Bu=n.div`
926
+ position: relative;
927
+ `,Uu=n.div`
928
928
  position: absolute;
929
929
  top: 100%;
930
930
  margin-top: 4px;
@@ -936,12 +936,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
936
936
  gap: 2px;
937
937
  width: 140px;
938
938
  text-align: center;
939
- `,Uu=Yt(({id:n,data:o})=>{const{id:a,status:s,title:l,icons:c,isVirtual:d}=o,p=i(),u=d||s!==Vr.Error?null:Ko(s,p);return t(r,{children:[e(or,{type:"source",position:ir.Right,style:{visibility:"hidden"}}),e(or,{type:"target",position:ir.Left,style:{visibility:"hidden"}}),t(Mu,{"data-id":n,children:[e(zu,{$isVirtual:d,children:e(xu,{id:a,icons:c,status:d?void 0:s})}),t(Bu,{children:[u&&e(u,{}),e(Ti,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:l})]})]})]})});Uu.displayName=Uu.name;const ju={duration:300,padding:.1,includeHiddenNodes:!0},Wu=n.div`
939
+ `,ju=Yt(({id:n,data:o})=>{const{id:a,status:s,title:l,icons:c,isVirtual:d}=o,p=i(),u=d||s!==Kr.Error?null:qo(s,p);return t(r,{children:[e(ir,{type:"source",position:ar.Right,style:{visibility:"hidden"}}),e(ir,{type:"target",position:ar.Left,style:{visibility:"hidden"}}),t(Bu,{"data-id":n,children:[e(Mu,{$isVirtual:d,children:e(bu,{id:a,icons:c,status:d?void 0:s})}),t(Uu,{children:[u&&e(u,{}),e(Ii,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:l})]})]})]})});ju.displayName=ju.name;const Wu={duration:300,padding:.1,includeHiddenNodes:!0},Hu=n.div`
940
940
  height: 100%;
941
941
  .react-flow__attribution {
942
942
  visibility: hidden;
943
943
  }
944
- `,Hu=n.div`
944
+ `,Xu=n.div`
945
945
  button {
946
946
  padding: 8px;
947
947
  margin: 8px;
@@ -958,17 +958,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
958
958
  transform: scale(1.4);
959
959
  }
960
960
  }
961
- `,Xu={[Qr.MapItem]:Uu,[Qr.NoData]:Lu},Gu=({trigger:e})=>{const{fitView:t}=dr(),r=Vt(!0);return Xt(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(ju))},[e,t]),null},Vu=({nodes:r,edges:n,onNodesChange:o,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=id(),{setActiveNodeType:h,setActiveNodeId:m}=Ki();return t(sr,{zoomOnScroll:s,nodes:r,nodeTypes:Xu,edges:n,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:o,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(Gu,{trigger:a}),e(Hu,{children:e(lr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:ju,children:p&&e(cr,{onClick:p,children:e(At,{size:20})})})})]})},Ku=t=>e(Wu,{children:e(ar,{children:e(Vu,{...t})})}),qu={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},Ju=Jt(null),Yu="All row fields are required",Qu="At least one row is required",Zu=An.LATENCY_HTTP_ROUTE,eh=e=>"string"==typeof e?!e.trim():oi(e),th=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!eh(r)}),rh=({children:t})=>{const[r,n]=Ht(null),[o,i]=Ht(void 0),a=td(qu),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),n(e)},[]),l=Kt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:n,signals:o,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!n,signals:o??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),n((t=e.type,qi.find(e=>e.type===t)??Ji.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:wr(qu)};const e=(e=>{const t=wr(e),r=t.fields||{},n=r[Ir.UrlTemplatizationRulesGroups];n?.length&&(r[Ir.UrlTemplatizationRulesGroups]=n.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const o=r[Ir.AttributeNamesToDelete];o?.length&&(r[Ir.AttributeNamesToDelete]=o.filter(e=>!!e?.trim()));const i=r[Ir.Renames];return i&&(r[Ir.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};oi(e.signals)&&(t.signals=An.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const n={},o=t.fields||{},i=r.fields||{};switch(e){case Tr.K8sAttributes:{const e=!(o[Ir.CollectContainerAttributes]||o[Ir.CollectReplicaSetAttributes]||o[Ir.CollectWorkloadId]||o[Ir.CollectClusterId]),t=!o[Ir.LabelsAttributes]?.length,r=!o[Ir.AnnotationsAttributes]?.length;e&&t&&r&&(n[Ir.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=o[Ir.LabelsAttributes];i?.some(e=>!th(e,["labelKey","attributeKey","fromSources"]))&&(n[Ir.LabelsAttributes]=Yu);const a=o[Ir.AnnotationsAttributes];a?.some(e=>!th(e,["annotationKey","attributeKey","fromSources"]))&&(n[Ir.AnnotationsAttributes]=Yu);break}case Tr.AddClusterInfo:{const e=o[Ir.ClusterAttributes];e?.length?e.some(e=>!th(e,["attributeName","attributeStringValue"]))&&(n[Ir.ClusterAttributes]=Yu):n[Ir.ClusterAttributes]=Qu;break}case Tr.DeleteAttributes:{const e=i[Ir.AttributeNamesToDelete]||[],t=o[Ir.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(n[Ir.AttributeNamesToDelete]=Yu):n[Ir.AttributeNamesToDelete]=e.length?Yu:Qu;break}case Tr.RenameAttributes:{const e=Object.entries(i[Ir.Renames]||{}),t=Object.entries(o[Ir.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(n[Ir.Renames]=Yu):n[Ir.Renames]=e.length?Yu:Qu;break}case Tr.PiiMasking:{const e=o[Ir.PiiCategories];e?.length||(n[Ir.PiiCategories]="Select at least one attribute to mask");break}case Tr.ErrorSampler:eh(o[Ir.FallbackSamplingRatio])&&(n[Ir.FallbackSamplingRatio]=An.FIELD_IS_REQUIRED);break;case Tr.ProbabilisticSampler:eh(o[Ir.SamplingPercentage])&&(n[Ir.SamplingPercentage]=An.FIELD_IS_REQUIRED);break;case Tr.LatencySampler:{const e=o[Ir.EndpointsFilters];e?.length?e.some(e=>!th(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?n[Ir.EndpointsFilters]=Yu:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(n[Ir.EndpointsFilters]=Zu):n[Ir.EndpointsFilters]=Qu;break}case Tr.ServiceNameSampler:{const e=o[Ir.ServicesNameFilters];e?.length?e.some(e=>!th(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(n[Ir.ServicesNameFilters]=Yu):n[Ir.ServicesNameFilters]=Qu;break}case Tr.SpanAttributeSampler:{const e=o[Ir.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!th(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const n=e.condition||{},o=t.find(e=>!!n[e]);if(!o)return!0;const i=n[o]||{},a=i.operation;return!a||!(r.has(a)||!eh(i.expectedValue))})&&(n[Ir.AttributeFilters]=Yu):n[Ir.AttributeFilters]=Qu;break}case Tr.URLTemplatization:{const e=o[Ir.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(n[Ir.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return n})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const n=Object.keys(t).length>0?"Invalid form values":void 0;return i(n),{errorMessage:n,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:o}),[r,s,l,a,c,o]);return e(Ju.Provider,{value:d,children:t})},nh=()=>{const e=qt(Ju);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},oh={name:""},ih=Jt(null),ah=({children:t,defaultExcludeName:r=""})=>{const{dataStreams:n}=vc(),[o,i]=Ht(void 0),[a,s]=Ht(r),[l,c]=Ht(void 0),[d,p]=Ht(null),u=Vt(null),h=td(oh),m=Kt(e=>{h.resetFormData({name:e}),h.handleErrorChange(void 0,void 0,{}),i(void 0),s(e),c(e),p(null),u.current=null},[]),g=Kt(()=>{const e=wr(h.formData),t=(e=>{const t={};return e.name?ii(e.name)||(t.name=An.ILLEGAL_K8S_LABEL):t.name=An.FIELD_IS_REQUIRED,t})(e);h.handleErrorChange(void 0,void 0,t);const r=Object.keys(t).length>0?An.REQUIRED_FIELDS:void 0;return i(r),{errorMessage:r,preparedFormData:e}},[h]),f=Kt(async e=>{const{errorMessage:t,preparedFormData:r}=g();if(t)return;const o=n.find(e=>e.name===r.name&&e.name!==a);if(o)return u.current=e,void p({preparedFormData:r,existingName:o.name,editingName:l});await e(r)},[g,n,a,l]),y=Kt(async()=>{const e=u.current,t=d?.preparedFormData;u.current=null,p(null),e&&t&&await e(t)},[d]),x=Kt(()=>{u.current=null,p(null)},[]),b=Gt(()=>({genericForm:h,loadDataStream:m,editingName:l,validateFormData:g,requestSubmit:f,pendingMerge:d,confirmMerge:y,cancelMerge:x,errorMessage:o,excludeName:a,setExcludeName:s}),[h,m,l,g,f,d,y,x,o,a]);return e(ih.Provider,{value:b,children:t})},sh=()=>{const e=qt(ih);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},lh={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[]},ch={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:wr(lh)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},dh=Jt(ch),ph=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:o,initialValue:i,renderCondition:a}=e,s=r===Xr.Dropdown,l=ti(n,{});return{componentType:r,renderCondition:a,name:t,title:o,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}}),uh=({children:t})=>{const{selectedStreamName:r}=vc(),n=wc(e=>e.destinations),[o,i]=Ht(null),[a,s]=Ht(),[l,c]=Ht(ch.unsavedDestinations),d=Gt(()=>"number"==typeof o?.unsavedIdx?l[o.unsavedIdx]:void 0,[o,l]),p=Kt((e,t)=>{o&&(c(t=>[...t,{...e,option:o.option}]),i(t?e=>e?{...e,listType:Qi.UNSAVED,unsavedIdx:l.length}:null:null))},[o,l.length]),u=Kt((e,t,r)=>{o&&(c(r=>r.map((r,n)=>n===e?{...r,...t,option:o.option}:r)),i(r?e=>e?{...e,listType:Qi.UNSAVED}:null:null))},[o]),h=Kt(e=>{c(t=>t.filter((t,r)=>r!==e)),i(null)},[]),m=td({...lh,currentStreamName:r});Xt(()=>{if(!o)return;if(d)return void m.resetFormData({...d.formData});if(o.listType===Qi.EXISTS&&o.option.id){const e=n.find(e=>e.id===o.option.id);if(e)return void m.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,profiles:!!e.exportedSignals?.profiles},fields:o.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=gi(o.option.supportedSignals);m.resetFormData({type:o.option.type,name:o.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(gn.Logs),metrics:e.includes(gn.Metrics),traces:e.includes(gn.Traces),profiles:e.includes(gn.Profiles)},fields:o.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[o,d]);const g=Kt(e=>{m.resetFormData(),m.handleErrorChange(void 0,void 0,{}),s(void 0),i(e?{...e,dynamicFields:e.option?.fields?ph(e.option.fields):[]}:null)},[]),f=Kt((e,t)=>{let r;for(const n of t){const t=n.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const n=ti(e.fields,{}),o={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:n[e.name]??e.initialValue})):[]},a=ph(o.fields);i({listType:Qi.EXISTS,option:o,dynamicFields:a}),s(void 0)},[]),y=Kt(()=>{const e=wr(m.formData),t={};o?.dynamicFields.forEach(({name:r,required:n})=>{if(n){const n=e.fields.find(e=>e.key===r)?.value;oi(n)&&(t[r]=An.FIELD_IS_REQUIRED)}});mi(e.exportedSignals).length||(t.exportedSignals=An.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return m.handleErrorChange(void 0,void 0,t),s(r),{errorMessage:r,preparedFormData:e}},[m,o]);return e(dh.Provider,{value:{activeForm:o,onChangeActiveForm:g,loadDestination:f,genericForm:m,formErrorMessage:a,validateFormData:y,unsavedDestinations:l,thisUnsavedDestination:d,setUnsavedDestinations:c,addUnsavedDestination:p,updateUnsavedDestination:u,deleteUnsavedDestination:h},children:t})},hh=()=>qt(dh),mh={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},gh=Jt(null),fh=({children:t})=>{const[r,n]=Ht(null),[o,i]=Ht(void 0),a=td(mh),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),n(e)},[]),l=Kt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:n,instrumentationLibraries:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:n??null,instrumentationLibraries:o??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),n((t=e.type,ea.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:wr(mh)};const e=(e=>{const t=wr(e);return t.headersCollection?.[ln.HeaderKeys]?.length&&(t.headersCollection[ln.HeaderKeys]=t.headersCollection[ln.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[cn.Golang]?.length&&(t.customInstrumentations[cn.Golang]=t.customInstrumentations[cn.Golang].map(e=>new xn(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?.[cn.Java]?.length&&(t.customInstrumentations[cn.Java]=t.customInstrumentations[cn.Java].map(e=>new yn(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 an.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case an.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case an.HeadersCollection:t.headersCollection?.[ln.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case an.CustomInstrumentation:{const e=t.customInstrumentations?.[cn.Golang]||[],n=t.customInstrumentations?.[cn.Java]||[];if(!e.length&&!n.length){r.customInstrumentations="Custom instrumentation are required";break}const o=e.findIndex(e=>!new xn(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==o){r.customInstrumentations=`Golang probe #${o+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=n.findIndex(e=>!new yn(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 n=Object.keys(t).length>0?"Invalid form values":void 0;return i(n),{errorMessage:n,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:o}),[r,s,l,a,c,o]);return e(gh.Provider,{value:d,children:t})},yh=()=>{const e=qt(gh);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function xh(e){return!e||!e.sources.length&&!e.namespaces.length&&!e.languages.length}function bh(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:{sources:[],namespaces:[],languages:[]},operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function vh(e){return xh(e.sourceScopes)?null:e.sourceScopes}function $h(e){return vh(e)}function wh(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 Sh(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function kh(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function Ch(e){return"all"===e.operationType?null:"httpServer"===e.operationType?kh(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Eh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?kh(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Ah(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:vh(e),percentageAtMost:wh(e),operation:Ch(e)}}function Dh(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:vh(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?Sh(e):null,percentageAtLeast:wh(e),operation:Eh(e)}}function Th(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:vh(e),percentageAtMost:wh(e)??0,operation:Eh(e)}}function Ih(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:$h(e),operation:Ch(e),percentageAtMost:wh(e),notes:e.notes||null}}function Nh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:$h(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?Sh(e):null,operation:Eh(e),percentageAtLeast:wh(e),notes:e.notes||null}}function Rh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:$h(e),operation:Eh(e),percentageAtMost:wh(e)??0,notes:e.notes||null}}const Oh=["5000","1000","500","100","50"],_h=["50","25","10","1","0.5","0.1","0"];function Ph(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=_h.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function Fh(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 Lh(e){const t=bh(),r=(n=e.rule.sourceScopes)?{sources:n.sources?[...n.sources]:[],namespaces:n.namespaces?[...n.namespaces]:[],languages:n.languages?[...n.languages]:[]}:{sources:[],namespaces:[],languages:[]};var n;const o=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=Ph(e.rule.percentageAtMost);break;case"highlyRelevant":i=Fh(e.rule.operation),a=Ph(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=Oh.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=Fh(e.rule.operation),a=Ph(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:o,sourceScopes:r,...i,...s,keepErrors:l,...a}}var zh;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(zh||(zh={}));const Mh=[zh.Action,zh.Endpoint,zh.Scope,zh.Duration],Bh=n.span`
961
+ `,Gu={[Zr.MapItem]:ju,[Zr.NoData]:zu},Vu=({trigger:e})=>{const{fitView:t}=pr(),r=Vt(!0);return Xt(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(Wu))},[e,t]),null},Ku=({nodes:r,edges:n,onNodesChange:o,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=ad(),{setActiveNodeType:h,setActiveNodeId:m}=qi();return t(lr,{zoomOnScroll:s,nodes:r,nodeTypes:Gu,edges:n,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:o,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(Vu,{trigger:a}),e(Xu,{children:e(cr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Wu,children:p&&e(dr,{onClick:p,children:e(At,{size:20})})})})]})},qu=t=>e(Hu,{children:e(sr,{children:e(Ku,{...t})})}),Ju={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},Yu=Jt(null),Qu="All row fields are required",Zu="At least one row is required",eh=Dn.LATENCY_HTTP_ROUTE,th=e=>"string"==typeof e?!e.trim():ii(e),rh=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!th(r)}),nh=({children:t})=>{const[r,n]=Ht(null),[o,i]=Ht(void 0),a=rd(Ju),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),n(e)},[]),l=Kt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:n,signals:o,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!n,signals:o??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),n((t=e.type,Ji.find(e=>e.type===t)??Yi.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:Sr(Ju)};const e=(e=>{const t=Sr(e),r=t.fields||{},n=r[Nr.UrlTemplatizationRulesGroups];n?.length&&(r[Nr.UrlTemplatizationRulesGroups]=n.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const o=r[Nr.AttributeNamesToDelete];o?.length&&(r[Nr.AttributeNamesToDelete]=o.filter(e=>!!e?.trim()));const i=r[Nr.Renames];return i&&(r[Nr.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};ii(e.signals)&&(t.signals=Dn.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const n={},o=t.fields||{},i=r.fields||{};switch(e){case Ir.K8sAttributes:{const e=!(o[Nr.CollectContainerAttributes]||o[Nr.CollectReplicaSetAttributes]||o[Nr.CollectWorkloadId]||o[Nr.CollectClusterId]),t=!o[Nr.LabelsAttributes]?.length,r=!o[Nr.AnnotationsAttributes]?.length;e&&t&&r&&(n[Nr.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=o[Nr.LabelsAttributes];i?.some(e=>!rh(e,["labelKey","attributeKey","fromSources"]))&&(n[Nr.LabelsAttributes]=Qu);const a=o[Nr.AnnotationsAttributes];a?.some(e=>!rh(e,["annotationKey","attributeKey","fromSources"]))&&(n[Nr.AnnotationsAttributes]=Qu);break}case Ir.AddClusterInfo:{const e=o[Nr.ClusterAttributes];e?.length?e.some(e=>!rh(e,["attributeName","attributeStringValue"]))&&(n[Nr.ClusterAttributes]=Qu):n[Nr.ClusterAttributes]=Zu;break}case Ir.DeleteAttributes:{const e=i[Nr.AttributeNamesToDelete]||[],t=o[Nr.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(n[Nr.AttributeNamesToDelete]=Qu):n[Nr.AttributeNamesToDelete]=e.length?Qu:Zu;break}case Ir.RenameAttributes:{const e=Object.entries(i[Nr.Renames]||{}),t=Object.entries(o[Nr.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(n[Nr.Renames]=Qu):n[Nr.Renames]=e.length?Qu:Zu;break}case Ir.PiiMasking:{const e=o[Nr.PiiCategories];e?.length||(n[Nr.PiiCategories]="Select at least one attribute to mask");break}case Ir.ErrorSampler:th(o[Nr.FallbackSamplingRatio])&&(n[Nr.FallbackSamplingRatio]=Dn.FIELD_IS_REQUIRED);break;case Ir.ProbabilisticSampler:th(o[Nr.SamplingPercentage])&&(n[Nr.SamplingPercentage]=Dn.FIELD_IS_REQUIRED);break;case Ir.LatencySampler:{const e=o[Nr.EndpointsFilters];e?.length?e.some(e=>!rh(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?n[Nr.EndpointsFilters]=Qu:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(n[Nr.EndpointsFilters]=eh):n[Nr.EndpointsFilters]=Zu;break}case Ir.ServiceNameSampler:{const e=o[Nr.ServicesNameFilters];e?.length?e.some(e=>!rh(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(n[Nr.ServicesNameFilters]=Qu):n[Nr.ServicesNameFilters]=Zu;break}case Ir.SpanAttributeSampler:{const e=o[Nr.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!rh(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const n=e.condition||{},o=t.find(e=>!!n[e]);if(!o)return!0;const i=n[o]||{},a=i.operation;return!a||!(r.has(a)||!th(i.expectedValue))})&&(n[Nr.AttributeFilters]=Qu):n[Nr.AttributeFilters]=Zu;break}case Ir.URLTemplatization:{const e=o[Nr.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(n[Nr.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return n})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const n=Object.keys(t).length>0?"Invalid form values":void 0;return i(n),{errorMessage:n,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:o}),[r,s,l,a,c,o]);return e(Yu.Provider,{value:d,children:t})},oh=()=>{const e=qt(Yu);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},ih={name:""},ah=Jt(null),sh=({children:t,defaultExcludeName:r=""})=>{const{dataStreams:n}=$c(),[o,i]=Ht(void 0),[a,s]=Ht(r),[l,c]=Ht(void 0),[d,p]=Ht(null),u=Vt(null),h=rd(ih),m=Kt(e=>{h.resetFormData({name:e}),h.handleErrorChange(void 0,void 0,{}),i(void 0),s(e),c(e),p(null),u.current=null},[]),g=Kt(()=>{const e=Sr(h.formData),t=(e=>{const t={};return e.name?ai(e.name)||(t.name=Dn.ILLEGAL_K8S_LABEL):t.name=Dn.FIELD_IS_REQUIRED,t})(e);h.handleErrorChange(void 0,void 0,t);const r=Object.keys(t).length>0?Dn.REQUIRED_FIELDS:void 0;return i(r),{errorMessage:r,preparedFormData:e}},[h]),f=Kt(async e=>{const{errorMessage:t,preparedFormData:r}=g();if(t)return;const o=n.find(e=>e.name===r.name&&e.name!==a);if(o)return u.current=e,void p({preparedFormData:r,existingName:o.name,editingName:l});await e(r)},[g,n,a,l]),y=Kt(async()=>{const e=u.current,t=d?.preparedFormData;u.current=null,p(null),e&&t&&await e(t)},[d]),x=Kt(()=>{u.current=null,p(null)},[]),b=Gt(()=>({genericForm:h,loadDataStream:m,editingName:l,validateFormData:g,requestSubmit:f,pendingMerge:d,confirmMerge:y,cancelMerge:x,errorMessage:o,excludeName:a,setExcludeName:s}),[h,m,l,g,f,d,y,x,o,a]);return e(ah.Provider,{value:b,children:t})},lh=()=>{const e=qt(ah);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},ch={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[]},dh={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:Sr(ch)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},ph=Jt(dh),uh=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:o,initialValue:i,renderCondition:a}=e,s=r===Gr.Dropdown,l=ri(n,{});return{componentType:r,renderCondition:a,name:t,title:o,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}}),hh=({children:t})=>{const{selectedStreamName:r}=$c(),n=Sc(e=>e.destinations),[o,i]=Ht(null),[a,s]=Ht(),[l,c]=Ht(dh.unsavedDestinations),d=Gt(()=>"number"==typeof o?.unsavedIdx?l[o.unsavedIdx]:void 0,[o,l]),p=Kt((e,t)=>{o&&(c(t=>[...t,{...e,option:o.option}]),i(t?e=>e?{...e,listType:Zi.UNSAVED,unsavedIdx:l.length}:null:null))},[o,l.length]),u=Kt((e,t,r)=>{o&&(c(r=>r.map((r,n)=>n===e?{...r,...t,option:o.option}:r)),i(r?e=>e?{...e,listType:Zi.UNSAVED}:null:null))},[o]),h=Kt(e=>{c(t=>t.filter((t,r)=>r!==e)),i(null)},[]),m=rd({...ch,currentStreamName:r});Xt(()=>{if(!o)return;if(d)return void m.resetFormData({...d.formData});if(o.listType===Zi.EXISTS&&o.option.id){const e=n.find(e=>e.id===o.option.id);if(e)return void m.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,profiles:!!e.exportedSignals?.profiles},fields:o.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=fi(o.option.supportedSignals);m.resetFormData({type:o.option.type,name:o.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(fn.Logs),metrics:e.includes(fn.Metrics),traces:e.includes(fn.Traces),profiles:e.includes(fn.Profiles)},fields:o.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[o,d]);const g=Kt(e=>{m.resetFormData(),m.handleErrorChange(void 0,void 0,{}),s(void 0),i(e?{...e,dynamicFields:e.option?.fields?uh(e.option.fields):[]}:null)},[]),f=Kt((e,t)=>{let r;for(const n of t){const t=n.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const n=ri(e.fields,{}),o={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:n[e.name]??e.initialValue})):[]},a=uh(o.fields);i({listType:Zi.EXISTS,option:o,dynamicFields:a}),s(void 0)},[]),y=Kt(()=>{const e=Sr(m.formData),t={};o?.dynamicFields.forEach(({name:r,required:n})=>{if(n){const n=e.fields.find(e=>e.key===r)?.value;ii(n)&&(t[r]=Dn.FIELD_IS_REQUIRED)}});gi(e.exportedSignals).length||(t.exportedSignals=Dn.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return m.handleErrorChange(void 0,void 0,t),s(r),{errorMessage:r,preparedFormData:e}},[m,o]);return e(ph.Provider,{value:{activeForm:o,onChangeActiveForm:g,loadDestination:f,genericForm:m,formErrorMessage:a,validateFormData:y,unsavedDestinations:l,thisUnsavedDestination:d,setUnsavedDestinations:c,addUnsavedDestination:p,updateUnsavedDestination:u,deleteUnsavedDestination:h},children:t})},mh=()=>qt(ph),gh={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},fh=Jt(null),yh=({children:t})=>{const[r,n]=Ht(null),[o,i]=Ht(void 0),a=rd(gh),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),n(e)},[]),l=Kt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:n,instrumentationLibraries:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:n??null,instrumentationLibraries:o??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),n((t=e.type,ta.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:Sr(gh)};const e=(e=>{const t=Sr(e);return t.headersCollection?.[cn.HeaderKeys]?.length&&(t.headersCollection[cn.HeaderKeys]=t.headersCollection[cn.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[dn.Golang]?.length&&(t.customInstrumentations[dn.Golang]=t.customInstrumentations[dn.Golang].map(e=>new bn(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?.[dn.Java]?.length&&(t.customInstrumentations[dn.Java]=t.customInstrumentations[dn.Java].map(e=>new xn(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 sn.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case sn.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case sn.HeadersCollection:t.headersCollection?.[cn.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case sn.CustomInstrumentation:{const e=t.customInstrumentations?.[dn.Golang]||[],n=t.customInstrumentations?.[dn.Java]||[];if(!e.length&&!n.length){r.customInstrumentations="Custom instrumentation are required";break}const o=e.findIndex(e=>!new bn(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==o){r.customInstrumentations=`Golang probe #${o+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=n.findIndex(e=>!new xn(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 n=Object.keys(t).length>0?"Invalid form values":void 0;return i(n),{errorMessage:n,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:o}),[r,s,l,a,c,o]);return e(fh.Provider,{value:d,children:t})},xh=()=>{const e=qt(fh);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function bh(e){return!e||!e.sources.length&&!e.namespaces.length&&!e.languages.length}function vh(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:{sources:[],namespaces:[],languages:[]},operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function $h(e){return bh(e.sourceScopes)?null:e.sourceScopes}function wh(e){return $h(e)}function Sh(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 kh(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function Ch(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function Eh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?Ch(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Ah(e){return"all"===e.operationType?null:"httpServer"===e.operationType?Ch(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Dh(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:$h(e),percentageAtMost:Sh(e),operation:Eh(e)}}function Th(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:$h(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?kh(e):null,percentageAtLeast:Sh(e),operation:Ah(e)}}function Ih(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:$h(e),percentageAtMost:Sh(e)??0,operation:Ah(e)}}function Nh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:wh(e),operation:Eh(e),percentageAtMost:Sh(e),notes:e.notes||null}}function Rh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:wh(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?kh(e):null,operation:Ah(e),percentageAtLeast:Sh(e),notes:e.notes||null}}function Oh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:wh(e),operation:Ah(e),percentageAtMost:Sh(e)??0,notes:e.notes||null}}const _h=["5000","1000","500","100","50"],Ph=["50","25","10","1","0.5","0.1","0"];function Fh(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=Ph.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function Lh(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 zh(e){const t=vh(),r=(n=e.rule.sourceScopes)?{sources:n.sources?[...n.sources]:[],namespaces:n.namespaces?[...n.namespaces]:[],languages:n.languages?[...n.languages]:[]}:{sources:[],namespaces:[],languages:[]};var n;const o=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=Fh(e.rule.percentageAtMost);break;case"highlyRelevant":i=Lh(e.rule.operation),a=Fh(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=_h.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=Lh(e.rule.operation),a=Fh(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:o,sourceScopes:r,...i,...s,keepErrors:l,...a}}var Mh;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Mh||(Mh={}));const Bh=[Mh.Action,Mh.Endpoint,Mh.Scope,Mh.Duration],Uh=n.span`
962
962
  font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
963
963
  font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
964
964
  line-height: 20px;
965
965
  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]}}};
966
- `,Uh=n.span`
966
+ `,jh=n.span`
967
967
  display: inline;
968
968
  cursor: help;
969
969
  text-decoration: underline dotted;
970
970
  text-underline-offset: 3px;
971
- `,jh=n.div`
971
+ `,Wh=n.div`
972
972
  display: flex;
973
973
  flex-direction: column;
974
974
  gap: 4px;
@@ -976,13 +976,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
976
976
  border-radius: 4px;
977
977
  padding: 8px;
978
978
  max-width: 300px;
979
- `,Wh=({items:r,children:n})=>{const{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=$d({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(Uh,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[n,e(Zd,{ref:o,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(jh,{children:r.map((t,r)=>e(ho,{size:so.XXXS,children:t},r))})})]})},Hh=({parts:n})=>e(r,{children:n.map((n,o)=>{const i=e(Bh,{$variant:n.variant,$isMono:Mh.includes(n.variant),children:n.text});return t(Wt,{children:[0!==o&&e(r,{children:" "}),n.tooltipItems?.length?e(Wh,{items:n.tooltipItems,children:i}):i]},`${n.variant}-${o}`)})});var Xh;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(Xh||(Xh={}));const Gh=[{value:Xh.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:Xh.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:Xh.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],Vh={[Xh.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[Xh.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[Xh.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},Kh={[Xh.Noisy]:"Noisy Operations rules list",[Xh.HighlyRelevant]:"Highly Relevant Operations rules list",[Xh.CostReduction]:"Cost Reduction rules list"},qh={[Xh.Noisy]:"noisy",[Xh.HighlyRelevant]:"highlyRelevant",[Xh.CostReduction]:"costReduction"};function Jh(e){const t=e.kind?String(e.kind).toLowerCase():"deployment";return e.namespace&&e.name?`${t} '${e.name}' in namespace '${e.namespace}'`:e.name?`${t} '${e.name}'`:e.namespace?`namespace '${e.namespace}'`:""}function Yh(e){return`namespace '${e}'`}function Qh(e){return`${e} services`}function Zh(e){const t=function(e){if(!e)return[];const t=[];for(const r of e.sources??[]){const e=Jh(r);e&&t.push(e)}for(const r of e.namespaces??[])r&&t.push(Yh(r));for(const r of e.languages??[])r&&t.push(Qh(r));return t}(e);if(!t.length)return[{text:" for ",variant:zh.Default},{text:"all services in the cluster",variant:zh.Scope}];const r=[{text:" for ",variant:zh.Default}],n=t.slice(0,2),o=t.slice(2);return n.forEach((e,t)=>{t>0&&r.push({text:", ",variant:zh.Default}),r.push({text:e,variant:zh.Scope})}),o.length>0&&r.push({text:` + ${o.length} more`,variant:zh.Default,tooltipItems:o}),r}function em(e,t){if(!e)return[];const r=(n=e).startsWith("/")?n.slice(1):n;var n;const o=[{text:" starting at ",variant:zh.Default}];return t?o.push({text:`${t} /${r}`,variant:zh.Endpoint}):o.push({text:`endpoint /${r}`,variant:zh.Endpoint}),o}function tm(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:zh.Action}),t.push({text:" of traces",variant:zh.Default})):t.push({text:"Drop all traces",variant:zh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...em(r,n));const o=e.operation.httpClient,i=o?.templatedPath||o?.templatedPathPrefix,a=o?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:zh.Default}),n?t.push({text:`${n} /${e}`,variant:zh.Endpoint}):t.push({text:`/${e}`,variant:zh.Endpoint})}}else t.push({text:" on ",variant:zh.Default}),t.push({text:"any operation",variant:zh.Endpoint});return t.push(...Zh(e.sourceScopes)),t}function rm(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:zh.Action}),t.push({text:" of traces",variant:zh.Default})):t.push({text:"Keep all traces",variant:zh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method;t.push(...em(r,n))}else t.push({text:" on ",variant:zh.Default}),t.push({text:"any operation",variant:zh.Endpoint});return t.push(...Zh(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:zh.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:zh.Duration})),t}function nm(e){const t=[];if(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:zh.Action}),t.push({text:" of traces",variant:zh.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method;t.push(...em(r,n));const o=e.operation.kafkaConsumer?.kafkaTopic;o&&!r&&(t.push({text:" from ",variant:zh.Default}),t.push({text:`topic '${o}'`,variant:zh.Endpoint}))}else t.push({text:" on ",variant:zh.Default}),t.push({text:"any operation",variant:zh.Endpoint});return t.push(...Zh(e.sourceScopes)),t}function om(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function im(e,t,r){const n=qh[t],o=[];for(const i of e)switch(t){case Xh.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:tm(e),category:n});break;case Xh.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:rm(e),category:n,typeBadge:om(e)});break;case Xh.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:nm(e),category:n})}return o}function am(e,t){switch(e){case"noisy":return tm(t);case"highlyRelevant":return rm(t);case"costReduction":return nm(t)}}function sm(e,t,r,n){for(const o of e)if(o.id===t)switch(n){case"noisy":{const e=o.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:o.id,rule:e};break}case"highlyRelevant":{const e=o.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:o.id,rule:e};break}case"costReduction":{const e=o.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:o.id,rule:e};break}}return null}function lm(e,t){const r=sm(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:am(r.category,r.rule)}:null}function cm(e,t){const r=sm(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function dm(e){if(!e)return null;const t=(e.sources??[]).map(e=>`${e.namespace}/${e.kind}/${e.name}`).sort(),r=(e.namespaces??[]).slice().sort(),n=(e.languages??[]).slice().sort();return t.length||r.length||n.length?[t.join("|"),r.join("|"),n.join("|")].join("::"):null}function pm(e){return null==e?null:e}function um(e,t){return JSON.stringify({sourceScopes:dm(e),operation:pm(t)})}function hm(e,t,r,n){return JSON.stringify({sourceScopes:dm(e),error:t??!1,durationAtLeastMs:(o=r,null==o?null:o),operation:pm(n)});var o}function mm(e,t){return JSON.stringify({sourceScopes:dm(e),operation:pm(t)})}function gm(e,t,r,n){switch(t){case"noisy":{const t=um(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!n||e.ruleId!==n)&&um(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=hm(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!n||e.ruleId!==n)&&hm(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=mm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!n||e.ruleId!==n)&&mm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function fm(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:zh.Default},{text:"disabled",variant:zh.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:zh.Action},{text:" of ",variant:zh.Default},{text:"traces for kubelet health probes in the entire cluster",variant:zh.Scope}]}function ym(e){return!0===e.error&&xh(e.sourceScopes)&&!e.operation&&(null==e.percentageAtLeast||100===e.percentageAtLeast)}function xm(e){for(const t of e){const e=t.highlyRelevantOperations.find(ym);if(e)return{rule:e,samplingId:t.id}}return null}function bm(e){return!e||e.disabled?[{text:"Auto rule is ",variant:zh.Default},{text:"disabled",variant:zh.Action}]:[{text:"Keep all traces",variant:zh.Action},{text:" of ",variant:zh.Default},{text:"error traces across the entire cluster",variant:zh.Scope}]}function vm(e){return xh(e.sourceScopes)&&!e.operation}function $m(e){for(const t of e){const e=t.costReductionRules.find(vm);if(e)return{rule:e,samplingId:t.id}}return null}function wm(e){return!e||e.disabled?[{text:" is ",variant:zh.Default},{text:"disabled",variant:zh.Action}]:[{text:`Drop ${100-e.percentageAtMost}%`,variant:zh.Action},{text:" of ",variant:zh.Default},{text:"traces across the entire cluster",variant:zh.Scope}]}var Sm;!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"}(Sm||(Sm={}));const km=Jt(null),Cm=["50","25","10","1"];function Em(e){const t=String(e);return Cm.includes(t)?t:"custom"}const Am=({category:t,sourceOptions:r=[],namespaceOptions:n=[],children:o})=>{const{formData:i,handleFormChange:a,resetFormData:s}=td(bh(t)),[l,c]=Ht(null);Xt(()=>{s(bh(t)),c(null)},[t]);const d=Kt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Kt(()=>{s(bh(t)),c(null)},[t,s]),u=Gt(()=>({formType:Sm.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:n}),[t,i,d,p,l,r,n]);return e(km.Provider,{value:u,children:o})},Dm=({data:t,defaultEditMode:r,sourceOptions:n=[],namespaceOptions:o=[],children:i})=>{const[a,s]=Ht(!1),{formData:l,handleFormChange:c,resetFormData:d}=td(void 0),p=Vt(null),[u,h]=Ht(null);Xt(()=>{t!==p.current&&(p.current=t,t&&r?(d(Lh(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Kt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Kt(()=>{t&&(d(Lh(t)),h(null),s(!0))},[t,d]),f=Kt(()=>{s(!1),h(null)},[]),y=Gt(()=>({formType:Sm.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:n,namespaceOptions:o}),[t,a,l,m,g,f,u,n,o]);return e(km.Provider,{value:y,children:i})};function Tm(e){const[t,r]=Ht(()=>0===e?"all":"sample"),[n,o]=Ht(()=>Em(e)),[i,a]=Ht(()=>"custom"===Em(e)?String(e):"");Xt(()=>{r(0===e?"all":"sample");const t=Em(e);o(t),a("custom"===t?String(e):"")},[e]);const s=Gt(()=>"all"===t?0:"custom"===n?Number(i)||0:Number(n),[t,n,i]);return{percentageMode:t,setPercentageMode:r,percentagePreset:n,setPercentagePreset:o,customPercentage:i,setCustomPercentage:a,resolvedPercentage:s}}const Im=({enabled:t,keepPercentage:r,children:n})=>{const[o,i]=Ht(t),a=Tm(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>fm({enabled:o,keepPercentage:a.resolvedPercentage}),[o,a.resolvedPercentage]),l=Gt(()=>({formType:Sm.EditAutoNoisy,localEnabled:o,setLocalEnabled:i,...a,summary:s}),[o,a,s]);return e(km.Provider,{value:l,children:n})},Nm=({enabled:t,dropPercentage:r,children:n})=>{const[o,i]=Ht(t),a=Tm(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>wm(o?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[o,a.resolvedPercentage]),l=Gt(()=>({formType:Sm.EditAutoCostReduction,localEnabled:o,setLocalEnabled:i,...a,summary:s}),[o,a,s]);return e(km.Provider,{value:l,children:n})},Rm=({enabled:t,children:r})=>{const[n,o]=Ht(t);Xt(()=>{o(t)},[t]);const i=Gt(()=>bm(n?{disabled:!1}:null),[n]),a=Gt(()=>({formType:Sm.EditAutoHighlyRelevant,localEnabled:n,setLocalEnabled:o,summary:i}),[n,i]);return e(km.Provider,{value:a,children:r})},Om=t=>{switch(t.formType){case Sm.Create:return e(Am,{...t});case Sm.View:return e(Dm,{...t});case Sm.EditAutoNoisy:return e(Im,{...t});case Sm.EditAutoCostReduction:return e(Nm,{...t});case Sm.EditAutoHighlyRelevant:return e(Rm,{...t})}};function _m(e){const t=qt(km);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 Pm=Jt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Fm=({children:t,selectedConnectionIds:r,initialInputs:n})=>{const{tier:o}=Dd(),i=o===zr.Onprem,{selectedStreamName:a}=vc(),[s,l]=Ht(!1),[c,d]=Ht(null),[p,u]=Ht([]);Xt(()=>{c&&u(e=>{const t=((e,t)=>wr(((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),o=r??t;if(n?.[t.clusterId]){const e=n[t.clusterId],r=wr(o);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=>{Td.has(e.kind)&&!i||(e.selected=!0)})}),r}return o})})},[c,r,n]);const{formDiff:h,isFormDirty:m}=Gt(()=>{const e=((e,t,r)=>{const n={};return e.forEach(e=>{e.namespaces.forEach(o=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===o.name),a=o.selected||!1;if(a!==i?.selected)n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push({namespace:o.name,selected:a,currentStreamName:r}),a?n[e.clusterId]=n[e.clusterId].filter(e=>e.namespace!==o.name||e.namespace===o.name&&(!e.name||!e.kind)):o.workloads.forEach(t=>{t.selected&&n[e.clusterId].push({namespace:o.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:r})});else{const t=((e,t,r)=>{const n=[];return t.workloads.forEach(o=>{const i=e?.workloads.find(e=>e.name===o.name&&e.kind===o.kind);o.selected!==i?.selected&&n.push({namespace:t.name,name:o.name,kind:o.kind,selected:o.selected||!1,currentStreamName:r})}),n})(i,o,r);t.length>0&&(n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push(...t))}})}),n})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Kt(e=>!i&&Td.has(e),[i]),f=Kt(({clusterId:e,workloadId:t,selected:r,auto:n})=>{u(o=>{const i=wr(o),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 n="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=n,n){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 n?n:!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]),y=Kt(({clusterId:e,namespaceName:t,boolean:r,searchText:n="",searchBy:o="",filters:i})=>{u(a=>{const s=wr(a),l=o===Wr.Namespace?n:"",c=o===Wr.Source?n:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((n,o)=>{e&&n.clusterId!==e||n.namespaces.forEach(({name:e,workloads:n},a)=>{if(!t||e===t)if(d)if(t){n.forEach((e,t)=>{r&&g(e.kind)||Rd(e,c,i||{showOnlySelected:!1})&&(s[o].namespaces[a].workloads[t].selected=r)});const e=s[o].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[o].namespaces[a].selected=t}else{if(!Nd(s[o].namespaces[a],l,i||{showOnlySelected:!1}))return;s[o].namespaces[a].selected=r,n.forEach((e,t)=>{r&&g(e.kind)||(s[o].namespaces[a].workloads[t].selected=r)})}else s[o].namespaces[a].selected=r,n.forEach((e,t)=>{r&&g(e.kind)||(s[o].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Pm.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:y,formDiff:h,isFormDirty:m},children:t})},Lm=()=>qt(Pm),zm=Jt({formType:void 0}),Mm=({children:t,formType:r})=>{const n=Gt(()=>({formType:r}),[r]);return e(zm.Provider,{value:n,children:t})},Bm=()=>qt(zm),Um=n.div`
979
+ `,Hh=({items:r,children:n})=>{const{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=wd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(jh,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[n,e(ep,{ref:o,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(Wh,{children:r.map((t,r)=>e(mo,{size:lo.XXXS,children:t},r))})})]})},Xh=({parts:n})=>e(r,{children:n.map((n,o)=>{const i=e(Uh,{$variant:n.variant,$isMono:Bh.includes(n.variant),children:n.text});return t(Wt,{children:[0!==o&&e(r,{children:" "}),n.tooltipItems?.length?e(Hh,{items:n.tooltipItems,children:i}):i]},`${n.variant}-${o}`)})});var Gh;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(Gh||(Gh={}));const Vh=[{value:Gh.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:Gh.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:Gh.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],Kh={[Gh.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[Gh.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[Gh.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},qh={[Gh.Noisy]:"Noisy Operations rules list",[Gh.HighlyRelevant]:"Highly Relevant Operations rules list",[Gh.CostReduction]:"Cost Reduction rules list"},Jh={[Gh.Noisy]:"noisy",[Gh.HighlyRelevant]:"highlyRelevant",[Gh.CostReduction]:"costReduction"};function Yh(e){const t=e.kind?String(e.kind).toLowerCase():"deployment";return e.namespace&&e.name?`${t} '${e.name}' in namespace '${e.namespace}'`:e.name?`${t} '${e.name}'`:e.namespace?`namespace '${e.namespace}'`:""}function Qh(e){return`namespace '${e}'`}function Zh(e){return`${e} services`}function em(e){const t=function(e){if(!e)return[];const t=[];for(const r of e.sources??[]){const e=Yh(r);e&&t.push(e)}for(const r of e.namespaces??[])r&&t.push(Qh(r));for(const r of e.languages??[])r&&t.push(Zh(r));return t}(e);if(!t.length)return[{text:" for ",variant:Mh.Default},{text:"all services in the cluster",variant:Mh.Scope}];const r=[{text:" for ",variant:Mh.Default}],n=t.slice(0,2),o=t.slice(2);return n.forEach((e,t)=>{t>0&&r.push({text:", ",variant:Mh.Default}),r.push({text:e,variant:Mh.Scope})}),o.length>0&&r.push({text:` + ${o.length} more`,variant:Mh.Default,tooltipItems:o}),r}function tm(e,t){if(!e)return[];const r=(n=e).startsWith("/")?n.slice(1):n;var n;const o=[{text:" starting at ",variant:Mh.Default}];return t?o.push({text:`${t} /${r}`,variant:Mh.Endpoint}):o.push({text:`endpoint /${r}`,variant:Mh.Endpoint}),o}function rm(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Mh.Action}),t.push({text:" of traces",variant:Mh.Default})):t.push({text:"Drop all traces",variant:Mh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...tm(r,n));const o=e.operation.httpClient,i=o?.templatedPath||o?.templatedPathPrefix,a=o?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:Mh.Default}),n?t.push({text:`${n} /${e}`,variant:Mh.Endpoint}):t.push({text:`/${e}`,variant:Mh.Endpoint})}}else t.push({text:" on ",variant:Mh.Default}),t.push({text:"any operation",variant:Mh.Endpoint});return t.push(...em(e.sourceScopes)),t}function nm(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:Mh.Action}),t.push({text:" of traces",variant:Mh.Default})):t.push({text:"Keep all traces",variant:Mh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method;t.push(...tm(r,n))}else t.push({text:" on ",variant:Mh.Default}),t.push({text:"any operation",variant:Mh.Endpoint});return t.push(...em(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:Mh.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:Mh.Duration})),t}function om(e){const t=[];if(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Mh.Action}),t.push({text:" of traces",variant:Mh.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,n=e.operation.httpServer?.method;t.push(...tm(r,n));const o=e.operation.kafkaConsumer?.kafkaTopic;o&&!r&&(t.push({text:" from ",variant:Mh.Default}),t.push({text:`topic '${o}'`,variant:Mh.Endpoint}))}else t.push({text:" on ",variant:Mh.Default}),t.push({text:"any operation",variant:Mh.Endpoint});return t.push(...em(e.sourceScopes)),t}function im(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function am(e,t,r){const n=Jh[t],o=[];for(const i of e)switch(t){case Gh.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:rm(e),category:n});break;case Gh.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:nm(e),category:n,typeBadge:im(e)});break;case Gh.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:om(e),category:n})}return o}function sm(e,t){switch(e){case"noisy":return rm(t);case"highlyRelevant":return nm(t);case"costReduction":return om(t)}}function lm(e,t,r,n){for(const o of e)if(o.id===t)switch(n){case"noisy":{const e=o.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:o.id,rule:e};break}case"highlyRelevant":{const e=o.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:o.id,rule:e};break}case"costReduction":{const e=o.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:o.id,rule:e};break}}return null}function cm(e,t){const r=lm(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:sm(r.category,r.rule)}:null}function dm(e,t){const r=lm(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function pm(e){if(!e)return null;const t=(e.sources??[]).map(e=>`${e.namespace}/${e.kind}/${e.name}`).sort(),r=(e.namespaces??[]).slice().sort(),n=(e.languages??[]).slice().sort();return t.length||r.length||n.length?[t.join("|"),r.join("|"),n.join("|")].join("::"):null}function um(e){return null==e?null:e}function hm(e,t){return JSON.stringify({sourceScopes:pm(e),operation:um(t)})}function mm(e,t,r,n){return JSON.stringify({sourceScopes:pm(e),error:t??!1,durationAtLeastMs:(o=r,null==o?null:o),operation:um(n)});var o}function gm(e,t){return JSON.stringify({sourceScopes:pm(e),operation:um(t)})}function fm(e,t,r,n){switch(t){case"noisy":{const t=hm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!n||e.ruleId!==n)&&hm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=mm(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!n||e.ruleId!==n)&&mm(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=gm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!n||e.ruleId!==n)&&gm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function ym(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:Mh.Default},{text:"disabled",variant:Mh.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:Mh.Action},{text:" of ",variant:Mh.Default},{text:"traces for kubelet health probes in the entire cluster",variant:Mh.Scope}]}function xm(e){return!0===e.error&&bh(e.sourceScopes)&&!e.operation&&(null==e.percentageAtLeast||100===e.percentageAtLeast)}function bm(e){for(const t of e){const e=t.highlyRelevantOperations.find(xm);if(e)return{rule:e,samplingId:t.id}}return null}function vm(e){return!e||e.disabled?[{text:"Auto rule is ",variant:Mh.Default},{text:"disabled",variant:Mh.Action}]:[{text:"Keep all traces",variant:Mh.Action},{text:" of ",variant:Mh.Default},{text:"error traces across the entire cluster",variant:Mh.Scope}]}function $m(e){return bh(e.sourceScopes)&&!e.operation}function wm(e){for(const t of e){const e=t.costReductionRules.find($m);if(e)return{rule:e,samplingId:t.id}}return null}function Sm(e){return!e||e.disabled?[{text:" is ",variant:Mh.Default},{text:"disabled",variant:Mh.Action}]:[{text:`Drop ${100-e.percentageAtMost}%`,variant:Mh.Action},{text:" of ",variant:Mh.Default},{text:"traces across the entire cluster",variant:Mh.Scope}]}var km;!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"}(km||(km={}));const Cm=Jt(null),Em=["50","25","10","1"];function Am(e){const t=String(e);return Em.includes(t)?t:"custom"}const Dm=({category:t,sourceOptions:r=[],namespaceOptions:n=[],children:o})=>{const{formData:i,handleFormChange:a,resetFormData:s}=rd(vh(t)),[l,c]=Ht(null);Xt(()=>{s(vh(t)),c(null)},[t]);const d=Kt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Kt(()=>{s(vh(t)),c(null)},[t,s]),u=Gt(()=>({formType:km.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:n}),[t,i,d,p,l,r,n]);return e(Cm.Provider,{value:u,children:o})},Tm=({data:t,defaultEditMode:r,sourceOptions:n=[],namespaceOptions:o=[],children:i})=>{const[a,s]=Ht(!1),{formData:l,handleFormChange:c,resetFormData:d}=rd(void 0),p=Vt(null),[u,h]=Ht(null);Xt(()=>{t!==p.current&&(p.current=t,t&&r?(d(zh(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Kt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Kt(()=>{t&&(d(zh(t)),h(null),s(!0))},[t,d]),f=Kt(()=>{s(!1),h(null)},[]),y=Gt(()=>({formType:km.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:n,namespaceOptions:o}),[t,a,l,m,g,f,u,n,o]);return e(Cm.Provider,{value:y,children:i})};function Im(e){const[t,r]=Ht(()=>0===e?"all":"sample"),[n,o]=Ht(()=>Am(e)),[i,a]=Ht(()=>"custom"===Am(e)?String(e):"");Xt(()=>{r(0===e?"all":"sample");const t=Am(e);o(t),a("custom"===t?String(e):"")},[e]);const s=Gt(()=>"all"===t?0:"custom"===n?Number(i)||0:Number(n),[t,n,i]);return{percentageMode:t,setPercentageMode:r,percentagePreset:n,setPercentagePreset:o,customPercentage:i,setCustomPercentage:a,resolvedPercentage:s}}const Nm=({enabled:t,keepPercentage:r,children:n})=>{const[o,i]=Ht(t),a=Im(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>ym({enabled:o,keepPercentage:a.resolvedPercentage}),[o,a.resolvedPercentage]),l=Gt(()=>({formType:km.EditAutoNoisy,localEnabled:o,setLocalEnabled:i,...a,summary:s}),[o,a,s]);return e(Cm.Provider,{value:l,children:n})},Rm=({enabled:t,dropPercentage:r,children:n})=>{const[o,i]=Ht(t),a=Im(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>Sm(o?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[o,a.resolvedPercentage]),l=Gt(()=>({formType:km.EditAutoCostReduction,localEnabled:o,setLocalEnabled:i,...a,summary:s}),[o,a,s]);return e(Cm.Provider,{value:l,children:n})},Om=({enabled:t,children:r})=>{const[n,o]=Ht(t);Xt(()=>{o(t)},[t]);const i=Gt(()=>vm(n?{disabled:!1}:null),[n]),a=Gt(()=>({formType:km.EditAutoHighlyRelevant,localEnabled:n,setLocalEnabled:o,summary:i}),[n,i]);return e(Cm.Provider,{value:a,children:r})},_m=t=>{switch(t.formType){case km.Create:return e(Dm,{...t});case km.View:return e(Tm,{...t});case km.EditAutoNoisy:return e(Nm,{...t});case km.EditAutoCostReduction:return e(Rm,{...t});case km.EditAutoHighlyRelevant:return e(Om,{...t})}};function Pm(e){const t=qt(Cm);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 Fm=Jt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Lm=({children:t,selectedConnectionIds:r,initialInputs:n})=>{const{tier:o}=Td(),i=o===Mr.Onprem,{selectedStreamName:a}=$c(),[s,l]=Ht(!1),[c,d]=Ht(null),[p,u]=Ht([]);Xt(()=>{c&&u(e=>{const t=((e,t)=>Sr(((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),o=r??t;if(n?.[t.clusterId]){const e=n[t.clusterId],r=Sr(o);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=>{Id.has(e.kind)&&!i||(e.selected=!0)})}),r}return o})})},[c,r,n]);const{formDiff:h,isFormDirty:m}=Gt(()=>{const e=((e,t,r)=>{const n={};return e.forEach(e=>{e.namespaces.forEach(o=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===o.name),a=o.selected||!1;if(a!==i?.selected)n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push({namespace:o.name,selected:a,currentStreamName:r}),a?n[e.clusterId]=n[e.clusterId].filter(e=>e.namespace!==o.name||e.namespace===o.name&&(!e.name||!e.kind)):o.workloads.forEach(t=>{t.selected&&n[e.clusterId].push({namespace:o.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:r})});else{const t=((e,t,r)=>{const n=[];return t.workloads.forEach(o=>{const i=e?.workloads.find(e=>e.name===o.name&&e.kind===o.kind);o.selected!==i?.selected&&n.push({namespace:t.name,name:o.name,kind:o.kind,selected:o.selected||!1,currentStreamName:r})}),n})(i,o,r);t.length>0&&(n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push(...t))}})}),n})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Kt(e=>!i&&Id.has(e),[i]),f=Kt(({clusterId:e,workloadId:t,selected:r,auto:n})=>{u(o=>{const i=Sr(o),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 n="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=n,n){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 n?n:!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]),y=Kt(({clusterId:e,namespaceName:t,boolean:r,searchText:n="",searchBy:o="",filters:i})=>{u(a=>{const s=Sr(a),l=o===Hr.Namespace?n:"",c=o===Hr.Source?n:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((n,o)=>{e&&n.clusterId!==e||n.namespaces.forEach(({name:e,workloads:n},a)=>{if(!t||e===t)if(d)if(t){n.forEach((e,t)=>{r&&g(e.kind)||Od(e,c,i||{showOnlySelected:!1})&&(s[o].namespaces[a].workloads[t].selected=r)});const e=s[o].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[o].namespaces[a].selected=t}else{if(!Rd(s[o].namespaces[a],l,i||{showOnlySelected:!1}))return;s[o].namespaces[a].selected=r,n.forEach((e,t)=>{r&&g(e.kind)||(s[o].namespaces[a].workloads[t].selected=r)})}else s[o].namespaces[a].selected=r,n.forEach((e,t)=>{r&&g(e.kind)||(s[o].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Fm.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:y,formDiff:h,isFormDirty:m},children:t})},zm=()=>qt(Fm),Mm=Jt({formType:void 0}),Bm=({children:t,formType:r})=>{const n=Gt(()=>({formType:r}),[r]);return e(Mm.Provider,{value:n,children:t})},Um=()=>qt(Mm),jm=n.div`
980
980
  display: flex;
981
981
 
982
982
  align-items: center;
983
983
  gap: 6px;
984
984
  margin-bottom: 4px;
985
- `,jm=n(Ti)`
985
+ `,Wm=n(Ii)`
986
986
  font-size: 14px;
987
987
  opacity: 0.8;
988
988
  line-height: 22px;
@@ -990,16 +990,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
990
990
  white-space: nowrap;
991
991
  text-overflow: ellipsis;
992
992
  color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
993
- `,Wm=n(Ti)`
993
+ `,Hm=n(Ii)`
994
994
  font-size: 12px;
995
995
  color: ${({theme:e})=>e.text.darker_grey};
996
996
  opacity: 0.8;
997
- `,Hm=({title:r,required:n,tooltip:o,style:i,status:a})=>r?e(Um,{style:i,children:t(ap,{text:o,withIcon:!0,children:[e(jm,{$status:a,children:r}),!n&&e(Wm,{children:"(optional)"})]})}):null,Xm=n.div`
997
+ `,Xm=({title:r,required:n,tooltip:o,style:i,status:a})=>r?e(jm,{style:i,children:t(sp,{text:o,withIcon:!0,children:[e(Wm,{$status:a,children:r}),!n&&e(Hm,{children:"(optional)"})]})}):null,Gm=n.div`
998
998
  display: flex;
999
999
  flex-direction: column;
1000
1000
  position: relative;
1001
1001
  width: 100%;
1002
- `,Gm=n.div`
1002
+ `,Vm=n.div`
1003
1003
  width: 100%;
1004
1004
  display: flex;
1005
1005
  align-items: center;
@@ -1025,7 +1025,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1025
1025
  &:focus-within {
1026
1026
  border-color: ${({theme:e})=>e.colors.secondary};
1027
1027
  }
1028
- `,Vm=n.input`
1028
+ `,Km=n.input`
1029
1029
  padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1030
1030
  flex: 1;
1031
1031
  min-width: 150px;
@@ -1054,13 +1054,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1054
1054
  -webkit-appearance: none;
1055
1055
  margin: 0;
1056
1056
  }
1057
- `,Km=n.div`
1057
+ `,qm=n.div`
1058
1058
  display: flex;
1059
1059
  align-items: center;
1060
1060
  margin-left: 12px;
1061
- `,qm=n(Km)`
1061
+ `,Jm=n(qm)`
1062
1062
  cursor: pointer;
1063
- `,Jm=n.button`
1063
+ `,Ym=n.button`
1064
1064
  background-color: ${({theme:e})=>e.colors.primary};
1065
1065
  border: none;
1066
1066
  color: ${({theme:e})=>e.text.secondary};
@@ -1075,15 +1075,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1075
1075
  background-color: ${({theme:e})=>e.colors.border};
1076
1076
  cursor: not-allowed;
1077
1077
  }
1078
- `,Ym=({icon:r,buttonLabel:n,onButtonClick:o,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Gr.Text,name:m,status:g,...f})=>{const y=i(),x=h===Gr.Password,[b,v]=Ht(!1);return t(Xm,{children:[e(Hm,{title:l,required:d,tooltip:c,status:g}),t(Gm,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[x?e(qm,{onClick:()=>v(e=>!e),children:e(b?Dt:Tt,{size:14,fill:y.text.grey})}):r?e(Km,{children:e(r,{size:14,fill:y.text.grey})}):null,e(Vm,{"data-id":m,type:b||h===Gr.Number?Gr.Text:h,$hasIcon:!!r||x,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Gr.Number&&(e.target.value=fi(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),n&&o&&e(Jm,{onClick:o,disabled:f.disabled,children:n})]}),!!s&&e(Ri,{children:s})]})},Qm=n.div`
1078
+ `,Qm=({icon:r,buttonLabel:n,onButtonClick:o,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Vr.Text,name:m,status:g,...f})=>{const y=i(),x=h===Vr.Password,[b,v]=Ht(!1);return t(Gm,{children:[e(Xm,{title:l,required:d,tooltip:c,status:g}),t(Vm,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[x?e(Jm,{onClick:()=>v(e=>!e),children:e(b?Dt:Tt,{size:14,fill:y.text.grey})}):r?e(qm,{children:e(r,{size:14,fill:y.text.grey})}):null,e(Km,{"data-id":m,type:b||h===Vr.Number?Vr.Text:h,$hasIcon:!!r||x,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Vr.Number&&(e.target.value=yi(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),n&&o&&e(Ym,{onClick:o,disabled:f.disabled,children:n})]}),!!s&&e(Oi,{children:s})]})},Zm=n.div`
1079
1079
  display: flex;
1080
1080
  flex-direction: column;
1081
1081
  min-width: 120px;
1082
1082
  width: 100%;
1083
1083
  opacity: ${({$disabled:e})=>e?.5:1};
1084
- `,Zm=n.div`
1085
- position: relative;
1086
1084
  `,eg=n.div`
1085
+ position: relative;
1086
+ `,tg=n.div`
1087
1087
  display: flex;
1088
1088
  align-items: center;
1089
1089
  justify-content: space-between;
@@ -1109,14 +1109,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1109
1109
  &:hover {
1110
1110
  border-color: ${({$isMulti:e,$hasSelections:t,$disabled:r,theme:n})=>r?"auto":e&&t?n.colors.border:n.colors.secondary};
1111
1111
  }
1112
- `,tg=n.div`
1112
+ `,rg=n.div`
1113
1113
  display: flex;
1114
1114
  align-items: center;
1115
1115
  gap: 4px;
1116
- `,rg=({options:r,value:n,onSelect:o,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,y]=Ht(!1),[x,b]=Ht(!1),v=Vt(null);bd(v,()=>y(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),y(e=>!e)},w=Array.isArray(n)?n.length:0;return t(Qm,{$disabled:c,children:[e(Hm,{title:a,required:u,tooltip:s,status:g}),t(Zm,{ref:v,children:[t(eg,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(n)&&!!n.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(ag,{value:n,placeholder:l,onDeselect:i}),t(tg,{children:[d&&e(Jc,{label:w,filled:!!w}),e(Kp,{extend:f})]})]}),f&&e(cg,{openUpwards:x,options:r,value:n,onSelect:e=>{o?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ri,{children:h})]})},ng=n(tg)`
1116
+ `,ng=({options:r,value:n,onSelect:o,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,y]=Ht(!1),[x,b]=Ht(!1),v=Vt(null);vd(v,()=>y(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),y(e=>!e)},w=Array.isArray(n)?n.length:0;return t(Zm,{$disabled:c,children:[e(Xm,{title:a,required:u,tooltip:s,status:g}),t(eg,{ref:v,children:[t(tg,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(n)&&!!n.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(sg,{value:n,placeholder:l,onDeselect:i}),t(rg,{children:[d&&e(Yc,{label:w,filled:!!w}),e(qp,{extend:f})]})]}),f&&e(dg,{openUpwards:x,options:r,value:n,onSelect:e=>{o?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Oi,{children:h})]})},og=n(rg)`
1117
1117
  max-width: calc(100% - 50px);
1118
1118
  overflow-x: auto;
1119
- `,og=n(Ti)`
1119
+ `,ig=n(Ii)`
1120
1120
  display: flex;
1121
1121
  align-items: center;
1122
1122
  gap: 2px;
@@ -1131,7 +1131,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1131
1131
  transition: transform 0.3s;
1132
1132
  }
1133
1133
  }
1134
- `,ig=n(Ti)``,ag=({value:r,placeholder:n,onDeselect:o})=>{const a=i();return Array.isArray(r)?r.length?e(ng,{children:r.map(r=>t(og,{size:14,children:[r.value,e(Kd,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(bt,{size:12,onClick:e=>{e.stopPropagation(),o?.(r)}})]},`multi-label-${r.id}`))}):e(ig,{size:14,color:a.text.darker_grey,children:n}):e(ig,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||n})},sg=n.div`
1134
+ `,ag=n(Ii)``,sg=({value:r,placeholder:n,onDeselect:o})=>{const a=i();return Array.isArray(r)?r.length?e(og,{children:r.map(r=>t(ig,{size:14,children:[r.value,e(qd,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(bt,{size:12,onClick:e=>{e.stopPropagation(),o?.(r)}})]},`multi-label-${r.id}`))}):e(ag,{size:14,color:a.text.darker_grey,children:n}):e(ag,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||n})},lg=n.div`
1135
1135
  position: absolute;
1136
1136
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1137
1137
  left: 0;
@@ -1146,11 +1146,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1146
1146
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1147
1147
  border: 1px solid ${({theme:e})=>e.colors.border};
1148
1148
  border-radius: 24px;
1149
- `,lg=n.div`
1149
+ `,cg=n.div`
1150
1150
  display: flex;
1151
1151
  flex-direction: column;
1152
1152
  align-items: center;
1153
- `,cg=({openUpwards:r,options:n,value:o,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Ht(""),p=n.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(sg,{$openUpwards:r,children:[l&&t(lg,{children:[e(Ym,{placeholder:"Search...",icon:It,value:c,onChange:e=>d(e.target.value)}),e(Kd,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(Pu,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(pg,{option:t,value:o,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},dg=n.div`
1153
+ `,dg=({openUpwards:r,options:n,value:o,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Ht(""),p=n.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(lg,{$openUpwards:r,children:[l&&t(cg,{children:[e(Qm,{placeholder:"Search...",icon:It,value:c,onChange:e=>d(e.target.value)}),e(qd,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(Fu,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(ug,{option:t,value:o,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},pg=n.div`
1154
1154
  padding: 8px 12px;
1155
1155
  cursor: pointer;
1156
1156
  display: flex;
@@ -1159,23 +1159,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1159
1159
  border-radius: 32px;
1160
1160
  &:hover,
1161
1161
  &.selected {
1162
- background: ${({theme:e})=>e.colors.majestic_blue+Uc["024"]};
1162
+ background: ${({theme:e})=>e.colors.majestic_blue+jc["024"]};
1163
1163
  }
1164
- `,pg=({option:r,value:n,isMulti:o,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(n)?!!n?.find(e=>e.id===r.id):n?.id===r.id,d=e=>e?a?.(r):s?.(r);return o?e(dg,{className:c?"selected":"",onClick:()=>d(!c),children:e(Ip,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(dg,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(Po,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Ti,{size:14,children:r.value})]}),c&&e(yt,{})]})},ug=n(Fo)`
1164
+ `,ug=({option:r,value:n,isMulti:o,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(n)?!!n?.find(e=>e.id===r.id):n?.id===r.id,d=e=>e?a?.(r):s?.(r);return o?e(pg,{className:c?"selected":"",onClick:()=>d(!c),children:e(Np,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(pg,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(Fo,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Ii,{size:14,children:r.value})]}),c&&e(yt,{})]})},hg=n(Lo)`
1165
1165
  gap: 12px;
1166
- `,hg=n(Po)`
1166
+ `,mg=n(Fo)`
1167
1167
  width: 100%;
1168
1168
  gap: 12px;
1169
1169
  align-items: flex-end;
1170
- `,mg=({clientX:r=0,flipX:n,clientY:o=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:y,popupPosition:x,handlePosition:b}=$d({onClickOutside:l});return yd({key:"Enter",active:s},c),Xt(()=>b(r,o),[r,o]),0===x.top&&0!==o||0===x.left&&0!==r?null:e(Zd,{ref:y,isOpen:s,top:a?void 0:x.top,bottom:a?x.top:void 0,left:n?void 0:x.left,right:n?x.left:void 0,padding:"24px",children:t(ug,{children:[e(ap,{text:h,withIcon:!0,children:e(Ti,{size:14,children:u})}),t(hg,{children:[g,t(Po,{$gap:6,children:[e(cp,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(bt,{})}),e(cp,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(yt,{fill:f.text.primary})}),d&&e(cp,{onClick:p,tooltip:"Undo",children:e(Nt,{})})]})]}),m&&e(xp,{type:Vr.Warning,message:m})]})})},gg=n.div`
1170
+ `,gg=({clientX:r=0,flipX:n,clientY:o=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:y,popupPosition:x,handlePosition:b}=wd({onClickOutside:l});return xd({key:"Enter",active:s},c),Xt(()=>b(r,o),[r,o]),0===x.top&&0!==o||0===x.left&&0!==r?null:e(ep,{ref:y,isOpen:s,top:a?void 0:x.top,bottom:a?x.top:void 0,left:n?void 0:x.left,right:n?x.left:void 0,padding:"24px",children:t(hg,{children:[e(sp,{text:h,withIcon:!0,children:e(Ii,{size:14,children:u})}),t(mg,{children:[g,t(Fo,{$gap:6,children:[e(dp,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(bt,{})}),e(dp,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(yt,{fill:f.text.primary})}),d&&e(dp,{onClick:p,tooltip:"Undo",children:e(Nt,{})})]})]}),m&&e(bp,{type:Kr.Warning,message:m})]})})},fg=n.div`
1171
1171
  position: relative;
1172
- `,fg=({defaultLanguage:r=Ur.Unknown,defaultVersion:n="",defaultOtelDistroName:o=null,handleSave:i})=>{const{tier:a}=Dd(),{addNotification:s}=Ec(),{formData:l,handleFormChange:c,resetFormData:d}=td({language:r,version:n,otelDistroName:o}),[p,u]=Ht(!1),h=()=>{u(!1),d()},m=Gt(()=>{if(!l.language)return[];const e=fc[l.language].community,t=a===zr.Onprem?fc[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(gg,{children:[e(cp,{tooltip:Dn.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(Ct,{})}),e(mg,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||di(l.version)?(await i({...l}),h()):s({type:Vr.Warning,message:An.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Dn.OVERRIDE_RUNTIME_DETAILS,warning:Dn.OVERRIDE_RUNTIME_WARNING,children:t(Fo,{$gap:12,children:[t(Po,{$gap:12,children:[e(rg,{title:Dn.LANGUAGE,options:mc,value:mc.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(Ym,{title:Dn.RUNTIME_VERSION,placeholder:Dn.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(rg,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},yg=n(Po)`
1172
+ `,yg=({defaultLanguage:r=jr.Unknown,defaultVersion:n="",defaultOtelDistroName:o=null,handleSave:i})=>{const{tier:a}=Td(),{addNotification:s}=Ac(),{formData:l,handleFormChange:c,resetFormData:d}=rd({language:r,version:n,otelDistroName:o}),[p,u]=Ht(!1),h=()=>{u(!1),d()},m=Gt(()=>{if(!l.language)return[];const e=yc[l.language].community,t=a===Mr.Onprem?yc[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(fg,{children:[e(dp,{tooltip:Tn.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(Ct,{})}),e(gg,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||pi(l.version)?(await i({...l}),h()):s({type:Kr.Warning,message:Dn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Tn.OVERRIDE_RUNTIME_DETAILS,warning:Tn.OVERRIDE_RUNTIME_WARNING,children:t(Lo,{$gap:12,children:[t(Fo,{$gap:12,children:[e(ng,{title:Tn.LANGUAGE,options:gc,value:gc.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(Qm,{title:Tn.RUNTIME_VERSION,placeholder:Tn.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(ng,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},xg=n(Fo)`
1173
1173
  width: 100%;
1174
1174
  justify-content: center;
1175
- `,xg=({containerName:n,runtimeInfo:o,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??o,p=d?.language??Ur.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,y=m?Vr.Success:g?Vr.Info:Vr.Warning,x=m?Kr.INSTRUMENTED:g?Kr.NOT_INSTRUMENTED:Kr.INSTRUMENTING;return e(Eu,{title:n,subTitle:`${p?hc[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:zn(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(yg,{children:e(Ti,{size:12,family:"secondary",color:c.text.info,children:pi(g)})})},renderActions:()=>t(r,{children:[e(iu,{status:y,title:x,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(iu,{status:Vr.Default,forceIcon:Rt,title:Dn.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(fg,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:n})})]})})},bg=n.tr`
1175
+ `,bg=({containerName:n,runtimeInfo:o,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??o,p=d?.language??jr.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,y=m?Kr.Success:g?Kr.Info:Kr.Warning,x=m?qr.INSTRUMENTED:g?qr.NOT_INSTRUMENTED:qr.INSTRUMENTING;return e(Au,{title:n,subTitle:`${p?mc[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:Mn(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(xg,{children:e(Ii,{size:12,family:"secondary",color:c.text.info,children:ui(g)})})},renderActions:()=>t(r,{children:[e(au,{status:y,title:x,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(au,{status:Kr.Default,forceIcon:Rt,title:Tn.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(yg,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:n})})]})})},vg=n.tr`
1176
1176
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1177
1177
  opacity: ${({$faded:e})=>e?.5:1};
1178
- `,vg=n.td`
1178
+ `,$g=n.td`
1179
1179
  position: relative;
1180
1180
  width: fit-content;
1181
1181
  padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
@@ -1183,7 +1183,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1183
1183
  font-family: ${({theme:e})=>e.font_family.primary};
1184
1184
  font-size: 14px;
1185
1185
  white-space: nowrap;
1186
- `,$g=n(Ti)`
1186
+ `,wg=n(Ii)`
1187
1187
  font-size: 14px;
1188
1188
  color: ${({$color:e,theme:t})=>e??t.text.secondary};
1189
1189
  line-height: 16px;
@@ -1196,7 +1196,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1196
1196
  display: -webkit-box;
1197
1197
  -webkit-line-clamp: 2;
1198
1198
  -webkit-box-orient: vertical;
1199
- `,wg=n.div`
1199
+ `,Sg=n.div`
1200
1200
  position: absolute;
1201
1201
  top: 0;
1202
1202
  left: 0;
@@ -1204,57 +1204,57 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1204
1204
  width: ${({$width:e})=>e}px;
1205
1205
  height: ${({$height:e})=>e}px;
1206
1206
  border-radius: 16px;
1207
- background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+Uc["020"]:e.colors.majestic_blue+Uc["030"]:r?e.text[r]+Uc["010"]:e.colors.secondary+Uc["005"]};
1208
- `,Sg=({index:r,columns:n,cells:o,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=sd(),[p,u]=Ht(!1);return e(bg,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:n.map(({key:n},i)=>{const s=o.find(({columnKey:e})=>e===n);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(vg,{$isFirst:0===i,children:[m?e(gu,{icon:m}):g?e(g,{}):e(ap,{text:h&&l?String(l):"",children:e($g,{$color:u,children:oi(l)?"-":l})}),0===i&&e(wg,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${n}-${l}-${r}-${i}`)})})},kg=n.div`
1207
+ background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+jc["020"]:e.colors.majestic_blue+jc["030"]:r?e.text[r]+jc["010"]:e.colors.secondary+jc["005"]};
1208
+ `,kg=({index:r,columns:n,cells:o,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=ld(),[p,u]=Ht(!1);return e(vg,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:n.map(({key:n},i)=>{const s=o.find(({columnKey:e})=>e===n);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t($g,{$isFirst:0===i,children:[m?e(fu,{icon:m}):g?e(g,{}):e(sp,{text:h&&l?String(l):"",children:e(wg,{$color:u,children:ii(l)?"-":l})}),0===i&&e(Sg,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${n}-${l}-${r}-${i}`)})})},Cg=n.div`
1209
1209
  width: 100%;
1210
- `,Cg=n.table`
1210
+ `,Eg=n.table`
1211
1211
  position: relative;
1212
1212
  z-index: 0;
1213
1213
  width: 100%;
1214
1214
  border-collapse: separate;
1215
1215
  border-spacing: 0 12px;
1216
- `,Eg=n.thead`
1216
+ `,Ag=n.thead`
1217
1217
  // only supported with "border-collapse: collapse;"
1218
1218
  // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1219
1219
  // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1220
- `,Ag=n.th`
1220
+ `,Dg=n.th`
1221
1221
  // only required with "border-collapse: separate;"
1222
1222
  border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1223
1223
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1224
1224
 
1225
1225
  padding: 8px;
1226
- `,Dg=n(Po)`
1226
+ `,Tg=n(Fo)`
1227
1227
  cursor: pointer;
1228
1228
  &:hover {
1229
1229
  * {
1230
1230
  color: ${({theme:e})=>e.text.secondary};
1231
1231
  }
1232
1232
  }
1233
- `,Tg=n(Ti)`
1233
+ `,Ig=n(Ii)`
1234
1234
  color: ${({theme:e})=>e.text.darker_grey};
1235
1235
  font-family: ${({theme:e})=>e.font_family.secondary};
1236
1236
  text-transform: uppercase;
1237
1237
  font-size: 12px;
1238
1238
  font-weight: 500;
1239
1239
  text-wrap: nowrap;
1240
- `,Ig=n.tbody``,Ng=({columns:r,rows:n})=>{const[o,i]=Ht(Lr.Ascending),[a,s]=Ht("name"),l=Kt(e=>{a===e?i(e=>e===Lr.Ascending?Lr.Descending:Lr.Ascending):(s(e),i(Lr.Ascending))},[a]),c=Gt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...n].sort((e,r)=>{const n=t(e,a),i=t(r,a);return(o===Lr.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)))(n,i)}):n).map(({status:t,faded:n,cells:o,onClick:i},a)=>e(Sg,{index:a,columns:r,cells:o,onClick:i,status:t,faded:n},`row-${a}`))},[r,n,a,o]);return e(kg,{children:t(Cg,{children:[e(Eg,{children:e("tr",{children:r.map(({key:r,title:n,sortable:o})=>e(Ag,{children:o?t(Dg,{onClick:()=>l(r),children:[e(Ot,{}),e(Tg,{children:n})]}):e(Tg,{children:n})},`column-${r}`))})}),e(Ig,{children:c})]})})};var Rg;!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"}(Rg||(Rg={}));const Og=n.div`
1240
+ `,Ng=n.tbody``,Rg=({columns:r,rows:n})=>{const[o,i]=Ht(zr.Ascending),[a,s]=Ht("name"),l=Kt(e=>{a===e?i(e=>e===zr.Ascending?zr.Descending:zr.Ascending):(s(e),i(zr.Ascending))},[a]),c=Gt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...n].sort((e,r)=>{const n=t(e,a),i=t(r,a);return(o===zr.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)))(n,i)}):n).map(({status:t,faded:n,cells:o,onClick:i},a)=>e(kg,{index:a,columns:r,cells:o,onClick:i,status:t,faded:n},`row-${a}`))},[r,n,a,o]);return e(Cg,{children:t(Eg,{children:[e(Ag,{children:e("tr",{children:r.map(({key:r,title:n,sortable:o})=>e(Dg,{children:o?t(Tg,{onClick:()=>l(r),children:[e(Ot,{}),e(Ig,{children:n})]}):e(Ig,{children:n})},`column-${r}`))})}),e(Ng,{children:c})]})})};var Og;!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"}(Og||(Og={}));const _g=n.div`
1241
1241
  display: flex;
1242
1242
  flex-wrap: wrap;
1243
1243
  gap: 16px 32px;
1244
1244
  width: 100%;
1245
- `,_g=n.div`
1245
+ `,Pg=n.div`
1246
1246
  display: flex;
1247
1247
  flex-direction: column;
1248
1248
  gap: 2px;
1249
1249
  width: ${({$width:e})=>e};
1250
- `,Pg=n(Ti)`
1250
+ `,Fg=n(Ii)`
1251
1251
  color: ${({theme:e})=>e.text.grey};
1252
1252
  font-size: 10px;
1253
1253
  line-height: 16px;
1254
- `,Fg=n(Ti)`
1254
+ `,Lg=n(Ii)`
1255
1255
  font-size: 12px;
1256
1256
  white-space: pre-wrap;
1257
- `,Lg=({data:r})=>e(Og,{children:r?.map(({type:r,title:n,titleIcon:o,tooltip:i,value:a},s)=>t(_g,{$width:r&&[Rg.Code,Rg.Table].includes(r)?"inherit":r&&[Rg.Loader,Rg.Divider,Rg.CopyText].includes(r)?"100%":"unset",children:[e(ap,{text:i,withIcon:!0,children:t(Po,{$alignItems:"center",$gap:4,children:[o&&e(o,{size:14}),!!n&&e(Pg,{transform:"capitalize",children:n})]})}),e(zg,{type:r,value:a})]},`data-field-${n||(a?JSON.stringify(a):s)}`))}),zg=({type:t,value:r})=>{const n=i();switch(t){case Rg.Divider:return e(Kd,{length:"100%",margin:"0"});case Rg.Loader:return e(Lo,{children:e(Gp,{scale:1.2})});case Rg.Monitors:return e(vu,{monitors:r?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Rg.Badge:{const{label:t,filled:n,...o}=ti(r,{label:"-",filled:!1});return e(Jc,{label:t,filled:n,...o})}case Rg.Code:{const{language:t,code:n,...o}=ti(r,{language:"",code:""});return e(Bp,{language:t,code:n,...o})}case Rg.Table:{const{columns:t,rows:n,...o}=ti(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(Ng,{columns:t,rows:n,...o})}case Rg.ActiveStatus:return e(iu,{status:"true"==r?Vr.Success:Vr.Error,title:"true"==r?Dn.ENABLED:Dn.DISABLED,size:10,withIcon:!0,withBorder:!0});case Rg.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(lu,{value:t})}default:return e(Fg,{children:xi("string"==typeof r?r||"-":"")})}},Mg=n.div`
1257
+ `,zg=({data:r})=>e(_g,{children:r?.map(({type:r,title:n,titleIcon:o,tooltip:i,value:a},s)=>t(Pg,{$width:r&&[Og.Code,Og.Table].includes(r)?"inherit":r&&[Og.Loader,Og.Divider,Og.CopyText].includes(r)?"100%":"unset",children:[e(sp,{text:i,withIcon:!0,children:t(Fo,{$alignItems:"center",$gap:4,children:[o&&e(o,{size:14}),!!n&&e(Fg,{transform:"capitalize",children:n})]})}),e(Mg,{type:r,value:a})]},`data-field-${n||(a?JSON.stringify(a):s)}`))}),Mg=({type:t,value:r})=>{const n=i();switch(t){case Og.Divider:return e(qd,{length:"100%",margin:"0"});case Og.Loader:return e(zo,{children:e(Vp,{scale:1.2})});case Og.Monitors:return e($u,{monitors:r?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Og.Badge:{const{label:t,filled:n,...o}=ri(r,{label:"-",filled:!1});return e(Yc,{label:t,filled:n,...o})}case Og.Code:{const{language:t,code:n,...o}=ri(r,{language:"",code:""});return e(Up,{language:t,code:n,...o})}case Og.Table:{const{columns:t,rows:n,...o}=ri(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(Rg,{columns:t,rows:n,...o})}case Og.ActiveStatus:return e(au,{status:"true"==r?Kr.Success:Kr.Error,title:"true"==r?Tn.ENABLED:Tn.DISABLED,size:10,withIcon:!0,withBorder:!0});case Og.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(cu,{value:t})}default:return e(Lg,{children:bi("string"==typeof r?r||"-":"")})}},Bg=n.div`
1258
1258
  display: flex;
1259
1259
  flex-direction: column;
1260
1260
  align-items: flex-start;
@@ -1263,90 +1263,90 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1263
1263
  padding: 24px;
1264
1264
  border-radius: 24px;
1265
1265
  border: 1px solid ${({theme:e})=>e.colors.border};
1266
- background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Uc["010"]:"transparent"};
1266
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+jc["010"]:"transparent"};
1267
1267
  transition: background-color 0.3s;
1268
- `,Bg=n.div`
1268
+ `,Ug=n.div`
1269
1269
  width: 100%;
1270
1270
  display: flex;
1271
1271
  flex-direction: column;
1272
1272
  gap: 4px;
1273
1273
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
1274
- `,Ug=n(Ti)`
1274
+ `,jg=n(Ii)`
1275
1275
  width: 100%;
1276
1276
  display: flex;
1277
1277
  align-items: center;
1278
1278
  gap: 8px;
1279
1279
  font-size: 16px;
1280
- `,jg=n(Ti)`
1280
+ `,Wg=n(Ii)`
1281
1281
  font-size: 12px;
1282
1282
  color: ${({theme:e})=>e.text.grey};
1283
- `,Wg=n(Po)`
1283
+ `,Hg=n(Fo)`
1284
1284
  margin-left: auto;
1285
1285
  gap: 8px;
1286
- `,Hg=({title:r="Details",titleBadge:n,titleIcon:o,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Ht(l),[h,m]=Ht(!1);return t(Mg,{$hovered:h,children:[r||o||i||a?t(Bg,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(Po,{children:[t(Po,{$alignItems:"center",$gap:8,children:[o&&e(Po,{$alignItems:"center",children:e(o,{size:20})}),!!r&&e(Ug,{transform:"capitalize",children:r}),n===qr.Loading?e(Gp,{}):void 0!==n&&e(Jc,{label:n})]}),(!!a||s)&&t(Wg,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(Kp,{extend:p})]})]}),!!i&&e(jg,{children:i})]}):null,(!s||s&&p)&&(d||e(Lg,{data:c}))]})},Xg=n.div`
1286
+ `,Xg=({title:r="Details",titleBadge:n,titleIcon:o,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Ht(l),[h,m]=Ht(!1);return t(Bg,{$hovered:h,children:[r||o||i||a?t(Ug,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(Fo,{children:[t(Fo,{$alignItems:"center",$gap:8,children:[o&&e(Fo,{$alignItems:"center",children:e(o,{size:20})}),!!r&&e(jg,{transform:"capitalize",children:r}),n===Jr.Loading?e(Vp,{}):void 0!==n&&e(Yc,{label:n})]}),(!!a||s)&&t(Hg,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(qp,{extend:p})]})]}),!!i&&e(Wg,{children:i})]}):null,(!s||s&&p)&&(d||e(zg,{data:c}))]})},Gg=n.div`
1287
1287
  visibility: hidden;
1288
- `,Gg=n(Po)`
1288
+ `,Vg=n(Fo)`
1289
1289
  align-self: stretch;
1290
1290
  width: calc(100% - 32px);
1291
1291
  padding: 16px;
1292
1292
  border-radius: 16px;
1293
- background-color: ${({theme:e})=>e.colors.secondary+Uc["005"]};
1293
+ background-color: ${({theme:e})=>e.colors.secondary+jc["005"]};
1294
1294
  ${({theme:e,$withClick:t})=>t?o`
1295
1295
  &:hover {
1296
1296
  cursor: pointer;
1297
- background-color: ${e.colors.secondary+Uc["010"]};
1298
- ${Xg} {
1297
+ background-color: ${e.colors.secondary+jc["010"]};
1298
+ ${Gg} {
1299
1299
  visibility: visible;
1300
1300
  }
1301
1301
  }
1302
- `:`\n &:hover {\n ${Xg} {\n visibility: visible;\n }\n }\n `}
1303
- `,Vg=n(Po)`
1302
+ `:`\n &:hover {\n ${Gg} {\n visibility: visible;\n }\n }\n `}
1303
+ `,Kg=n(Fo)`
1304
1304
  margin-left: auto;
1305
1305
  gap: 8px;
1306
- `,Kg=n(Ti)`
1306
+ `,qg=n(Ii)`
1307
1307
  font-size: 10px;
1308
1308
  color: ${({theme:e})=>e.text.grey};
1309
- `,qg=({title:n,subTitle:o,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Ht(0),h=Vt(null),m=Vt(null);return Xt(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(Gg,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(xu,{id:`${n}-${o}`,icons:a,iconSrcs:s}),n&&e(uu,{maxWidth:p/2,text:n,textSize:14}),n&&o&&e(Kg,{children:"•"}),o&&e(uu,{maxWidth:p/2,text:o,textSize:10,textColor:d.text.grey}),e(Vg,{ref:m,children:c&&t(r,{children:[e(Kd,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},Jg=({isOpen:t,noOverlay:r,name:n,type:o,isLastItem:i,onApprove:a,onDeny:s})=>{const l=o===Wr.Source?"uninstrument":"delete";return e(Ep,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Vr.Warning,title:`You're about to ${l} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},Yg=n(ed)`
1309
+ `,Jg=({title:n,subTitle:o,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Ht(0),h=Vt(null),m=Vt(null);return Xt(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(Vg,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(bu,{id:`${n}-${o}`,icons:a,iconSrcs:s}),n&&e(hu,{maxWidth:p/2,text:n,textSize:14}),n&&o&&e(qg,{children:"•"}),o&&e(hu,{maxWidth:p/2,text:o,textSize:10,textColor:d.text.grey}),e(Kg,{ref:m,children:c&&t(r,{children:[e(qd,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},Yg=({isOpen:t,noOverlay:r,name:n,type:o,isLastItem:i,onApprove:a,onDeny:s})=>{const l=o===Hr.Source?"uninstrument":"delete";return e(Ap,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Kr.Warning,title:`You're about to ${l} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},Qg=n(td)`
1310
1310
  display: flex;
1311
1311
  align-items: center;
1312
1312
  justify-content: center;
1313
1313
  font-size: 14px;
1314
1314
  gap: 6px;
1315
1315
  min-width: 100px;
1316
- `,Qg=({endpoint:r="/",variant:n="secondary"})=>t(Yg,{variant:n,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(_t,{size:18}),"Docs"]}),Zg=n(Po)`
1316
+ `,Zg=({endpoint:r="/",variant:n="secondary"})=>t(Qg,{variant:n,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(_t,{size:18}),"Docs"]}),ef=n(Fo)`
1317
1317
  border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1318
- `,ef=n.div`
1318
+ `,tf=n.div`
1319
1319
  display: flex;
1320
1320
  align-items: center;
1321
1321
  border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1322
1322
  cursor: pointer;
1323
- `,tf=n(Ti)`
1323
+ `,rf=n(Ii)`
1324
1324
  padding: 12px;
1325
1325
  font-size: 14px;
1326
1326
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1327
- `,rf=({tabs:r,hideBorder:n=!1})=>r?.length?e(Zg,{$hideBorder:n,children:r.map(({label:r,icon:n,onClick:o,selected:i})=>t(ef,{onClick:o,$selected:i,children:[e(tf,{$selected:i,children:r}),n&&e(n,{})]},`tab-${r}`))}):null,nf=n.section`
1327
+ `,nf=({tabs:r,hideBorder:n=!1})=>r?.length?e(ef,{$hideBorder:n,children:r.map(({label:r,icon:n,onClick:o,selected:i})=>t(tf,{onClick:o,$selected:i,children:[e(rf,{$selected:i,children:r}),n&&e(n,{})]},`tab-${r}`))}):null,of=n.section`
1328
1328
  padding: 0px 32px;
1329
1329
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1330
- `,of=n.div`
1330
+ `,af=n.div`
1331
1331
  height: 76px;
1332
1332
  display: flex;
1333
1333
  justify-content: space-between;
1334
1334
  flex-shrink: 0;
1335
1335
  align-self: stretch;
1336
- `,af=n.div`
1336
+ `,sf=n.div`
1337
1337
  display: flex;
1338
1338
  align-items: center;
1339
1339
  gap: ${({$gap:e})=>e||16}px;
1340
- `,sf=n(Ti)`
1340
+ `,lf=n(Ii)`
1341
1341
  font-size: 18px;
1342
1342
  line-height: 26px;
1343
1343
  max-width: ${({$maxWidth:e})=>e};
1344
1344
  overflow: hidden;
1345
1345
  white-space: nowrap;
1346
1346
  text-overflow: ellipsis;
1347
- `,lf=n(ed)`
1347
+ `,cf=n(td)`
1348
1348
  gap: 8px;
1349
- `,cf=n(ed)``,df=({onClose:r,width:n,icons:o,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(nf,{children:[t(of,{children:[t(af,{children:[o?.length||i?.length?e(xu,{icons:o,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(ap,{text:s||a,withIcon:!!s,children:a&&e(sf,{$maxWidth:`calc(${n} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(af,{$gap:2,children:[c,d.map((t,r)=>e(lf,{...t},`header-action-button-${r}`)),e(cf,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(bt,{size:12})})]})]}),e(rf,{tabs:p,hideBorder:!0})]}),pf=n.div`
1349
+ `,df=n(td)``,pf=({onClose:r,width:n,icons:o,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(of,{children:[t(af,{children:[t(sf,{children:[o?.length||i?.length?e(bu,{icons:o,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(sp,{text:s||a,withIcon:!!s,children:a&&e(lf,{$maxWidth:`calc(${n} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(sf,{$gap:2,children:[c,d.map((t,r)=>e(cf,{...t},`header-action-button-${r}`)),e(df,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(bt,{size:12})})]})]}),e(nf,{tabs:p,hideBorder:!0})]}),uf=n.div`
1350
1350
  display: flex;
1351
1351
  justify-content: space-between;
1352
1352
  gap: 8px;
@@ -1354,17 +1354,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1354
1354
  border-top: 1px solid ${({theme:e})=>e.colors.border};
1355
1355
  background-color: ${({theme:e})=>e.colors.translucent_bg};
1356
1356
  transform: translateY(100%);
1357
- animation-name: ${Wc.in.bottom};
1358
- `,uf=n(Po)`
1357
+ animation-name: ${Hc.in.bottom};
1358
+ `,hf=n(Fo)`
1359
1359
  margin-right: auto;
1360
- `,hf=n(Po)`
1360
+ `,mf=n(Fo)`
1361
1361
  margin: 0 auto;
1362
- `,mf=n(Po)`
1362
+ `,gf=n(Fo)`
1363
1363
  margin-left: auto;
1364
- `,gf=n(ed)`
1364
+ `,ff=n(td)`
1365
1365
  min-width: 140px;
1366
1366
  font-size: 14px;
1367
- `,ff=({isOpen:r,leftButtons:n=[],centerButtons:o=[],rightButtons:i=[]})=>r?t(pf,{children:[e(uf,{children:n.map((t,r)=>e(gf,{...t},`footer-left-button-${r}`))}),e(hf,{children:o.map((t,r)=>e(gf,{...t},`footer-center-button-${r}`))}),e(mf,{children:i.map((t,r)=>e(gf,{...t},`footer-right-button-${r}`))})]}):null,yf=n.div`
1367
+ `,yf=({isOpen:r,leftButtons:n=[],centerButtons:o=[],rightButtons:i=[]})=>r?t(uf,{children:[e(hf,{children:n.map((t,r)=>e(ff,{...t},`footer-left-button-${r}`))}),e(mf,{children:o.map((t,r)=>e(ff,{...t},`footer-center-button-${r}`))}),e(gf,{children:i.map((t,r)=>e(ff,{...t},`footer-right-button-${r}`))})]}):null,xf=n.div`
1368
1368
  position: fixed;
1369
1369
  top: 0;
1370
1370
  bottom: 0;
@@ -1372,56 +1372,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1372
1372
  z-index: 1000;
1373
1373
  width: ${({$width:e})=>e};
1374
1374
  background: ${({theme:e})=>e.colors.translucent_bg};
1375
- box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Uc["010"]};
1375
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+jc["010"]};
1376
1376
  overflow-y: auto;
1377
- animation-name: ${({$position:e})=>Wc.in[e]};
1378
- `,xf=n.div`
1377
+ animation-name: ${({$position:e})=>Hc.in[e]};
1378
+ `,bf=n.div`
1379
1379
  display: flex;
1380
1380
  flex-direction: column;
1381
1381
  height: 100%;
1382
- `,bf=n.div`
1382
+ `,vf=n.div`
1383
1383
  flex-grow: 1;
1384
1384
  padding: 24px 32px;
1385
1385
  overflow-y: auto;
1386
- `,vf=({isOpen:n,onClose:o,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(yd({key:"Escape",active:n&&i},()=>o()),od(n),n?pr.createPortal(t(r,{children:[e(Mo,{hidden:!n,onClick:o}),e(yf,{"data-id":"drawer",$position:a,$width:s,children:t(xf,{children:[e(df,{onClose:o,width:s,...c}),e(bf,{children:l}),e(ff,{...d})]})})]}),document.body):null),$f=({error:r})=>{const n=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return t("div",{style:o.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:o.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:o.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:o.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),e(ed,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},wf=({children:t})=>e(gr,{FallbackComponent:({error:t,...r})=>e(Bc,{children:e($f,{...r,error:t})}),children:t}),Sf=n(Po)`
1386
+ `,$f=({isOpen:n,onClose:o,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(xd({key:"Escape",active:n&&i},()=>o()),id(n),n?ur.createPortal(t(r,{children:[e(Bo,{hidden:!n,onClick:o}),e(xf,{"data-id":"drawer",$position:a,$width:s,children:t(bf,{children:[e(pf,{onClose:o,width:s,...c}),e(vf,{children:l}),e(yf,{...d})]})})]}),document.body):null),wf=({error:r})=>{const n=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return t("div",{style:o.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:o.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:o.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:o.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),e(td,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},Sf=({children:t})=>e(fr,{FallbackComponent:({error:t,...r})=>e(Uc,{children:e(wf,{...r,error:t})}),children:t}),kf=n(Fo)`
1387
1387
  position: relative;
1388
1388
  width: calc(100% - 24px);
1389
1389
  padding: 12px;
1390
1390
  background-color: ${({theme:e})=>e.colors.dark_grey};
1391
- border-bottom: 1px solid ${({theme:e})=>e.colors.border+Uc["050"]};
1392
- `,kf=n(Po)`
1391
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+jc["050"]};
1392
+ `,Cf=n(Fo)`
1393
1393
  margin-right: auto;
1394
1394
  margin-left: 32px;
1395
1395
  gap: 12px;
1396
- `,Cf=n(Po)`
1396
+ `,Ef=n(Fo)`
1397
1397
  margin-left: auto;
1398
1398
  margin-right: 32px;
1399
1399
  gap: 12px;
1400
- `,Ef=n(Po)`
1400
+ `,Af=n(Fo)`
1401
1401
  position: absolute;
1402
1402
  left: 50%;
1403
1403
  transform: translateX(-50%);
1404
1404
  gap: 12px;
1405
- `,Af=({left:r=[],center:n=[],right:o=[]})=>t(Sf,{children:[e(kf,{children:r.map((t,r)=>t&&e(Wt,{children:t},r))}),e(Ef,{children:n.map((t,r)=>t&&e(Wt,{children:t},r))}),e(Cf,{children:o.map((t,r)=>t&&e(Wt,{children:t},r))})]}),Df=n(Ti)`
1405
+ `,Df=({left:r=[],center:n=[],right:o=[]})=>t(kf,{children:[e(Cf,{children:r.map((t,r)=>t&&e(Wt,{children:t},r))}),e(Af,{children:n.map((t,r)=>t&&e(Wt,{children:t},r))}),e(Ef,{children:o.map((t,r)=>t&&e(Wt,{children:t},r))})]}),Tf=n(Ii)`
1406
1406
  color: ${({theme:e})=>e.text.grey};
1407
- `,Tf=({icon:r,title:n,badge:o,badgeTooltip:i,loading:a})=>t(Po,{$gap:6,children:[r&&e(r,{}),e(Df,{size:14,children:n}),void 0!==o&&e(ap,{text:i,children:e(Jc,{label:o})}),a&&e(Gp,{})]}),If=n.div`
1407
+ `,If=({icon:r,title:n,badge:o,badgeTooltip:i,loading:a})=>t(Fo,{$gap:6,children:[r&&e(r,{}),e(Tf,{size:14,children:n}),void 0!==o&&e(sp,{text:i,children:e(Yc,{label:o})}),a&&e(Vp,{})]}),Nf=n.div`
1408
1408
  width: fit-content;
1409
1409
  height: fit-content;
1410
1410
  padding: 4px;
1411
1411
  gap: 4px;
1412
1412
  border-radius: 32px;
1413
- border: 1px solid ${({theme:e})=>e.colors.border+Uc["070"]};
1413
+ border: 1px solid ${({theme:e})=>e.colors.border+jc["070"]};
1414
1414
 
1415
1415
  display: flex;
1416
1416
  flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1417
1417
  align-items: center;
1418
1418
  justify-content: center;
1419
- `,Nf=n.div`
1419
+ `,Rf=n.div`
1420
1420
  width: 32px;
1421
1421
  height: 32px;
1422
1422
 
1423
1423
  border-radius: 100%;
1424
- background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Uc["070"]:e.colors.secondary+Uc["012"]};
1424
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+jc["070"]:e.colors.secondary+jc["012"]};
1425
1425
  transition: background-color 0.3s;
1426
1426
 
1427
1427
  display: flex;
@@ -1429,63 +1429,63 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1429
1429
  justify-content: center;
1430
1430
 
1431
1431
  cursor: pointer;
1432
- `,Rf=({orientation:r="vertical",flip:n,mainIcons:o,subIcons:i})=>t(If,{$orientation:r,$flip:n,children:[o.map(({icon:t,selected:r,onClick:n,tooltip:o},i)=>e(ap,{text:o,children:e(Nf,{$selected:r,onClick:n,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!o.length&&!!i.length&&e(Kd,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:n,tooltip:o},i)=>e(ap,{text:o,children:e(Nf,{$selected:r,onClick:n,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),Of=n.div`
1432
+ `,Of=({orientation:r="vertical",flip:n,mainIcons:o,subIcons:i})=>t(Nf,{$orientation:r,$flip:n,children:[o.map(({icon:t,selected:r,onClick:n,tooltip:o},i)=>e(sp,{text:o,children:e(Rf,{$selected:r,onClick:n,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!o.length&&!!i.length&&e(qd,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:n,tooltip:o},i)=>e(sp,{text:o,children:e(Rf,{$selected:r,onClick:n,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),_f=n.div`
1433
1433
  display: flex;
1434
1434
  flex-direction: column;
1435
1435
  width: 100%;
1436
- `,_f=n.div`
1436
+ `,Pf=n.div`
1437
1437
  display: flex;
1438
1438
  flex-direction: column;
1439
1439
  gap: 8px;
1440
- `,Pf=n.div`
1440
+ `,Ff=n.div`
1441
1441
  display: flex;
1442
1442
  align-items: center;
1443
1443
  gap: 16px;
1444
- `,Ff=n(cp)`
1444
+ `,Lf=n(dp)`
1445
1445
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1446
1446
  opacity: ${({$disabled:e})=>e?.5:1};
1447
- `,Lf=({initialValues:r=[],value:n,onChange:o,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Ht(n||r);Xt(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Vt(JSON.stringify(p));Xt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,o&&o(p))},[p]);const h=(e,t)=>{d(r=>{const n=[...r];return n[t]=e,n})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(Of,{children:[e(Hm,{title:i,required:s,tooltip:a}),e(_f,{children:c.map((r,n)=>{const o=n===c.length-1;return t(Pf,{children:[e(Ym,{value:r,onChange:e=>h(e.target.value,n),hasError:!!l,autoFocus:oi(r)&&!m&&o}),n===c.length-1&&e(Ff,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(kt,{})}),e(Ff,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(n),children:e(Nt,{})})]},`input-list-${n}`)})}),!!l&&e(Ri,{children:l})]})},zf=({col:t,colIdx:r,row:n,rowIdx:o,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:y,renderCondition:x}=t,b=n[d];if(x&&!x(n))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Xr.Dropdown:const t=y?.find(e=>e.id===b);return e(rg,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:t,onSelect:e=>s(d,e.id,o),onDeselect:()=>s(d,"",o),hasError:!!l&&(!m||m&&oi(b))});case"multi-dropdown":const n=Array.isArray(b)&&y?.filter(e=>b.includes(e.id))||[];return e(rg,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:n,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,o)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,o)},hasError:!!l&&(!m||m&&oi(b))});default:const f=i>1&&o===i-1&&0===r&&oi(b);return e(Ym,{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,o),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&oi(b))})}})()},`input-table-${o}-${d}`)},Mf=n.div`
1447
+ `,zf=({initialValues:r=[],value:n,onChange:o,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Ht(n||r);Xt(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Vt(JSON.stringify(p));Xt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,o&&o(p))},[p]);const h=(e,t)=>{d(r=>{const n=[...r];return n[t]=e,n})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(_f,{children:[e(Xm,{title:i,required:s,tooltip:a}),e(Pf,{children:c.map((r,n)=>{const o=n===c.length-1;return t(Ff,{children:[e(Qm,{value:r,onChange:e=>h(e.target.value,n),hasError:!!l,autoFocus:ii(r)&&!m&&o}),n===c.length-1&&e(Lf,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(kt,{})}),e(Lf,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(n),children:e(Nt,{})})]},`input-list-${n}`)})}),!!l&&e(Oi,{children:l})]})},Mf=({col:t,colIdx:r,row:n,rowIdx:o,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:y,renderCondition:x}=t,b=n[d];if(x&&!x(n))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Gr.Dropdown:const t=y?.find(e=>e.id===b);return e(ng,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:t,onSelect:e=>s(d,e.id,o),onDeselect:()=>s(d,"",o),hasError:!!l&&(!m||m&&ii(b))});case"multi-dropdown":const n=Array.isArray(b)&&y?.filter(e=>b.includes(e.id))||[];return e(ng,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:n,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,o)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,o)},hasError:!!l&&(!m||m&&ii(b))});default:const f=i>1&&o===i-1&&0===r&&ii(b);return e(Qm,{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,o),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&ii(b))})}})()},`input-table-${o}-${d}`)},Bf=n.div`
1448
1448
  display: flex;
1449
1449
  flex-direction: column;
1450
1450
  width: 100%;
1451
- `,Bf=n.button`
1451
+ `,Uf=n.button`
1452
1452
  margin-top: ${({$marginTop:e})=>e};
1453
1453
  background: none;
1454
1454
  border: none;
1455
1455
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1456
1456
  opacity: ${({disabled:e})=>e?.5:1};
1457
- `,Uf=({columns:r,initialValues:n=[],value:o,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Ht({}),[p,u]=Ht(o||n),h=Gt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Xt(()=>{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 n=h.get(t);if((!n?.renderCondition||n.renderCondition(e))&&(n?.required&&oi(r)))return!1}return!0}),g=Vt(JSON.stringify(m)),f=m.length!==p.length,y=`${Math.floor(640/((s||r.length)+.4))}px`;Xt(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const x=(e,t,r)=>{u(n=>{const o=wr(n);return o[r][e]=t,o})},b=Gt(()=>{if(s){const e=[];for(let t=0;;t+=s){const n=r.slice(t,t+s);if(!n.length)break;e.push(n)}return e}return[r]},[s,r]);return t(Mf,{children:[e(Hm,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:n})=>e("th",{style:{maxWidth:y},children:e(Hm,{title:t,required:n,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((n,o)=>t(Wt,{children:[s&&o>0?e("tr",{children:e("td",{colSpan:b.length,children:e(Kd,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(zf,{col:t,colIdx:r,row:n,rowIdx:o,rowsLength:p.length,maxWidth:y,limitFieldsPerRow:s,errorMessage:a,handleChange:x},`input-table-row-${o}-col-${r}`)),0===l&&e("td",{children:e(Bf,{$marginTop:s?"24px":"0",onClick:()=>{return e=o,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>x(t,r===Gr.Number?"0":"",e)));var e},children:e(Nt,{})})})]},`input-table-matrix-${o}-${l}`))]},`input-table-row-${o}`))})]}),!!a&&e(Ri,{children:a}),e(au,{onClick:()=>{u(e=>{const t=wr(e);return t.push(wr(c)),t})},disabled:f})]})},jf=n.div`
1457
+ `,jf=({columns:r,initialValues:n=[],value:o,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Ht({}),[p,u]=Ht(o||n),h=Gt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Xt(()=>{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 n=h.get(t);if((!n?.renderCondition||n.renderCondition(e))&&(n?.required&&ii(r)))return!1}return!0}),g=Vt(JSON.stringify(m)),f=m.length!==p.length,y=`${Math.floor(640/((s||r.length)+.4))}px`;Xt(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const x=(e,t,r)=>{u(n=>{const o=Sr(n);return o[r][e]=t,o})},b=Gt(()=>{if(s){const e=[];for(let t=0;;t+=s){const n=r.slice(t,t+s);if(!n.length)break;e.push(n)}return e}return[r]},[s,r]);return t(Bf,{children:[e(Xm,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:n})=>e("th",{style:{maxWidth:y},children:e(Xm,{title:t,required:n,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((n,o)=>t(Wt,{children:[s&&o>0?e("tr",{children:e("td",{colSpan:b.length,children:e(qd,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(Mf,{col:t,colIdx:r,row:n,rowIdx:o,rowsLength:p.length,maxWidth:y,limitFieldsPerRow:s,errorMessage:a,handleChange:x},`input-table-row-${o}-col-${r}`)),0===l&&e("td",{children:e(Uf,{$marginTop:s?"24px":"0",onClick:()=>{return e=o,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>x(t,r===Vr.Number?"0":"",e)));var e},children:e(Nt,{})})})]},`input-table-matrix-${o}-${l}`))]},`input-table-row-${o}`))})]}),!!a&&e(Oi,{children:a}),e(su,{onClick:()=>{u(e=>{const t=Sr(e);return t.push(Sr(c)),t})},disabled:f})]})},Wf=n.div`
1458
1458
  display: flex;
1459
1459
  flex-direction: column;
1460
1460
  width: 100%;
1461
- `,Wf=n.div`
1461
+ `,Hf=n.div`
1462
1462
  display: flex;
1463
1463
  flex-direction: column;
1464
1464
  gap: 8px;
1465
- `,Hf=n.div`
1465
+ `,Xf=n.div`
1466
1466
  display: flex;
1467
1467
  align-items: center;
1468
1468
  gap: 8px;
1469
- `,Xf=n.div`
1469
+ `,Gf=n.div`
1470
1470
  width: 100%;
1471
1471
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1472
- `,Gf=n(cp)`
1472
+ `,Vf=n(dp)`
1473
1473
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1474
1474
  opacity: ${({$disabled:e})=>e?.5:1};
1475
- `,Vf={key:"",value:""},Kf=({initialKeyValuePairs:r=[],value:n,onChange:o,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Ht(n||r);Xt(()=>{h.length||m([{...Vf}])},[]);const g=h.filter(({key:e,value:t})=>!oi(e.trim())&&!oi(t.trim())),f=Vt(JSON.stringify(g));Xt(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,o&&o(g))},[g]);const y=(e,t,r)=>{m(n=>{const o=[...n];return o[r][e]=t,o})},x=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||x&&b;return t(jf,{children:[e(Hm,{title:i,required:l,tooltip:a}),e(Wf,{children:h.map(({key:r,value:n},o)=>t(Hf,{children:[e(Xf,{$maxWidth:u,children:e(Ym,{placeholder:d,disabled:s,value:r,onChange:e=>y("key",e.target.value,o),hasError:!!c&&(!l||l&&!r),autoFocus:oi(n)&&!x&&o===h.length-1})}),e(Xf,{$maxWidth:o===h.length-1?u-38:u,children:e(Ym,{placeholder:p,disabled:s,value:n,onChange:e=>y("value",e.target.value,o),hasError:!!c&&(!l||l&&oi(n)),autoFocus:!1})}),o===h.length-1&&e(Gf,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...Vf}),t})},children:e(kt,{})}),e(Gf,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{x?(y("key","",e),y("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(o),children:e(Nt,{})})]},`key-value-input-list-${o}`))}),!!c&&e(Ri,{children:c})]})},qf=a`
1475
+ `,Kf={key:"",value:""},qf=({initialKeyValuePairs:r=[],value:n,onChange:o,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Ht(n||r);Xt(()=>{h.length||m([{...Kf}])},[]);const g=h.filter(({key:e,value:t})=>!ii(e.trim())&&!ii(t.trim())),f=Vt(JSON.stringify(g));Xt(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,o&&o(g))},[g]);const y=(e,t,r)=>{m(n=>{const o=[...n];return o[r][e]=t,o})},x=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||x&&b;return t(Wf,{children:[e(Xm,{title:i,required:l,tooltip:a}),e(Hf,{children:h.map(({key:r,value:n},o)=>t(Xf,{children:[e(Gf,{$maxWidth:u,children:e(Qm,{placeholder:d,disabled:s,value:r,onChange:e=>y("key",e.target.value,o),hasError:!!c&&(!l||l&&!r),autoFocus:ii(n)&&!x&&o===h.length-1})}),e(Gf,{$maxWidth:o===h.length-1?u-38:u,children:e(Qm,{placeholder:p,disabled:s,value:n,onChange:e=>y("value",e.target.value,o),hasError:!!c&&(!l||l&&ii(n)),autoFocus:!1})}),o===h.length-1&&e(Vf,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...Kf}),t})},children:e(kt,{})}),e(Vf,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{x?(y("key","",e),y("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(o),children:e(Nt,{})})]},`key-value-input-list-${o}`))}),!!c&&e(Oi,{children:c})]})},Jf=a`
1476
1476
  0% {
1477
1477
  background-position: 0% 50%;
1478
1478
  }
1479
1479
  100% {
1480
1480
  background-position: 100% 50%;
1481
1481
  }
1482
- `,Jf=n(Ti)`
1482
+ `,Yf=n(Ii)`
1483
1483
  background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1484
1484
  background-size: 250% 100%; /* Expand background to allow movement */
1485
1485
  background-clip: text;
1486
1486
  color: transparent;
1487
- animation: ${qf} 1s reverse linear infinite;
1488
- `,Yf=({children:t="Loading...",textColor:r,stripColor:n,...o})=>{const a=i(),s=r||a.v2.colors.white[500],l=n||a.v2.colors.black[500];return e(Jf,{$textColor:s,$stripColor:l,...o,children:t})},Qf=n.div`
1487
+ animation: ${Jf} 1s reverse linear infinite;
1488
+ `,Qf=({children:t="Loading...",textColor:r,stripColor:n,...o})=>{const a=i(),s=r||a.v2.colors.white[500],l=n||a.v2.colors.black[500];return e(Yf,{$textColor:s,$stripColor:l,...o,children:t})},Zf=n.div`
1489
1489
  display: flex;
1490
1490
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1491
1491
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1494,17 +1494,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1494
1494
  border-radius: 32px;
1495
1495
  padding: 8px;
1496
1496
  `}
1497
- `,Zf=(e,t)=>!t?.length||!!t?.find(t=>t===e),ey=({isVertical:r,title:n="Monitors",required:o,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Ht(1===s.length),p=Vt(JSON.stringify(s));Xt(()=>{const e=s;e.length||uc.forEach(({id:t})=>{Zf(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:[n&&e(Hm,{title:n,required:o}),e(Qf,{$isVertical:r,$hasError:!!i,children:uc.map(t=>{const r=Zf(t.id,a),n=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(Ip,{title:t.value,disabled:!r||c&&n,value:n,onChange:e=>((e,t)=>{const r=e,n=t?[...s,r]:s.filter(e=>e!==r);l(n),d(1===n.length)})(t.id,e)},t.id):null})}),!!i&&e(Ri,{children:i})]})},ty=n.div`
1497
+ `,ey=(e,t)=>!t?.length||!!t?.find(t=>t===e),ty=({isVertical:r,title:n="Monitors",required:o,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Ht(1===s.length),p=Vt(JSON.stringify(s));Xt(()=>{const e=s;e.length||hc.forEach(({id:t})=>{ey(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:[n&&e(Xm,{title:n,required:o}),e(Zf,{$isVertical:r,$hasError:!!i,children:hc.map(t=>{const r=ey(t.id,a),n=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(Np,{title:t.value,disabled:!r||c&&n,value:n,onChange:e=>((e,t)=>{const r=e,n=t?[...s,r]:s.filter(e=>e!==r);l(n),d(1===n.length)})(t.id,e)},t.id):null})}),!!i&&e(Oi,{children:i})]})},ry=n.div`
1498
1498
  display: flex;
1499
1499
  gap: 8px;
1500
1500
  align-items: center;
1501
- `,ry=n(ed)`
1501
+ `,ny=n(td)`
1502
1502
  display: flex;
1503
1503
  align-items: center;
1504
1504
  justify-content: center;
1505
1505
  gap: 8px;
1506
1506
  min-width: 90px;
1507
- `,ny=({buttons:r})=>{const n=i(),o=({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:n.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(ty,{children:r.map((r,n)=>e(ap,{text:r.tooltip||"",children:t(ry,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[o({button:r,index:n})&&a({button:r,rotate:0}),r.label,!o({button:r,index:n})&&a({button:r,rotate:180})]},n)},n))})},oy=n.div`
1507
+ `,oy=({buttons:r})=>{const n=i(),o=({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:n.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(ry,{children:r.map((r,n)=>e(sp,{text:r.tooltip||"",children:t(ny,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[o({button:r,index:n})&&a({button:r,rotate:0}),r.label,!o({button:r,index:n})&&a({button:r,rotate:180})]},n)},n))})},iy=n.div`
1508
1508
  width: 100%;
1509
1509
  height: 100%;
1510
1510
 
@@ -1512,26 +1512,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1512
1512
  animation: none !important;
1513
1513
  transition: none !important;
1514
1514
  }
1515
- `,iy=({width:t="100%",height:r="100%",gap:n=0,elements:o,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Vt(null),l=Gt(()=>n?o.map((t,r)=>e("div",{style:{paddingBottom:n},children:t},`scroll-y-item-${r}`)):o,[o,n]),c=Kt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(yr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(oy,{children:d}):d},ay=n.div`
1515
+ `,ay=({width:t="100%",height:r="100%",gap:n=0,elements:o,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Vt(null),l=Gt(()=>n?o.map((t,r)=>e("div",{style:{paddingBottom:n},children:t},`scroll-y-item-${r}`)):o,[o,n]),c=Kt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(xr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(iy,{children:d}):d},sy=n.div`
1516
1516
  display: flex;
1517
1517
  justify-content: space-between;
1518
1518
  align-items: center;
1519
1519
  gap: 16px;
1520
- `,sy=n.div`
1520
+ `,ly=n.div`
1521
1521
  display: flex;
1522
1522
  flex-direction: column;
1523
1523
  gap: 4px;
1524
- `,ly=n.div`
1524
+ `,cy=n.div`
1525
1525
  display: flex;
1526
1526
  align-items: center;
1527
1527
  gap: 8px;
1528
- `,cy=n(Ti)``,dy=n(Ti)``,py=({title:r,description:n,badgeLabel:o,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(ay,{children:[t(sy,{children:[t(ly,{children:[i&&e(i,{size:l}),e(cy,{weight:300,size:l,children:r}),void 0!==o&&e(Jc,{label:o,filled:!!o})]}),e(dy,{weight:200,opacity:.8,size:c,children:n})]}),a&&e("div",{children:a})]})},uy=n.div`
1528
+ `,dy=n(Ii)``,py=n(Ii)``,uy=({title:r,description:n,badgeLabel:o,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(sy,{children:[t(ly,{children:[t(cy,{children:[i&&e(i,{size:l}),e(dy,{weight:300,size:l,children:r}),void 0!==o&&e(Yc,{label:o,filled:!!o})]}),e(py,{weight:200,opacity:.8,size:c,children:n})]}),a&&e("div",{children:a})]})},hy=n.div`
1529
1529
  position: relative;
1530
1530
  gap: 0;
1531
1531
  z-index: 0;
1532
1532
  display: grid;
1533
1533
  grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1534
- `,hy=n.button`
1534
+ `,my=n.button`
1535
1535
  flex: 1;
1536
1536
  display: flex;
1537
1537
  align-items: center;
@@ -1545,7 +1545,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1545
1545
  &:hover {
1546
1546
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1547
1547
  }
1548
- `,my=n.div`
1548
+ `,gy=n.div`
1549
1549
  position: absolute;
1550
1550
  top: ${({$y:e})=>e}px;
1551
1551
  left: ${({$x:e})=>e}px;
@@ -1555,85 +1555,85 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1555
1555
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1556
1556
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1557
1557
  transition: all 0.3s;
1558
- `,gy=({options:r=[],selected:n,setSelected:o})=>{const i=r.findIndex(e=>e.value===n),[a,s]=Ht(r[i]?.selectedBgColor||""),[l,c]=Ht({width:0,height:0}),[d,p]=Ht({x:0,y:0}),u=Vt(null);return Xt(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[n,i]),t(uy,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=n===l;return t(hy,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{o(l),s(c||"")},children:[i&&e(i,{}),a&&e(Ti,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(my,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},fy=n(ed)`
1558
+ `,fy=({options:r=[],selected:n,setSelected:o})=>{const i=r.findIndex(e=>e.value===n),[a,s]=Ht(r[i]?.selectedBgColor||""),[l,c]=Ht({width:0,height:0}),[d,p]=Ht({x:0,y:0}),u=Vt(null);return Xt(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[n,i]),t(hy,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=n===l;return t(my,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{o(l),s(c||"")},children:[i&&e(i,{}),a&&e(Ii,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(gy,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},yy=n(td)`
1559
1559
  gap: 8px;
1560
1560
  text-transform: none;
1561
1561
  text-decoration: none;
1562
1562
  border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1563
1563
  &.not-selected {
1564
- background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Uc["060"]};
1564
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+jc["060"]};
1565
1565
  &:hover {
1566
1566
  background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1567
1567
  }
1568
1568
  }
1569
1569
  &.selected {
1570
- background-color: ${({theme:e})=>e.colors.majestic_blue+Uc["030"]};
1570
+ background-color: ${({theme:e})=>e.colors.majestic_blue+jc["030"]};
1571
1571
  }
1572
- `,yy=n(Ti)`
1572
+ `,xy=n(Ii)`
1573
1573
  white-space: nowrap;
1574
1574
  overflow: hidden;
1575
1575
  text-overflow: ellipsis;
1576
1576
  font-size: 14px;
1577
- `,xy=({label:r,onClick:n,icon:o,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(fy,{onClick:n,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[o&&e("div",{children:e(o,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(yy,{children:r}),c&&e("div",{children:e(yt,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(Jc,{label:s,filled:l||c})]})},by=n.div`
1577
+ `,by=({label:r,onClick:n,icon:o,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(yy,{onClick:n,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[o&&e("div",{children:e(o,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(xy,{children:r}),c&&e("div",{children:e(yt,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(Yc,{label:s,filled:l||c})]})},vy=n.div`
1578
1578
  display: flex;
1579
1579
  flex-direction: column;
1580
1580
  gap: 16px;
1581
1581
  ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1582
- `,vy=n.div`
1582
+ `,$y=n.div`
1583
1583
  display: flex;
1584
1584
  align-items: center;
1585
1585
  gap: 16px;
1586
- `,$y=n.div`
1586
+ `,wy=n.div`
1587
1587
  width: 50px;
1588
1588
  height: 50px;
1589
1589
  border-radius: 8px;
1590
1590
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1591
1591
  background-size: 200% 100%;
1592
- animation: ${Gc} 10s infinite linear;
1593
- `,wy=n(Fo)`
1592
+ animation: ${Vc} 10s infinite linear;
1593
+ `,Sy=n(Lo)`
1594
1594
  flex: 1;
1595
1595
  gap: 12px;
1596
- `,Sy=n.div`
1596
+ `,ky=n.div`
1597
1597
  width: ${({$width:e})=>e};
1598
1598
  height: 16px;
1599
1599
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1600
1600
  background-size: 200% 100%;
1601
- animation: ${Gc} 1.5s infinite linear;
1601
+ animation: ${Vc} 1.5s infinite linear;
1602
1602
  border-radius: 4px;
1603
- `,ky=({size:r=5,maxWidth:n})=>e(by,{$maxWidth:n,children:[...Array(r)].map((r,n)=>t(vy,{children:[e($y,{}),t(wy,{children:[e(Sy,{$width:"80%"}),e(Sy,{$width:"100%"})]})]},n))});var Cy;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Cy||(Cy={}));const Ey=n.div`
1603
+ `,Cy=({size:r=5,maxWidth:n})=>e(vy,{$maxWidth:n,children:[...Array(r)].map((r,n)=>t($y,{children:[e(wy,{}),t(Sy,{children:[e(ky,{$width:"80%"}),e(ky,{$width:"100%"})]})]},n))});var Ey;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Ey||(Ey={}));const Ay=n.div`
1604
1604
  display: flex;
1605
1605
  flex-direction: column;
1606
1606
  gap: 32px;
1607
- `,Ay=n.div`
1607
+ `,Dy=n.div`
1608
1608
  display: flex;
1609
1609
  gap: 16px;
1610
1610
  padding: 8px;
1611
- opacity: ${({$state:e})=>e===Cy.Active?1:e===Cy.Disabled?.5:.8};
1611
+ opacity: ${({$state:e})=>e===Ey.Active?1:e===Ey.Disabled?.5:.8};
1612
1612
  transition: all 0.3s;
1613
- `,Dy=n(Po)`
1613
+ `,Ty=n(Fo)`
1614
1614
  justify-content: center;
1615
1615
  width: 24px;
1616
1616
  height: 24px;
1617
1617
  border-radius: 32px;
1618
- border: ${({theme:e,$state:t})=>t===Cy.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1619
- opacity: ${({$state:e})=>e===Cy.Finished?.8:1};
1620
- `,Ty=n(Fo)`
1618
+ border: ${({theme:e,$state:t})=>t===Ey.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1619
+ opacity: ${({$state:e})=>e===Ey.Finished?.8:1};
1620
+ `,Iy=n(Lo)`
1621
1621
  justify-content: center;
1622
1622
  gap: 8px;
1623
- `,Iy=n(Ti)``,Ny=n(Ti)``,Ry=({data:r,currentStep:n=0})=>{const[o,i]=Ht([]);return Xt(()=>{i(r.map((e,t)=>t<n-1?{...e,state:Cy.Finished,subtitle:e.subtitle||Vr.Success}:t===n-1?{...e,state:Cy.Active,subtitle:""}:{...e,state:Cy.Disabled,subtitle:""}))},[n,r]),e(Ey,{children:o.map((r,n)=>t(Ay,{$state:r.state,children:[e(Dy,{$state:r.state,children:[Cy.Active,Cy.Disabled].includes(r.state)?e(Ti,{size:12,children:r.stepNumber}):r.state===Cy.Finished?e(yt,{size:20}):null}),t(Ty,{children:[e(Iy,{family:"secondary",children:r.title}),r.subtitle&&e(Ny,{size:10,weight:300,children:r.subtitle})]})]},n))})},Oy=n(Po)`
1623
+ `,Ny=n(Ii)``,Ry=n(Ii)``,Oy=({data:r,currentStep:n=0})=>{const[o,i]=Ht([]);return Xt(()=>{i(r.map((e,t)=>t<n-1?{...e,state:Ey.Finished,subtitle:e.subtitle||Kr.Success}:t===n-1?{...e,state:Ey.Active,subtitle:""}:{...e,state:Ey.Disabled,subtitle:""}))},[n,r]),e(Ay,{children:o.map((r,n)=>t(Dy,{$state:r.state,children:[e(Ty,{$state:r.state,children:[Ey.Active,Ey.Disabled].includes(r.state)?e(Ii,{size:12,children:r.stepNumber}):r.state===Ey.Finished?e(yt,{size:20}):null}),t(Iy,{children:[e(Ny,{family:"secondary",children:r.title}),r.subtitle&&e(Ry,{size:10,weight:300,children:r.subtitle})]})]},n))})},_y=n(Fo)`
1624
1624
  width: fit-content;
1625
1625
  gap: 6px;
1626
1626
  padding: 6px 12px;
1627
1627
  border-radius: 360px;
1628
1628
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
1629
- `,_y=n(Ti)`
1629
+ `,Py=n(Ii)`
1630
1630
  color: ${({$type:e,theme:t})=>t.text[e]};
1631
- `,Py=({type:r=Vr.Info,icon:n,title:o,size:i,family:a,children:s,...l})=>t(Oy,{$type:r,children:[n&&e(n,{}),e(_y,{$type:r,size:i||12,family:a||"secondary",...l,children:s||o})]}),Fy=n.div`
1631
+ `,Fy=({type:r=Kr.Info,icon:n,title:o,size:i,family:a,children:s,...l})=>t(_y,{$type:r,children:[n&&e(n,{}),e(Py,{$type:r,size:i||12,family:a||"secondary",...l,children:s||o})]}),Ly=n.div`
1632
1632
  display: flex;
1633
1633
  flex-direction: column;
1634
1634
  position: relative;
1635
1635
  width: 100%;
1636
- `,Ly=n.div`
1636
+ `,zy=n.div`
1637
1637
  width: 100%;
1638
1638
  display: flex;
1639
1639
  align-items: center;
@@ -1661,7 +1661,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1661
1661
  &:focus-within {
1662
1662
  border-color: ${({theme:e})=>e.colors.secondary};
1663
1663
  }
1664
- `,zy=n.textarea`
1664
+ `,My=n.textarea`
1665
1665
  flex: 1;
1666
1666
  border: none;
1667
1667
  outline: none;
@@ -1685,13 +1685,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1685
1685
  background-color: ${({theme:e})=>e.colors.border};
1686
1686
  cursor: not-allowed;
1687
1687
  }
1688
- `,My=({errorMessage:r,title:n,tooltip:o,required:i,onChange:a,name:s,...l})=>{const c=Vt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Fy,{children:[e(Hm,{title:n,required:i,tooltip:o}),e(Ly,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(zy,{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(Ri,{children:r})]})},By=n.div`
1688
+ `,By=({errorMessage:r,title:n,tooltip:o,required:i,onChange:a,name:s,...l})=>{const c=Vt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Ly,{children:[e(Xm,{title:n,required:i,tooltip:o}),e(zy,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(My,{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(Oi,{children:r})]})},Uy=n.div`
1689
1689
  display: flex;
1690
1690
  align-items: center;
1691
1691
  gap: 12px;
1692
1692
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1693
1693
  opacity: ${({$disabled:e})=>e?.6:1};
1694
- `,Uy=n.div`
1694
+ `,jy=n.div`
1695
1695
  width: 24px;
1696
1696
  height: 12px;
1697
1697
  border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
@@ -1713,11 +1713,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1713
1713
  transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1714
1714
  transition: background-color 0.3s, transform 0.3s;
1715
1715
  }
1716
- `,jy=({title:r,tooltip:n,initialValue:o=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Ht(o);Xt(()=>d(o),[o]);return t(By,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(Uy,{$disabled:a,$isActive:c}),(r||n)&&e(ap,{text:n,withIcon:!0,children:r&&e(Ti,{size:14,children:r})}),l&&e(Uy,{$disabled:a,$isActive:c})]})};var Wy={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 Hy=n.div`
1716
+ `,Wy=({title:r,tooltip:n,initialValue:o=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Ht(o);Xt(()=>d(o),[o]);return t(Uy,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(jy,{$disabled:a,$isActive:c}),(r||n)&&e(sp,{text:n,withIcon:!0,children:r&&e(Ii,{size:14,children:r})}),l&&e(jy,{$disabled:a,$isActive:c})]})};var Hy={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 Xy=n.div`
1717
1717
  width: ${({$width:e})=>e}px;
1718
1718
  height: ${({$height:e})=>e}px;
1719
1719
  position: relative;
1720
- `,Xy=({width:t=620})=>{const{darkMode:r}=i(),n=t/(620/220);return e(Hy,{$width:t,$height:n,children:e(fr,{autoplay:!0,loop:!0,animationData:Wy,style:{width:n,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:r?"invert(0)":"invert(1)"}})})},Gy=n.div`
1720
+ `,Gy=({width:t=620})=>{const{darkMode:r}=i(),n=t/(620/220);return e(Xy,{$width:t,$height:n,children:e(yr,{autoplay:!0,loop:!0,animationData:Hy,style:{width:n,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:r?"invert(0)":"invert(1)"}})})},Vy=n.div`
1721
1721
  display: flex;
1722
1722
  align-items: center;
1723
1723
  justify-content: center;
@@ -1727,17 +1727,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1727
1727
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1728
1728
  border-radius: 100px;
1729
1729
  background-color: ${({$backgroundColor:e})=>e};
1730
- `,Vy=({label:r,leftIcon:n,rightIcon:o,tooltip:a,status:s=Jr.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(),y=s?[Jr.Disabled].includes(s)?oo(g,s,c?"400":"700"):[Jr.Unknown].includes(s)?oo(g,s,"600"):oo(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],x=p||(c&&![Jr.Unknown].includes(s)?y:[Jr.Disabled].includes(s)?g.v2.colors.grey[400]:[Vr.Error,Vr.Warning,Vr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![Jr.Unknown].includes(s)?[Jr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:y);return e(ap,{text:a,fullWidth:m,children:t(Gy,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[n&&e(n,{fill:x,size:14}),f&&e(ho,{color:x,size:d||so.XXS,nowrap:!0,children:f}),o&&e(o,{fill:x,size:14})]})})},Ky=n.span`
1730
+ `,Ky=({label:r,leftIcon:n,rightIcon:o,tooltip:a,status:s=Yr.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(),y=Jr.Loading===s,x=s?[Yr.Disabled,Jr.Disabled,Jr.Loading].includes(s)?io(g,s,c?"400":"700"):[Yr.Unknown].includes(s)?io(g,s,"600"):io(g,s,c?l?"500":"300":l?"700":"500"):g.v2.colors.grey[200],b=p||(c&&![Yr.Unknown].includes(s)?x:[Yr.Disabled,Jr.Disabled,Jr.Loading].includes(s)?g.v2.colors.grey[400]:[Kr.Error,Kr.Warning,Kr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),v=u||(c&&![Yr.Unknown].includes(s)?[Yr.Disabled,Jr.Disabled,Jr.Loading].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[700]:x);return e(sp,{text:a,fullWidth:m,children:t(Vy,{$backgroundColor:v,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[y?e(Ko,{withSpinnerOld:!0}):n?e(n,{fill:b,size:14}):null,f?y?e(Ko,{withGradient:!0,title:f,titleSize:d||lo.XXS}):e(mo,{color:b,size:d||lo.XXS,nowrap:!0,children:f}):null,o&&e(o,{fill:b,size:14})]})})},qy=n.span`
1731
1731
  font-family: ${({theme:e})=>e.font_family.primary};
1732
1732
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1733
1733
  font-weight: 400;
1734
1734
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1735
- `,qy=n.span`
1735
+ `,Jy=n.span`
1736
1736
  font-family: ${({theme:e})=>e.font_family.primary};
1737
1737
  font-size: 14px;
1738
1738
  font-weight: 400;
1739
1739
  color: ${({theme:e})=>e.v2.colors.red[500]};
1740
- `,Jy=({label:r,tooltip:n,required:o,badge:i,width:a,smallAndDark:s})=>r||n||o?t(Po,{$width:a,$justifyContent:"space-between",children:[r&&e(Ky,{$smallAndDark:s,children:r}),t(Po,{$gap:4,children:[i&&e(Vy,{...i,textSize:so.XXXS}),o&&e(qy,{children:"*"}),n&&e(ap,{text:n,withIcon:!0})]})]}):null,Yy=({errorMessage:r,warnMessage:n,helpMessage:o})=>{const a=i(),s=r?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return r||n||o?t(Po,{$alignItems:"center",children:[l&&e(Fo,{children:l}),e(ho,{size:so.XXS,weight:400,color:s,children:r||n||o})]}):null},Qy=n.div`
1740
+ `,Yy=({label:r,tooltip:n,required:o,badge:i,width:a,smallAndDark:s})=>r||n||o?t(Fo,{$width:a,$justifyContent:"space-between",children:[r&&e(qy,{$smallAndDark:s,children:r}),t(Fo,{$gap:4,children:[i&&e(Ky,{...i,textSize:lo.XXXS}),o&&e(Jy,{children:"*"}),n&&e(sp,{text:n,withIcon:!0})]})]}):null,Qy=({errorMessage:r,warnMessage:n,helpMessage:o})=>{const a=i(),s=r?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return r||n||o?t(Fo,{$alignItems:"center",children:[l&&e(Lo,{children:l}),e(mo,{size:lo.XXS,weight:400,color:s,children:r||n||o})]}):null},Zy=n.div`
1741
1741
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
1742
1742
 
1743
1743
  display: flex;
@@ -1755,7 +1755,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1755
1755
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1756
1756
  }
1757
1757
  `}
1758
- `,Zy=n.input`
1758
+ `,ex=n.input`
1759
1759
  max-width: ${({$maxWidth:e})=>e||"unset"};
1760
1760
  width: ${({$width:e})=>e||"unset"};
1761
1761
 
@@ -1781,12 +1781,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1781
1781
  overflow: hidden;
1782
1782
  text-overflow: ellipsis;
1783
1783
  white-space: nowrap;
1784
- `,ex=n.div`
1784
+ `,tx=n.div`
1785
1785
  display: flex;
1786
1786
  align-items: center;
1787
1787
  justify-content: center;
1788
1788
  cursor: pointer;
1789
- `,tx=({label:r,required:n,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Gr.Text,name:m,value:g,onChange:f,disabled:y,maxWidth:x,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Gr.Password,[C,E]=Ht(!1),[A,D]=Ht(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:y?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(Fo,{$width:b,$gap:6,children:[e(Jy,{label:r,tooltip:o,required:n,badge:a}),t(Qy,{$small:v,$disabled:y,$error:T,onClick:y?void 0:$,children:[s?e(s,{size:N,fill:I}):null,e(Zy,{"data-id":m,type:C||h===Gr.Number?Gr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Gr.Number&&(e.target.value=fi(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:y,$maxWidth:x,$width:b,$small:v,...w}),k?e(ex,{onClick:()=>E(e=>!e),children:e(C?Dt:Tt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(Yy,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var rx,nx;!function(e){e.S="s",e.L="l"}(rx||(rx={})),function(e){e.Filled="filled",e.Underline="underline"}(nx||(nx={}));const ox=n.div`
1789
+ `,rx=({label:r,required:n,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Vr.Text,name:m,value:g,onChange:f,disabled:y,maxWidth:x,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Vr.Password,[C,E]=Ht(!1),[A,D]=Ht(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:y?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(Lo,{$width:b,$gap:6,children:[e(Yy,{label:r,tooltip:o,required:n,badge:a}),t(Zy,{$small:v,$disabled:y,$error:T,onClick:y?void 0:$,children:[s?e(s,{size:N,fill:I}):null,e(ex,{"data-id":m,type:C||h===Vr.Number?Vr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Vr.Number&&(e.target.value=yi(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:y,$maxWidth:x,$width:b,$small:v,...w}),k?e(tx,{onClick:()=>E(e=>!e),children:e(C?Dt:Tt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(Qy,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var nx,ox;!function(e){e.S="s",e.L="l"}(nx||(nx={})),function(e){e.Filled="filled",e.Underline="underline"}(ox||(ox={}));const ix=n.div`
1790
1790
  display: flex;
1791
1791
  align-items: center;
1792
1792
  gap: 2px;
@@ -1794,20 +1794,21 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1794
1794
  border-radius: 8px;
1795
1795
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1796
1796
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1797
- `,ix=n.button`
1797
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
1798
+ `,ax=n.button`
1798
1799
  flex: 1;
1799
1800
  display: flex;
1800
1801
  align-items: center;
1801
1802
  justify-content: center;
1802
1803
  gap: 8px;
1803
- padding: ${({$size:e})=>e===rx.S?"4px 8px":"8px 16px"};
1804
+ padding: ${({$size:e})=>e===nx.S?"4px 8px":"8px 16px"};
1804
1805
  border-radius: 6px;
1805
1806
  border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
1806
1807
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1807
1808
 
1808
1809
  ${({$disabled:e,$isSelected:t,$selectedBgColor:r,theme:n})=>e?o`
1809
1810
  cursor: not-allowed;
1810
- background-color: ${t?(r||n.v2.colors.black[500])+Uc["040"]:"transparent"};
1811
+ background-color: ${t?(r||n.v2.colors.black[500])+jc["040"]:"transparent"};
1811
1812
  `:o`
1812
1813
  cursor: pointer;
1813
1814
  background-color: ${t?r||n.v2.colors.black[500]:"transparent"};
@@ -1815,10 +1816,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1815
1816
  background-color: ${t?r||n.v2.colors.black[500]:n.v2.colors.silver[800]};
1816
1817
  }
1817
1818
  `}
1818
- `,ax=n.div`
1819
+ `,sx=n.div`
1819
1820
  display: flex;
1820
1821
  align-items: stretch;
1821
- `,sx=n.button`
1822
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
1823
+ `,lx=n.button`
1822
1824
  display: flex;
1823
1825
  height: 34px;
1824
1826
  padding: 8px 12px 8px 16px;
@@ -1837,7 +1839,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1837
1839
  &:hover {
1838
1840
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
1839
1841
  }
1840
- `,lx=({"data-id":n,size:o=rx.L,variant:a=nx.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===nx.Underline,h=u?sx:ix;return e(u?ax:ox,{"data-id":n,children:s.map(({value:n,label:i,icon:a,tooltip:s,selectedBgColor:m,selectedBorderColor:g,disabled:f},y)=>{const x=l===n,b=f||d,v=b?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],$=o===rx.S?so.XXS:so.XS,w=x?500:400,S=t(r,{children:[a&&e(a,{fill:v}),i&&e(ho,{size:$,weight:w,color:v,nowrap:!0,children:i})]});return e(h,{onClick:()=>!b&&c(n),$disabled:b,$isSelected:x,$size:o,...!u&&{$selectedBgColor:m,$selectedBorderColor:g},children:s?e(ap,{text:s,withIcon:!0,children:S}):S},`segment-${i||y}-${n}`)})})},cx=n.div`
1842
+ `,cx=({"data-id":n,size:o=nx.L,variant:a=ox.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:p})=>{const u=i(),h=a===ox.Underline,m=h?lx:ax;return e(h?sx:ix,{"data-id":n,$fullWidth:p,children:s.map(({value:n,label:i,icon:a,tooltip:s,selectedBgColor:p,selectedBorderColor:g,disabled:f},y)=>{const x=l===n,b=f||d,v=b?u.v2.colors.grey[400]:h||x?u.v2.colors.white[500]:u.v2.colors.grey[300],$=o===nx.S?lo.XXS:lo.XS,w=x?500:400,S=t(r,{children:[a&&e(a,{fill:v}),i&&e(mo,{size:$,weight:w,color:v,nowrap:!0,children:i})]});return e(m,{onClick:()=>!b&&c(n),$disabled:b,$isSelected:x,$size:o,...!h&&{$selectedBgColor:p,$selectedBorderColor:g},children:s?e(sp,{text:s,withIcon:!0,children:S}):S},`segment-${i||y}-${n}`)})})},dx=n.div`
1841
1843
  box-sizing: border-box !important;
1842
1844
  width: ${({$width:e})=>e??"fit-content"};
1843
1845
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -1851,7 +1853,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1851
1853
  border: none;
1852
1854
  border-radius: 6px;
1853
1855
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:n,theme:o})=>{const i=r??o.v2.colors.silver[800],a=n??o.v2.colors.silver[700];return e||t?a:i}};
1854
- `,dx=n.input`
1856
+ `,px=n.input`
1855
1857
  min-width: 0;
1856
1858
  flex: 1;
1857
1859
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -1868,7 +1870,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1868
1870
  overflow: hidden;
1869
1871
  text-overflow: ellipsis;
1870
1872
  white-space: nowrap;
1871
- `,px=({"data-id":r,value:n,onChange:o,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:p,emphasizeBackgroundColor:u})=>{const h=i(),[m,g]=Ht(!1),[f,y]=Ht(!1),[x,b]=Ht(!1),v=m?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,w=Gt(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),S=Gt(()=>l||($&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,$,w]);return t(cx,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!x,$isActive:m,$idleBackgroundColor:p,$emphasizeBackgroundColor:u,children:[e(It,{size:18,fill:v}),e(dx,{"data-id":r??"search",name:"search",type:"text",placeholder:S,value:n,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>{g(!0),a?.()},onBlur:()=>{g(!1),s?.()},$textColor:v}),$&&e("div",{style:{flexShrink:0},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:e(lx,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected,size:rx.S})})]})};var ux,hx;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(ux||(ux={})),function(e){e.S="small",e.M="medium",e.L="large"}(hx||(hx={}));const mx=n.button`
1873
+ `,ux=({"data-id":r,value:n,onChange:o,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:p,emphasizeBackgroundColor:u})=>{const h=i(),[m,g]=Ht(!1),[f,y]=Ht(!1),[x,b]=Ht(!1),v=m?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,w=Gt(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),S=Gt(()=>l||($&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,$,w]);return t(dx,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!x,$isActive:m,$idleBackgroundColor:p,$emphasizeBackgroundColor:u,children:[e(It,{size:18,fill:v}),e(px,{"data-id":r??"search",name:"search",type:"text",placeholder:S,value:n,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>{g(!0),a?.()},onBlur:()=>{g(!1),s?.()},$textColor:v}),$&&e("div",{style:{flexShrink:0},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:e(cx,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected,size:nx.S})})]})};var hx,mx;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(hx||(hx={})),function(e){e.S="small",e.M="medium",e.L="large"}(mx||(mx={}));const gx=n.button`
1872
1874
  display: flex;
1873
1875
  align-items: center;
1874
1876
  justify-content: center;
@@ -1878,14 +1880,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1878
1880
  `}
1879
1881
  border: none;
1880
1882
  border-radius: 6px;
1881
- ${({$size:e,$hasLabel:t})=>e===hx.S?o`
1883
+ ${({$size:e,$hasLabel:t})=>e===mx.S?o`
1882
1884
  height: 32px;
1883
1885
  ${t?o`
1884
1886
  padding: 8px 16px;
1885
1887
  `:o`
1886
1888
  width: 32px;
1887
1889
  `}
1888
- `:e===hx.M?o`
1890
+ `:e===mx.M?o`
1889
1891
  height: 38px;
1890
1892
  ${t?o`
1891
1893
  padding: 8px 18px;
@@ -1910,7 +1912,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1910
1912
  ${({$withShadow:e})=>e?o`
1911
1913
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1912
1914
  `:""}
1913
- ${({$variant:e})=>e===ux.Primary?o`
1915
+ ${({$variant:e})=>e===hx.Primary?o`
1914
1916
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1915
1917
  &:hover {
1916
1918
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -1918,7 +1920,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1918
1920
  &:active {
1919
1921
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1920
1922
  }
1921
- `:e===ux.Secondary?o`
1923
+ `:e===hx.Secondary?o`
1922
1924
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1923
1925
  &:hover {
1924
1926
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -1926,7 +1928,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1926
1928
  &:active {
1927
1929
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1928
1930
  }
1929
- `:e===ux.Text?o`
1931
+ `:e===hx.Text?o`
1930
1932
  background-color: transparent;
1931
1933
  &:hover {
1932
1934
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -1936,7 +1938,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1936
1938
  }
1937
1939
  `:""}
1938
1940
  }
1939
- `,gx=jt(({"data-id":n,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=ux.Primary,size:p=hx.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:y,onClick:x,...b},v)=>{const $=i(),w=u||(p===hx.L?18:16),S=p===hx.L?so.S:so.XS,k=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Ht(!1),A=Kt(async e=>{e.stopPropagation(),E(!0),await(x?.(e)),E(!1)},[x]);return e(mx,{ref:v,"data-id":n,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!o,disabled:y,onClick:h||C?void 0:A,...b,children:e(ap,{text:a,withIcon:!s,children:h||C?o?e(Yf,{size:$.v2.text.size[S],textColor:k}):e(Gp,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),o?e(ho,{size:S,weight:500,color:k,nowrap:!0,children:o}):null,c&&e(c,{size:w,fill:k})]})})})});gx.displayName=gx.name;const fx=n.div`
1941
+ `,fx=jt(({"data-id":n,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=hx.Primary,size:p=mx.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:y,onClick:x,...b},v)=>{const $=i(),w=u||(p===mx.L?18:16),S=p===mx.L?lo.S:lo.XS,k=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Ht(!1),A=Kt(async e=>{e.stopPropagation(),E(!0),await(x?.(e)),E(!1)},[x]);return e(gx,{ref:v,"data-id":n,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!o,disabled:y,onClick:h||C?void 0:A,...b,children:e(sp,{text:a,withIcon:!s,children:h||C?o?e(Qf,{size:$.v2.text.size[S],textColor:k}):e(Vp,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),o?e(mo,{size:S,weight:500,color:k,nowrap:!0,children:o}):null,c&&e(c,{size:w,fill:k})]})})})});fx.displayName=fx.name;const yx=n.div`
1940
1942
  display: flex;
1941
1943
  align-items: center;
1942
1944
  justify-content: center;
@@ -1945,31 +1947,31 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1945
1947
  padding: 8px;
1946
1948
  border-radius: 100%;
1947
1949
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1948
- `,yx=({icon:r=bt,hideIcon:n=!1,title:o="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Fo,{$gap:12,$alignItems:"center",children:[!n&&e(fx,{children:e(r,{size:32,fill:l})}),t(Fo,{$gap:4,$alignItems:"center",children:[e(ho,{size:so.S,align:"center",children:o}),a&&e(ho,{size:so.XXS,align:"center",color:l,children:a})]}),s&&e(gx,{variant:ux.Secondary,...s})]})};var xx;!function(e){e.S="small",e.L="large"}(xx||(xx={}));const bx=n.div`
1950
+ `,xx=({icon:r=bt,hideIcon:n=!1,title:o="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Lo,{$gap:12,$alignItems:"center",children:[!n&&e(yx,{children:e(r,{size:32,fill:l})}),t(Lo,{$gap:4,$alignItems:"center",children:[e(mo,{size:lo.S,align:"center",children:o}),a&&e(mo,{size:lo.XXS,align:"center",color:l,children:a})]}),s&&e(fx,{variant:hx.Secondary,...s})]})};var bx;!function(e){e.S="small",e.L="large"}(bx||(bx={}));const vx=n.div`
1949
1951
  width: fit-content;
1950
1952
  display: flex;
1951
1953
  align-items: center;
1952
1954
  gap: 8px;
1953
1955
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1954
- `,vx=n.div`
1955
- width: ${({$size:e})=>e===xx.S?"16px":"20px"};
1956
- height: ${({$size:e})=>e===xx.S?"16px":"20px"};
1956
+ `,$x=n.div`
1957
+ width: ${({$size:e})=>e===bx.S?"16px":"20px"};
1958
+ height: ${({$size:e})=>e===bx.S?"16px":"20px"};
1957
1959
  display: flex;
1958
1960
  align-items: center;
1959
1961
  justify-content: center;
1960
1962
  border-radius: 4px;
1961
1963
  border: 1px solid ${({$borderColor:e})=>e};
1962
1964
  background-color: ${({$backgroundColor:e})=>e};
1963
- `,$x=({name:r,label:n,tooltip:o,badge:a,size:s=xx.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,y]=Ht(!1),x=c||d,b=s===xx.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=x?"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]:x?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(Fo,{$gap:4,children:[t(Po,{$justifyContent:"space-between",children:[t(bx,{"data-id":r||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(vx,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(vt,{size:b,fill:v}):d?e(yt,{size:b,fill:v}):null}),n&&e(ho,{size:s===xx.S?so.XXS:so.XS,nowrap:!0,children:n})]}),e(Jy,{tooltip:o,badge:a})]}),e(Yy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},wx=n.div`
1965
+ `,wx=({name:r,label:n,tooltip:o,badge:a,size:s=bx.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,y]=Ht(!1),x=c||d,b=s===bx.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=x?"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]:x?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(Lo,{$gap:4,children:[t(Fo,{$justifyContent:"space-between",children:[t(vx,{"data-id":r||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e($x,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(vt,{size:b,fill:v}):d?e(yt,{size:b,fill:v}):null}),n&&e(mo,{size:s===bx.S?lo.XXS:lo.XS,nowrap:!0,children:n})]}),e(Yy,{tooltip:o,badge:a})]}),e(Qy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Sx=n.div`
1964
1966
  display: flex;
1965
- flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
1966
- gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
1967
- `,Sx=({direction:r=Fr.Vertical,title:n,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===xx.S?so.XXS:so.XS,p=Gt(()=>s.every(e=>l[e.id]),[s,l]),u=Gt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const n={...r};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return t(wx,{$direction:r,children:[n&&a?e($x,{label:n,partiallyChecked:u,value:p,onChange:e=>h("",e),size:o}):n&&!a?e(ho,{size:d,children:n}):null,s.map(t=>e($x,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:o},`${n}-checkbox-${t.id}`))]})};var kx,Cx;!function(e){e.Left="left",e.Right="right"}(kx||(kx={})),function(e){e.Top="top",e.Bottom="bottom"}(Cx||(Cx={}));const Ex=n.div`
1967
+ flex-direction: ${({$direction:e})=>e===Lr.Horizontal?"row":"column"};
1968
+ gap: ${({$direction:e})=>e===Lr.Horizontal?16:8}px;
1969
+ `,kx=({direction:r=Lr.Vertical,title:n,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===bx.S?lo.XXS:lo.XS,p=Gt(()=>s.every(e=>l[e.id]),[s,l]),u=Gt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const n={...r};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return t(Sx,{$direction:r,children:[n&&a?e(wx,{label:n,partiallyChecked:u,value:p,onChange:e=>h("",e),size:o}):n&&!a?e(mo,{size:d,children:n}):null,s.map(t=>e(wx,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:o},`${n}-checkbox-${t.id}`))]})};var Cx,Ex;!function(e){e.Left="left",e.Right="right"}(Cx||(Cx={})),function(e){e.Top="top",e.Bottom="bottom"}(Ex||(Ex={}));const Ax=n.div`
1968
1970
  position: relative;
1969
1971
  display: flex;
1970
1972
  flex-direction: column;
1971
1973
  gap: 4px;
1972
- `,Ax=n.div`
1974
+ `,Dx=n.div`
1973
1975
  position: fixed;
1974
1976
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
1975
1977
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -1987,7 +1989,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1987
1989
  border-radius: 6px;
1988
1990
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1989
1991
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1990
- `,Dx=n.div`
1992
+ `,Tx=n.div`
1991
1993
  display: flex;
1992
1994
  flex-direction: column;
1993
1995
  gap: 0;
@@ -1995,7 +1997,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
1995
1997
  width: 100%;
1996
1998
  max-height: ${({$maxHeight:e})=>e||"230px"};
1997
1999
  overflow-y: auto;
1998
- `,Tx=n.div`
2000
+ `,Ix=n.div`
1999
2001
  display: flex;
2000
2002
  align-items: center;
2001
2003
  gap: 8px;
@@ -2011,7 +2013,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2011
2013
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
2012
2014
  }
2013
2015
  `}
2014
- `,Ix=({defaultOpen:r,open:n,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:y,isLoading:x,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==n,S=!!f||!!y||!!v,[k,C]=Ht(r??!S),E=w?n:k,A=Kt(e=>{w||C(e),o?.(e)},[w,o]),[D,T]=Ht({x:a||kx.Left,y:s||Cx.Bottom}),I=Vt(null),N=Vt(null),[R,O]=Ht({}),_=Kt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const n=S?8:0;O({top:t===Cx.Bottom?S?r.bottom+n:r.top:void 0,bottom:t===Cx.Top?S?window.innerHeight-r.top+n:window.innerHeight-r.bottom:void 0,left:e===kx.Left?r.left:void 0,right:e===kx.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),P=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?kx.Right:kx.Left),y:s||(e.clientY>window.innerHeight/2?Cx.Top:Cx.Bottom)};T(r),_(r.x,r.y)};Qt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Xt(()=>{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]),Xt(()=>{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 F=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=Ht(""),M=Gt(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t(Ex,{ref:I,children:[p&&e(Jy,{label:p}),f&&e(gx,{...f,fullWidth:m,rightIcon:E?Pt:Ft,onClick:P}),y&&e(dd,{...y,onClick:P}),"function"==typeof v?v({ChevronIcon:E?Pt:Ft,handleClick:P}):v,E&&ur(t(Ax,{ref:N,$coords:R,"data-ignore-outside-click":"true",children:[h&&e(px,{value:L,onChange:z,width:"100%"}),x?e(Vo,{withSpinner:!0,title:"Loading...",titleSize:so.XS}):M.length?e(Dx,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:n,label:o,icon:i,withCheckbox:a}=r,s=c.includes(n);return t(Tx,{"data-id":`option-${n}`,$selected:s&&!a,onClick:()=>F(n),children:[a&&e($x,{value:s,onChange:()=>F(n)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(ho,{size:so.XS,nowrap:!0,color:r.color||lo.Primary,children:o})]},n)})}):e(_o,{$padding:"6px 0",children:e(yx,{hideIcon:!0,title:"No results",subTitle:b})}),u&&!!M.length&&e(gx,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Nx=t=>{const{"data-id":r,options:n,placeholder:o="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ht(""),[c,d]=Ht(!1),p=Gt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Gt(()=>{if(a){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?n.find(e=>e.id===t.value)?.label??"":""},[a,t,n,p]),h=c?s:u,m=Gt(()=>{const e=a?n.map(e=>({...e,withCheckbox:!0})):n;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,n,s]),g=Kt(()=>{l(""),d(!0)},[]),f=Kt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Kt(e=>{d(e),e||l("")},[]),x=Kt(e=>{if(a)return void t.onSelect(e);const r=n.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,n]),b=c&&(i||m.length>0||s.length>0);return e(Ix,{open:b,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:x,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Cx.Bottom,children:e(tx,{name:r,leftIcon:It,placeholder:o,value:h,onChange:f,onFocus:g})})},Rx=n.button`
2016
+ `,Nx=({defaultOpen:r,open:n,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:y,isLoading:x,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==n,S=!!f||!!y||!!v,[k,C]=Ht(r??!S),E=w?n:k,A=Kt(e=>{w||C(e),o?.(e)},[w,o]),[D,T]=Ht({x:a||Cx.Left,y:s||Ex.Bottom}),I=Vt(null);vd(I,()=>A(!1));const[N,R]=Ht({}),O=Kt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const n=S?8:0;R({top:t===Ex.Bottom?S?r.bottom+n:r.top:void 0,bottom:t===Ex.Top?S?window.innerHeight-r.top+n:window.innerHeight-r.bottom:void 0,left:e===Cx.Left?r.left:void 0,right:e===Cx.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),_=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?Cx.Right:Cx.Left),y:s||(e.clientY>window.innerHeight/2?Ex.Top:Ex.Bottom)};T(r),O(r.x,r.y)};Qt(()=>{E&&O(D.x,D.y)},[E,D.x,D.y,O]);const P=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[F,L]=Ht(""),z=Gt(()=>F?l.filter(e=>e?.label?.toLowerCase().includes(F.toLowerCase())):l,[l.length,F]);return t(Ax,{ref:I,children:[p&&e(Yy,{label:p}),f&&e(fx,{...f,fullWidth:m,rightIcon:E?Pt:Ft,onClick:_}),y&&e(pd,{...y,onClick:_}),"function"==typeof v?v({ChevronIcon:E?Pt:Ft,handleClick:_}):v,E&&hr(t(Dx,{$coords:N,"data-ignore-outside-click":"true",children:[h&&e(ux,{value:F,onChange:L,width:"100%"}),x?e(Ko,{withSpinner:!0,title:"Loading...",titleSize:lo.XS}):z.length?e(Tx,{$maxHeight:g,children:z.map(r=>{if(!r)return null;const{id:n,label:o,icon:i,withCheckbox:a}=r,s=c.includes(n);return t(Ix,{"data-id":`option-${n}`,$selected:s&&!a,onClick:()=>P(n),children:[a&&e(wx,{value:s,onChange:()=>P(n)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(mo,{size:lo.XS,nowrap:!0,color:r.color||co.Primary,children:o})]},n)})}):e(Po,{$padding:"6px 0",children:e(xx,{hideIcon:!0,title:"No results",subTitle:b})}),u&&!!z.length&&e(fx,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Rx=t=>{const{"data-id":r,options:n,placeholder:o="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ht(""),[c,d]=Ht(!1),p=Gt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Gt(()=>{if(a){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?n.find(e=>e.id===t.value)?.label??"":""},[a,t,n,p]),h=c?s:u,m=Gt(()=>{const e=a?n.map(e=>({...e,withCheckbox:!0})):n;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,n,s]),g=Kt(()=>{l(""),d(!0)},[]),f=Kt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Kt(e=>{d(e),e||l("")},[]),x=Kt(e=>{if(a)return void t.onSelect(e);const r=n.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,n]),b=c&&(i||m.length>0||s.length>0);return e(Nx,{open:b,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:x,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Ex.Bottom,children:e(rx,{name:r,leftIcon:It,placeholder:o,value:h,onChange:f,onFocus:g})})},Ox=n.button`
2015
2017
  width: 100%;
2016
2018
  padding: 0;
2017
2019
  padding-right: 12px;
@@ -2032,7 +2034,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2032
2034
  cursor: not-allowed;
2033
2035
  opacity: 0.5;
2034
2036
  }
2035
- `,Ox=n.div`
2037
+ `,_x=n.div`
2036
2038
  width: ${({$hasIcon:e})=>e?"56px":"0"};
2037
2039
  height: 56px;
2038
2040
  display: flex;
@@ -2043,41 +2045,41 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2043
2045
  `:o`
2044
2046
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2045
2047
  `}
2046
- `,_x=n.div`
2048
+ `,Px=n.div`
2047
2049
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
2048
2050
  display: flex;
2049
2051
  justify-content: space-between;
2050
2052
  align-items: center;
2051
2053
  gap: 8px;
2052
- `,Px=({label:r,icon:n,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ht(!1);return t(Rx,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Ox,{$hovered:s,$hasIcon:!!n,children:n&&e(n,{size:36})}),t(_x,{$hasIcon:!!n,children:[o?e(Yf,{size:16}):e(ho,{variant:ao.Span,align:"center",children:r}),e(Lt,{rotate:90,size:24})]})]})},Fx=({buttons:t})=>e(Fo,{$gap:12,children:t.map(t=>e(Px,{...t},t.label))});var Lx;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Lx||(Lx={}));const zx=({onAnyClick:t,actions:r})=>e(Po,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Lx.Button:return e(gx,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case Lx.ButtonDropData:return e(Ix,{...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}})}),Mx=({children:t,fullText:r,...n})=>{const o=Vt(null),[i,a]=Ht(!1);Qt(()=>{const e=o.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]),Xt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=o.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(ap,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(ho,{ref:o,...n,children:t})})},Bx=n.div`
2054
+ `,Fx=({label:r,icon:n,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ht(!1);return t(Ox,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(_x,{$hovered:s,$hasIcon:!!n,children:n&&e(n,{size:36})}),t(Px,{$hasIcon:!!n,children:[o?e(Qf,{size:16}):e(mo,{variant:so.Span,align:"center",children:r}),e(Lt,{rotate:90,size:24})]})]})},Lx=({buttons:t})=>e(Lo,{$gap:12,children:t.map(t=>e(Fx,{...t},t.label))});var zx;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(zx||(zx={}));const Mx=({onAnyClick:t,actions:r})=>e(Fo,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case zx.Button:return e(fx,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case zx.ButtonDropData:return e(Nx,{...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}})}),Bx=({children:t,fullText:r,...n})=>{const o=Vt(null),[i,a]=Ht(!1);Qt(()=>{const e=o.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]),Xt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=o.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(sp,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(mo,{ref:o,...n,children:t})})},Ux=n.div`
2053
2055
  display: flex;
2054
2056
  align-items: center;
2055
2057
  justify-content: center;
2056
2058
  padding: 8px;
2057
2059
  border-radius: 8px;
2058
2060
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2059
- `,Ux=({icon:r,title:n,subTitle:o,withCopy:i,badge:a,gap:s,children:l})=>{const{CopyButton:c}=pd();return t(Po,{$gap:o?8:6,$alignItems:"center",children:[r&&(o?e(Bx,{children:e(r,{size:24})}):e(r,{size:24})),n||a||o?t(Fo,{children:[n||a?t(Po,{$gap:6,$alignItems:"center",children:[n&&e(ho,{nowrap:!0,children:n}),i&&n&&e(c,{value:n,size:ld.XS}),a&&e(Vy,{...a})]}):null,o&&e(ho,{size:so.XXS,color:lo.Secondary,nowrap:!0,children:o})]}):null,e(Po,{$gap:s,$margin:`0 0 0 ${s??0}px`,$alignItems:"center",children:l})]})},jx=n.div`
2061
+ `,jx=({icon:r,title:n,subTitle:o,withCopy:i,badge:a,gap:s,children:l})=>{const{CopyButton:c}=ud();return t(Fo,{$gap:o?8:6,$alignItems:"center",children:[r&&(o?e(Ux,{children:e(r,{size:24})}):e(r,{size:24})),n||a||o?t(Lo,{children:[n||a?t(Fo,{$gap:6,$alignItems:"center",children:[n&&e(mo,{nowrap:!0,children:n}),i&&n&&e(c,{value:n,size:cd.XS}),a&&e(Ky,{...a})]}):null,o&&e(mo,{size:lo.XXS,color:co.Secondary,nowrap:!0,children:o})]}):null,e(Fo,{$gap:s,$margin:`0 0 0 ${s??0}px`,$alignItems:"center",children:l})]})},Wx=n.div`
2060
2062
  display: flex;
2061
2063
  flex-direction: column;
2062
2064
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
2063
- width: ${({$moreSpacing:e})=>e?"calc(100% - 32px)":"calc(100% - 24px)"};
2065
+ width: ${({$width:e="100%",$moreSpacing:t})=>`calc(${e} - ${t?32:24}px)`};
2064
2066
  align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
2065
2067
  padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
2066
2068
  border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
2067
2069
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
2068
- `,Wx=n.div`
2070
+ `,Hx=n.div`
2069
2071
  display: flex;
2070
2072
  align-items: center;
2071
2073
  flex-wrap: wrap;
2072
2074
  width: 100%;
2073
- `,Hx=n.div`
2075
+ `,Xx=n.div`
2074
2076
  width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
2075
2077
  margin: 8px;
2076
2078
  display: flex;
2077
2079
  flex-direction: column;
2078
2080
  gap: 4px;
2079
2081
  min-width: 0;
2080
- `,Xx=({item:r,cellsPerRow:n})=>{const{CopyButton:o}=pd(),{title:i,label:a,withCopy:s,badge:l}=r;return t(Hx,{$cellsPerRow:n,children:[!!i&&e(Mx,{size:so.XXXS,color:lo.Secondary,nowrap:!0,children:i}),t(Po,{$gap:4,children:[l&&e(Vy,{...l}),a&&e(Mx,{size:so.XS,nowrap:!0,children:a}),s&&e(o,{value:a||l?.label?.toString()||"",size:ld.XS})]})]})},Gx=({bgTint:r="900",fullHeight:n=!1,moreSpacing:o=!1,richTitle:i,withCollapse:a,collapseIsDefaultOpen:s,actions:l=[],cellsPerRow:c,items:d,children:p})=>{const[u,h]=Ht(s||!1),m=!a||a&&u;return t(jx,{$bgTint:r,$fullHeight:n,$moreSpacing:o,children:[(i||a)&&t(Po,{$gap:16,$justifyContent:"space-between",children:[i?e(Ux,{...i}):e("div",{}),t(Po,{children:[m&&e(zx,{actions:l}),a&&e(Po,{$gap:8,$alignItems:"center",children:e(gx,{variant:ux.Text,size:hx.S,leftIcon:u?Pt:Ft,onClick:()=>h(e=>!e)})})]})]}),m&&d?e(Wx,{children:d.map(t=>e(Xx,{item:t,cellsPerRow:c&&c<d.length?c:d.length},t.id))}):null,m&&p]})};var Vx;!function(e){e.S="small",e.M="medium"}(Vx||(Vx={}));const Kx=n.div`
2082
+ `,Gx=({item:r,cellsPerRow:n})=>{const{CopyButton:o}=ud(),{title:i,titleTooltip:a,label:s,labelTooltip:l,withCopy:c,badge:d}=r;return t(Xx,{$cellsPerRow:n,children:[!!i&&e(sp,{text:a,children:e(Bx,{size:lo.XXXS,color:co.Secondary,nowrap:!0,children:i})}),t(Fo,{$gap:4,children:[d&&e(Ky,{...d}),s&&e(sp,{text:l,children:e(Bx,{size:lo.XS,nowrap:!0,children:s})}),c&&e(o,{value:s||d?.label?.toString()||"",size:cd.XS})]})]})},Vx=({bgTint:r="900",width:n,fullHeight:o=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,actions:c=[],badges:d=[],cellsPerRow:p,items:u,children:h})=>{const[m,g]=Ht(l||!1),f=!s||s&&m;return t(Wx,{$width:n,$bgTint:r,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&t(Fo,{$gap:16,$justifyContent:"space-between",children:[a?e(jx,{...a}):e("div",{}),t(Fo,{children:[f&&!!c.length&&e(Mx,{actions:c}),d.map(e=>Zt(Ky,{...e,key:e.key||e.label})),s&&e(Fo,{$gap:8,$alignItems:"center",children:e(fx,{variant:hx.Text,size:mx.S,leftIcon:m?Pt:Ft,onClick:()=>g(e=>!e)})})]})]}),f&&u?e(Hx,{children:u.map(t=>e(Gx,{item:t,cellsPerRow:p&&p<=u.length?p:u.length},t.id))}):null,f&&h]})};var Kx;!function(e){e.S="small",e.M="medium"}(Kx||(Kx={}));const qx=n.div`
2081
2083
  display: flex;
2082
2084
  flex-direction: column;
2083
2085
  gap: ${({$gap:e})=>e}px;
@@ -2086,7 +2088,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2086
2088
  padding: ${({$padding:e})=>e}px;
2087
2089
  border-radius: 16px;
2088
2090
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2089
- `,qx=jt(({id:r,size:n=Vx.M,fullHeight:o=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:p},u)=>{const h=n===Vx.S?4:16,m=n===Vx.S?12:16,g=a??(i?e(Ux,{...i}):null),f=l??(s?e(px,{...s}):null),y=!!g||!!f,x=!!d&&d.length>0;return t(Kx,{ref:u,id:r,"data-section-name":r,$padding:m,$gap:h,$fullHeight:o,children:[y||x?t(Po,{$gap:h,$justifyContent:"space-between",children:[y?t(Po,{$gap:h,$alignItems:"center",children:[g,f,c]}):null,x&&e(zx,{actions:d??[]})]}):null,p]})});qx.displayName="SectionCard";const Jx=n.div`
2091
+ `,Jx=jt(({id:r,size:n=Kx.M,fullHeight:o=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:p},u)=>{const h=n===Kx.S?4:16,m=n===Kx.S?12:16,g=a??(i?e(jx,{...i}):null),f=l??(s?e(ux,{...s}):null),y=!!g||!!f,x=!!d&&d.length>0;return t(qx,{ref:u,id:r,"data-section-name":r,$padding:m,$gap:h,$fullHeight:o,children:[y||x?t(Fo,{$gap:h,$justifyContent:"space-between",children:[y?t(Fo,{$gap:h,$alignItems:"center",children:[g,f,c]}):null,x&&e(Mx,{actions:d??[]})]}):null,p]})});Jx.displayName="SectionCard";const Yx=n.div`
2090
2092
  flex: 1;
2091
2093
  align-self: stretch;
2092
2094
  display: flex;
@@ -2094,8 +2096,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2094
2096
  gap: 8px;
2095
2097
  padding: 16px;
2096
2098
  border-radius: 12px;
2097
- background-color: ${({theme:e,$status:t})=>oo(e,t,t===Jr.Unknown?"750":"500")};
2098
- `,Yx=n.div`
2099
+ background-color: ${({theme:e,$status:t})=>io(e,t,t===Yr.Unknown?"750":"500")};
2100
+ `,Qx=n.div`
2099
2101
  display: flex;
2100
2102
  align-items: center;
2101
2103
  justify-content: center;
@@ -2103,8 +2105,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2103
2105
  height: fit-content;
2104
2106
  padding: 8px;
2105
2107
  border-radius: 12px;
2106
- background-color: ${({theme:e,$status:t})=>t===Jr.Unknown?oo(e,t,"800"):oo(e,t,"900")+Uc["015"]};
2107
- `,Qx=({status:r,icon:n,title:o,description:a})=>{const s=i(),l=n??Ko(r,s),c=[Vr.Default,Vr.Info,Jr.Disabled,Jr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Jx,{$status:r,children:[e(Yx,{$status:r,children:e(l,{size:32,fill:c})}),t(Fo,{$gap:2,$justifyContent:"center",children:[e(ho,{size:so.M,weight:500,color:c,nowrap:!0,children:o}),e(ho,{size:so.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Zx=n.div`
2108
+ background-color: ${({theme:e,$status:t})=>t===Yr.Unknown?io(e,t,"800"):io(e,t,"900")+jc["015"]};
2109
+ `,Zx=({status:r,icon:n,title:o,description:a})=>{const s=i(),l=n??qo(r,s),c=[Kr.Default,Kr.Info,Yr.Disabled,Yr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Yx,{$status:r,children:[e(Qx,{$status:r,children:e(l,{size:32,fill:c})}),t(Lo,{$gap:2,$justifyContent:"center",children:[e(mo,{size:lo.M,weight:500,color:c,nowrap:!0,children:o}),e(mo,{size:lo.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},eb=n.div`
2108
2110
  flex: 0.5;
2109
2111
  display: flex;
2110
2112
  flex-direction: column;
@@ -2112,25 +2114,25 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2112
2114
  padding: 12px;
2113
2115
  border-radius: 12px;
2114
2116
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2115
- `,eb=["-","N/A","undefined","null","undefined/undefined","null/null"],tb=({title:r,cells:n})=>{const o=i();return t(Zx,{children:[e(ho,{size:so.XXS,color:o.v2.colors.grey[150],children:r}),e(Po,{$gap:32,children:n.map(n=>t(Fo,{$gap:2,children:[!n.isLoading||n.value&&!eb.includes(n.value)?e(ho,{size:n.label?so.M:so.L,children:n.value}):e(Gp,{scale:.9}),n.label&&e(ho,{size:so.XXS,children:n.label})]},`${r}-${n.label}-${n.value}`))})]})};var rb;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(rb||(rb={}));const nb=n.div`
2117
+ `,tb=["-","N/A","undefined","null","undefined/undefined","null/null"],rb=({title:r,cells:n})=>{const o=i();return t(eb,{children:[e(mo,{size:lo.XXS,color:o.v2.colors.grey[150],children:r}),e(Fo,{$gap:32,children:n.map(n=>t(Lo,{$gap:2,children:[!n.isLoading||n.value&&!tb.includes(n.value)?e(mo,{size:n.label?lo.M:lo.L,children:n.value}):e(Vp,{scale:.9}),n.label&&e(mo,{size:lo.XXS,children:n.label})]},`${r}-${n.label}-${n.value}`))})]})};var nb;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(nb||(nb={}));const ob=n.div`
2116
2118
  display: flex;
2117
2119
  align-items: flex-end;
2118
2120
  justify-content: space-between;
2119
2121
  gap: 24px;
2120
2122
  width: fit-content;
2121
- `,ob=n.div`
2123
+ `,ib=n.div`
2122
2124
  position: relative;
2123
2125
  display: flex;
2124
2126
  flex-direction: column;
2125
2127
  align-items: center;
2126
2128
  width: ${({$width:e})=>e??150}px;
2127
2129
  flex-shrink: 0;
2128
- `,ib=n.svg`
2130
+ `,ab=n.svg`
2129
2131
  display: block;
2130
2132
  width: 100%;
2131
2133
  height: auto;
2132
2134
  overflow: visible;
2133
- `,ab=n(Fo)`
2135
+ `,sb=n(Lo)`
2134
2136
  position: absolute;
2135
2137
  left: 0;
2136
2138
  right: 0;
@@ -2138,55 +2140,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2138
2140
  align-items: center;
2139
2141
  gap: 2px;
2140
2142
  pointer-events: none;
2141
- `,sb=n.span`
2143
+ `,lb=n.span`
2142
2144
  display: inline-block;
2143
2145
  flex-shrink: 0;
2144
2146
  width: 9px;
2145
2147
  height: 9px;
2146
2148
  border-radius: 50%;
2147
2149
  background-color: ${({$color:e})=>e};
2148
- `,lb=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:""}},cb=10,db=(e,t,r,n)=>{const o=n*Math.PI/180;return{x:e+r*Math.cos(o),y:t-r*Math.sin(o)}},pb=(e,t,r,n,o)=>{const i=db(e,t,r,n),a=db(e,t,r,o),s=n>o?1:0,l=Math.abs(n-o)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},ub=({variant:r=rb.CurrentOfMax,gaugeWidth:n,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=lb(a),{number:m}=lb(s),{number:g,prefix:f,suffix:y}=lb(l),x=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?pb(60,60,55,180,v):null,w=b<1?pb(60,60,55,v,0):null,S=db(60,60,55,180),k=db(60,60,55,0),C=d??(r===rb.GoodAgainstBad?x.v2.colors.green[500]:x.v2.colors.purple[400]),E=u??(r===rb.GoodAgainstBad?x.v2.colors.red[500]:x.v2.colors.silver[500]),[A,D]=Ht(null),T=e=>`${f}${e}${y}`,I=r===rb.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"),P=()=>D(null);return t(nb,{children:[t(ob,{$width:n,children:[e(ap,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(ib,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:cb,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:P}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:cb,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:P}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:P}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:P})]})}),o&&t(ab,{children:[e(ho,{size:so.XXXS,color:x.v2.colors.grey[150],align:"center",children:o}),e(ho,{size:so.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),t(Fo,{$gap:7,children:[t(Po,{$gap:8,$alignItems:"center",children:[e(sb,{$color:C}),e(ho,{size:so.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Po,{$gap:8,$alignItems:"center",children:[e(sb,{$color:E}),e(ho,{size:so.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},hb=n(Po)`
2150
+ `,cb=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:""}},db=10,pb=(e,t,r,n)=>{const o=n*Math.PI/180;return{x:e+r*Math.cos(o),y:t-r*Math.sin(o)}},ub=(e,t,r,n,o)=>{const i=pb(e,t,r,n),a=pb(e,t,r,o),s=n>o?1:0,l=Math.abs(n-o)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},hb=({variant:r=nb.CurrentOfMax,gaugeWidth:n,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=cb(a),{number:m}=cb(s),{number:g,prefix:f,suffix:y}=cb(l),x=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?ub(60,60,55,180,v):null,w=b<1?ub(60,60,55,v,0):null,S=pb(60,60,55,180),k=pb(60,60,55,0),C=d??(r===nb.GoodAgainstBad?x.v2.colors.green[500]:x.v2.colors.purple[400]),E=u??(r===nb.GoodAgainstBad?x.v2.colors.red[500]:x.v2.colors.silver[500]),[A,D]=Ht(null),T=e=>`${f}${e}${y}`,I=r===nb.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"),P=()=>D(null);return t(ob,{children:[t(ib,{$width:n,children:[e(sp,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(ab,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:db,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:P}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:db,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:P}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:P}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:P})]})}),o&&t(sb,{children:[e(mo,{size:lo.XXXS,color:x.v2.colors.grey[150],align:"center",children:o}),e(mo,{size:lo.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),t(Lo,{$gap:7,children:[t(Fo,{$gap:8,$alignItems:"center",children:[e(lb,{$color:C}),e(mo,{size:lo.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Fo,{$gap:8,$alignItems:"center",children:[e(lb,{$color:E}),e(mo,{size:lo.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},mb=n(Fo)`
2149
2151
  width: calc(100% - 20px);
2150
- padding: 10px;
2152
+ padding: 8px 12px;
2151
2153
  border-radius: 6px;
2152
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2154
+ background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t||"800"]};
2153
2155
  display: flex;
2154
2156
  align-items: center;
2155
2157
  justify-content: space-between;
2156
2158
  gap: 12px;
2157
- `,mb=n.div`
2159
+ `,gb=n.div`
2158
2160
  position: relative;
2159
2161
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
2160
2162
  display: flex;
2161
2163
  align-items: center;
2162
2164
  gap: 4px;
2163
- `,gb=n.pre`
2165
+ `,fb=n.pre`
2164
2166
  flex: 1;
2165
2167
  margin: 0;
2166
2168
  padding: 0;
2167
- font-size: 14px;
2169
+ font-size: 12px;
2168
2170
  color: #5ffb98; // TODO: add to theme
2169
2171
  overflow-x: auto;
2170
- `,fb=n.span`
2172
+ `,yb=n.span`
2171
2173
  flex-shrink: 0;
2172
2174
  font-size: 14px;
2173
2175
  color: #5ffb98; // TODO: add to theme
2174
- `,yb=({value:r,hideCopy:n=!1,onDone:o})=>{const{CopyButton:i}=pd({onDone:o}),a=Vt(null),[s,l]=Ht(!1);return Xt(()=>{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(hb,{children:[t(mb,{$hideCopy:n,children:[e(gb,{ref:a,children:r}),s&&e(fb,{children:"..."})]}),!n&&e(i,{value:r,size:ld.XS})]})},xb=n.div`
2176
+ `,xb=({bgTint:r,label:n,value:o,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=ud({onDone:a}),l=Vt(null),[c,d]=Ht(!1);return Xt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[o]),t(Lo,{$gap:4,children:[n&&e(mo,{size:lo.XXXS,color:co.Secondary,children:n}),t(mb,{$bgTint:r,children:[t(gb,{$hideCopy:i,children:[e(fb,{ref:l,children:o}),c&&e(yb,{children:"..."})]}),!i&&e(s,{value:o,size:cd.XS})]})]})},bb=n.div`
2175
2177
  display: flex;
2176
2178
  align-items: center;
2177
2179
  gap: 8px;
2178
- padding: 16px;
2180
+ padding: ${({$hideBackground:e})=>e?"0":"16px"};
2181
+ width: ${({$width:e})=>e||"auto"};
2179
2182
  border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
2180
- background-color: ${({$backgroundColor:e})=>e};
2183
+ background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
2181
2184
 
2182
- ${({$withHover:e,$hoverBackgroundColor:t})=>e&&o`
2185
+ ${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:r})=>e&&o`
2183
2186
  cursor: pointer;
2184
2187
  transition: background 0.2s;
2185
2188
  &:hover {
2186
- background-color: ${t};
2189
+ background-color: ${t?"transparent":r};
2187
2190
  }
2188
2191
  `}
2189
- `,bb=n.div`
2192
+ `,vb=n.div`
2190
2193
  display: flex;
2191
2194
  align-items: center;
2192
2195
  justify-content: center;
@@ -2195,44 +2198,53 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2195
2198
  height: 42px;
2196
2199
  border-radius: 11px;
2197
2200
  background-color: ${({$backgroundColor:e})=>e};
2198
- `,vb=n(Fo)`
2201
+ ${({$withClick:e})=>e&&o`
2202
+ cursor: pointer;
2203
+ & * {
2204
+ cursor: pointer;
2205
+ }
2206
+ &:hover {
2207
+ transform: scale(1.2);
2208
+ }
2209
+ `}
2210
+ `,$b=n(Lo)`
2199
2211
  flex: 1;
2200
2212
  min-width: 0;
2201
- `,$b=n.div`
2213
+ `,wb=n.div`
2202
2214
  display: flex;
2203
2215
  align-items: center;
2204
2216
  justify-content: center;
2205
2217
  flex-shrink: 0;
2206
2218
  width: 24px;
2207
2219
  height: 24px;
2208
- `,wb=({status:r,title:n,subTitle:o,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=Ko(r,p),h=c?l?Pt:Ft:void 0,m=r===Jr.Unknown,g=r===Jr.Disabled,f=[Vr.Error,Vr.Warning,Vr.Success].includes(r),y=oo(p,r,g?d?"400":"700":m?"600":d?"300":"500"),x=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?y:x,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]:oo(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]:oo(p,r,l?"700":"800");return t(xb,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(bb,{$backgroundColor:v,children:s?e(Gp,{scale:1.2}):e(u,{size:32,fill:b})}),t(vb,{$gap:4,$justifyContent:"center",children:[t(Po,{$gap:10,$alignItems:"center",children:[e(ho,{size:so.S,weight:500,color:x,children:n}),a&&e(Vy,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:so.XXXS})]}),o&&e(ho,{size:so.XXXS,color:x,children:o})]}),h&&e($b,{children:e(h,{size:24,fill:x})})]})},Sb=n.div`
2220
+ `,Sb=({status:r,title:n,subTitle:o,badgeLabel:a,loading:s,action:l,isExtended:c=!1,toggleExtended:d,invertColors:p=!1,hideIcon:u=!1,hideBackground:h=!1,width:m})=>{const g=i(),f=qo(r,g),y=d?c?Pt:Ft:void 0,x=r===Yr.Unknown,b=r===Yr.Disabled,v=r===Jr.Loading||s,$=[Kr.Error,Kr.Warning,Kr.Success].includes(r),w=io(g,r,b?p?"400":"700":x?"600":p?"300":"500"),S=b?g.v2.colors.grey[400]:p?g.v2.colors.white[500]:$?g.v2.colors.black[500]:g.v2.colors.white[500],k=p&&!x?w:S,C=!p||x||b?"rgba(0, 0, 0, 0.13)":io(g,r,"800"),E=b?g.v2.colors.grey[900]:p||x?g.v2.colors.silver[800]:w,A=b?g.v2.colors.grey[800]:p||x?g.v2.colors.silver[700]:io(g,r,"600");return t(bb,{$width:m,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:E,$hoverBackgroundColor:A,onClick:d,children:[!u&&e(vb,{$backgroundColor:C,children:v?e(Ko,{withSpinnerOld:!0,scaleSpinnerOld:1.8}):e(f,{size:32,fill:k})}),t($b,{$gap:4,$justifyContent:"center",children:[t(Fo,{$gap:10,$alignItems:"center",children:[e(mo,{size:lo.S,weight:500,color:S,children:n}),a&&e(Ky,{label:a,backgroundColor:g.v2.colors.silver[600],textColor:g.v2.colors.white[500],textSize:lo.XXXS})]}),o&&e(mo,{size:lo.XXXS,color:S,children:o})]}),l&&e(vb,{"data-id":l["data-id"],$backgroundColor:g.v2.colors.silver[750],$withClick:!!l.onClick,onClick:l.onClick,children:e(sp,{text:l.tooltip,children:e(l.icon,{size:32,fill:S})})}),y&&e(wb,{children:e(y,{size:24,fill:S})})]})},kb=n.div`
2209
2221
  display: flex;
2210
2222
  flex-direction: column;
2211
2223
  width: 100%;
2212
2224
  border-radius: 12px;
2213
2225
  overflow: hidden;
2214
- `,kb=n.div`
2226
+ `,Cb=n.div`
2215
2227
  display: flex;
2216
2228
  flex-direction: column;
2217
2229
  gap: 8px;
2218
2230
  padding: 8px 12px 16px 12px;
2219
2231
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2220
- `,Cb=n.div`
2232
+ `,Eb=n.div`
2221
2233
  display: flex;
2222
2234
  align-items: center;
2223
2235
  gap: 8px;
2224
- `,Eb=n.div`
2236
+ `,Ab=n.div`
2225
2237
  display: flex;
2226
2238
  align-items: center;
2227
2239
  justify-content: center;
2228
2240
  flex-shrink: 0;
2229
2241
  width: 18px;
2230
2242
  height: 18px;
2231
- `,Ab=({conditions:r,title:n,subTitle:o})=>{const a=i(),[s,l]=Ht(!1),c=Kt(()=>l(e=>!e),[]),d=Gt(()=>ui(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Fn(d),[d]);Xt(()=>{l(u||m||g)},[u,m,g]);const y=Gt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),x=Gt(()=>u?Vr.Error:m?Vr.Warning:g?Vr.Info:Vr.Success,[u,m,g]),b=Gt(()=>n||(1===d.length?pi(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:n})=>{const o="Something isn't right";return e?"Something Failed":t||r?o:n?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:y}),[n,d,u,m,g,y]),v=Gt(()=>o||1===d.length&&d[0].message||void 0,[o,d]),$=Gt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(Sb,{children:[e(wb,{status:x,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&e(kb,{children:d.map(({status:r,type:n,reason:o,message:i},s)=>{const l=r===qr.Loading,c=r===qr.Disabled?Vr.Info:r,d=l?null:Ko(c,a),p=r===Vr.Error?oo(a,Vr.Error,"500"):r===Vr.Warning?oo(a,Vr.Warning,"500"):a.v2.colors.white[500],u=[n,i||o].filter(Boolean).join(" - ");return t(Cb,{children:[e(Eb,{children:l||!d?e(Vo,{withSpinnerOld:!0}):e(d,{size:18})}),e(ho,{size:so.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var Db,Tb,Ib;!function(e){e.Default="default",e.SuccessError="successError"}(Db||(Db={})),function(e){e.S="small",e.L="large"}(Tb||(Tb={})),function(e){e.Left="left",e.Right="right"}(Ib||(Ib={}));const Nb=n.div`
2243
+ `,Db=({conditions:r,title:n,subTitle:o})=>{const a=i(),[s,l]=Ht(!1),c=Kt(()=>l(e=>!e),[]),d=Gt(()=>hi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Ln(d),[d]);Xt(()=>{l(u||m||g)},[u,m,g]);const y=Gt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),x=Gt(()=>u?Kr.Error:m?Kr.Warning:g?Kr.Info:Kr.Success,[u,m,g]),b=Gt(()=>n||(1===d.length?ui(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:n})=>{const o="Something isn't right";return e?"Something Failed":t||r?o:n?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:y}),[n,d,u,m,g,y]),v=Gt(()=>o||1===d.length&&d[0].message||void 0,[o,d]),$=Gt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(kb,{children:[e(Sb,{status:x,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&e(Cb,{children:d.map(({status:r,type:n,reason:o,message:i},s)=>{const l=r===Jr.Loading,c=r===Jr.Disabled?Kr.Info:r,d=l?null:qo(c,a),p=r===Kr.Error?io(a,Kr.Error,"500"):r===Kr.Warning?io(a,Kr.Warning,"500"):a.v2.colors.white[500],u=[n,i||o].filter(Boolean).join(" - ");return t(Eb,{children:[e(Ab,{children:l||!d?e(Ko,{withSpinnerOld:!0}):e(d,{size:18})}),e(mo,{size:lo.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var Tb,Ib,Nb;!function(e){e.Default="default",e.SuccessError="successError"}(Tb||(Tb={})),function(e){e.S="small",e.L="large"}(Ib||(Ib={})),function(e){e.Left="left",e.Right="right"}(Nb||(Nb={}));const Rb=n.div`
2232
2244
  display: flex;
2233
2245
  align-items: center;
2234
2246
  gap: ${({$gap:e})=>e}px;
2235
- `,Rb=n.div`
2247
+ `,Ob=n.div`
2236
2248
  position: relative;
2237
2249
  display: flex;
2238
2250
  align-items: center;
@@ -2242,11 +2254,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2242
2254
  height: ${({$size:e})=>e}px;
2243
2255
  padding: ${4}px;
2244
2256
  border-radius: ${({$size:e})=>2*e}px;
2245
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:n,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(r&&!o)return r;switch(n){case Db.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Db.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2257
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:n,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(r&&!o)return r;switch(n){case Tb.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Tb.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2246
2258
 
2247
2259
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
2248
2260
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2249
- `,Ob=n.div`
2261
+ `,_b=n.div`
2250
2262
  position: absolute;
2251
2263
  top: 50%;
2252
2264
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -2256,17 +2268,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2256
2268
  border-radius: 100%;
2257
2269
  background-color: ${({$color:e})=>e};
2258
2270
  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)"};
2259
- `,_b=({variant:n=Db.Default,size:o=Tb.L,name:a,label:s,labelAlign:l=Ib.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=yt,offIcon:y=bt,onBgColor:x,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=o===Tb.S?10:16,E=c||S.v2.colors.silver[200],A=o===Tb.S?so.XXXS:so.XS,D=o===Tb.S?8:12;return t(Fo,{$gap:4,children:[t(Po,{$justifyContent:"space-between",children:[t(Nb,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===Ib.Left&&e(ho,{color:E,size:A,nowrap:!0,children:s}),t(Rb,{$onBgColor:x,$offBgColor:b,$variant:n,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(Ob,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(y,{size:C,fill:k})]})]}),s&&l===Ib.Right&&e(ho,{color:E,size:A,nowrap:!0,children:s})]}),e(Jy,{tooltip:d,badge:p})]}),e(Yy,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Pb=n.div`
2271
+ `,Pb=({variant:n=Tb.Default,size:o=Ib.L,name:a,label:s,labelAlign:l=Nb.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=yt,offIcon:y=bt,onBgColor:x,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=o===Ib.S?10:16,E=c||S.v2.colors.silver[200],A=o===Ib.S?lo.XXXS:lo.XS,D=o===Ib.S?8:12;return t(Lo,{$gap:4,children:[t(Fo,{$justifyContent:"space-between",children:[t(Rb,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===Nb.Left&&e(mo,{color:E,size:A,nowrap:!0,children:s}),t(Ob,{$onBgColor:x,$offBgColor:b,$variant:n,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(_b,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(y,{size:C,fill:k})]})]}),s&&l===Nb.Right&&e(mo,{color:E,size:A,nowrap:!0,children:s})]}),e(Yy,{tooltip:d,badge:p})]}),e(Qy,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Fb=n.div`
2260
2272
  display: flex;
2261
- flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
2262
- gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
2263
- `,Fb=({direction:r=Fr.Vertical,title:n,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===Tb.S?so.XS:so.S;return t(Pb,{$direction:r,children:[n&&e(ho,{size:c,children:n}),a.map(t=>e(_b,{...t,labelAlign:Ib.Right,value:s[t.id],onChange:e=>{return r=t.id,n=e,void l(e=>{const t={...e};return r?t[r]=n:a.forEach(e=>t[e.id]=n),t});var r,n},disabled:i,size:o},`${n}-toggle-${t.id}`))]})},Lb=n.div`
2273
+ flex-direction: ${({$direction:e})=>e===Lr.Horizontal?"row":"column"};
2274
+ gap: ${({$direction:e})=>e===Lr.Horizontal?16:8}px;
2275
+ `,Lb=({direction:r=Lr.Vertical,title:n,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===Ib.S?lo.XS:lo.S;return t(Fb,{$direction:r,children:[n&&e(mo,{size:c,children:n}),a.map(t=>e(Pb,{...t,labelAlign:Nb.Right,value:s[t.id],onChange:e=>{return r=t.id,n=e,void l(e=>{const t={...e};return r?t[r]=n:a.forEach(e=>t[e.id]=n),t});var r,n},disabled:i,size:o},`${n}-toggle-${t.id}`))]})},zb=n.div`
2264
2276
  display: flex;
2265
2277
  align-items: center;
2266
2278
  justify-content: space-between;
2267
2279
  width: 100%;
2268
2280
  overflow: hidden;
2269
- `,zb=n.div`
2281
+ `,Mb=n.div`
2270
2282
  display: flex;
2271
2283
  align-items: center;
2272
2284
  gap: 16px;
@@ -2274,7 +2286,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2274
2286
  min-width: 0;
2275
2287
  flex: 1;
2276
2288
  overflow: hidden;
2277
- `,Mb=n.div`
2289
+ `,Bb=n.div`
2278
2290
  display: flex;
2279
2291
  align-items: center;
2280
2292
  justify-content: center;
@@ -2283,15 +2295,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2283
2295
  height: 36px;
2284
2296
  border-radius: 8px;
2285
2297
  background: ${({theme:e})=>e.v2.colors.silver[800]};
2286
- `,Bb=n.img`
2298
+ `,Ub=n.img`
2287
2299
  width: 24px;
2288
2300
  height: 24px;
2289
- `,Ub=n.div`
2301
+ `,jb=n.div`
2290
2302
  display: flex;
2291
2303
  align-items: center;
2292
2304
  gap: 16px;
2293
2305
  flex-shrink: 0;
2294
- `,jb=({icon:r,iconSrc:n,title:o,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(Lb,{children:[t(zb,{children:[r?e(Mb,{children:e(r,{size:24})}):n?e(Mb,{children:e(Bb,{src:n,alt:o||"icon"})}):null,(o||i)&&t(Fo,{$gap:6,children:[o&&e(ho,{size:so.S,weight:500,children:o}),i&&e(ho,{size:so.XXS,children:i})]})]}),t(Ub,{children:[a&&e(_b,{...a}),s?.length?e(Ix,{iconButtonProps:{"data-id":"drawer-actions",icon:zt},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(dd,{"data-id":"drawer-close",icon:bt,size:ld.M,onClick:l,disabled:c})]})]}),Wb=n.div`
2306
+ `,Wb=({icon:r,iconSrc:n,title:o,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(zb,{children:[t(Mb,{children:[r?e(Bb,{children:e(r,{size:24})}):n?e(Bb,{children:e(Ub,{src:n,alt:o||"icon"})}):null,(o||i)&&t(Lo,{$gap:6,children:[o&&e(mo,{size:lo.S,weight:500,children:o}),i&&e(mo,{size:lo.XXS,children:i})]})]}),t(jb,{children:[a&&e(Pb,{...a}),s?.length?e(Nx,{iconButtonProps:{"data-id":"drawer-actions",icon:zt},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(pd,{"data-id":"drawer-close",icon:bt,size:cd.M,onClick:l,disabled:c})]})]}),Hb=n.div`
2295
2307
  display: flex;
2296
2308
  align-items: center;
2297
2309
  gap: 10px;
@@ -2300,32 +2312,32 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2300
2312
  `}
2301
2313
  padding: 4px 12px 4px 4px;
2302
2314
  border-radius: 8px;
2303
- background-color: ${({theme:e,$status:t})=>oo(e,t,[Vr.Info,Vr.Warning].includes(t)?"1000":"900")};
2304
- `,Hb=n.div`
2315
+ background-color: ${({theme:e,$status:t})=>io(e,t,[Kr.Info,Kr.Warning].includes(t)?"1000":"900")};
2316
+ `,Xb=n.div`
2305
2317
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
2306
2318
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
2307
2319
  display: flex;
2308
2320
  align-items: center;
2309
2321
  justify-content: center;
2310
2322
  border-radius: 6px;
2311
- background-color: ${({theme:e,$status:t})=>oo(e,t,[Vr.Info].includes(t)?"900":"800")};
2312
- `,Xb=n.div`
2323
+ background-color: ${({theme:e,$status:t})=>io(e,t,[Kr.Info].includes(t)?"900":"800")};
2324
+ `,Gb=n.div`
2313
2325
  margin-left: auto;
2314
2326
  margin-right: 8px;
2315
2327
  cursor: pointer;
2316
2328
  &:hover {
2317
2329
  transform: scale(1.2);
2318
2330
  }
2319
- `,Gb=({status:r,message:n,action:o,fullWidth:a,smallIcon:s})=>{const l=i(),c=Ko(r,l),d=oo(l,r,r===Vr.Default?"300":r===Vr.Info?"400":"500");return t(Wb,{$status:r,$fullWidth:a,children:[e("div",{children:e(Hb,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(ho,{color:d,size:so.XXXS,weight:400,children:n}),o&&e(Xb,{"data-id":o["data-id"],onClick:o.onClick,children:e(ho,{color:d,size:so.XXS,weight:500,underline:!0,children:o.label})})]})},Vb=n.div`
2331
+ `,Vb=({status:r,message:n,action:o,fullWidth:a,smallIcon:s})=>{const l=i(),c=qo(r,l),d=io(l,r,r===Kr.Default?"300":r===Kr.Info?"400":"500");return t(Hb,{$status:r,$fullWidth:a,children:[e("div",{children:e(Xb,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(mo,{color:d,size:lo.XXXS,weight:400,children:n}),o&&e(Gb,{"data-id":o["data-id"],onClick:o.onClick,children:e(mo,{color:d,size:lo.XXS,weight:500,underline:!0,children:o.label})})]})},Kb=n.div`
2320
2332
  display: flex;
2321
2333
  align-items: center;
2322
2334
  gap: 8px;
2323
2335
  padding: 4px 12px;
2324
- `,Kb=n.div`
2325
- flex: 1;
2326
2336
  `,qb=n.div`
2337
+ flex: 1;
2338
+ `,Jb=n.div`
2327
2339
  width: 150px;
2328
- `,Jb=({note:r,actions:n,children:o})=>o?e(Vb,{children:o}):t(Vb,{children:[r&&e(Gb,{...r}),e(Kb,{}),n?.map((t,r)=>e(qb,{children:e(gx,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),Yb=n.div`
2340
+ `,Yb=({note:r,actions:n,children:o})=>o?e(Kb,{children:o}):t(Kb,{children:[r&&e(Vb,{...r}),e(qb,{}),n?.map((t,r)=>e(Jb,{children:e(fx,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),Qb=n.div`
2329
2341
  position: fixed;
2330
2342
  top: 0;
2331
2343
  bottom: 0;
@@ -2344,16 +2356,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2344
2356
  overflow: hidden;
2345
2357
 
2346
2358
  ${({$disableAnimation:e,$position:t})=>!e&&o`
2347
- animation-name: ${Wc.in[t]};
2359
+ animation-name: ${Hc.in[t]};
2348
2360
  `}
2349
- `,Qb=n.div`
2361
+ `,Zb=n.div`
2350
2362
  display: flex;
2351
2363
  flex-direction: column;
2352
2364
  gap: 12px;
2353
2365
 
2354
2366
  height: calc(100% - ${56}px);
2355
2367
  overflow-y: auto;
2356
- `,Zb=({isOpen:n,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(od(n),n?ur(t(r,{children:[!o&&e(Mo,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Yb,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(jb,{...l}),e(Qb,{children:d}),c&&e(Jb,{...c})]})]}),document.body):null),ev=({options:t,values:r,setValues:n,withMultiSelect:o,withSearch:i,...a})=>{const s=Gt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(Ix,{withMultiSelect:o,withSearch:i,alignX:kx.Left,items:t,selectedIds:r,setSelectedIds:n,children:({ChevronIcon:t,handleClick:r})=>e(tx,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},tv=n.header`
2368
+ `,ev=({isOpen:n,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(id(n),n?hr(t(r,{children:[!o&&e(Bo,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Qb,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(Wb,{...l}),e(Zb,{children:d}),c&&e(Yb,{...c})]})]}),document.body):null),tv=({options:t,values:r,setValues:n,withMultiSelect:o,withSearch:i,...a})=>{const s=Gt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(Nx,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:Cx.Left,items:t,selectedIds:r,setSelectedIds:n,children:({ChevronIcon:t,handleClick:r})=>e(rx,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},rv=n.header`
2357
2369
  position: relative;
2358
2370
  width: calc(100% - 36px);
2359
2371
  padding: 12px 18px;
@@ -2361,12 +2373,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2361
2373
  display: flex;
2362
2374
  align-items: center;
2363
2375
  justify-content: space-between;
2364
- `,rv=n(Po)`
2376
+ `,nv=n(Fo)`
2365
2377
  position: absolute;
2366
2378
  left: 50%;
2367
2379
  transform: translateX(-50%);
2368
2380
  gap: 16px;
2369
- `,nv=({left:r=[],center:n=[],right:o=[]})=>t(tv,{children:[e(Po,{$gap:16,children:r}),e(rv,{children:n}),e(Po,{$gap:16,children:o})]}),ov=n.div`
2381
+ `,ov=({left:r=[],center:n=[],right:o=[]})=>t(rv,{children:[e(Fo,{$gap:16,children:r}),e(nv,{children:n}),e(Fo,{$gap:16,children:o})]}),iv=n.div`
2370
2382
  display: flex;
2371
2383
  align-items: center;
2372
2384
  gap: 2px;
@@ -2381,17 +2393,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2381
2393
  left: ${({$left:e})=>e||"unset"};
2382
2394
  top: 50%;
2383
2395
  transform: translateY(-50%);
2384
- `,iv=({isOpen:t,actions:r,positionRight:n,positionLeft:o})=>t?e(ov,{$right:n,$left:o,children:r.map(t=>{if(!t)return null;const{tooltip:r,...n}=t;return e(ap,{text:r||"",children:e(gx,{...n,variant:ux.Secondary,size:hx.S})},n.id)})}):null,av=({values:r,setValues:n,name:o,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,y=m,x=m||f&&y,b=r.length?r:[""];return t(Fo,{"data-id":o,$gap:6,children:[e(Jy,{label:a,tooltip:s,required:c,badge:l}),e(Fo,{$gap:8,children:b.map((o,i)=>{const a=i===b.length-1;return t(Po,{$gap:8,$alignItems:"center",children:[e(tx,{width:"100%",autoFocus:oi(o)&&!f&&a,value:o,onChange:e=>((e,t)=>{const o=[...r||[]];o[t]=e,n(o)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(gx,{leftIcon:kt,variant:ux.Secondary,size:hx.S,disabled:y,onClick:()=>(()=>{const e=[...r||[]];e.push(""),n(e)})()}),e(gx,{leftIcon:x?Nt:()=>e(Nt,{fill:g.v2.colors.red[500]}),variant:ux.Secondary,size:hx.S,disabled:x,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),n(t)})(i)})]},`input-list-${i}`)})}),e(Yy,{errorMessage:d,warnMessage:p,helpMessage:u})]})},sv=({col:t,colIdx:r,row:n,rowIdx:o,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=n[c];if(g&&!g(n))return null;switch(d){case Xr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],n=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(ev,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:n,setValues:e=>a(c,t?e:e[0]??"",o),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===o&&0===r&&oi(f);return e(tx,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,o),disabled:l,hasError:!!s})}},lv=n.table`
2396
+ `,av=({isOpen:t,actions:r,positionRight:n,positionLeft:o})=>t?e(iv,{$right:n,$left:o,children:r.map(t=>{if(!t)return null;const{tooltip:r,...n}=t;return e(sp,{text:r||"",children:e(fx,{...n,variant:hx.Secondary,size:mx.S})},n.id)})}):null,sv=({values:r,setValues:n,name:o,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,y=m,x=m||f&&y,b=r.length?r:[""];return t(Lo,{"data-id":o,$gap:6,children:[e(Yy,{label:a,tooltip:s,required:c,badge:l}),e(Lo,{$gap:8,children:b.map((o,i)=>{const a=i===b.length-1;return t(Fo,{$gap:8,$alignItems:"center",children:[e(rx,{width:"100%",autoFocus:ii(o)&&!f&&a,value:o,onChange:e=>((e,t)=>{const o=[...r||[]];o[t]=e,n(o)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(fx,{leftIcon:kt,variant:hx.Secondary,size:mx.S,disabled:y,onClick:()=>(()=>{const e=[...r||[]];e.push(""),n(e)})()}),e(fx,{leftIcon:x?Nt:()=>e(Nt,{fill:g.v2.colors.red[500]}),variant:hx.Secondary,size:mx.S,disabled:x,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),n(t)})(i)})]},`input-list-${i}`)})}),e(Qy,{errorMessage:d,warnMessage:p,helpMessage:u})]})},lv=({col:t,colIdx:r,row:n,rowIdx:o,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=n[c];if(g&&!g(n))return null;switch(d){case Gr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],n=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(tv,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:n,setValues:e=>a(c,t?e:e[0]??"",o),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===o&&0===r&&ii(f);return e(rx,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,o),disabled:l,hasError:!!s})}},cv=n.table`
2385
2397
  width: 100%;
2386
2398
  border-collapse: separate;
2387
2399
  border-spacing: 0 8px;
2388
- `,cv=n.td`
2389
- padding: 0 8px 0 0;
2390
2400
  `,dv=n.td`
2401
+ padding: 0 8px 0 0;
2402
+ `,pv=n.td`
2391
2403
  width: 72px;
2392
2404
  padding-bottom: 2px;
2393
2405
  vertical-align: bottom;
2394
- `,pv=({columns:r,values:n,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),y=Gt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),x=(e,t,r)=>{const i=n.length?wr(n):[wr(y)];i[r][e]=t,o(i)},b=Gt(()=>{if(g){const e=[];for(let t=0;;t+=g){const n=r.slice(t,t+g);if(!n.length)break;e.push(n)}return e}return[r]},[g,r]),v=n.length?n:[y];return t(Fo,{"data-id":a,$gap:0,children:[e(Jy,{label:s,tooltip:l,required:d,badge:c}),e(lv,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(Wt,{children:[g&&i>0?e("tr",{children:e(cv,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,n)=>t.renderCondition&&!t.renderCondition(r)?null:e(cv,{children:e(sv,{col:t,colIdx:n,row:r,rowIdx:i,rowsLength:v.length,handleChange:x,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${n}`)),0===l&&e(dv,{children:t(Po,{$gap:8,$justifyContent:"flex-end",children:[a&&e(gx,{leftIcon:kt,variant:ux.Secondary,size:hx.S,disabled:p,onClick:()=>(()=>{const e=wr(n);e.push(wr(y)),o(e)})()}),e(gx,{leftIcon:p?Nt:()=>e(Nt,{fill:f.v2.colors.red[500]}),variant:ux.Secondary,size:hx.S,disabled:p,onClick:()=>(e=>{const t=n.filter((t,r)=>r!==e);t.length||t.push(wr(y)),o(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(Yy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},uv=n.div`
2406
+ `,uv=({columns:r,values:n,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),y=Gt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),x=(e,t,r)=>{const i=n.length?Sr(n):[Sr(y)];i[r][e]=t,o(i)},b=Gt(()=>{if(g){const e=[];for(let t=0;;t+=g){const n=r.slice(t,t+g);if(!n.length)break;e.push(n)}return e}return[r]},[g,r]),v=n.length?n:[y];return t(Lo,{"data-id":a,$gap:0,children:[e(Yy,{label:s,tooltip:l,required:d,badge:c}),e(cv,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(Wt,{children:[g&&i>0?e("tr",{children:e(dv,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,n)=>t.renderCondition&&!t.renderCondition(r)?null:e(dv,{children:e(lv,{col:t,colIdx:n,row:r,rowIdx:i,rowsLength:v.length,handleChange:x,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${n}`)),0===l&&e(pv,{children:t(Fo,{$gap:8,$justifyContent:"flex-end",children:[a&&e(fx,{leftIcon:kt,variant:hx.Secondary,size:mx.S,disabled:p,onClick:()=>(()=>{const e=Sr(n);e.push(Sr(y)),o(e)})()}),e(fx,{leftIcon:p?Nt:()=>e(Nt,{fill:f.v2.colors.red[500]}),variant:hx.Secondary,size:mx.S,disabled:p,onClick:()=>(e=>{const t=n.filter((t,r)=>r!==e);t.length||t.push(Sr(y)),o(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(Qy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},hv=n.div`
2395
2407
  display: flex;
2396
2408
  align-items: center;
2397
2409
  justify-content: space-between;
@@ -2399,15 +2411,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2399
2411
 
2400
2412
  padding: 18px 16px;
2401
2413
  border-radius: 18px;
2402
- background-color: ${({theme:e})=>e.v2.colors.black[500]+Uc["095"]};
2414
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+jc["095"]};
2403
2415
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2404
2416
 
2405
2417
  position: fixed;
2406
2418
  bottom: 0;
2407
2419
  left: 50%;
2408
2420
  z-index: ${({theme:e})=>e.v2.zIndex.island};
2409
- animation-name: ${Wc.in.center};
2410
- `,hv=({isOpen:r,onClose:n,richTitle:o,actions:i})=>r?t(uv,{children:[e(Ux,{...o}),e(zx,{onAnyClick:n,actions:i})]}):null,mv=n.div`
2421
+ animation-name: ${Hc.in.center};
2422
+ `,mv=({isOpen:r,onClose:n,richTitle:o,actions:i})=>r?t(hv,{children:[e(jx,{...o}),e(Mx,{onAnyClick:n,actions:i})]}):null,gv=n.div`
2411
2423
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2412
2424
  top: 50%;
2413
2425
  left: 50%;
@@ -2426,7 +2438,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2426
2438
  will-change: transform;
2427
2439
  contain: layout paint;
2428
2440
 
2429
- animation-name: ${({$closing:e})=>e?Wc.out.center:Wc.in.center};
2441
+ animation-name: ${({$closing:e})=>e?Hc.out.center:Hc.in.center};
2430
2442
  /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
2431
2443
  the global 300ms default which pairs with the fade-in for a soft entrance. */
2432
2444
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
@@ -2435,9 +2447,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2435
2447
  /* Block hover/click work on form children mid-close so their transitions
2436
2448
  don't compete with the slide-out. */
2437
2449
  ${({$closing:e})=>e&&"pointer-events: none;"}
2438
- `,gv=n(Mo)`
2450
+ `,fv=n(Bo)`
2439
2451
  will-change: opacity;
2440
- animation-name: ${({$closing:e})=>e?Vc.out:Vc.in};
2452
+ animation-name: ${({$closing:e})=>e?Kc.out:Kc.in};
2441
2453
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
2442
2454
 
2443
2455
  /* The blurred backdrop is the most expensive thing on screen during the close
@@ -2445,18 +2457,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2445
2457
  recomposite per frame. Drop the blur while closing; visually identical
2446
2458
  because the overlay is fading to 0. */
2447
2459
  ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
2448
- `,fv=n.div`
2449
- position: relative;
2450
2460
  `,yv=n.div`
2461
+ position: relative;
2462
+ `,xv=n.div`
2451
2463
  position: absolute;
2452
2464
  top: 16px;
2453
2465
  left: 16px;
2454
- `,xv=({isOpen:n,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,p]=Ht(n),[u,h]=Ht(!1);if(Xt(()=>{n?(p(!0),h(!1)):d&&h(!0)},[n]),od(d),!d)return null;const m=t(r,{children:[!o&&e(gv,{$relativeToParent:i,$closing:u,onClick:u?void 0:s}),e(mv,{"data-id":"modal",$relativeToParent:i,$closing:u,onAnimationEnd:e=>{e.target===e.currentTarget&&u&&(p(!1),h(!1),l?.())},children:t(fv,{children:[a&&e(yv,{children:e(dd,{icon:t=>e(Lt,{rotate:-90,...t}),size:ld.L,onClick:a})}),c]})})]});return i?m:ur(m,document.body)},bv=n.div`
2466
+ `,bv=({isOpen:n,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,p]=Ht(n),[u,h]=Ht(!1);if(Xt(()=>{n?(p(!0),h(!1)):d&&h(!0)},[n]),id(d),!d)return null;const m=t(r,{children:[!o&&e(fv,{$relativeToParent:i,$closing:u,onClick:u?void 0:s}),e(gv,{"data-id":"modal",$relativeToParent:i,$closing:u,onAnimationEnd:e=>{e.target===e.currentTarget&&u&&(p(!1),h(!1),l?.())},children:t(yv,{children:[a&&e(xv,{children:e(pd,{icon:t=>e(Lt,{rotate:-90,...t}),size:cd.L,onClick:a})}),c]})})]});return i?m:hr(m,document.body)},vv=n.div`
2455
2467
  position: relative;
2456
2468
  width: ${64}px;
2457
2469
  height: ${({$height:e})=>e};
2458
2470
  flex-shrink: 0;
2459
- `,vv=n.aside`
2471
+ `,$v=n.aside`
2460
2472
  position: absolute;
2461
2473
  top: 0;
2462
2474
  left: 0;
@@ -2474,7 +2486,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2474
2486
  transition:
2475
2487
  width 200ms ease,
2476
2488
  padding 200ms ease;
2477
- `,$v=n.button`
2489
+ `,wv=n.button`
2478
2490
  display: flex;
2479
2491
  align-items: center;
2480
2492
  width: 100%;
@@ -2494,58 +2506,58 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2494
2506
  &:active {
2495
2507
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
2496
2508
  }
2497
- `,wv=n.div`
2509
+ `,Sv=n.div`
2498
2510
  width: ${40}px;
2499
2511
  height: ${40}px;
2500
2512
  display: flex;
2501
2513
  align-items: center;
2502
2514
  justify-content: center;
2503
2515
  flex-shrink: 0;
2504
- `,Sv=n.div`
2516
+ `,kv=n.div`
2505
2517
  flex: 1 1 0;
2506
2518
  min-width: 0;
2507
2519
  overflow: hidden;
2508
2520
  padding-right: 12px;
2509
2521
  pointer-events: none;
2510
- `,kv=({height:r,icons:n})=>{const o=i(),[a,s]=Ht(!1);return e(bv,{$height:r,children:e(vv,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:r,label:n,selected:i,icon:s,onClick:l})=>t($v,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[e(wv,{children:e(s,{size:24,fill:o.v2.colors.white[500]})}),a&&e(Sv,{children:e(ho,{size:so.S,weight:500,color:lo.Primary,nowrap:!0,children:n})})]},r))})})};var Cv;!function(e){e.S="small",e.L="large"}(Cv||(Cv={}));const Ev=n.div`
2522
+ `,Cv=({height:r,icons:n})=>{const o=i(),[a,s]=Ht(!1);return e(vv,{$height:r,children:e($v,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:r,label:n,selected:i,icon:s,onClick:l})=>t(wv,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[e(Sv,{children:e(s,{size:24,fill:o.v2.colors.white[500]})}),a&&e(kv,{children:e(mo,{size:lo.S,weight:500,color:co.Primary,nowrap:!0,children:n})})]},r))})})};var Ev;!function(e){e.S="small",e.L="large"}(Ev||(Ev={}));const Av=n.div`
2511
2523
  width: fit-content;
2512
2524
  display: flex;
2513
2525
  align-items: center;
2514
2526
  gap: 8px;
2515
2527
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2516
- `,Av=n.div`
2517
- width: ${({$size:e})=>e===Cv.S?"16px":"20px"};
2518
- height: ${({$size:e})=>e===Cv.S?"16px":"20px"};
2528
+ `,Dv=n.div`
2529
+ width: ${({$size:e})=>e===Ev.S?"16px":"20px"};
2530
+ height: ${({$size:e})=>e===Ev.S?"16px":"20px"};
2519
2531
  display: flex;
2520
2532
  align-items: center;
2521
2533
  justify-content: center;
2522
2534
  border-radius: 100%;
2523
2535
  border: 1px solid ${({$borderColor:e})=>e};
2524
2536
  background-color: ${({$backgroundColor:e})=>e};
2525
- `,Dv=({"data-id":r,label:n,value:o,onChange:a,disabled:s,size:l=Cv.L})=>{const c=i(),[d,p]=Ht(!1),u=o,h=l===Cv.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(Ev,{"data-id":r??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(Av,{$size:l,$borderColor:g,$backgroundColor:f,children:o?e(Mt,{size:h,fill:m}):null}),n&&e(ho,{size:l===Cv.S?so.XXS:so.XS,children:n})]})},Tv=n.div`
2537
+ `,Tv=({"data-id":r,label:n,value:o,onChange:a,disabled:s,size:l=Ev.L})=>{const c=i(),[d,p]=Ht(!1),u=o,h=l===Ev.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(Av,{"data-id":r??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(Dv,{$size:l,$borderColor:g,$backgroundColor:f,children:o?e(Mt,{size:h,fill:m}):null}),n&&e(mo,{size:l===Ev.S?lo.XXS:lo.XS,children:n})]})},Iv=n.div`
2526
2538
  display: flex;
2527
2539
  flex-direction: ${({$flexDirection:e})=>e};
2528
2540
  gap: ${({$gap:e})=>e}px;
2529
- `,Iv=({label:r,direction:n,disabled:o,size:i,options:a,values:s,setValues:l})=>t(Tv,{$flexDirection:n===Fr.Horizontal?"row":"column",$gap:n===Fr.Horizontal?16:8,children:[r&&e(ho,{children:r}),a.map(t=>e(Dv,{...t,value:s[t.id],onChange:e=>{return r=t.id,n=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=n,t});var r,n},disabled:o,size:i},`${r}-radio-${t.id}`))]}),Nv=({currentStep:r,data:n,gap:o=12})=>e(Fo,{$gap:o,children:n.map(n=>{const o=n.step<r,i=n.step===r;return t(Po,{$gap:8,children:[o||n.forceDoneBadge?e(Vy,{status:Vr.Success,label:"",leftIcon:yt}):e(Vy,{status:Vr.Default,label:n.step.toString()}),e(ho,{size:i?so.M:so.XS,weight:i?500:400,opacity:i?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var Rv;!function(e){e.Data="data",e.Pretty="pretty"}(Rv||(Rv={}));const Ov=n.div`
2541
+ `,Nv=({label:r,direction:n,disabled:o,size:i,options:a,values:s,setValues:l})=>t(Iv,{$flexDirection:n===Lr.Horizontal?"row":"column",$gap:n===Lr.Horizontal?16:8,children:[r&&e(mo,{children:r}),a.map(t=>e(Tv,{...t,value:s[t.id],onChange:e=>{return r=t.id,n=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=n,t});var r,n},disabled:o,size:i},`${r}-radio-${t.id}`))]}),Rv=({currentStep:r,data:n,gap:o=12})=>e(Lo,{$gap:o,children:n.map(n=>{const o=n.step<r,i=n.step===r;return t(Fo,{$gap:8,children:[o||n.forceDoneBadge?e(Ky,{status:Kr.Success,label:"",leftIcon:yt}):e(Ky,{status:Kr.Default,label:n.step.toString()}),e(mo,{size:i?lo.M:lo.XS,weight:i?500:400,opacity:i?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var Ov;!function(e){e.Data="data",e.Pretty="pretty"}(Ov||(Ov={}));const _v=n.div`
2530
2542
  height: ${({$maxHeight:e})=>e};
2531
2543
  width: 100%;
2532
2544
  display: flex;
2533
2545
  flex-direction: column;
2534
2546
  overflow: hidden;
2535
- `,_v=n.div`
2547
+ `,Pv=n.div`
2536
2548
  width: 100%;
2537
2549
  flex: 1;
2538
2550
  display: flex;
2539
2551
  flex-direction: column;
2540
- `,Pv=n.div`
2552
+ `,Fv=n.div`
2541
2553
  flex-shrink: 0;
2542
2554
  position: relative;
2543
2555
  z-index: 2;
2544
- `,Fv=n.div`
2556
+ `,Lv=n.div`
2545
2557
  position: relative;
2546
2558
  display: flex;
2547
2559
  width: 100%;
2548
- `,Lv=n.div`
2560
+ `,zv=n.div`
2549
2561
  position: relative;
2550
2562
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2551
2563
  flex: ${({$flex:e})=>e??1};
@@ -2556,12 +2568,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2556
2568
 
2557
2569
  ${({$variant:e,$backgroundColor:t})=>{if(t)return o`
2558
2570
  background-color: ${t};
2559
- `;switch(e){case Rv.Data:return o`
2571
+ `;switch(e){case Ov.Data:return o`
2560
2572
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2561
- `;case Rv.Pretty:return o`
2573
+ `;case Ov.Pretty:return o`
2562
2574
  background-color: transparent;
2563
2575
  `;default:return""}}}
2564
- `,zv=n.div`
2576
+ `,Mv=n.div`
2565
2577
  position: absolute;
2566
2578
  top: 50%;
2567
2579
  right: 0;
@@ -2569,7 +2581,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2569
2581
  width: 1px;
2570
2582
  height: 18px;
2571
2583
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2572
- `,Mv=n.div`
2584
+ `,Bv=n.div`
2573
2585
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2574
2586
  flex: ${({$flex:e})=>e??1};
2575
2587
  overflow: hidden;
@@ -2580,23 +2592,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2580
2592
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2581
2593
  box-sizing: border-box;
2582
2594
 
2583
- ${({$variant:e,$selected:t,$hovered:r,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Rv.Data:return o`
2595
+ ${({$variant:e,$selected:t,$hovered:r,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Ov.Data:return o`
2584
2596
  border-bottom: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
2585
2597
  border-radius: ${n?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
2586
2598
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2587
- `;case Rv.Pretty:return o`
2599
+ `;case Ov.Pretty:return o`
2588
2600
  border: none;
2589
2601
  border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
2590
2602
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2591
2603
  `;default:return""}}}
2592
- `,Bv=n.div`
2604
+ `,Uv=n.div`
2593
2605
  width: 100%;
2594
2606
  display: flex;
2595
2607
  align-items: center;
2596
2608
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2597
2609
  gap: 4px;
2598
2610
  text-align: ${({$textAlign:e})=>e||"left"};
2599
- `,Uv=({variant:r,columns:n,rows:o,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Ht(null),p=Gt(()=>o.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:y,hideCheckbox:x}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(Fv,{children:[l&&e(Mv,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!x&&e($x,{value:g,onChange:()=>g?y?.():f?.()})},"checkbox-column"),n.map(({key:o,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===o),f=0===m&&!l,y=m===n.length-1,x=v.length&&(a&&y||s&&f||!a&&!s&&y),w=e(Po,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(ho,{size:so.XS,children:g?.rawValue||"-"})});return t(Mv,{$variant:r,$flex:d,$minWidth:p,...$(f,y),children:[i?e(ap,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,x?e(iv,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[o,c,i,a,s,l,n]);return e(iy,{gap:r===Rv.Pretty?8:0,elements:p})},jv=({columnKey:t,sortDirection:r,sortByKey:n,onSort:o})=>{const a=i(),s=n===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Lr.Ascending?0:180;return e(dd,{icon:t=>e(Lt,{fill:s,rotate:l,...t}),onClick:()=>o(t)})},Wv=({columnKey:t,filters:r,onFilter:n,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Gt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(o.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}))},[o,t,a]);return e(Ix,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>n(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Bt,{fill:l,...t})}})},Hv=({variant:r,backgroundColor:n,columns:o,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(Fv,{children:[p&&e(Lv,{$variant:r,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e($x,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),o.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:y,filterOverride:x,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===o.length-1,C=e(ho,{size:so.XS,align:$,children:h});return t(Lv,{$variant:r,$backgroundColor:n,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(Bv,{$textAlign:$,children:[g||m?e(ap,{text:g||h,children:C}):C,!f&&e(jv,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!y&&e(Wv,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:x})]}),!k&&r===Rv.Data&&e(zv,{})]},`column-${u}`)})]}),Xv=({variant:r,maxHeight:n="256px",headerBackgroundColor:o,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h,filters:m,onFiltersChange:g})=>{const[f,y]=Ht(Lr.Ascending),[x,b]=Ht(""),[v,$]=Ht({}),w=m??v,S=Kt(e=>{b(e),y(e=>e===Lr.Ascending?Lr.Descending:Lr.Ascending)},[]),k=Kt((e,t)=>{const r={...w,[e]:t};g&&g(r),void 0===m&&$(r)},[w,g,m]),C=Gt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const n=e(t,x),o=e(r,x);return(f===Lr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,o)}):c).filter(t=>{for(const[r,n]of Object.entries(w)){if(!n.length)continue;const o=l.find(e=>e.key===r)?.filterOverride;if(o){if(!o.filterRow(t,n))return!1}else if(!n.includes(e(t,r)))return!1}return!0})},[c,x,f,w,l]),{partiallySelected:E,allSelected:A}=Gt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(Ov,{$maxHeight:n,children:t(_v,{$variant:r,children:[!i&&e(Pv,{children:e(Hv,{variant:r,backgroundColor:o,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:x,onSort:S,filters:w,onFilter:k,withCheckboxes:h,partiallySelected:E,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(Uv,{variant:r,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Lo,{style:{height:n},children:a?e(Vo,{withSpinner:!0}):e(yx,{...s})})]})})},Gv=n.div`
2611
+ `,jv=({variant:r,columns:n,rows:o,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Ht(null),p=Gt(()=>o.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:y,hideCheckbox:x}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(Lv,{children:[l&&e(Bv,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!x&&e(wx,{value:g,onChange:()=>g?y?.():f?.()})},"checkbox-column"),n.map(({key:o,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===o),f=0===m&&!l,y=m===n.length-1,x=v.length&&(a&&y||s&&f||!a&&!s&&y),w=e(Fo,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(mo,{size:lo.XS,children:g?.rawValue||"-"})});return t(Bv,{$variant:r,$flex:d,$minWidth:p,...$(f,y),children:[i?e(sp,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,x?e(av,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[o,c,i,a,s,l,n]);return e(ay,{gap:r===Ov.Pretty?8:0,elements:p})},Wv=({columnKey:t,sortDirection:r,sortByKey:n,onSort:o})=>{const a=i(),s=n===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===zr.Ascending?0:180;return e(pd,{icon:t=>e(Lt,{fill:s,rotate:l,...t}),onClick:()=>o(t)})},Hv=({columnKey:t,filters:r,onFilter:n,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Gt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(o.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}))},[o,t,a]);return e(Nx,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>n(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Bt,{fill:l,...t})}})},Xv=({variant:r,backgroundColor:n,columns:o,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(Lv,{children:[p&&e(zv,{$variant:r,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(wx,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),o.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:y,filterOverride:x,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===o.length-1,C=e(mo,{size:lo.XS,align:$,children:h});return t(zv,{$variant:r,$backgroundColor:n,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(Uv,{$textAlign:$,children:[g||m?e(sp,{text:g||h,children:C}):C,!f&&e(Wv,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!y&&e(Hv,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:x})]}),!k&&r===Ov.Data&&e(Mv,{})]},`column-${u}`)})]}),Gv=({variant:r,maxHeight:n="256px",headerBackgroundColor:o,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h,filters:m,onFiltersChange:g})=>{const[f,y]=Ht(zr.Ascending),[x,b]=Ht(""),[v,$]=Ht({}),w=m??v,S=Kt(e=>{b(e),y(e=>e===zr.Ascending?zr.Descending:zr.Ascending)},[]),k=Kt((e,t)=>{const r={...w,[e]:t};g&&g(r),void 0===m&&$(r)},[w,g,m]),C=Gt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const n=e(t,x),o=e(r,x);return(f===zr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,o)}):c).filter(t=>{for(const[r,n]of Object.entries(w)){if(!n.length)continue;const o=l.find(e=>e.key===r)?.filterOverride;if(o){if(!o.filterRow(t,n))return!1}else if(!n.includes(e(t,r)))return!1}return!0})},[c,x,f,w,l]),{partiallySelected:E,allSelected:A}=Gt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(_v,{$maxHeight:n,children:t(Pv,{$variant:r,children:[!i&&e(Fv,{children:e(Xv,{variant:r,backgroundColor:o,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:x,onSort:S,filters:w,onFilter:k,withCheckboxes:h,partiallySelected:E,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(jv,{variant:r,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(zo,{style:{height:n},children:a?e(Ko,{withSpinner:!0}):e(xx,{...s})})]})})},Vv=n.div`
2600
2612
  display: flex;
2601
2613
  align-items: center;
2602
2614
  justify-content: center;
@@ -2628,7 +2640,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2628
2640
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2629
2641
  border: 1px solid transparent;
2630
2642
  `}
2631
- `,Vv=({label:r,leftIcon:n,rightIcon:o,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(Gv,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[n&&e(n,{fill:d,size:16}),e(ho,{color:d,size:so.XS,nowrap:!0,children:r}),o&&e(o,{fill:d,size:16})]})},Kv=n.div`
2643
+ `,Kv=({label:r,leftIcon:n,rightIcon:o,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(Vv,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[n&&e(n,{fill:d,size:16}),e(mo,{color:d,size:lo.XS,nowrap:!0,children:r}),o&&e(o,{fill:d,size:16})]})},qv=n.div`
2632
2644
  padding: 6px 12px;
2633
2645
 
2634
2646
  display: flex;
@@ -2646,7 +2658,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2646
2658
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2647
2659
  }
2648
2660
  `}
2649
- `,qv=n.textarea`
2661
+ `,Jv=n.textarea`
2650
2662
  max-width: ${({$maxWidth:e})=>e||"unset"};
2651
2663
  min-height: ${({$minHeight:e})=>e||"50px"};
2652
2664
  flex: 1;
@@ -2671,26 +2683,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2671
2683
  color: ${({theme:e})=>e.v2.colors.grey[400]};
2672
2684
  }
2673
2685
  }
2674
- `,Jv=({label:r,required:n,tooltip:o,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Vt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Fo,{$gap:6,children:[e(Jy,{label:r,tooltip:o,required:n,badge:i}),e(Kv,{$disabled:u,$error:!!a,children:e(qv,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(Yy,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Yv=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Qv=n.div`
2686
+ `,Yv=({label:r,required:n,tooltip:o,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Vt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Lo,{$gap:6,children:[e(Yy,{label:r,tooltip:o,required:n,badge:i}),e(qv,{$disabled:u,$error:!!a,children:e(Jv,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(Qy,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Qv=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Zv=n.div`
2675
2687
  flex: 1;
2676
2688
  min-width: 0;
2677
- `,Zv=n.div`
2689
+ `,e$=n.div`
2678
2690
  flex: 0 0 auto;
2679
2691
  min-width: 140px;
2680
- `,e$=({name:r,label:n,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=Yv,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:y})=>{const x=Gt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Gt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),o=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),i=String(e).match(o);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,x),[c,p,x]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Fo,{$width:y,$gap:6,children:[e(Jy,{label:n,tooltip:o,required:s,badge:i}),t(Po,{$gap:8,$alignItems:"center",children:[e(Qv,{children:e(tx,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(fi(e.target.value),v)})}),e(Zv,{children:e(ev,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(Yy,{errorMessage:h,warnMessage:m,helpMessage:g})]})},t$=n.div`
2692
+ `,t$=({name:r,label:n,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=Qv,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:y})=>{const x=Gt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Gt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),o=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),i=String(e).match(o);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,x),[c,p,x]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Lo,{$width:y,$gap:6,children:[e(Yy,{label:n,tooltip:o,required:s,badge:i}),t(Fo,{$gap:8,$alignItems:"center",children:[e(Zv,{children:e(rx,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(yi(e.target.value),v)})}),e(e$,{children:e(tv,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(Qy,{errorMessage:h,warnMessage:m,helpMessage:g})]})},r$=n.div`
2681
2693
  min-width: 500px;
2682
- `,r$=n.div`
2694
+ `,n$=n.div`
2683
2695
  display: flex;
2684
2696
  flex-direction: column;
2685
2697
  align-items: center;
2686
2698
  gap: 16px;
2687
2699
  padding: 24px;
2688
2700
  width: calc(100% - 48px);
2689
- `,n$=n.div`
2701
+ `,o$=n.div`
2690
2702
  display: flex;
2691
2703
  justify-content: center;
2692
2704
  gap: 16px;
2693
2705
  padding: 16px 24px;
2694
2706
  width: calc(100% - 48px);
2695
2707
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2696
- `,o$=({visual:r,title:n,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(xv,{isOpen:i,onClose:a,...d,children:t(t$,{children:[t(r$,{children:[r&&e(r,{}),e(ho,{size:so.M,weight:500,color:lo.Primary,children:n}),e(Fo,{$alignItems:"center",$gap:4,children:o.split("\n").map(t=>e(ho,{size:so.XS,weight:400,color:lo.Secondary,children:t},t))}),c]}),(s||l)&&t(n$,{children:[s&&e(gx,{"data-id":"deny",...s}),l&&e(gx,{"data-id":"approve",...l})]})]})});export{wr as $,Lx as A,hx as B,Bp as C,Gx as D,Wr as E,Po as F,Rg as G,pi as H,Ym as I,iu as J,qo as K,Vo as L,Gp as M,yx as N,qr as O,Ur as P,Pu as Q,Vr as R,lx as S,Ti as T,ni as U,lu as V,Kd as W,Ru as X,_u as Y,Hg as Z,iv as _,ux as a,wi as a$,xp as a0,si as a1,yi as a2,wc as a3,Dd as a4,vc as a5,In as a6,kd as a7,ei as a8,rn as a9,Hn as aA,Yi as aB,Pn as aC,jr as aD,Cc as aE,ki as aF,Gd as aG,Bo as aH,An as aI,Gi as aJ,ny as aK,Fn as aL,ui as aM,Ko as aN,kc as aO,Cr as aP,gu as aQ,Vn as aR,vu as aS,Uo as aT,jo as aU,Tf as aV,Wn as aW,Wo as aX,Ng as aY,Xy as aZ,Jc as a_,tu as aa,xg as ab,Ep as ac,Mn as ad,Tr as ae,Nr as af,Ir as ag,Hm as ah,Ip as ai,Ri as aj,Gr as ak,oi as al,Uf as am,jy as an,Kf as ao,Lf as ap,cp as aq,au as ar,Xr as as,gy as at,Uc as au,py as av,Qg as aw,ey as ax,My as ay,nd as az,Lo as b,Wc as b$,ed as b0,Nc as b1,Eu as b2,on as b3,Gn as b4,Xn as b5,iy as b6,mi as b7,Rn as b8,qn as b9,hi as bA,$r as bB,ti as bC,gn as bD,md as bE,ri as bF,xr as bG,gi as bH,Qi as bI,Zi as bJ,bn as bK,Ry as bL,Lg as bM,Qn as bN,ln as bO,yn as bP,cn as bQ,xn as bR,sn as bS,dn as bT,an as bU,Py as bV,zn as bW,Ec as bX,fd as bY,ea as bZ,zr as b_,jn as ba,Un as bb,Ic as bc,Ac as bd,ky as be,sd as bf,Ar as bg,$n as bh,Er as bi,id as bj,$d as bk,Zd as bl,zo as bm,xy as bn,bd as bo,rg as bp,hc as bq,uc as br,En as bs,wd as bt,ud as bu,_c as bv,Sn as bw,Kp as bx,du as by,Hr as bz,$c as c,Vv as c$,Ld as c0,ad as c1,Qr as c2,Zo as c3,Zb as c4,Ki as c5,Ku as c6,Td as c7,cu as c8,Rf as c9,o$ as cA,_m as cB,Sm as cC,Is as cD,Ua as cE,rs as cF,Ja as cG,Ns as cH,Ts as cI,ya as cJ,xa as cK,qx as cL,Da as cM,qi as cN,Ji as cO,ev as cP,dd as cQ,Rd as cR,Jr as cS,ao as cT,Nd as cU,Id as cV,Lm as cW,Cn as cX,kn as cY,_o as cZ,Ab as c_,Fd as ca,xu as cb,Ln as cc,ai as cd,td as ce,ld as cf,mg as cg,xc as ch,On as ci,Op as cj,ro as ck,uu as cl,Jy as cm,$x as cn,Yy as co,tx as cp,pv as cq,av as cr,nh as cs,wn as ct,Jv as cu,hh as cv,Gb as cw,bi as cx,yh as cy,sh as cz,yd as d,bl as d$,ta as d0,sa as d1,na as d2,aa as d3,Om as d4,lc as d5,dc as d6,ja as d7,ia as d8,cc as d9,nc as dA,oc as dB,ic as dC,ac as dD,Xs as dE,Vs as dF,Ks as dG,qs as dH,Ys as dI,Js as dJ,Zs as dK,Qs as dL,tl as dM,el as dN,rl as dO,js as dP,Ws as dQ,dl as dR,pl as dS,yl as dT,gl as dU,fl as dV,hl as dW,ml as dX,ul as dY,$l as dZ,wl as d_,zs as da,Ls as db,Us as dc,Bs as dd,Ps as de,_s as df,ra as dg,ks as dh,Ix as di,Cx as dj,kx as dk,sc as dl,Hh as dm,Hs as dn,fm as dp,nl as dq,ol as dr,il as ds,al as dt,ll as du,sl as dv,cl as dw,No as dx,tc as dy,rc as dz,Tn as e,ca as e$,vl as e0,xl as e1,kl as e2,Cl as e3,Sl as e4,Dv as e5,Cv as e6,Gs as e7,Gl as e8,Vl as e9,Pl as eA,Ml as eB,xv as eC,Ad as eD,Ro as eE,Fm as eF,uh as eG,rh as eH,fh as eI,hv as eJ,Nv as eK,xx as eL,Mx as eM,ah as eN,Ux as eO,zx as eP,io as eQ,yb as eR,pn as eS,Qx as eT,ub as eU,tb as eV,Oo as eW,Ta as eX,hs as eY,da as eZ,la as e_,Kl as ea,Xl as eb,Jl as ec,Yl as ed,Ql as ee,Zl as ef,ec as eg,ql as eh,Wl as ei,Hl as ej,_l as ek,bm as el,Bl as em,Ul as en,jl as eo,Fl as ep,zl as eq,Ll as er,El as es,Al as et,Dl as eu,Tl as ev,Il as ew,Nl as ex,Rl as ey,Ol as ez,vf as f,ha as f$,pa as f0,Xh as f1,xm as f2,$m as f3,wm as f4,lm as f5,im as f6,Rh as f7,Nh as f8,Ih as f9,Ga as fA,Qa as fB,ss as fC,Ba as fD,is as fE,Pa as fF,va as fG,Fa as fH,_a as fI,$a as fJ,La as fK,gs as fL,Oa as fM,us as fN,fs as fO,ms as fP,ys as fQ,xs as fR,ts as fS,wa as fT,Sa as fU,Ea as fV,Aa as fW,Ia as fX,Ra as fY,Na as fZ,ua as f_,cm as fa,am as fb,qh as fc,gm as fd,Rs as fe,Ss as ff,$s as fg,ws as fh,vs as fi,bs as fj,Gh as fk,Vh as fl,Kh as fm,As as fn,Ds as fo,Es as fp,Cs as fq,vd as fr,e$ as fs,Ka as ft,Ca as fu,Va as fv,ka as fw,es as fx,Za as fy,za as fz,_n as g,fi as g$,ba as g0,ns as g1,os as g2,ls as g3,pc as g4,ma as g5,zh as g6,oa as g7,nm as g8,rm as g9,Mr as gA,mn as gB,hn as gC,un as gD,Yr as gE,vn as gF,fn as gG,Lr as gH,Rr as gI,Eo as gJ,Co as gK,To as gL,br as gM,Nn as gN,Sr as gO,Bn as gP,Kn as gQ,Yn as gR,Zn as gS,eo as gT,to as gU,no as gV,oo as gW,Jo as gX,ii as gY,li as gZ,di as g_,tm as ga,Wa as gb,Ma as gc,Th as gd,Dh as ge,Ah as gf,xh as gg,Ha as gh,cs as gi,Xa as gj,Ya as gk,ds as gl,Nx as gm,as as gn,ko as go,Dr as gp,en as gq,_r as gr,tn as gs,Zr as gt,Br as gu,Kr as gv,Pr as gw,Fr as gx,Or as gy,nn as gz,Jg as h,xi as h0,vi as h1,$i as h2,kr as h3,Si as h4,ps as h5,Ms as h6,Fs as h7,Os as h8,fa as h9,Ei as hA,Ai as hB,Di as hC,Px as hD,Fx as hE,Sx as hF,wb as hG,Yv as hH,rb as hI,nv as hJ,kv as hK,Iv as hL,Vx as hM,Fb as hN,Db as hO,ga as ha,mc as hb,gc as hc,fc as hd,qa as he,yc as hf,Bc as hg,Kc as hh,jc as hi,Mc as hj,xd as hk,od as hl,Ed as hm,Mm as hn,Bm as ho,Uu as hp,Lu as hq,qg as hr,ff as hs,df as ht,wf as hu,Af as hv,hu as hw,Yf as hx,Mo as hy,rf as hz,Ap as i,_b as j,Tb as k,Ib as l,gx as m,ho as n,lo as o,so as p,ap as q,nx as r,rx as s,Xv as t,pd as u,Rv as v,px as w,Vy as x,Fo as y,Dn as z};
2708
+ `,i$=({visual:r,title:n,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(bv,{isOpen:i,onClose:a,...d,children:t(r$,{children:[t(n$,{children:[r&&e(r,{}),e(mo,{size:lo.M,weight:500,color:co.Primary,children:n}),e(Lo,{$alignItems:"center",$gap:4,children:o.split("\n").map(t=>e(mo,{size:lo.XS,weight:400,color:co.Secondary,children:t},t))}),c]}),(s||l)&&t(o$,{children:[s&&e(fx,{"data-id":"deny",...s}),l&&e(fx,{"data-id":"approve",...l})]})]})});export{Ov as $,zx as A,mx as B,Up as C,Vx as D,Hr as E,Fo as F,xi as G,av as H,Qm as I,Pb as J,Ib as K,Nb as L,fx as M,xx as N,Jr as O,Pu as P,mo as Q,co as R,au as S,Ii as T,lo as U,sp as V,cx as W,ox as X,nx as Y,jr as Z,Gv as _,hx as a,Si as a$,Ko as a0,ux as a1,Ky as a2,Sc as a3,Td as a4,$c as a5,Nn as a6,Cd as a7,ti as a8,nn as a9,Xn as aA,Qi as aB,Fn as aC,Wr as aD,Ec as aE,Ci as aF,Vd as aG,Uo as aH,Dn as aI,Vi as aJ,oy as aK,Ln as aL,hi as aM,qo as aN,Cc as aO,Er as aP,fu as aQ,Kn as aR,$u as aS,jo as aT,Wo as aU,If as aV,Hn as aW,Ho as aX,Rg as aY,Gy as aZ,Yc as a_,ru as aa,bg as ab,Ap as ac,Bn as ad,Ir as ae,Rr as af,Nr as ag,Xm as ah,Np as ai,Oi as aj,Vr as ak,ii as al,jf as am,Wy as an,qf as ao,zf as ap,dp as aq,su as ar,Gr as as,fy as at,jc as au,uy as av,Zg as aw,ty as ax,By as ay,od as az,zo as b,Hc as b$,td as b0,Rc as b1,Au as b2,an as b3,Vn as b4,Gn as b5,ay as b6,gi as b7,On as b8,Jn as b9,mi as bA,wr as bB,ri as bC,fn as bD,gd as bE,ni as bF,br as bG,fi as bH,Zi as bI,ea as bJ,vn as bK,Oy as bL,zg as bM,Zn as bN,cn as bO,xn as bP,dn as bQ,bn as bR,ln as bS,pn as bT,sn as bU,Fy as bV,Mn as bW,Ac as bX,yd as bY,ta as bZ,Mr as b_,Wn as ba,jn as bb,Nc as bc,Dc as bd,Cy as be,ld as bf,Dr as bg,wn as bh,Ar as bi,ad as bj,wd as bk,ep as bl,Mo as bm,by as bn,vd as bo,ng as bp,mc as bq,hc as br,An as bs,Sd as bt,hd as bu,Pc as bv,kn as bw,qp as bx,pu as by,Xr as bz,wc as c,Kv as c$,zd as c0,sd as c1,Zr as c2,ei as c3,ev as c4,qi as c5,qu as c6,Id as c7,du as c8,Of as c9,i$ as cA,Pm as cB,km as cC,Ns as cD,ja as cE,ns as cF,Ya as cG,Rs as cH,Is as cI,xa as cJ,ba as cK,Jx as cL,Ta as cM,Ji as cN,Yi as cO,tv as cP,pd as cQ,Od as cR,Yr as cS,so as cT,Rd as cU,Nd as cV,zm as cW,En as cX,Cn as cY,Po as cZ,Db as c_,Ld as ca,bu as cb,zn as cc,si as cd,rd as ce,cd as cf,gg as cg,bc as ch,_n as ci,_p as cj,no as ck,hu as cl,Yy as cm,wx as cn,Qy as co,rx as cp,uv as cq,sv as cr,oh as cs,Sn as ct,Yv as cu,mh as cv,Vb as cw,vi as cx,xh as cy,lh as cz,xd as d,vl as d$,ra as d0,la as d1,oa as d2,sa as d3,_m as d4,cc as d5,pc as d6,Wa as d7,aa as d8,dc as d9,oc as dA,ic as dB,ac as dC,sc as dD,Gs as dE,Ks as dF,qs as dG,Js as dH,Qs as dI,Ys as dJ,el as dK,Zs as dL,rl as dM,tl as dN,nl as dO,Ws as dP,Hs as dQ,pl as dR,ul as dS,xl as dT,fl as dU,yl as dV,ml as dW,gl as dX,hl as dY,wl as dZ,Sl as d_,Ms as da,zs as db,js as dc,Us as dd,Fs as de,Ps as df,na as dg,Cs as dh,Nx as di,Ex as dj,Cx as dk,lc as dl,Xh as dm,Xs as dn,ym as dp,ol as dq,il as dr,al as ds,sl as dt,cl as du,ll as dv,dl as dw,Ro as dx,rc as dy,nc as dz,In as e,da as e$,$l as e0,bl as e1,Cl as e2,El as e3,kl as e4,Tv as e5,Ev as e6,Vs as e7,Vl as e8,Kl as e9,Fl as eA,Bl as eB,bv as eC,Dd as eD,Oo as eE,Lm as eF,hh as eG,nh as eH,yh as eI,mv as eJ,Rv as eK,bx as eL,Bx as eM,sh as eN,jx as eO,Mx as eP,ao as eQ,xb as eR,un as eS,Zx as eT,hb as eU,rb as eV,_o as eW,Ia as eX,ms as eY,pa as eZ,ca as e_,ql as ea,Gl as eb,Yl as ec,Ql as ed,Zl as ee,ec as ef,tc as eg,Jl as eh,Hl as ei,Xl as ej,Pl as ek,vm as el,Ul as em,jl as en,Wl as eo,Ll as ep,Ml as eq,zl as er,Al as es,Dl as et,Tl as eu,Il as ev,Nl as ew,Rl as ex,Ol as ey,_l as ez,$f as f,ma as f$,ua as f0,Gh as f1,bm as f2,wm as f3,Sm as f4,cm as f5,am as f6,Oh as f7,Rh as f8,Nh as f9,Va as fA,Za as fB,ls as fC,Ua as fD,as as fE,Fa as fF,$a as fG,La as fH,Pa as fI,wa as fJ,za as fK,fs as fL,_a as fM,hs as fN,ys as fO,gs as fP,xs as fQ,bs as fR,rs as fS,Sa as fT,ka as fU,Aa as fV,Da as fW,Na as fX,Oa as fY,Ra as fZ,ha as f_,dm as fa,sm as fb,Jh as fc,fm as fd,Os as fe,ks as ff,ws as fg,Ss as fh,$s as fi,vs as fj,Vh as fk,Kh as fl,qh as fm,Ds as fn,Ts as fo,As as fp,Es as fq,$d as fr,t$ as fs,qa as ft,Ea as fu,Ka as fv,Ca as fw,ts as fx,es as fy,Ma as fz,Pn as g,yi as g$,va as g0,os as g1,is as g2,cs as g3,uc as g4,ga as g5,Mh as g6,ia as g7,om as g8,nm as g9,Br as gA,gn as gB,mn as gC,hn as gD,Qr as gE,$n as gF,yn as gG,zr as gH,Or as gI,Ao as gJ,Eo as gK,Io as gL,vr as gM,Rn as gN,kr as gO,Un as gP,qn as gQ,Qn as gR,eo as gS,to as gT,ro as gU,oo as gV,io as gW,Yo as gX,ai as gY,ci as gZ,pi as g_,rm as ga,Ha as gb,Ba as gc,Ih as gd,Th as ge,Dh as gf,bh as gg,Xa as gh,ds as gi,Ga as gj,Qa as gk,ps as gl,Rx as gm,ss as gn,Co as go,Tr as gp,tn as gq,Pr as gr,rn as gs,en as gt,Ur as gu,qr as gv,Fr as gw,Lr as gx,_r as gy,on as gz,Yg as h,bi as h0,$i as h1,wi as h2,Cr as h3,ki as h4,us as h5,Bs as h6,Ls as h7,_s as h8,ya as h9,Ai as hA,Di as hB,Ti as hC,Fx as hD,Lx as hE,kx as hF,Sb as hG,Qv as hH,nb as hI,ov as hJ,Cv as hK,Nv as hL,Kx as hM,Lb as hN,Tb as hO,fa as ha,gc as hb,fc as hc,yc as hd,Ja as he,xc as hf,Uc as hg,qc as hh,Wc as hi,Bc as hj,bd as hk,id as hl,Ad as hm,Bm as hn,Um as ho,ju as hp,zu as hq,Jg as hr,yf as hs,pf as ht,Sf as hu,Df as hv,mu as hw,Qf as hx,Bo as hy,nf as hz,Dp as i,Tn as j,Og as k,Jo as l,Vp as m,Lo as n,Fu as o,Kr as p,oi as q,cu as r,ui as s,qd as t,ud as u,Ou as v,Xg as w,Sr as x,bp as y,li as z};