@odigos/ui-kit 0.0.221 → 0.0.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/lib/chunks/{index-B0bRHrR6.js → index-DtYRiMjc.js} +1 -1
  3. package/lib/chunks/{ui-components-BRgXOh8V.js → ui-components-Bn9natqF.js} +394 -394
  4. package/lib/components/_v2/button/index.d.ts +1 -0
  5. package/lib/components/_v2/table/table-columns/filter/index.d.ts +2 -1
  6. package/lib/components/_v2/table/types.d.ts +17 -0
  7. package/lib/components/v2.js +1 -1
  8. package/lib/components.js +1 -1
  9. package/lib/constants/sampling/index.d.ts +3 -3
  10. package/lib/constants.js +1 -1
  11. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/sampling-preview.d.ts +1 -1
  12. package/lib/containers/_v2/sampling-rules/auto-rule-card/index.d.ts +4 -3
  13. package/lib/containers/overview-drawer/index.d.ts +2 -1
  14. package/lib/containers/source-drawer/profiling/flame-graph-canvas.d.ts +2 -0
  15. package/lib/containers/source-drawer/profiling/flamebearer.d.ts +9 -0
  16. package/lib/containers/source-drawer/profiling/index.d.ts +2 -0
  17. package/lib/containers/source-drawer/profiling/symbol-table.d.ts +2 -0
  18. package/lib/containers/v2.js +63 -93
  19. package/lib/containers.js +126 -126
  20. package/lib/contexts.js +1 -1
  21. package/lib/functions/index.d.ts +1 -0
  22. package/lib/functions/prepare-destination-form-data/index.d.ts +2 -0
  23. package/lib/functions.js +1 -1
  24. package/lib/hooks.js +1 -1
  25. package/lib/snippets/v2.js +4 -4
  26. package/lib/snippets.js +1 -1
  27. package/lib/store.js +1 -1
  28. package/lib/theme.js +1 -1
  29. package/lib/types.js +1 -1
  30. package/lib/visuals.js +1 -1
  31. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon as r,DeleteAttributeIcon as i,AddClusterInfoIcon as n,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as f,PhpLogo as x,CPlusPlusLogo as y,CSharpLogo as b,DotnetLogo as $,PythonLogo as v,NodejsLogo as w,GoLogo as S,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as E,UptraceLogo as A,TraceloopLogo as D,TingyunLogo as T,TempoLogo as N,TelemetryHubLogo as I,SumoLogicLogo as _,SplunkLogo as O,SignozLogo as R,SeqLogo as F,AwsS3Logo as z,QuickwitLogo as L,GigapipeLogo as P,QrynLogo as M,PrometheusLogo as B,OpenTelemetryLogo as U,OracleLogo as j,OpsVerseLogo as W,OpenObserveLogo as H,OneUptimeLogo as X,OdigosLogo as G,ObserveLogo as V,NewRelicLogo as K,MiddlewareLogo as q,LumigoLogo as J,LokiLogo as Y,LogzioLogo as Q,LightstepLogo as Z,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as oe,InstanaLogo as re,HyperDxLogo as ie,HoneycombLogo as ne,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as fe,ClickhouseLogo as xe,ChronosphereLogo as ye,ChecklyLogo as be,CauselyLogo as $e,BonreeLogo as ve,BetterStackLogo as we,AzureMonitorLogo as Se,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Ee,AlibabaCloudLogo as Ae,AlaudaLogo as De,SamplingIcon as Te,InstrumentationRuleIcon as Ne,DestinationIcon as Ie,SourceIcon as _e,NamespacesIcon as Oe,PayloadCollectionIcon as Re,HeadersCollectionIcon as Fe,CustomInstrumentationIcon as ze,CodeAttributesIcon as Le,TracesIcon as Pe,MetricsIcon as Me,LogsIcon as Be,VmLogo as Ue,QuestionCircleIcon as je,XSquareIcon as We,VSquareIcon as He,ExclamationTriangleIcon as Xe,ExclamationCircleIcon as Ge,ISquareIcon as Ve,AwsLogo as Ke,AwsSecretsManagerLogo as qe,AwsStepFunctionsLogo as Je,AwsEventBridgeLogo as Ye,AwsBedrockLogo as Qe,AwsApiGatewayLogo as Ze,AwsEc2Logo as et,AwsKinesisLogo as tt,AwsLambdaLogo as ot,AwsSnsLogo as rt,AwsSqsLogo as it,AwsDynamoDbLogo as nt,AwsStsLogo as at,VIcon as st,CopyIcon as lt,XIcon as ct,MinusIcon as dt,ListIcon as pt,CodeIcon as ut,ExtendArrowIcon as ht,PlusIcon as mt,EditIcon as gt,NoDataIcon as ft,RefreshIcon as xt,EyeClosedIcon as yt,EyeOpenIcon as bt,SearchIcon as $t,TrashIcon as vt,EditedIcon as wt,SortArrowsIcon as St,NotebookIcon as Ct,DotsHorizontalIcon as kt,ChevronUpIcon as Et,ChevronDownIcon as At,ArrowIcon as Dt,DotsVerticalIcon as Tt,DotIcon as Nt,FilterIcon as It}from"../icons.js";import{create as _t}from"zustand";import{jsx as Ot,jsxs as Rt,Fragment as Ft}from"react/jsx-runtime";import{Fragment as zt,useMemo as Lt,useState as Pt,useEffect as Mt,useRef as Bt,useCallback as Ut,useContext as jt,createContext as Wt,forwardRef as Ht,memo as Xt}from"react";import Gt from"javascript-time-ago";import{p as Vt,c as Kt,s as qt,l as Jt}from"./vendor-C150cdxb.js";import Yt,{css as Qt,useTheme as Zt,ThemeProvider as eo,keyframes as to}from"styled-components";import{Handle as oo,Position as ro,ReactFlowProvider as io,ReactFlow as no,Controls as ao,ControlButton as so,useReactFlow as lo}from"@xyflow/react";import co,{createPortal as po}from"react-dom";import{Highlight as uo,themes as ho}from"prism-react-renderer";import{ErrorBoundary as mo}from"react-error-boundary";import go from"lottie-react";import{VList as fo}from"virtua";const xo=e=>e.charAt(0).toUpperCase()+e.slice(1),yo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,o(r)]:[e,r]));return Object.entries(e).reduce((e,[r,i])=>{try{const n=JSON.parse(i);Array.isArray(n)?e[r]=JSON.stringify(t(n)):e[r]="object"==typeof n&&null!==n?JSON.stringify(o(n)):i}catch(n){"object"==typeof i&&null!==i?Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]=JSON.stringify(o(i)):e[r]=i}return e},{})};var bo;!function(e){e.SIGNALS="SIGNALS"}(bo||(bo={}));const $o=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,i,n]=e;if(r===bo.SIGNALS)switch(i){case"INCLUDES":return t?.includes(n);case"EXCLUDES":return!t?.includes(n);default:return!0}const a=o.find(e=>e.name===r||e.key===r);if(!a)return!1;switch(i){case"===":case"==":return a.value===n;case"!==":case"!=":return a.value!==n;case">":return Number(a.value)>Number(n);case"<":return Number(a.value)<Number(n);case">=":return Number(a.value)>=Number(n);case"<=":return Number(a.value)<=Number(n);default:return!0}},vo=e=>JSON.parse(JSON.stringify(e)),wo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),So=(e,t,o)=>{const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++)r[e]in i&&"object"==typeof i[r[e]]||(i[r[e]]={}),i=i[r[e]];i[r[r.length-1]]=o},Co=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},ko=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Eo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Ao,Do,To,No,Io,_o,Oo,Ro,Fo,zo,Lo,Po,Mo,Bo,Uo,jo,Wo,Ho,Xo,Go,Vo,Ko,qo,Jo,Yo,Qo,Zo,er,tr,or,rr,ir,nr,ar,sr,lr,cr,dr,pr,ur,hr,mr;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ao||(Ao={})),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"}(Do||(Do={})),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"}(To||(To={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(No||(No={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Io||(Io={})),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"}(_o||(_o={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Oo||(Oo={})),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"}(Ro||(Ro={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fo||(Fo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(zo||(zo={})),function(e){e.Community="community",e.Onprem="onprem"}(Lo||(Lo={})),function(e){e.K8s="k8s",e.Vm="vm"}(Po||(Po={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Mo||(Mo={})),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"}(Bo||(Bo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Uo||(Uo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(jo||(jo={})),function(e){e.DataStream="DataStream"}(Wo||(Wo={})),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"}(Ho||(Ho={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Xo||(Xo={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Go||(Go={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Vo||(Vo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ko||(Ko={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(qo||(qo={})),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"}(Jo||(Jo={})),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"}(Yo||(Yo={})),function(e){e.Labeled="labeled"}(Qo||(Qo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Zo||(Zo={})),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"}(er||(er={})),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"}(tr||(tr={})),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.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(or||(or={})),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"}(rr||(rr={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(ir||(ir={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(nr||(nr={})),function(e){e.HeaderKeys="headerKeys"}(ar||(ar={})),function(e){e.Java="java",e.Golang="golang"}(sr||(sr={}));class gr{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 fr{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,r){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=r||""}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"}(lr||(lr={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(cr||(cr={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(dr||(dr={})),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"}(pr||(pr={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ur||(ur={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(hr||(hr={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(mr||(mr={}));const xr={[hr.Logs]:mr.Logs,[hr.Metrics]:mr.Metrics,[hr.Traces]:mr.Traces},yr={[mr.Logs]:hr.Logs,[mr.Metrics]:hr.Metrics,[mr.Traces]:hr.Traces},br=(e,t)=>{let o=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));o=o.filter(({namespace:t})=>e.has(t))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));o=o.filter(({kind:t})=>e.has(t))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));o=o.filter(({containers:t})=>t?.some(({language:t})=>e.has(t)))}if(t.conditions?.length){const e=new Set(t.conditions.map(({id:e})=>e));o=o.filter(({conditions:t})=>t?.some(({type:t,reason:o})=>e.has(`${t}#${o}`)))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));o=o.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum)||e.has(t?.message))}if(t.onlyErrors&&(o=o.filter(e=>e.conditions?.some(e=>e.status===Go.Error))),t.errors?.length){const e=new Set(t.errors.map(({id:e})=>e));o=o.filter(t=>t.conditions?.some(t=>e.has(t.message)))}return o},$r="https://docs.odigos.io",vr="default",wr="this-cluster",Sr="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},kr={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)'},Er={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},Ar={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"},Dr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===vr&&!e.dataStreamNames.length):[],Tr=(e,t="",o={})=>{for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],n=t?`${t}.${r}`:r;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const r=`${n}[${t}]`;null!==e&&"object"==typeof e?Tr(e,r,o):o[r]=e}):o[n]=i:Tr(i,n,o)}return o},Nr=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]}`},Ir=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`}},_r=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const r=e[t%16];t++;return("1"===o?r:"0"===o?63&r|128:15&r|64).toString(16)})},Or=l=>{const c=l?.toLowerCase(),d=c?.includes(Ao.Samplers),p=c===Ao.Attributes;if(d)return e;if(p)return t;return{[Do.K8sAttributes]:a,[Do.AddClusterInfo]:n,[Do.DeleteAttributes]:i,[Do.PiiMasking]:t,[Do.RenameAttributes]:r,[Do.URLTemplatization]:o,[Do.ErrorSampler]:e,[Do.ProbabilisticSampler]:e,[Do.LatencySampler]:e,[Do.ServiceNameSampler]:e,[Do.SpanAttributeSampler]:e}[l]||s},Rr=e=>{const t=e?.filter(({status:e})=>e===Go.Error),o=e?.filter(({status:e})=>e===Go.Warning),r=e?.filter(({status:e})=>e===Ko.Disabled),i=e?.filter(({status:e})=>e===Ko.Loading),n=t.length>0,a=o.length>0,s=r.length>0;return{errors:t,hasErrors:n,warnings:o,hasWarnings:a,disableds:r,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:n?Go.Error:a?Go.Warning:s?Go.Info:void 0}},Fr=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zr=e=>({[Bo.Java]:C,[Bo.Go]:S,[Bo.JavaScript]:w,[Bo.Python]:v,[Bo.DotNet]:$,[Bo.CSharp]:b,[Bo.CPlusPlus]:y,[Bo.Php]:x,[Bo.Ruby]:f,[Bo.Rust]:g,[Bo.Swift]:m,[Bo.Elixir]:h,[Bo.MySql]:u,[Bo.Nginx]:p,[Bo.Postgres]:d,[Bo.Redis]:c,[Bo.Kafka]:l,[Bo.Ignored]:s,[Bo.Unknown]:s,[Bo.Processing]:s,[Bo.NoContainers]:s,[Bo.NoRunningPods]:s}[e]||s),Lr=e=>e?.map(({language:e})=>zr(e))||[],Pr=e=>e?.map(e=>zr(e))||[],Mr=e=>e.detectedLanguages?.length?Pr(e.detectedLanguages):Lr(e.containers),Br=(e,t)=>{const o={[er.Alauda]:De,[er.AlibabaCloud]:Ae,[er.AppDynamics]:Ee,[er.Axiom]:ke,[er.AzureBlob]:Ce,[er.AzureMonitor]:Se,[er.BetterStack]:we,[er.Bonree]:ve,[er.Causely]:$e,[er.Checkly]:be,[er.Chronosphere]:ye,[er.ClickHouse]:xe,[er.CloudWatch]:fe,[er.Coralogix]:ge,[er.Dash0]:me,[er.Datadog]:he,[er.Dynamic]:U,[er.Dynatrace]:ue,[er.ElasticApm]:pe,[er.ElasticSearch]:de,[er.GoogleCloud]:ce,[er.GoogleCloudOTLP]:ce,[er.GrafanaCloudLoki]:le,[er.GrafanaCloudPrometheus]:le,[er.GrafanaCloudTempo]:le,[er.Greptime]:se,[er.Groundcover]:ae,[er.Honeycomb]:ne,[er.HyperDX]:ie,[er.Instana]:re,[er.Jaeger]:oe,[er.Kafka]:l,[er.Kloudmate]:te,[er.Last9]:ee,[er.Lightstep]:Z,[er.LogzIo]:Q,[er.Loki]:Y,[er.Lumigo]:J,[er.Middleware]:q,[er.NewRelic]:K,[er.Observe]:V,[er.Odigos]:G,[er.OneUptime]:X,[er.OpenObserve]:H,[er.Opsverse]:W,[er.Oracle]:j,[er.OTLP]:U,[er.OTLPHttp]:U,[er.Prometheus]:B,[er.Qryn]:M,[er.QrynOss]:P,[er.Quickwit]:L,[er.S3]:z,[er.Seq]:F,[er.Signalfx]:O,[er.Signoz]:R,[er.Splunk]:O,[er.SplunkSapm]:O,[er.SplunkOtlp]:O,[er.SumoLogic]:_,[er.TelemetryHub]:I,[er.Tempo]:N,[er.Tingyun]:T,[er.Traceloop]:D,[er.Uptrace]:A,[er.VictoriaMetrics]:E,[er.VictoriaMetricsCloud]:E,[er.XRay]:k}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Ur=e=>({[jo.Namespace]:Oe,[jo.Source]:_e,[jo.Destination]:Ie,[jo.Action]:o,[jo.InstrumentationRule]:Ne,[jo.SamplingRule]:Te}[e]),jr=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,Wr=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Hr=e=>Wr(jr(e)),Xr=(e,t,o)=>{const{extended:r,prioritizeDisplayName:i}=o||{};let n="",a="";switch(t){case jo.InstrumentationRule:const t=e;n=t.type,a=t.ruleName;break;case jo.Source:const o=e;n=o.name,a=o.otelServiceName;break;case jo.Action:const r=e;n=r.type,a=r.name;break;case jo.Destination:const i=e;n=i.destinationType.displayName,a=i.name;break;case jo.Namespace:const s=e;n=s.name,a=s.name}return r?n+(a&&a!==n?` (${a})`:""):i&&a||n},Gr=(e,t)=>{if(t===jo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,r]=e.split("=");t[o]=r}),t}return e},Vr=e=>({[ir.CodeAttributes]:Le,[ir.CustomInstrumentation]:ze,[ir.HeadersCollection]:Fe,[ir.PayloadCollection]:Re,[ir.UnknownType]:s}[e]||s),Kr=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?Bo.Processing:Bo.NoRunningPods;const r=o?.filter(e=>e.language!==Bo.Ignored);if(!r.length)return Bo.NoContainers;const i=r.find(e=>e.language!==Bo.Unknown);return i?i.language:Bo.Unknown},qr=(e,t,o)=>(t===jo.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},Jr=e=>({[hr.Logs]:Be,[hr.Metrics]:Me,[hr.Traces]:Pe}[e]),Yr=e=>{if(!e)return G;return{[Po.K8s]:a,[Po.Vm]:Ue}[e]},Qr=e=>{if(!e)return"Unknown";return{[Po.K8s]:"Kubernetes Cluster",[Po.Vm]:"Virtual Machine"}[e]},Zr=(e,t,o)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[o],i=[];return void 0!==r&&(Array.isArray(r)?i.push(...r):i.push(r)),i.push(...Zr(e,t,o)),i}):[]},ei=(e,t)=>{if(t===jo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},ti=(e,t,o)=>{switch(t){case Go.Default:return e.v2.colors.purple[o];case Go.Info:return e.v2.colors.blue[o];case Go.Error:return e.v2.colors.red[o];case Go.Warning:return e.v2.colors.yellow[o];case Go.Success:return e.v2.colors.green[o];case qo.Disabled:case qo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},oi=e=>{switch(e){case cr.Updating:case dr.Pending:case pr.ContainerCreating:case ur.Waiting:return Go.Info;case cr.Healthy:case dr.Succeeded:case dr.Running:case pr.Running:case ur.Running:return Go.Success;case cr.Degraded:return Go.Warning;case cr.Failed:case dr.Failed:case pr.Error:case pr.CrashLoopBackOff:case pr.CreateContainerError:case pr.CreateContainerConfigError:case pr.ErrImagePull:case pr.ErrImageNeverPull:case pr.ImagePullBackOff:case pr.InvalidImageName:case pr.RegistryUnavailable:case pr.NetworkNotReady:case pr.OOMKilled:case pr.ContainerCannotRun:case ur.Terminated:case pr.DeadlineExceeded:case pr.StartError:return Go.Error;case cr.Down:case pr.Completed:return qo.Disabled;case cr.Unknown:case dr.Unknown:default:return qo.Unknown}},ri=(e,t)=>{const o={[Go.Default]:o=>G({fill:ti(t,e,"300"),...o}),[Go.Info]:o=>Ve({fill:ti(t,e,"400"),...o}),[Go.Error]:o=>Ge({fill:ti(t,e,"500"),...o}),[Go.Warning]:o=>Xe({fill:ti(t,e,"500"),...o}),[Go.Success]:o=>He({fill:ti(t,e,"500"),...o}),[qo.Disabled]:o=>We({fill:ti(t,e,"400"),...o}),[qo.Unknown]:o=>je({fill:ti(t,e,"300"),...o})};return o[e]},ii=e=>{switch(e){case rr.Success:return Go.Success;case rr.Error:case rr.Failure:return Go.Error;case rr.Notice:return Go.Warning;case rr.Unsupported:case rr.Unknown:return Go.Info;case rr.Irrelevant:case rr.Disabled:return Ko.Disabled;case rr.Waiting:return Ko.Loading;case rr.Pending:default:return Go.Default}},ni=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},ai={redis:c,mysql:u,postgresql:d,postgres:d,kafka:l,elasticsearch:de,clickhouse:xe,oracle:j,aws:Ke},si={sts:at,dynamodb:nt,s3:z,sqs:it,sns:rt,lambda:ot,kinesis:tt,ec2:et,apigateway:Ze,apigatewayv2:Ze,bedrock:Qe,bedrockruntime:Qe,eventbridge:Ye,sfn:Je,stepfunctions:Je,secretsmanager:qe,cloudwatch:fe},li=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=ai[o.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=ai[r.toLowerCase()];if(e)return e}const i=t["rpc.system"];if(i?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=si[e];if(t)return t}return Ke}const n=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(ai))if(n.includes(e))return t;return Ie},ci=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function di(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const pi=(e,t)=>{const o=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=di(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:r[e.name]})))}return o},ui=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Go.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},hi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),mi=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)},gi=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},fi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},xi=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,yi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,bi=e=>yi.test(e),$i=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",vi=e=>e?.map(({status:e,type:t,reason:o,message:r})=>({status:e,type:$i(t),reason:o?$i(o):"",message:r}))||[],wi=(e,t)=>{const o=di(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Si=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>yr[e]):[],Ci=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>yr[e]):[],ki=e=>e.replace(/[^\d]/g,""),Ei=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Ai=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Di=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const r=e[o];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Di(e)))}else if("object"==typeof r&&null!==r){const e=Di(r);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(r)||(t[o]=r)}),t},Ti=(e,t=2)=>JSON.stringify(e||{},null,t),Ni=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ii=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),_i=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)},Oi=Yt.div`
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon as r,DeleteAttributeIcon as i,AddClusterInfoIcon as n,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as f,PhpLogo as x,CPlusPlusLogo as y,CSharpLogo as b,DotnetLogo as $,PythonLogo as v,NodejsLogo as w,GoLogo as S,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as E,UptraceLogo as A,TraceloopLogo as D,TingyunLogo as T,TempoLogo as N,TelemetryHubLogo as I,SumoLogicLogo as _,SplunkLogo as O,SignozLogo as R,SeqLogo as F,AwsS3Logo as z,QuickwitLogo as L,GigapipeLogo as P,QrynLogo as M,PrometheusLogo as B,OpenTelemetryLogo as U,OracleLogo as j,OpsVerseLogo as W,OpenObserveLogo as H,OneUptimeLogo as X,OdigosLogo as G,ObserveLogo as V,NewRelicLogo as K,MiddlewareLogo as q,LumigoLogo as J,LokiLogo as Y,LogzioLogo as Q,LightstepLogo as Z,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as oe,InstanaLogo as re,HyperDxLogo as ie,HoneycombLogo as ne,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as fe,ClickhouseLogo as xe,ChronosphereLogo as ye,ChecklyLogo as be,CauselyLogo as $e,BonreeLogo as ve,BetterStackLogo as we,AzureMonitorLogo as Se,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Ee,AlibabaCloudLogo as Ae,AlaudaLogo as De,SamplingIcon as Te,InstrumentationRuleIcon as Ne,DestinationIcon as Ie,SourceIcon as _e,NamespacesIcon as Oe,PayloadCollectionIcon as Re,HeadersCollectionIcon as Fe,CustomInstrumentationIcon as ze,CodeAttributesIcon as Le,TracesIcon as Pe,MetricsIcon as Me,LogsIcon as Be,VmLogo as Ue,QuestionCircleIcon as je,XSquareIcon as We,VSquareIcon as He,ExclamationTriangleIcon as Xe,ExclamationCircleIcon as Ge,ISquareIcon as Ve,AwsLogo as Ke,AwsSecretsManagerLogo as qe,AwsStepFunctionsLogo as Je,AwsEventBridgeLogo as Ye,AwsBedrockLogo as Qe,AwsApiGatewayLogo as Ze,AwsEc2Logo as et,AwsKinesisLogo as tt,AwsLambdaLogo as ot,AwsSnsLogo as rt,AwsSqsLogo as it,AwsDynamoDbLogo as nt,AwsStsLogo as at,VIcon as st,CopyIcon as lt,XIcon as ct,MinusIcon as dt,ListIcon as pt,CodeIcon as ut,ExtendArrowIcon as ht,PlusIcon as mt,EditIcon as gt,NoDataIcon as ft,RefreshIcon as xt,EyeClosedIcon as yt,EyeOpenIcon as bt,SearchIcon as $t,TrashIcon as vt,EditedIcon as wt,SortArrowsIcon as St,NotebookIcon as Ct,DotsHorizontalIcon as kt,ChevronUpIcon as Et,ChevronDownIcon as At,ArrowIcon as Dt,DotsVerticalIcon as Tt,DotIcon as Nt,FilterIcon as It}from"../icons.js";import{create as _t}from"zustand";import{jsx as Ot,jsxs as Rt,Fragment as Ft}from"react/jsx-runtime";import{Fragment as zt,useMemo as Lt,useState as Pt,useEffect as Mt,useRef as Bt,useCallback as Ut,useContext as jt,createContext as Wt,forwardRef as Ht,memo as Xt}from"react";import Gt from"javascript-time-ago";import{p as Vt,c as Kt,s as qt,l as Jt}from"./vendor-C150cdxb.js";import Yt,{css as Qt,useTheme as Zt,ThemeProvider as eo,keyframes as to}from"styled-components";import{Handle as oo,Position as ro,ReactFlowProvider as io,ReactFlow as no,Controls as ao,ControlButton as so,useReactFlow as lo}from"@xyflow/react";import co,{createPortal as po}from"react-dom";import{Highlight as uo,themes as ho}from"prism-react-renderer";import{ErrorBoundary as mo}from"react-error-boundary";import go from"lottie-react";import{VList as fo}from"virtua";const xo=e=>e.charAt(0).toUpperCase()+e.slice(1),yo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,o(r)]:[e,r]));return Object.entries(e).reduce((e,[r,i])=>{try{const n=JSON.parse(i);Array.isArray(n)?e[r]=JSON.stringify(t(n)):e[r]="object"==typeof n&&null!==n?JSON.stringify(o(n)):i}catch(n){"object"==typeof i&&null!==i?Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]=JSON.stringify(o(i)):e[r]=i}return e},{})};var bo;!function(e){e.SIGNALS="SIGNALS"}(bo||(bo={}));const $o=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,i,n]=e;if(r===bo.SIGNALS)switch(i){case"INCLUDES":return t?.includes(n);case"EXCLUDES":return!t?.includes(n);default:return!0}const a=o.find(e=>e.name===r||e.key===r);if(!a)return!1;switch(i){case"===":case"==":return a.value===n;case"!==":case"!=":return a.value!==n;case">":return Number(a.value)>Number(n);case"<":return Number(a.value)<Number(n);case">=":return Number(a.value)>=Number(n);case"<=":return Number(a.value)<=Number(n);default:return!0}},vo=e=>JSON.parse(JSON.stringify(e)),wo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),So=(e,t,o)=>{const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++)r[e]in i&&"object"==typeof i[r[e]]||(i[r[e]]={}),i=i[r[e]];i[r[r.length-1]]=o},Co=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},ko=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Eo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Ao,Do,To,No,Io,_o,Oo,Ro,Fo,zo,Lo,Po,Mo,Bo,Uo,jo,Wo,Ho,Xo,Go,Vo,Ko,qo,Jo,Yo,Qo,Zo,er,tr,or,rr,ir,nr,ar,sr,lr,cr,dr,pr,ur,hr,mr;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ao||(Ao={})),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"}(Do||(Do={})),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"}(To||(To={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(No||(No={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Io||(Io={})),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"}(_o||(_o={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Oo||(Oo={})),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"}(Ro||(Ro={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fo||(Fo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(zo||(zo={})),function(e){e.Community="community",e.Onprem="onprem"}(Lo||(Lo={})),function(e){e.K8s="k8s",e.Vm="vm"}(Po||(Po={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Mo||(Mo={})),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"}(Bo||(Bo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Uo||(Uo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(jo||(jo={})),function(e){e.DataStream="DataStream"}(Wo||(Wo={})),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"}(Ho||(Ho={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Xo||(Xo={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Go||(Go={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Vo||(Vo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ko||(Ko={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(qo||(qo={})),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"}(Jo||(Jo={})),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"}(Yo||(Yo={})),function(e){e.Labeled="labeled"}(Qo||(Qo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Zo||(Zo={})),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"}(er||(er={})),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"}(tr||(tr={})),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.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(or||(or={})),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"}(rr||(rr={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(ir||(ir={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(nr||(nr={})),function(e){e.HeaderKeys="headerKeys"}(ar||(ar={})),function(e){e.Java="java",e.Golang="golang"}(sr||(sr={}));class gr{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 fr{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,r){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=r||""}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"}(lr||(lr={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(cr||(cr={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(dr||(dr={})),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"}(pr||(pr={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ur||(ur={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(hr||(hr={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(mr||(mr={}));const xr={[hr.Logs]:mr.Logs,[hr.Metrics]:mr.Metrics,[hr.Traces]:mr.Traces},yr={[mr.Logs]:hr.Logs,[mr.Metrics]:hr.Metrics,[mr.Traces]:hr.Traces},br=(e,t)=>{let o=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));o=o.filter(({namespace:t})=>e.has(t))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));o=o.filter(({kind:t})=>e.has(t))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));o=o.filter(({containers:t})=>t?.some(({language:t})=>e.has(t)))}if(t.conditions?.length){const e=new Set(t.conditions.map(({id:e})=>e));o=o.filter(({conditions:t})=>t?.some(({type:t,reason:o})=>e.has(`${t}#${o}`)))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));o=o.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum)||e.has(t?.message))}if(t.onlyErrors&&(o=o.filter(e=>e.conditions?.some(e=>e.status===Go.Error))),t.errors?.length){const e=new Set(t.errors.map(({id:e})=>e));o=o.filter(t=>t.conditions?.some(t=>e.has(t.message)))}return o},$r="https://docs.odigos.io",vr="default",wr="this-cluster",Sr="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},kr={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)'},Er={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},Ar={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"},Dr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===vr&&!e.dataStreamNames.length):[],Tr=(e,t="",o={})=>{for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],n=t?`${t}.${r}`:r;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const r=`${n}[${t}]`;null!==e&&"object"==typeof e?Tr(e,r,o):o[r]=e}):o[n]=i:Tr(i,n,o)}return o},Nr=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]}`},Ir=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`}},_r=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const r=e[t%16];t++;return("1"===o?r:"0"===o?63&r|128:15&r|64).toString(16)})},Or=l=>{const c=l?.toLowerCase(),d=c?.includes(Ao.Samplers),p=c===Ao.Attributes;if(d)return e;if(p)return t;return{[Do.K8sAttributes]:a,[Do.AddClusterInfo]:n,[Do.DeleteAttributes]:i,[Do.PiiMasking]:t,[Do.RenameAttributes]:r,[Do.URLTemplatization]:o,[Do.ErrorSampler]:e,[Do.ProbabilisticSampler]:e,[Do.LatencySampler]:e,[Do.ServiceNameSampler]:e,[Do.SpanAttributeSampler]:e}[l]||s},Rr=e=>{const t=e?.filter(({status:e})=>e===Go.Error),o=e?.filter(({status:e})=>e===Go.Warning),r=e?.filter(({status:e})=>e===Ko.Disabled),i=e?.filter(({status:e})=>e===Ko.Loading),n=t.length>0,a=o.length>0,s=r.length>0;return{errors:t,hasErrors:n,warnings:o,hasWarnings:a,disableds:r,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:n?Go.Error:a?Go.Warning:s?Go.Info:void 0}},Fr=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zr=e=>({[Bo.Java]:C,[Bo.Go]:S,[Bo.JavaScript]:w,[Bo.Python]:v,[Bo.DotNet]:$,[Bo.CSharp]:b,[Bo.CPlusPlus]:y,[Bo.Php]:x,[Bo.Ruby]:f,[Bo.Rust]:g,[Bo.Swift]:m,[Bo.Elixir]:h,[Bo.MySql]:u,[Bo.Nginx]:p,[Bo.Postgres]:d,[Bo.Redis]:c,[Bo.Kafka]:l,[Bo.Ignored]:s,[Bo.Unknown]:s,[Bo.Processing]:s,[Bo.NoContainers]:s,[Bo.NoRunningPods]:s}[e]||s),Lr=e=>e?.map(({language:e})=>zr(e))||[],Pr=e=>e?.map(e=>zr(e))||[],Mr=e=>e.detectedLanguages?.length?Pr(e.detectedLanguages):Lr(e.containers),Br=(e,t)=>{const o={[er.Alauda]:De,[er.AlibabaCloud]:Ae,[er.AppDynamics]:Ee,[er.Axiom]:ke,[er.AzureBlob]:Ce,[er.AzureMonitor]:Se,[er.BetterStack]:we,[er.Bonree]:ve,[er.Causely]:$e,[er.Checkly]:be,[er.Chronosphere]:ye,[er.ClickHouse]:xe,[er.CloudWatch]:fe,[er.Coralogix]:ge,[er.Dash0]:me,[er.Datadog]:he,[er.Dynamic]:U,[er.Dynatrace]:ue,[er.ElasticApm]:pe,[er.ElasticSearch]:de,[er.GoogleCloud]:ce,[er.GoogleCloudOTLP]:ce,[er.GrafanaCloudLoki]:le,[er.GrafanaCloudPrometheus]:le,[er.GrafanaCloudTempo]:le,[er.Greptime]:se,[er.Groundcover]:ae,[er.Honeycomb]:ne,[er.HyperDX]:ie,[er.Instana]:re,[er.Jaeger]:oe,[er.Kafka]:l,[er.Kloudmate]:te,[er.Last9]:ee,[er.Lightstep]:Z,[er.LogzIo]:Q,[er.Loki]:Y,[er.Lumigo]:J,[er.Middleware]:q,[er.NewRelic]:K,[er.Observe]:V,[er.Odigos]:G,[er.OneUptime]:X,[er.OpenObserve]:H,[er.Opsverse]:W,[er.Oracle]:j,[er.OTLP]:U,[er.OTLPHttp]:U,[er.Prometheus]:B,[er.Qryn]:M,[er.QrynOss]:P,[er.Quickwit]:L,[er.S3]:z,[er.Seq]:F,[er.Signalfx]:O,[er.Signoz]:R,[er.Splunk]:O,[er.SplunkSapm]:O,[er.SplunkOtlp]:O,[er.SumoLogic]:_,[er.TelemetryHub]:I,[er.Tempo]:N,[er.Tingyun]:T,[er.Traceloop]:D,[er.Uptrace]:A,[er.VictoriaMetrics]:E,[er.VictoriaMetricsCloud]:E,[er.XRay]:k}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Ur=e=>({[jo.Namespace]:Oe,[jo.Source]:_e,[jo.Destination]:Ie,[jo.Action]:o,[jo.InstrumentationRule]:Ne,[jo.SamplingRule]:Te}[e]),jr=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,Wr=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Hr=e=>Wr(jr(e)),Xr=(e,t,o)=>{const{extended:r,prioritizeDisplayName:i}=o||{};let n="",a="";switch(t){case jo.InstrumentationRule:const t=e;n=t.type,a=t.ruleName;break;case jo.Source:const o=e;n=o.name,a=o.otelServiceName;break;case jo.Action:const r=e;n=r.type,a=r.name;break;case jo.Destination:const i=e;n=i.destinationType.displayName,a=i.name;break;case jo.Namespace:const s=e;n=s.name,a=s.name}return r?n+(a&&a!==n?` (${a})`:""):i&&a||n},Gr=(e,t)=>{if(t===jo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,r]=e.split("=");t[o]=r}),t}return e},Vr=e=>({[ir.CodeAttributes]:Le,[ir.CustomInstrumentation]:ze,[ir.HeadersCollection]:Fe,[ir.PayloadCollection]:Re,[ir.UnknownType]:s}[e]||s),Kr=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?Bo.Processing:Bo.NoRunningPods;const r=o?.filter(e=>e.language!==Bo.Ignored);if(!r.length)return Bo.NoContainers;const i=r.find(e=>e.language!==Bo.Unknown);return i?i.language:Bo.Unknown},qr=(e,t,o)=>(t===jo.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},Jr=e=>({[hr.Logs]:Be,[hr.Metrics]:Me,[hr.Traces]:Pe}[e]),Yr=e=>{if(!e)return G;return{[Po.K8s]:a,[Po.Vm]:Ue}[e]},Qr=e=>{if(!e)return"Unknown";return{[Po.K8s]:"Kubernetes Cluster",[Po.Vm]:"Virtual Machine"}[e]},Zr=(e,t,o)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[o],i=[];return void 0!==r&&(Array.isArray(r)?i.push(...r):i.push(r)),i.push(...Zr(e,t,o)),i}):[]},ei=(e,t)=>{if(t===jo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},ti=(e,t,o)=>{switch(t){case Go.Default:return e.v2.colors.purple[o];case Go.Info:return e.v2.colors.blue[o];case Go.Error:return e.v2.colors.red[o];case Go.Warning:return e.v2.colors.yellow[o];case Go.Success:return e.v2.colors.green[o];case qo.Disabled:case qo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},oi=e=>{switch(e){case cr.Updating:case dr.Pending:case pr.ContainerCreating:case ur.Waiting:return Go.Info;case cr.Healthy:case dr.Succeeded:case dr.Running:case pr.Running:case ur.Running:return Go.Success;case cr.Degraded:return Go.Warning;case cr.Failed:case dr.Failed:case pr.Error:case pr.CrashLoopBackOff:case pr.CreateContainerError:case pr.CreateContainerConfigError:case pr.ErrImagePull:case pr.ErrImageNeverPull:case pr.ImagePullBackOff:case pr.InvalidImageName:case pr.RegistryUnavailable:case pr.NetworkNotReady:case pr.OOMKilled:case pr.ContainerCannotRun:case ur.Terminated:case pr.DeadlineExceeded:case pr.StartError:return Go.Error;case cr.Down:case pr.Completed:return qo.Disabled;case cr.Unknown:case dr.Unknown:default:return qo.Unknown}},ri=(e,t)=>{const o={[Go.Default]:o=>G({fill:ti(t,e,"300"),...o}),[Go.Info]:o=>Ve({fill:ti(t,e,"400"),...o}),[Go.Error]:o=>Ge({fill:ti(t,e,"500"),...o}),[Go.Warning]:o=>Xe({fill:ti(t,e,"500"),...o}),[Go.Success]:o=>He({fill:ti(t,e,"500"),...o}),[qo.Disabled]:o=>We({fill:ti(t,e,"400"),...o}),[qo.Unknown]:o=>je({fill:ti(t,e,"300"),...o})};return o[e]},ii=e=>{switch(e){case rr.Success:return Go.Success;case rr.Error:case rr.Failure:return Go.Error;case rr.Notice:return Go.Warning;case rr.Unsupported:case rr.Unknown:return Go.Info;case rr.Irrelevant:case rr.Disabled:return Ko.Disabled;case rr.Waiting:return Ko.Loading;case rr.Pending:default:return Go.Default}},ni=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},ai={redis:c,mysql:u,postgresql:d,postgres:d,kafka:l,elasticsearch:de,clickhouse:xe,oracle:j,aws:Ke},si={sts:at,dynamodb:nt,s3:z,sqs:it,sns:rt,lambda:ot,kinesis:tt,ec2:et,apigateway:Ze,apigatewayv2:Ze,bedrock:Qe,bedrockruntime:Qe,eventbridge:Ye,sfn:Je,stepfunctions:Je,secretsmanager:qe,cloudwatch:fe},li=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=ai[o.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=ai[r.toLowerCase()];if(e)return e}const i=t["rpc.system"];if(i?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=si[e];if(t)return t}return Ke}const n=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(ai))if(n.includes(e))return t;return Ie},ci=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function di(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const pi=(e,t)=>{const o=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=di(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:r[e.name]})))}return o},ui=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Go.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},hi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),mi=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)},gi=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},fi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},xi=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,yi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,bi=e=>yi.test(e),$i=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",vi=e=>e?.map(({status:e,type:t,reason:o,message:r})=>({status:e?.toLowerCase(),type:$i(t),reason:o?$i(o):"",message:r}))||[],wi=(e,t)=>{const o=di(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Si=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>yr[e]):[],Ci=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>yr[e]):[],ki=e=>e.replace(/[^\d]/g,""),Ei=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Ai=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Di=e=>{const t=e.fields.reduce((e,{key:t,value:o})=>{const r=(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}}})(o);return void 0!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Ti=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const r=e[o];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Ti(e)))}else if("object"==typeof r&&null!==r){const e=Ti(r);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(r)||(t[o]=r)}),t},Ni=(e,t=2)=>JSON.stringify(e||{},null,t),Ii=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),_i=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Oi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)},Ri=Yt.div`
2
2
  flex: 1;
3
3
  align-self: stretch;
4
4
  display: flex;
@@ -8,7 +8,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
8
8
 
9
9
  max-height: calc(100vh - 24px - ${({$heightOffset:e})=>e||0}px);
10
10
  padding: 24px 24px 0 24px;
11
- `,Ri=Yt.div`
11
+ `,Fi=Yt.div`
12
12
  position: relative;
13
13
 
14
14
  // inherit all the properties of the parent (PageContent)
@@ -18,9 +18,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
18
18
  flex-direction: inherit;
19
19
  gap: inherit;
20
20
  overflow-x: inherit;
21
- `,Fi=Yt.div`
22
- padding: ${({$padding:e})=>e||"12px"};
23
21
  `,zi=Yt.div`
22
+ padding: ${({$padding:e})=>e||"12px"};
23
+ `,Li=Yt.div`
24
24
  display: flex;
25
25
  flex-direction: row;
26
26
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -31,7 +31,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
31
31
  height: ${({$height:e})=>e||"unset"};
32
32
  margin: ${({$margin:e="unset"})=>e};
33
33
  padding: ${({$padding:e="unset"})=>e};
34
- `,Li=Yt.div`
34
+ `,Pi=Yt.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  flex-wrap: ${({$wrap:e="unset"})=>e};
@@ -42,18 +42,18 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
42
42
  height: ${({$height:e})=>e||"unset"};
43
43
  margin: ${({$margin:e="unset"})=>e};
44
44
  padding: ${({$padding:e="unset"})=>e};
45
- `,Pi=Yt(Li)`
45
+ `,Mi=Yt(Pi)`
46
46
  width: ${({$width:e})=>e||"100%"};
47
47
  height: ${({$height:e})=>e||"unset"};
48
48
  padding: ${({$padding:e})=>e||"unset"};
49
49
  align-items: center;
50
50
  justify-content: center;
51
- `,Mi=Yt.div`
51
+ `,Bi=Yt.div`
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  padding: 12px;
55
55
  overflow-y: scroll;
56
- `,Bi=Yt.div`
56
+ `,Ui=Yt.div`
57
57
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
58
58
  top: 0;
59
59
  left: 0;
@@ -62,24 +62,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
62
62
  z-index: 1000;
63
63
  background: rgba(0, 0, 0, 0.6);
64
64
  backdrop-filter: blur(2px);
65
- `,Ui=Yt.div`
65
+ `,ji=Yt.div`
66
66
  width: 800px;
67
67
  min-height: ${({$minHeight:e})=>e||"unset"};
68
68
  height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
69
69
  margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
70
70
  padding: 0 2px;
71
71
  overflow-y: scroll;
72
- `,ji=Yt(Li)`
72
+ `,Wi=Yt(Pi)`
73
73
  max-width: ${({$maxWidth:e})=>e||"unset"};
74
74
  width: 100%;
75
- `,Wi=Yt(zi)`
75
+ `,Hi=Yt(Li)`
76
76
  gap: 16px;
77
77
  padding: 16px;
78
- `,Hi=Yt.div`
78
+ `,Xi=Yt.div`
79
79
  width: 100%;
80
80
  max-height: ${({$maxHeight:e})=>e||"unset"};
81
81
  overflow-y: auto;
82
- `;var Xi,Gi;!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"}(Xi||(Xi={})),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"}(Gi||(Gi={}));const Vi=Yt.p`
82
+ `;var Gi,Vi;!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"}(Gi||(Gi={})),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"}(Vi||(Vi={}));const Ki=Yt.p`
83
83
  margin: 0;
84
84
  color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
85
85
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -107,7 +107,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
107
107
  text-decoration: underline;
108
108
  }
109
109
  `}
110
- `,Ki=({children:e,variant:t=Xi.P,color:o,size:r=Gi.S,weight:i=400,opacity:n=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return Ot(Vi,{as:t,$color:o,$size:r,$weight:i,$opacity:n,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>Rt(zt,{children:[e,t!==m.length-1&&Ot("br",{})]},`typography-${t}-${e}`))})},qi=Yt.div`
110
+ `,qi=({children:e,variant:t=Gi.P,color:o,size:r=Vi.S,weight:i=400,opacity:n=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return Ot(Ki,{as:t,$color:o,$size:r,$weight:i,$opacity:n,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>Rt(zt,{children:[e,t!==m.length-1&&Ot("br",{})]},`typography-${t}-${e}`))})},Ji=Yt.div`
111
111
  color: ${({$color:e,theme:t})=>e||t.text.secondary};
112
112
  font-size: ${({$size:e})=>void 0!==e?e:16}px;
113
113
  font-weight: ${({$weight:e})=>void 0!==e?e:300};
@@ -118,15 +118,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
118
118
  font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
119
119
  white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
120
120
  text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
121
- `,Ji=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,r]=e.split('"');return{original:e,href:o,label:r.replace("</a>","").replace(">","")}})},Yi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Qi=(e,t)=>{const o=Ji(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const r=Yi(e);r?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)});return e.split(" ").map(e=>{if(e.includes("LINK-")){const[r,i]=e.split("###"),n=o?.[parseInt(r.replace("LINK-",""))];return Rt(zt,{children:[Ot("a",{href:n?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:n?.label}),i?`${i} `:" "]},e)}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=r?.[parseInt(t.replace("STRONG-",""))];return Rt(zt,{children:[Ot("strong",{style:{fontWeight:600},children:i?.label}),o?`${o} `:" "]},e)}return e+" "})},Zi=({children:e,color:t,size:o,weight:r,align:i,family:n,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Zt(),u=Lt(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return Ot(qi,{$color:t,$size:o,$weight:r,$align:i,$family:n,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>Rt(zt,{children:[Qi(e,p),t!==u.length-1?Ot("br",{}):null]},`text-${t}-${e}`)):e})},en=Yt.div`
121
+ `,Yi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,r]=e.split('"');return{original:e,href:o,label:r.replace("</a>","").replace(">","")}})},Qi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Zi=(e,t)=>{const o=Yi(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const r=Qi(e);r?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)});return e.split(" ").map(e=>{if(e.includes("LINK-")){const[r,i]=e.split("###"),n=o?.[parseInt(r.replace("LINK-",""))];return Rt(zt,{children:[Ot("a",{href:n?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:n?.label}),i?`${i} `:" "]},e)}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=r?.[parseInt(t.replace("STRONG-",""))];return Rt(zt,{children:[Ot("strong",{style:{fontWeight:600},children:i?.label}),o?`${o} `:" "]},e)}return e+" "})},en=({children:e,color:t,size:o,weight:r,align:i,family:n,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Zt(),u=Lt(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return Ot(Ji,{$color:t,$size:o,$weight:r,$align:i,$family:n,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>Rt(zt,{children:[Zi(e,p),t!==u.length-1?Ot("br",{}):null]},`text-${t}-${e}`)):e})},tn=Yt.div`
122
122
  padding: 4px 0 0 0;
123
- `,tn=Yt(Zi)`
123
+ `,on=Yt(en)`
124
124
  font-size: 12px;
125
125
  color: ${({theme:e})=>e.text.error};
126
- `,on=({children:e})=>Ot(en,{children:Ot(tn,{children:e})}),rn=Yt.div`
126
+ `,rn=({children:e})=>Ot(tn,{children:Ot(on,{children:e})}),nn=Yt.div`
127
127
  position: relative;
128
128
  width: 100%;
129
- `,nn=Yt.div`
129
+ `,an=Yt.div`
130
130
  width: calc(100% - 16px);
131
131
  display: flex;
132
132
  align-items: center;
@@ -143,7 +143,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
143
143
  &:focus-within {
144
144
  border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
145
145
  }
146
- `,an=Yt.input`
146
+ `,sn=Yt.input`
147
147
  flex: 1;
148
148
  border: none;
149
149
  outline: none;
@@ -164,7 +164,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
164
164
  &:disabled {
165
165
  cursor: not-allowed;
166
166
  }
167
- `,sn=Yt.ul`
167
+ `,ln=Yt.ul`
168
168
  position: absolute;
169
169
  max-height: 500px;
170
170
  top: 32px;
@@ -175,7 +175,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
175
175
  border: 1px solid ${({theme:e})=>e.colors.border};
176
176
  z-index: 9999;
177
177
  padding: 12px;
178
- `,ln=Yt.li`
178
+ `,cn=Yt.li`
179
179
  width: calc(100% - 24px);
180
180
  padding: 8px 12px;
181
181
  cursor: ${({$isList:e})=>e?"default":"pointer"};
@@ -187,34 +187,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
187
187
  &:hover {
188
188
  background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
189
189
  }
190
- `,cn=Yt.div`
191
- width: 100%;
192
190
  `,dn=Yt.div`
193
- display: flex;
194
191
  width: 100%;
195
192
  `,pn=Yt.div`
193
+ display: flex;
194
+ width: 100%;
195
+ `,un=Yt.div`
196
196
  width: 1px;
197
197
  height: 52px;
198
198
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
199
199
  position: absolute;
200
200
  left: 33px;
201
- `,un=Yt.div`
201
+ `,hn=Yt.div`
202
202
  display: flex;
203
203
  flex-direction: column;
204
204
  gap: 4px;
205
- `,hn=Yt(Zi)`
205
+ `,mn=Yt(en)`
206
206
  flex: 1;
207
207
  font-size: 14px;
208
- `,mn=Yt(Zi)`
208
+ `,gn=Yt(en)`
209
209
  color: ${({theme:e})=>e.text.grey};
210
210
  font-size: 10px;
211
211
  line-height: 150%;
212
- `,gn=Yt.ul`
212
+ `,fn=Yt.ul`
213
213
  padding-left: 0px;
214
214
  margin: 4px 0 0 0;
215
215
  list-style: none;
216
216
  width: 100%;
217
- `,fn=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const r=fn(o.items,t);r.length&&e.push({...o,items:r})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,xn=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:r,defaultText:i,onTextChange:n,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=Pt(o?.label||i||""),[u,h]=Pt(fn(t,d)),[m,g]=Pt(!1);Pt(-1),Mt(()=>h(fn(t,d)),[t]);const f=o?.icon,x=e=>{e&&(p(e.label),n?.(e.label)),g(!e),r?.(e)};return Rt(rn,{style:a,children:[Rt(nn,{$hasError:!!l,children:[f&&Ot(f,{}),Ot(an,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,r=fn(t,o),i=1===r.length&&r[0].label===o?r[0]:void 0;p(o),n?.(o),h(r),x(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Ot(sn,{children:u.map(e=>Ot(yn,{option:e,onClick:x},e.type||e.label))}):null,l&&Ot(on,{children:l})]})},yn=({option:e,renderIcon:t=!0,onClick:o})=>{const r=!!e.items&&e.items.length>0,i=e.icon;return Rt(ln,{"data-id":`option-${e.type||e.label}`,$isList:r,onMouseDown:()=>r?null:o(e),children:[i&&t&&Ot(i,{}),Rt(cn,{children:[Rt(un,{children:[Ot(hn,{children:e.label}),Ot(mn,{children:e.description})]}),r&&Ot(gn,{children:e.items?.map(e=>Rt(dn,{children:[Ot(pn,{}),Ot(yn,{option:e,renderIcon:!1,onClick:o})]},e.type||e.label))})]})]})},bn=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),$n=[{type:Do.K8sAttributes,icon:Or(Do.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Do.AddClusterInfo,icon:Or(Do.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:Do.DeleteAttributes,icon:Or(Do.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Do.RenameAttributes,icon:Or(Do.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Do.PiiMasking,icon:Or(Do.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Do.URLTemplatization,icon:Or(Do.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[hr.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:_i("v1.21.0")}],vn=[{type:Do.ErrorSampler,icon:Or(Ao.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Do.LatencySampler,icon:Or(Ao.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Do.ProbabilisticSampler,icon:Or(Ao.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Do.ServiceNameSampler,icon:Or(Ao.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Do.SpanAttributeSampler,icon:Or(Ao.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],wn=[{label:"Attributes",icon:Or(Ao.Attributes),items:$n},{label:"Samplers",icon:Or(Ao.Samplers),items:vn}];var Sn;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Sn||(Sn={}));const Cn={[Sn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Sn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Sn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Sn.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."},[Sn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Sn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},kn=[{type:ir.CodeAttributes,icon:Vr(ir.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:[Bo.Go,Bo.Python]},{type:ir.CustomInstrumentation,icon:Vr(ir.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:[Bo.Go,Bo.Java]},{type:ir.HeadersCollection,icon:Vr(ir.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:[Bo.Go,Bo.Java,Bo.JavaScript]},{type:ir.PayloadCollection,icon:Vr(ir.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:[Bo.Go]}],En="Cancel",An="Save",Dn="Edit rule",Tn="Edit auto rule",Nn="Create rule",In="Delete rule",_n="Save",On="Rule name",Rn="Rule type",Fn="Rule Enabled",zn="Note",Ln="HTTP route",Pn="Method",Mn="Keep Percentage",Bn="Drop Percentage",Un="Keep traces with duration larger than",jn="Keep traces with errors",Wn="Keep at least this percentage of matching traces",Hn="Keep at most this percentage of matching traces",Xn="Custom percentage",Gn="Disabled rule",Vn="Sample",Kn="Keep all",qn="Drop all",Jn="Operation type",Yn="HTTP route prefix",Qn="Templated path",Zn="Templated path prefix",ea="Kafka topic",ta="Custom duration (ms)",oa="No preview available",ra="Server address",ia="Drop at most this percentage of matching traces",na="Unnamed rule",aa="Sampling Preview",sa="Source Scope",la="Operation",ca="Duration",da="Errors",pa="Keep Percentage",ua="Drop Percentage",ha="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ma="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.",ga="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",fa="Retain traces with errors from the selected services and operations.",xa="Specify the exact percentage of matching traces to keep",ya="Specify the exact percentage of matching traces to drop",ba="Type rule name",$a="Add note here...",va="Type here",wa="Search source name",Sa="e.g. collector.my.vendor.com",Ca="Optional notes (not used by the system). Add any context or details for this sampling rule.",ka="Rule will apply to all sources in the cluster",Ea="All sources",Aa="-",Da="All",Ta="All operations",Na="HTTP server endpoint",Ia="HTTP client endpoint",_a="Kafka consumer",Oa="Kafka producer",Ra="Sampling Rules",Fa='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',za="Refresh",La="Create rule",Pa="Sampling docs",Ma="75vw",Ba="Delete rule?",Ua="Are you sure you want to delete this sampling rule?",ja="Delete",Wa="Cancel",Ha="Auto rule - Kubernetes Health Probes",Xa="Auto rule - Keep All Error Traces",Ga="Auto rule - Drop Traces Cluster-Wide",Va="A rule with the same matching conditions already exists.",Ka="Edit 'Noisy Operation' auto rule",qa="Automatically detect and sample health probe traces across the cluster.",Ja="Edit 'Highly Relevant' auto rule",Ya="Automatically keep all error traces across the entire cluster.",Qa="Edit 'Cost Reduction' auto rule",Za="Automatically drop a percentage of traces across the entire cluster.",es={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},ts={noisy:"Create 'Noisy Operations' sampling rule",highlyRelevant:"Create 'Highly Relevant Operations' sampling rule",costReduction:"Create 'Cost Reduction' sampling rule"},os={noisy:"Edit 'Noisy Operations' sampling rule",highlyRelevant:"Edit 'Highly Relevant Operations' sampling rule",costReduction:"Edit 'Cost Reduction' sampling rule"},rs={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},is=[{id:hr.Logs,value:"Logs"},{id:hr.Metrics,value:"Metrics"},{id:hr.Traces,value:"Traces"}],ns={[Bo.Go]:"Go",[Bo.Java]:"Java",[Bo.JavaScript]:"Node.js",[Bo.Python]:"Python",[Bo.DotNet]:".NET",[Bo.CSharp]:"C#",[Bo.CPlusPlus]:"C++",[Bo.Php]:"PHP",[Bo.Ruby]:"Ruby",[Bo.Rust]:"Rust",[Bo.Swift]:"Swift",[Bo.Elixir]:"Elixir",[Bo.MySql]:"MySQL",[Bo.Nginx]:"Nginx",[Bo.Postgres]:"PostgreSQL",[Bo.Redis]:"Redis",[Bo.Kafka]:"Kafka",[Bo.Ignored]:"Ignored",[Bo.Unknown]:"Unknown",[Bo.Processing]:"Processing",[Bo.NoContainers]:"No Containers",[Bo.NoRunningPods]:"No Running Pods"},as=[{id:Bo.Go,value:ns[Bo.Go],icon:zr(Bo.Go)},{id:Bo.Java,value:ns[Bo.Java],icon:zr(Bo.Java)},{id:Bo.JavaScript,value:ns[Bo.JavaScript],icon:zr(Bo.JavaScript)},{id:Bo.Python,value:ns[Bo.Python],icon:zr(Bo.Python)},{id:Bo.Php,value:ns[Bo.Php],icon:zr(Bo.Php)},{id:Bo.Ruby,value:ns[Bo.Ruby],icon:zr(Bo.Ruby)},{id:Bo.Rust,value:ns[Bo.Rust],icon:zr(Bo.Rust)},{id:Bo.DotNet,value:ns[Bo.DotNet],icon:zr(Bo.DotNet)},{id:Bo.CSharp,value:ns[Bo.CSharp],icon:zr(Bo.CSharp)},{id:Bo.CPlusPlus,value:ns[Bo.CPlusPlus],icon:zr(Bo.CPlusPlus)},{id:Bo.Swift,value:ns[Bo.Swift],icon:zr(Bo.Swift)},{id:Bo.Elixir,value:ns[Bo.Elixir],icon:zr(Bo.Elixir)}],ss={[Bo.Go]:{community:[{id:or.GolangCommunity,value:or.GolangCommunity,icon:zr(Bo.Go)}],enterprise:[{id:or.GolangEnterprise,value:or.GolangEnterprise,icon:zr(Bo.Go)}]},[Bo.JavaScript]:{community:[{id:or.NodejsCommunity,value:or.NodejsCommunity,icon:zr(Bo.JavaScript)}],enterprise:[{id:or.NodejsEnterprise,value:or.NodejsEnterprise,icon:zr(Bo.JavaScript)}]},[Bo.Python]:{community:[{id:or.PythonCommunity,value:or.PythonCommunity,icon:zr(Bo.Python)}],enterprise:[{id:or.PythonEnterprise,value:or.PythonEnterprise,icon:zr(Bo.Python)}]},[Bo.Java]:{community:[{id:or.JavaCommunity,value:or.JavaCommunity,icon:zr(Bo.Java)}],enterprise:[{id:or.JavaEnterprise,value:or.JavaEnterprise,icon:zr(Bo.Java)},{id:or.JavaEbpfInstrumentations,value:or.JavaEbpfInstrumentations,icon:zr(Bo.Java)}]},[Bo.DotNet]:{community:[{id:or.DotNetCommunity,value:or.DotNetCommunity,icon:zr(Bo.DotNet)}],enterprise:[{id:or.DotNetEnterprise,value:or.DotNetEnterprise,icon:zr(Bo.DotNet)}]},[Bo.Ruby]:{community:[{id:or.RubyCommunity,value:or.RubyCommunity,icon:zr(Bo.Ruby)}],enterprise:[{id:or.RubyEnterprise,value:or.RubyEnterprise,icon:zr(Bo.Ruby)}]},[Bo.Php]:{community:[{id:or.PhpCommunity,value:or.PhpCommunity,icon:zr(Bo.Php)}],enterprise:[]},[Bo.CSharp]:{community:[],enterprise:[{id:or.CPlusPlusEnterprise,value:or.CPlusPlusEnterprise,icon:zr(Bo.CSharp)}]},[Bo.MySql]:{community:[],enterprise:[{id:or.MySqlEnterprise,value:or.MySqlEnterprise,icon:zr(Bo.MySql)}]},[Bo.CPlusPlus]:{community:[],enterprise:[]},[Bo.Rust]:{community:[],enterprise:[]},[Bo.Swift]:{community:[],enterprise:[]},[Bo.Elixir]:{community:[],enterprise:[]},[Bo.Nginx]:{community:[],enterprise:[]},[Bo.Postgres]:{community:[],enterprise:[]},[Bo.Redis]:{community:[],enterprise:[]},[Bo.Kafka]:{community:[],enterprise:[]},[Bo.Ignored]:{community:[],enterprise:[]},[Bo.Unknown]:{community:[],enterprise:[]},[Bo.Processing]:{community:[],enterprise:[]},[Bo.NoContainers]:{community:[],enterprise:[]},[Bo.NoRunningPods]:{community:[],enterprise:[]}},ls=6048e5,cs=_t()(Vt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Kt(()=>localStorage):void 0})),ds={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:vr},ps=_t(e=>({...ds,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ds)})),us=_t(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),hs=_t(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const r=t===jo.Namespace?"namespacesLoading":t===jo.Source?"sourcesLoading":t===jo.Destination?"destinationsLoading":t===jo.Action?"actionsLoading":t===jo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==r&&e({[r]:o})},setEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e({[r]:o})},addEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const t=[...e[r]],i=new Map;return t.forEach((e,t)=>{i.set(Hr(e),t)}),o.forEach(e=>{const o=Hr(e),r=i.get(o);void 0!==r?t[r]={...t[r],...e}:(i.set(o,t.length),t.push(e))}),{[r]:t}})},removeEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const t=new Set(o.map(e=>Wr(e))),i=e[r].filter(e=>!t.has(Hr(e)));return{[r]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),ms=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),gs=_t(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:ms})),fs=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),xs=_t((e,t)=>({notifications:[],addNotification:o=>{const r=new Date,i=`${r.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:n}=t();n.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var ys;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(ys||(ys={}));const bs=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),$s=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),vs=_t((e,t)=>({progress:{},setProgress:(o,r)=>{const i=t(),n=bs();return"number"==typeof r.total&&(n.total=r.total),"number"==typeof r.current&&(n.current=r.current),Array.isArray(r.list)&&(n.list=r.list),e({progress:{...i.progress,[o]:$s(n)}})},addProgress:(o,r,i)=>{const n=t(),a=bs(o,n.progress);return a.current+=r,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...n.progress,[o]:$s(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),ws=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ss={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Cs=(e,t)=>e.destinationType.type!==t.destinationType.type,ks=_t(e=>({...Ss,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=>Cs(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Cs(e,t))})),clearStore:()=>e(()=>({...Ss}))})),Es={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8854FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{600:"#F576A2"},orange:{600:"#F29142"}}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},As={v2:Es.v2,darkMode:!0,colors:{...Es.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:Es.font_family},Ds={v2:Es.v2,darkMode:!1,colors:{...Es.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:Es.font_family},Ts=e=>e?As:Ds;var Ns=Object.freeze({__proto__:null,baseTheme:Es,darkModeTheme:As,getTheme:Ts,lightModeTheme:Ds});qt('@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 Is=({children:e})=>{const{darkMode:t}=cs();return Ot(eo,{theme:Ts(t),children:e})},_s={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 Os=Object.freeze({__proto__:null,hex:_s});const Rs={in:{left:to`
217
+ `,xn=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const r=xn(o.items,t);r.length&&e.push({...o,items:r})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,yn=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:r,defaultText:i,onTextChange:n,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=Pt(o?.label||i||""),[u,h]=Pt(xn(t,d)),[m,g]=Pt(!1);Pt(-1),Mt(()=>h(xn(t,d)),[t]);const f=o?.icon,x=e=>{e&&(p(e.label),n?.(e.label)),g(!e),r?.(e)};return Rt(nn,{style:a,children:[Rt(an,{$hasError:!!l,children:[f&&Ot(f,{}),Ot(sn,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,r=xn(t,o),i=1===r.length&&r[0].label===o?r[0]:void 0;p(o),n?.(o),h(r),x(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Ot(ln,{children:u.map(e=>Ot(bn,{option:e,onClick:x},e.type||e.label))}):null,l&&Ot(rn,{children:l})]})},bn=({option:e,renderIcon:t=!0,onClick:o})=>{const r=!!e.items&&e.items.length>0,i=e.icon;return Rt(cn,{"data-id":`option-${e.type||e.label}`,$isList:r,onMouseDown:()=>r?null:o(e),children:[i&&t&&Ot(i,{}),Rt(dn,{children:[Rt(hn,{children:[Ot(mn,{children:e.label}),Ot(gn,{children:e.description})]}),r&&Ot(fn,{children:e.items?.map(e=>Rt(pn,{children:[Ot(un,{}),Ot(bn,{option:e,renderIcon:!1,onClick:o})]},e.type||e.label))})]})]})},$n=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),vn=[{type:Do.K8sAttributes,icon:Or(Do.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Do.AddClusterInfo,icon:Or(Do.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:Do.DeleteAttributes,icon:Or(Do.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Do.RenameAttributes,icon:Or(Do.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[hr.Traces,hr.Metrics,hr.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Do.PiiMasking,icon:Or(Do.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Do.URLTemplatization,icon:Or(Do.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[hr.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:Oi("v1.21.0")}],wn=[{type:Do.ErrorSampler,icon:Or(Ao.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Do.LatencySampler,icon:Or(Ao.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Do.ProbabilisticSampler,icon:Or(Ao.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Do.ServiceNameSampler,icon:Or(Ao.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Do.SpanAttributeSampler,icon:Or(Ao.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[hr.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Sn=[{label:"Attributes",icon:Or(Ao.Attributes),items:vn},{label:"Samplers",icon:Or(Ao.Samplers),items:wn}];var Cn;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Cn||(Cn={}));const kn={[Cn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Cn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Cn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Cn.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."},[Cn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Cn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},En=[{type:ir.CodeAttributes,icon:Vr(ir.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:[Bo.Go,Bo.Python]},{type:ir.CustomInstrumentation,icon:Vr(ir.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:[Bo.Go,Bo.Java]},{type:ir.HeadersCollection,icon:Vr(ir.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:[Bo.Go,Bo.Java,Bo.JavaScript]},{type:ir.PayloadCollection,icon:Vr(ir.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:[Bo.Go]}],An="Cancel",Dn="Save",Tn="Edit rule",Nn="Edit auto rule",In="Create rule",_n="Delete rule",On="Save",Rn="Rule name",Fn="Rule type",zn="Rule Enabled",Ln="Note",Pn="HTTP route",Mn="Method",Bn="Keep Percentage",Un="Drop Percentage",jn="Keep traces with duration larger than",Wn="Keep traces with errors",Hn="Keep at least this percentage of matching traces",Xn="Keep at most this percentage of matching traces",Gn="Custom percentage",Vn="Disabled rule",Kn="Sample",qn="Keep all",Jn="Drop all",Yn="Operation type",Qn="HTTP route prefix",Zn="Templated path",ea="Templated path prefix",ta="Kafka topic",oa="Custom duration (ms)",ra="No preview available",ia="Server address",na="Drop at most this percentage of matching traces",aa="Unnamed rule",sa="Sampling Preview",la="Source Scope",ca="Operation",da="Duration",pa="Errors",ua="Keep Percentage",ha="Drop Percentage",ma="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ga="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.",fa="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",xa="Retain traces with errors from the selected services and operations.",ya="Specify the exact percentage of matching traces to keep",ba="Specify the exact percentage of matching traces to drop",$a="Type rule name",va="Add note here...",wa="Type here",Sa="Search source name",Ca="e.g. collector.my.vendor.com",ka="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ea="Rule will apply to all sources in the cluster",Aa="All sources",Da="-",Ta="All",Na="All operations",Ia="HTTP server endpoint",_a="HTTP client endpoint",Oa="Kafka consumer",Ra="Kafka producer",Fa="Sampling Rules",za='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',La="Refresh",Pa="Create rule",Ma="Sampling docs",Ba="75vw",Ua="Delete rule?",ja="Are you sure you want to delete this sampling rule?",Wa="Delete",Ha="Cancel",Xa="Kubernetes Health Probes",Ga="Keep All Error Traces",Va="Drop Traces Cluster-Wide",Ka="A rule with the same matching conditions already exists.",qa="Edit 'Noisy Operation' auto rule",Ja="Automatically detect and sample health probe traces across the cluster.",Ya="Edit 'Highly Relevant' auto rule",Qa="Automatically keep all error traces across the entire cluster.",Za="Edit 'Cost Reduction' auto rule",es="Automatically drop a percentage of traces across the entire cluster.",ts={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."},os={noisy:"Create 'Noisy Operations' sampling rule",highlyRelevant:"Create 'Highly Relevant Operations' sampling rule",costReduction:"Create 'Cost Reduction' sampling rule"},rs={noisy:"Edit 'Noisy Operations' sampling rule",highlyRelevant:"Edit 'Highly Relevant Operations' sampling rule",costReduction:"Edit 'Cost Reduction' sampling rule"},is={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ns=[{id:hr.Logs,value:"Logs"},{id:hr.Metrics,value:"Metrics"},{id:hr.Traces,value:"Traces"}],as={[Bo.Go]:"Go",[Bo.Java]:"Java",[Bo.JavaScript]:"Node.js",[Bo.Python]:"Python",[Bo.DotNet]:".NET",[Bo.CSharp]:"C#",[Bo.CPlusPlus]:"C++",[Bo.Php]:"PHP",[Bo.Ruby]:"Ruby",[Bo.Rust]:"Rust",[Bo.Swift]:"Swift",[Bo.Elixir]:"Elixir",[Bo.MySql]:"MySQL",[Bo.Nginx]:"Nginx",[Bo.Postgres]:"PostgreSQL",[Bo.Redis]:"Redis",[Bo.Kafka]:"Kafka",[Bo.Ignored]:"Ignored",[Bo.Unknown]:"Unknown",[Bo.Processing]:"Processing",[Bo.NoContainers]:"No Containers",[Bo.NoRunningPods]:"No Running Pods"},ss=[{id:Bo.Go,value:as[Bo.Go],icon:zr(Bo.Go)},{id:Bo.Java,value:as[Bo.Java],icon:zr(Bo.Java)},{id:Bo.JavaScript,value:as[Bo.JavaScript],icon:zr(Bo.JavaScript)},{id:Bo.Python,value:as[Bo.Python],icon:zr(Bo.Python)},{id:Bo.Php,value:as[Bo.Php],icon:zr(Bo.Php)},{id:Bo.Ruby,value:as[Bo.Ruby],icon:zr(Bo.Ruby)},{id:Bo.Rust,value:as[Bo.Rust],icon:zr(Bo.Rust)},{id:Bo.DotNet,value:as[Bo.DotNet],icon:zr(Bo.DotNet)},{id:Bo.CSharp,value:as[Bo.CSharp],icon:zr(Bo.CSharp)},{id:Bo.CPlusPlus,value:as[Bo.CPlusPlus],icon:zr(Bo.CPlusPlus)},{id:Bo.Swift,value:as[Bo.Swift],icon:zr(Bo.Swift)},{id:Bo.Elixir,value:as[Bo.Elixir],icon:zr(Bo.Elixir)}],ls={[Bo.Go]:{community:[{id:or.GolangCommunity,value:or.GolangCommunity,icon:zr(Bo.Go)}],enterprise:[{id:or.GolangEnterprise,value:or.GolangEnterprise,icon:zr(Bo.Go)}]},[Bo.JavaScript]:{community:[{id:or.NodejsCommunity,value:or.NodejsCommunity,icon:zr(Bo.JavaScript)}],enterprise:[{id:or.NodejsEnterprise,value:or.NodejsEnterprise,icon:zr(Bo.JavaScript)}]},[Bo.Python]:{community:[{id:or.PythonCommunity,value:or.PythonCommunity,icon:zr(Bo.Python)}],enterprise:[{id:or.PythonEnterprise,value:or.PythonEnterprise,icon:zr(Bo.Python)}]},[Bo.Java]:{community:[{id:or.JavaCommunity,value:or.JavaCommunity,icon:zr(Bo.Java)}],enterprise:[{id:or.JavaEnterprise,value:or.JavaEnterprise,icon:zr(Bo.Java)},{id:or.JavaEbpfInstrumentations,value:or.JavaEbpfInstrumentations,icon:zr(Bo.Java)}]},[Bo.DotNet]:{community:[{id:or.DotNetCommunity,value:or.DotNetCommunity,icon:zr(Bo.DotNet)}],enterprise:[{id:or.DotNetEnterprise,value:or.DotNetEnterprise,icon:zr(Bo.DotNet)}]},[Bo.Ruby]:{community:[{id:or.RubyCommunity,value:or.RubyCommunity,icon:zr(Bo.Ruby)}],enterprise:[{id:or.RubyEnterprise,value:or.RubyEnterprise,icon:zr(Bo.Ruby)}]},[Bo.Php]:{community:[{id:or.PhpCommunity,value:or.PhpCommunity,icon:zr(Bo.Php)}],enterprise:[]},[Bo.CSharp]:{community:[],enterprise:[{id:or.CPlusPlusEnterprise,value:or.CPlusPlusEnterprise,icon:zr(Bo.CSharp)}]},[Bo.MySql]:{community:[],enterprise:[{id:or.MySqlEnterprise,value:or.MySqlEnterprise,icon:zr(Bo.MySql)}]},[Bo.CPlusPlus]:{community:[],enterprise:[]},[Bo.Rust]:{community:[],enterprise:[]},[Bo.Swift]:{community:[],enterprise:[]},[Bo.Elixir]:{community:[],enterprise:[]},[Bo.Nginx]:{community:[],enterprise:[]},[Bo.Postgres]:{community:[],enterprise:[]},[Bo.Redis]:{community:[],enterprise:[]},[Bo.Kafka]:{community:[],enterprise:[]},[Bo.Ignored]:{community:[],enterprise:[]},[Bo.Unknown]:{community:[],enterprise:[]},[Bo.Processing]:{community:[],enterprise:[]},[Bo.NoContainers]:{community:[],enterprise:[]},[Bo.NoRunningPods]:{community:[],enterprise:[]}},cs=6048e5,ds=_t()(Vt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Kt(()=>localStorage):void 0})),ps={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:vr},us=_t(e=>({...ps,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ps)})),hs=_t(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),ms=_t(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const r=t===jo.Namespace?"namespacesLoading":t===jo.Source?"sourcesLoading":t===jo.Destination?"destinationsLoading":t===jo.Action?"actionsLoading":t===jo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==r&&e({[r]:o})},setEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e({[r]:o})},addEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const t=[...e[r]],i=new Map;return t.forEach((e,t)=>{i.set(Hr(e),t)}),o.forEach(e=>{const o=Hr(e),r=i.get(o);void 0!==r?t[r]={...t[r],...e}:(i.set(o,t.length),t.push(e))}),{[r]:t}})},removeEntities:(t,o)=>{const r=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const t=new Set(o.map(e=>Wr(e))),i=e[r].filter(e=>!t.has(Hr(e)));return{[r]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),gs=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),fs=_t(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:gs})),xs=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),ys=_t((e,t)=>({notifications:[],addNotification:o=>{const r=new Date,i=`${r.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:n}=t();n.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var bs;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(bs||(bs={}));const $s=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),vs=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ws=_t((e,t)=>({progress:{},setProgress:(o,r)=>{const i=t(),n=$s();return"number"==typeof r.total&&(n.total=r.total),"number"==typeof r.current&&(n.current=r.current),Array.isArray(r.list)&&(n.list=r.list),e({progress:{...i.progress,[o]:vs(n)}})},addProgress:(o,r,i)=>{const n=t(),a=$s(o,n.progress);return a.current+=r,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...n.progress,[o]:vs(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ss=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Cs={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ks=(e,t)=>e.destinationType.type!==t.destinationType.type,Es=_t(e=>({...Cs,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=>ks(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ks(e,t))})),clearStore:()=>e(()=>({...Cs}))})),As={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8854FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{600:"#F576A2"},orange:{600:"#F29142"}}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Ds={v2:As.v2,darkMode:!0,colors:{...As.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:As.font_family},Ts={v2:As.v2,darkMode:!1,colors:{...As.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:As.font_family},Ns=e=>e?Ds:Ts;var Is=Object.freeze({__proto__:null,baseTheme:As,darkModeTheme:Ds,getTheme:Ns,lightModeTheme:Ts});qt('@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 _s=({children:e})=>{const{darkMode:t}=ds();return Ot(eo,{theme:Ns(t),children:e})},Os={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 Rs=Object.freeze({__proto__:null,hex:Os});const Fs={in:{left:to`
218
218
  from { transform: translateX(-100%); }
219
219
  to { transform: translateX(0); }
220
220
  `,right:to`
@@ -244,7 +244,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
244
244
  `,center:to`
245
245
  from { transform: translate(-50%, -50%); }
246
246
  to { transform: translate(-50%, 100%); }
247
- `}},Fs={in:to`
247
+ `}},zs={in:to`
248
248
  from {
249
249
  width: 0%;
250
250
  }
@@ -258,7 +258,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
258
258
  to {
259
259
  width: 0%;
260
260
  }
261
- `},zs=to`
261
+ `},Ls=to`
262
262
  0% {
263
263
  transform: scale(1);
264
264
  opacity: 1;
@@ -267,14 +267,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
267
267
  transform: scale(2);
268
268
  opacity: 0;
269
269
  }
270
- `,Ls=to`
270
+ `,Ps=to`
271
271
  0% {
272
272
  background-position: -500px 0;
273
273
  }
274
274
  100% {
275
275
  background-position: 500px 0;
276
276
  }
277
- `,Ps={in:to`
277
+ `,Ms={in:to`
278
278
  from {
279
279
  opacity: 0;
280
280
  }
@@ -288,7 +288,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
288
288
  to {
289
289
  opacity: 0;
290
290
  }
291
- `};var Ms=Object.freeze({__proto__:null,fade:Ps,ping:zs,progress:Fs,shimmer:Ls,slide:Rs});const Bs=Yt.span`
291
+ `};var Bs=Object.freeze({__proto__:null,fade:Ms,ping:Ls,progress:zs,shimmer:Ps,slide:Fs});const Us=Yt.span`
292
292
  display: flex;
293
293
  align-items: center;
294
294
  justify-content: center;
@@ -300,15 +300,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
300
300
  gap: 2px;
301
301
 
302
302
  border-radius: 50px;
303
- border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":_s["050"]):t?"transparent":e.colors.border};
303
+ border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":Os["050"]):t?"transparent":e.colors.border};
304
304
  background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
305
305
  color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
306
306
  font-family: ${({theme:e})=>e.font_family.secondary};
307
307
  font-size: 12px;
308
308
  white-space: nowrap;
309
309
 
310
- ${({theme:e,$filled:t,$status:o,$clickable:r})=>r&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+_s["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+_s["020"]};\n }`}
311
- `,Us=({label:e,filled:t,status:o,withIcon:r,onClick:i})=>{const n=Zt(),a=o&&r?ri(o,n):null;return Rt(Bs,{$filled:t,$status:o,$clickable:!!i,onClick:i,children:[!!a&&Ot(a,{}),e]})},js=Yt.div`
310
+ ${({theme:e,$filled:t,$status:o,$clickable:r})=>r&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+Os["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Os["020"]};\n }`}
311
+ `,js=({label:e,filled:t,status:o,withIcon:r,onClick:i})=>{const n=Zt(),a=o&&r?ri(o,n):null;return Rt(Us,{$filled:t,$status:o,$clickable:!!i,onClick:i,children:[!!a&&Ot(a,{}),e]})},Ws=Yt.div`
312
312
  height: fit-content;
313
313
  border: 2px solid transparent;
314
314
  padding: 2px;
@@ -318,15 +318,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
318
318
  &:focus-within {
319
319
  border-color: ${({theme:e})=>e.colors.secondary};
320
320
  }
321
- `,Ws={primary:Qt`
322
- border: 1px solid ${({theme:e})=>e.text.secondary+_s["024"]};
321
+ `,Hs={primary:Qt`
322
+ border: 1px solid ${({theme:e})=>e.text.secondary+Os["024"]};
323
323
  background: ${({theme:e})=>e.colors.secondary};
324
324
  color: ${({theme:e})=>e.colors.primary};
325
325
  &:hover {
326
- background: ${({theme:e})=>e.colors.secondary+_s["080"]};
326
+ background: ${({theme:e})=>e.colors.secondary+Os["080"]};
327
327
  }
328
328
  &:active {
329
- background: ${({theme:e})=>e.text.secondary+_s["060"]};
329
+ background: ${({theme:e})=>e.text.secondary+Os["060"]};
330
330
  }
331
331
  `,secondary:Qt`
332
332
  border: 1px solid ${({theme:e})=>e.colors.border};
@@ -334,17 +334,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
334
334
  color: ${({theme:e})=>e.colors.secondary};
335
335
  &:hover {
336
336
  border: 1px solid ${({theme:e})=>e.text.darker_grey};
337
- background: ${({theme:e})=>e.colors.secondary+_s["010"]};
337
+ background: ${({theme:e})=>e.colors.secondary+Os["010"]};
338
338
  }
339
339
  &:active {
340
340
  border: 1px solid ${({theme:e})=>e.text.dark_grey};
341
- background: ${({theme:e})=>e.colors.secondary+_s["015"]};
341
+ background: ${({theme:e})=>e.colors.secondary+Os["015"]};
342
342
  }
343
343
  `,tertiary:Qt`
344
344
  border-color: transparent;
345
345
  background: transparent;
346
346
  &:hover {
347
- background: ${({theme:e})=>e.colors.dropdown_bg_2+_s["040"]};
347
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+Os["040"]};
348
348
  }
349
349
  &:active {
350
350
  background: ${({theme:e})=>e.colors.dropdown_bg_2};
@@ -353,21 +353,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
353
353
  border-color: transparent;
354
354
  background: ${({theme:e})=>e.text.error};
355
355
  &:hover {
356
- background: ${({theme:e})=>e.text.error+_s["090"]};
356
+ background: ${({theme:e})=>e.text.error+Os["090"]};
357
357
  }
358
358
  &:active {
359
- background: ${({theme:e})=>e.text.error+_s["080"]};
359
+ background: ${({theme:e})=>e.text.error+Os["080"]};
360
360
  }
361
361
  `,warning:Qt`
362
362
  border-color: transparent;
363
363
  background: ${({theme:e})=>e.text.warning};
364
364
  &:hover {
365
- background: ${({theme:e})=>e.text.warning+_s["090"]};
365
+ background: ${({theme:e})=>e.text.warning+Os["090"]};
366
366
  }
367
367
  &:active {
368
- background: ${({theme:e})=>e.text.warning+_s["080"]};
368
+ background: ${({theme:e})=>e.text.warning+Os["080"]};
369
369
  }
370
- `},Hs=Yt.button`
370
+ `},Xs=Yt.button`
371
371
  height: 36px;
372
372
  border-radius: 32px;
373
373
  cursor: pointer;
@@ -381,20 +381,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
381
381
  text-decoration: underline;
382
382
  font-weight: 600;
383
383
  outline: none;
384
- ${({$variant:e})=>e&&Ws[e]}
384
+ ${({$variant:e})=>e&&Hs[e]}
385
385
  ${({disabled:e,$variant:t})=>e&&Qt`
386
386
  opacity: 0.5;
387
387
  cursor: not-allowed;
388
388
 
389
389
  ${"primary"===t?Qt`
390
390
  color: ${({theme:e})=>e.colors.secondary};
391
- background: ${({theme:e})=>e.text.secondary+_s["010"]};
391
+ background: ${({theme:e})=>e.text.secondary+Os["010"]};
392
392
  &:hover {
393
- background: ${({theme:e})=>e.text.secondary+_s["015"]};
393
+ background: ${({theme:e})=>e.text.secondary+Os["015"]};
394
394
  }
395
395
  `:""}
396
396
  `}
397
- `,Xs=({children:e,variant:t="primary",onClick:o,...r})=>{const i=Bt(null);return Ot(js,{$variant:t,children:Ot(Hs,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...r,children:e})})},Gs=e=>{function t(){return void 0===e?{}:vo(e)}const[o,r]=Pt(t()),[i,n]=Pt({}),a=Ut((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[r,i]of Object.entries(e)){const e=r;if(Array.isArray(i)){const r=t[e];Array.isArray(r)&&i.length===r.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(a(e,r[t])).length:e===r[t])||(o[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const r=a(i,t[e]);Object.keys(r).length>0&&(o[e]=r)}else i!==t[e]&&(o[e]=t[e])}for(const r of Object.keys(t))r in e||(o[r]=t[r]);return o},[]),s=(e,t)=>0===Object.keys(a(e,t)).length,l=Lt(()=>void 0!==e&&!s(e,o),[e,o]);Mt(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(i)&&r(i)},[e,o]);const c=Ut((e,t)=>wo("formData"===e?o:i,t.toString()),[o,i]);return{formData:o,formErrors:i,getFormDiff:a,areFormValuesEqual:s,isFormDirty:l,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?r(o=>({...o,[e]:t})):r(e=>{const r=vo(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&r({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const r=vo(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&n({...o})},resetFormData:e=>{r(e||t()),n({})},getNestedValue:c}},Vs={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}},Ks=()=>{const{addNotification:e}=xs(),{formData:t,formErrors:o,handleFormChange:r,handleErrorChange:i,resetFormData:n}=Gs(Vs),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:o,handleFormChange:r,resetFormData:n,validateForm:o=>{const r={};let n=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":hi(t)&&(r[e]=kr.FIELD_IS_REQUIRED)}}),t.type===Do.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=kr.FIELD_IS_REQUIRED;break}}return n=!Object.values(r).length,!n&&o?.withAlert&&e({type:Go.Warning,title:o.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),n},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:i,disabled:n,fields:s})=>{const l={...vo(Vs),type:e,signals:t,name:o,notes:i,disabled:n};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case To.LabelsAttributes:case To.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case To.CollectContainerAttributes:case To.CollectReplicaSetAttributes:case To.CollectWorkloadId:case To.CollectClusterId:case To.ClusterAttributes:case To.OverwriteExistingValues:case To.AttributeNamesToDelete:case To.Renames:case To.PiiCategories:case To.FallbackSamplingRatio:case To.SamplingPercentage:case To.EndpointsFilters:case To.ServicesNameFilters:case To.AttributeFilters:case To.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),r(void 0,void 0,l)}}},qs=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Js=()=>{const{setCurrentModal:e}=fs(),{setDrawerType:t,setDrawerEntityId:o}=us(),{setActiveNodeType:r,setActiveNodeId:i,activeNodeId:n}=bn();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(n===l?(r(null),i(null)):(r(c),i(l)),p){case jo.Source:case jo.Destination:case jo.Action:case jo.InstrumentationRule:t(p),o(d);break;case Zo.AddSource:e(jo.Source);break;case Zo.AddDestination:e(jo.Destination);break;case Zo.AddAction:e(jo.Action);break;case Zo.AddRule:e(jo.InstrumentationRule)}}}},Ys=()=>{const{setDrawerType:e,setDrawerEntityId:t}=us(),{markAsDismissed:o,markAsSeen:r}=xs();return{onClickNotification:(i,n)=>{const{id:a,crdType:s,target:l}=i,{dismissToast:c}=n||{};if(s&&l)switch(s){case jo.InstrumentationRule:e(jo.InstrumentationRule),t(Gr(l,jo.InstrumentationRule));break;case jo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jo.Source),t(Gr(l,jo.Source));break;case jo.Action:e(jo.Action),t(Gr(l,jo.Action));break;case jo.Destination:case"Destination":e(jo.Destination),t(Gr(l,jo.Destination))}r(a),c&&o(a)}}},Qs=()=>{const e=Bt(null),[t,o]=Pt(0),[r,i]=Pt(0);return Mt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();o(t),i(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var Zs;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Zs||(Zs={}));const el=Yt.div`
397
+ `,Gs=({children:e,variant:t="primary",onClick:o,...r})=>{const i=Bt(null);return Ot(Ws,{$variant:t,children:Ot(Xs,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...r,children:e})})},Vs=e=>{function t(){return void 0===e?{}:vo(e)}const[o,r]=Pt(t()),[i,n]=Pt({}),a=Ut((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[r,i]of Object.entries(e)){const e=r;if(Array.isArray(i)){const r=t[e];Array.isArray(r)&&i.length===r.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(a(e,r[t])).length:e===r[t])||(o[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const r=a(i,t[e]);Object.keys(r).length>0&&(o[e]=r)}else i!==t[e]&&(o[e]=t[e])}for(const r of Object.keys(t))r in e||(o[r]=t[r]);return o},[]),s=(e,t)=>0===Object.keys(a(e,t)).length,l=Lt(()=>void 0!==e&&!s(e,o),[e,o]);Mt(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(i)&&r(i)},[e,o]);const c=Ut((e,t)=>wo("formData"===e?o:i,t.toString()),[o,i]);return{formData:o,formErrors:i,getFormDiff:a,areFormValuesEqual:s,isFormDirty:l,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?r(o=>({...o,[e]:t})):r(e=>{const r=vo(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&r({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const r=vo(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&n({...o})},resetFormData:e=>{r(e||t()),n({})},getNestedValue:c}},Ks={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}},qs=()=>{const{addNotification:e}=ys(),{formData:t,formErrors:o,handleFormChange:r,handleErrorChange:i,resetFormData:n}=Vs(Ks),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:o,handleFormChange:r,resetFormData:n,validateForm:o=>{const r={};let n=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":hi(t)&&(r[e]=kr.FIELD_IS_REQUIRED)}}),t.type===Do.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=kr.FIELD_IS_REQUIRED;break}}return n=!Object.values(r).length,!n&&o?.withAlert&&e({type:Go.Warning,title:o.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),n},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:i,disabled:n,fields:s})=>{const l={...vo(Ks),type:e,signals:t,name:o,notes:i,disabled:n};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case To.LabelsAttributes:case To.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case To.CollectContainerAttributes:case To.CollectReplicaSetAttributes:case To.CollectWorkloadId:case To.CollectClusterId:case To.ClusterAttributes:case To.OverwriteExistingValues:case To.AttributeNamesToDelete:case To.Renames:case To.PiiCategories:case To.FallbackSamplingRatio:case To.SamplingPercentage:case To.EndpointsFilters:case To.ServicesNameFilters:case To.AttributeFilters:case To.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),r(void 0,void 0,l)}}},Js=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Ys=()=>{const{setCurrentModal:e}=xs(),{setDrawerType:t,setDrawerEntityId:o}=hs(),{setActiveNodeType:r,setActiveNodeId:i,activeNodeId:n}=$n();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(n===l?(r(null),i(null)):(r(c),i(l)),p){case jo.Source:case jo.Destination:case jo.Action:case jo.InstrumentationRule:t(p),o(d);break;case Zo.AddSource:e(jo.Source);break;case Zo.AddDestination:e(jo.Destination);break;case Zo.AddAction:e(jo.Action);break;case Zo.AddRule:e(jo.InstrumentationRule)}}}},Qs=()=>{const{setDrawerType:e,setDrawerEntityId:t}=hs(),{markAsDismissed:o,markAsSeen:r}=ys();return{onClickNotification:(i,n)=>{const{id:a,crdType:s,target:l}=i,{dismissToast:c}=n||{};if(s&&l)switch(s){case jo.InstrumentationRule:e(jo.InstrumentationRule),t(Gr(l,jo.InstrumentationRule));break;case jo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jo.Source),t(Gr(l,jo.Source));break;case jo.Action:e(jo.Action),t(Gr(l,jo.Action));break;case jo.Destination:case"Destination":e(jo.Destination),t(Gr(l,jo.Destination))}r(a),c&&o(a)}}},Zs=()=>{const e=Bt(null),[t,o]=Pt(0),[r,i]=Pt(0);return Mt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();o(t),i(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var el;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(el||(el={}));const tl=Yt.div`
398
398
  width: ${({$size:e})=>1.5*e}px;
399
399
  height: ${({$size:e})=>1.5*e}px;
400
400
  display: flex;
@@ -405,7 +405,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
405
405
  &:hover {
406
406
  background: ${({theme:e})=>e.v2.colors.silver[900]};
407
407
  }
408
- `,tl=({icon:e,size:t=Zs.S,onClick:o,disabled:r})=>Ot(el,{$size:t,$disabled:r,onClick:e=>{o&&!r&&(e.stopPropagation(),o(e))},children:Ot(e,{size:t})}),ol=({onDone:e}={})=>{const[t,o]=Pt(!1),[r,i]=Pt(-1),n=Ut(async(r,n)=>{if(!t){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(r)}catch(e){}else{const e=document.createElement("textarea");e.value=r,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:Ut(({value:e,size:o})=>Ot(tl,{icon:t?st:lt,size:o,onClick:()=>n(e)}),[t]),isCopied:t,copiedIndex:r,clickCopy:n}},rl=e=>{const{addNotification:t}=xs(),{formData:o,handleFormChange:r,formErrors:i,handleErrorChange:n,resetFormData:a}=Gs(e);return{formData:o,formErrors:i,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let i=!0;return o.name?mi(o.name)?r.name=void 0:(i=!1,r.name=kr.ILLEGAL_K8S_LABEL):(i=!1,r.name=kr.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Go.Warning,title:e.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,r),i},loadFormWithDrawerItem:({name:t})=>{const o={...vo(e),name:t};r(void 0,void 0,o)}}},il={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},nl=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:r}=xs(),{formData:i,formErrors:n,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Gs(il),[c,d]=Pt([]),[p,u]=Pt([]);Mt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:r,displayName:i,initialValue:n,renderCondition:a}=e;if(o===Ho.Dropdown){const e=di(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:n,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:i,value:n,renderCondition:a,...di(r,{})}})).map(e=>{if(o){const t="string"==typeof o?di(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),Mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Mt(()=>{if(t&&0===Si(i.exportedSignals).length){const{logs:e,metrics:o,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:r.supported})}},[t,i.exportedSignals]);return{formData:i,formErrors:n,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:r,required:i})=>{i&&!r&&(o=!1,t[e]=kr.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&r({type:Go.Warning,title:e.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:r,fields:i})=>{const n={...vo(il),type:e,name:t,disabled:o,exportedSignals:r,fields:Object.entries(di(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,n),n},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},al={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lr.HttpRequest]:null,[lr.HttpResponse]:null,[lr.DbQuery]:null,[lr.Messaging]:null},codeAttributes:{[nr.Column]:null,[nr.FilePath]:null,[nr.Function]:null,[nr.LineNumber]:null,[nr.Namespace]:null,[nr.StackTrace]:null},headersCollection:null,customInstrumentations:{[sr.Java]:null,[sr.Golang]:null}},sl=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Gs(al);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,payloadCollection:i,codeAttributes:n,headersCollection:a,customInstrumentations:s})=>{const l={...vo(al),ruleName:e,notes:t,disabled:r};i&&(l.payloadCollection={[lr.HttpRequest]:i[lr.HttpRequest]?{}:null,[lr.HttpResponse]:i[lr.HttpResponse]?{}:null,[lr.DbQuery]:i[lr.DbQuery]?{}:null,[lr.Messaging]:i[lr.Messaging]?{}:null}),n&&(l.codeAttributes={[nr.Column]:n[nr.Column]||null,[nr.FilePath]:n[nr.FilePath]||null,[nr.Function]:n[nr.Function]||null,[nr.LineNumber]:n[nr.LineNumber]||null,[nr.Namespace]:n[nr.Namespace]||null,[nr.StackTrace]:n[nr.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[sr.Java]:s[sr.Java]||null,[sr.Golang]:s[sr.Golang]||null}),o(void 0,void 0,l)}}},ll=({active:e,key:t,withAltKey:o,withCtrlKey:r,withShiftKey:i,withMetaKey:n},a)=>(Mt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!n||n&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,r,i,n,a]),null),cl=(e,t)=>{Mt(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},dl=({sectionNames:e,threshold:t=.4})=>{const[o,r]=Pt(e[0]||""),i=Bt({}),n=Bt(!1),a=Bt(!1),s=Ut((e,t)=>{i.current[e]=t},[]),l=Ut(e=>{a.current=!0,r(e)},[]);return Mt(()=>{if(!a.current)return;a.current=!1;const e=i.current[o];if(!e)return;n.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{n.current=!1},600);return()=>clearTimeout(t)},[o]),Mt(()=>{const o=i.current,a=e.map(e=>o[e]).filter(Boolean);if(!a.length)return;const s=new IntersectionObserver(e=>{if(!n.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&r(e);break}},{threshold:t});return a.forEach(e=>s.observe(e)),()=>s.disconnect()},[e,t]),{selectedSection:o,setSelectedSection:l,setSectionRef:s}},pl=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:r="local"}={})=>{const i=Bt(null),[n,a]=Pt(!1),[s,l]=Pt({top:0,left:0}),[c,d]=Pt({edge:"top",align:"left"});cl(i,()=>{n&&(a(!1),o?.())});return{popupRef:i,popupOpen:n,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(o,n)=>{if("local"===r)return void l({top:n,left:o});const{innerWidth:a,innerHeight:s}=window,c=i.current?.clientWidth||t,p=i.current?.clientHeight||e,u=o/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:n<s/2?"top":"bottom",align:h});let m=n,g=o;if(m>=s/2&&(m+=-p),"center"===h){g=o-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=o-c);l({top:m,left:g})}}},ul=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?di(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),hl={otelServiceName:"",currentStreamName:""},ml=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Gs(hl);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const r={...vo(hl),otelServiceName:e||t||""};o(void 0,void 0,r)}}},gl=Wt({platformType:Po.K8s,tier:Lo.Community,version:"v0.0.0"}),fl=({children:e,platformType:t,tier:o,version:r})=>{const i=Lt(()=>({platformType:t,tier:o,version:r}),[t,o,r]);return Ot(gl.Provider,{value:i,children:e})},xl=(e,t)=>!t||_i(e)>=_i(t),yl=e=>{const t=jt(gl),o=xl(t.version,e),r=t.platformType===Po.Vm;return{...t,isVersionSupported:o,isVm:r,isEnterprise:t.tier===Lo.Onprem}},bl=Wt({formType:void 0}),$l=({children:e,formType:t})=>{const o=Lt(()=>({formType:t}),[t]);return Ot(bl.Provider,{value:o,children:e})},vl=()=>jt(bl),wl=new Set([tr.StaticPod]),Sl=e=>{const t=e.workloads.filter(({selected:e})=>e).length,o=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===o,isSomeSourced:t>0&&t<o,isFutureApps:e.selected||!1}},Cl=(e,t,o)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(o.showOnlySelected){const{isAllSourced:t,isSomeSourced:o,isFutureApps:r}=Sl(e);return t||o||r}return!0},kl=(e,t,o)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!o.showOnlySelected||e.selected),El=(e,t,o)=>{const r=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,i=r&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,n=e.selected&&(!r||i)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:n,numberOfInstances:e.numberOfInstances}},Al=(e,t,o)=>({...El(e,t),currentStreamName:t}),Dl=(e,t,o)=>{const r="boolean"==typeof o,i=e.dataStreamNames?.includes(t),n=(r?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!r)&&n,currentStreamName:t}},Tl=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:o}=yl(),r=e=>o!==Lo.Onprem&&wl.has(e),{selectedStreamName:i}=ps(),{namespaces:n,addEntities:a}=hs(),[s,l]=Pt(!1),[c,d]=Pt({}),[p,u]=Pt(!1),[h,m]=Pt(""),[g,f]=Pt({}),[x,y]=Pt({}),[b,$]=Pt(""),[v,w]=Pt(jo.Source),[S,C]=Pt(!1),[k,E]=Pt(!1),A=Lt(()=>{const e=(e,t)=>!b||v!==t||v===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,jo.Namespace)).forEach(([o,r])=>{const i=r.filter(t=>{return e(t.name,jo.Source)&&(o=t,!S||o.selected)&&(e=>!k||(e.numberOfInstances||0)>0)(t);var o});(!b||b&&(v===jo.Namespace||v===jo.Source&&i.length))&&(t[o]=i)}),t},[x,b,v,S,k]);return Mt(()=>{(async()=>{l(!0);const e=await t();l(!1);const o=e.data;if(!o?.length)return;const r=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n={},s={},c={};for(const e of r){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));n[e.name]=t.map(e=>El(e,i)),s[e.name]=t.map(e=>Al(e,i)),c[e.name]=Dl(e,i)}a(jo.Namespace,o.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=ks.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const o=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==o&&(s[e][o]={...s[e][o],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(n),y(s),f(c)})()},[i]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,o])=>{o.forEach(o=>{const r=c[t]?.find(e=>e.name===o.name&&e.kind===o.kind);r?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,o])=>{const r=n?.find(e=>e.name===t);(o.selected&&!r?.dataStreamNames?.includes(i)||!o.selected&&r?.dataStreamNames?.includes(i))&&(e[t]=o)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(n.find(t=>t.name===e)){const o="boolean"==typeof t;m(t=>t!==e||o?e:""),o&&(y(o=>({...o,[e]:(o[e]||[]).map(e=>t&&r(e.kind)?e:{...e,selected:t,currentStreamName:i})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const o={};for(const[n,a]of Object.entries(t))o[n]=a.map(t=>e&&r(t.kind)?t:{...t,selected:e,currentStreamName:i});return o})},selectedSources:x,onSelectSource:(e,t)=>{const o=t||h;if(!o)return;if(r(e.kind))return;const n=[...x[o]||[]],a=n.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...n[a],selected:!n[a].selected,currentStreamName:i};n[a]=e}else n.push({...e,selected:!0,currentStreamName:i});y(e=>({...e,[o]:n})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const o=t||h;if(!o)return;const r=n.find(e=>e.name===t);r&&f(t=>({...t,[o]:Dl(r,i,e)}))},searchText:b,setSearchText:$,searchBy:v,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:C,showRunningOnly:k,setShowRunningOnly:E}};try{Gt.addDefaultLocale(Jt)}catch(e){}const Nl=()=>{const e=Bt(new Gt(Jt.locale));return{formatTimeAgo:Ut(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Il=Yt.div`
408
+ `,ol=({icon:e,size:t=el.S,onClick:o,disabled:r})=>Ot(tl,{$size:t,$disabled:r,onClick:e=>{o&&!r&&(e.stopPropagation(),o(e))},children:Ot(e,{size:t})}),rl=({onDone:e}={})=>{const[t,o]=Pt(!1),[r,i]=Pt(-1),n=Ut(async(r,n)=>{if(!t){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(r)}catch(e){}else{const e=document.createElement("textarea");e.value=r,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:Ut(({value:e,size:o})=>Ot(ol,{icon:t?st:lt,size:o,onClick:()=>n(e)}),[t]),isCopied:t,copiedIndex:r,clickCopy:n}},il=e=>{const{addNotification:t}=ys(),{formData:o,handleFormChange:r,formErrors:i,handleErrorChange:n,resetFormData:a}=Vs(e);return{formData:o,formErrors:i,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let i=!0;return o.name?mi(o.name)?r.name=void 0:(i=!1,r.name=kr.ILLEGAL_K8S_LABEL):(i=!1,r.name=kr.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Go.Warning,title:e.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,r),i},loadFormWithDrawerItem:({name:t})=>{const o={...vo(e),name:t};r(void 0,void 0,o)}}},nl={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},al=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:r}=ys(),{formData:i,formErrors:n,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Vs(nl),[c,d]=Pt([]),[p,u]=Pt([]);Mt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:r,displayName:i,initialValue:n,renderCondition:a}=e;if(o===Ho.Dropdown){const e=di(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:n,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:i,value:n,renderCondition:a,...di(r,{})}})).map(e=>{if(o){const t="string"==typeof o?di(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),Mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Mt(()=>{if(t&&0===Si(i.exportedSignals).length){const{logs:e,metrics:o,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:r.supported})}},[t,i.exportedSignals]);return{formData:i,formErrors:n,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:r,required:i})=>{i&&!r&&(o=!1,t[e]=kr.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&r({type:Go.Warning,title:e.alertTitle,message:kr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:r,fields:i})=>{const n={...vo(nl),type:e,name:t,disabled:o,exportedSignals:r,fields:Object.entries(di(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,n),n},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},sl={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lr.HttpRequest]:null,[lr.HttpResponse]:null,[lr.DbQuery]:null,[lr.Messaging]:null},codeAttributes:{[nr.Column]:null,[nr.FilePath]:null,[nr.Function]:null,[nr.LineNumber]:null,[nr.Namespace]:null,[nr.StackTrace]:null},headersCollection:null,customInstrumentations:{[sr.Java]:null,[sr.Golang]:null}},ll=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Vs(sl);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,payloadCollection:i,codeAttributes:n,headersCollection:a,customInstrumentations:s})=>{const l={...vo(sl),ruleName:e,notes:t,disabled:r};i&&(l.payloadCollection={[lr.HttpRequest]:i[lr.HttpRequest]?{}:null,[lr.HttpResponse]:i[lr.HttpResponse]?{}:null,[lr.DbQuery]:i[lr.DbQuery]?{}:null,[lr.Messaging]:i[lr.Messaging]?{}:null}),n&&(l.codeAttributes={[nr.Column]:n[nr.Column]||null,[nr.FilePath]:n[nr.FilePath]||null,[nr.Function]:n[nr.Function]||null,[nr.LineNumber]:n[nr.LineNumber]||null,[nr.Namespace]:n[nr.Namespace]||null,[nr.StackTrace]:n[nr.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[sr.Java]:s[sr.Java]||null,[sr.Golang]:s[sr.Golang]||null}),o(void 0,void 0,l)}}},cl=({active:e,key:t,withAltKey:o,withCtrlKey:r,withShiftKey:i,withMetaKey:n},a)=>(Mt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!n||n&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,r,i,n,a]),null),dl=(e,t)=>{Mt(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},pl=({sectionNames:e,threshold:t=.4})=>{const[o,r]=Pt(e[0]||""),i=Bt({}),n=Bt(!1),a=Bt(!1),s=Ut((e,t)=>{i.current[e]=t},[]),l=Ut(e=>{a.current=!0,r(e)},[]);return Mt(()=>{if(!a.current)return;a.current=!1;const e=i.current[o];if(!e)return;n.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{n.current=!1},600);return()=>clearTimeout(t)},[o]),Mt(()=>{const o=i.current,a=e.map(e=>o[e]).filter(Boolean);if(!a.length)return;const s=new IntersectionObserver(e=>{if(!n.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&r(e);break}},{threshold:t});return a.forEach(e=>s.observe(e)),()=>s.disconnect()},[e,t]),{selectedSection:o,setSelectedSection:l,setSectionRef:s}},ul=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:r="local"}={})=>{const i=Bt(null),[n,a]=Pt(!1),[s,l]=Pt({top:0,left:0}),[c,d]=Pt({edge:"top",align:"left"});dl(i,()=>{n&&(a(!1),o?.())});return{popupRef:i,popupOpen:n,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(o,n)=>{if("local"===r)return void l({top:n,left:o});const{innerWidth:a,innerHeight:s}=window,c=i.current?.clientWidth||t,p=i.current?.clientHeight||e,u=o/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:n<s/2?"top":"bottom",align:h});let m=n,g=o;if(m>=s/2&&(m+=-p),"center"===h){g=o-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=o-c);l({top:m,left:g})}}},hl=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?di(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ml={otelServiceName:"",currentStreamName:""},gl=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Vs(ml);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const r={...vo(ml),otelServiceName:e||t||""};o(void 0,void 0,r)}}},fl=Wt({platformType:Po.K8s,tier:Lo.Community,version:"v0.0.0"}),xl=({children:e,platformType:t,tier:o,version:r})=>{const i=Lt(()=>({platformType:t,tier:o,version:r}),[t,o,r]);return Ot(fl.Provider,{value:i,children:e})},yl=(e,t)=>!t||Oi(e)>=Oi(t),bl=e=>{const t=jt(fl),o=yl(t.version,e),r=t.platformType===Po.Vm;return{...t,isVersionSupported:o,isVm:r,isEnterprise:t.tier===Lo.Onprem}},$l=Wt({formType:void 0}),vl=({children:e,formType:t})=>{const o=Lt(()=>({formType:t}),[t]);return Ot($l.Provider,{value:o,children:e})},wl=()=>jt($l),Sl=new Set([tr.StaticPod]),Cl=e=>{const t=e.workloads.filter(({selected:e})=>e).length,o=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===o,isSomeSourced:t>0&&t<o,isFutureApps:e.selected||!1}},kl=(e,t,o)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(o.showOnlySelected){const{isAllSourced:t,isSomeSourced:o,isFutureApps:r}=Cl(e);return t||o||r}return!0},El=(e,t,o)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!o.showOnlySelected||e.selected),Al=(e,t,o)=>{const r=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,i=r&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,n=e.selected&&(!r||i)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:n,numberOfInstances:e.numberOfInstances}},Dl=(e,t,o)=>({...Al(e,t),currentStreamName:t}),Tl=(e,t,o)=>{const r="boolean"==typeof o,i=e.dataStreamNames?.includes(t),n=(r?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!r)&&n,currentStreamName:t}},Nl=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:o}=bl(),r=e=>o!==Lo.Onprem&&Sl.has(e),{selectedStreamName:i}=us(),{namespaces:n,addEntities:a}=ms(),[s,l]=Pt(!1),[c,d]=Pt({}),[p,u]=Pt(!1),[h,m]=Pt(""),[g,f]=Pt({}),[x,y]=Pt({}),[b,$]=Pt(""),[v,w]=Pt(jo.Source),[S,C]=Pt(!1),[k,E]=Pt(!1),A=Lt(()=>{const e=(e,t)=>!b||v!==t||v===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,jo.Namespace)).forEach(([o,r])=>{const i=r.filter(t=>{return e(t.name,jo.Source)&&(o=t,!S||o.selected)&&(e=>!k||(e.numberOfInstances||0)>0)(t);var o});(!b||b&&(v===jo.Namespace||v===jo.Source&&i.length))&&(t[o]=i)}),t},[x,b,v,S,k]);return Mt(()=>{(async()=>{l(!0);const e=await t();l(!1);const o=e.data;if(!o?.length)return;const r=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n={},s={},c={};for(const e of r){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));n[e.name]=t.map(e=>Al(e,i)),s[e.name]=t.map(e=>Dl(e,i)),c[e.name]=Tl(e,i)}a(jo.Namespace,o.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=Es.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const o=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==o&&(s[e][o]={...s[e][o],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(n),y(s),f(c)})()},[i]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,o])=>{o.forEach(o=>{const r=c[t]?.find(e=>e.name===o.name&&e.kind===o.kind);r?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,o])=>{const r=n?.find(e=>e.name===t);(o.selected&&!r?.dataStreamNames?.includes(i)||!o.selected&&r?.dataStreamNames?.includes(i))&&(e[t]=o)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(n.find(t=>t.name===e)){const o="boolean"==typeof t;m(t=>t!==e||o?e:""),o&&(y(o=>({...o,[e]:(o[e]||[]).map(e=>t&&r(e.kind)?e:{...e,selected:t,currentStreamName:i})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const o={};for(const[n,a]of Object.entries(t))o[n]=a.map(t=>e&&r(t.kind)?t:{...t,selected:e,currentStreamName:i});return o})},selectedSources:x,onSelectSource:(e,t)=>{const o=t||h;if(!o)return;if(r(e.kind))return;const n=[...x[o]||[]],a=n.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...n[a],selected:!n[a].selected,currentStreamName:i};n[a]=e}else n.push({...e,selected:!0,currentStreamName:i});y(e=>({...e,[o]:n})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const o=t||h;if(!o)return;const r=n.find(e=>e.name===t);r&&f(t=>({...t,[o]:Tl(r,i,e)}))},searchText:b,setSearchText:$,searchBy:v,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:C,showRunningOnly:k,setShowRunningOnly:E}};try{Gt.addDefaultLocale(Jt)}catch(e){}const Il=()=>{const e=Bt(new Gt(Jt.locale));return{formatTimeAgo:Ut(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},_l=Yt.div`
409
409
  position: fixed;
410
410
  top: 50%;
411
411
  left: 50%;
@@ -415,28 +415,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
415
415
  background: ${({theme:e})=>e.colors.translucent_bg};
416
416
  border: ${({theme:e})=>`1px solid ${e.colors.border}`};
417
417
  border-radius: 40px;
418
- box-shadow: ${({theme:e})=>{const t=e.colors.primary+_s["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}`}};
419
- animation-name: ${Rs.in.center};
420
- `,_l=Yt.div`
418
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+Os["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}`}};
419
+ animation-name: ${Fs.in.center};
420
+ `,Ol=Yt.div`
421
421
  display: flex;
422
422
  justify-content: space-between;
423
423
  align-items: center;
424
424
  height: 80px;
425
425
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
426
426
  padding: 0 24px;
427
- `,Ol=Yt.div`
427
+ `,Rl=Yt.div`
428
428
  cursor: pointer;
429
429
  display: flex;
430
430
  align-items: center;
431
431
  gap: 8px;
432
- `,Rl=Yt.div`
432
+ `,Fl=Yt.div`
433
433
  display: flex;
434
434
  align-items: center;
435
435
  gap: 8px;
436
- `,Fl=Yt(Pi)`
436
+ `,zl=Yt(Mi)`
437
437
  min-width: 350px;
438
438
  min-height: 150px;
439
- `,zl=Yt.div`
439
+ `,Ll=Yt.div`
440
440
  position: absolute;
441
441
  left: 50%;
442
442
  transform: translateX(-50%);
@@ -445,24 +445,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
445
445
  justify-content: center;
446
446
  width: 100%;
447
447
  pointer-events: none;
448
- `,Ll=Yt(Zi)`
448
+ `,Pl=Yt(en)`
449
449
  text-transform: uppercase;
450
450
  font-family: ${({theme:e})=>e.font_family.secondary};
451
451
  pointer-events: auto;
452
- `,Pl=Yt(Zi)`
452
+ `,Ml=Yt(en)`
453
453
  text-transform: uppercase;
454
454
  font-weight: 500;
455
455
  font-size: 14px;
456
456
  font-family: ${({theme:e})=>e.font_family.secondary};
457
457
  text-decoration: underline;
458
458
  cursor: pointer;
459
- `,Ml=({isOpen:e,noOverlay:t,header:o,actionComponent:r,onClose:i,children:n,closeOnEscape:a=!0})=>(ll({key:"Escape",active:e&&a},()=>i()),qs(e),e?co.createPortal(Rt(Ft,{children:[Ot(Bi,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),Rt(Il,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),children:[o&&Rt(_l,{children:[Rt(Ol,{onClick:i,children:[Ot(ct,{}),Ot(Pl,{children:"Cancel"})]}),Ot(zl,{children:Ot(Ll,{children:o.title})}),Ot(Rl,{children:r})]}),Ot(Fl,{children:n})]})]}),document.body):null),Bl=Yt.div`
459
+ `,Bl=({isOpen:e,noOverlay:t,header:o,actionComponent:r,onClose:i,children:n,closeOnEscape:a=!0})=>(cl({key:"Escape",active:e&&a},()=>i()),Js(e),e?co.createPortal(Rt(Ft,{children:[Ot(Ui,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),Rt(_l,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),children:[o&&Rt(Ol,{children:[Rt(Rl,{onClick:i,children:[Ot(ct,{}),Ot(Ml,{children:"Cancel"})]}),Ot(Ll,{children:Ot(Pl,{children:o.title})}),Ot(Fl,{children:r})]}),Ot(zl,{children:n})]})]}),document.body):null),Ul=Yt.div`
460
460
  width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
461
461
  height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
462
462
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
463
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+_s["050"]};
463
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Os["050"]};
464
464
  opacity: ${({$opacity:e})=>e||1};
465
- `,Ul=({orientation:e="horizontal",type:t,thickness:o=1,length:r,margin:i,opacity:n})=>Ot(Bl,{$orientation:e,$type:t,$thickness:o,$length:r,$margin:i,$opacity:n}),jl=Yt.div`
465
+ `,jl=({orientation:e="horizontal",type:t,thickness:o=1,length:r,margin:i,opacity:n})=>Ot(Ul,{$orientation:e,$type:t,$thickness:o,$length:r,$margin:i,$opacity:n}),Wl=Yt.div`
466
466
  /* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
467
467
  position: ${({$asPortal:e})=>e?"fixed":"absolute"};
468
468
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
@@ -478,15 +478,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
478
478
  width: ${({$width:e})=>void 0!==e?e:"unset"};
479
479
 
480
480
  ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
481
- `,Wl=Yt.div`
482
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
483
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
484
481
  `,Hl=Yt.div`
485
482
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
483
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
486
484
  `,Xl=Yt.div`
487
485
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
486
+ `,Gl=Yt.div`
487
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
488
488
  border-top: 1px solid ${({theme:e})=>e.colors.border};
489
- `,Gl=Ht(({isOpen:e,asPortal:t,...o},r)=>{const i=Lt(()=>{const{children:e,top:i,bottom:n,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return Rt(jl,{ref:r,$top:i,$bottom:n,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Ot(Wl,{$padding:c,children:u}),Ot(Hl,{$padding:c,children:e}),h&&Ot(Xl,{$padding:c,children:h})]})},[r,o,t]);return e?t?co.createPortal(i,document.body):i:null});Gl.displayName=Gl.name;const Vl=Yt.div`
489
+ `,Vl=Ht(({isOpen:e,asPortal:t,...o},r)=>{const i=Lt(()=>{const{children:e,top:i,bottom:n,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return Rt(Wl,{ref:r,$top:i,$bottom:n,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Ot(Hl,{$padding:c,children:u}),Ot(Xl,{$padding:c,children:e}),h&&Ot(Gl,{$padding:c,children:h})]})},[r,o,t]);return e?t?co.createPortal(i,document.body):i:null});Vl.displayName=Vl.name;const Kl=Yt.div`
490
490
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
491
491
  position: relative;
492
492
  display: flex;
@@ -494,13 +494,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
494
494
  gap: 4px;
495
495
  cursor: help;
496
496
  ${({$ellipsis:e})=>e&&"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}
497
- `,Kl=Yt.div`
497
+ `,ql=Yt.div`
498
498
  display: flex;
499
499
  flex-direction: column;
500
500
  align-items: flex-start;
501
501
  gap: 8px;
502
502
  width: 100%;
503
- `,ql=Yt.div`
503
+ `,Jl=Yt.div`
504
504
  display: flex;
505
505
  width: 100%;
506
506
  flex-shrink: 0;
@@ -510,7 +510,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
510
510
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
511
511
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
512
512
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
513
- `,Jl=Yt.div`
513
+ `,Yl=Yt.div`
514
514
  width: 0;
515
515
  height: 0;
516
516
  border-style: solid;
@@ -519,18 +519,18 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
519
519
  flex-shrink: 0;
520
520
 
521
521
  ${({$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 `}
522
- `,Yl=Yt.div`
522
+ `,Ql=Yt.div`
523
523
  display: flex;
524
524
  flex-direction: column;
525
525
  align-items: stretch;
526
526
  min-width: 0;
527
- `,Ql=Yt.div`
527
+ `,Zl=Yt.div`
528
528
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
529
529
  border-radius: 4px;
530
530
  padding: 8px;
531
531
  box-sizing: border-box;
532
532
  min-width: 0;
533
- `,Zl=({withIcon:e,titleIcon:t,title:o,text:r,timestamp:i,children:n,fullWidth:a=!1,keepAlive:s=!1,ellipsis:l=!1})=>{const c=Zt(),{popupRef:d,popupOpen:p,setPopupOpen:u,popupPosition:h,arrowPlacement:m,handlePosition:g}=pl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(r?.length||0),300)}),f=Lt(()=>!!Ji(r||"")?.length,[r]),x=e=>{const{type:t,clientX:o,clientY:r}=e;f?g(h.left||o,h.top||r):g(o,r),u("mouseleave"!==t)};return r||s?Rt(Vl,{$fullWidth:a,$ellipsis:l,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[n,e&&Ot(je,{fill:c.v2.colors.white[500]}),Ot(Gl,{ref:d,isOpen:p&&!!r,top:h.top,left:h.left,asPortal:!0,withPointerEvents:f,onMouseEnter:f?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:Rt(Yl,{children:["top"===m.edge&&Ot(ql,{$align:m.align,children:Ot(Jl,{$pointsUp:!0})}),Ot(Ql,{children:Rt(Kl,{children:[(!!t||!!o)&&Rt(zi,{$gap:4,style:{alignItems:"center"},children:[t&&Ot(t,{size:16},"icon"),o&&Ot(Ki,{size:Gi.XS,children:o},"title")]}),!!r&&Ot(Ki,{size:Gi.XXXS,children:r}),!!i&&Ot(Ki,{size:Gi.XXXS,color:c.v2.colors.silver[200],children:new Date(i).toLocaleString()})]})}),"bottom"===m.edge&&Ot(ql,{$align:m.align,children:Ot(Jl,{$pointsUp:!1})})]})})]}):Ot(Ft,{children:n})},ec=Yt.button`
533
+ `,ec=({withIcon:e,titleIcon:t,title:o,text:r,timestamp:i,children:n,fullWidth:a=!1,keepAlive:s=!1,ellipsis:l=!1})=>{const c=Zt(),{popupRef:d,popupOpen:p,setPopupOpen:u,popupPosition:h,arrowPlacement:m,handlePosition:g}=ul({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(r?.length||0),300)}),f=Lt(()=>!!Yi(r||"")?.length,[r]),x=e=>{const{type:t,clientX:o,clientY:r}=e;f?g(h.left||o,h.top||r):g(o,r),u("mouseleave"!==t)};return r||s?Rt(Kl,{$fullWidth:a,$ellipsis:l,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[n,e&&Ot(je,{fill:c.v2.colors.white[500]}),Ot(Vl,{ref:d,isOpen:p&&!!r,top:h.top,left:h.left,asPortal:!0,withPointerEvents:f,onMouseEnter:f?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:Rt(Ql,{children:["top"===m.edge&&Ot(Jl,{$align:m.align,children:Ot(Yl,{$pointsUp:!0})}),Ot(Zl,{children:Rt(ql,{children:[(!!t||!!o)&&Rt(Li,{$gap:4,style:{alignItems:"center"},children:[t&&Ot(t,{size:16},"icon"),o&&Ot(qi,{size:Vi.XS,children:o},"title")]}),!!r&&Ot(qi,{size:Vi.XXXS,children:r}),!!i&&Ot(qi,{size:Vi.XXXS,color:c.v2.colors.silver[200],children:new Date(i).toLocaleString()})]})}),"bottom"===m.edge&&Ot(Jl,{$align:m.align,children:Ot(Yl,{$pointsUp:!1})})]})})]}):Ot(Ft,{children:n})},tc=Yt.button`
534
534
  position: relative;
535
535
  width: ${({$size:e})=>e}px;
536
536
  height: ${({$size:e})=>e}px;
@@ -542,9 +542,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
542
542
  justify-content: center;
543
543
  cursor: pointer;
544
544
  &:hover {
545
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+_s["070"]:e.colors.dropdown_bg_2};
545
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+Os["070"]:e.colors.dropdown_bg_2};
546
546
  }
547
- `,tc=Yt.div`
547
+ `,oc=Yt.div`
548
548
  position: absolute;
549
549
  top: ${({$size:e})=>e/5}px;
550
550
  right: ${({$size:e})=>e/5}px;
@@ -559,17 +559,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
559
559
  inset: 0;
560
560
  border-radius: 100%;
561
561
  background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
562
- animation: ${zs} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
562
+ animation: ${Ls} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
563
563
  }
564
- `,oc=({children:e,onClick:t,tooltip:o,size:r=36,withPing:i,pingColor:n,withBorder:a,backgroundColor:s,...l})=>Ot(Zl,{text:o,children:Rt(ec,{$size:r,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[i&&Ot(tc,{$size:r,$color:n}),e]})}),rc=Yt.div`
564
+ `,rc=({children:e,onClick:t,tooltip:o,size:r=36,withPing:i,pingColor:n,withBorder:a,backgroundColor:s,...l})=>Ot(ec,{text:o,children:Rt(tc,{$size:r,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[i&&Ot(oc,{$size:r,$color:n}),e]})}),ic=Yt.div`
565
565
  position: relative;
566
566
  &.animated {
567
567
  overflow: hidden;
568
568
  padding-bottom: 1px;
569
569
  border-radius: 32px;
570
- animation: ${({$isLeaving:e})=>e?Rs.out.bottom:Rs.in.bottom} ${({$duration:e})=>e/10}ms forwards;
570
+ animation: ${({$isLeaving:e})=>e?Fs.out.bottom:Fs.in.bottom} ${({$duration:e})=>e/10}ms forwards;
571
571
  }
572
- `,ic=Yt.div`
572
+ `,nc=Yt.div`
573
573
  position: absolute;
574
574
  bottom: -1px;
575
575
  left: 0;
@@ -578,8 +578,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
578
578
  height: 100%;
579
579
  border-radius: 32px;
580
580
  background-color: ${({$type:e,theme:t})=>t.text[e]};
581
- animation: ${Fs.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
582
- `,nc=Yt.div`
581
+ animation: ${zs.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
582
+ `,ac=Yt.div`
583
583
  display: flex;
584
584
  align-items: center;
585
585
  flex: 1;
@@ -587,20 +587,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
587
587
  padding: 0 12px;
588
588
  border-radius: 32px;
589
589
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
590
- `,ac=Yt.div`
590
+ `,sc=Yt.div`
591
591
  display: flex;
592
592
  align-items: center;
593
593
  margin: 0 auto 0 0;
594
594
  padding: 8px 0;
595
595
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
596
596
  min-height: 12px;
597
- `,sc=Yt(Zi)`
597
+ `,lc=Yt(en)`
598
598
  font-size: 14px;
599
599
  color: ${({$type:e,theme:t})=>t.text[e]};
600
- `,lc=Yt(Zi)`
600
+ `,cc=Yt(en)`
601
601
  color: ${({$type:e,theme:t})=>t.text[e]};
602
602
  font-size: 12px;
603
- `,cc=Yt(zi)``,dc=Yt(Zi)`
603
+ `,dc=Yt(Li)``,pc=Yt(en)`
604
604
  text-transform: uppercase;
605
605
  text-decoration: underline;
606
606
  font-size: 12px;
@@ -611,34 +611,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
611
611
  transform: scale(1.1);
612
612
  transition: transform 0.3s;
613
613
  }
614
- `,pc=({type:e,icon:t,title:o,message:r,action:i,onClose:n,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Zt(),[d,p]=Pt(!1),u=Bt(null),h=Bt(null),m=e=>{n&&(p(!0),n({asSeen:e?.asSeen}))};Mt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||ri(e,c);return Rt(rc,{className:n?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[Rt(nc,{"data-id":"toast",$type:e,style:l,children:[Ot(g,{fill:c.text[e]}),Rt(ac,{$withAction:!!i,$overrideMaxWidth:s,children:[o&&Ot(sc,{$type:e,children:o}),o&&r&&Ot(Ul,{orientation:"vertical",type:e}),r&&Ot(lc,{$type:e,children:r})]}),(!!i||!!n)&&Rt(cc,{children:[i&&Ot(dc,{"data-id":"toast-action",onClick:i.onClick,children:i.label}),n&&Ot(oc,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Ot(ct,{size:12})})]})]}),n&&Ot(ic,{ref:h,$duration:a,$type:e})]})},uc=Yt.div`
614
+ `,uc=({type:e,icon:t,title:o,message:r,action:i,onClose:n,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Zt(),[d,p]=Pt(!1),u=Bt(null),h=Bt(null),m=e=>{n&&(p(!0),n({asSeen:e?.asSeen}))};Mt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||ri(e,c);return Rt(ic,{className:n?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[Rt(ac,{"data-id":"toast",$type:e,style:l,children:[Ot(g,{fill:c.text[e]}),Rt(sc,{$withAction:!!i,$overrideMaxWidth:s,children:[o&&Ot(lc,{$type:e,children:o}),o&&r&&Ot(jl,{orientation:"vertical",type:e}),r&&Ot(cc,{$type:e,children:r})]}),(!!i||!!n)&&Rt(dc,{children:[i&&Ot(pc,{"data-id":"toast-action",onClick:i.onClick,children:i.label}),n&&Ot(rc,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Ot(ct,{size:12})})]})]}),n&&Ot(nc,{ref:h,$duration:a,$type:e})]})},hc=Yt.div`
615
615
  padding: 24px 32px;
616
- `,hc=Yt.div`
616
+ `,mc=Yt.div`
617
617
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
618
- `,mc=Yt(Zi)`
618
+ `,gc=Yt(en)`
619
619
  font-size: 20px;
620
620
  line-height: 28px;
621
- `,gc=Yt(Zi)`
621
+ `,fc=Yt(en)`
622
622
  color: ${({theme:e})=>e.text.grey};
623
623
  width: 416px;
624
624
  font-style: normal;
625
625
  font-weight: 300;
626
626
  line-height: 24px;
627
- `,fc=Yt.div`
627
+ `,xc=Yt.div`
628
628
  display: flex;
629
629
  justify-content: space-between;
630
630
  gap: 12px;
631
- `,xc=Yt(Xs)`
631
+ `,yc=Yt(Gs)`
632
632
  width: 250px;
633
- `,yc=Yt.div`
633
+ `,bc=Yt.div`
634
634
  margin-bottom: 12px;
635
- `,bc=({isOpen:e,noOverlay:t,title:o="",description:r="",note:i,approveButton:n,denyButton:a,closeOnEscape:s=!0})=>{ll({key:"Enter",active:e&&s},()=>n.onClick());const l=()=>a.onClick();return Ot(Ml,{isOpen:e,noOverlay:t,onClose:l,children:Rt(uc,{children:[Ot(mc,{children:o}),Ot(hc,{$withNote:!!i,children:Ot(gc,{children:r})}),!!i&&Ot(yc,{children:Ot(pc,{type:i.type,title:i.title,message:i.message})}),Rt(fc,{children:[Ot(xc,{"data-id":"approve",variant:n.variant||"primary",onClick:()=>n.onClick(),children:n.text}),Ot(xc,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},$c=({isOpen:e,noOverlay:t,name:o,onApprove:r,onDeny:i})=>Ot(bc,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Go.Warning,onClick:r},denyButton:{text:"Go Back",onClick:i}}),vc=Yt.div`
635
+ `,$c=({isOpen:e,noOverlay:t,title:o="",description:r="",note:i,approveButton:n,denyButton:a,closeOnEscape:s=!0})=>{cl({key:"Enter",active:e&&s},()=>n.onClick());const l=()=>a.onClick();return Ot(Bl,{isOpen:e,noOverlay:t,onClose:l,children:Rt(hc,{children:[Ot(gc,{children:o}),Ot(mc,{$withNote:!!i,children:Ot(fc,{children:r})}),!!i&&Ot(bc,{children:Ot(uc,{type:i.type,title:i.title,message:i.message})}),Rt(xc,{children:[Ot(yc,{"data-id":"approve",variant:n.variant||"primary",onClick:()=>n.onClick(),children:n.text}),Ot(yc,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},vc=({isOpen:e,noOverlay:t,name:o,onApprove:r,onDeny:i})=>Ot($c,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Go.Warning,onClick:r},denyButton:{text:"Go Back",onClick:i}}),wc=Yt.div`
636
636
  display: flex;
637
637
  align-items: center;
638
638
  gap: 8px;
639
639
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
640
640
  opacity: ${({$disabled:e})=>e?.6:1};
641
- `,wc=Yt.div`
641
+ `,Sc=Yt.div`
642
642
  width: 18px;
643
643
  height: 18px;
644
644
  border-radius: 6px;
@@ -646,15 +646,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
646
646
  display: flex;
647
647
  align-items: center;
648
648
  justify-content: center;
649
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+_s["020"]};
649
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+Os["020"]};
650
650
  pointer-events: ${({$disabled:e})=>e?"none":"auto"};
651
651
  transition: border 0.3s;
652
652
  &:hover {
653
653
  border: 1px solid ${({theme:e})=>e.colors.secondary};
654
654
  }
655
- `,Sc=({title:e,titleColor:t,tooltip:o,value:r=!1,partiallyChecked:i=!1,onChange:n,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Zt(),[p,u]=Pt(r);Mt(()=>u(r),[r]);return Rt(Li,{children:[Rt(vc,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),n?n(!!i||!p):u(e=>!!i||!e))},style:s,children:[Ot(wc,{$isChecked:p,$isPartiallyChecked:i,$disabled:a,children:i?Ot(dt,{fill:d.text.white}):p?Ot(st,{fill:d.text.white}):null}),e&&Ot(Zl,{text:o,withIcon:!0,children:Ot(Zi,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&Ot(on,{children:l})]})},Cc=Yt(zi)`
655
+ `,Cc=({title:e,titleColor:t,tooltip:o,value:r=!1,partiallyChecked:i=!1,onChange:n,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Zt(),[p,u]=Pt(r);Mt(()=>u(r),[r]);return Rt(Pi,{children:[Rt(wc,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),n?n(!!i||!p):u(e=>!!i||!e))},style:s,children:[Ot(Sc,{$isChecked:p,$isPartiallyChecked:i,$disabled:a,children:i?Ot(dt,{fill:d.text.white}):p?Ot(st,{fill:d.text.white}):null}),e&&Ot(ec,{text:o,withIcon:!0,children:Ot(en,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&Ot(rn,{children:l})]})},kc=Yt(Li)`
656
656
  gap: 0;
657
- `,kc=Yt.button`
657
+ `,Ec=Yt.button`
658
658
  padding: 4px 8px;
659
659
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
660
660
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -666,22 +666,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
666
666
  &:hover {
667
667
  border: 1px solid ${({theme:e})=>e.colors.secondary};
668
668
  }
669
- `,Ec=({isPrettyMode:e,setIsPrettyMode:t})=>Rt(Cc,{children:[Ot(kc,{$position:"left",$selected:e,onClick:()=>t(!0),children:Ot(pt,{})}),Ot(kc,{$position:"right",$selected:!e,onClick:()=>t(!1),children:Ot(ut,{})})]}),Ac=Yt.table`
669
+ `,Ac=({isPrettyMode:e,setIsPrettyMode:t})=>Rt(kc,{children:[Ot(Ec,{$position:"left",$selected:e,onClick:()=>t(!0),children:Ot(pt,{})}),Ot(Ec,{$position:"right",$selected:!e,onClick:()=>t(!1),children:Ot(ut,{})})]}),Dc=Yt.table`
670
670
  border-collapse: collapse;
671
671
  font-family: ${({theme:e})=>e.font_family.primary};
672
- `,Dc=Yt.tbody``,Tc=Yt.tr`
672
+ `,Tc=Yt.tbody``,Nc=Yt.tr`
673
673
  td:first-child {
674
674
  padding-left: 0 !important;
675
675
  }
676
676
  td:last-child {
677
677
  padding-right: 0 !important;
678
678
  }
679
- `,Nc=Yt.td`
679
+ `,Ic=Yt.td`
680
680
  vertical-align: top;
681
681
  padding: 4px 6px;
682
- `,Ic=Yt(Zi)`
682
+ `,_c=Yt(en)`
683
683
  white-space: nowrap;
684
- `,_c=Yt.span`
684
+ `,Oc=Yt.span`
685
685
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
686
686
  overflow-wrap: break-word;
687
687
  word-break: break-word;
@@ -689,56 +689,56 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
689
689
  /* Fallback for older browsers */
690
690
  -ms-word-break: break-all;
691
691
  font-size: 12px;
692
- `,Oc=({language:e,code:t,theme:o,flatten:r,pretty:i})=>{const{darkMode:n}=Zt(),a=o?ho[o]:n?ho.palenight:ho.vsLight;let s="";if("json"===e){const e=di(t,{}),o=Di(e);s=Ti(r?Tr(o):o)}else s=t;return i&&"json"===e?Ot(Rc,{darkMode:n,str:s}):Ot(uo,{theme:a||(n?ho.palenight:ho.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:o})=>Ot("pre",{children:o.map((o,r)=>Ot("div",{...e({line:o}),children:o.map((e,o)=>Ot(_c,{...t({token:e})},`line-${r}-token-${o}`))},`line-${r}`))})})},Rc=({darkMode:e,str:t})=>{const o=Zt(),r=(e,t)=>{const r=new Array(e).fill(e=>Rt(Tc,{...e,children:[Ot(Nc,{}),Ot(Nc,{})]}));return Ot(zt,{children:r.map((e,r)=>Ot(e,{style:0===r?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${t}-${r}`))})};return Ot(uo,{theme:e?ho.palenight:ho.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:i})=>Ot(Ac,{children:Ot(Dc,{children:i.map((i,n)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],r=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(r.split("@")[0])&&(o[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:r}})})(i),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?Rt(zt,{children:[r(2,n),Rt(Tc,{...s,children:[Ot(Nc,{children:Ot(Ic,{children:a[0].content})}),Ot(Nc,{})]})]},`line-${n}`):2===a.length?Ot(Tc,{...s,children:a.map((e,r)=>{const{text:i,components:a}=((e,t)=>{const[o,...r]=e.split("@");return{text:o,components:r?.map((e,o)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return Ot(Zl,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return Ot("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let e=ri(i,t);return e||(e=ri(Go.Warning,t)),Ot(e,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===r;return Ot(Nc,{children:Rt(zi,{children:[Ot(zi,{children:a}),Ot(_c,{$noWrap:s,...t({token:e}),children:i})]})},`line-${n}-token-${r}`)})},`line-${n}`):(a.length,null)})})})})},Fc={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 zc(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return Fc[r]?{value:t,unit:r}:{value:t,unit:"px"}}function Lc(e){const t=zc(e);return`${t.value}${t.unit}`}const Pc=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Mc=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=zc(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:Lc(1.5),height:Lc(4),borderRadius:Lc(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Pc} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Bc=Yt.div`
692
+ `,Rc=({language:e,code:t,theme:o,flatten:r,pretty:i})=>{const{darkMode:n}=Zt(),a=o?ho[o]:n?ho.palenight:ho.vsLight;let s="";if("json"===e){const e=di(t,{}),o=Ti(e);s=Ni(r?Tr(o):o)}else s=t;return i&&"json"===e?Ot(Fc,{darkMode:n,str:s}):Ot(uo,{theme:a||(n?ho.palenight:ho.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:o})=>Ot("pre",{children:o.map((o,r)=>Ot("div",{...e({line:o}),children:o.map((e,o)=>Ot(Oc,{...t({token:e})},`line-${r}-token-${o}`))},`line-${r}`))})})},Fc=({darkMode:e,str:t})=>{const o=Zt(),r=(e,t)=>{const r=new Array(e).fill(e=>Rt(Nc,{...e,children:[Ot(Ic,{}),Ot(Ic,{})]}));return Ot(zt,{children:r.map((e,r)=>Ot(e,{style:0===r?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${t}-${r}`))})};return Ot(uo,{theme:e?ho.palenight:ho.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:i})=>Ot(Dc,{children:Ot(Tc,{children:i.map((i,n)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],r=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(r.split("@")[0])&&(o[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:r}})})(i),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?Rt(zt,{children:[r(2,n),Rt(Nc,{...s,children:[Ot(Ic,{children:Ot(_c,{children:a[0].content})}),Ot(Ic,{})]})]},`line-${n}`):2===a.length?Ot(Nc,{...s,children:a.map((e,r)=>{const{text:i,components:a}=((e,t)=>{const[o,...r]=e.split("@");return{text:o,components:r?.map((e,o)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return Ot(ec,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return Ot("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let e=ri(i,t);return e||(e=ri(Go.Warning,t)),Ot(e,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===r;return Ot(Ic,{children:Rt(Li,{children:[Ot(Li,{children:a}),Ot(Oc,{$noWrap:s,...t({token:e}),children:i})]})},`line-${n}-token-${r}`)})},`line-${n}`):(a.length,null)})})})})},zc={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 Lc(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return zc[r]?{value:t,unit:r}:{value:t,unit:"px"}}function Pc(e){const t=Lc(e);return`${t.value}${t.unit}`}const Mc=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Bc=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Lc(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:Pc(1.5),height:Pc(4),borderRadius:Pc(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Mc} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Uc=Yt.div`
693
693
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
694
694
  display: flex;
695
695
  align-items: center;
696
696
  justify-content: center;
697
- `,Uc=({extend:e,size:t=14,align:o="center"})=>Ot(Bc,{$align:o,children:Ot(ht,{size:t,rotate:e?180:0})}),jc=Yt.div`
697
+ `,jc=({extend:e,size:t=14,align:o="center"})=>Ot(Uc,{$align:o,children:Ot(ht,{size:t,rotate:e?180:0})}),Wc=Yt.div`
698
698
  border-radius: 24px;
699
- background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+_s["010"]:t===Go.Warning?e.text.warning+_s["010"]:e.colors.secondary+_s["005"]};
699
+ background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+Os["010"]:t===Go.Warning?e.text.warning+Os["010"]:e.colors.secondary+Os["005"]};
700
700
  &:hover {
701
- background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+_s["020"]:t===Go.Warning?e.text.warning+_s["020"]:e.colors.secondary+_s["010"]};
701
+ background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+Os["020"]:t===Go.Warning?e.text.warning+Os["020"]:e.colors.secondary+Os["010"]};
702
702
  }
703
703
  cursor: pointer;
704
704
  transition: background 0.3s;
705
- `,Wc=Yt.div`
705
+ `,Hc=Yt.div`
706
706
  display: flex;
707
707
  align-items: center;
708
708
  gap: 12px;
709
709
  padding: 12px 18px;
710
- `,Hc=Yt.div`
710
+ `,Xc=Yt.div`
711
711
  display: flex;
712
712
  flex-direction: column;
713
713
  gap: 8px;
714
714
  padding: 6px 18px 12px 18px;
715
- `,Xc=Yt.div`
715
+ `,Gc=Yt.div`
716
716
  display: flex;
717
717
  align-items: center;
718
718
  gap: 12px;
719
- `,Gc=Yt(Zi)`
719
+ `,Vc=Yt(en)`
720
720
  white-space: nowrap;
721
- `,Vc=Yt(Li)`
721
+ `,Kc=Yt(Pi)`
722
722
  width: 16px;
723
- `,Kc=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:r="Everything Successful"})=>{const i=Zt(),[n,a]=Pt(!1),s=Lt(()=>vi(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=Lt(()=>Rr(s),[s]);Mt(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Go.Error:p?Go.Warning:u?Go.Info:Go.Success,f=ri(g,i),x=c?t:p||u?o:m?"Loading...":r,y=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,$=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,v=Ut(()=>a(e=>!e),[]);return Rt(jc,{onClick:v,$status:g,children:[Rt(Wc,{children:[Ot(m?Mc:f,{}),Ot(Zi,{color:y,size:14,children:x}),Ot(Zi,{color:$,size:12,family:"secondary",children:b}),Ot(Uc,{extend:n,align:"right"})]}),n&&Ot(Hc,{children:s.map(({status:e,type:t,reason:o,message:r},n)=>{const a=e===Ko.Loading?()=>Ot(Mc,{scale:.8}):e===Ko.Disabled?ri(Go.Info,i):ri(e,i),s=e===Ko.Disabled?i.text.info:e===Go.Error?i.text.error:e===Go.Warning?i.text.warning:i.text.info,l=e===Ko.Disabled?i.text.info_secondary:e===Go.Error?i.text.error_secondary:e===Go.Warning?i.text.warning_secondary:i.text.info_secondary;return Rt(Xc,{children:[Ot(Vc,{children:Ot(a,{})}),Rt(Zi,{color:s,size:12,children:[Ot(Gc,{color:l,size:12,weight:700,children:t}),r||o]})]},`condition-${n}`)})})]})},qc=Yt.div`
723
+ `,qc=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:r="Everything Successful"})=>{const i=Zt(),[n,a]=Pt(!1),s=Lt(()=>vi(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=Lt(()=>Rr(s),[s]);Mt(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Go.Error:p?Go.Warning:u?Go.Info:Go.Success,f=ri(g,i),x=c?t:p||u?o:m?"Loading...":r,y=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,$=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,v=Ut(()=>a(e=>!e),[]);return Rt(Wc,{onClick:v,$status:g,children:[Rt(Hc,{children:[Ot(m?Bc:f,{}),Ot(en,{color:y,size:14,children:x}),Ot(en,{color:$,size:12,family:"secondary",children:b}),Ot(jc,{extend:n,align:"right"})]}),n&&Ot(Xc,{children:s.map(({status:e,type:t,reason:o,message:r},n)=>{const a=e===Ko.Loading?()=>Ot(Bc,{scale:.8}):e===Ko.Disabled?ri(Go.Info,i):ri(e,i),s=e===Ko.Disabled?i.text.info:e===Go.Error?i.text.error:e===Go.Warning?i.text.warning:i.text.info,l=e===Ko.Disabled?i.text.info_secondary:e===Go.Error?i.text.error_secondary:e===Go.Warning?i.text.warning_secondary:i.text.info_secondary;return Rt(Gc,{children:[Ot(Kc,{children:Ot(a,{})}),Rt(en,{color:s,size:12,children:[Ot(Vc,{color:l,size:12,weight:700,children:t}),r||o]})]},`condition-${n}`)})})]})},Jc=Yt.div`
724
724
  display: flex;
725
725
  align-items: center;
726
726
  gap: ${({$size:e})=>e/3}px;
727
727
  padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
728
728
  width: ${({$width:e})=>e||"fit-content"};
729
729
  border-radius: 360px;
730
- border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+_s["050"]}`:"none"};
731
- background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+_s["030"]} 100%)`:"transparent"};
732
- `,Jc=Yt.div`
730
+ border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+Os["050"]}`:"none"};
731
+ background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+Os["030"]} 100%)`:"transparent"};
732
+ `,Yc=Yt.div`
733
733
  display: flex;
734
734
  align-items: center;
735
- `,Yc=Yt.div`
735
+ `,Qc=Yt.div`
736
736
  display: flex;
737
737
  align-items: center;
738
- `,Qc=({title:e,subtitle:t,status:o=Go.Default,forceIcon:r,withIcon:i,withBorder:n,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Zt(),u=[Ko.Loading,Ko.Disabled].includes(o)?Go.Info:o,h=r?()=>Ot(r,{size:l+2,fill:p.text[u]}):o===Ko.Loading?()=>Ot(Mc,{scale:.8}):()=>ri(u,p)?.({size:l+2});return Rt(qc,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:n,$withBackground:a,children:[i&&Ot(Jc,{children:Ot(h,{})}),(!!e||!!t)&&Rt(Yc,{children:[!!e&&Ot(Zi,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&Ot(Ul,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&Ot(Zi,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Zc=({label:e,onClick:t,variant:o="tertiary",textProps:r,...i})=>{const n=Zt();return Rt(Xs,{onClick:t,variant:o,...i,children:[Ot(mt,{fill:"primary"===o?n.text.primary:n.text.info}),Ot(Zi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?n.text.primary:void 0,...r,children:e||Ar.ADD})]})},ed=Yt(zi)`
738
+ `,Zc=({title:e,subtitle:t,status:o=Go.Default,forceIcon:r,withIcon:i,withBorder:n,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Zt(),u=[Ko.Loading,Ko.Disabled].includes(o)?Go.Info:o,h=r?()=>Ot(r,{size:l+2,fill:p.text[u]}):o===Ko.Loading?()=>Ot(Bc,{scale:.8}):()=>ri(u,p)?.({size:l+2});return Rt(Jc,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:n,$withBackground:a,children:[i&&Ot(Yc,{children:Ot(h,{})}),(!!e||!!t)&&Rt(Qc,{children:[!!e&&Ot(en,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&Ot(jl,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&Ot(en,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},ed=({label:e,onClick:t,variant:o="tertiary",textProps:r,...i})=>{const n=Zt();return Rt(Gs,{onClick:t,variant:o,...i,children:[Ot(mt,{fill:"primary"===o?n.text.primary:n.text.info}),Ot(en,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?n.text.primary:void 0,...r,children:e||Ar.ADD})]})},td=Yt(Li)`
739
739
  width: 100%;
740
740
  border-radius: 8px;
741
- background-color: ${({theme:e})=>e.colors.secondary+_s["010"]};
741
+ background-color: ${({theme:e})=>e.colors.secondary+Os["010"]};
742
742
  pre {
743
743
  color: ${({theme:e})=>e.text.default};
744
744
  font-size: 12px;
@@ -746,7 +746,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
746
746
  width: 100%;
747
747
  padding-left: 12px;
748
748
  }
749
- `,td=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:r}=ol();return Rt(ed,{children:[Ot("pre",{children:e}),Ot(oc,{onClick:r=>{r.stopPropagation(),o(e),t?.()},tooltip:r?"Copied!":"Copy",children:Ot(r?st:lt,{})})]})},od=({label:e,onClick:t,variant:o="tertiary",...r})=>{const i=Zt();return Rt(Xs,{onClick:t,variant:o,...r,children:[Ot(gt,{fill:"primary"===o?i.text.primary:i.text.info}),Ot(Zi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0,children:e||Ar.EDIT})]})},rd=({onClick:e})=>Ot(pc,{type:Go.Default,icon:Ve,message:Er.QUICK_BACK_TO_SUMMARY,action:{label:Er.GO_TO_SUMMARY,onClick:e}}),id=Yt(Zi)`
749
+ `,od=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:r}=rl();return Rt(td,{children:[Ot("pre",{children:e}),Ot(rc,{onClick:r=>{r.stopPropagation(),o(e),t?.()},tooltip:r?"Copied!":"Copy",children:Ot(r?st:lt,{})})]})},rd=({label:e,onClick:t,variant:o="tertiary",...r})=>{const i=Zt();return Rt(Gs,{onClick:t,variant:o,...r,children:[Ot(gt,{fill:"primary"===o?i.text.primary:i.text.info}),Ot(en,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0,children:e||Ar.EDIT})]})},id=({onClick:e})=>Ot(uc,{type:Go.Default,icon:Ve,message:Er.QUICK_BACK_TO_SUMMARY,action:{label:Er.GO_TO_SUMMARY,onClick:e}}),nd=Yt(en)`
750
750
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
751
751
  white-space: nowrap;
752
752
  overflow-x: auto;
@@ -756,15 +756,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
756
756
  content: '';
757
757
  display: block;
758
758
  }
759
- `,nd=({maxWidth:e,text:t,textSize:o=16,textColor:r})=>{const[i,n]=Pt(!1),a=Bt(null);return Mt(()=>{if(a.current){const{clientWidth:t}=a.current;n(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),Rt(zi,{$gap:0,children:[t&&Ot(Zl,{text:i?t:void 0,children:Ot(id,{ref:a,$maxWidth:e-o,size:o,color:r,children:t})}),i&&Ot(id,{$maxWidth:o,size:o,color:r,children:"..."})]})},ad=({src:e="",alt:t="",size:o=16})=>{const[r,i]=Pt(!1);return e&&!r?Ot("img",{src:e,alt:t,width:o,height:o,onError:()=>i(!0)}):Ot(s,{size:o})},sd=Yt.div`
759
+ `,ad=({maxWidth:e,text:t,textSize:o=16,textColor:r})=>{const[i,n]=Pt(!1),a=Bt(null);return Mt(()=>{if(a.current){const{clientWidth:t}=a.current;n(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),Rt(Li,{$gap:0,children:[t&&Ot(ec,{text:i?t:void 0,children:Ot(nd,{ref:a,$maxWidth:e-o,size:o,color:r,children:t})}),i&&Ot(nd,{$maxWidth:o,size:o,color:r,children:"..."})]})},sd=({src:e="",alt:t="",size:o=16})=>{const[r,i]=Pt(!1);return e&&!r?Ot("img",{src:e,alt:t,width:o,height:o,onError:()=>i(!0)}):Ot(s,{size:o})},ld=Yt.div`
760
760
  display: flex;
761
761
  align-items: center;
762
762
  justify-content: center;
763
763
  width: ${({$size:e})=>e}px;
764
764
  height: ${({$size:e})=>e}px;
765
765
  border-radius: 8px;
766
- background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+_s["030"]} 100%)`}};
767
- `,ld=({icon:e,src:t="",alt:o="",status:r,size:i=36})=>Ot(sd,{$status:r,$size:i,children:t?Ot(ad,{src:t,alt:o,size:i-12}):Ot(e||s,{size:i-12})}),cd=Yt.div`
766
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Os["030"]} 100%)`}};
767
+ `,cd=({icon:e,src:t="",alt:o="",status:r,size:i=36})=>Ot(ld,{$status:r,$size:i,children:t?Ot(sd,{src:t,alt:o,size:i-12}):Ot(e||s,{size:i-12})}),dd=Yt.div`
768
768
  position: relative;
769
769
  display: flex;
770
770
  flex-wrap: wrap;
@@ -772,7 +772,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
772
772
  justify-content: center;
773
773
  width: ${({$size:e})=>e}px;
774
774
  height: ${({$size:e})=>e}px;
775
- `,dd=Yt.div`
775
+ `,pd=Yt.div`
776
776
  position: absolute;
777
777
  top: ${({$top:e})=>e}px;
778
778
  left: ${({$left:e})=>e}px;
@@ -783,73 +783,73 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
783
783
  width: ${({$size:e})=>e}px;
784
784
  height: ${({$size:e})=>e}px;
785
785
  border-radius: 100%;
786
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+_s["030"]};
787
- background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+_s["030"]} 100%)`}};
788
- `,pd=({icons:e=[],iconSrcs:t=[],status:o,size:r=36,id:i})=>{const n=Zt(),a=1===e.length||1===t.length?r-12:r/2.7;if(t.length>0)return Ot(pd,{icons:t.map(e=>()=>Ot(ad,{src:e,size:a})),status:o,size:r,id:i});if(1===e.length)return Ot(ld,{icon:e[0],status:o,size:r});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return Ot(cd,{$status:o,$size:r,children:e.map((t,r)=>r>2?null:Ot(dd,{$status:o,$size:1.5*a,$top:s(r),$left:l(r),$zIndex:r+1,children:2===r&&e.length>3?Rt(Zi,{family:"secondary",color:n.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Ot(t,{size:a})},`icon-${i}-${r}`))})},ud=is.map(({id:e})=>e),hd=({monitors:e=ud,withTooltips:t,withLabels:o,size:r=12,color:i})=>{const n=Zt(),a=i||n.text.grey;return Ot(zi,{$gap:o?r:r/2,children:e.map(e=>{const i=xo(e.toLowerCase()),n=Jr(e);return n?Ot(Zl,{text:t?i:"",children:Rt(zi,{$gap:r/3,children:[Ot(n,{size:o?r+2:r,fill:a}),o&&Ot(Zi,{size:r,color:a,children:i})]})},e):null})})},md=Yt.div`
786
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Os["030"]};
787
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Os["030"]} 100%)`}};
788
+ `,ud=({icons:e=[],iconSrcs:t=[],status:o,size:r=36,id:i})=>{const n=Zt(),a=1===e.length||1===t.length?r-12:r/2.7;if(t.length>0)return Ot(ud,{icons:t.map(e=>()=>Ot(sd,{src:e,size:a})),status:o,size:r,id:i});if(1===e.length)return Ot(cd,{icon:e[0],status:o,size:r});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return Ot(dd,{$status:o,$size:r,children:e.map((t,r)=>r>2?null:Ot(pd,{$status:o,$size:1.5*a,$top:s(r),$left:l(r),$zIndex:r+1,children:2===r&&e.length>3?Rt(en,{family:"secondary",color:n.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Ot(t,{size:a})},`icon-${i}-${r}`))})},hd=ns.map(({id:e})=>e),md=({monitors:e=hd,withTooltips:t,withLabels:o,size:r=12,color:i})=>{const n=Zt(),a=i||n.text.grey;return Ot(Li,{$gap:o?r:r/2,children:e.map(e=>{const i=xo(e.toLowerCase()),n=Jr(e);return n?Ot(ec,{text:t?i:"",children:Rt(Li,{$gap:r/3,children:[Ot(n,{size:o?r+2:r,fill:a}),o&&Ot(en,{size:r,color:a,children:i})]})},e):null})})},gd=Yt.div`
789
789
  visibility: hidden;
790
- `,gd=Yt.div`
790
+ `,fd=Yt.div`
791
791
  display: flex;
792
792
  flex-direction: column;
793
793
  align-self: stretch;
794
794
  padding: 16px;
795
795
  width: calc(100% - 32px);
796
796
  border-radius: 16px;
797
- background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+_s["010"]:e.colors.secondary+_s["005"])};
797
+ background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+Os["010"]:e.colors.secondary+Os["005"])};
798
798
  opacity: ${({$faded:e})=>e?.5:1};
799
799
 
800
800
  ${({theme:e,$status:t,$bgColorHover:o,$withClick:r})=>r?Qt`
801
801
  &:hover {
802
802
  cursor: pointer;
803
- background-color: ${o||(t?e.text[t]+_s["020"]:e.colors.secondary+_s["010"])};
804
- ${md} {
803
+ background-color: ${o||(t?e.text[t]+Os["020"]:e.colors.secondary+Os["010"])};
804
+ ${gd} {
805
805
  visibility: visible;
806
806
  }
807
807
  }
808
- `:`\n &:hover {\n ${md} {\n visibility: visible;\n }\n }\n `}
809
- `,fd=Yt.div`
808
+ `:`\n &:hover {\n ${gd} {\n visibility: visible;\n }\n }\n `}
809
+ `,xd=Yt.div`
810
810
  display: flex;
811
811
  align-items: center;
812
812
  gap: 8px;
813
813
  margin-left: auto;
814
- `,xd=Yt(Zi)`
814
+ `,yd=Yt(en)`
815
815
  margin-right: 16px;
816
- `,yd=Yt(Zi)`
816
+ `,bd=Yt(en)`
817
817
  font-size: 10px;
818
818
  color: ${({theme:e})=>e.text.grey};
819
- `,bd=({title:e,subTitle:t,hoverText:o,onClick:r,renderActions:i,iconProps:{icon:n,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:f,isCheckboxDisabled:x,isChecked:y,isLoading:b,onCheckboxChange:$}={},extendableProps:{withExtend:v,isExtended:w,renderExtended:S}={},...C})=>{const k=Zt(),[E,A]=Pt(w||!1),[D,T]=Pt(0),N=Bt(null),I=Bt(null),_=Bt(null);return Mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((f?125:85)+t))}},[f]),Rt(gd,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!r,onClick:r,...C,children:[Rt(zi,{$gap:8,children:[Rt(zi,{$gap:16,children:[b?Ot(Mc,{}):f?Ot(Sc,{value:y,onChange:$,disabled:x}):null,a?.length||l?.length?Ot(pd,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):n||s?Ot(ld,{icon:n,src:s,status:c}):null]}),Rt(Li,{$gap:4,children:[e&&Ot(nd,{maxWidth:D,text:e,textSize:14}),Rt(zi,{$gap:4,children:[t&&Ot(nd,{maxWidth:D-(_.current?.clientWidth||0),text:t,textSize:10,textColor:k.text.grey}),h&&h.length>0&&Rt(zi,{$gap:4,ref:_,children:[t&&Ot(yd,{children:"•"}),Ot(hd,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Ot(zi,{$gap:4,children:g?.map((e,t)=>Ot(zt,{children:e},`componentsUnderTitles-${t}`))}):null]}),Rt(fd,{ref:I,children:[!!o&&Ot(md,{children:Ot(xd,{size:14,family:"secondary",children:o})}),i&&i(),v&&Rt(zt,{children:[Ot(Ul,{orientation:"vertical",length:"16px",margin:"0 2px"}),Ot(oc,{onClick:()=>A(e=>!e),children:Ot(Uc,{extend:E})})]})]})]}),E&&S&&Rt(Li,{children:[Ot(Ul,{margin:"16px 0"}),S()]})]})},$d=Yt(zi)`
819
+ `,$d=({title:e,subTitle:t,hoverText:o,onClick:r,renderActions:i,iconProps:{icon:n,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:f,isCheckboxDisabled:x,isChecked:y,isLoading:b,onCheckboxChange:$}={},extendableProps:{withExtend:v,isExtended:w,renderExtended:S}={},...C})=>{const k=Zt(),[E,A]=Pt(w||!1),[D,T]=Pt(0),N=Bt(null),I=Bt(null),_=Bt(null);return Mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((f?125:85)+t))}},[f]),Rt(fd,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!r,onClick:r,...C,children:[Rt(Li,{$gap:8,children:[Rt(Li,{$gap:16,children:[b?Ot(Bc,{}):f?Ot(Cc,{value:y,onChange:$,disabled:x}):null,a?.length||l?.length?Ot(ud,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):n||s?Ot(cd,{icon:n,src:s,status:c}):null]}),Rt(Pi,{$gap:4,children:[e&&Ot(ad,{maxWidth:D,text:e,textSize:14}),Rt(Li,{$gap:4,children:[t&&Ot(ad,{maxWidth:D-(_.current?.clientWidth||0),text:t,textSize:10,textColor:k.text.grey}),h&&h.length>0&&Rt(Li,{$gap:4,ref:_,children:[t&&Ot(bd,{children:"•"}),Ot(md,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Ot(Li,{$gap:4,children:g?.map((e,t)=>Ot(zt,{children:e},`componentsUnderTitles-${t}`))}):null]}),Rt(xd,{ref:I,children:[!!o&&Ot(gd,{children:Ot(yd,{size:14,family:"secondary",children:o})}),i&&i(),v&&Rt(zt,{children:[Ot(jl,{orientation:"vertical",length:"16px",margin:"0 2px"}),Ot(rc,{onClick:()=>A(e=>!e),children:Ot(jc,{extend:E})})]})]})]}),E&&S&&Rt(Pi,{children:[Ot(jl,{margin:"16px 0"}),S()]})]})},vd=Yt(Li)`
820
820
  width: 100%;
821
821
  justify-content: space-between;
822
- `,vd=Yt(Zi)`
822
+ `,wd=Yt(en)`
823
823
  font-size: 12px;
824
824
  color: ${({theme:e})=>e.text.grey};
825
- `,wd=Yt(Zi)`
825
+ `,Sd=Yt(en)`
826
826
  font-size: 10px;
827
827
  color: ${({theme:e})=>e.text.darker_grey};
828
- `,Sd=Yt.div`
828
+ `,Cd=Yt.div`
829
829
  display: flex;
830
830
  align-items: center;
831
831
  gap: 8px;
832
832
  margin-left: auto;
833
- `,Cd=Yt(Zi)`
833
+ `,kd=Yt(en)`
834
834
  font-size: 12px;
835
835
  text-align: right;
836
- `,kd=({title:e,subTitle:t,tooltip:o,value:r})=>Rt($d,{children:[Ot(Li,{$gap:4,children:Rt(Zl,{text:o||"",children:[e&&Ot(vd,{children:e},"title"),t&&Ot(wd,{children:t},"subtitle")]})}),Ot(Sd,{children:r?.status?Ot(Qc,{status:"transitioning"===r.status?Ko.Loading:r.status,title:r.text||r.status,withBorder:!0,withIcon:!0}):Ot(Cd,{children:r?.text||"-"})})]}),Ed=Yt(Li)`
836
+ `,Ed=({title:e,subTitle:t,tooltip:o,value:r})=>Rt(vd,{children:[Ot(Pi,{$gap:4,children:Rt(ec,{text:o||"",children:[e&&Ot(wd,{children:e},"title"),t&&Ot(Sd,{children:t},"subtitle")]})}),Ot(Cd,{children:r?.status?Ot(Zc,{status:"transitioning"===r.status?Ko.Loading:r.status,title:r.text||r.status,withBorder:!0,withIcon:!0}):Ot(kd,{children:r?.text||"-"})})]}),Ad=Yt(Pi)`
837
837
  width: 100%;
838
- `,Ad=({containerName:e,actualDevices:t,started:o,ready:r,instrumentationInstances:i})=>{const n=Lt(()=>{const e=[];return o?.name&&e.push(Ot(Qc,{status:fi(o.value)?Ei(o.value)?Go.Success:Go.Error:Go.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),r?.name&&e.push(Ot(Qc,{status:fi(r.value)?Ei(r.value)?Go.Success:Go.Error:Go.Default,title:r.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[o?.name,o?.value,r?.name,r?.value]);return Ot(bd,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:n},renderActions:()=>Ot(Qc,{status:Go.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>Ot(Ed,{$gap:24,children:i.map((e,t)=>Rt(Ed,{$gap:8,children:[Ot(kd,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Go.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>Ot(kd,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},Dd=({title:e="Data not found",subTitle:t})=>{const o=Zt().v2.colors.grey[400];return Rt(Pi,{children:[Rt(zi,{$gap:8,children:[Ot(ft,{fill:o}),Ot(Ki,{size:Gi.XS,color:o,align:"center",children:e})]}),t&&Ot(Ki,{size:Gi.XXS,color:o,align:"center",children:t})]})},Td=Yt(Li)`
838
+ `,Dd=({containerName:e,actualDevices:t,started:o,ready:r,instrumentationInstances:i})=>{const n=Lt(()=>{const e=[];return o?.name&&e.push(Ot(Zc,{status:fi(o.value)?Ei(o.value)?Go.Success:Go.Error:Go.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),r?.name&&e.push(Ot(Zc,{status:fi(r.value)?Ei(r.value)?Go.Success:Go.Error:Go.Default,title:r.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[o?.name,o?.value,r?.name,r?.value]);return Ot($d,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:n},renderActions:()=>Ot(Zc,{status:Go.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>Ot(Ad,{$gap:24,children:i.map((e,t)=>Rt(Ad,{$gap:8,children:[Ot(Ed,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Go.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>Ot(Ed,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},Td=({title:e="Data not found",subTitle:t})=>{const o=Zt().v2.colors.grey[400];return Rt(Mi,{children:[Rt(Li,{$gap:8,children:[Ot(ft,{fill:o}),Ot(qi,{size:Vi.XS,color:o,align:"center",children:e})]}),t&&Ot(qi,{size:Vi.XXS,color:o,align:"center",children:t})]})},Nd=Yt(Pi)`
839
839
  max-width: 300px;
840
840
  padding: 12px;
841
841
  border-radius: 12px;
842
842
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
843
843
  justify-content: center;
844
- `,Nd=Xt(({id:e,data:t})=>{const{title:o,subTitle:r}=t;return Ot(Td,{"data-id":e,children:Ot(Dd,{title:o,subTitle:r})})});Nd.displayName=Nd.name;const Id=Yt.div`
844
+ `,Id=Xt(({id:e,data:t})=>{const{title:o,subTitle:r}=t;return Ot(Nd,{"data-id":e,children:Ot(Td,{title:o,subTitle:r})})});Id.displayName=Id.name;const _d=Yt.div`
845
845
  padding: 6px;
846
846
  border-radius: 12px;
847
847
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
848
848
  cursor: pointer;
849
849
  ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
850
- `,_d=Yt.div`
851
- position: relative;
852
850
  `,Od=Yt.div`
851
+ position: relative;
852
+ `,Rd=Yt.div`
853
853
  position: absolute;
854
854
  top: 100%;
855
855
  margin-top: 4px;
@@ -861,12 +861,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
861
861
  gap: 2px;
862
862
  width: 140px;
863
863
  text-align: center;
864
- `,Rd=Xt(({id:e,data:t})=>{const{id:o,status:r,title:i,icons:n,isVirtual:a}=t,s=Zt(),l=a||r!==Go.Error?null:ri(r,s);return Rt(Ft,{children:[Ot(oo,{type:"source",position:ro.Right,style:{visibility:"hidden"}}),Ot(oo,{type:"target",position:ro.Left,style:{visibility:"hidden"}}),Rt(_d,{"data-id":e,children:[Ot(Id,{$isVirtual:a,children:Ot(pd,{id:o,icons:n,status:a?void 0:r})}),Rt(Od,{children:[l&&Ot(l,{}),Ot(Zi,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:i})]})]})]})});Rd.displayName=Rd.name;const Fd={duration:300,padding:.1,includeHiddenNodes:!0},zd=Yt.div`
864
+ `,Fd=Xt(({id:e,data:t})=>{const{id:o,status:r,title:i,icons:n,isVirtual:a}=t,s=Zt(),l=a||r!==Go.Error?null:ri(r,s);return Rt(Ft,{children:[Ot(oo,{type:"source",position:ro.Right,style:{visibility:"hidden"}}),Ot(oo,{type:"target",position:ro.Left,style:{visibility:"hidden"}}),Rt(Od,{"data-id":e,children:[Ot(_d,{$isVirtual:a,children:Ot(ud,{id:o,icons:n,status:a?void 0:r})}),Rt(Rd,{children:[l&&Ot(l,{}),Ot(en,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:i})]})]})]})});Fd.displayName=Fd.name;const zd={duration:300,padding:.1,includeHiddenNodes:!0},Ld=Yt.div`
865
865
  height: 100%;
866
866
  .react-flow__attribution {
867
867
  visibility: hidden;
868
868
  }
869
- `,Ld=Yt.div`
869
+ `,Pd=Yt.div`
870
870
  button {
871
871
  padding: 8px;
872
872
  margin: 8px;
@@ -883,13 +883,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
883
883
  transform: scale(1.4);
884
884
  }
885
885
  }
886
- `,Pd={[Yo.MapItem]:Rd,[Yo.NoData]:Nd},Md=({trigger:e})=>{const{fitView:t}=lo(),o=Bt(!0);return Mt(()=>{o.current?o.current=!1:e>0&&requestAnimationFrame(()=>t(Fd))},[e,t]),null},Bd=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:r,fitViewTrigger:i=0,zoomOnScroll:n=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onRefresh:c})=>{const{onClickNode:d}=Js(),{setActiveNodeType:p,setActiveNodeId:u}=bn();return Rt(no,{zoomOnScroll:n,nodes:e,nodeTypes:Pd,edges:t,onNodeClick:d,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:o,onEdgesChange:r,onBlur:()=>{p(null),u(null)},children:[Ot(Md,{trigger:i}),Ot(Ld,{children:Ot(ao,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Fd,children:c&&Ot(so,{onClick:c,children:Ot(xt,{size:20})})})})]})},Ud=e=>Ot(zd,{children:Ot(io,{children:Ot(Bd,{...e})})}),jd=Yt.div`
886
+ `,Md={[Yo.MapItem]:Fd,[Yo.NoData]:Id},Bd=({trigger:e})=>{const{fitView:t}=lo(),o=Bt(!0);return Mt(()=>{o.current?o.current=!1:e>0&&requestAnimationFrame(()=>t(zd))},[e,t]),null},Ud=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:r,fitViewTrigger:i=0,zoomOnScroll:n=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onRefresh:c})=>{const{onClickNode:d}=Ys(),{setActiveNodeType:p,setActiveNodeId:u}=$n();return Rt(no,{zoomOnScroll:n,nodes:e,nodeTypes:Md,edges:t,onNodeClick:d,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:o,onEdgesChange:r,onBlur:()=>{p(null),u(null)},children:[Ot(Bd,{trigger:i}),Ot(Pd,{children:Ot(ao,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:zd,children:c&&Ot(so,{onClick:c,children:Ot(xt,{size:20})})})})]})},jd=e=>Ot(Ld,{children:Ot(io,{children:Ot(Ud,{...e})})}),Wd=Yt.div`
887
887
  display: flex;
888
888
 
889
889
  align-items: center;
890
890
  gap: 6px;
891
891
  margin-bottom: 4px;
892
- `,Wd=Yt(Zi)`
892
+ `,Hd=Yt(en)`
893
893
  font-size: 14px;
894
894
  opacity: 0.8;
895
895
  line-height: 22px;
@@ -897,16 +897,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
897
897
  white-space: nowrap;
898
898
  text-overflow: ellipsis;
899
899
  color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
900
- `,Hd=Yt(Zi)`
900
+ `,Xd=Yt(en)`
901
901
  font-size: 12px;
902
902
  color: ${({theme:e})=>e.text.darker_grey};
903
903
  opacity: 0.8;
904
- `,Xd=({title:e,required:t,tooltip:o,style:r,status:i})=>e?Ot(jd,{style:r,children:Rt(Zl,{text:o,withIcon:!0,children:[Ot(Wd,{$status:i,children:e}),!t&&Ot(Hd,{children:"(optional)"})]})}):null,Gd=Yt.div`
904
+ `,Gd=({title:e,required:t,tooltip:o,style:r,status:i})=>e?Ot(Wd,{style:r,children:Rt(ec,{text:o,withIcon:!0,children:[Ot(Hd,{$status:i,children:e}),!t&&Ot(Xd,{children:"(optional)"})]})}):null,Vd=Yt.div`
905
905
  display: flex;
906
906
  flex-direction: column;
907
907
  position: relative;
908
908
  width: 100%;
909
- `,Vd=Yt.div`
909
+ `,Kd=Yt.div`
910
910
  width: 100%;
911
911
  display: flex;
912
912
  align-items: center;
@@ -932,7 +932,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
932
932
  &:focus-within {
933
933
  border-color: ${({theme:e})=>e.colors.secondary};
934
934
  }
935
- `,Kd=Yt.input`
935
+ `,qd=Yt.input`
936
936
  padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
937
937
  flex: 1;
938
938
  min-width: 150px;
@@ -961,13 +961,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
961
961
  -webkit-appearance: none;
962
962
  margin: 0;
963
963
  }
964
- `,qd=Yt.div`
964
+ `,Jd=Yt.div`
965
965
  display: flex;
966
966
  align-items: center;
967
967
  margin-left: 12px;
968
- `,Jd=Yt(qd)`
968
+ `,Yd=Yt(Jd)`
969
969
  cursor: pointer;
970
- `,Yd=Yt.button`
970
+ `,Qd=Yt.button`
971
971
  background-color: ${({theme:e})=>e.colors.primary};
972
972
  border: none;
973
973
  color: ${({theme:e})=>e.text.secondary};
@@ -982,15 +982,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
982
982
  background-color: ${({theme:e})=>e.colors.border};
983
983
  cursor: not-allowed;
984
984
  }
985
- `,Qd=({icon:e,buttonLabel:t,onButtonClick:o,hasError:r,errorMessage:i,title:n,tooltip:a,required:s,value:l,onChange:c,type:d=Xo.Text,name:p,status:u,...h})=>{const m=Zt(),g=d===Xo.Password,[f,x]=Pt(!1);return Rt(Gd,{children:[Ot(Xd,{title:n,required:s,tooltip:a,status:u}),Rt(Vd,{$disabled:h.disabled,$hasError:r||!!i,$isActive:!!h.autoFocus,$status:u,children:[g?Ot(Jd,{onClick:()=>x(e=>!e),children:Ot(f?yt:bt,{size:14,fill:m.text.grey})}):e?Ot(qd,{children:Ot(e,{size:14,fill:m.text.grey})}):null,Ot(Kd,{"data-id":p,type:f||d===Xo.Number?Xo.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Xo.Number&&(e.target.value=ki(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&Ot(Yd,{onClick:o,disabled:h.disabled,children:t})]}),!!i&&Ot(on,{children:i})]})},Zd=Yt.div`
985
+ `,Zd=({icon:e,buttonLabel:t,onButtonClick:o,hasError:r,errorMessage:i,title:n,tooltip:a,required:s,value:l,onChange:c,type:d=Xo.Text,name:p,status:u,...h})=>{const m=Zt(),g=d===Xo.Password,[f,x]=Pt(!1);return Rt(Vd,{children:[Ot(Gd,{title:n,required:s,tooltip:a,status:u}),Rt(Kd,{$disabled:h.disabled,$hasError:r||!!i,$isActive:!!h.autoFocus,$status:u,children:[g?Ot(Yd,{onClick:()=>x(e=>!e),children:Ot(f?yt:bt,{size:14,fill:m.text.grey})}):e?Ot(Jd,{children:Ot(e,{size:14,fill:m.text.grey})}):null,Ot(qd,{"data-id":p,type:f||d===Xo.Number?Xo.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Xo.Number&&(e.target.value=ki(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&Ot(Qd,{onClick:o,disabled:h.disabled,children:t})]}),!!i&&Ot(rn,{children:i})]})},ep=Yt.div`
986
986
  display: flex;
987
987
  flex-direction: column;
988
988
  min-width: 120px;
989
989
  width: 100%;
990
990
  opacity: ${({$disabled:e})=>e?.5:1};
991
- `,ep=Yt.div`
992
- position: relative;
993
991
  `,tp=Yt.div`
992
+ position: relative;
993
+ `,op=Yt.div`
994
994
  display: flex;
995
995
  align-items: center;
996
996
  justify-content: space-between;
@@ -1016,14 +1016,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1016
1016
  &:hover {
1017
1017
  border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:r})=>o?"auto":e&&t?r.colors.border:r.colors.secondary};
1018
1018
  }
1019
- `,op=Yt.div`
1019
+ `,rp=Yt.div`
1020
1020
  display: flex;
1021
1021
  align-items: center;
1022
1022
  gap: 4px;
1023
- `,rp=({options:e,value:t,onSelect:o,onDeselect:r,title:i,tooltip:n,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=Pt(!1),[f,x]=Pt(!1),y=Bt(null);cl(y,()=>g(!1));const b=()=>{(()=>{if(y.current){const e=y.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},$=Array.isArray(t)?t.length:0;return Rt(Zd,{$disabled:s,children:[Ot(Xd,{title:i,required:d,tooltip:n,status:h}),Rt(ep,{ref:y,children:[Rt(tp,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Ot(sp,{value:t,placeholder:a,onDeselect:r}),Rt(op,{children:[l&&Ot(Us,{label:$,filled:!!$}),Ot(Uc,{extend:m})]})]}),m&&Ot(dp,{openUpwards:f,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{r?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Ot(on,{children:p})]})},ip=Yt(op)`
1023
+ `,ip=({options:e,value:t,onSelect:o,onDeselect:r,title:i,tooltip:n,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=Pt(!1),[f,x]=Pt(!1),y=Bt(null);dl(y,()=>g(!1));const b=()=>{(()=>{if(y.current){const e=y.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},$=Array.isArray(t)?t.length:0;return Rt(ep,{$disabled:s,children:[Ot(Gd,{title:i,required:d,tooltip:n,status:h}),Rt(tp,{ref:y,children:[Rt(op,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Ot(lp,{value:t,placeholder:a,onDeselect:r}),Rt(rp,{children:[l&&Ot(js,{label:$,filled:!!$}),Ot(jc,{extend:m})]})]}),m&&Ot(pp,{openUpwards:f,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{r?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Ot(rn,{children:p})]})},np=Yt(rp)`
1024
1024
  max-width: calc(100% - 50px);
1025
1025
  overflow-x: auto;
1026
- `,np=Yt(Zi)`
1026
+ `,ap=Yt(en)`
1027
1027
  display: flex;
1028
1028
  align-items: center;
1029
1029
  gap: 2px;
@@ -1038,7 +1038,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1038
1038
  transition: transform 0.3s;
1039
1039
  }
1040
1040
  }
1041
- `,ap=Yt(Zi)``,sp=({value:e,placeholder:t,onDeselect:o})=>{const r=Zt();return Array.isArray(e)?e.length?Ot(ip,{children:e.map(e=>Rt(np,{size:14,children:[e.value,Ot(Ul,{orientation:"vertical",length:"10px",margin:"0 4px"}),Ot(ct,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})]},`multi-label-${e.id}`))}):Ot(ap,{size:14,color:r.text.darker_grey,children:t}):Ot(ap,{size:14,color:e?.value?void 0:r.text.darker_grey,children:e?.value||t})},lp=Yt.div`
1041
+ `,sp=Yt(en)``,lp=({value:e,placeholder:t,onDeselect:o})=>{const r=Zt();return Array.isArray(e)?e.length?Ot(np,{children:e.map(e=>Rt(ap,{size:14,children:[e.value,Ot(jl,{orientation:"vertical",length:"10px",margin:"0 4px"}),Ot(ct,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})]},`multi-label-${e.id}`))}):Ot(sp,{size:14,color:r.text.darker_grey,children:t}):Ot(sp,{size:14,color:e?.value?void 0:r.text.darker_grey,children:e?.value||t})},cp=Yt.div`
1042
1042
  position: absolute;
1043
1043
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1044
1044
  left: 0;
@@ -1053,11 +1053,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1053
1053
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1054
1054
  border: 1px solid ${({theme:e})=>e.colors.border};
1055
1055
  border-radius: 24px;
1056
- `,cp=Yt.div`
1056
+ `,dp=Yt.div`
1057
1057
  display: flex;
1058
1058
  flex-direction: column;
1059
1059
  align-items: center;
1060
- `,dp=({openUpwards:e,options:t,value:o,onSelect:r,onDeselect:i,isMulti:n,showSearch:a})=>{const[s,l]=Pt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return Rt(lp,{$openUpwards:e,children:[a&&Rt(cp,{children:[Ot(Qd,{placeholder:"Search...",icon:$t,value:s,onChange:e=>l(e.target.value)}),Ot(Ul,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?Ot(Dd,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>Ot(up,{option:e,value:o,isMulti:n,onSelect:r,onDeselect:i},`dropdown-option-${e.id||t}`))]})},pp=Yt.div`
1060
+ `,pp=({openUpwards:e,options:t,value:o,onSelect:r,onDeselect:i,isMulti:n,showSearch:a})=>{const[s,l]=Pt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return Rt(cp,{$openUpwards:e,children:[a&&Rt(dp,{children:[Ot(Zd,{placeholder:"Search...",icon:$t,value:s,onChange:e=>l(e.target.value)}),Ot(jl,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?Ot(Td,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>Ot(hp,{option:e,value:o,isMulti:n,onSelect:r,onDeselect:i},`dropdown-option-${e.id||t}`))]})},up=Yt.div`
1061
1061
  padding: 8px 12px;
1062
1062
  cursor: pointer;
1063
1063
  display: flex;
@@ -1066,23 +1066,23 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1066
1066
  border-radius: 32px;
1067
1067
  &:hover,
1068
1068
  &.selected {
1069
- background: ${({theme:e})=>e.colors.majestic_blue+_s["024"]};
1069
+ background: ${({theme:e})=>e.colors.majestic_blue+Os["024"]};
1070
1070
  }
1071
- `,up=({option:e,value:t,isMulti:o,onSelect:r,onDeselect:i})=>{const n=Zt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?r?.(e):i?.(e);return o?Ot(pp,{className:a?"selected":"",onClick:()=>s(!a),children:Ot(Sc,{title:e.value||"",titleColor:n.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):Rt(pp,{className:a?"selected":"",onClick:()=>a?i?.(e):r?.(e),children:[Rt(zi,{$gap:8,children:[e.icon&&Ot(e.icon,{}),Ot(Zi,{size:14,children:e.value})]}),a&&Ot(st,{})]})},hp=Yt(Li)`
1071
+ `,hp=({option:e,value:t,isMulti:o,onSelect:r,onDeselect:i})=>{const n=Zt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?r?.(e):i?.(e);return o?Ot(up,{className:a?"selected":"",onClick:()=>s(!a),children:Ot(Cc,{title:e.value||"",titleColor:n.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):Rt(up,{className:a?"selected":"",onClick:()=>a?i?.(e):r?.(e),children:[Rt(Li,{$gap:8,children:[e.icon&&Ot(e.icon,{}),Ot(en,{size:14,children:e.value})]}),a&&Ot(st,{})]})},mp=Yt(Pi)`
1072
1072
  gap: 12px;
1073
- `,mp=Yt(zi)`
1073
+ `,gp=Yt(Li)`
1074
1074
  width: 100%;
1075
1075
  gap: 12px;
1076
1076
  align-items: flex-end;
1077
- `,gp=({clientX:e=0,flipX:t,clientY:o=0,flipY:r,isOpen:i,onClose:n,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Zt(),{popupRef:m,popupPosition:g,handlePosition:f}=pl({onClickOutside:n});return ll({key:"Enter",active:i},a),Mt(()=>f(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:Ot(Gl,{ref:m,isOpen:i,top:r?void 0:g.top,bottom:r?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:Rt(hp,{children:[Ot(Zl,{text:d,withIcon:!0,children:Ot(Zi,{size:14,children:c})}),Rt(mp,{children:[u,Rt(zi,{$gap:6,children:[Ot(oc,{withBorder:!0,onClick:n,tooltip:"Cancel",children:Ot(ct,{})}),Ot(oc,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Ot(st,{fill:h.text.primary})}),s&&Ot(oc,{onClick:l,tooltip:"Undo",children:Ot(vt,{})})]})]}),p&&Ot(pc,{type:Go.Warning,message:p})]})})},fp=Yt.div`
1077
+ `,fp=({clientX:e=0,flipX:t,clientY:o=0,flipY:r,isOpen:i,onClose:n,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Zt(),{popupRef:m,popupPosition:g,handlePosition:f}=ul({onClickOutside:n});return cl({key:"Enter",active:i},a),Mt(()=>f(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:Ot(Vl,{ref:m,isOpen:i,top:r?void 0:g.top,bottom:r?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:Rt(mp,{children:[Ot(ec,{text:d,withIcon:!0,children:Ot(en,{size:14,children:c})}),Rt(gp,{children:[u,Rt(Li,{$gap:6,children:[Ot(rc,{withBorder:!0,onClick:n,tooltip:"Cancel",children:Ot(ct,{})}),Ot(rc,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Ot(st,{fill:h.text.primary})}),s&&Ot(rc,{onClick:l,tooltip:"Undo",children:Ot(vt,{})})]})]}),p&&Ot(uc,{type:Go.Warning,message:p})]})})},xp=Yt.div`
1078
1078
  position: relative;
1079
- `,xp=({defaultLanguage:e=Bo.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:r})=>{const{tier:i}=yl(),{addNotification:n}=xs(),{formData:a,handleFormChange:s,resetFormData:l}=Gs({language:e,version:t,otelDistroName:o}),[c,d]=Pt(!1),p=()=>{d(!1),l()},u=Lt(()=>{if(!a.language)return[];const e=ss[a.language].community,t=i===Lo.Onprem?ss[a.language].enterprise:[];return e.concat(t)},[a.language,i]);return Rt(fp,{children:[Ot(oc,{tooltip:Er.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Ot(gt,{})}),Ot(gp,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||bi(a.version)?(await r({...a}),p()):n({type:Go.Warning,message:kr.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await r({language:null,version:"",otelDistroName:null}),p()},title:Er.OVERRIDE_RUNTIME_DETAILS,warning:Er.OVERRIDE_RUNTIME_WARNING,children:Rt(Li,{$gap:12,children:[Rt(zi,{$gap:12,children:[Ot(rp,{title:Er.LANGUAGE,options:as,value:as.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Ot(Qd,{title:Er.RUNTIME_VERSION,placeholder:Er.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Ot(rp,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},yp=Yt(zi)`
1079
+ `,yp=({defaultLanguage:e=Bo.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:r})=>{const{tier:i}=bl(),{addNotification:n}=ys(),{formData:a,handleFormChange:s,resetFormData:l}=Vs({language:e,version:t,otelDistroName:o}),[c,d]=Pt(!1),p=()=>{d(!1),l()},u=Lt(()=>{if(!a.language)return[];const e=ls[a.language].community,t=i===Lo.Onprem?ls[a.language].enterprise:[];return e.concat(t)},[a.language,i]);return Rt(xp,{children:[Ot(rc,{tooltip:Er.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Ot(gt,{})}),Ot(fp,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||bi(a.version)?(await r({...a}),p()):n({type:Go.Warning,message:kr.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await r({language:null,version:"",otelDistroName:null}),p()},title:Er.OVERRIDE_RUNTIME_DETAILS,warning:Er.OVERRIDE_RUNTIME_WARNING,children:Rt(Pi,{$gap:12,children:[Rt(Li,{$gap:12,children:[Ot(ip,{title:Er.LANGUAGE,options:ss,value:ss.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Ot(Zd,{title:Er.RUNTIME_VERSION,placeholder:Er.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Ot(ip,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},bp=Yt(Li)`
1080
1080
  width: 100%;
1081
1081
  justify-content: center;
1082
- `,bp=({containerName:e,language:t,runtimeVersion:o,overriden:r,instrumented:i,instrumentationMessage:n,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Zt(),c=i?Go.Success:n?Go.Info:Go.Warning,d=i?Vo.INSTRUMENTED:n?Vo.NOT_INSTRUMENTED:Vo.INSTRUMENTING;return Ot(bd,{title:e,subTitle:`${t?ns[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:zr(t)},extendableProps:{isExtended:!!n,renderExtended:()=>Ot(yp,{children:Ot(Zi,{size:12,family:"secondary",color:l.text.info,children:$i(n)})})},renderActions:()=>Rt(Ft,{children:[Ot(Qc,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),r&&Ot(Qc,{status:Go.Default,forceIcon:wt,title:Er.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Ot(xp,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},$p=Yt.tr`
1082
+ `,$p=({containerName:e,language:t,runtimeVersion:o,overriden:r,instrumented:i,instrumentationMessage:n,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Zt(),c=i?Go.Success:n?Go.Info:Go.Warning,d=i?Vo.INSTRUMENTED:n?Vo.NOT_INSTRUMENTED:Vo.INSTRUMENTING;return Ot($d,{title:e,subTitle:`${t?as[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:zr(t)},extendableProps:{isExtended:!!n,renderExtended:()=>Ot(bp,{children:Ot(en,{size:12,family:"secondary",color:l.text.info,children:$i(n)})})},renderActions:()=>Rt(Ft,{children:[Ot(Zc,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),r&&Ot(Zc,{status:Go.Default,forceIcon:wt,title:Er.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Ot(yp,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},vp=Yt.tr`
1083
1083
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1084
1084
  opacity: ${({$faded:e})=>e?.5:1};
1085
- `,vp=Yt.td`
1085
+ `,wp=Yt.td`
1086
1086
  position: relative;
1087
1087
  width: fit-content;
1088
1088
  padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
@@ -1090,7 +1090,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1090
1090
  font-family: ${({theme:e})=>e.font_family.primary};
1091
1091
  font-size: 14px;
1092
1092
  white-space: nowrap;
1093
- `,wp=Yt(Zi)`
1093
+ `,Sp=Yt(en)`
1094
1094
  font-size: 14px;
1095
1095
  color: ${({$color:e,theme:t})=>e??t.text.secondary};
1096
1096
  line-height: 16px;
@@ -1103,7 +1103,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1103
1103
  display: -webkit-box;
1104
1104
  -webkit-line-clamp: 2;
1105
1105
  -webkit-box-orient: vertical;
1106
- `,Sp=Yt.div`
1106
+ `,Cp=Yt.div`
1107
1107
  position: absolute;
1108
1108
  top: 0;
1109
1109
  left: 0;
@@ -1111,57 +1111,57 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1111
1111
  width: ${({$width:e})=>e}px;
1112
1112
  height: ${({$height:e})=>e}px;
1113
1113
  border-radius: 16px;
1114
- background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+_s["020"]:e.colors.majestic_blue+_s["030"]:o?e.text[o]+_s["010"]:e.colors.secondary+_s["005"]};
1115
- `,Cp=({index:e,columns:t,cells:o,onClick:r,status:i,faded:n})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Qs(),[c,d]=Pt(!1);return Ot($p,{ref:a,onMouseEnter:()=>!!r&&d(!0),onMouseLeave:()=>!!r&&d(!1),onClick:()=>!!r&&r(),$withHover:!!r,$faded:n,children:t.map(({key:t},r)=>{const n=o.find(({columnKey:e})=>e===t);if(!n)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=n;return Rt(vp,{$isFirst:0===r,children:[u?Ot(ld,{icon:u}):h?Ot(h,{}):Ot(Zl,{text:p&&a?String(a):"",children:Ot(wp,{$color:d,children:hi(a)?"-":a})}),0===r&&Ot(Sp,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i})]},`table-row-${t}-${a}-${e}-${r}`)})})},kp=Yt.div`
1114
+ background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+Os["020"]:e.colors.majestic_blue+Os["030"]:o?e.text[o]+Os["010"]:e.colors.secondary+Os["005"]};
1115
+ `,kp=({index:e,columns:t,cells:o,onClick:r,status:i,faded:n})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Zs(),[c,d]=Pt(!1);return Ot(vp,{ref:a,onMouseEnter:()=>!!r&&d(!0),onMouseLeave:()=>!!r&&d(!1),onClick:()=>!!r&&r(),$withHover:!!r,$faded:n,children:t.map(({key:t},r)=>{const n=o.find(({columnKey:e})=>e===t);if(!n)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=n;return Rt(wp,{$isFirst:0===r,children:[u?Ot(cd,{icon:u}):h?Ot(h,{}):Ot(ec,{text:p&&a?String(a):"",children:Ot(Sp,{$color:d,children:hi(a)?"-":a})}),0===r&&Ot(Cp,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i})]},`table-row-${t}-${a}-${e}-${r}`)})})},Ep=Yt.div`
1116
1116
  width: 100%;
1117
- `,Ep=Yt.table`
1117
+ `,Ap=Yt.table`
1118
1118
  position: relative;
1119
1119
  z-index: 0;
1120
1120
  width: 100%;
1121
1121
  border-collapse: separate;
1122
1122
  border-spacing: 0 12px;
1123
- `,Ap=Yt.thead`
1123
+ `,Dp=Yt.thead`
1124
1124
  // only supported with "border-collapse: collapse;"
1125
1125
  // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1126
1126
  // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1127
- `,Dp=Yt.th`
1127
+ `,Tp=Yt.th`
1128
1128
  // only required with "border-collapse: separate;"
1129
1129
  border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1130
1130
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1131
1131
 
1132
1132
  padding: 8px;
1133
- `,Tp=Yt(zi)`
1133
+ `,Np=Yt(Li)`
1134
1134
  cursor: pointer;
1135
1135
  &:hover {
1136
1136
  * {
1137
1137
  color: ${({theme:e})=>e.text.secondary};
1138
1138
  }
1139
1139
  }
1140
- `,Np=Yt(Zi)`
1140
+ `,Ip=Yt(en)`
1141
1141
  color: ${({theme:e})=>e.text.darker_grey};
1142
1142
  font-family: ${({theme:e})=>e.font_family.secondary};
1143
1143
  text-transform: uppercase;
1144
1144
  font-size: 12px;
1145
1145
  font-weight: 500;
1146
1146
  text-wrap: nowrap;
1147
- `,Ip=Yt.tbody``,_p=({columns:e,rows:t})=>{const[o,r]=Pt(zo.Ascending),[i,n]=Pt("name"),a=Ut(e=>{i===e?r(e=>e===zo.Ascending?zo.Descending:zo.Ascending):(n(e),r(zo.Ascending))},[i]),s=Lt(()=>{const r=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const n=r(e,i),a=r(t,i);return(o===zo.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,a)}):t).map(({status:t,faded:o,cells:r,onClick:i},n)=>Ot(Cp,{index:n,columns:e,cells:r,onClick:i,status:t,faded:o},`row-${n}`))},[e,t,i,o]);return Ot(kp,{children:Rt(Ep,{children:[Ot(Ap,{children:Ot("tr",{children:e.map(({key:e,title:t,sortable:o})=>Ot(Dp,{children:o?Rt(Tp,{onClick:()=>a(e),children:[Ot(St,{}),Ot(Np,{children:t})]}):Ot(Np,{children:t})},`column-${e}`))})}),Ot(Ip,{children:s})]})})};var Op;!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"}(Op||(Op={}));const Rp=Yt.div`
1147
+ `,_p=Yt.tbody``,Op=({columns:e,rows:t})=>{const[o,r]=Pt(zo.Ascending),[i,n]=Pt("name"),a=Ut(e=>{i===e?r(e=>e===zo.Ascending?zo.Descending:zo.Ascending):(n(e),r(zo.Ascending))},[i]),s=Lt(()=>{const r=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const n=r(e,i),a=r(t,i);return(o===zo.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,a)}):t).map(({status:t,faded:o,cells:r,onClick:i},n)=>Ot(kp,{index:n,columns:e,cells:r,onClick:i,status:t,faded:o},`row-${n}`))},[e,t,i,o]);return Ot(Ep,{children:Rt(Ap,{children:[Ot(Dp,{children:Ot("tr",{children:e.map(({key:e,title:t,sortable:o})=>Ot(Tp,{children:o?Rt(Np,{onClick:()=>a(e),children:[Ot(St,{}),Ot(Ip,{children:t})]}):Ot(Ip,{children:t})},`column-${e}`))})}),Ot(_p,{children:s})]})})};var Rp;!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"}(Rp||(Rp={}));const Fp=Yt.div`
1148
1148
  display: flex;
1149
1149
  flex-wrap: wrap;
1150
1150
  gap: 16px 32px;
1151
1151
  width: 100%;
1152
- `,Fp=Yt.div`
1152
+ `,zp=Yt.div`
1153
1153
  display: flex;
1154
1154
  flex-direction: column;
1155
1155
  gap: 2px;
1156
1156
  width: ${({$width:e})=>e};
1157
- `,zp=Yt(Zi)`
1157
+ `,Lp=Yt(en)`
1158
1158
  color: ${({theme:e})=>e.text.grey};
1159
1159
  font-size: 10px;
1160
1160
  line-height: 16px;
1161
- `,Lp=Yt(Zi)`
1161
+ `,Pp=Yt(en)`
1162
1162
  font-size: 12px;
1163
1163
  white-space: pre-wrap;
1164
- `,Pp=({data:e})=>Ot(Rp,{children:e?.map(({type:e,title:t,titleIcon:o,tooltip:r,value:i},n)=>Rt(Fp,{$width:e&&[Op.Code,Op.Table].includes(e)?"inherit":e&&[Op.Loader,Op.Divider,Op.CopyText].includes(e)?"100%":"unset",children:[Ot(Zl,{text:r,withIcon:!0,children:Rt(zi,{$alignItems:"center",$gap:4,children:[o&&Ot(o,{size:14}),!!t&&Ot(zp,{transform:"capitalize",children:t})]})}),Ot(Mp,{type:e,value:i})]},`data-field-${t||(i?JSON.stringify(i):n)}`))}),Mp=({type:e,value:t})=>{const o=Zt();switch(e){case Op.Divider:return Ot(Ul,{length:"100%",margin:"0"});case Op.Loader:return Ot(Pi,{children:Ot(Mc,{scale:1.2})});case Op.Monitors:return Ot(hd,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Op.Badge:{const{label:e,filled:o,...r}=di(t,{label:"-",filled:!1});return Ot(Us,{label:e,filled:o,...r})}case Op.Code:{const{language:e,code:o,...r}=di(t,{language:"",code:""});return Ot(Oc,{language:e,code:o,...r})}case Op.Table:{const{columns:e,rows:o,...r}=di(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Ot(_p,{columns:e,rows:o,...r})}case Op.ActiveStatus:return Ot(Qc,{status:"true"==t?Go.Success:Go.Error,title:"true"==t?Er.ENABLED:Er.DISABLED,size:10,withIcon:!0,withBorder:!0});case Op.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Ot(td,{value:e})}default:return Ot(Lp,{children:Ai("string"==typeof t?t||"-":"")})}},Bp=Yt.div`
1164
+ `,Mp=({data:e})=>Ot(Fp,{children:e?.map(({type:e,title:t,titleIcon:o,tooltip:r,value:i},n)=>Rt(zp,{$width:e&&[Rp.Code,Rp.Table].includes(e)?"inherit":e&&[Rp.Loader,Rp.Divider,Rp.CopyText].includes(e)?"100%":"unset",children:[Ot(ec,{text:r,withIcon:!0,children:Rt(Li,{$alignItems:"center",$gap:4,children:[o&&Ot(o,{size:14}),!!t&&Ot(Lp,{transform:"capitalize",children:t})]})}),Ot(Bp,{type:e,value:i})]},`data-field-${t||(i?JSON.stringify(i):n)}`))}),Bp=({type:e,value:t})=>{const o=Zt();switch(e){case Rp.Divider:return Ot(jl,{length:"100%",margin:"0"});case Rp.Loader:return Ot(Mi,{children:Ot(Bc,{scale:1.2})});case Rp.Monitors:return Ot(md,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Rp.Badge:{const{label:e,filled:o,...r}=di(t,{label:"-",filled:!1});return Ot(js,{label:e,filled:o,...r})}case Rp.Code:{const{language:e,code:o,...r}=di(t,{language:"",code:""});return Ot(Rc,{language:e,code:o,...r})}case Rp.Table:{const{columns:e,rows:o,...r}=di(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Ot(Op,{columns:e,rows:o,...r})}case Rp.ActiveStatus:return Ot(Zc,{status:"true"==t?Go.Success:Go.Error,title:"true"==t?Er.ENABLED:Er.DISABLED,size:10,withIcon:!0,withBorder:!0});case Rp.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Ot(od,{value:e})}default:return Ot(Pp,{children:Ai("string"==typeof t?t||"-":"")})}},Up=Yt.div`
1165
1165
  display: flex;
1166
1166
  flex-direction: column;
1167
1167
  align-items: flex-start;
@@ -1170,90 +1170,90 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1170
1170
  padding: 24px;
1171
1171
  border-radius: 24px;
1172
1172
  border: 1px solid ${({theme:e})=>e.colors.border};
1173
- background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+_s["010"]:"transparent"};
1173
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Os["010"]:"transparent"};
1174
1174
  transition: background-color 0.3s;
1175
- `,Up=Yt.div`
1175
+ `,jp=Yt.div`
1176
1176
  width: 100%;
1177
1177
  display: flex;
1178
1178
  flex-direction: column;
1179
1179
  gap: 4px;
1180
1180
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
1181
- `,jp=Yt(Zi)`
1181
+ `,Wp=Yt(en)`
1182
1182
  width: 100%;
1183
1183
  display: flex;
1184
1184
  align-items: center;
1185
1185
  gap: 8px;
1186
1186
  font-size: 16px;
1187
- `,Wp=Yt(Zi)`
1187
+ `,Hp=Yt(en)`
1188
1188
  font-size: 12px;
1189
1189
  color: ${({theme:e})=>e.text.grey};
1190
- `,Hp=Yt(zi)`
1190
+ `,Xp=Yt(Li)`
1191
1191
  margin-left: auto;
1192
1192
  gap: 8px;
1193
- `,Xp=({title:e="Details",titleBadge:t,titleIcon:o,description:r,action:i,withExtend:n,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=Pt(a),[p,u]=Pt(!1);return Rt(Bp,{$hovered:p,children:[e||o||r||i?Rt(Up,{$clickable:n||!1,onClick:()=>n&&d(e=>!e),onMouseEnter:()=>n&&u(!0),onMouseLeave:()=>n&&u(!1),children:[Rt(zi,{children:[Rt(zi,{$alignItems:"center",$gap:8,children:[o&&Ot(zi,{$alignItems:"center",children:Ot(o,{size:20})}),!!e&&Ot(jp,{transform:"capitalize",children:e}),t===Ko.Loading?Ot(Mc,{}):void 0!==t&&Ot(Us,{label:t})]}),(!!i||n)&&Rt(Hp,{children:["function"==typeof i?Ot(i,{hovered:p}):i,n&&Ot(Uc,{extend:c})]})]}),!!r&&Ot(Wp,{children:r})]}):null,(!n||n&&c)&&(l||Ot(Pp,{data:s}))]})},Gp=Yt.div`
1193
+ `,Gp=({title:e="Details",titleBadge:t,titleIcon:o,description:r,action:i,withExtend:n,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=Pt(a),[p,u]=Pt(!1);return Rt(Up,{$hovered:p,children:[e||o||r||i?Rt(jp,{$clickable:n||!1,onClick:()=>n&&d(e=>!e),onMouseEnter:()=>n&&u(!0),onMouseLeave:()=>n&&u(!1),children:[Rt(Li,{children:[Rt(Li,{$alignItems:"center",$gap:8,children:[o&&Ot(Li,{$alignItems:"center",children:Ot(o,{size:20})}),!!e&&Ot(Wp,{transform:"capitalize",children:e}),t===Ko.Loading?Ot(Bc,{}):void 0!==t&&Ot(js,{label:t})]}),(!!i||n)&&Rt(Xp,{children:["function"==typeof i?Ot(i,{hovered:p}):i,n&&Ot(jc,{extend:c})]})]}),!!r&&Ot(Hp,{children:r})]}):null,(!n||n&&c)&&(l||Ot(Mp,{data:s}))]})},Vp=Yt.div`
1194
1194
  visibility: hidden;
1195
- `,Vp=Yt(zi)`
1195
+ `,Kp=Yt(Li)`
1196
1196
  align-self: stretch;
1197
1197
  width: calc(100% - 32px);
1198
1198
  padding: 16px;
1199
1199
  border-radius: 16px;
1200
- background-color: ${({theme:e})=>e.colors.secondary+_s["005"]};
1200
+ background-color: ${({theme:e})=>e.colors.secondary+Os["005"]};
1201
1201
  ${({theme:e,$withClick:t})=>t?Qt`
1202
1202
  &:hover {
1203
1203
  cursor: pointer;
1204
- background-color: ${e.colors.secondary+_s["010"]};
1205
- ${Gp} {
1204
+ background-color: ${e.colors.secondary+Os["010"]};
1205
+ ${Vp} {
1206
1206
  visibility: visible;
1207
1207
  }
1208
1208
  }
1209
- `:`\n &:hover {\n ${Gp} {\n visibility: visible;\n }\n }\n `}
1210
- `,Kp=Yt(zi)`
1209
+ `:`\n &:hover {\n ${Vp} {\n visibility: visible;\n }\n }\n `}
1210
+ `,qp=Yt(Li)`
1211
1211
  margin-left: auto;
1212
1212
  gap: 8px;
1213
- `,qp=Yt(Zi)`
1213
+ `,Jp=Yt(en)`
1214
1214
  font-size: 10px;
1215
1215
  color: ${({theme:e})=>e.text.grey};
1216
- `,Jp=({title:e,subTitle:t,icons:o,iconSrcs:r,onClick:i,renderActions:n})=>{const a=Zt(),[s,l]=Pt(0),c=Bt(null),d=Bt(null);return Mt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),Rt(Vp,{ref:c,$gap:8,$withClick:!!i,onClick:i,children:[Ot(pd,{id:`${e}-${t}`,icons:o,iconSrcs:r}),e&&Ot(nd,{maxWidth:s/2,text:e,textSize:14}),e&&t&&Ot(qp,{children:"•"}),t&&Ot(nd,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),Ot(Kp,{ref:d,children:n&&Rt(Ft,{children:[Ot(Ul,{orientation:"vertical",length:"24px",margin:"0"}),n()]})})]})},Yp=({isOpen:e,noOverlay:t,name:o,type:r,isLastItem:i,onApprove:n,onDeny:a})=>{const s=r===jo.Source?"uninstrument":"delete";return Ot(bc,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:Go.Warning,title:`You're about to ${s} the last ${r||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:n},denyButton:{text:"Go Back",onClick:a}})},Qp=Yt(Xs)`
1216
+ `,Yp=({title:e,subTitle:t,icons:o,iconSrcs:r,onClick:i,renderActions:n})=>{const a=Zt(),[s,l]=Pt(0),c=Bt(null),d=Bt(null);return Mt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),Rt(Kp,{ref:c,$gap:8,$withClick:!!i,onClick:i,children:[Ot(ud,{id:`${e}-${t}`,icons:o,iconSrcs:r}),e&&Ot(ad,{maxWidth:s/2,text:e,textSize:14}),e&&t&&Ot(Jp,{children:"•"}),t&&Ot(ad,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),Ot(qp,{ref:d,children:n&&Rt(Ft,{children:[Ot(jl,{orientation:"vertical",length:"24px",margin:"0"}),n()]})})]})},Qp=({isOpen:e,noOverlay:t,name:o,type:r,isLastItem:i,onApprove:n,onDeny:a})=>{const s=r===jo.Source?"uninstrument":"delete";return Ot($c,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:Go.Warning,title:`You're about to ${s} the last ${r||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:n},denyButton:{text:"Go Back",onClick:a}})},Zp=Yt(Gs)`
1217
1217
  display: flex;
1218
1218
  align-items: center;
1219
1219
  justify-content: center;
1220
1220
  font-size: 14px;
1221
1221
  gap: 6px;
1222
1222
  min-width: 100px;
1223
- `,Zp=({endpoint:e="/",variant:t="secondary"})=>Rt(Qp,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Ot(Ct,{size:18}),"Docs"]}),eu=Yt(zi)`
1223
+ `,eu=({endpoint:e="/",variant:t="secondary"})=>Rt(Zp,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Ot(Ct,{size:18}),"Docs"]}),tu=Yt(Li)`
1224
1224
  border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1225
- `,tu=Yt.div`
1225
+ `,ou=Yt.div`
1226
1226
  display: flex;
1227
1227
  align-items: center;
1228
1228
  border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1229
1229
  cursor: pointer;
1230
- `,ou=Yt(Zi)`
1230
+ `,ru=Yt(en)`
1231
1231
  padding: 12px;
1232
1232
  font-size: 14px;
1233
1233
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1234
- `,ru=({tabs:e,hideBorder:t=!1})=>e?.length?Ot(eu,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:o,selected:r})=>Rt(tu,{onClick:o,$selected:r,children:[Ot(ou,{$selected:r,children:e}),t&&Ot(t,{})]},`tab-${e}`))}):null,iu=Yt.section`
1234
+ `,iu=({tabs:e,hideBorder:t=!1})=>e?.length?Ot(tu,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:o,selected:r})=>Rt(ou,{onClick:o,$selected:r,children:[Ot(ru,{$selected:r,children:e}),t&&Ot(t,{})]},`tab-${e}`))}):null,nu=Yt.section`
1235
1235
  padding: 0px 32px;
1236
1236
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1237
- `,nu=Yt.div`
1237
+ `,au=Yt.div`
1238
1238
  height: 76px;
1239
1239
  display: flex;
1240
1240
  justify-content: space-between;
1241
1241
  flex-shrink: 0;
1242
1242
  align-self: stretch;
1243
- `,au=Yt.div`
1243
+ `,su=Yt.div`
1244
1244
  display: flex;
1245
1245
  align-items: center;
1246
1246
  gap: ${({$gap:e})=>e||16}px;
1247
- `,su=Yt(Zi)`
1247
+ `,lu=Yt(en)`
1248
1248
  font-size: 18px;
1249
1249
  line-height: 26px;
1250
1250
  max-width: ${({$maxWidth:e})=>e};
1251
1251
  overflow: hidden;
1252
1252
  white-space: nowrap;
1253
1253
  text-overflow: ellipsis;
1254
- `,lu=Yt(Xs)`
1254
+ `,cu=Yt(Gs)`
1255
1255
  gap: 8px;
1256
- `,cu=Yt(Xs)``,du=({onClose:e,width:t,icons:o,iconSrcs:r,title:i,titleTooltip:n,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>Rt(iu,{children:[Rt(nu,{children:[Rt(au,{children:[o?.length||r?.length?Ot(pd,{icons:o,iconSrcs:r,id:`drawer-header-${i}`}):null,("function"==typeof a?Ot(a,{}):a||null)||Ot(Zl,{text:n||i,withIcon:!!n,children:i&&Ot(su,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:i})})]}),Rt(au,{$gap:2,children:[s,l.map((e,t)=>Ot(lu,{...e},`header-action-button-${t}`)),Ot(cu,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Ot(ct,{size:12})})]})]}),Ot(ru,{tabs:c,hideBorder:!0})]}),pu=Yt.div`
1256
+ `,du=Yt(Gs)``,pu=({onClose:e,width:t,icons:o,iconSrcs:r,title:i,titleTooltip:n,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>Rt(nu,{children:[Rt(au,{children:[Rt(su,{children:[o?.length||r?.length?Ot(ud,{icons:o,iconSrcs:r,id:`drawer-header-${i}`}):null,("function"==typeof a?Ot(a,{}):a||null)||Ot(ec,{text:n||i,withIcon:!!n,children:i&&Ot(lu,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:i})})]}),Rt(su,{$gap:2,children:[s,l.map((e,t)=>Ot(cu,{...e},`header-action-button-${t}`)),Ot(du,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Ot(ct,{size:12})})]})]}),Ot(iu,{tabs:c,hideBorder:!0})]}),uu=Yt.div`
1257
1257
  display: flex;
1258
1258
  justify-content: space-between;
1259
1259
  gap: 8px;
@@ -1261,17 +1261,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1261
1261
  border-top: 1px solid ${({theme:e})=>e.colors.border};
1262
1262
  background-color: ${({theme:e})=>e.colors.translucent_bg};
1263
1263
  transform: translateY(100%);
1264
- animation-name: ${Rs.in.bottom};
1265
- `,uu=Yt(zi)`
1264
+ animation-name: ${Fs.in.bottom};
1265
+ `,hu=Yt(Li)`
1266
1266
  margin-right: auto;
1267
- `,hu=Yt(zi)`
1267
+ `,mu=Yt(Li)`
1268
1268
  margin: 0 auto;
1269
- `,mu=Yt(zi)`
1269
+ `,gu=Yt(Li)`
1270
1270
  margin-left: auto;
1271
- `,gu=Yt(Xs)`
1271
+ `,fu=Yt(Gs)`
1272
1272
  min-width: 140px;
1273
1273
  font-size: 14px;
1274
- `,fu=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:r=[]})=>e?Rt(pu,{children:[Ot(uu,{children:t.map((e,t)=>Ot(gu,{...e},`footer-left-button-${t}`))}),Ot(hu,{children:o.map((e,t)=>Ot(gu,{...e},`footer-center-button-${t}`))}),Ot(mu,{children:r.map((e,t)=>Ot(gu,{...e},`footer-right-button-${t}`))})]}):null,xu=Yt.div`
1274
+ `,xu=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:r=[]})=>e?Rt(uu,{children:[Ot(hu,{children:t.map((e,t)=>Ot(fu,{...e},`footer-left-button-${t}`))}),Ot(mu,{children:o.map((e,t)=>Ot(fu,{...e},`footer-center-button-${t}`))}),Ot(gu,{children:r.map((e,t)=>Ot(fu,{...e},`footer-right-button-${t}`))})]}):null,yu=Yt.div`
1275
1275
  position: fixed;
1276
1276
  top: 0;
1277
1277
  bottom: 0;
@@ -1279,56 +1279,56 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1279
1279
  z-index: 1000;
1280
1280
  width: ${({$width:e})=>e};
1281
1281
  background: ${({theme:e})=>e.colors.translucent_bg};
1282
- box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+_s["010"]};
1282
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Os["010"]};
1283
1283
  overflow-y: auto;
1284
- animation-name: ${({$position:e})=>Rs.in[e]};
1285
- `,yu=Yt.div`
1284
+ animation-name: ${({$position:e})=>Fs.in[e]};
1285
+ `,bu=Yt.div`
1286
1286
  display: flex;
1287
1287
  flex-direction: column;
1288
1288
  height: 100%;
1289
- `,bu=Yt.div`
1289
+ `,$u=Yt.div`
1290
1290
  flex-grow: 1;
1291
1291
  padding: 24px 32px;
1292
1292
  overflow-y: auto;
1293
- `,$u=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:r="right",width:i="300px",children:n,header:a,footer:s})=>(ll({key:"Escape",active:e&&o},()=>t()),qs(e),e?co.createPortal(Rt(Ft,{children:[Ot(Bi,{hidden:!e,onClick:t}),Ot(xu,{"data-id":"drawer",$position:r,$width:i,children:Rt(yu,{children:[Ot(du,{onClose:t,width:i,...a}),Ot(bu,{children:n}),Ot(fu,{...s})]})})]}),document.body):null),vu=({error:e})=>{const t=Zt(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return Rt("div",{style:o.container,children:[Ot("h2",{children:"Something went wrong!"}),Ot("pre",{style:o.errorMessage,children:e?.message||"Unknown Error"}),Rt("details",{style:o.errorStackWrapper,children:[Ot("summary",{children:"Stack Trace"}),Ot("pre",{style:o.errorStack,children:e?.stack||"Unknown Stack"})]}),Ot("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),Ot(Xs,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},wu=({children:e})=>Ot(mo,{FallbackComponent:({error:e,...t})=>Ot(Is,{children:Ot(vu,{...t,error:e})}),children:e}),Su=Yt(zi)`
1293
+ `,vu=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:r="right",width:i="300px",children:n,header:a,footer:s})=>(cl({key:"Escape",active:e&&o},()=>t()),Js(e),e?co.createPortal(Rt(Ft,{children:[Ot(Ui,{hidden:!e,onClick:t}),Ot(yu,{"data-id":"drawer",$position:r,$width:i,children:Rt(bu,{children:[Ot(pu,{onClose:t,width:i,...a}),Ot($u,{children:n}),Ot(xu,{...s})]})})]}),document.body):null),wu=({error:e})=>{const t=Zt(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return Rt("div",{style:o.container,children:[Ot("h2",{children:"Something went wrong!"}),Ot("pre",{style:o.errorMessage,children:e?.message||"Unknown Error"}),Rt("details",{style:o.errorStackWrapper,children:[Ot("summary",{children:"Stack Trace"}),Ot("pre",{style:o.errorStack,children:e?.stack||"Unknown Stack"})]}),Ot("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),Ot(Gs,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},Su=({children:e})=>Ot(mo,{FallbackComponent:({error:e,...t})=>Ot(_s,{children:Ot(wu,{...t,error:e})}),children:e}),Cu=Yt(Li)`
1294
1294
  position: relative;
1295
1295
  width: calc(100% - 24px);
1296
1296
  padding: 12px;
1297
1297
  background-color: ${({theme:e})=>e.colors.dark_grey};
1298
- border-bottom: 1px solid ${({theme:e})=>e.colors.border+_s["050"]};
1299
- `,Cu=Yt(zi)`
1298
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+Os["050"]};
1299
+ `,ku=Yt(Li)`
1300
1300
  margin-right: auto;
1301
1301
  margin-left: 32px;
1302
1302
  gap: 12px;
1303
- `,ku=Yt(zi)`
1303
+ `,Eu=Yt(Li)`
1304
1304
  margin-left: auto;
1305
1305
  margin-right: 32px;
1306
1306
  gap: 12px;
1307
- `,Eu=Yt(zi)`
1307
+ `,Au=Yt(Li)`
1308
1308
  position: absolute;
1309
1309
  left: 50%;
1310
1310
  transform: translateX(-50%);
1311
1311
  gap: 12px;
1312
- `,Au=({left:e=[],center:t=[],right:o=[]})=>Rt(Su,{children:[Ot(Cu,{children:e.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(Eu,{children:t.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(ku,{children:o.map((e,t)=>e&&Ot(zt,{children:e},t))})]}),Du=Yt(Zi)`
1312
+ `,Du=({left:e=[],center:t=[],right:o=[]})=>Rt(Cu,{children:[Ot(ku,{children:e.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(Au,{children:t.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(Eu,{children:o.map((e,t)=>e&&Ot(zt,{children:e},t))})]}),Tu=Yt(en)`
1313
1313
  color: ${({theme:e})=>e.text.grey};
1314
- `,Tu=({icon:e,title:t,badge:o,badgeTooltip:r,loading:i})=>Rt(zi,{$gap:6,children:[e&&Ot(e,{}),Ot(Du,{size:14,children:t}),void 0!==o&&Ot(Zl,{text:r,children:Ot(Us,{label:o})}),i&&Ot(Mc,{})]}),Nu=Yt.div`
1314
+ `,Nu=({icon:e,title:t,badge:o,badgeTooltip:r,loading:i})=>Rt(Li,{$gap:6,children:[e&&Ot(e,{}),Ot(Tu,{size:14,children:t}),void 0!==o&&Ot(ec,{text:r,children:Ot(js,{label:o})}),i&&Ot(Bc,{})]}),Iu=Yt.div`
1315
1315
  width: fit-content;
1316
1316
  height: fit-content;
1317
1317
  padding: 4px;
1318
1318
  gap: 4px;
1319
1319
  border-radius: 32px;
1320
- border: 1px solid ${({theme:e})=>e.colors.border+_s["070"]};
1320
+ border: 1px solid ${({theme:e})=>e.colors.border+Os["070"]};
1321
1321
 
1322
1322
  display: flex;
1323
1323
  flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1324
1324
  align-items: center;
1325
1325
  justify-content: center;
1326
- `,Iu=Yt.div`
1326
+ `,_u=Yt.div`
1327
1327
  width: 32px;
1328
1328
  height: 32px;
1329
1329
 
1330
1330
  border-radius: 100%;
1331
- background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+_s["070"]:e.colors.secondary+_s["012"]};
1331
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Os["070"]:e.colors.secondary+Os["012"]};
1332
1332
  transition: background-color 0.3s;
1333
1333
 
1334
1334
  display: flex;
@@ -1336,63 +1336,63 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1336
1336
  justify-content: center;
1337
1337
 
1338
1338
  cursor: pointer;
1339
- `,_u=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:r})=>Rt(Nu,{$orientation:e,$flip:t,children:[o.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>Ot(Zl,{text:r,children:Ot(Iu,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`main-nav-icon-${i}`)),!!o.length&&!!r.length&&Ot(Ul,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),r.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>Ot(Zl,{text:r,children:Ot(Iu,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`sub-nav-icon-${i}`))]}),Ou=Yt.div`
1339
+ `,Ou=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:r})=>Rt(Iu,{$orientation:e,$flip:t,children:[o.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>Ot(ec,{text:r,children:Ot(_u,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`main-nav-icon-${i}`)),!!o.length&&!!r.length&&Ot(jl,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),r.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>Ot(ec,{text:r,children:Ot(_u,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`sub-nav-icon-${i}`))]}),Ru=Yt.div`
1340
1340
  display: flex;
1341
1341
  flex-direction: column;
1342
1342
  width: 100%;
1343
- `,Ru=Yt.div`
1343
+ `,Fu=Yt.div`
1344
1344
  display: flex;
1345
1345
  flex-direction: column;
1346
1346
  gap: 8px;
1347
- `,Fu=Yt.div`
1347
+ `,zu=Yt.div`
1348
1348
  display: flex;
1349
1349
  align-items: center;
1350
1350
  gap: 16px;
1351
- `,zu=Yt(oc)`
1351
+ `,Lu=Yt(rc)`
1352
1352
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1353
1353
  opacity: ${({$disabled:e})=>e?.5:1};
1354
- `,Lu=({initialValues:e=[],value:t,onChange:o,title:r,tooltip:i,required:n,errorMessage:a})=>{const[s,l]=Pt(t||e);Mt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=Bt(JSON.stringify(c));Mt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const r=[...o];return r[t]=e,r})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return Rt(Ou,{children:[Ot(Xd,{title:r,required:n,tooltip:i}),Ot(Ru,{children:s.map((e,t)=>{const o=t===s.length-1;return Rt(Fu,{children:[Ot(Qd,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:hi(e)&&!u&&o}),t===s.length-1&&Ot(zu,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:Ot(mt,{})}),Ot(zu,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t),children:Ot(vt,{})})]},`input-list-${t}`)})}),!!a&&Ot(on,{children:a})]})},Pu=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,maxWidth:n,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:f,renderCondition:x}=e,y=o[c];if(x&&!x(o))return null;return Ot("td",{style:{maxWidth:n,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Ho.Dropdown:const e=f?.find(e=>e.id===y);return Ot(rp,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:e,onSelect:e=>a(c,e.id,r),onDeselect:()=>a(c,"",r),hasError:!!s&&(!h||h&&hi(y))});case"multi-dropdown":const o=Array.isArray(y)&&f?.filter(e=>y.includes(e.id))||[];return Ot(rp,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(y)?y:[],e.id];a(c,t,r)},onDeselect:e=>{const t=(Array.isArray(y)?y:[]).filter(t=>t!==e.id);a(c,t,r)},hasError:!!s&&(!h||h&&hi(y))});default:const g=i>1&&r===i-1&&0===t&&hi(y);return Ot(Qd,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:y,onChange:({target:{value:e}})=>a(c,e,r),style:{maxWidth:n,paddingLeft:10},hasError:!!s&&(!h||h&&hi(y))})}})()},`input-table-${r}-${c}`)},Mu=Yt.div`
1354
+ `,Pu=({initialValues:e=[],value:t,onChange:o,title:r,tooltip:i,required:n,errorMessage:a})=>{const[s,l]=Pt(t||e);Mt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=Bt(JSON.stringify(c));Mt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const r=[...o];return r[t]=e,r})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return Rt(Ru,{children:[Ot(Gd,{title:r,required:n,tooltip:i}),Ot(Fu,{children:s.map((e,t)=>{const o=t===s.length-1;return Rt(zu,{children:[Ot(Zd,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:hi(e)&&!u&&o}),t===s.length-1&&Ot(Lu,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:Ot(mt,{})}),Ot(Lu,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t),children:Ot(vt,{})})]},`input-list-${t}`)})}),!!a&&Ot(rn,{children:a})]})},Mu=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,maxWidth:n,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:f,renderCondition:x}=e,y=o[c];if(x&&!x(o))return null;return Ot("td",{style:{maxWidth:n,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Ho.Dropdown:const e=f?.find(e=>e.id===y);return Ot(ip,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:e,onSelect:e=>a(c,e.id,r),onDeselect:()=>a(c,"",r),hasError:!!s&&(!h||h&&hi(y))});case"multi-dropdown":const o=Array.isArray(y)&&f?.filter(e=>y.includes(e.id))||[];return Ot(ip,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(y)?y:[],e.id];a(c,t,r)},onDeselect:e=>{const t=(Array.isArray(y)?y:[]).filter(t=>t!==e.id);a(c,t,r)},hasError:!!s&&(!h||h&&hi(y))});default:const g=i>1&&r===i-1&&0===t&&hi(y);return Ot(Zd,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:y,onChange:({target:{value:e}})=>a(c,e,r),style:{maxWidth:n,paddingLeft:10},hasError:!!s&&(!h||h&&hi(y))})}})()},`input-table-${r}-${c}`)},Bu=Yt.div`
1355
1355
  display: flex;
1356
1356
  flex-direction: column;
1357
1357
  width: 100%;
1358
- `,Bu=Yt.button`
1358
+ `,Uu=Yt.button`
1359
1359
  margin-top: ${({$marginTop:e})=>e};
1360
1360
  background: none;
1361
1361
  border: none;
1362
1362
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1363
1363
  opacity: ${({disabled:e})=>e?.5:1};
1364
- `,Uu=({columns:e,initialValues:t=[],value:o,onChange:r,errorMessage:i,limitFieldsPerRow:n,title:a=""})=>{const[s,l]=Pt({}),[c,d]=Pt(o||t),p=Lt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);Mt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const r=p.get(t);if((!r?.renderCondition||r.renderCondition(e))&&(r?.required&&hi(o)))return!1}return!0}),h=Bt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((n||e.length)+.4))}px`;Mt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,r&&r(u))},[u]);const f=(e,t,o)=>{d(r=>{const i=vo(r);return i[o][e]=t,i})},x=Lt(()=>{if(n){const t=[];for(let o=0;;o+=n){const r=e.slice(o,o+n);if(!r.length)break;t.push(r)}return t}return[e]},[n,e]);return Rt(Mu,{children:[Ot(Xd,{title:a}),Rt("table",{style:{borderCollapse:"collapse"},children:[!n&&Ot("thead",{children:Rt("tr",{children:[e.map(({title:e,tooltip:t,required:o})=>Ot("th",{style:{maxWidth:g},children:Ot(Xd,{title:e,required:o,tooltip:t})},`input-table-head-${e}`)),Ot("th",{})]})}),Ot("tbody",{children:c.map((t,o)=>Rt(zt,{children:[n&&o>0?Ot("tr",{children:Ot("td",{colSpan:x.length,children:Ot(Ul,{})})}):null,x.map((r,a)=>Rt("tr",{children:[r.map((e,r)=>Ot(Pu,{col:e,colIdx:r,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:n,errorMessage:i,handleChange:f},`input-table-row-${o}-col-${r}`)),0===a&&Ot("td",{children:Ot(Bu,{$marginTop:n?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>f(e,o===Xo.Number?"0":"",t)));var t},children:Ot(vt,{})})})]},`input-table-matrix-${o}-${a}`))]},`input-table-row-${o}`))})]}),!!i&&Ot(on,{children:i}),Ot(Zc,{onClick:()=>{d(e=>{const t=vo(e);return t.push(vo(s)),t})},disabled:m})]})},ju=Yt.div`
1364
+ `,ju=({columns:e,initialValues:t=[],value:o,onChange:r,errorMessage:i,limitFieldsPerRow:n,title:a=""})=>{const[s,l]=Pt({}),[c,d]=Pt(o||t),p=Lt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);Mt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const r=p.get(t);if((!r?.renderCondition||r.renderCondition(e))&&(r?.required&&hi(o)))return!1}return!0}),h=Bt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((n||e.length)+.4))}px`;Mt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,r&&r(u))},[u]);const f=(e,t,o)=>{d(r=>{const i=vo(r);return i[o][e]=t,i})},x=Lt(()=>{if(n){const t=[];for(let o=0;;o+=n){const r=e.slice(o,o+n);if(!r.length)break;t.push(r)}return t}return[e]},[n,e]);return Rt(Bu,{children:[Ot(Gd,{title:a}),Rt("table",{style:{borderCollapse:"collapse"},children:[!n&&Ot("thead",{children:Rt("tr",{children:[e.map(({title:e,tooltip:t,required:o})=>Ot("th",{style:{maxWidth:g},children:Ot(Gd,{title:e,required:o,tooltip:t})},`input-table-head-${e}`)),Ot("th",{})]})}),Ot("tbody",{children:c.map((t,o)=>Rt(zt,{children:[n&&o>0?Ot("tr",{children:Ot("td",{colSpan:x.length,children:Ot(jl,{})})}):null,x.map((r,a)=>Rt("tr",{children:[r.map((e,r)=>Ot(Mu,{col:e,colIdx:r,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:n,errorMessage:i,handleChange:f},`input-table-row-${o}-col-${r}`)),0===a&&Ot("td",{children:Ot(Uu,{$marginTop:n?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>f(e,o===Xo.Number?"0":"",t)));var t},children:Ot(vt,{})})})]},`input-table-matrix-${o}-${a}`))]},`input-table-row-${o}`))})]}),!!i&&Ot(rn,{children:i}),Ot(ed,{onClick:()=>{d(e=>{const t=vo(e);return t.push(vo(s)),t})},disabled:m})]})},Wu=Yt.div`
1365
1365
  display: flex;
1366
1366
  flex-direction: column;
1367
1367
  width: 100%;
1368
- `,Wu=Yt.div`
1368
+ `,Hu=Yt.div`
1369
1369
  display: flex;
1370
1370
  flex-direction: column;
1371
1371
  gap: 8px;
1372
- `,Hu=Yt.div`
1372
+ `,Xu=Yt.div`
1373
1373
  display: flex;
1374
1374
  align-items: center;
1375
1375
  gap: 8px;
1376
- `,Xu=Yt.div`
1376
+ `,Gu=Yt.div`
1377
1377
  width: 100%;
1378
1378
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1379
- `,Gu=Yt(oc)`
1379
+ `,Vu=Yt(rc)`
1380
1380
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1381
1381
  opacity: ${({$disabled:e})=>e?.5:1};
1382
- `,Vu={key:"",value:""},Ku=({initialKeyValuePairs:e=[],value:t,onChange:o,title:r,tooltip:i,disabled:n,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=Pt(t||e);Mt(()=>{p.length||u([{...Vu}])},[]);const h=p.filter(({key:e,value:t})=>!hi(e.trim())&&!hi(t.trim())),m=Bt(JSON.stringify(h));Mt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(r=>{const i=[...r];return i[o][e]=t,i})},f=p.length<=1,x=n||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),y=n||f&&x;return Rt(ju,{children:[Ot(Xd,{title:r,required:a,tooltip:i}),Ot(Wu,{children:p.map(({key:e,value:t},o)=>Rt(Hu,{children:[Ot(Xu,{$maxWidth:d,children:Ot(Qd,{placeholder:l,disabled:n,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!a||a&&!e),autoFocus:hi(t)&&!f&&o===p.length-1})}),Ot(Xu,{$maxWidth:o===p.length-1?d-38:d,children:Ot(Qd,{placeholder:c,disabled:n,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!a||a&&hi(t)),autoFocus:!1})}),o===p.length-1&&Ot(Gu,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Vu}),t})},children:Ot(mt,{})}),Ot(Gu,{size:30,$disabled:y,onClick:y?void 0:()=>(e=>{f?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o),children:Ot(vt,{})})]},`key-value-input-list-${o}`))}),!!s&&Ot(on,{children:s})]})},qu=to`
1382
+ `,Ku={key:"",value:""},qu=({initialKeyValuePairs:e=[],value:t,onChange:o,title:r,tooltip:i,disabled:n,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=Pt(t||e);Mt(()=>{p.length||u([{...Ku}])},[]);const h=p.filter(({key:e,value:t})=>!hi(e.trim())&&!hi(t.trim())),m=Bt(JSON.stringify(h));Mt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(r=>{const i=[...r];return i[o][e]=t,i})},f=p.length<=1,x=n||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),y=n||f&&x;return Rt(Wu,{children:[Ot(Gd,{title:r,required:a,tooltip:i}),Ot(Hu,{children:p.map(({key:e,value:t},o)=>Rt(Xu,{children:[Ot(Gu,{$maxWidth:d,children:Ot(Zd,{placeholder:l,disabled:n,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!a||a&&!e),autoFocus:hi(t)&&!f&&o===p.length-1})}),Ot(Gu,{$maxWidth:o===p.length-1?d-38:d,children:Ot(Zd,{placeholder:c,disabled:n,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!a||a&&hi(t)),autoFocus:!1})}),o===p.length-1&&Ot(Vu,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Ku}),t})},children:Ot(mt,{})}),Ot(Vu,{size:30,$disabled:y,onClick:y?void 0:()=>(e=>{f?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o),children:Ot(vt,{})})]},`key-value-input-list-${o}`))}),!!s&&Ot(rn,{children:s})]})},Ju=to`
1383
1383
  0% {
1384
1384
  background-position: 0% 50%;
1385
1385
  }
1386
1386
  100% {
1387
1387
  background-position: 100% 50%;
1388
1388
  }
1389
- `,Ju=Yt(Zi)`
1389
+ `,Yu=Yt(en)`
1390
1390
  background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1391
1391
  background-size: 250% 100%; /* Expand background to allow movement */
1392
1392
  background-clip: text;
1393
1393
  color: transparent;
1394
- animation: ${qu} 1s reverse linear infinite;
1395
- `,Yu=({children:e="Loading...",textColor:t,stripColor:o,...r})=>{const i=Zt(),n=t||i.v2.colors.white[500],a=o||i.v2.colors.black[500];return Ot(Ju,{$textColor:n,$stripColor:a,...r,children:e})},Qu=Yt.div`
1394
+ animation: ${Ju} 1s reverse linear infinite;
1395
+ `,Qu=({children:e="Loading...",textColor:t,stripColor:o,...r})=>{const i=Zt(),n=t||i.v2.colors.white[500],a=o||i.v2.colors.black[500];return Ot(Yu,{$textColor:n,$stripColor:a,...r,children:e})},Zu=Yt.div`
1396
1396
  display: flex;
1397
1397
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1398
1398
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1401,17 +1401,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1401
1401
  border-radius: 32px;
1402
1402
  padding: 8px;
1403
1403
  `}
1404
- `,Zu=(e,t)=>!t?.length||!!t?.find(t=>t===e),eh=({isVertical:e,title:t="Monitors",required:o,errorMessage:r,allowedSignals:i,selectedSignals:n,setSelectedSignals:a})=>{const[s,l]=Pt(1===n.length),c=Bt(JSON.stringify(n));Mt(()=>{const e=n;e.length||is.forEach(({id:t})=>{Zu(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[i]);return Rt("div",{children:[t&&Ot(Xd,{title:t,required:o}),Ot(Qu,{$isVertical:e,$hasError:!!r,children:is.map(e=>{const t=Zu(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,n);return t?Ot(Sc,{title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,r=t?[...n,o]:n.filter(e=>e!==o);a(r),l(1===r.length)})(e.id,t)},e.id):null})}),!!r&&Ot(on,{children:r})]})},th=Yt.div`
1404
+ `,eh=(e,t)=>!t?.length||!!t?.find(t=>t===e),th=({isVertical:e,title:t="Monitors",required:o,errorMessage:r,allowedSignals:i,selectedSignals:n,setSelectedSignals:a})=>{const[s,l]=Pt(1===n.length),c=Bt(JSON.stringify(n));Mt(()=>{const e=n;e.length||ns.forEach(({id:t})=>{eh(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[i]);return Rt("div",{children:[t&&Ot(Gd,{title:t,required:o}),Ot(Zu,{$isVertical:e,$hasError:!!r,children:ns.map(e=>{const t=eh(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,n);return t?Ot(Cc,{title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,r=t?[...n,o]:n.filter(e=>e!==o);a(r),l(1===r.length)})(e.id,t)},e.id):null})}),!!r&&Ot(rn,{children:r})]})},oh=Yt.div`
1405
1405
  display: flex;
1406
1406
  gap: 8px;
1407
1407
  align-items: center;
1408
- `,oh=Yt(Xs)`
1408
+ `,rh=Yt(Gs)`
1409
1409
  display: flex;
1410
1410
  align-items: center;
1411
1411
  justify-content: center;
1412
1412
  gap: 8px;
1413
1413
  min-width: 90px;
1414
- `,rh=({buttons:e})=>{const t=Zt(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),r=({button:e,rotate:o})=>e.icon?Ot(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Ot("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Ot(th,{children:e.map((e,t)=>Ot(Zl,{text:e.tooltip||"",children:Rt(oh,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[o({button:e,index:t})&&r({button:e,rotate:0}),e.label,!o({button:e,index:t})&&r({button:e,rotate:180})]},t)},t))})},ih=Yt.div`
1414
+ `,ih=({buttons:e})=>{const t=Zt(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),r=({button:e,rotate:o})=>e.icon?Ot(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Ot("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Ot(oh,{children:e.map((e,t)=>Ot(ec,{text:e.tooltip||"",children:Rt(rh,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[o({button:e,index:t})&&r({button:e,rotate:0}),e.label,!o({button:e,index:t})&&r({button:e,rotate:180})]},t)},t))})},nh=Yt.div`
1415
1415
  width: 100%;
1416
1416
  height: 100%;
1417
1417
 
@@ -1419,26 +1419,26 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1419
1419
  animation: none !important;
1420
1420
  transition: none !important;
1421
1421
  }
1422
- `,nh=({width:e="100%",height:t="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:n})=>{const a=Bt(null),s=Lt(()=>o?r.map((e,t)=>Ot("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${t}`)):r,[r,o]),l=Ut(e=>{if(!n||!a.current)return;const t=a.current.findItemIndex(e);n(t)},[n]),c=Ot(fo,{ref:a,style:{width:e,height:t},onScroll:n?l:void 0,children:s});return i?Ot(ih,{children:c}):c},ah=Yt.div`
1422
+ `,ah=({width:e="100%",height:t="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:n})=>{const a=Bt(null),s=Lt(()=>o?r.map((e,t)=>Ot("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${t}`)):r,[r,o]),l=Ut(e=>{if(!n||!a.current)return;const t=a.current.findItemIndex(e);n(t)},[n]),c=Ot(fo,{ref:a,style:{width:e,height:t},onScroll:n?l:void 0,children:s});return i?Ot(nh,{children:c}):c},sh=Yt.div`
1423
1423
  display: flex;
1424
1424
  justify-content: space-between;
1425
1425
  align-items: center;
1426
1426
  gap: 16px;
1427
- `,sh=Yt.div`
1427
+ `,lh=Yt.div`
1428
1428
  display: flex;
1429
1429
  flex-direction: column;
1430
1430
  gap: 4px;
1431
- `,lh=Yt.div`
1431
+ `,ch=Yt.div`
1432
1432
  display: flex;
1433
1433
  align-items: center;
1434
1434
  gap: 8px;
1435
- `,ch=Yt(Zi)``,dh=Yt(Zi)``,ph=({title:e,description:t,badgeLabel:o,icon:r,actionButton:i,size:n="medium"})=>{const a="small"===n?16:"medium"===n?20:24,s="small"===n?12:"medium"===n?14:16;return Rt(ah,{children:[Rt(sh,{children:[Rt(lh,{children:[r&&Ot(r,{size:a}),Ot(ch,{weight:300,size:a,children:e}),void 0!==o&&Ot(Us,{label:o,filled:!!o})]}),Ot(dh,{weight:200,opacity:.8,size:s,children:t})]}),i&&Ot("div",{children:i})]})},uh=Yt.div`
1435
+ `,dh=Yt(en)``,ph=Yt(en)``,uh=({title:e,description:t,badgeLabel:o,icon:r,actionButton:i,size:n="medium"})=>{const a="small"===n?16:"medium"===n?20:24,s="small"===n?12:"medium"===n?14:16;return Rt(sh,{children:[Rt(lh,{children:[Rt(ch,{children:[r&&Ot(r,{size:a}),Ot(dh,{weight:300,size:a,children:e}),void 0!==o&&Ot(js,{label:o,filled:!!o})]}),Ot(ph,{weight:200,opacity:.8,size:s,children:t})]}),i&&Ot("div",{children:i})]})},hh=Yt.div`
1436
1436
  position: relative;
1437
1437
  gap: 0;
1438
1438
  z-index: 0;
1439
1439
  display: grid;
1440
1440
  grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1441
- `,hh=Yt.button`
1441
+ `,mh=Yt.button`
1442
1442
  flex: 1;
1443
1443
  display: flex;
1444
1444
  align-items: center;
@@ -1452,7 +1452,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1452
1452
  &:hover {
1453
1453
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1454
1454
  }
1455
- `,mh=Yt.div`
1455
+ `,gh=Yt.div`
1456
1456
  position: absolute;
1457
1457
  top: ${({$y:e})=>e}px;
1458
1458
  left: ${({$x:e})=>e}px;
@@ -1462,85 +1462,85 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1462
1462
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1463
1463
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1464
1464
  transition: all 0.3s;
1465
- `,gh=({options:e=[],selected:t,setSelected:o})=>{const r=e.findIndex(e=>e.value===t),[i,n]=Pt(e[r]?.selectedBgColor||""),[a,s]=Pt({width:0,height:0}),[l,c]=Pt({x:0,y:0}),d=Bt(null);return Mt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*r,y:0}))},[t,r]),Rt(uh,{$count:e.length,children:[e.map(({icon:r,label:i,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return Rt(hh,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(a),n(s||"")},children:[r&&Ot(r,{}),i&&Ot(Zi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:i})]},`segment-${i||c}-${a}`)}),Ot(mh,{$bgColor:i,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===r,$isLastItem:r===e.length-1})]})},fh=Yt(Xs)`
1465
+ `,fh=({options:e=[],selected:t,setSelected:o})=>{const r=e.findIndex(e=>e.value===t),[i,n]=Pt(e[r]?.selectedBgColor||""),[a,s]=Pt({width:0,height:0}),[l,c]=Pt({x:0,y:0}),d=Bt(null);return Mt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*r,y:0}))},[t,r]),Rt(hh,{$count:e.length,children:[e.map(({icon:r,label:i,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return Rt(mh,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(a),n(s||"")},children:[r&&Ot(r,{}),i&&Ot(en,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:i})]},`segment-${i||c}-${a}`)}),Ot(gh,{$bgColor:i,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===r,$isLastItem:r===e.length-1})]})},xh=Yt(Gs)`
1466
1466
  gap: 8px;
1467
1467
  text-transform: none;
1468
1468
  text-decoration: none;
1469
1469
  border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1470
1470
  &.not-selected {
1471
- background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+_s["060"]};
1471
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Os["060"]};
1472
1472
  &:hover {
1473
1473
  background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1474
1474
  }
1475
1475
  }
1476
1476
  &.selected {
1477
- background-color: ${({theme:e})=>e.colors.majestic_blue+_s["030"]};
1477
+ background-color: ${({theme:e})=>e.colors.majestic_blue+Os["030"]};
1478
1478
  }
1479
- `,xh=Yt(Zi)`
1479
+ `,yh=Yt(en)`
1480
1480
  white-space: nowrap;
1481
1481
  overflow: hidden;
1482
1482
  text-overflow: ellipsis;
1483
1483
  font-size: 14px;
1484
- `,yh=({label:e,onClick:t,icon:o,iconSrc:r,badgeLabel:i,badgeFilled:n,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Zt();return Rt(fh,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[o&&Ot("div",{children:Ot(o,{fill:p.text.info})}),r&&Ot("div",{children:Ot("img",{src:r,alt:"",width:16,height:16})}),Ot(xh,{children:e}),a&&Ot("div",{children:Ot(st,{fill:p.colors.majestic_blue_soft})}),void 0!==i&&Ot(Us,{label:i,filled:n||a})]})},bh=Yt.div`
1484
+ `,bh=({label:e,onClick:t,icon:o,iconSrc:r,badgeLabel:i,badgeFilled:n,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Zt();return Rt(xh,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[o&&Ot("div",{children:Ot(o,{fill:p.text.info})}),r&&Ot("div",{children:Ot("img",{src:r,alt:"",width:16,height:16})}),Ot(yh,{children:e}),a&&Ot("div",{children:Ot(st,{fill:p.colors.majestic_blue_soft})}),void 0!==i&&Ot(js,{label:i,filled:n||a})]})},$h=Yt.div`
1485
1485
  display: flex;
1486
1486
  flex-direction: column;
1487
1487
  gap: 16px;
1488
1488
  ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1489
- `,$h=Yt.div`
1489
+ `,vh=Yt.div`
1490
1490
  display: flex;
1491
1491
  align-items: center;
1492
1492
  gap: 16px;
1493
- `,vh=Yt.div`
1493
+ `,wh=Yt.div`
1494
1494
  width: 50px;
1495
1495
  height: 50px;
1496
1496
  border-radius: 8px;
1497
1497
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1498
1498
  background-size: 200% 100%;
1499
- animation: ${Ls} 10s infinite linear;
1500
- `,wh=Yt(Li)`
1499
+ animation: ${Ps} 10s infinite linear;
1500
+ `,Sh=Yt(Pi)`
1501
1501
  flex: 1;
1502
1502
  gap: 12px;
1503
- `,Sh=Yt.div`
1503
+ `,Ch=Yt.div`
1504
1504
  width: ${({$width:e})=>e};
1505
1505
  height: 16px;
1506
1506
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1507
1507
  background-size: 200% 100%;
1508
- animation: ${Ls} 1.5s infinite linear;
1508
+ animation: ${Ps} 1.5s infinite linear;
1509
1509
  border-radius: 4px;
1510
- `,Ch=({size:e=5,maxWidth:t})=>Ot(bh,{$maxWidth:t,children:[...Array(e)].map((e,t)=>Rt($h,{children:[Ot(vh,{}),Rt(wh,{children:[Ot(Sh,{$width:"80%"}),Ot(Sh,{$width:"100%"})]})]},t))});var kh;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(kh||(kh={}));const Eh=Yt.div`
1510
+ `,kh=({size:e=5,maxWidth:t})=>Ot($h,{$maxWidth:t,children:[...Array(e)].map((e,t)=>Rt(vh,{children:[Ot(wh,{}),Rt(Sh,{children:[Ot(Ch,{$width:"80%"}),Ot(Ch,{$width:"100%"})]})]},t))});var Eh;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Eh||(Eh={}));const Ah=Yt.div`
1511
1511
  display: flex;
1512
1512
  flex-direction: column;
1513
1513
  gap: 32px;
1514
- `,Ah=Yt.div`
1514
+ `,Dh=Yt.div`
1515
1515
  display: flex;
1516
1516
  gap: 16px;
1517
1517
  padding: 8px;
1518
- opacity: ${({$state:e})=>e===kh.Active?1:e===kh.Disabled?.5:.8};
1518
+ opacity: ${({$state:e})=>e===Eh.Active?1:e===Eh.Disabled?.5:.8};
1519
1519
  transition: all 0.3s;
1520
- `,Dh=Yt(zi)`
1520
+ `,Th=Yt(Li)`
1521
1521
  justify-content: center;
1522
1522
  width: 24px;
1523
1523
  height: 24px;
1524
1524
  border-radius: 32px;
1525
- border: ${({theme:e,$state:t})=>t===kh.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1526
- opacity: ${({$state:e})=>e===kh.Finished?.8:1};
1527
- `,Th=Yt(Li)`
1525
+ border: ${({theme:e,$state:t})=>t===Eh.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1526
+ opacity: ${({$state:e})=>e===Eh.Finished?.8:1};
1527
+ `,Nh=Yt(Pi)`
1528
1528
  justify-content: center;
1529
1529
  gap: 8px;
1530
- `,Nh=Yt(Zi)``,Ih=Yt(Zi)``,_h=({data:e,currentStep:t=0})=>{const[o,r]=Pt([]);return Mt(()=>{r(e.map((e,o)=>o<t-1?{...e,state:kh.Finished,subtitle:e.subtitle||Go.Success}:o===t-1?{...e,state:kh.Active,subtitle:""}:{...e,state:kh.Disabled,subtitle:""}))},[t,e]),Ot(Eh,{children:o.map((e,t)=>Rt(Ah,{$state:e.state,children:[Ot(Dh,{$state:e.state,children:[kh.Active,kh.Disabled].includes(e.state)?Ot(Zi,{size:12,children:e.stepNumber}):e.state===kh.Finished?Ot(st,{size:20}):null}),Rt(Th,{children:[Ot(Nh,{family:"secondary",children:e.title}),e.subtitle&&Ot(Ih,{size:10,weight:300,children:e.subtitle})]})]},t))})},Oh=Yt(zi)`
1530
+ `,Ih=Yt(en)``,_h=Yt(en)``,Oh=({data:e,currentStep:t=0})=>{const[o,r]=Pt([]);return Mt(()=>{r(e.map((e,o)=>o<t-1?{...e,state:Eh.Finished,subtitle:e.subtitle||Go.Success}:o===t-1?{...e,state:Eh.Active,subtitle:""}:{...e,state:Eh.Disabled,subtitle:""}))},[t,e]),Ot(Ah,{children:o.map((e,t)=>Rt(Dh,{$state:e.state,children:[Ot(Th,{$state:e.state,children:[Eh.Active,Eh.Disabled].includes(e.state)?Ot(en,{size:12,children:e.stepNumber}):e.state===Eh.Finished?Ot(st,{size:20}):null}),Rt(Nh,{children:[Ot(Ih,{family:"secondary",children:e.title}),e.subtitle&&Ot(_h,{size:10,weight:300,children:e.subtitle})]})]},t))})},Rh=Yt(Li)`
1531
1531
  width: fit-content;
1532
1532
  gap: 6px;
1533
1533
  padding: 6px 12px;
1534
1534
  border-radius: 360px;
1535
1535
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
1536
- `,Rh=Yt(Zi)`
1536
+ `,Fh=Yt(en)`
1537
1537
  color: ${({$type:e,theme:t})=>t.text[e]};
1538
- `,Fh=({type:e=Go.Info,icon:t,title:o,size:r,family:i,children:n,...a})=>Rt(Oh,{$type:e,children:[t&&Ot(t,{}),Ot(Rh,{$type:e,size:r||12,family:i||"secondary",...a,children:n||o})]}),zh=Yt.div`
1538
+ `,zh=({type:e=Go.Info,icon:t,title:o,size:r,family:i,children:n,...a})=>Rt(Rh,{$type:e,children:[t&&Ot(t,{}),Ot(Fh,{$type:e,size:r||12,family:i||"secondary",...a,children:n||o})]}),Lh=Yt.div`
1539
1539
  display: flex;
1540
1540
  flex-direction: column;
1541
1541
  position: relative;
1542
1542
  width: 100%;
1543
- `,Lh=Yt.div`
1543
+ `,Ph=Yt.div`
1544
1544
  width: 100%;
1545
1545
  display: flex;
1546
1546
  align-items: center;
@@ -1568,7 +1568,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1568
1568
  &:focus-within {
1569
1569
  border-color: ${({theme:e})=>e.colors.secondary};
1570
1570
  }
1571
- `,Ph=Yt.textarea`
1571
+ `,Mh=Yt.textarea`
1572
1572
  flex: 1;
1573
1573
  border: none;
1574
1574
  outline: none;
@@ -1592,13 +1592,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1592
1592
  background-color: ${({theme:e})=>e.colors.border};
1593
1593
  cursor: not-allowed;
1594
1594
  }
1595
- `,Mh=({errorMessage:e,title:t,tooltip:o,required:r,onChange:i,name:n,...a})=>{const s=Bt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return Rt(zh,{children:[Ot(Xd,{title:t,required:r,tooltip:o}),Ot(Lh,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:Ot(Ph,{ref:s,"data-id":n,name:n,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&Ot(on,{children:e})]})},Bh=Yt.div`
1595
+ `,Bh=({errorMessage:e,title:t,tooltip:o,required:r,onChange:i,name:n,...a})=>{const s=Bt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return Rt(Lh,{children:[Ot(Gd,{title:t,required:r,tooltip:o}),Ot(Ph,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:Ot(Mh,{ref:s,"data-id":n,name:n,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&Ot(rn,{children:e})]})},Uh=Yt.div`
1596
1596
  display: flex;
1597
1597
  align-items: center;
1598
1598
  gap: 12px;
1599
1599
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1600
1600
  opacity: ${({$disabled:e})=>e?.6:1};
1601
- `,Uh=Yt.div`
1601
+ `,jh=Yt.div`
1602
1602
  width: 24px;
1603
1603
  height: 12px;
1604
1604
  border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
@@ -1620,11 +1620,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1620
1620
  transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1621
1621
  transition: background-color 0.3s, transform 0.3s;
1622
1622
  }
1623
- `,jh=({title:e,tooltip:t,initialValue:o=!1,onChange:r,disabled:i,allowPropagation:n=!1,flipHorizontally:a})=>{const[s,l]=Pt(o);Mt(()=>l(o),[o]);return Rt(Bh,{$disabled:i,onClick:e=>{i||(n||e.stopPropagation(),r?r(!s):l(e=>!e))},children:[!a&&Ot(Uh,{$disabled:i,$isActive:s}),(e||t)&&Ot(Zl,{text:t,withIcon:!0,children:e&&Ot(Zi,{size:14,children:e})}),a&&Ot(Uh,{$disabled:i,$isActive:s})]})};var Wh={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 Hh=Yt.div`
1623
+ `,Wh=({title:e,tooltip:t,initialValue:o=!1,onChange:r,disabled:i,allowPropagation:n=!1,flipHorizontally:a})=>{const[s,l]=Pt(o);Mt(()=>l(o),[o]);return Rt(Uh,{$disabled:i,onClick:e=>{i||(n||e.stopPropagation(),r?r(!s):l(e=>!e))},children:[!a&&Ot(jh,{$disabled:i,$isActive:s}),(e||t)&&Ot(ec,{text:t,withIcon:!0,children:e&&Ot(en,{size:14,children:e})}),a&&Ot(jh,{$disabled:i,$isActive:s})]})};var Hh={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 Xh=Yt.div`
1624
1624
  width: ${({$width:e})=>e}px;
1625
1625
  height: ${({$height:e})=>e}px;
1626
1626
  position: relative;
1627
- `,Xh=({width:e=620})=>{const{darkMode:t}=Zt(),o=e/(620/220);return Ot(Hh,{$width:e,$height:o,children:Ot(go,{autoplay:!0,loop:!0,animationData:Wh,style:{width:o,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}})})},Gh=Yt.div`
1627
+ `,Gh=({width:e=620})=>{const{darkMode:t}=Zt(),o=e/(620/220);return Ot(Xh,{$width:e,$height:o,children:Ot(go,{autoplay:!0,loop:!0,animationData:Hh,style:{width:o,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}})})},Vh=Yt.div`
1628
1628
  display: flex;
1629
1629
  align-items: center;
1630
1630
  justify-content: center;
@@ -1634,17 +1634,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1634
1634
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1635
1635
  border-radius: 100px;
1636
1636
  background-color: ${({$backgroundColor:e})=>e};
1637
- `,Vh=({label:e,leftIcon:t,rightIcon:o,tooltip:r,status:i=qo.Unknown,useSecondaryTone:n=!1,invertColors:a=!1,textSize:s,textColor:l,backgroundColor:c,minWidth:d="unset",fullWidth:p=!1})=>{const u=Zt(),h=e?.toString(),m=i?[qo.Disabled].includes(i)?ti(u,i,a?"400":"700"):[qo.Unknown].includes(i)?ti(u,i,"600"):ti(u,i,a?n?"400":"300":n?"700":"500"):u.v2.colors.grey[200],g=l||(a&&![qo.Unknown].includes(i)?m:[qo.Disabled].includes(i)?u.v2.colors.grey[400]:[Go.Error,Go.Warning,Go.Success].includes(i)?u.v2.colors.black[500]:u.v2.colors.white[500]),f=c||(a&&![qo.Unknown].includes(i)?[qo.Disabled].includes(i)?u.v2.colors.grey[700]:u.v2.colors.silver[600]:m);return Ot(Zl,{text:r,fullWidth:p,children:Rt(Gh,{$backgroundColor:f,$minWidth:d,$fullWidth:p,$hasLabel:!!h,children:[t&&Ot(t,{fill:g,size:14}),h&&Ot(Ki,{color:g,size:s||Gi.XXS,nowrap:!0,children:h}),o&&Ot(o,{fill:g,size:14})]})})},Kh=Yt.span`
1637
+ `,Kh=({label:e,leftIcon:t,rightIcon:o,tooltip:r,status:i=qo.Unknown,useSecondaryTone:n=!1,invertColors:a=!1,textSize:s,textColor:l,backgroundColor:c,minWidth:d="unset",fullWidth:p=!1})=>{const u=Zt(),h=e?.toString(),m=i?[qo.Disabled].includes(i)?ti(u,i,a?"400":"700"):[qo.Unknown].includes(i)?ti(u,i,"600"):ti(u,i,a?n?"400":"300":n?"700":"500"):u.v2.colors.grey[200],g=l||(a&&![qo.Unknown].includes(i)?m:[qo.Disabled].includes(i)?u.v2.colors.grey[400]:[Go.Error,Go.Warning,Go.Success].includes(i)?u.v2.colors.black[500]:u.v2.colors.white[500]),f=c||(a&&![qo.Unknown].includes(i)?[qo.Disabled].includes(i)?u.v2.colors.grey[700]:u.v2.colors.silver[600]:m);return Ot(ec,{text:r,fullWidth:p,children:Rt(Vh,{$backgroundColor:f,$minWidth:d,$fullWidth:p,$hasLabel:!!h,children:[t&&Ot(t,{fill:g,size:14}),h&&Ot(qi,{color:g,size:s||Vi.XXS,nowrap:!0,children:h}),o&&Ot(o,{fill:g,size:14})]})})},qh=Yt.span`
1638
1638
  font-family: ${({theme:e})=>e.font_family.primary};
1639
1639
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1640
1640
  font-weight: 400;
1641
1641
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1642
- `,qh=Yt.span`
1642
+ `,Jh=Yt.span`
1643
1643
  font-family: ${({theme:e})=>e.font_family.primary};
1644
1644
  font-size: 14px;
1645
1645
  font-weight: 400;
1646
1646
  color: ${({theme:e})=>e.v2.colors.red[500]};
1647
- `,Jh=({label:e,tooltip:t,required:o,badge:r,width:i,smallAndDark:n})=>e||t||o?Rt(zi,{$width:i,$justifyContent:"space-between",children:[e&&Ot(Kh,{$smallAndDark:n,children:e}),Rt(zi,{$gap:4,children:[r&&Ot(Vh,{...r,textSize:Gi.XXXS}),o&&Ot(qh,{children:"*"}),t&&Ot(Zl,{text:t,withIcon:!0})]})]}):null,Yh=({errorMessage:e,warnMessage:t,helpMessage:o})=>{const r=Zt(),i=e?r.v2.colors.red[500]:t?r.v2.colors.yellow[500]:r.v2.colors.silver[200],n=Ot(Ve,{size:12,fill:i});return e||t||o?Rt(zi,{$alignItems:"center",children:[n&&Ot(Li,{children:n}),Ot(Ki,{size:Gi.XXS,weight:400,color:i,children:e||t||o})]}):null},Qh=Yt.div`
1647
+ `,Yh=({label:e,tooltip:t,required:o,badge:r,width:i,smallAndDark:n})=>e||t||o?Rt(Li,{$width:i,$justifyContent:"space-between",children:[e&&Ot(qh,{$smallAndDark:n,children:e}),Rt(Li,{$gap:4,children:[r&&Ot(Kh,{...r,textSize:Vi.XXXS}),o&&Ot(Jh,{children:"*"}),t&&Ot(ec,{text:t,withIcon:!0})]})]}):null,Qh=({errorMessage:e,warnMessage:t,helpMessage:o})=>{const r=Zt(),i=e?r.v2.colors.red[500]:t?r.v2.colors.yellow[500]:r.v2.colors.silver[200],n=Ot(Ve,{size:12,fill:i});return e||t||o?Rt(Li,{$alignItems:"center",children:[n&&Ot(Pi,{children:n}),Ot(qi,{size:Vi.XXS,weight:400,color:i,children:e||t||o})]}):null},Zh=Yt.div`
1648
1648
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
1649
1649
 
1650
1650
  display: flex;
@@ -1662,7 +1662,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1662
1662
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1663
1663
  }
1664
1664
  `}
1665
- `,Zh=Yt.input`
1665
+ `,em=Yt.input`
1666
1666
  max-width: ${({$maxWidth:e})=>e||"unset"};
1667
1667
  width: ${({$width:e})=>e||"unset"};
1668
1668
 
@@ -1688,12 +1688,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1688
1688
  overflow: hidden;
1689
1689
  text-overflow: ellipsis;
1690
1690
  white-space: nowrap;
1691
- `,em=Yt.div`
1691
+ `,tm=Yt.div`
1692
1692
  display: flex;
1693
1693
  align-items: center;
1694
1694
  justify-content: center;
1695
1695
  cursor: pointer;
1696
- `,tm=({label:e,required:t,tooltip:o,badge:r,leftIcon:i,rightIcon:n,hasError:a,errorMessage:s,warnMessage:l,helpMessage:c,type:d=Xo.Text,name:p,value:u,onChange:h,disabled:m,maxWidth:g,width:f,small:x=!1,onClick:y,...b})=>{const $=Zt(),v=d===Xo.Password,[w,S]=Pt(!1),[C,k]=Pt(null),E=a||!!s||!!C,A=u?$.v2.colors.white[500]:m?$.v2.colors.grey[400]:$.v2.colors.silver[200],D=x?14:18;return Rt(Li,{$width:f,$gap:6,children:[Ot(Jh,{label:e,tooltip:o,required:t,badge:r}),Rt(Qh,{$small:x,$disabled:m,$error:E,onClick:y,children:[i?Ot(i,{size:D,fill:A}):null,Ot(Zh,{"data-id":p,type:w||d===Xo.Number?Xo.Text:d,name:p,value:u,onChange:e=>{e.stopPropagation();const t=e.target.value;d===Xo.Number&&(e.target.value=ki(t),t&&t!==e.target.value?k("Please enter a valid number"):k(null)),h?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:m,$maxWidth:g,$width:f,$small:x,...b}),v?Ot(em,{onClick:()=>S(e=>!e),children:Ot(w?yt:bt,{size:D,fill:A})}):n?Ot(n,{size:D,fill:A}):null]}),Ot(Yh,{errorMessage:C||s,warnMessage:l,helpMessage:c})]})};var om,rm;!function(e){e.S="s",e.L="l"}(om||(om={})),function(e){e.Filled="filled",e.Underline="underline"}(rm||(rm={}));const im=Yt.div`
1696
+ `,om=({label:e,required:t,tooltip:o,badge:r,leftIcon:i,rightIcon:n,hasError:a,errorMessage:s,warnMessage:l,helpMessage:c,type:d=Xo.Text,name:p,value:u,onChange:h,disabled:m,maxWidth:g,width:f,small:x=!1,onClick:y,...b})=>{const $=Zt(),v=d===Xo.Password,[w,S]=Pt(!1),[C,k]=Pt(null),E=a||!!s||!!C,A=u?$.v2.colors.white[500]:m?$.v2.colors.grey[400]:$.v2.colors.silver[200],D=x?14:18;return Rt(Pi,{$width:f,$gap:6,children:[Ot(Yh,{label:e,tooltip:o,required:t,badge:r}),Rt(Zh,{$small:x,$disabled:m,$error:E,onClick:y,children:[i?Ot(i,{size:D,fill:A}):null,Ot(em,{"data-id":p,type:w||d===Xo.Number?Xo.Text:d,name:p,value:u,onChange:e=>{e.stopPropagation();const t=e.target.value;d===Xo.Number&&(e.target.value=ki(t),t&&t!==e.target.value?k("Please enter a valid number"):k(null)),h?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:m,$maxWidth:g,$width:f,$small:x,...b}),v?Ot(tm,{onClick:()=>S(e=>!e),children:Ot(w?yt:bt,{size:D,fill:A})}):n?Ot(n,{size:D,fill:A}):null]}),Ot(Qh,{errorMessage:C||s,warnMessage:l,helpMessage:c})]})};var rm,im;!function(e){e.S="s",e.L="l"}(rm||(rm={})),function(e){e.Filled="filled",e.Underline="underline"}(im||(im={}));const nm=Yt.div`
1697
1697
  display: flex;
1698
1698
  align-items: center;
1699
1699
  gap: 2px;
@@ -1701,20 +1701,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1701
1701
  border-radius: 8px;
1702
1702
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1703
1703
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1704
- `,nm=Yt.button`
1704
+ `,am=Yt.button`
1705
1705
  flex: 1;
1706
1706
  display: flex;
1707
1707
  align-items: center;
1708
1708
  justify-content: center;
1709
1709
  gap: 8px;
1710
- padding: ${({$size:e})=>e===om.S?"4px 8px":"8px 16px"};
1710
+ padding: ${({$size:e})=>e===rm.S?"4px 8px":"8px 16px"};
1711
1711
  border-radius: 6px;
1712
1712
  border: none;
1713
1713
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1714
1714
 
1715
1715
  ${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:r})=>e?Qt`
1716
1716
  cursor: not-allowed;
1717
- background-color: ${t?(o||r.v2.colors.black[500])+_s["040"]:"transparent"};
1717
+ background-color: ${t?(o||r.v2.colors.black[500])+Os["040"]:"transparent"};
1718
1718
  `:Qt`
1719
1719
  cursor: pointer;
1720
1720
  background-color: ${t?o||r.v2.colors.black[500]:"transparent"};
@@ -1722,10 +1722,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1722
1722
  background-color: ${t?o||r.v2.colors.black[500]:r.v2.colors.silver[800]};
1723
1723
  }
1724
1724
  `}
1725
- `,am=Yt.div`
1725
+ `,sm=Yt.div`
1726
1726
  display: flex;
1727
1727
  align-items: stretch;
1728
- `,sm=Yt.button`
1728
+ `,lm=Yt.button`
1729
1729
  display: flex;
1730
1730
  height: 34px;
1731
1731
  padding: 8px 12px 8px 16px;
@@ -1744,7 +1744,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1744
1744
  &:hover {
1745
1745
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
1746
1746
  }
1747
- `,lm=({"data-id":e,size:t=om.L,variant:o=rm.Filled,options:r=[],selected:i,setSelected:n,disabled:a})=>{const s=Zt(),l=o===rm.Underline,c=l?sm:nm;return Ot(l?am:im,{"data-id":e,children:r.map(({value:e,label:o,icon:r,tooltip:d,selectedBgColor:p,disabled:u},h)=>{const m=i===e,g=u||a,f=g?s.v2.colors.grey[400]:l||m?s.v2.colors.white[500]:s.v2.colors.grey[300],x=t===om.S?Gi.XXS:Gi.XS,y=m?500:400,b=Rt(Ft,{children:[r&&Ot(r,{fill:f}),o&&Ot(Ki,{size:x,weight:y,color:f,nowrap:!0,children:o})]});return Ot(c,{onClick:()=>!g&&n(e),$disabled:g,$isSelected:m,$size:t,...!l&&{$selectedBgColor:p},children:d?Ot(Zl,{text:d,withIcon:!0,children:b}):b},`segment-${o||h}-${e}`)})})},cm=Yt.div`
1747
+ `,cm=({"data-id":e,size:t=rm.L,variant:o=im.Filled,options:r=[],selected:i,setSelected:n,disabled:a})=>{const s=Zt(),l=o===im.Underline,c=l?lm:am;return Ot(l?sm:nm,{"data-id":e,children:r.map(({value:e,label:o,icon:r,tooltip:d,selectedBgColor:p,disabled:u},h)=>{const m=i===e,g=u||a,f=g?s.v2.colors.grey[400]:l||m?s.v2.colors.white[500]:s.v2.colors.grey[300],x=t===rm.S?Vi.XXS:Vi.XS,y=m?500:400,b=Rt(Ft,{children:[r&&Ot(r,{fill:f}),o&&Ot(qi,{size:x,weight:y,color:f,nowrap:!0,children:o})]});return Ot(c,{onClick:()=>!g&&n(e),$disabled:g,$isSelected:m,$size:t,...!l&&{$selectedBgColor:p},children:d?Ot(ec,{text:d,withIcon:!0,children:b}):b},`segment-${o||h}-${e}`)})})},dm=Yt.div`
1748
1748
  box-sizing: border-box !important;
1749
1749
  width: ${({$width:e})=>e??"fit-content"};
1750
1750
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -1758,7 +1758,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1758
1758
  border: none;
1759
1759
  border-radius: 6px;
1760
1760
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:o,$emphasizeBackgroundColor:r,theme:i})=>{const n=o??i.v2.colors.silver[800],a=r??i.v2.colors.silver[700];return e||t?a:n}};
1761
- `,dm=Yt.input`
1761
+ `,pm=Yt.input`
1762
1762
  min-width: 0;
1763
1763
  flex: 1;
1764
1764
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -1775,11 +1775,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1775
1775
  overflow: hidden;
1776
1776
  text-overflow: ellipsis;
1777
1777
  white-space: nowrap;
1778
- `,pm=({"data-id":e,value:t,onChange:o,placeholder:r,width:i,segment:n,idleBackgroundColor:a,emphasizeBackgroundColor:s})=>{const l=Zt(),[c,d]=Pt(!1),[p,u]=Pt(!1),[h,m]=Pt(!1),g=c?l.v2.colors.white[500]:l.v2.colors.silver[200],f=!!n?.options?.length,x=Lt(()=>{if(f)return n?.options.find(e=>e.value===n.selected)?.label},[f,n?.options,n?.selected]),y=Lt(()=>r||(f&&x?`Search by ${x.toLowerCase()}`:"Search..."),[r,f,x]);return Rt(cm,{$width:i,$withSegment:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),$isHovered:p&&!h,$isActive:c,$idleBackgroundColor:a,$emphasizeBackgroundColor:s,children:[Ot($t,{size:18,fill:g}),Ot(dm,{"data-id":e??"search",name:"search",type:"text",placeholder:y,value:t,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>d(!0),onBlur:()=>d(!1),$textColor:g}),f&&Ot("div",{style:{flexShrink:0},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:Ot(lm,{"data-id":n["data-id"],options:n.options,selected:n.selected,setSelected:n.setSelected,size:om.S})})]})},um=Yt.div`
1778
+ `,um=({"data-id":e,value:t,onChange:o,placeholder:r,width:i,segment:n,idleBackgroundColor:a,emphasizeBackgroundColor:s})=>{const l=Zt(),[c,d]=Pt(!1),[p,u]=Pt(!1),[h,m]=Pt(!1),g=c?l.v2.colors.white[500]:l.v2.colors.silver[200],f=!!n?.options?.length,x=Lt(()=>{if(f)return n?.options.find(e=>e.value===n.selected)?.label},[f,n?.options,n?.selected]),y=Lt(()=>r||(f&&x?`Search by ${x.toLowerCase()}`:"Search..."),[r,f,x]);return Rt(dm,{$width:i,$withSegment:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),$isHovered:p&&!h,$isActive:c,$idleBackgroundColor:a,$emphasizeBackgroundColor:s,children:[Ot($t,{size:18,fill:g}),Ot(pm,{"data-id":e??"search",name:"search",type:"text",placeholder:y,value:t,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>d(!0),onBlur:()=>d(!1),$textColor:g}),f&&Ot("div",{style:{flexShrink:0},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:Ot(cm,{"data-id":n["data-id"],options:n.options,selected:n.selected,setSelected:n.setSelected,size:rm.S})})]})},hm=Yt.div`
1779
1779
  border-radius: 100%;
1780
1780
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1781
1781
  position: relative;
1782
- `,hm=Yt.div`
1782
+ `,mm=Yt.div`
1783
1783
  width: 80px;
1784
1784
  height: 80px;
1785
1785
  border-radius: 100%;
@@ -1793,12 +1793,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1793
1793
  transform: rotate(360deg);
1794
1794
  }
1795
1795
  }
1796
- `,mm=Yt(Ki)`
1796
+ `,gm=Yt(qi)`
1797
1797
  position: absolute;
1798
1798
  top: 50%;
1799
1799
  left: 50%;
1800
1800
  transform: translate(-50%, -50%);
1801
- `,gm=({percentage:e})=>Rt(um,{children:[Ot(hm,{}),"number"==typeof e?Ot(mm,{size:Gi.M,weight:500,children:`${e}%`}):null]}),fm={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 xm(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return fm[r]?{value:t,unit:r}:{value:t,unit:"px"}}function ym(e){const t=xm(e);return`${t.value}${t.unit}`}const bm=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),$m=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=xm(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:ym(1.5),height:ym(4),borderRadius:ym(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${bm} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},vm=Yt.div`
1801
+ `,fm=({percentage:e})=>Rt(hm,{children:[Ot(mm,{}),"number"==typeof e?Ot(gm,{size:Vi.M,weight:500,children:`${e}%`}):null]}),xm={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 ym(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return xm[r]?{value:t,unit:r}:{value:t,unit:"px"}}function bm(e){const t=ym(e);return`${t.value}${t.unit}`}const $m=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),vm=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=ym(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:bm(1.5),height:bm(4),borderRadius:bm(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${$m} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},wm=Yt.div`
1802
1802
  width: ${({$size:e})=>e}px;
1803
1803
  height: ${({$size:e})=>e}px;
1804
1804
  border-radius: 100%;
@@ -1806,7 +1806,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1806
1806
  display: flex;
1807
1807
  align-items: center;
1808
1808
  justify-content: center;
1809
- `,wm=({scale:e,icon:t})=>{const o=Zt();return Ot(vm,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:Ot(vm,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:Ot(vm,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:Ot(vm,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:Ot(vm,{$size:23*e,$color:"#50F6E8",children:Ot(t,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},Sm=434,Cm=635,km=Yt.div`
1809
+ `,Sm=({scale:e,icon:t})=>{const o=Zt();return Ot(wm,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:Ot(wm,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:Ot(wm,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:Ot(wm,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:Ot(wm,{$size:23*e,$color:"#50F6E8",children:Ot(t,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},Cm=434,km=635,Em=Yt.div`
1810
1810
  width: ${434}px;
1811
1811
  height: ${635}px;
1812
1812
  display: flex;
@@ -1816,25 +1816,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1816
1816
  padding: 16px;
1817
1817
  background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
1818
1818
  position: relative;
1819
- `,Em=Yt.div`
1819
+ `,Am=Yt.div`
1820
1820
  position: absolute;
1821
1821
  top: 50%;
1822
1822
  left: 50%;
1823
1823
  transform: translate(-50%, -50%);
1824
- `,Am=()=>Rt(km,{children:[Ot(Em,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Ot(Em,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Ot("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Ot("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Em,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Em,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Em,{children:Ot(G,{size:112})})]}),Dm=to`
1824
+ `,Dm=()=>Rt(Em,{children:[Ot(Am,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Ot(Am,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Ot("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Ot("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Am,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Am,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Am,{children:Ot(G,{size:112})})]}),Tm=to`
1825
1825
  0% {
1826
1826
  background-position: 0% 50%;
1827
1827
  }
1828
1828
  100% {
1829
1829
  background-position: 100% 50%;
1830
1830
  }
1831
- `,Tm=Yt(Ki)`
1831
+ `,Nm=Yt(qi)`
1832
1832
  background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1833
1833
  background-size: 250% 100%; /* Expand background to allow movement */
1834
1834
  background-clip: text;
1835
1835
  color: transparent;
1836
- animation: ${Dm} 1s reverse linear infinite;
1837
- `,Nm=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),r=Math.floor(o/60),i=o%60;return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`},Im=({icon:e,title:t,titleColor:o,titleSize:r=Gi.S,subTitle:i,subTitleColor:n,subTitleSize:a=Gi.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=kt})=>{const f=Zt(),[x,y]=Pt(()=>s?Nm(s):"");Mt(()=>{if(!s)return;y(Nm(s));const e=setInterval(()=>y(Nm(s)),1e3);return()=>clearInterval(e)},[s]);const b=o||f.v2.colors.white[500],$=n||f.v2.colors.silver[200],v=c||f.v2.colors.black[500];return Rt(Li,{$gap:16,$alignItems:"center",children:[m?Ot(wm,{scale:1.7,icon:g}):d?Ot(gm,{percentage:h}):p?Ot($m,{scale:u}):null,(t||i||s||e)&&Rt(Li,{$gap:8,$alignItems:"center",children:[Rt(zi,{$gap:4,children:[e&&Ot(e,{}),l?Ot(Tm,{align:"center",size:r,$titleColor:b,$gradientColor:v,children:t}):Ot(Ki,{align:"center",size:r,color:b,children:t})]}),i?Ot(Ki,{align:"center",size:a,color:$,children:i}):null,x?Ot(Ki,{align:"center",size:a,color:b,children:x}):null]})]})};var _m,Om;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(_m||(_m={})),function(e){e.S="small",e.M="medium",e.L="large"}(Om||(Om={}));const Rm=Yt.button`
1836
+ animation: ${Tm} 1s reverse linear infinite;
1837
+ `,Im=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),r=Math.floor(o/60),i=o%60;return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`},_m=({icon:e,title:t,titleColor:o,titleSize:r=Vi.S,subTitle:i,subTitleColor:n,subTitleSize:a=Vi.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=kt})=>{const f=Zt(),[x,y]=Pt(()=>s?Im(s):"");Mt(()=>{if(!s)return;y(Im(s));const e=setInterval(()=>y(Im(s)),1e3);return()=>clearInterval(e)},[s]);const b=o||f.v2.colors.white[500],$=n||f.v2.colors.silver[200],v=c||f.v2.colors.black[500];return Rt(Pi,{$gap:16,$alignItems:"center",children:[m?Ot(Sm,{scale:1.7,icon:g}):d?Ot(fm,{percentage:h}):p?Ot(vm,{scale:u}):null,(t||i||s||e)&&Rt(Pi,{$gap:8,$alignItems:"center",children:[Rt(Li,{$gap:4,children:[e&&Ot(e,{}),l?Ot(Nm,{align:"center",size:r,$titleColor:b,$gradientColor:v,children:t}):Ot(qi,{align:"center",size:r,color:b,children:t})]}),i?Ot(qi,{align:"center",size:a,color:$,children:i}):null,x?Ot(qi,{align:"center",size:a,color:b,children:x}):null]})]})};var Om,Rm;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Om||(Om={})),function(e){e.S="small",e.M="medium",e.L="large"}(Rm||(Rm={}));const Fm=Yt.button`
1838
1838
  display: flex;
1839
1839
  align-items: center;
1840
1840
  justify-content: center;
@@ -1844,14 +1844,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1844
1844
  `}
1845
1845
  border: none;
1846
1846
  border-radius: 6px;
1847
- ${({$size:e,$hasLabel:t})=>e===Om.S?Qt`
1847
+ ${({$size:e,$hasLabel:t})=>e===Rm.S?Qt`
1848
1848
  height: 32px;
1849
1849
  ${t?Qt`
1850
1850
  padding: 8px 16px;
1851
1851
  `:Qt`
1852
1852
  width: 32px;
1853
1853
  `}
1854
- `:e===Om.M?Qt`
1854
+ `:e===Rm.M?Qt`
1855
1855
  height: 38px;
1856
1856
  ${t?Qt`
1857
1857
  padding: 8px 18px;
@@ -1876,7 +1876,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1876
1876
  ${({$withShadow:e})=>e?Qt`
1877
1877
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1878
1878
  `:""}
1879
- ${({$variant:e})=>e===_m.Primary?Qt`
1879
+ ${({$variant:e})=>e===Om.Primary?Qt`
1880
1880
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1881
1881
  &:hover {
1882
1882
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -1884,7 +1884,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1884
1884
  &:active {
1885
1885
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1886
1886
  }
1887
- `:e===_m.Secondary?Qt`
1887
+ `:e===Om.Secondary?Qt`
1888
1888
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1889
1889
  &:hover {
1890
1890
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -1892,7 +1892,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1892
1892
  &:active {
1893
1893
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1894
1894
  }
1895
- `:e===_m.Text?Qt`
1895
+ `:e===Om.Text?Qt`
1896
1896
  background-color: transparent;
1897
1897
  &:hover {
1898
1898
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -1902,7 +1902,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1902
1902
  }
1903
1903
  `:""}
1904
1904
  }
1905
- `,Fm=Ht(({"data-id":e,label:t,tooltip:o,leftIcon:r,rightIcon:i,variant:n=_m.Primary,size:a=Om.M,iconSize:s,loading:l,fullWidth:c,withShadow:d,textColor:p,disabled:u,onClick:h,...m},g)=>{const f=Zt(),x=s||(a===Om.L?18:16),y=a===Om.L?Gi.S:Gi.XS,b=p||(u?f.v2.colors.grey[400]:f.v2.colors.white[500]),[$,v]=Pt(!1),w=Ut(async e=>{e.stopPropagation(),v(!0),await(h?.(e)),v(!1)},[h]);return Ot(Rm,{ref:g,"data-id":e,$variant:n,$size:a,$fullWidth:c,$withShadow:d,$hasLabel:!!t,disabled:u,onClick:l||$?void 0:w,...m,children:Ot(Zl,{text:o,withIcon:!0,children:l||$?t?Ot(Yu,{size:f.v2.text.size[y],textColor:b}):Ot(Mc,{}):Rt(Ft,{children:[r&&Ot(r,{size:x,fill:b}),t?Ot(Ki,{size:y,weight:500,color:b,nowrap:!0,children:t}):null,i&&Ot(i,{size:x,fill:b})]})})})});Fm.displayName=Fm.name;const zm=Yt.div`
1905
+ `,zm=Ht(({"data-id":e,label:t,tooltip:o,hideTooltipIcon:r,leftIcon:i,rightIcon:n,variant:a=Om.Primary,size:s=Rm.M,iconSize:l,loading:c,fullWidth:d,withShadow:p,textColor:u,disabled:h,onClick:m,...g},f)=>{const x=Zt(),y=l||(s===Rm.L?18:16),b=s===Rm.L?Vi.S:Vi.XS,$=u||(h?x.v2.colors.grey[400]:x.v2.colors.white[500]),[v,w]=Pt(!1),S=Ut(async e=>{e.stopPropagation(),w(!0),await(m?.(e)),w(!1)},[m]);return Ot(Fm,{ref:f,"data-id":e,$variant:a,$size:s,$fullWidth:d,$withShadow:p,$hasLabel:!!t,disabled:h,onClick:c||v?void 0:S,...g,children:Ot(ec,{text:o,withIcon:!r,children:c||v?t?Ot(Qu,{size:x.v2.text.size[b],textColor:$}):Ot(Bc,{}):Rt(Ft,{children:[i&&Ot(i,{size:y,fill:$}),t?Ot(qi,{size:b,weight:500,color:$,nowrap:!0,children:t}):null,n&&Ot(n,{size:y,fill:$})]})})})});zm.displayName=zm.name;const Lm=Yt.div`
1906
1906
  display: flex;
1907
1907
  align-items: center;
1908
1908
  justify-content: center;
@@ -1911,28 +1911,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1911
1911
  padding: 8px;
1912
1912
  border-radius: 100%;
1913
1913
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1914
- `,Lm=({icon:e=ct,title:t="No data",subTitle:o,button:r})=>{const i=Zt().v2.colors.silver[200];return Rt(Li,{$gap:12,$alignItems:"center",children:[Ot(zm,{children:Ot(e,{size:32,fill:i})}),Rt(Li,{$gap:4,$alignItems:"center",children:[Ot(Ki,{size:Gi.S,align:"center",children:t}),o&&Ot(Ki,{size:Gi.XXS,align:"center",color:i,children:o})]}),r&&Ot(Fm,{variant:_m.Secondary,...r})]})};var Pm;!function(e){e.S="small",e.L="large"}(Pm||(Pm={}));const Mm=Yt.div`
1914
+ `,Pm=({icon:e=ct,title:t="No data",subTitle:o,button:r})=>{const i=Zt().v2.colors.silver[200];return Rt(Pi,{$gap:12,$alignItems:"center",children:[Ot(Lm,{children:Ot(e,{size:32,fill:i})}),Rt(Pi,{$gap:4,$alignItems:"center",children:[Ot(qi,{size:Vi.S,align:"center",children:t}),o&&Ot(qi,{size:Vi.XXS,align:"center",color:i,children:o})]}),r&&Ot(zm,{variant:Om.Secondary,...r})]})};var Mm;!function(e){e.S="small",e.L="large"}(Mm||(Mm={}));const Bm=Yt.div`
1915
1915
  width: fit-content;
1916
1916
  display: flex;
1917
1917
  align-items: center;
1918
1918
  gap: 8px;
1919
1919
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1920
- `,Bm=Yt.div`
1921
- width: ${({$size:e})=>e===Pm.S?"16px":"20px"};
1922
- height: ${({$size:e})=>e===Pm.S?"16px":"20px"};
1920
+ `,Um=Yt.div`
1921
+ width: ${({$size:e})=>e===Mm.S?"16px":"20px"};
1922
+ height: ${({$size:e})=>e===Mm.S?"16px":"20px"};
1923
1923
  display: flex;
1924
1924
  align-items: center;
1925
1925
  justify-content: center;
1926
1926
  border-radius: 4px;
1927
1927
  border: 1px solid ${({$borderColor:e})=>e};
1928
1928
  background-color: ${({$backgroundColor:e})=>e};
1929
- `,Um=({name:e,label:t,tooltip:o,badge:r,size:i=Pm.L,disabled:n,partiallyChecked:a,value:s,onChange:l,errorMessage:c,warnMessage:d,helpMessage:p})=>{const u=Zt(),[h,m]=Pt(!1),g=a||s,f=i===Pm.S?12:16,x=n?u.v2.colors.grey[400]:u.v2.colors.white[500],y=g?"transparent":n?u.v2.colors.grey[700]:h?u.v2.colors.silver[400]:u.v2.colors.silver[600],b=n?u.v2.colors.grey[600]:g?u.v2.colors.purple[500]:u.v2.colors.silver[900];return Rt(Li,{$gap:4,children:[Rt(zi,{$justifyContent:"space-between",children:[Rt(Mm,{"data-id":e||"checkbox"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),n||l(!!a||!s)},$disabled:n,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[Ot(Bm,{$size:i,$borderColor:y,$backgroundColor:b,children:a?Ot(dt,{size:f,fill:x}):s?Ot(st,{size:f,fill:x}):null}),t&&Ot(Ki,{size:i===Pm.S?Gi.XXS:Gi.XS,nowrap:!0,children:t})]}),Ot(Jh,{tooltip:o,badge:r})]}),Ot(Yh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},jm=Yt.div`
1929
+ `,jm=({name:e,label:t,tooltip:o,badge:r,size:i=Mm.L,disabled:n,partiallyChecked:a,value:s,onChange:l,errorMessage:c,warnMessage:d,helpMessage:p})=>{const u=Zt(),[h,m]=Pt(!1),g=a||s,f=i===Mm.S?12:16,x=n?u.v2.colors.grey[400]:u.v2.colors.white[500],y=g?"transparent":n?u.v2.colors.grey[700]:h?u.v2.colors.silver[400]:u.v2.colors.silver[600],b=n?u.v2.colors.grey[600]:g?u.v2.colors.purple[500]:u.v2.colors.silver[900];return Rt(Pi,{$gap:4,children:[Rt(Li,{$justifyContent:"space-between",children:[Rt(Bm,{"data-id":e||"checkbox"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),n||l(!!a||!s)},$disabled:n,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[Ot(Um,{$size:i,$borderColor:y,$backgroundColor:b,children:a?Ot(dt,{size:f,fill:x}):s?Ot(st,{size:f,fill:x}):null}),t&&Ot(qi,{size:i===Mm.S?Vi.XXS:Vi.XS,nowrap:!0,children:t})]}),Ot(Yh,{tooltip:o,badge:r})]}),Ot(Qh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},Wm=Yt.div`
1930
1930
  display: flex;
1931
1931
  flex-direction: ${({$direction:e})=>e===Fo.Horizontal?"row":"column"};
1932
1932
  gap: ${({$direction:e})=>e===Fo.Horizontal?16:8}px;
1933
- `,Wm=({direction:e=Fo.Vertical,title:t,size:o,disabled:r,withSelectAll:i,options:n,values:a,setValues:s})=>{const l=o===Pm.S?Gi.XXS:Gi.XS,c=Lt(()=>n.every(e=>a[e.id]),[n,a]),d=Lt(()=>n.some(e=>a[e.id])&&n.some(e=>!a[e.id]),[n,a]),p=(e,t)=>{s(o=>{const r={...o};return e?r[e]=t:n.forEach(e=>r[e.id]=t),r})};return Rt(jm,{$direction:e,children:[t&&i?Ot(Um,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?Ot(Ki,{size:l,children:t}):null,n.map(e=>Ot(Um,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:r,size:o},`${t}-checkbox-${e.id}`))]})};var Hm,Xm;!function(e){e.Left="left",e.Right="right"}(Hm||(Hm={})),function(e){e.Top="top",e.Bottom="bottom"}(Xm||(Xm={}));const Gm=Yt.div`
1933
+ `,Hm=({direction:e=Fo.Vertical,title:t,size:o,disabled:r,withSelectAll:i,options:n,values:a,setValues:s})=>{const l=o===Mm.S?Vi.XXS:Vi.XS,c=Lt(()=>n.every(e=>a[e.id]),[n,a]),d=Lt(()=>n.some(e=>a[e.id])&&n.some(e=>!a[e.id]),[n,a]),p=(e,t)=>{s(o=>{const r={...o};return e?r[e]=t:n.forEach(e=>r[e.id]=t),r})};return Rt(Wm,{$direction:e,children:[t&&i?Ot(jm,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?Ot(qi,{size:l,children:t}):null,n.map(e=>Ot(jm,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:r,size:o},`${t}-checkbox-${e.id}`))]})};var Xm,Gm;!function(e){e.Left="left",e.Right="right"}(Xm||(Xm={})),function(e){e.Top="top",e.Bottom="bottom"}(Gm||(Gm={}));const Vm=Yt.div`
1934
1934
  position: relative;
1935
- `,Vm=Yt.div`
1935
+ `,Km=Yt.div`
1936
1936
  display: flex;
1937
1937
  flex-direction: column;
1938
1938
  gap: 0;
@@ -1946,9 +1946,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1946
1946
 
1947
1947
  position: absolute;
1948
1948
  ${({$alignX:e})=>`${e}: 0;`}
1949
- ${({$alignY:e,$withOffsetY:t})=>`${e===Xm.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
1949
+ ${({$alignY:e,$withOffsetY:t})=>`${e===Gm.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
1950
1950
  z-index: 1;
1951
- `,Km=Yt.div`
1951
+ `,qm=Yt.div`
1952
1952
  display: flex;
1953
1953
  flex-direction: column;
1954
1954
  gap: 0;
@@ -1956,7 +1956,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1956
1956
  width: 100%;
1957
1957
  max-height: ${({$maxHeight:e})=>e||"230px"};
1958
1958
  overflow-y: auto;
1959
- `,qm=Yt.div`
1959
+ `,Jm=Yt.div`
1960
1960
  display: flex;
1961
1961
  align-items: center;
1962
1962
  gap: 8px;
@@ -1972,7 +1972,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1972
1972
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1973
1973
  }
1974
1974
  `}
1975
- `,Jm=({defaultOpen:e,open:t,onOpenChange:o,alignX:r,alignY:i,items:n,selectedIds:a,setSelectedIds:s,withMultiSelect:l,withSearch:c,fullWidth:d,maxHeight:p,buttonProps:u,iconButtonProps:h,isLoading:m,emptyMessage:g,children:f})=>{const x=Zt(),y=void 0!==t,b=!!u||!!h||!!f,[$,v]=Pt(e??!b),w=y?t:$,S=Ut(e=>{y||v(e),o?.(e)},[y,o]),[C,k]=Pt({x:r||Hm.Left,y:i||Xm.Bottom}),E=e=>{S(!w),k({x:r||(e.clientX>window.innerWidth/2?Hm.Right:Hm.Left),y:i||(e.clientY>window.innerHeight/2?Xm.Top:Xm.Bottom)})},A=e=>{s(l?a.includes(e)?a.filter(t=>t!==e):[...a,e]:[e]),b&&!l&&S(!1)},D=Bt(null);cl(D,()=>S(!1));const[T,N]=Pt(""),I=Lt(()=>T?n.filter(e=>e?.label?.toLowerCase().includes(T.toLowerCase())):n,[n.length,T]);return Rt(Gm,{ref:D,children:[u&&Ot(Fm,{...u,fullWidth:d,rightIcon:w?Et:At,onClick:E}),h&&Ot(tl,{...h,onClick:E}),"function"==typeof f?f({ChevronIcon:w?Et:At,handleClick:E}):f,w&&Rt(Vm,{$alignX:C.x,$alignY:C.y,$fullWidth:d,$withOffsetY:b,children:[c&&Ot(pm,{value:T,onChange:N,width:"100%"}),m?Ot(Im,{withSpinner:!0,title:"Loading...",titleSize:Gi.XS}):0===I.length&&g?Ot(Lm,{subTitle:g}):Ot(Km,{$maxHeight:p,children:I.map(e=>{if(!e)return null;const{id:t,label:o,icon:r,withCheckbox:i}=e,n=a.includes(t);return Rt(qm,{"data-id":`option-${t}`,$selected:n&&!i,onClick:()=>A(t),children:[i&&Ot(Um,{value:n,onChange:()=>A(t)}),r&&Ot(r,{size:14,fill:x.v2.colors.white[500]}),Ot(Ki,{size:Gi.XS,nowrap:!0,children:o})]},t)})}),l&&Ot(Fm,{label:"Done",onClick:()=>S(!1)})]})]})},Ym=({"data-id":e,options:t,value:o,onSelect:r,placeholder:i="Search...",isLoading:n})=>{const[a,s]=Pt(""),[l,c]=Pt(!1),d=Lt(()=>o?t.find(e=>e.id===o)?.label??"":"",[o,t]),p=l?a:d,u=Lt(()=>{if(!a)return t;const e=a.toLowerCase();return t.filter(t=>t.label.toLowerCase().includes(e))},[t,a]),h=Ut(()=>{s(""),c(!0)},[]),m=Ut(e=>{s(e.target.value),l||c(!0),!e.target.value&&o&&r(null)},[l,o,r]),g=Ut(e=>{c(e),e||s("")},[]),f=Ut(e=>{const o=t.find(t=>t.id===e[0]);o&&(r(o),s(""),c(!1))},[t,r]),x=l&&(n||u.length>0||a.length>0);return Ot(Jm,{open:x,onOpenChange:g,items:u,selectedIds:o?[o]:[],setSelectedIds:f,isLoading:n,emptyMessage:"No results found",fullWidth:!0,alignY:Xm.Bottom,children:Ot(tm,{name:e,leftIcon:$t,placeholder:i,value:p,onChange:m,onFocus:h})})},Qm=Yt.button`
1975
+ `,Ym=({defaultOpen:e,open:t,onOpenChange:o,alignX:r,alignY:i,items:n,selectedIds:a,setSelectedIds:s,withMultiSelect:l,withSearch:c,fullWidth:d,maxHeight:p,buttonProps:u,iconButtonProps:h,isLoading:m,emptyMessage:g,children:f})=>{const x=Zt(),y=void 0!==t,b=!!u||!!h||!!f,[$,v]=Pt(e??!b),w=y?t:$,S=Ut(e=>{y||v(e),o?.(e)},[y,o]),[C,k]=Pt({x:r||Xm.Left,y:i||Gm.Bottom}),E=e=>{S(!w),k({x:r||(e.clientX>window.innerWidth/2?Xm.Right:Xm.Left),y:i||(e.clientY>window.innerHeight/2?Gm.Top:Gm.Bottom)})},A=e=>{s(l?a.includes(e)?a.filter(t=>t!==e):[...a,e]:[e]),b&&!l&&S(!1)},D=Bt(null);dl(D,()=>S(!1));const[T,N]=Pt(""),I=Lt(()=>T?n.filter(e=>e?.label?.toLowerCase().includes(T.toLowerCase())):n,[n.length,T]);return Rt(Vm,{ref:D,children:[u&&Ot(zm,{...u,fullWidth:d,rightIcon:w?Et:At,onClick:E}),h&&Ot(ol,{...h,onClick:E}),"function"==typeof f?f({ChevronIcon:w?Et:At,handleClick:E}):f,w&&Rt(Km,{$alignX:C.x,$alignY:C.y,$fullWidth:d,$withOffsetY:b,children:[c&&Ot(um,{value:T,onChange:N,width:"100%"}),m?Ot(_m,{withSpinner:!0,title:"Loading...",titleSize:Vi.XS}):0===I.length&&g?Ot(Pm,{subTitle:g}):Ot(qm,{$maxHeight:p,children:I.map(e=>{if(!e)return null;const{id:t,label:o,icon:r,withCheckbox:i}=e,n=a.includes(t);return Rt(Jm,{"data-id":`option-${t}`,$selected:n&&!i,onClick:()=>A(t),children:[i&&Ot(jm,{value:n,onChange:()=>A(t)}),r&&Ot(r,{size:14,fill:x.v2.colors.white[500]}),Ot(qi,{size:Vi.XS,nowrap:!0,children:o})]},t)})}),l&&Ot(zm,{label:"Done",onClick:()=>S(!1)})]})]})},Qm=({"data-id":e,options:t,value:o,onSelect:r,placeholder:i="Search...",isLoading:n})=>{const[a,s]=Pt(""),[l,c]=Pt(!1),d=Lt(()=>o?t.find(e=>e.id===o)?.label??"":"",[o,t]),p=l?a:d,u=Lt(()=>{if(!a)return t;const e=a.toLowerCase();return t.filter(t=>t.label.toLowerCase().includes(e))},[t,a]),h=Ut(()=>{s(""),c(!0)},[]),m=Ut(e=>{s(e.target.value),l||c(!0),!e.target.value&&o&&r(null)},[l,o,r]),g=Ut(e=>{c(e),e||s("")},[]),f=Ut(e=>{const o=t.find(t=>t.id===e[0]);o&&(r(o),s(""),c(!1))},[t,r]),x=l&&(n||u.length>0||a.length>0);return Ot(Ym,{open:x,onOpenChange:g,items:u,selectedIds:o?[o]:[],setSelectedIds:f,isLoading:n,emptyMessage:"No results found",fullWidth:!0,alignY:Gm.Bottom,children:Ot(om,{name:e,leftIcon:$t,placeholder:i,value:p,onChange:m,onFocus:h})})},Zm=Yt.button`
1976
1976
  width: 100%;
1977
1977
  padding: 0;
1978
1978
  padding-right: 12px;
@@ -1993,7 +1993,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
1993
1993
  cursor: not-allowed;
1994
1994
  opacity: 0.5;
1995
1995
  }
1996
- `,Zm=Yt.div`
1996
+ `,eg=Yt.div`
1997
1997
  width: ${({$hasIcon:e})=>e?"56px":"0"};
1998
1998
  height: 56px;
1999
1999
  display: flex;
@@ -2004,13 +2004,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2004
2004
  `:Qt`
2005
2005
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2006
2006
  `}
2007
- `,eg=Yt.div`
2007
+ `,tg=Yt.div`
2008
2008
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
2009
2009
  display: flex;
2010
2010
  justify-content: space-between;
2011
2011
  align-items: center;
2012
2012
  gap: 8px;
2013
- `,tg=({label:e,icon:t,loading:o,disabled:r,onClick:i})=>{const[n,a]=Pt(!1);return Rt(Qm,{$hovered:n,type:"button",disabled:r||o,onClick:i,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[Ot(Zm,{$hovered:n,$hasIcon:!!t,children:t&&Ot(t,{size:36})}),Rt(eg,{$hasIcon:!!t,children:[o?Ot(Yu,{size:16}):Ot(Ki,{variant:Xi.Span,align:"center",children:e}),Ot(Dt,{rotate:90,size:24})]})]})},og=({buttons:e})=>Ot(Li,{$gap:12,children:e.map(e=>Ot(tg,{...e},e.label))}),rg=Yt.div`
2013
+ `,og=({label:e,icon:t,loading:o,disabled:r,onClick:i})=>{const[n,a]=Pt(!1);return Rt(Zm,{$hovered:n,type:"button",disabled:r||o,onClick:i,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[Ot(eg,{$hovered:n,$hasIcon:!!t,children:t&&Ot(t,{size:36})}),Rt(tg,{$hasIcon:!!t,children:[o?Ot(Qu,{size:16}):Ot(qi,{variant:Gi.Span,align:"center",children:e}),Ot(Dt,{rotate:90,size:24})]})]})},rg=({buttons:e})=>Ot(Pi,{$gap:12,children:e.map(e=>Ot(og,{...e},e.label))}),ig=Yt.div`
2014
2014
  display: flex;
2015
2015
  align-items: center;
2016
2016
  flex-wrap: wrap;
@@ -2018,20 +2018,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2018
2018
  padding: 4px 12px;
2019
2019
  border-radius: 12px;
2020
2020
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2021
- `,ig=Yt.div`
2021
+ `,ng=Yt.div`
2022
2022
  width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
2023
2023
  margin: 8px;
2024
2024
  display: flex;
2025
2025
  flex-direction: column;
2026
2026
  gap: 4px;
2027
- `,ng=({cellsPerRow:e,items:t})=>{const o=Zt(),{CopyButton:r}=ol();return Ot(rg,{children:t.map(({id:i,title:n,label:a,withCopy:s,badge:l})=>Rt(ig,{$cellsPerRow:e||t.length,children:[Ot(Ki,{size:Gi.XXXS,color:o.v2.colors.silver[200],nowrap:!0,children:n}),Rt(zi,{$gap:4,children:[l&&Ot(Vh,{...l}),a&&Ot(Ki,{size:Gi.XS,nowrap:!0,children:a}),s&&Ot(r,{value:a||l?.label?.toString()||"",size:Zs.XS})]})]},i))})};var ag;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(ag||(ag={}));const sg=({onAnyClick:e,actions:t})=>Ot(zi,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case ag.Button:return Ot(Fm,{...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}},t.id);case ag.ButtonDropData:return Ot(Jm,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),lg=Yt.div`
2027
+ `,ag=({cellsPerRow:e,items:t})=>{const o=Zt(),{CopyButton:r}=rl();return Ot(ig,{children:t.map(({id:i,title:n,label:a,withCopy:s,badge:l})=>Rt(ng,{$cellsPerRow:e||t.length,children:[Ot(qi,{size:Vi.XXXS,color:o.v2.colors.silver[200],nowrap:!0,children:n}),Rt(Li,{$gap:4,children:[l&&Ot(Kh,{...l}),a&&Ot(qi,{size:Vi.XS,nowrap:!0,children:a}),s&&Ot(r,{value:a||l?.label?.toString()||"",size:el.XS})]})]},i))})};var sg;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(sg||(sg={}));const lg=({onAnyClick:e,actions:t})=>Ot(Li,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case sg.Button:return Ot(zm,{...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}},t.id);case sg.ButtonDropData:return Ot(Ym,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),cg=Yt.div`
2028
2028
  display: flex;
2029
2029
  align-items: center;
2030
2030
  justify-content: center;
2031
2031
  padding: 8px;
2032
2032
  border-radius: 8px;
2033
2033
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2034
- `,cg=({icon:e,title:t,subTitle:o,withCopy:r,badge:i,children:n})=>{const a=Zt(),{CopyButton:s}=ol();return Rt(zi,{$gap:o?8:6,$alignItems:"center",children:[e&&(o?Ot(lg,{children:Ot(e,{size:24})}):Ot(e,{size:24})),t||i||o?Rt(Li,{children:[t||i?Rt(zi,{$gap:6,$alignItems:"center",children:[t&&Ot(Ki,{nowrap:!0,children:t}),r&&t&&Ot(s,{value:t,size:Zs.XS}),i&&Ot(Vh,{...i})]}):null,o&&Ot(Ki,{size:Gi.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:o})]}):null,n]})};var dg;!function(e){e.S="small",e.M="medium"}(dg||(dg={}));const pg=Yt.div`
2034
+ `,dg=({icon:e,title:t,subTitle:o,withCopy:r,badge:i,children:n})=>{const a=Zt(),{CopyButton:s}=rl();return Rt(Li,{$gap:o?8:6,$alignItems:"center",children:[e&&(o?Ot(cg,{children:Ot(e,{size:24})}):Ot(e,{size:24})),t||i||o?Rt(Pi,{children:[t||i?Rt(Li,{$gap:6,$alignItems:"center",children:[t&&Ot(qi,{nowrap:!0,children:t}),r&&t&&Ot(s,{value:t,size:el.XS}),i&&Ot(Kh,{...i})]}):null,o&&Ot(qi,{size:Vi.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:o})]}):null,n]})};var pg;!function(e){e.S="small",e.M="medium"}(pg||(pg={}));const ug=Yt.div`
2035
2035
  display: flex;
2036
2036
  flex-direction: column;
2037
2037
  gap: ${({$gap:e})=>e}px;
@@ -2040,7 +2040,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2040
2040
  padding: ${({$padding:e})=>e}px;
2041
2041
  border-radius: 16px;
2042
2042
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2043
- `,ug=Ht(({id:e,size:t=dg.M,fullHeight:o=!1,richTitle:r,search:i,actions:n,children:a},s)=>{const l=t===dg.S?4:16,c=t===dg.S?12:16;return Rt(pg,{ref:s,id:e,"data-section-name":e,$padding:c,$gap:l,$fullHeight:o,children:[i||r||n?Rt(zi,{$gap:l,$justifyContent:"space-between",children:[i||r?Ot(cg,{...r,children:i&&Ot(pm,{...i})}):null,Ot(sg,{actions:n??[]})]}):null,a]})});ug.displayName="SectionCard";const hg=Yt.div`
2043
+ `,hg=Ht(({id:e,size:t=pg.M,fullHeight:o=!1,richTitle:r,search:i,actions:n,children:a},s)=>{const l=t===pg.S?4:16,c=t===pg.S?12:16;return Rt(ug,{ref:s,id:e,"data-section-name":e,$padding:c,$gap:l,$fullHeight:o,children:[i||r||n?Rt(Li,{$gap:l,$justifyContent:"space-between",children:[i||r?Ot(dg,{...r,children:i&&Ot(um,{...i})}):null,Ot(lg,{actions:n??[]})]}):null,a]})});hg.displayName="SectionCard";const mg=Yt.div`
2044
2044
  flex: 1;
2045
2045
  align-self: stretch;
2046
2046
  display: flex;
@@ -2049,7 +2049,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2049
2049
  padding: 16px;
2050
2050
  border-radius: 12px;
2051
2051
  background-color: ${({theme:e,$status:t})=>ti(e,t,t===qo.Unknown?"750":"500")};
2052
- `,mg=Yt.div`
2052
+ `,gg=Yt.div`
2053
2053
  display: flex;
2054
2054
  align-items: center;
2055
2055
  justify-content: center;
@@ -2057,8 +2057,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2057
2057
  height: fit-content;
2058
2058
  padding: 8px;
2059
2059
  border-radius: 12px;
2060
- background-color: ${({theme:e,$status:t})=>t===qo.Unknown?ti(e,t,"800"):ti(e,t,"900")+_s["015"]};
2061
- `,gg=({status:e,icon:t,title:o,description:r})=>{const i=Zt(),n=t??ri(e,i),a=[Go.Default,Go.Info,qo.Disabled,qo.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return Rt(hg,{$status:e,children:[Ot(mg,{$status:e,children:Ot(n,{size:32,fill:a})}),Rt(Li,{$gap:2,$justifyContent:"center",children:[Ot(Ki,{size:Gi.M,weight:500,color:a,nowrap:!0,children:o}),Ot(Ki,{size:Gi.XXS,weight:300,color:a,nowrap:!0,children:r})]})]})},fg=Yt.div`
2060
+ background-color: ${({theme:e,$status:t})=>t===qo.Unknown?ti(e,t,"800"):ti(e,t,"900")+Os["015"]};
2061
+ `,fg=({status:e,icon:t,title:o,description:r})=>{const i=Zt(),n=t??ri(e,i),a=[Go.Default,Go.Info,qo.Disabled,qo.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return Rt(mg,{$status:e,children:[Ot(gg,{$status:e,children:Ot(n,{size:32,fill:a})}),Rt(Pi,{$gap:2,$justifyContent:"center",children:[Ot(qi,{size:Vi.M,weight:500,color:a,nowrap:!0,children:o}),Ot(qi,{size:Vi.XXS,weight:300,color:a,nowrap:!0,children:r})]})]})},xg=Yt.div`
2062
2062
  flex: 1;
2063
2063
  align-self: stretch;
2064
2064
  display: flex;
@@ -2067,7 +2067,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2067
2067
  padding: 12px;
2068
2068
  border-radius: 12px;
2069
2069
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2070
- `,xg=["-","N/A"],yg=({title:e,cells:t})=>{const o=Zt();return Rt(fg,{children:[Ot(Ki,{size:Gi.XXS,color:o.v2.colors.grey[150],children:e}),Ot(zi,{$gap:32,children:t.map(t=>Rt(Li,{$gap:2,children:[!t.isLoading||t.value&&!xg.includes(t.value)?Ot(Ki,{size:t.label?Gi.M:Gi.L,children:t.value}):Ot(Mc,{scale:.9}),t.label&&Ot(Ki,{size:Gi.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},bg=Yt(zi)`
2070
+ `,yg=["-","N/A"],bg=({title:e,cells:t})=>{const o=Zt();return Rt(xg,{children:[Ot(qi,{size:Vi.XXS,color:o.v2.colors.grey[150],children:e}),Ot(Li,{$gap:32,children:t.map(t=>Rt(Pi,{$gap:2,children:[!t.isLoading||t.value&&!yg.includes(t.value)?Ot(qi,{size:t.label?Vi.M:Vi.L,children:t.value}):Ot(Bc,{scale:.9}),t.label&&Ot(qi,{size:Vi.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},$g=Yt(Li)`
2071
2071
  width: calc(100% - 20px);
2072
2072
  padding: 10px;
2073
2073
  border-radius: 6px;
@@ -2076,30 +2076,30 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2076
2076
  align-items: center;
2077
2077
  justify-content: space-between;
2078
2078
  gap: 12px;
2079
- `,$g=Yt.div`
2079
+ `,vg=Yt.div`
2080
2080
  position: relative;
2081
2081
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
2082
2082
  display: flex;
2083
2083
  align-items: center;
2084
2084
  gap: 4px;
2085
- `,vg=Yt.pre`
2085
+ `,wg=Yt.pre`
2086
2086
  flex: 1;
2087
2087
  margin: 0;
2088
2088
  padding: 0;
2089
2089
  font-size: 14px;
2090
2090
  color: #5ffb98; // TODO: add to theme
2091
2091
  overflow-x: auto;
2092
- `,wg=Yt.span`
2092
+ `,Sg=Yt.span`
2093
2093
  flex-shrink: 0;
2094
2094
  font-size: 14px;
2095
2095
  color: #5ffb98; // TODO: add to theme
2096
- `,Sg=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:r}=ol({onDone:o}),i=Bt(null),[n,a]=Pt(!1);return Mt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;a(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),Rt(bg,{children:[Rt($g,{$hideCopy:t,children:[Ot(vg,{ref:i,children:e}),n&&Ot(wg,{children:"..."})]}),!t&&Ot(r,{value:e,size:Zs.XS})]})},Cg=Yt.div`
2096
+ `,Cg=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:r}=rl({onDone:o}),i=Bt(null),[n,a]=Pt(!1);return Mt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;a(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),Rt($g,{children:[Rt(vg,{$hideCopy:t,children:[Ot(wg,{ref:i,children:e}),n&&Ot(Sg,{children:"..."})]}),!t&&Ot(r,{value:e,size:el.XS})]})},kg=Yt.div`
2097
2097
  display: flex;
2098
2098
  align-items: center;
2099
2099
  justify-content: space-between;
2100
2100
  width: 100%;
2101
2101
  overflow: hidden;
2102
- `,kg=Yt.div`
2102
+ `,Eg=Yt.div`
2103
2103
  display: flex;
2104
2104
  align-items: center;
2105
2105
  gap: 16px;
@@ -2107,7 +2107,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2107
2107
  min-width: 0;
2108
2108
  flex: 1;
2109
2109
  overflow: hidden;
2110
- `,Eg=Yt.div`
2110
+ `,Ag=Yt.div`
2111
2111
  display: flex;
2112
2112
  align-items: center;
2113
2113
  justify-content: center;
@@ -2116,12 +2116,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2116
2116
  height: 36px;
2117
2117
  border-radius: 8px;
2118
2118
  background: ${({theme:e})=>e.v2.colors.silver[800]};
2119
- `,Ag=Yt.div`
2119
+ `,Dg=Yt.div`
2120
2120
  display: flex;
2121
2121
  align-items: center;
2122
2122
  gap: 12px;
2123
2123
  flex-shrink: 0;
2124
- `,Dg=({icon:e,title:t,subTitle:o,actions:r,onClose:i,onCloseDisabled:n})=>Rt(Cg,{children:[Rt(kg,{children:[e&&Ot(Eg,{children:Ot(e,{size:24})}),(t||o)&&Rt(Li,{$gap:6,children:[t&&Ot(Ki,{size:Gi.S,weight:500,children:t}),o&&Ot(Ki,{size:Gi.XXS,children:o})]})]}),Rt(Ag,{children:[r?.length?Ot(tl,{icon:Tt,size:Zs.M,onClick:()=>alert("todo")}):null,i&&Ot(tl,{icon:ct,size:Zs.M,onClick:i,disabled:n})]})]}),Tg=Yt.div`
2124
+ `,Tg=({icon:e,title:t,subTitle:o,actions:r,onClose:i,onCloseDisabled:n})=>Rt(kg,{children:[Rt(Eg,{children:[e&&Ot(Ag,{children:Ot(e,{size:24})}),(t||o)&&Rt(Pi,{$gap:6,children:[t&&Ot(qi,{size:Vi.S,weight:500,children:t}),o&&Ot(qi,{size:Vi.XXS,children:o})]})]}),Rt(Dg,{children:[r?.length?Ot(ol,{icon:Tt,size:el.M,onClick:()=>alert("todo")}):null,i&&Ot(ol,{icon:ct,size:el.M,onClick:i,disabled:n})]})]}),Ng=Yt.div`
2125
2125
  display: flex;
2126
2126
  align-items: center;
2127
2127
  gap: 10px;
@@ -2131,7 +2131,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2131
2131
  padding: 4px 12px 4px 4px;
2132
2132
  border-radius: 8px;
2133
2133
  background-color: ${({theme:e,$status:t})=>ti(e,t,[Go.Info].includes(t)?"1000":"900")};
2134
- `,Ng=Yt.div`
2134
+ `,Ig=Yt.div`
2135
2135
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
2136
2136
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
2137
2137
  display: flex;
@@ -2139,23 +2139,23 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2139
2139
  justify-content: center;
2140
2140
  border-radius: 6px;
2141
2141
  background-color: ${({theme:e,$status:t})=>ti(e,t,[Go.Info].includes(t)?"900":"800")};
2142
- `,Ig=Yt.div`
2142
+ `,_g=Yt.div`
2143
2143
  margin-left: auto;
2144
2144
  margin-right: 8px;
2145
2145
  cursor: pointer;
2146
2146
  &:hover {
2147
2147
  transform: scale(1.2);
2148
2148
  }
2149
- `,_g=({status:e,message:t,action:o,fullWidth:r,smallIcon:i})=>{const n=Zt(),a=ri(e,n),s=ti(n,e,e===Go.Default?"300":e===Go.Info?"400":"500");return Rt(Tg,{$status:e,$fullWidth:r,children:[Ot("div",{children:Ot(Ng,{$status:e,$smallIcon:i,children:Ot(a,{size:i?18:24})})}),Ot(Ki,{color:s,size:Gi.XXXS,weight:400,children:t}),o&&Ot(Ig,{"data-id":o["data-id"],onClick:o.onClick,children:Ot(Ki,{color:s,size:Gi.XXS,weight:500,underline:!0,children:o.label})})]})},Og=Yt.div`
2149
+ `,Og=({status:e,message:t,action:o,fullWidth:r,smallIcon:i})=>{const n=Zt(),a=ri(e,n),s=ti(n,e,e===Go.Default?"300":e===Go.Info?"400":"500");return Rt(Ng,{$status:e,$fullWidth:r,children:[Ot("div",{children:Ot(Ig,{$status:e,$smallIcon:i,children:Ot(a,{size:i?18:24})})}),Ot(qi,{color:s,size:Vi.XXXS,weight:400,children:t}),o&&Ot(_g,{"data-id":o["data-id"],onClick:o.onClick,children:Ot(qi,{color:s,size:Vi.XXS,weight:500,underline:!0,children:o.label})})]})},Rg=Yt.div`
2150
2150
  display: flex;
2151
2151
  align-items: center;
2152
2152
  gap: 8px;
2153
2153
  padding: 4px 12px;
2154
- `,Rg=Yt.div`
2155
- flex: 1;
2156
2154
  `,Fg=Yt.div`
2155
+ flex: 1;
2156
+ `,zg=Yt.div`
2157
2157
  width: 150px;
2158
- `,zg=({note:e,actions:t,children:o})=>o?Ot(Og,{children:o}):Rt(Og,{children:[e&&Ot(_g,{...e}),Ot(Rg,{}),t?.map((e,t)=>Ot(Fg,{children:Ot(Fm,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${t}`))]}),Lg=Yt.div`
2158
+ `,Lg=({note:e,actions:t,children:o})=>o?Ot(Rg,{children:o}):Rt(Rg,{children:[e&&Ot(Og,{...e}),Ot(Fg,{}),t?.map((e,t)=>Ot(zg,{children:Ot(zm,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${t}`))]}),Pg=Yt.div`
2159
2159
  position: fixed;
2160
2160
  top: 0;
2161
2161
  bottom: 0;
@@ -2174,16 +2174,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2174
2174
  overflow: hidden;
2175
2175
 
2176
2176
  ${({$disableAnimation:e,$position:t})=>!e&&Qt`
2177
- animation-name: ${Rs.in[t]};
2177
+ animation-name: ${Fs.in[t]};
2178
2178
  `}
2179
- `,Pg=Yt.div`
2179
+ `,Mg=Yt.div`
2180
2180
  display: flex;
2181
2181
  flex-direction: column;
2182
2182
  gap: 12px;
2183
2183
 
2184
2184
  height: calc(100% - ${56}px);
2185
2185
  overflow-y: auto;
2186
- `,Mg=({isOpen:e,hideOverlay:t=!1,disableAnimation:o=!1,position:r="right",width:i="600px",header:n,footer:a,children:s})=>(qs(e),e?po(Rt(Ft,{children:[!t&&Ot(Bi,{onClick:n?.onCloseDisabled?void 0:n?.onClose}),Rt(Lg,{$position:r,$width:i,$disableAnimation:o,children:[n&&Ot(Dg,{...n}),Ot(Pg,{children:s}),a&&Ot(zg,{...a})]})]}),document.body):null),Bg=({options:e,values:t,setValues:o,withMultiSelect:r,withSearch:i,...n})=>{const a=Lt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[e,t]);return Ot(Jm,{withMultiSelect:r,withSearch:i,alignX:Hm.Left,items:e,selectedIds:t,setSelectedIds:o,children:({ChevronIcon:e,handleClick:t})=>Ot(tm,{placeholder:"Select options...",...n,rightIcon:e,value:a,onChange:()=>{},onClick:t})})},Ug=Yt.header`
2186
+ `,Bg=({isOpen:e,hideOverlay:t=!1,disableAnimation:o=!1,position:r="right",width:i="600px",header:n,footer:a,children:s})=>(Js(e),e?po(Rt(Ft,{children:[!t&&Ot(Ui,{onClick:n?.onCloseDisabled?void 0:n?.onClose}),Rt(Pg,{$position:r,$width:i,$disableAnimation:o,children:[n&&Ot(Tg,{...n}),Ot(Mg,{children:s}),a&&Ot(Lg,{...a})]})]}),document.body):null),Ug=({options:e,values:t,setValues:o,withMultiSelect:r,withSearch:i,...n})=>{const a=Lt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[e,t]);return Ot(Ym,{withMultiSelect:r,withSearch:i,alignX:Xm.Left,items:e,selectedIds:t,setSelectedIds:o,children:({ChevronIcon:e,handleClick:t})=>Ot(om,{placeholder:"Select options...",...n,rightIcon:e,value:a,onChange:()=>{},onClick:t})})},jg=Yt.header`
2187
2187
  position: relative;
2188
2188
  width: calc(100% - 36px);
2189
2189
  padding: 12px 18px;
@@ -2191,12 +2191,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2191
2191
  display: flex;
2192
2192
  align-items: center;
2193
2193
  justify-content: space-between;
2194
- `,jg=Yt(zi)`
2194
+ `,Wg=Yt(Li)`
2195
2195
  position: absolute;
2196
2196
  left: 50%;
2197
2197
  transform: translateX(-50%);
2198
2198
  gap: 16px;
2199
- `,Wg=({left:e=[],center:t=[],right:o=[]})=>Rt(Ug,{children:[Ot(zi,{$gap:16,children:e}),Ot(jg,{children:t}),Ot(zi,{$gap:16,children:o})]}),Hg=Yt.div`
2199
+ `,Hg=({left:e=[],center:t=[],right:o=[]})=>Rt(jg,{children:[Ot(Li,{$gap:16,children:e}),Ot(Wg,{children:t}),Ot(Li,{$gap:16,children:o})]}),Xg=Yt.div`
2200
2200
  display: flex;
2201
2201
  align-items: center;
2202
2202
  gap: 2px;
@@ -2211,17 +2211,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2211
2211
  left: ${({$left:e})=>e||"unset"};
2212
2212
  top: 50%;
2213
2213
  transform: translateY(-50%);
2214
- `,Xg=({isOpen:e,actions:t,positionRight:o,positionLeft:r})=>e?Ot(Hg,{$right:o,$left:r,children:t.map(e=>{if(!e)return null;const{tooltip:t,...o}=e;return Ot(Zl,{text:t||"",children:Ot(Fm,{...o,variant:_m.Secondary,size:Om.S})},o.id)})}):null,Gg=({values:e,setValues:t,name:o,label:r,tooltip:i,badge:n,required:a,errorMessage:s,warnMessage:l,helpMessage:c,placeholder:d,disabled:p})=>{const u=Zt(),h=e.length<=1,m=p,g=p||h&&m,f=e.length?e:[""];return Rt(Li,{"data-id":o,$gap:6,children:[Ot(Jh,{label:r,tooltip:i,required:a,badge:n}),Ot(Li,{$gap:8,children:f.map((o,r)=>{const i=r===f.length-1;return Rt(zi,{$gap:8,$alignItems:"center",children:[Ot(tm,{width:"100%",autoFocus:hi(o)&&!h&&i,value:o,onChange:o=>((o,r)=>{const i=[...e||[]];i[r]=o,t(i)})(o.target.value,r),disabled:p,placeholder:d,hasError:!!s}),i&&Ot(Fm,{leftIcon:mt,variant:_m.Secondary,size:Om.S,disabled:m,onClick:()=>(()=>{const o=[...e||[]];o.push(""),t(o)})()}),Ot(Fm,{leftIcon:g?vt:()=>Ot(vt,{fill:u.v2.colors.red[500]}),variant:_m.Secondary,size:Om.S,disabled:g,onClick:()=>(o=>{const r=[...e||[]].filter((e,t)=>t!==o);r.length||r.push(""),t(r)})(r)})]},`input-list-${r}`)})}),Ot(Yh,{errorMessage:s,warnMessage:l,helpMessage:c})]})},Vg=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,handleChange:n,errorMessage:a,disabled:s})=>{const{keyName:l,componentType:c,inputType:d,label:p,placeholder:u,options:h,renderCondition:m}=e,g=o[l];if(m&&!m(o))return null;switch(c){case Ho.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===c,t=Array.isArray(g)?g:null!=g&&""!==g?[String(g)]:[],o=h?.filter(e=>t.includes(e.id)).map(e=>e.id)||[];return Ot(Bg,{name:l,label:u?p:void 0,placeholder:u||p,options:h||[],withMultiSelect:e,withSearch:e,values:o,setValues:t=>n(l,e?t:t[0]??"",r),disabled:s,hasError:!!a},l)}default:const e=i>1&&0===r&&0===t&&hi(g);return Ot(tm,{name:l,label:u?p:void 0,placeholder:u||p,autoFocus:e,type:d,value:g,onChange:({target:{value:e}})=>n(l,e,r),disabled:s,hasError:!!a})}},Kg=Yt.table`
2214
+ `,Gg=({isOpen:e,actions:t,positionRight:o,positionLeft:r})=>e?Ot(Xg,{$right:o,$left:r,children:t.map(e=>{if(!e)return null;const{tooltip:t,...o}=e;return Ot(ec,{text:t||"",children:Ot(zm,{...o,variant:Om.Secondary,size:Rm.S})},o.id)})}):null,Vg=({values:e,setValues:t,name:o,label:r,tooltip:i,badge:n,required:a,errorMessage:s,warnMessage:l,helpMessage:c,placeholder:d,disabled:p})=>{const u=Zt(),h=e.length<=1,m=p,g=p||h&&m,f=e.length?e:[""];return Rt(Pi,{"data-id":o,$gap:6,children:[Ot(Yh,{label:r,tooltip:i,required:a,badge:n}),Ot(Pi,{$gap:8,children:f.map((o,r)=>{const i=r===f.length-1;return Rt(Li,{$gap:8,$alignItems:"center",children:[Ot(om,{width:"100%",autoFocus:hi(o)&&!h&&i,value:o,onChange:o=>((o,r)=>{const i=[...e||[]];i[r]=o,t(i)})(o.target.value,r),disabled:p,placeholder:d,hasError:!!s}),i&&Ot(zm,{leftIcon:mt,variant:Om.Secondary,size:Rm.S,disabled:m,onClick:()=>(()=>{const o=[...e||[]];o.push(""),t(o)})()}),Ot(zm,{leftIcon:g?vt:()=>Ot(vt,{fill:u.v2.colors.red[500]}),variant:Om.Secondary,size:Rm.S,disabled:g,onClick:()=>(o=>{const r=[...e||[]].filter((e,t)=>t!==o);r.length||r.push(""),t(r)})(r)})]},`input-list-${r}`)})}),Ot(Qh,{errorMessage:s,warnMessage:l,helpMessage:c})]})},Kg=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,handleChange:n,errorMessage:a,disabled:s})=>{const{keyName:l,componentType:c,inputType:d,label:p,placeholder:u,options:h,renderCondition:m}=e,g=o[l];if(m&&!m(o))return null;switch(c){case Ho.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===c,t=Array.isArray(g)?g:null!=g&&""!==g?[String(g)]:[],o=h?.filter(e=>t.includes(e.id)).map(e=>e.id)||[];return Ot(Ug,{name:l,label:u?p:void 0,placeholder:u||p,options:h||[],withMultiSelect:e,withSearch:e,values:o,setValues:t=>n(l,e?t:t[0]??"",r),disabled:s,hasError:!!a},l)}default:const e=i>1&&0===r&&0===t&&hi(g);return Ot(om,{name:l,label:u?p:void 0,placeholder:u||p,autoFocus:e,type:d,value:g,onChange:({target:{value:e}})=>n(l,e,r),disabled:s,hasError:!!a})}},qg=Yt.table`
2215
2215
  width: 100%;
2216
2216
  border-collapse: separate;
2217
2217
  border-spacing: 0 8px;
2218
- `,qg=Yt.td`
2219
- padding: 0 8px 0 0;
2220
2218
  `,Jg=Yt.td`
2219
+ padding: 0 8px 0 0;
2220
+ `,Yg=Yt.td`
2221
2221
  width: 72px;
2222
2222
  padding-bottom: 2px;
2223
2223
  vertical-align: bottom;
2224
- `,Yg=({columns:e,values:t,setValues:o,name:r,label:i,tooltip:n,badge:a,required:s,disabled:l,errorMessage:c,warnMessage:d,helpMessage:p,limitFieldsPerRow:u})=>{const h=Zt(),m=Lt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),g=(e,r,i)=>{const n=t.length?vo(t):[vo(m)];n[i][e]=r,o(n)},f=Lt(()=>{if(u){const t=[];for(let o=0;;o+=u){const r=e.slice(o,o+u);if(!r.length)break;t.push(r)}return t}return[e]},[u,e]),x=t.length?t:[m];return Rt(Li,{"data-id":r,$gap:0,children:[Ot(Jh,{label:i,tooltip:n,required:s,badge:a}),Ot(Kg,{children:Ot("tbody",{children:x.map((e,r)=>{const i=r===x.length-1;return Rt(zt,{children:[u&&r>0?Ot("tr",{children:Ot(qg,{colSpan:f.length})}):null,f.map((n,a)=>Rt("tr",{children:[n.map((t,o)=>t.renderCondition&&!t.renderCondition(e)?null:Ot(qg,{children:Ot(Vg,{col:t,colIdx:o,row:e,rowIdx:r,rowsLength:x.length,handleChange:g,disabled:l,errorMessage:c})},`input-table-row-${r}-col-${a}-${o}`)),0===a&&Ot(Jg,{children:Rt(zi,{$gap:8,$justifyContent:"flex-end",children:[i&&Ot(Fm,{leftIcon:mt,variant:_m.Secondary,size:Om.S,disabled:l,onClick:()=>(()=>{const e=vo(t);e.push(vo(m)),o(e)})()}),Ot(Fm,{leftIcon:l?vt:()=>Ot(vt,{fill:h.v2.colors.red[500]}),variant:_m.Secondary,size:Om.S,disabled:l,onClick:()=>(e=>{const r=t.filter((t,o)=>o!==e);r.length||r.push(vo(m)),o(r)})(r)})]})})]},`input-table-matrix-${r}-${a}`))]},`input-table-row-${r}`)})})}),Ot(Yh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},Qg=Yt.div`
2224
+ `,Qg=({columns:e,values:t,setValues:o,name:r,label:i,tooltip:n,badge:a,required:s,disabled:l,errorMessage:c,warnMessage:d,helpMessage:p,limitFieldsPerRow:u})=>{const h=Zt(),m=Lt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),g=(e,r,i)=>{const n=t.length?vo(t):[vo(m)];n[i][e]=r,o(n)},f=Lt(()=>{if(u){const t=[];for(let o=0;;o+=u){const r=e.slice(o,o+u);if(!r.length)break;t.push(r)}return t}return[e]},[u,e]),x=t.length?t:[m];return Rt(Pi,{"data-id":r,$gap:0,children:[Ot(Yh,{label:i,tooltip:n,required:s,badge:a}),Ot(qg,{children:Ot("tbody",{children:x.map((e,r)=>{const i=r===x.length-1;return Rt(zt,{children:[u&&r>0?Ot("tr",{children:Ot(Jg,{colSpan:f.length})}):null,f.map((n,a)=>Rt("tr",{children:[n.map((t,o)=>t.renderCondition&&!t.renderCondition(e)?null:Ot(Jg,{children:Ot(Kg,{col:t,colIdx:o,row:e,rowIdx:r,rowsLength:x.length,handleChange:g,disabled:l,errorMessage:c})},`input-table-row-${r}-col-${a}-${o}`)),0===a&&Ot(Yg,{children:Rt(Li,{$gap:8,$justifyContent:"flex-end",children:[i&&Ot(zm,{leftIcon:mt,variant:Om.Secondary,size:Rm.S,disabled:l,onClick:()=>(()=>{const e=vo(t);e.push(vo(m)),o(e)})()}),Ot(zm,{leftIcon:l?vt:()=>Ot(vt,{fill:h.v2.colors.red[500]}),variant:Om.Secondary,size:Rm.S,disabled:l,onClick:()=>(e=>{const r=t.filter((t,o)=>o!==e);r.length||r.push(vo(m)),o(r)})(r)})]})})]},`input-table-matrix-${r}-${a}`))]},`input-table-row-${r}`)})})}),Ot(Qh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},Zg=Yt.div`
2225
2225
  display: flex;
2226
2226
  align-items: center;
2227
2227
  justify-content: space-between;
@@ -2229,15 +2229,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2229
2229
 
2230
2230
  padding: 18px 16px;
2231
2231
  border-radius: 18px;
2232
- background-color: ${({theme:e})=>e.v2.colors.black[500]+_s["095"]};
2232
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Os["095"]};
2233
2233
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2234
2234
 
2235
2235
  position: fixed;
2236
2236
  bottom: 0;
2237
2237
  left: 50%;
2238
2238
  z-index: 1;
2239
- animation-name: ${Rs.in.center};
2240
- `,Zg=({isOpen:e,onClose:t,richTitle:o,actions:r})=>e?Rt(Qg,{children:[Ot(cg,{...o}),Ot(sg,{onAnyClick:t,actions:r})]}):null,ef=Yt.div`
2239
+ animation-name: ${Fs.in.center};
2240
+ `,ef=({isOpen:e,onClose:t,richTitle:o,actions:r})=>e?Rt(Zg,{children:[Ot(dg,{...o}),Ot(lg,{onAnyClick:t,actions:r})]}):null,tf=Yt.div`
2241
2241
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2242
2242
  top: 50%;
2243
2243
  left: 50%;
@@ -2249,14 +2249,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2249
2249
  box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2250
2250
  overflow: hidden;
2251
2251
 
2252
- animation-name: ${Rs.in.center};
2253
- `,tf=Yt.div`
2254
- position: relative;
2252
+ animation-name: ${Fs.in.center};
2255
2253
  `,of=Yt.div`
2254
+ position: relative;
2255
+ `,rf=Yt.div`
2256
2256
  position: absolute;
2257
2257
  top: 16px;
2258
2258
  left: 16px;
2259
- `,rf=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:r,onClose:i,children:n})=>{if(qs(e),!e)return null;const a=Rt(Ft,{children:[!t&&Ot(Bi,{$relativeToParent:o,onClick:i}),Ot(ef,{$relativeToParent:o,children:Rt(tf,{children:[r&&Ot(of,{children:Ot(tl,{icon:e=>Ot(Dt,{rotate:-90,...e}),size:Zs.L,onClick:r})}),n]})})]});return o?a:po(a,document.body)},nf=Yt.aside`
2259
+ `,nf=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:r,onClose:i,children:n})=>{if(Js(e),!e)return null;const a=Rt(Ft,{children:[!t&&Ot(Ui,{$relativeToParent:o,onClick:i}),Ot(tf,{$relativeToParent:o,children:Rt(of,{children:[r&&Ot(rf,{children:Ot(ol,{icon:e=>Ot(Dt,{rotate:-90,...e}),size:el.L,onClick:r})}),n]})})]});return o?a:po(a,document.body)},af=Yt.aside`
2260
2260
  display: flex;
2261
2261
  flex-direction: column;
2262
2262
  gap: 8px;
@@ -2265,48 +2265,48 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2265
2265
  padding: 16px 12px;
2266
2266
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
2267
2267
  overflow-y: auto;
2268
- `,af=({height:e,icons:t})=>Ot(nf,{$height:e,children:t.map(({id:e,selected:t,icon:o,onClick:r})=>Ot(Fm,{label:"",leftIcon:o,iconSize:24,onClick:r,variant:t?_m.Primary:_m.Text},e))});var sf;!function(e){e.S="small",e.L="large"}(sf||(sf={}));const lf=Yt.div`
2268
+ `,sf=({height:e,icons:t})=>Ot(af,{$height:e,children:t.map(({id:e,selected:t,icon:o,onClick:r})=>Ot(zm,{label:"",leftIcon:o,iconSize:24,onClick:r,variant:t?Om.Primary:Om.Text},e))});var lf;!function(e){e.S="small",e.L="large"}(lf||(lf={}));const cf=Yt.div`
2269
2269
  width: fit-content;
2270
2270
  display: flex;
2271
2271
  align-items: center;
2272
2272
  gap: 8px;
2273
2273
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2274
- `,cf=Yt.div`
2275
- width: ${({$size:e})=>e===sf.S?"16px":"20px"};
2276
- height: ${({$size:e})=>e===sf.S?"16px":"20px"};
2274
+ `,df=Yt.div`
2275
+ width: ${({$size:e})=>e===lf.S?"16px":"20px"};
2276
+ height: ${({$size:e})=>e===lf.S?"16px":"20px"};
2277
2277
  display: flex;
2278
2278
  align-items: center;
2279
2279
  justify-content: center;
2280
2280
  border-radius: 100%;
2281
2281
  border: 1px solid ${({$borderColor:e})=>e};
2282
2282
  background-color: ${({$backgroundColor:e})=>e};
2283
- `,df=({"data-id":e,label:t,value:o,onChange:r,disabled:i,size:n=sf.L})=>{const a=Zt(),[s,l]=Pt(!1),c=o,d=n===sf.S?6:8,p=i?a.v2.colors.grey[400]:a.v2.colors.white[500],u=c?"transparent":i?a.v2.colors.grey[700]:s?a.v2.colors.silver[400]:a.v2.colors.silver[600],h=i?a.v2.colors.grey[600]:c?a.v2.colors.purple[500]:a.v2.colors.silver[900];return Rt(lf,{"data-id":e??"radio"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),i||r(!o)},$disabled:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[Ot(cf,{$size:n,$borderColor:u,$backgroundColor:h,children:o?Ot(Nt,{size:d,fill:p}):null}),t&&Ot(Ki,{size:n===sf.S?Gi.XXS:Gi.XS,children:t})]})},pf=Yt.div`
2283
+ `,pf=({"data-id":e,label:t,value:o,onChange:r,disabled:i,size:n=lf.L})=>{const a=Zt(),[s,l]=Pt(!1),c=o,d=n===lf.S?6:8,p=i?a.v2.colors.grey[400]:a.v2.colors.white[500],u=c?"transparent":i?a.v2.colors.grey[700]:s?a.v2.colors.silver[400]:a.v2.colors.silver[600],h=i?a.v2.colors.grey[600]:c?a.v2.colors.purple[500]:a.v2.colors.silver[900];return Rt(cf,{"data-id":e??"radio"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),i||r(!o)},$disabled:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[Ot(df,{$size:n,$borderColor:u,$backgroundColor:h,children:o?Ot(Nt,{size:d,fill:p}):null}),t&&Ot(qi,{size:n===lf.S?Vi.XXS:Vi.XS,children:t})]})},uf=Yt.div`
2284
2284
  display: flex;
2285
2285
  flex-direction: ${({$flexDirection:e})=>e};
2286
2286
  gap: ${({$gap:e})=>e}px;
2287
- `,uf=({label:e,direction:t,disabled:o,size:r,options:i,values:n,setValues:a})=>Rt(pf,{$flexDirection:t===Fo.Horizontal?"row":"column",$gap:t===Fo.Horizontal?16:8,children:[e&&Ot(Ki,{children:e}),i.map(t=>Ot(df,{...t,value:n[t.id],onChange:e=>{return o=t.id,r=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=r,t});var o,r},disabled:o,size:r},`${e}-radio-${t.id}`))]}),hf=({currentStep:e,data:t,gap:o=12})=>Ot(Li,{$gap:o,children:t.map(t=>{const o=t.step<e,r=t.step===e;return Rt(zi,{$gap:8,children:[o||t.forceDoneBadge?Ot(Vh,{status:Go.Success,label:"",leftIcon:st}):Ot(Vh,{status:Go.Default,label:t.step.toString()}),Ot(Ki,{size:r?Gi.M:Gi.XS,weight:r?500:400,opacity:r?1:.7,children:t.label})]},`stepper-item-${t.step}`)})});var mf;!function(e){e.Data="data",e.Pretty="pretty"}(mf||(mf={}));const gf=Yt.div`
2287
+ `,hf=({label:e,direction:t,disabled:o,size:r,options:i,values:n,setValues:a})=>Rt(uf,{$flexDirection:t===Fo.Horizontal?"row":"column",$gap:t===Fo.Horizontal?16:8,children:[e&&Ot(qi,{children:e}),i.map(t=>Ot(pf,{...t,value:n[t.id],onChange:e=>{return o=t.id,r=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=r,t});var o,r},disabled:o,size:r},`${e}-radio-${t.id}`))]}),mf=({currentStep:e,data:t,gap:o=12})=>Ot(Pi,{$gap:o,children:t.map(t=>{const o=t.step<e,r=t.step===e;return Rt(Li,{$gap:8,children:[o||t.forceDoneBadge?Ot(Kh,{status:Go.Success,label:"",leftIcon:st}):Ot(Kh,{status:Go.Default,label:t.step.toString()}),Ot(qi,{size:r?Vi.M:Vi.XS,weight:r?500:400,opacity:r?1:.7,children:t.label})]},`stepper-item-${t.step}`)})});var gf;!function(e){e.Data="data",e.Pretty="pretty"}(gf||(gf={}));const ff=Yt.div`
2288
2288
  height: ${({$maxHeight:e})=>e};
2289
2289
  width: 100%;
2290
2290
  display: flex;
2291
2291
  flex-direction: column;
2292
2292
  overflow: hidden;
2293
- `,ff=Yt.div`
2293
+ `,xf=Yt.div`
2294
2294
  width: 100%;
2295
2295
  flex: 1;
2296
2296
  display: flex;
2297
2297
  flex-direction: column;
2298
- `,xf=Yt.div`
2299
- flex-shrink: 0;
2300
- z-index: 1;
2301
2298
  `,yf=Yt.div`
2299
+ flex-shrink: 0;
2300
+ position: relative;
2301
+ z-index: 2;
2302
+ `,bf=Yt.div`
2302
2303
  position: relative;
2303
2304
  display: flex;
2304
2305
  width: 100%;
2305
- `,bf=Yt.div`
2306
+ `,$f=Yt.div`
2306
2307
  position: relative;
2307
2308
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2308
2309
  flex: ${({$flex:e})=>e??1};
2309
- overflow: hidden;
2310
2310
  padding: 18px 24px;
2311
2311
  border: none;
2312
2312
  border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
@@ -2314,12 +2314,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2314
2314
 
2315
2315
  ${({$variant:e,$backgroundColor:t})=>{if(t)return Qt`
2316
2316
  background-color: ${t};
2317
- `;switch(e){case mf.Data:return Qt`
2317
+ `;switch(e){case gf.Data:return Qt`
2318
2318
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2319
- `;case mf.Pretty:return Qt`
2319
+ `;case gf.Pretty:return Qt`
2320
2320
  background-color: transparent;
2321
2321
  `;default:return""}}}
2322
- `,$f=Yt.div`
2322
+ `,vf=Yt.div`
2323
2323
  position: absolute;
2324
2324
  top: 50%;
2325
2325
  right: 0;
@@ -2327,7 +2327,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2327
2327
  width: 1px;
2328
2328
  height: 18px;
2329
2329
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2330
- `,vf=Yt.div`
2330
+ `,wf=Yt.div`
2331
2331
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2332
2332
  flex: ${({$flex:e})=>e??1};
2333
2333
  overflow: hidden;
@@ -2338,23 +2338,23 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2338
2338
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2339
2339
  box-sizing: border-box;
2340
2340
 
2341
- ${({$variant:e,$selected:t,$hovered:o,$isLastRow:r,$isFirstCell:i,$isLastCell:n})=>{switch(e){case mf.Data:return Qt`
2341
+ ${({$variant:e,$selected:t,$hovered:o,$isLastRow:r,$isFirstCell:i,$isLastCell:n})=>{switch(e){case gf.Data:return Qt`
2342
2342
  border-bottom: ${({theme:e})=>r?"none":`1px solid ${e.v2.colors.silver[500]}`};
2343
2343
  border-radius: ${r?i?"0 0 0 4px":n?"0 0 4px 0":"0":"0"};
2344
2344
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2345
- `;case mf.Pretty:return Qt`
2345
+ `;case gf.Pretty:return Qt`
2346
2346
  border: none;
2347
2347
  border-radius: ${i?"12px 0 0 12px":n?"0 12px 12px 0":"0"};
2348
2348
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2349
2349
  `;default:return""}}}
2350
- `,wf=Yt.div`
2350
+ `,Sf=Yt.div`
2351
2351
  width: 100%;
2352
2352
  display: flex;
2353
2353
  align-items: center;
2354
2354
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2355
2355
  gap: 4px;
2356
2356
  text-align: ${({$textAlign:e})=>e||"left"};
2357
- `,Sf=({variant:e,columns:t,rows:o,getRowActions:r,rowActionsPushRightPosition:i,rowActionsPushLeftPosition:n,withCheckboxes:a})=>{const[s,l]=Pt(null),c=Lt(()=>o.map((c,d)=>{const{cells:p,onClick:u,isSelected:h=!1,onSelect:m,onDeselect:g,hideCheckbox:f}=c,x=s===d,y=r(c),b=(e,t)=>({$isLastRow:d===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:h,$withClick:!!u,onClick:()=>u?.(),$hovered:!!u&&x,onMouseEnter:()=>l(d),onMouseLeave:()=>l(null)});return Rt(yf,{children:[a&&Ot(vf,{$variant:e,style:{flex:"0 0 68px"},...b(!0,!1),children:!f&&Ot(Um,{value:h,onChange:()=>h?g?.():m?.()})},"checkbox-column"),t.map(({key:o,withTooltip:r,textAlign:s,flex:l,minWidth:c},u)=>{const h=p.find(e=>e.key===o),m=0===u&&!a,g=u===t.length-1,f=y.length&&(i&&g||n&&m||!i&&!n&&g),$=Ot(zi,{$width:"100%",$justifyContent:"right"===s?"flex-end":"center"===s?"center":"flex-start",children:h?.component?Ot(h.component,{}):Ot(Ki,{size:Gi.XS,children:h?.rawValue||"-"})});return Rt(vf,{$variant:e,$flex:l,$minWidth:c,...b(m,g),children:[r?Ot(Zl,{text:h?.rawValue?.toString()||"",ellipsis:!0,children:$}):$,f?Ot(Xg,{isOpen:x,actions:y,positionRight:i,positionLeft:n}):null]},`row-${d}-cell-${u}`)})]},`row-${d}`)}),[o,s,r,i,n,a,t]);return Ot(nh,{gap:e===mf.Pretty?8:0,elements:c})},Cf=({columnKey:e,sortDirection:t,sortByKey:o,onSort:r})=>{const i=Zt(),n=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],a=t===zo.Ascending?0:180;return Ot(tl,{icon:e=>Ot(Dt,{fill:n,rotate:a,...e}),onClick:()=>r(e)})},kf=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:r})=>{const i=Zt(),n=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],a=Lt(()=>Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e]);return Ot(Jm,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Ot(It,{fill:n,...e})}})},Ef=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:r,sortDirection:i,sortByKey:n,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>Rt(yf,{children:[c&&Ot(bf,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:Ot(Um,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),o.map(({key:d,label:p,withTooltip:u,noSort:h,noFilter:m,flex:g,minWidth:f,textAlign:x},y)=>{const b=0===y&&!c,$=y===o.length-1,v=Ot(Ki,{size:Gi.XS,align:x,children:p});return Rt(bf,{$variant:e,$backgroundColor:t,$flex:g,$minWidth:f,$isFirst:b,$isLast:$,children:[Rt(wf,{$textAlign:x,children:[u?Ot(Zl,{text:p,children:v}):v,!h&&Ot(Cf,{columnKey:d,sortDirection:i,sortByKey:n,onSort:a}),!m&&Ot(kf,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:r})]}),!$&&e===mf.Data&&Ot($f,{})]},`column-${d}`)})]}),Af=({variant:e,maxHeight:t="256px",headerBackgroundColor:o,hideHeader:r=!1,isLoading:i,columns:n,rows:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d})=>{const[p,u]=Pt(zo.Ascending),[h,m]=Pt(""),[g,f]=Pt({}),x=Ut(e=>{m(e),u(e=>e===zo.Ascending?zo.Descending:zo.Ascending)},[]),y=Ut((e,t)=>{f(o=>({...o,[e]:t}))},[]),b=Lt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(h?[...a].sort((t,o)=>{const r=e(t,h),i=e(o,h);return(p===zo.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)))(r,i)}):a).filter(t=>{for(const[o,r]of Object.entries(g))if(r.length&&!r.includes(e(t,o)))return!1;return!0})},[a,h,p,g]),{partiallySelected:$,allSelected:v}=Lt(()=>{const e=b.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[b]);return Ot(gf,{$maxHeight:t,children:Rt(ff,{$variant:e,children:[!r&&Ot(xf,{children:Ot(Ef,{variant:e,backgroundColor:o,columns:n,rowsUnfiltered:a,sortDirection:p,sortByKey:h,onSort:x,filters:g,onFilter:y,withCheckboxes:d,partiallySelected:$,allSelected:v,onSelectAll:e=>{e?b.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):b.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),b.length?Ot(Sf,{variant:e,columns:n,rows:b,getRowActions:s||(()=>[]),rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d}):Ot(Pi,{style:{marginTop:"0.5rem"},children:i?Ot(Im,{withSpinner:!0}):Ot(Lm,{})})]})})},Df=Yt.div`
2357
+ `,Cf=({variant:e,columns:t,rows:o,getRowActions:r,rowActionsPushRightPosition:i,rowActionsPushLeftPosition:n,withCheckboxes:a})=>{const[s,l]=Pt(null),c=Lt(()=>o.map((c,d)=>{const{cells:p,onClick:u,isSelected:h=!1,onSelect:m,onDeselect:g,hideCheckbox:f}=c,x=s===d,y=r(c),b=(e,t)=>({$isLastRow:d===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:h,$withClick:!!u,onClick:()=>u?.(),$hovered:!!u&&x,onMouseEnter:()=>l(d),onMouseLeave:()=>l(null)});return Rt(bf,{children:[a&&Ot(wf,{$variant:e,style:{flex:"0 0 68px"},...b(!0,!1),children:!f&&Ot(jm,{value:h,onChange:()=>h?g?.():m?.()})},"checkbox-column"),t.map(({key:o,withTooltip:r,textAlign:s,flex:l,minWidth:c},u)=>{const h=p.find(e=>e.key===o),m=0===u&&!a,g=u===t.length-1,f=y.length&&(i&&g||n&&m||!i&&!n&&g),$=Ot(Li,{$width:"100%",$justifyContent:"right"===s?"flex-end":"center"===s?"center":"flex-start",children:h?.component?Ot(h.component,{}):Ot(qi,{size:Vi.XS,children:h?.rawValue||"-"})});return Rt(wf,{$variant:e,$flex:l,$minWidth:c,...b(m,g),children:[r?Ot(ec,{text:h?.rawValue?.toString()||"",ellipsis:!0,children:$}):$,f?Ot(Gg,{isOpen:x,actions:y,positionRight:i,positionLeft:n}):null]},`row-${d}-cell-${u}`)})]},`row-${d}`)}),[o,s,r,i,n,a,t]);return Ot(ah,{gap:e===gf.Pretty?8:0,elements:c})},kf=({columnKey:e,sortDirection:t,sortByKey:o,onSort:r})=>{const i=Zt(),n=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],a=t===zo.Ascending?0:180;return Ot(ol,{icon:e=>Ot(Dt,{fill:n,rotate:a,...e}),onClick:()=>r(e)})},Ef=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:r,filterOverride:i})=>{const n=Zt(),a=t[e]?.length?n.v2.colors.white[500]:n.v2.colors.grey[400],s=Lt(()=>{if(i)return i.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[r,e,i]);return Ot(Ym,{items:s,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Ot(It,{fill:a,...e})}})},Af=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:r,sortDirection:i,sortByKey:n,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>Rt(bf,{children:[c&&Ot($f,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:Ot(jm,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),o.map(({key:d,label:p,withTooltip:u,tooltip:h,noSort:m,noFilter:g,filterOverride:f,flex:x,minWidth:y,textAlign:b},$)=>{const v=0===$&&!c,w=$===o.length-1,S=Ot(qi,{size:Vi.XS,align:b,children:p});return Rt($f,{$variant:e,$backgroundColor:t,$flex:x,$minWidth:y,$isFirst:v,$isLast:w,children:[Rt(Sf,{$textAlign:b,children:[h||u?Ot(ec,{text:h||p,children:S}):S,!m&&Ot(kf,{columnKey:d,sortDirection:i,sortByKey:n,onSort:a}),!g&&Ot(Ef,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:r,filterOverride:f})]}),!w&&e===gf.Data&&Ot(vf,{})]},`column-${d}`)})]}),Df=({variant:e,maxHeight:t="256px",headerBackgroundColor:o,hideHeader:r=!1,isLoading:i,columns:n,rows:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d})=>{const[p,u]=Pt(zo.Ascending),[h,m]=Pt(""),[g,f]=Pt({}),x=Ut(e=>{m(e),u(e=>e===zo.Ascending?zo.Descending:zo.Ascending)},[]),y=Ut((e,t)=>{f(o=>({...o,[e]:t}))},[]),b=Lt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(h?[...a].sort((t,o)=>{const r=e(t,h),i=e(o,h);return(p===zo.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)))(r,i)}):a).filter(t=>{for(const[o,r]of Object.entries(g)){if(!r.length)continue;const i=n.find(e=>e.key===o)?.filterOverride;if(i){if(!i.filterRow(t,r))return!1}else if(!r.includes(e(t,o)))return!1}return!0})},[a,h,p,g,n]),{partiallySelected:$,allSelected:v}=Lt(()=>{const e=b.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[b]);return Ot(ff,{$maxHeight:t,children:Rt(xf,{$variant:e,children:[!r&&Ot(yf,{children:Ot(Af,{variant:e,backgroundColor:o,columns:n,rowsUnfiltered:a,sortDirection:p,sortByKey:h,onSort:x,filters:g,onFilter:y,withCheckboxes:d,partiallySelected:$,allSelected:v,onSelectAll:e=>{e?b.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):b.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),b.length?Ot(Cf,{variant:e,columns:n,rows:b,getRowActions:s||(()=>[]),rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d}):Ot(Mi,{style:{marginTop:"0.5rem"},children:i?Ot(_m,{withSpinner:!0}):Ot(Pm,{})})]})})},Tf=Yt.div`
2358
2358
  display: flex;
2359
2359
  align-items: center;
2360
2360
  justify-content: center;
@@ -2377,7 +2377,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2377
2377
  `:Qt`
2378
2378
  background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2379
2379
  `}
2380
- `,Tf=({label:e,leftIcon:t,rightIcon:o,onClick:r,disabled:i})=>{const n=Zt(),a=i?n.v2.colors.grey[400]:n.v2.colors.white[500];return Rt(Df,{$disabled:i,$withClick:!!r,onClick:()=>!i&&r?.(),children:[t&&Ot(t,{fill:a,size:16}),Ot(Ki,{color:a,size:Gi.XS,nowrap:!0,children:e}),o&&Ot(o,{fill:a,size:16})]})},Nf=Yt.div`
2380
+ `,Nf=({label:e,leftIcon:t,rightIcon:o,onClick:r,disabled:i})=>{const n=Zt(),a=i?n.v2.colors.grey[400]:n.v2.colors.white[500];return Rt(Tf,{$disabled:i,$withClick:!!r,onClick:()=>!i&&r?.(),children:[t&&Ot(t,{fill:a,size:16}),Ot(qi,{color:a,size:Vi.XS,nowrap:!0,children:e}),o&&Ot(o,{fill:a,size:16})]})},If=Yt.div`
2381
2381
  padding: 6px 12px;
2382
2382
 
2383
2383
  display: flex;
@@ -2395,7 +2395,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2395
2395
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2396
2396
  }
2397
2397
  `}
2398
- `,If=Yt.textarea`
2398
+ `,_f=Yt.textarea`
2399
2399
  max-width: ${({$maxWidth:e})=>e||"unset"};
2400
2400
  min-height: ${({$minHeight:e})=>e||"50px"};
2401
2401
  flex: 1;
@@ -2420,11 +2420,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2420
2420
  color: ${({theme:e})=>e.v2.colors.grey[400]};
2421
2421
  }
2422
2422
  }
2423
- `,_f=({label:e,required:t,tooltip:o,badge:r,errorMessage:i,warnMessage:n,helpMessage:a,name:s,value:l,onChange:c,disabled:d,maxWidth:p,minHeight:u,...h})=>{const m=Bt(null),g=()=>{m.current&&(m.current.style.height="auto",m.current.style.height=`${m.current.scrollHeight}px`)};return Rt(Li,{$gap:6,children:[Ot(Jh,{label:e,tooltip:o,required:t,badge:r}),Ot(Nf,{$disabled:d,$error:!!i,children:Ot(If,{ref:m,"data-id":s,name:s,value:l,onChange:e=>{e.stopPropagation(),g(),c?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:g,onBlur:g,disabled:d,$maxWidth:p,$minHeight:u,...h})}),Ot(Yh,{errorMessage:i,warnMessage:n,helpMessage:a})]})};var Of,Rf,Ff;!function(e){e.Default="default",e.SuccessError="successError"}(Of||(Of={})),function(e){e.S="small",e.L="large"}(Rf||(Rf={})),function(e){e.Left="left",e.Right="right"}(Ff||(Ff={}));const zf=Yt.div`
2423
+ `,Of=({label:e,required:t,tooltip:o,badge:r,errorMessage:i,warnMessage:n,helpMessage:a,name:s,value:l,onChange:c,disabled:d,maxWidth:p,minHeight:u,...h})=>{const m=Bt(null),g=()=>{m.current&&(m.current.style.height="auto",m.current.style.height=`${m.current.scrollHeight}px`)};return Rt(Pi,{$gap:6,children:[Ot(Yh,{label:e,tooltip:o,required:t,badge:r}),Ot(If,{$disabled:d,$error:!!i,children:Ot(_f,{ref:m,"data-id":s,name:s,value:l,onChange:e=>{e.stopPropagation(),g(),c?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:g,onBlur:g,disabled:d,$maxWidth:p,$minHeight:u,...h})}),Ot(Qh,{errorMessage:i,warnMessage:n,helpMessage:a})]})};var Rf,Ff,zf;!function(e){e.Default="default",e.SuccessError="successError"}(Rf||(Rf={})),function(e){e.S="small",e.L="large"}(Ff||(Ff={})),function(e){e.Left="left",e.Right="right"}(zf||(zf={}));const Lf=Yt.div`
2424
2424
  display: flex;
2425
2425
  align-items: center;
2426
2426
  gap: ${({$gap:e})=>e}px;
2427
- `,Lf=Yt.div`
2427
+ `,Pf=Yt.div`
2428
2428
  position: relative;
2429
2429
  display: flex;
2430
2430
  align-items: center;
@@ -2434,11 +2434,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2434
2434
  height: ${({$size:e})=>e}px;
2435
2435
  padding: ${4}px;
2436
2436
  border-radius: ${({$size:e})=>2*e}px;
2437
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:r,$value:i,theme:n})=>{if(e)return n.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(r){case Of.SuccessError:return i?n.v2.colors.green[500]:n.v2.colors.red[500];case Of.Default:default:return i?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
2437
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:r,$value:i,theme:n})=>{if(e)return n.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(r){case Rf.SuccessError:return i?n.v2.colors.green[500]:n.v2.colors.red[500];case Rf.Default:default:return i?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
2438
2438
 
2439
2439
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
2440
2440
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2441
- `,Pf=Yt.div`
2441
+ `,Mf=Yt.div`
2442
2442
  position: absolute;
2443
2443
  top: 50%;
2444
2444
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -2448,22 +2448,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon
2448
2448
  border-radius: 100%;
2449
2449
  background-color: ${({$color:e})=>e};
2450
2450
  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)"};
2451
- `,Mf=({variant:e=Of.Default,size:t=Rf.L,name:o,label:r,labelAlign:i=Ff.Right,labelColor:n,tooltip:a,badge:s,value:l,onChange:c,disabled:d,withIcon:p,onIcon:u=st,offIcon:h=ct,onBgColor:m,offBgColor:g,errorMessage:f,warnMessage:x,helpMessage:y})=>{const b=Zt(),$=d?b.v2.colors.grey[400]:b.v2.colors.white[500],v=t===Rf.S?10:16,w=n||b.v2.colors.silver[200],S=t===Rf.S?Gi.XXXS:Gi.XS,C=t===Rf.S?8:12;return Rt(Li,{$gap:4,children:[Rt(zi,{$justifyContent:"space-between",children:[Rt(zf,{"data-id":o||"toggle"+(r?`-${r}`:""),$gap:C,children:[r&&i===Ff.Left&&Ot(Ki,{color:w,size:S,nowrap:!0,children:r}),Rt(Lf,{$onBgColor:m,$offBgColor:g,$variant:e,$size:v,$value:l,$disabled:d,onClick:e=>{e.stopPropagation(),d||c(!l)},children:[Ot(Pf,{$color:$,$size:v,$value:l,$disabled:d}),p&&Rt(Ft,{children:[Ot(u,{size:v,fill:$}),Ot(h,{size:v,fill:$})]})]}),r&&i===Ff.Right&&Ot(Ki,{color:w,size:S,nowrap:!0,children:r})]}),Ot(Jh,{tooltip:a,badge:s})]}),Ot(Yh,{errorMessage:f,warnMessage:x,helpMessage:y})]})},Bf=Yt.div`
2451
+ `,Bf=({variant:e=Rf.Default,size:t=Ff.L,name:o,label:r,labelAlign:i=zf.Right,labelColor:n,tooltip:a,badge:s,value:l,onChange:c,disabled:d,withIcon:p,onIcon:u=st,offIcon:h=ct,onBgColor:m,offBgColor:g,errorMessage:f,warnMessage:x,helpMessage:y})=>{const b=Zt(),$=d?b.v2.colors.grey[400]:b.v2.colors.white[500],v=t===Ff.S?10:16,w=n||b.v2.colors.silver[200],S=t===Ff.S?Vi.XXXS:Vi.XS,C=t===Ff.S?8:12;return Rt(Pi,{$gap:4,children:[Rt(Li,{$justifyContent:"space-between",children:[Rt(Lf,{"data-id":o||"toggle"+(r?`-${r}`:""),$gap:C,children:[r&&i===zf.Left&&Ot(qi,{color:w,size:S,nowrap:!0,children:r}),Rt(Pf,{$onBgColor:m,$offBgColor:g,$variant:e,$size:v,$value:l,$disabled:d,onClick:e=>{e.stopPropagation(),d||c(!l)},children:[Ot(Mf,{$color:$,$size:v,$value:l,$disabled:d}),p&&Rt(Ft,{children:[Ot(u,{size:v,fill:$}),Ot(h,{size:v,fill:$})]})]}),r&&i===zf.Right&&Ot(qi,{color:w,size:S,nowrap:!0,children:r})]}),Ot(Yh,{tooltip:a,badge:s})]}),Ot(Qh,{errorMessage:f,warnMessage:x,helpMessage:y})]})},Uf=Yt.div`
2452
2452
  display: flex;
2453
2453
  flex-direction: ${({$direction:e})=>e===Fo.Horizontal?"row":"column"};
2454
2454
  gap: ${({$direction:e})=>e===Fo.Horizontal?16:8}px;
2455
- `,Uf=({direction:e=Fo.Vertical,title:t,size:o,disabled:r,options:i,values:n,setValues:a})=>{const s=o===Rf.S?Gi.XS:Gi.S;return Rt(Bf,{$direction:e,children:[t&&Ot(Ki,{size:s,children:t}),i.map(e=>Ot(Mf,{...e,labelAlign:Ff.Right,value:n[e.id],onChange:t=>{return o=e.id,r=t,void a(e=>{const t={...e};return o?t[o]=r:i.forEach(e=>t[e.id]=r),t});var o,r},disabled:r,size:o},`${t}-toggle-${e.id}`))]})},jf=Yt.div`
2455
+ `,jf=({direction:e=Fo.Vertical,title:t,size:o,disabled:r,options:i,values:n,setValues:a})=>{const s=o===Ff.S?Vi.XS:Vi.S;return Rt(Uf,{$direction:e,children:[t&&Ot(qi,{size:s,children:t}),i.map(e=>Ot(Bf,{...e,labelAlign:zf.Right,value:n[e.id],onChange:t=>{return o=e.id,r=t,void a(e=>{const t={...e};return o?t[o]=r:i.forEach(e=>t[e.id]=r),t});var o,r},disabled:r,size:o},`${t}-toggle-${e.id}`))]})},Wf=Yt.div`
2456
2456
  width: 530px;
2457
- `,Wf=Yt.div`
2457
+ `,Hf=Yt.div`
2458
2458
  display: flex;
2459
2459
  flex-direction: column;
2460
2460
  align-items: center;
2461
2461
  gap: 16px;
2462
2462
  padding: 24px;
2463
- `,Hf=Yt.div`
2463
+ `,Xf=Yt.div`
2464
2464
  display: flex;
2465
2465
  justify-content: center;
2466
2466
  gap: 16px;
2467
2467
  padding: 16px 24px;
2468
2468
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2469
- `,Xf=({visual:e,title:t,description:o,isOpen:r,onClose:i,onDeny:n,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Zt();return Ot(rf,{isOpen:r,onClose:i,...c,children:Rt(jf,{children:[Rt(Wf,{children:[e&&Ot(e,{}),Ot(Ki,{size:Gi.M,weight:500,color:d.v2.colors.white[500],children:t}),Ot(Li,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>Ot(Ki,{size:Gi.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(n||s)&&Rt(Hf,{children:[Ot(Fm,{variant:_m.Secondary,label:a,onClick:()=>{n?.(),i()}}),s&&Ot(Fm,{variant:_m.Primary,label:l,onClick:()=>{s(),i()}})]})]})})};export{Vh as $,ag as A,Om as B,Oc as C,Ul as D,ps as E,Li as F,Sn as G,Ci as H,tm as I,hr as J,No as K,Si as L,di as M,Lm as N,kr as O,_g as P,Go as Q,nr as R,ug as S,Ki as T,Zl as U,ar as V,lr as W,fr as X,gr as Y,sr as Z,ir as _,_m as a,Ta as a$,ns as a0,zr as a1,yl as a2,Sr as a3,wr as a4,wl as a5,kl as a6,Cl as a7,Lo as a8,jo as a9,ha as aA,sa as aB,ka as aC,Ym as aD,wa as aE,Pm as aF,Bo as aG,ga as aH,ca as aI,Un as aJ,ta as aK,fa as aL,da as aM,jn as aN,Rf as aO,aa as aP,oa as aQ,na as aR,Aa as aS,rs as aT,Pn as aU,Vn as aV,qn as aW,Kn as aX,Na as aY,Jn as aZ,Ia as a_,ba as aa,On as ab,Rn as ac,om as ad,$a as ae,Ca as af,zn as ag,ma as ah,la as ai,Sa as aj,ra as ak,df as al,va as am,Qn as an,Ln as ao,Zn as ap,Yn as aq,Jm as ar,ea as as,xa as at,ya as au,Mn as av,Bn as aw,Wn as ax,Hn as ay,Xn as az,Pi as b,yg as b$,_a as b0,Oa as b1,Ha as b2,Fn as b3,pa as b4,Xa as b5,Ga as b6,ua as b7,ia as b8,$n as b9,Ja as bA,Za as bB,Qa as bC,ll as bD,Nl as bE,gi as bF,Xm as bG,Hm as bH,ng as bI,_n as bJ,Dn as bK,In as bL,os as bM,xl as bN,Ar as bO,Oi as bP,Af as bQ,mf as bR,Zg as bS,hf as bT,oi as bU,Mc as bV,Sg as bW,Ps as bX,cg as bY,sg as bZ,gg as b_,vn as ba,Er as bb,tl as bc,Zs as bd,Im as be,Cn as bf,Br as bg,Bg as bh,hs as bi,kn as bj,qo as bk,Xi as bl,Sl as bm,vs as bn,ys as bo,Mg as bp,En as bq,Nn as br,es as bs,ts as bt,Ma as bu,Fi as bv,An as bw,qa as bx,Ka as by,Ya as bz,zi as c,ji as c$,cr as c0,Ri as c1,Gn as c2,Da as c3,Tn as c4,Va as c5,Pa as c6,za as c7,La as c8,Fa as c9,$u as cA,Yp as cB,$c as cC,Ks as cD,jr as cE,wn as cF,Kc as cG,Xp as cH,Or as cI,Uo as cJ,fs as cK,_i as cL,Ml as cM,Ui as cN,pc as cO,xn as cP,rh as cQ,Rr as cR,Qc as cS,Ko as cT,vi as cU,ri as cV,gs as cW,Co as cX,ld as cY,Xr as cZ,hd as c_,Ra as ca,rm as cb,Xf as cc,Wa as cd,ja as ce,Ua as cf,Ba as cg,dl as ch,Op as ci,Xd as cj,Sc as ck,on as cl,Qd as cm,Uu as cn,jh as co,Ku as cp,Lu as cq,oc as cr,Zc as cs,gh as ct,ph as cu,Zp as cv,eh as cw,Mh as cx,Zi as cy,us as cz,Um as d,_u as d$,Wi as d0,Tu as d1,Ur as d2,Hi as d3,_p as d4,Dd as d5,Xh as d6,Us as d7,Ni as d8,Xs as d9,ul as dA,rl as dB,ks as dC,vr as dD,Uc as dE,rd as dF,Wo as dG,wi as dH,nl as dI,pi as dJ,xo as dK,xr as dL,_h as dM,Pp as dN,qr as dO,Fh as dP,xs as dQ,sl as dR,bc as dS,Rs as dT,ci as dU,Ys as dV,Yo as dW,li as dX,bn as dY,Ud as dZ,od as d_,ws as da,bd as db,rr as dc,Hr as dd,Wr as de,nh as df,Nr as dg,Vr as dh,Mr as di,Ch as dj,Qs as dk,Dr as dl,Eo as dm,br as dn,ko as dp,Js as dq,pl as dr,Gl as ds,Mi as dt,yh as du,cl as dv,$i as dw,rp as dx,is as dy,Cr as dz,Gi as e,Ii as e$,pm as e0,ii as e1,ui as e2,td as e3,kd as e4,Ad as e5,Xg as e6,fi as e7,Ei as e8,ml as e9,pr as eA,dr as eB,Jo as eC,yr as eD,mr as eE,zo as eF,Io as eG,yo as eH,Tr as eI,wo as eJ,Pr as eK,Gr as eL,Kr as eM,Jr as eN,Yr as eO,Qr as eP,ei as eQ,ti as eR,ni as eS,mi as eT,xi as eU,bi as eV,ki as eW,Ai as eX,Di as eY,Ti as eZ,So as e_,tr as ea,bp as eb,Lr as ec,Tl as ed,pd as ee,Fr as ef,gp as eg,cs as eh,Ir as ei,Ec as ej,Zr as ek,nd as el,wm as em,Ao as en,Zo as eo,Oo as ep,er as eq,Qo as er,Mo as es,Vo as et,Ro as eu,Fo as ev,_o as ew,or as ex,Po as ey,ur as ez,To as f,Ea as f0,as as f1,ss as f2,ls as f3,Is as f4,Ms as f5,Os as f6,Ns as f7,fl as f8,$l as f9,sf as fA,dg as fB,Tf as fC,Uf as fD,Of as fE,vl as fa,qs as fb,Rd as fc,Nd as fd,Jp as fe,fu as ff,du as fg,wu as fh,Au as fi,ad as fj,Yu as fk,Bi as fl,ru as fm,Ji as fn,Yi as fo,Qi as fp,Cm as fq,Sm as fr,Am as fs,tg as ft,og as fu,Wm as fv,Wg as fw,rf as fx,af as fy,uf as fz,_r as g,_s as h,Jh as i,Yh as j,Xo as k,hi as l,Yg as m,Mf as n,Ff as o,Gg as p,Fm as q,Ho as r,Do as s,Gs as t,ol as u,vo as v,$r as w,lm as x,_f as y,$o as z};
2469
+ `,Gf=({visual:e,title:t,description:o,isOpen:r,onClose:i,onDeny:n,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Zt();return Ot(nf,{isOpen:r,onClose:i,...c,children:Rt(Wf,{children:[Rt(Hf,{children:[e&&Ot(e,{}),Ot(qi,{size:Vi.M,weight:500,color:d.v2.colors.white[500],children:t}),Ot(Pi,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>Ot(qi,{size:Vi.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(n||s)&&Rt(Xf,{children:[Ot(zm,{variant:Om.Secondary,label:a,onClick:()=>{n?.(),i()}}),s&&Ot(zm,{variant:Om.Primary,label:l,onClick:()=>{s(),i()}})]})]})})};export{ir as $,sg as A,Rm as B,Rc as C,jl as D,us as E,Pi as F,Cn as G,Ci as H,om as I,hr as J,No as K,Si as L,di as M,Pm as N,kr as O,Og as P,Go as Q,Di as R,hg as S,qi as T,nr as U,ec as V,ar as W,lr as X,fr as Y,gr as Z,sr as _,Om as a,Yn as a$,Kh as a0,as as a1,zr as a2,bl as a3,Sr as a4,wr as a5,Sl as a6,El as a7,kl as a8,Lo as a9,Gn as aA,ma as aB,la as aC,Ea as aD,Qm as aE,Sa as aF,Mm as aG,Bo as aH,fa as aI,da as aJ,jn as aK,oa as aL,xa as aM,pa as aN,Wn as aO,Ff as aP,Nn as aQ,ra as aR,sa as aS,aa as aT,Da as aU,is as aV,Mn as aW,Kn as aX,Jn as aY,qn as aZ,Ia as a_,jo as aa,$a as ab,Rn as ac,Fn as ad,rm as ae,va as af,ka as ag,Ln as ah,ga as ai,ca as aj,Ca as ak,ia as al,pf as am,wa as an,Zn as ao,Pn as ap,ea as aq,Qn as ar,Ym as as,ta as at,ya as au,ba as av,Bn as aw,Un as ax,Hn as ay,Xn as az,Mi as b,lg as b$,_a as b0,Na as b1,Oa as b2,Ra as b3,Xa as b4,zn as b5,ua as b6,Ga as b7,Va as b8,ha as b9,qa as bA,Qa as bB,Ya as bC,es as bD,Za as bE,cl as bF,Il as bG,gi as bH,Gm as bI,Xm as bJ,ag as bK,On as bL,Tn as bM,_n as bN,rs as bO,yl as bP,Ar as bQ,Ri as bR,Df as bS,gf as bT,ef as bU,mf as bV,oi as bW,Bc as bX,Cg as bY,Ms as bZ,dg as b_,na as ba,vn as bb,wn as bc,Er as bd,ol as be,el as bf,_m as bg,kn as bh,Br as bi,Ug as bj,ms as bk,En as bl,qo as bm,Gi as bn,Cl as bo,ws as bp,bs as bq,Bg as br,An as bs,In as bt,ts as bu,os as bv,Ba as bw,zi as bx,Dn as by,Ja as bz,Li as c,md as c$,fg as c0,bg as c1,cr as c2,Fi as c3,Vn as c4,Ta as c5,Ka as c6,Ma as c7,La as c8,Pa as c9,hs as cA,vu as cB,Qp as cC,vc as cD,qs as cE,jr as cF,Sn as cG,qc as cH,Gp as cI,Or as cJ,Uo as cK,xs as cL,Oi as cM,Bl as cN,ji as cO,uc as cP,yn as cQ,ih as cR,Rr as cS,Zc as cT,Ko as cU,vi as cV,ri as cW,fs as cX,Co as cY,cd as cZ,Xr as c_,za as ca,Fa as cb,im as cc,Gf as cd,Ha as ce,Wa as cf,ja as cg,Ua as ch,pl as ci,Rp as cj,Gd as ck,Cc as cl,rn as cm,Zd as cn,ju as co,Wh as cp,qu as cq,Pu as cr,rc as cs,ed as ct,fh as cu,uh as cv,eu as cw,th as cx,Bh as cy,en as cz,jm as d,rd as d$,Wi as d0,Hi as d1,Nu as d2,Ur as d3,Xi as d4,Op as d5,Td as d6,Gh as d7,js as d8,Ii as d9,Cr as dA,hl as dB,il as dC,Es as dD,vr as dE,jc as dF,id as dG,Wo as dH,wi as dI,al as dJ,pi as dK,xo as dL,xr as dM,Oh as dN,Mp as dO,qr as dP,zh as dQ,ys as dR,ll as dS,$c as dT,Fs as dU,ci as dV,Qs as dW,Yo as dX,li as dY,$n as dZ,jd as d_,Gs as da,Ss as db,$d as dc,rr as dd,Hr as de,Wr as df,ah as dg,Nr as dh,Vr as di,Mr as dj,kh as dk,Zs as dl,Dr as dm,Eo as dn,br as dp,ko as dq,Ys as dr,ul as ds,Vl as dt,Bi as du,bh as dv,dl as dw,$i as dx,ip as dy,ns as dz,Vi as e,So as e$,Ou as e0,um as e1,ii as e2,ui as e3,od as e4,Ed as e5,Dd as e6,Gg as e7,fi as e8,Ei as e9,ur as eA,pr as eB,dr as eC,Jo as eD,yr as eE,mr as eF,zo as eG,Io as eH,yo as eI,Tr as eJ,wo as eK,Pr as eL,Gr as eM,Kr as eN,Jr as eO,Yr as eP,Qr as eQ,ei as eR,ti as eS,ni as eT,mi as eU,xi as eV,bi as eW,ki as eX,Ai as eY,Ti as eZ,Ni as e_,gl as ea,tr as eb,$p as ec,Lr as ed,Nl as ee,ud as ef,Fr as eg,fp as eh,ds as ei,Ir as ej,Ac as ek,Zr as el,ad as em,Sm as en,Ao as eo,Zo as ep,Oo as eq,er,Qo as es,Mo as et,Vo as eu,Ro as ev,Fo as ew,_o as ex,or as ey,Po as ez,To as f,_i as f0,Aa as f1,ss as f2,ls as f3,cs as f4,_s as f5,Bs as f6,Rs as f7,Is as f8,xl as f9,hf as fA,lf as fB,pg as fC,Nf as fD,jf as fE,Rf as fF,vl as fa,wl as fb,Js as fc,Fd as fd,Id as fe,Yp as ff,xu as fg,pu as fh,Su as fi,Du as fj,sd as fk,Qu as fl,Ui as fm,iu as fn,Yi as fo,Qi as fp,Zi as fq,km as fr,Cm as fs,Dm as ft,og as fu,rg as fv,Hm as fw,Hg as fx,nf as fy,sf as fz,_r as g,Os as h,Yh as i,Qh as j,Xo as k,hi as l,Qg as m,Bf as n,zf as o,Vg as p,zm as q,Ho as r,Do as s,Vs as t,rl as u,vo as v,$r as w,cm as x,Of as y,$o as z};