@odigos/ui-kit 0.0.196 → 0.0.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttributeIcon as n,AddClusterInfoIcon as o,K8sLogo as r,ImageErrorIcon as a,KafkaLogo as s,RedisLogo as l,PostgresLogo as c,NginxLogo as d,MysqlLogo as p,ElixirLogo as u,SwiftLogo as h,RustLogo as m,RubyLogo as g,PhpLogo as $,CPlusPlusLogo as x,CSharpLogo as f,DotnetLogo as b,PythonLogo as y,NodejsLogo as w,GoLogo as v,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as S,UptraceLogo as E,TraceloopLogo as A,TingyunLogo as T,TempoLogo as D,TelemetryHubLogo as I,SumoLogicLogo as N,SplunkLogo as O,SignozLogo as F,SeqLogo as z,AwsS3Logo as _,QuickwitLogo as R,GigapipeLogo as B,QrynLogo as M,PrometheusLogo as P,OpenTelemetryLogo as L,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as q,ObserveLogo as G,NewRelicLogo as H,MiddlewareLogo as K,LumigoLogo as Y,LokiLogo as J,LogzioLogo as X,LightstepLogo as Z,Last9Logo as Q,KloudmateLogo as ee,JaegerLogo as te,InstanaLogo as ie,HyperDxLogo as ne,HoneycombLogo as oe,GroundcoverLogo as re,GreptimeLogo as ae,GrafanaLogo as se,GoogleCloudPlatformLogo as le,ElasticSearchLogo as ce,ElasticApmLogo as de,DynatraceLogo as pe,DatadogLogo as ue,Dash0Logo as he,CoralogixLogo as me,AwsCloudwatchLogo as ge,ClickhouseLogo as $e,ChronosphereLogo as xe,ChecklyLogo as fe,CauselyLogo as be,BonreeLogo as ye,BetterStackLogo as we,AzureMonitorLogo as ve,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Se,AlibabaCloudLogo as Ee,AlaudaLogo as Ae,InstrumentationRuleIcon as Te,ActionIcon as De,DestinationIcon as Ie,SourceIcon as Ne,NamespacesIcon as Oe,PayloadCollectionIcon as Fe,HeadersCollectionIcon as ze,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Pe,VmLogo as Le,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as qe,ISquareIcon as Ge,VIcon as He,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as Ct,forwardRef as kt,memo as St,useContext as Et,createContext as At}from"react";import Tt from"javascript-time-ago";import{p as Dt,c as It,s as Nt,e as Ot}from"./vendor-DUWBN0Mg.js";import{jsx as Ft,jsxs as zt,Fragment as _t}from"react/jsx-runtime";import Rt,{css as Bt,useTheme as Mt,ThemeProvider as Pt,keyframes as Lt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlow as Wt,Controls as Vt}from"@xyflow/react";import qt,{createPortal as Gt}from"react-dom";import{Highlight as Ht,themes as Kt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Jt from"lottie-react";import{VList as Xt}from"virtua";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,Ci,ki,Si,Ei,Ai,Ti,Di,Ii,Ni,Oi,Fi,zi,_i,Ri,Bi,Mi,Pi,Li,ji,Ui,Wi,Vi,qi,Gi,Hi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),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"}(si||(si={})),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"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),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"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),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"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),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"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),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"}(Ci||(Ci={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ki||(ki={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Si||(Si={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Ei||(Ei={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ti||(Ti={})),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"}(Di||(Di={})),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"}(Ii||(Ii={})),function(e){e.Labeled="labeled"}(Ni||(Ni={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Oi||(Oi={})),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"}(Fi||(Fi={})),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"}(zi||(zi={})),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"}(_i||(_i={})),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"}(Ri||(Ri={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bi||(Bi={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Pi||(Pi={})),function(e){e.Java="java",e.Golang="golang"}(Li||(Li={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),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"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(qi||(qi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Gi||(Gi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Hi||(Hi={}));const Ji={[Gi.Logs]:Hi.Logs,[Gi.Metrics]:Hi.Metrics,[Gi.Traces]:Hi.Traces},Xi={[Hi.Logs]:Gi.Logs,[Hi.Metrics]:Gi.Metrics,[Hi.Traces]:Gi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Si.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={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)'},on={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",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."},rn={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"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=s=>{const l=s?.toLowerCase(),c=l?.includes(ai.Samplers),d=l===ai.Attributes;return c?e:d?t:{[si.K8sAttributes]:r,[si.AddClusterInfo]:o,[si.DeleteAttributes]:n,[si.PiiMasking]:t,[si.RenameAttributes]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[s]||a},un=e=>{const t=e?.filter(({status:e})=>e===Si.Error),i=e?.filter(({status:e})=>e===Si.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Si.Error:a?Si.Warning:s?Si.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:C,[bi.Go]:v,[bi.JavaScript]:w,[bi.Python]:y,[bi.DotNet]:b,[bi.CSharp]:f,[bi.CPlusPlus]:x,[bi.Php]:$,[bi.Ruby]:g,[bi.Rust]:m,[bi.Swift]:h,[bi.Elixir]:u,[bi.MySql]:p,[bi.Nginx]:d,[bi.Postgres]:c,[bi.Redis]:l,[bi.Kafka]:s,[bi.Ignored]:a,[bi.Unknown]:a,[bi.Processing]:a,[bi.NoContainers]:a,[bi.NoRunningPods]:a}[e]||a),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=(e,t)=>{const i={[Fi.Alauda]:Ae,[Fi.AlibabaCloud]:Ee,[Fi.AppDynamics]:Se,[Fi.Axiom]:ke,[Fi.AzureBlob]:Ce,[Fi.AzureMonitor]:ve,[Fi.BetterStack]:we,[Fi.Bonree]:ye,[Fi.Causely]:be,[Fi.Checkly]:fe,[Fi.Chronosphere]:xe,[Fi.ClickHouse]:$e,[Fi.CloudWatch]:ge,[Fi.Coralogix]:me,[Fi.Dash0]:he,[Fi.Datadog]:ue,[Fi.Dynamic]:L,[Fi.Dynatrace]:pe,[Fi.ElasticApm]:de,[Fi.ElasticSearch]:ce,[Fi.GoogleCloud]:le,[Fi.GoogleCloudOTLP]:le,[Fi.GrafanaCloudLoki]:se,[Fi.GrafanaCloudPrometheus]:se,[Fi.GrafanaCloudTempo]:se,[Fi.Greptime]:ae,[Fi.Groundcover]:re,[Fi.Honeycomb]:oe,[Fi.HyperDX]:ne,[Fi.Instana]:ie,[Fi.Jaeger]:te,[Fi.Kafka]:s,[Fi.Kloudmate]:ee,[Fi.Last9]:Q,[Fi.Lightstep]:Z,[Fi.LogzIo]:X,[Fi.Loki]:J,[Fi.Lumigo]:Y,[Fi.Middleware]:K,[Fi.NewRelic]:H,[Fi.Observe]:G,[Fi.Odigos]:q,[Fi.OneUptime]:V,[Fi.OpenObserve]:W,[Fi.Opsverse]:U,[Fi.Oracle]:j,[Fi.OTLP]:L,[Fi.OTLPHttp]:L,[Fi.Prometheus]:P,[Fi.Qryn]:M,[Fi.QrynOss]:B,[Fi.Quickwit]:R,[Fi.S3]:_,[Fi.Seq]:z,[Fi.Signalfx]:O,[Fi.Signoz]:F,[Fi.Splunk]:O,[Fi.SplunkSapm]:O,[Fi.SplunkOtlp]:O,[Fi.SumoLogic]:N,[Fi.TelemetryHub]:I,[Fi.Tempo]:D,[Fi.Tingyun]:T,[Fi.Traceloop]:A,[Fi.Uptrace]:E,[Fi.VictoriaMetrics]:S,[Fi.VictoriaMetricsCloud]:S,[Fi.XRay]:k}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xn=e=>({[wi.Namespace]:Oe,[wi.Source]:Ne,[wi.Destination]:Ie,[wi.Action]:De,[wi.InstrumentationRule]:Te}[e]),fn=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,bn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},yn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},wn=e=>({[Bi.CodeAttributes]:Re,[Bi.CustomInstrumentation]:_e,[Bi.HeadersCollection]:ze,[Bi.PayloadCollection]:Fe,[Bi.UnknownType]:a}[e]||a),vn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},Cn=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},kn=e=>({[Gi.Logs]:Pe,[Gi.Metrics]:Me,[Gi.Traces]:Be}[e]),Sn=e=>e?{[xi.K8s]:r,[xi.Vm]:Le}[e]:q,En=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",An=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...An(e,t,i)),o}):[]},Tn=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Dn=(e,t,i)=>{switch(t){case Si.Default:return e.v2.colors.purple[i];case Si.Info:return e.v2.colors.blue[i];case Si.Error:return e.v2.colors.red[i];case Si.Warning:return e.v2.colors.yellow[i];case Si.Success:return e.v2.colors.green[i];case Ti.Disabled:case Ti.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},In=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case qi.Waiting:return Si.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case qi.Running:return Si.Success;case Ui.Degraded:return Si.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case qi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Si.Error;case Ui.Down:case Vi.Completed:return Ti.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Ti.Unknown}},Nn=(e,t)=>({[Si.Default]:i=>q({fill:Dn(t,e,"300"),...i}),[Si.Info]:i=>Ge({fill:Dn(t,e,"400"),...i}),[Si.Error]:i=>qe({fill:Dn(t,e,"500"),...i}),[Si.Warning]:i=>Ve({fill:Dn(t,e,"500"),...i}),[Si.Success]:i=>We({fill:Dn(t,e,"500"),...i}),[Ti.Disabled]:i=>Ue({fill:Dn(t,e,"400"),...i}),[Ti.Unknown]:i=>je({fill:Dn(t,e,"300"),...i})}[e]),On=e=>{switch(e){case Ri.Success:return Si.Success;case Ri.Error:case Ri.Failure:return Si.Error;case Ri.Notice:return Si.Warning;case Ri.Unsupported:case Ri.Unknown:return Si.Info;case Ri.Irrelevant:case Ri.Disabled:return Ai.Disabled;case Ri.Waiting:return Ai.Loading;case Ri.Pending:default:return Si.Default}},Fn=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},zn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function _n(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Rn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=_n(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Bn=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Si.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Mn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Pn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ln=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},jn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Un=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Wn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Vn=e=>Wn.test(e),qn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Gn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:qn(t),reason:i?qn(i):"",message:n,lastTransitionTime:o}))||[],Hn=(e,t)=>{const i=_n(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Kn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Yn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Jn=e=>e.replace(/[^\d]/g,""),Xn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Zn=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},Qn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Qn(e)))}else if("object"==typeof n&&null!==n){const e=Qn(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},eo=(e,t=2)=>JSON.stringify(e||{},null,t),to=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),io=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),no=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oo,ro;!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"}(oo||(oo={})),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"}(ro||(ro={}));const ao=Rt.p`
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttributeIcon as n,AddClusterInfoIcon as o,K8sLogo as r,ImageErrorIcon as a,KafkaLogo as s,RedisLogo as l,PostgresLogo as c,NginxLogo as d,MysqlLogo as p,ElixirLogo as u,SwiftLogo as h,RustLogo as m,RubyLogo as g,PhpLogo as $,CPlusPlusLogo as x,CSharpLogo as f,DotnetLogo as b,PythonLogo as y,NodejsLogo as w,GoLogo as v,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as S,UptraceLogo as E,TraceloopLogo as A,TingyunLogo as T,TempoLogo as D,TelemetryHubLogo as I,SumoLogicLogo as N,SplunkLogo as O,SignozLogo as F,SeqLogo as z,AwsS3Logo as _,QuickwitLogo as R,GigapipeLogo as B,QrynLogo as M,PrometheusLogo as L,OpenTelemetryLogo as P,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as G,ObserveLogo as q,NewRelicLogo as H,MiddlewareLogo as K,LumigoLogo as Y,LokiLogo as J,LogzioLogo as X,LightstepLogo as Z,Last9Logo as Q,KloudmateLogo as ee,JaegerLogo as te,InstanaLogo as ie,HyperDxLogo as ne,HoneycombLogo as oe,GroundcoverLogo as re,GreptimeLogo as ae,GrafanaLogo as se,GoogleCloudPlatformLogo as le,ElasticSearchLogo as ce,ElasticApmLogo as de,DynatraceLogo as pe,DatadogLogo as ue,Dash0Logo as he,CoralogixLogo as me,AwsCloudwatchLogo as ge,ClickhouseLogo as $e,ChronosphereLogo as xe,ChecklyLogo as fe,CauselyLogo as be,BonreeLogo as ye,BetterStackLogo as we,AzureMonitorLogo as ve,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Se,AlibabaCloudLogo as Ee,AlaudaLogo as Ae,InstrumentationRuleIcon as Te,ActionIcon as De,DestinationIcon as Ie,SourceIcon as Ne,NamespacesIcon as Oe,PayloadCollectionIcon as Fe,HeadersCollectionIcon as ze,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as Ge,ISquareIcon as qe,VIcon as He,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as Ct,forwardRef as kt,memo as St,useContext as Et,createContext as At}from"react";import Tt from"javascript-time-ago";import{p as Dt,c as It,s as Nt,e as Ot}from"./vendor-DUWBN0Mg.js";import{jsx as Ft,jsxs as zt,Fragment as _t}from"react/jsx-runtime";import Rt,{css as Bt,useTheme as Mt,ThemeProvider as Lt,keyframes as Pt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlow as Wt,Controls as Vt}from"@xyflow/react";import Gt,{createPortal as qt}from"react-dom";import{Highlight as Ht,themes as Kt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Jt from"lottie-react";import{VList as Xt}from"virtua";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,Ci,ki,Si,Ei,Ai,Ti,Di,Ii,Ni,Oi,Fi,zi,_i,Ri,Bi,Mi,Li,Pi,ji,Ui,Wi,Vi,Gi,qi,Hi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),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"}(si||(si={})),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"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),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"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),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"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),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"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),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"}(Ci||(Ci={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(ki||(ki={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Si||(Si={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Ei||(Ei={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ti||(Ti={})),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"}(Di||(Di={})),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"}(Ii||(Ii={})),function(e){e.Labeled="labeled"}(Ni||(Ni={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Oi||(Oi={})),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"}(Fi||(Fi={})),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"}(zi||(zi={})),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"}(_i||(_i={})),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"}(Ri||(Ri={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bi||(Bi={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Li||(Li={})),function(e){e.Java="java",e.Golang="golang"}(Pi||(Pi={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),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"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Gi||(Gi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(qi||(qi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Hi||(Hi={}));const Ji={[qi.Logs]:Hi.Logs,[qi.Metrics]:Hi.Metrics,[qi.Traces]:Hi.Traces},Xi={[Hi.Logs]:qi.Logs,[Hi.Metrics]:qi.Metrics,[Hi.Traces]:qi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Si.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={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)'},on={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",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."},rn={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"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=s=>{const l=s?.toLowerCase(),c=l?.includes(ai.Samplers),d=l===ai.Attributes;return c?e:d?t:{[si.K8sAttributes]:r,[si.AddClusterInfo]:o,[si.DeleteAttributes]:n,[si.PiiMasking]:t,[si.RenameAttributes]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[s]||a},un=e=>{const t=e?.filter(({status:e})=>e===Si.Error),i=e?.filter(({status:e})=>e===Si.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Si.Error:a?Si.Warning:s?Si.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:C,[bi.Go]:v,[bi.JavaScript]:w,[bi.Python]:y,[bi.DotNet]:b,[bi.CSharp]:f,[bi.CPlusPlus]:x,[bi.Php]:$,[bi.Ruby]:g,[bi.Rust]:m,[bi.Swift]:h,[bi.Elixir]:u,[bi.MySql]:p,[bi.Nginx]:d,[bi.Postgres]:c,[bi.Redis]:l,[bi.Kafka]:s,[bi.Ignored]:a,[bi.Unknown]:a,[bi.Processing]:a,[bi.NoContainers]:a,[bi.NoRunningPods]:a}[e]||a),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=(e,t)=>{const i={[Fi.Alauda]:Ae,[Fi.AlibabaCloud]:Ee,[Fi.AppDynamics]:Se,[Fi.Axiom]:ke,[Fi.AzureBlob]:Ce,[Fi.AzureMonitor]:ve,[Fi.BetterStack]:we,[Fi.Bonree]:ye,[Fi.Causely]:be,[Fi.Checkly]:fe,[Fi.Chronosphere]:xe,[Fi.ClickHouse]:$e,[Fi.CloudWatch]:ge,[Fi.Coralogix]:me,[Fi.Dash0]:he,[Fi.Datadog]:ue,[Fi.Dynamic]:P,[Fi.Dynatrace]:pe,[Fi.ElasticApm]:de,[Fi.ElasticSearch]:ce,[Fi.GoogleCloud]:le,[Fi.GoogleCloudOTLP]:le,[Fi.GrafanaCloudLoki]:se,[Fi.GrafanaCloudPrometheus]:se,[Fi.GrafanaCloudTempo]:se,[Fi.Greptime]:ae,[Fi.Groundcover]:re,[Fi.Honeycomb]:oe,[Fi.HyperDX]:ne,[Fi.Instana]:ie,[Fi.Jaeger]:te,[Fi.Kafka]:s,[Fi.Kloudmate]:ee,[Fi.Last9]:Q,[Fi.Lightstep]:Z,[Fi.LogzIo]:X,[Fi.Loki]:J,[Fi.Lumigo]:Y,[Fi.Middleware]:K,[Fi.NewRelic]:H,[Fi.Observe]:q,[Fi.Odigos]:G,[Fi.OneUptime]:V,[Fi.OpenObserve]:W,[Fi.Opsverse]:U,[Fi.Oracle]:j,[Fi.OTLP]:P,[Fi.OTLPHttp]:P,[Fi.Prometheus]:L,[Fi.Qryn]:M,[Fi.QrynOss]:B,[Fi.Quickwit]:R,[Fi.S3]:_,[Fi.Seq]:z,[Fi.Signalfx]:O,[Fi.Signoz]:F,[Fi.Splunk]:O,[Fi.SplunkSapm]:O,[Fi.SplunkOtlp]:O,[Fi.SumoLogic]:N,[Fi.TelemetryHub]:I,[Fi.Tempo]:D,[Fi.Tingyun]:T,[Fi.Traceloop]:A,[Fi.Uptrace]:E,[Fi.VictoriaMetrics]:S,[Fi.VictoriaMetricsCloud]:S,[Fi.XRay]:k}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xn=e=>({[wi.Namespace]:Oe,[wi.Source]:Ne,[wi.Destination]:Ie,[wi.Action]:De,[wi.InstrumentationRule]:Te}[e]),fn=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,bn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},yn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},wn=e=>({[Bi.CodeAttributes]:Re,[Bi.CustomInstrumentation]:_e,[Bi.HeadersCollection]:ze,[Bi.PayloadCollection]:Fe,[Bi.UnknownType]:a}[e]||a),vn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},Cn=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},kn=e=>({[qi.Logs]:Le,[qi.Metrics]:Me,[qi.Traces]:Be}[e]),Sn=e=>e?{[xi.K8s]:r,[xi.Vm]:Pe}[e]:G,En=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",An=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...An(e,t,i)),o}):[]},Tn=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Dn=(e,t,i)=>{switch(t){case Si.Default:return e.v2.colors.purple[i];case Si.Info:return e.v2.colors.blue[i];case Si.Error:return e.v2.colors.red[i];case Si.Warning:return e.v2.colors.yellow[i];case Si.Success:return e.v2.colors.green[i];case Ti.Disabled:case Ti.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},In=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case Gi.Waiting:return Si.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case Gi.Running:return Si.Success;case Ui.Degraded:return Si.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case Gi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Si.Error;case Ui.Down:case Vi.Completed:return Ti.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Ti.Unknown}},Nn=(e,t)=>({[Si.Default]:i=>G({fill:Dn(t,e,"300"),...i}),[Si.Info]:i=>qe({fill:Dn(t,e,"400"),...i}),[Si.Error]:i=>Ge({fill:Dn(t,e,"500"),...i}),[Si.Warning]:i=>Ve({fill:Dn(t,e,"500"),...i}),[Si.Success]:i=>We({fill:Dn(t,e,"500"),...i}),[Ti.Disabled]:i=>Ue({fill:Dn(t,e,"400"),...i}),[Ti.Unknown]:i=>je({fill:Dn(t,e,"300"),...i})}[e]),On=e=>{switch(e){case Ri.Success:return Si.Success;case Ri.Error:case Ri.Failure:return Si.Error;case Ri.Notice:return Si.Warning;case Ri.Unsupported:case Ri.Unknown:return Si.Info;case Ri.Irrelevant:case Ri.Disabled:return Ai.Disabled;case Ri.Waiting:return Ai.Loading;case Ri.Pending:default:return Si.Default}},Fn=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},zn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function _n(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Rn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=_n(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Bn=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Si.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Mn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ln=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Pn=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},jn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Un=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Wn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Vn=e=>Wn.test(e),Gn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",qn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:Gn(t),reason:i?Gn(i):"",message:n,lastTransitionTime:o}))||[],Hn=(e,t)=>{const i=_n(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Kn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Yn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Jn=e=>e.replace(/[^\d]/g,""),Xn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Zn=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},Qn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Qn(e)))}else if("object"==typeof n&&null!==n){const e=Qn(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},eo=(e,t=2)=>JSON.stringify(e||{},null,t),to=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),io=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),no=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oo,ro;!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"}(oo||(oo={})),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"}(ro||(ro={}));const ao=Rt.p`
2
2
  margin: 0;
3
3
  color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
4
4
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -142,51 +142,51 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
142
142
  margin: 4px 0 0 0;
143
143
  list-style: none;
144
144
  width: 100%;
145
- `,No=(e,t)=>t?e.reduce((e,i)=>{if(i.items){const n=No(i.items,t);n.length&&e.push({...i,items:n})}else i.label.toLowerCase().includes(t.toLowerCase())&&e.push(i);return e},[]):e,Oo=({placeholder:e="Type to search...",options:t,selectedOption:i,onOptionSelect:n,defaultText:o,onTextChange:r,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(i?.label||o||""),[u,h]=yt(No(t,d)),[m,g]=yt(!1);yt(-1),wt(()=>h(No(t,d)),[t]);const $=i?.icon,x=e=>{e&&(p(e.label),r?.(e.label)),g(!e),n?.(e)};return zt(bo,{style:a,children:[zt(yo,{$hasError:!!l,children:[$&&Ft($,{}),Ft(wo,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const i=e.target.value,n=No(t,i),o=1===n.length&&n[0].label===i?n[0]:void 0;p(i),r?.(i),h(n),x(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Ft(vo,{children:u.map(e=>Ft(Fo,{option:e,onClick:x},e.type||e.label))}):null,l&&Ft(fo,{children:l})]})},Fo=({option:e,renderIcon:t=!0,onClick:i})=>{const n=!!e.items&&e.items.length>0,o=e.icon;return zt(Co,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:i(e),children:[o&&t&&Ft(o,{}),zt(ko,{children:[zt(Ao,{children:[Ft(To,{children:e.label}),Ft(Do,{children:e.description})]}),n&&Ft(Io,{children:e.items?.map(e=>zt(So,{children:[Ft(Eo,{}),Ft(Fo,{option:e,renderIcon:!1,onClick:i})]},e.type||e.label))})]})]})},zo=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),_o=[{type:si.K8sAttributes,icon:pn(si.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Gi.Traces,Gi.Metrics,Gi.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:si.AddClusterInfo,icon:pn(si.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Gi.Traces,Gi.Metrics,Gi.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:si.DeleteAttributes,icon:pn(si.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Gi.Traces,Gi.Metrics,Gi.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:si.RenameAttributes,icon:pn(si.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Gi.Traces,Gi.Metrics,Gi.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:si.PiiMasking,icon:pn(si.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Gi.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}],Ro=[{type:si.ErrorSampler,icon:pn(ai.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Gi.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:si.LatencySampler,icon:pn(ai.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Gi.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:si.ProbabilisticSampler,icon:pn(ai.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Gi.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:si.ServiceNameSampler,icon:pn(ai.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Gi.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:si.SpanAttributeSampler,icon:pn(ai.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Gi.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."}],Bo=[{label:"Attributes",icon:pn(ai.Attributes),items:_o},{label:"Samplers",icon:pn(ai.Samplers),items:Ro}];var Mo;!function(e){e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Mo||(Mo={}));const Po={[Mo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Mo.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."},[Mo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Mo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Lo=[{type:Bi.CodeAttributes,icon:wn(Bi.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:[bi.Go,bi.Python]},{type:Bi.CustomInstrumentation,icon:wn(Bi.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:[bi.Go,bi.Java]},{type:Bi.HeadersCollection,icon:wn(Bi.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:[bi.Go,bi.Java,bi.JavaScript]},{type:Bi.PayloadCollection,icon:wn(Bi.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:[bi.Go]}],jo=[{id:Gi.Logs,value:"Logs"},{id:Gi.Metrics,value:"Metrics"},{id:Gi.Traces,value:"Traces"}],Uo={[bi.Go]:"Go",[bi.Java]:"Java",[bi.JavaScript]:"Node.js",[bi.Python]:"Python",[bi.DotNet]:".NET",[bi.CSharp]:"C#",[bi.CPlusPlus]:"C++",[bi.Php]:"PHP",[bi.Ruby]:"Ruby",[bi.Rust]:"Rust",[bi.Swift]:"Swift",[bi.Elixir]:"Elixir",[bi.MySql]:"MySQL",[bi.Nginx]:"Nginx",[bi.Postgres]:"PostgreSQL",[bi.Redis]:"Redis",[bi.Kafka]:"Kafka",[bi.Ignored]:"Ignored",[bi.Unknown]:"Unknown",[bi.Processing]:"Processing",[bi.NoContainers]:"No Containers",[bi.NoRunningPods]:"No Running Pods"},Wo=[{id:bi.Go,value:Uo[bi.Go],icon:mn(bi.Go)},{id:bi.Java,value:Uo[bi.Java],icon:mn(bi.Java)},{id:bi.JavaScript,value:Uo[bi.JavaScript],icon:mn(bi.JavaScript)},{id:bi.Python,value:Uo[bi.Python],icon:mn(bi.Python)},{id:bi.Php,value:Uo[bi.Php],icon:mn(bi.Php)},{id:bi.Ruby,value:Uo[bi.Ruby],icon:mn(bi.Ruby)},{id:bi.Rust,value:Uo[bi.Rust],icon:mn(bi.Rust)},{id:bi.DotNet,value:Uo[bi.DotNet],icon:mn(bi.DotNet)},{id:bi.CSharp,value:Uo[bi.CSharp],icon:mn(bi.CSharp)},{id:bi.CPlusPlus,value:Uo[bi.CPlusPlus],icon:mn(bi.CPlusPlus)},{id:bi.Swift,value:Uo[bi.Swift],icon:mn(bi.Swift)},{id:bi.Elixir,value:Uo[bi.Elixir],icon:mn(bi.Elixir)}],Vo={[bi.Go]:{community:[{id:_i.GolangCommunity,value:_i.GolangCommunity,icon:mn(bi.Go)}],enterprise:[{id:_i.GolangEnterprise,value:_i.GolangEnterprise,icon:mn(bi.Go)}]},[bi.JavaScript]:{community:[{id:_i.NodejsCommunity,value:_i.NodejsCommunity,icon:mn(bi.JavaScript)}],enterprise:[{id:_i.NodejsEnterprise,value:_i.NodejsEnterprise,icon:mn(bi.JavaScript)}]},[bi.Python]:{community:[{id:_i.PythonCommunity,value:_i.PythonCommunity,icon:mn(bi.Python)}],enterprise:[{id:_i.PythonEnterprise,value:_i.PythonEnterprise,icon:mn(bi.Python)}]},[bi.Java]:{community:[{id:_i.JavaCommunity,value:_i.JavaCommunity,icon:mn(bi.Java)}],enterprise:[{id:_i.JavaEnterprise,value:_i.JavaEnterprise,icon:mn(bi.Java)},{id:_i.JavaEbpfInstrumentations,value:_i.JavaEbpfInstrumentations,icon:mn(bi.Java)}]},[bi.DotNet]:{community:[{id:_i.DotNetCommunity,value:_i.DotNetCommunity,icon:mn(bi.DotNet)}],enterprise:[{id:_i.DotNetEnterprise,value:_i.DotNetEnterprise,icon:mn(bi.DotNet)}]},[bi.Ruby]:{community:[{id:_i.RubyCommunity,value:_i.RubyCommunity,icon:mn(bi.Ruby)}],enterprise:[{id:_i.RubyEnterprise,value:_i.RubyEnterprise,icon:mn(bi.Ruby)}]},[bi.Php]:{community:[{id:_i.PhpCommunity,value:_i.PhpCommunity,icon:mn(bi.Php)}],enterprise:[]},[bi.CSharp]:{community:[],enterprise:[{id:_i.CPlusPlusEnterprise,value:_i.CPlusPlusEnterprise,icon:mn(bi.CSharp)}]},[bi.MySql]:{community:[],enterprise:[{id:_i.MySqlEnterprise,value:_i.MySqlEnterprise,icon:mn(bi.MySql)}]},[bi.CPlusPlus]:{community:[],enterprise:[]},[bi.Rust]:{community:[],enterprise:[]},[bi.Swift]:{community:[],enterprise:[]},[bi.Elixir]:{community:[],enterprise:[]},[bi.Nginx]:{community:[],enterprise:[]},[bi.Postgres]:{community:[],enterprise:[]},[bi.Redis]:{community:[],enterprise:[]},[bi.Kafka]:{community:[],enterprise:[]},[bi.Ignored]:{community:[],enterprise:[]},[bi.Unknown]:{community:[],enterprise:[]},[bi.Processing]:{community:[],enterprise:[]},[bi.NoContainers]:{community:[],enterprise:[]},[bi.NoRunningPods]:{community:[],enterprise:[]}},qo=6048e5,Go=xt()(Dt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:tn.DARK_MODE,storage:"undefined"!=typeof window?It(()=>localStorage):void 0})),Ho={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Ko=xt(e=>({...Ho,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Ho)})),Yo=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Jo=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,i)=>{const n=t===wi.Namespace?"namespacesLoading":t===wi.Source?"sourcesLoading":t===wi.Destination?"destinationsLoading":t===wi.Action?"actionsLoading":t===wi.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:i})},setEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:i})},addEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(JSON.stringify(fn(e)),t)}),i.forEach(e=>{const i=JSON.stringify(fn(e)),n=o.get(i);void 0!==n?t[n]={...t[n],...e}:(o.set(i,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const o=new Set;i.forEach(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(e);o.add(i)});const r=e[n].filter(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(fn(e));return!o.has(i)});return{[n]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Xo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Zo=xt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:Xo})),Qo=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),er=xt((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,o=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:o,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var tr;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(tr||(tr={}));const ir=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),nr=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),or=xt((e,t)=>({progress:{},setProgress:(i,n)=>{const o=t(),r=ir();return"number"==typeof n.total&&(r.total=n.total),"number"==typeof n.current&&(r.current=n.current),e({progress:{...o.progress,[i]:nr(r)}})},addProgress:(i,n)=>{const o=t(),r=ir(i,o.progress);return r.current+=n,e({progress:{...o.progress,[i]:nr(r)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),rr=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ar={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},sr=(e,t)=>e.destinationType.type!==t.destinationType.type,lr=xt(e=>({...ar,setAvailableSources:t=>e({availableSources:t}),setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>sr(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>sr(e,t))})),clearStore:()=>e(()=>({...ar}))})),cr={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"}},dr={v2:cr.v2,darkMode:!0,colors:{...cr.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:cr.font_family},pr={v2:cr.v2,darkMode:!1,colors:{...cr.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:cr.font_family},ur=e=>e?dr:pr;var hr=Object.freeze({__proto__:null,baseTheme:cr,darkModeTheme:dr,getTheme:ur,lightModeTheme:pr});Nt('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const mr=({children:e})=>{const{darkMode:t}=Go();return Ft(Pt,{theme:ur(t),children:e})},gr={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 $r=Object.freeze({__proto__:null,hex:gr});const xr={in:{left:Lt`
145
+ `,No=(e,t)=>t?e.reduce((e,i)=>{if(i.items){const n=No(i.items,t);n.length&&e.push({...i,items:n})}else i.label.toLowerCase().includes(t.toLowerCase())&&e.push(i);return e},[]):e,Oo=({placeholder:e="Type to search...",options:t,selectedOption:i,onOptionSelect:n,defaultText:o,onTextChange:r,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(i?.label||o||""),[u,h]=yt(No(t,d)),[m,g]=yt(!1);yt(-1),wt(()=>h(No(t,d)),[t]);const $=i?.icon,x=e=>{e&&(p(e.label),r?.(e.label)),g(!e),n?.(e)};return zt(bo,{style:a,children:[zt(yo,{$hasError:!!l,children:[$&&Ft($,{}),Ft(wo,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const i=e.target.value,n=No(t,i),o=1===n.length&&n[0].label===i?n[0]:void 0;p(i),r?.(i),h(n),x(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Ft(vo,{children:u.map(e=>Ft(Fo,{option:e,onClick:x},e.type||e.label))}):null,l&&Ft(fo,{children:l})]})},Fo=({option:e,renderIcon:t=!0,onClick:i})=>{const n=!!e.items&&e.items.length>0,o=e.icon;return zt(Co,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:i(e),children:[o&&t&&Ft(o,{}),zt(ko,{children:[zt(Ao,{children:[Ft(To,{children:e.label}),Ft(Do,{children:e.description})]}),n&&Ft(Io,{children:e.items?.map(e=>zt(So,{children:[Ft(Eo,{}),Ft(Fo,{option:e,renderIcon:!1,onClick:i})]},e.type||e.label))})]})]})},zo=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),_o=[{type:si.K8sAttributes,icon:pn(si.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[qi.Traces,qi.Metrics,qi.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:si.AddClusterInfo,icon:pn(si.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[qi.Traces,qi.Metrics,qi.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:si.DeleteAttributes,icon:pn(si.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[qi.Traces,qi.Metrics,qi.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:si.RenameAttributes,icon:pn(si.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[qi.Traces,qi.Metrics,qi.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:si.PiiMasking,icon:pn(si.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[qi.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}],Ro=[{type:si.ErrorSampler,icon:pn(ai.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[qi.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:si.LatencySampler,icon:pn(ai.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[qi.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:si.ProbabilisticSampler,icon:pn(ai.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[qi.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:si.ServiceNameSampler,icon:pn(ai.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[qi.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:si.SpanAttributeSampler,icon:pn(ai.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[qi.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."}],Bo=[{label:"Attributes",icon:pn(ai.Attributes),items:_o},{label:"Samplers",icon:pn(ai.Samplers),items:Ro}];var Mo;!function(e){e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Mo||(Mo={}));const Lo={[Mo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Mo.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."},[Mo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Mo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Po=[{type:Bi.CodeAttributes,icon:wn(Bi.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:[bi.Go,bi.Python]},{type:Bi.CustomInstrumentation,icon:wn(Bi.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:[bi.Go,bi.Java]},{type:Bi.HeadersCollection,icon:wn(Bi.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:[bi.Go,bi.Java,bi.JavaScript]},{type:Bi.PayloadCollection,icon:wn(Bi.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:[bi.Go]}],jo=[{id:qi.Logs,value:"Logs"},{id:qi.Metrics,value:"Metrics"},{id:qi.Traces,value:"Traces"}],Uo={[bi.Go]:"Go",[bi.Java]:"Java",[bi.JavaScript]:"Node.js",[bi.Python]:"Python",[bi.DotNet]:".NET",[bi.CSharp]:"C#",[bi.CPlusPlus]:"C++",[bi.Php]:"PHP",[bi.Ruby]:"Ruby",[bi.Rust]:"Rust",[bi.Swift]:"Swift",[bi.Elixir]:"Elixir",[bi.MySql]:"MySQL",[bi.Nginx]:"Nginx",[bi.Postgres]:"PostgreSQL",[bi.Redis]:"Redis",[bi.Kafka]:"Kafka",[bi.Ignored]:"Ignored",[bi.Unknown]:"Unknown",[bi.Processing]:"Processing",[bi.NoContainers]:"No Containers",[bi.NoRunningPods]:"No Running Pods"},Wo=[{id:bi.Go,value:Uo[bi.Go],icon:mn(bi.Go)},{id:bi.Java,value:Uo[bi.Java],icon:mn(bi.Java)},{id:bi.JavaScript,value:Uo[bi.JavaScript],icon:mn(bi.JavaScript)},{id:bi.Python,value:Uo[bi.Python],icon:mn(bi.Python)},{id:bi.Php,value:Uo[bi.Php],icon:mn(bi.Php)},{id:bi.Ruby,value:Uo[bi.Ruby],icon:mn(bi.Ruby)},{id:bi.Rust,value:Uo[bi.Rust],icon:mn(bi.Rust)},{id:bi.DotNet,value:Uo[bi.DotNet],icon:mn(bi.DotNet)},{id:bi.CSharp,value:Uo[bi.CSharp],icon:mn(bi.CSharp)},{id:bi.CPlusPlus,value:Uo[bi.CPlusPlus],icon:mn(bi.CPlusPlus)},{id:bi.Swift,value:Uo[bi.Swift],icon:mn(bi.Swift)},{id:bi.Elixir,value:Uo[bi.Elixir],icon:mn(bi.Elixir)}],Vo={[bi.Go]:{community:[{id:_i.GolangCommunity,value:_i.GolangCommunity,icon:mn(bi.Go)}],enterprise:[{id:_i.GolangEnterprise,value:_i.GolangEnterprise,icon:mn(bi.Go)}]},[bi.JavaScript]:{community:[{id:_i.NodejsCommunity,value:_i.NodejsCommunity,icon:mn(bi.JavaScript)}],enterprise:[{id:_i.NodejsEnterprise,value:_i.NodejsEnterprise,icon:mn(bi.JavaScript)}]},[bi.Python]:{community:[{id:_i.PythonCommunity,value:_i.PythonCommunity,icon:mn(bi.Python)}],enterprise:[{id:_i.PythonEnterprise,value:_i.PythonEnterprise,icon:mn(bi.Python)}]},[bi.Java]:{community:[{id:_i.JavaCommunity,value:_i.JavaCommunity,icon:mn(bi.Java)}],enterprise:[{id:_i.JavaEnterprise,value:_i.JavaEnterprise,icon:mn(bi.Java)},{id:_i.JavaEbpfInstrumentations,value:_i.JavaEbpfInstrumentations,icon:mn(bi.Java)}]},[bi.DotNet]:{community:[{id:_i.DotNetCommunity,value:_i.DotNetCommunity,icon:mn(bi.DotNet)}],enterprise:[{id:_i.DotNetEnterprise,value:_i.DotNetEnterprise,icon:mn(bi.DotNet)}]},[bi.Ruby]:{community:[{id:_i.RubyCommunity,value:_i.RubyCommunity,icon:mn(bi.Ruby)}],enterprise:[{id:_i.RubyEnterprise,value:_i.RubyEnterprise,icon:mn(bi.Ruby)}]},[bi.Php]:{community:[{id:_i.PhpCommunity,value:_i.PhpCommunity,icon:mn(bi.Php)}],enterprise:[]},[bi.CSharp]:{community:[],enterprise:[{id:_i.CPlusPlusEnterprise,value:_i.CPlusPlusEnterprise,icon:mn(bi.CSharp)}]},[bi.MySql]:{community:[],enterprise:[{id:_i.MySqlEnterprise,value:_i.MySqlEnterprise,icon:mn(bi.MySql)}]},[bi.CPlusPlus]:{community:[],enterprise:[]},[bi.Rust]:{community:[],enterprise:[]},[bi.Swift]:{community:[],enterprise:[]},[bi.Elixir]:{community:[],enterprise:[]},[bi.Nginx]:{community:[],enterprise:[]},[bi.Postgres]:{community:[],enterprise:[]},[bi.Redis]:{community:[],enterprise:[]},[bi.Kafka]:{community:[],enterprise:[]},[bi.Ignored]:{community:[],enterprise:[]},[bi.Unknown]:{community:[],enterprise:[]},[bi.Processing]:{community:[],enterprise:[]},[bi.NoContainers]:{community:[],enterprise:[]},[bi.NoRunningPods]:{community:[],enterprise:[]}},Go=6048e5,qo=xt()(Dt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:tn.DARK_MODE,storage:"undefined"!=typeof window?It(()=>localStorage):void 0})),Ho={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Ko=xt(e=>({...Ho,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Ho)})),Yo=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Jo=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,i)=>{const n=t===wi.Namespace?"namespacesLoading":t===wi.Source?"sourcesLoading":t===wi.Destination?"destinationsLoading":t===wi.Action?"actionsLoading":t===wi.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:i})},setEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:i})},addEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(JSON.stringify(fn(e)),t)}),i.forEach(e=>{const i=JSON.stringify(fn(e)),n=o.get(i);void 0!==n?t[n]={...t[n],...e}:(o.set(i,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const o=new Set;i.forEach(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(e);o.add(i)});const r=e[n].filter(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(fn(e));return!o.has(i)});return{[n]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Xo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Zo=xt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:Xo})),Qo=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),er=xt((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,o=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:o,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var tr;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(tr||(tr={}));const ir=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),nr=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),or=xt((e,t)=>({progress:{},setProgress:(i,n)=>{const o=t(),r=ir();return"number"==typeof n.total&&(r.total=n.total),"number"==typeof n.current&&(r.current=n.current),e({progress:{...o.progress,[i]:nr(r)}})},addProgress:(i,n)=>{const o=t(),r=ir(i,o.progress);return r.current+=n,e({progress:{...o.progress,[i]:nr(r)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),rr=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ar={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},sr=(e,t)=>e.destinationType.type!==t.destinationType.type,lr=xt(e=>({...ar,setAvailableSources:t=>e({availableSources:t}),setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>sr(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>sr(e,t))})),clearStore:()=>e(()=>({...ar}))})),cr={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"}},dr={v2:cr.v2,darkMode:!0,colors:{...cr.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:cr.font_family},pr={v2:cr.v2,darkMode:!1,colors:{...cr.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:cr.font_family},ur=e=>e?dr:pr;var hr=Object.freeze({__proto__:null,baseTheme:cr,darkModeTheme:dr,getTheme:ur,lightModeTheme:pr});Nt('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const mr=({children:e})=>{const{darkMode:t}=qo();return Ft(Lt,{theme:ur(t),children:e})},gr={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 $r=Object.freeze({__proto__:null,hex:gr});const xr={in:{left:Pt`
146
146
  from { transform: translateX(-100%); }
147
147
  to { transform: translateX(0); }
148
- `,right:Lt`
148
+ `,right:Pt`
149
149
  from { transform: translateX(100%); }
150
150
  to { transform: translateX(0); }
151
- `,top:Lt`
151
+ `,top:Pt`
152
152
  from { transform: translateY(-100%); }
153
153
  to { transform: translateY(0); }
154
- `,bottom:Lt`
154
+ `,bottom:Pt`
155
155
  from { transform: translateY(100%); }
156
156
  to { transform: translateY(0); }
157
- `,center:Lt`
157
+ `,center:Pt`
158
158
  from { transform: translate(-50%, 100%); }
159
159
  to { transform: translate(-50%, -50%); }
160
- `},out:{left:Lt`
160
+ `},out:{left:Pt`
161
161
  from { transform: translateX(0); }
162
162
  to { transform: translateX(-100%); }
163
- `,right:Lt`
163
+ `,right:Pt`
164
164
  from { transform: translateX(0); }
165
165
  to { transform: translateX(100%); }
166
- `,top:Lt`
166
+ `,top:Pt`
167
167
  from { transform: translateY(0); }
168
168
  to { transform: translateY(-100%); }
169
- `,bottom:Lt`
169
+ `,bottom:Pt`
170
170
  from { transform: translateY(0); }
171
171
  to { transform: translateY(100%); }
172
- `,center:Lt`
172
+ `,center:Pt`
173
173
  from { transform: translate(-50%, -50%); }
174
174
  to { transform: translate(-50%, 100%); }
175
- `}},fr={in:Lt`
175
+ `}},fr={in:Pt`
176
176
  from {
177
177
  width: 0%;
178
178
  }
179
179
  to {
180
180
  width: 100%;
181
181
  }
182
- `,out:Lt`
182
+ `,out:Pt`
183
183
  from {
184
184
  width: 100%;
185
185
  }
186
186
  to {
187
187
  width: 0%;
188
188
  }
189
- `},br=Lt`
189
+ `},br=Pt`
190
190
  0% {
191
191
  transform: scale(1);
192
192
  opacity: 1;
@@ -195,21 +195,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
195
195
  transform: scale(2);
196
196
  opacity: 0;
197
197
  }
198
- `,yr=Lt`
198
+ `,yr=Pt`
199
199
  0% {
200
200
  background-position: -500px 0;
201
201
  }
202
202
  100% {
203
203
  background-position: 500px 0;
204
204
  }
205
- `,wr={in:Lt`
205
+ `,wr={in:Pt`
206
206
  from {
207
207
  opacity: 0;
208
208
  }
209
209
  to {
210
210
  opacity: 1;
211
211
  }
212
- `,out:Lt`
212
+ `,out:Pt`
213
213
  from {
214
214
  opacity: 1;
215
215
  }
@@ -333,7 +333,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
333
333
  &:hover {
334
334
  background: ${({theme:e})=>e.v2.colors.silver[900]};
335
335
  }
336
- `,Mr=({icon:e,size:t=Rr.S,onClick:i,disabled:n})=>Ft(Br,{$size:t,$disabled:n,onClick:e=>{i&&!n&&(e.stopPropagation(),i(e))},children:Ft(e,{size:t})}),Pr=({onDone:e}={})=>{const[t,i]=yt(!1),[n,o]=yt(-1),r=Ct(async(n,r)=>{if(!t){if(i(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),o(-1)},1e3)}},[t,e]);return{CopyButton:Ct(({value:e,size:i})=>Ft(Mr,{icon:t?He:Ke,size:i,onClick:()=>r(e)}),[t]),isCopied:t,copiedIndex:n,clickCopy:r}},Lr=e=>{const{addNotification:t}=er(),{formData:i,handleFormChange:n,formErrors:o,handleErrorChange:r,resetFormData:a}=Dr(e);return{formData:i,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return i.name?Pn(i.name)?n.name=void 0:(o=!1,n.name=nn.ILLEGAL_K8S_LABEL):(o=!1,n.name=nn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const i={...ii(e),name:t};n(void 0,void 0,i)}}},jr={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Ur=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=er(),{formData:o,formErrors:r,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Dr(jr),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:o,initialValue:r,renderCondition:a}=e;if(i===Ci.Dropdown){const e=_n(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:i,title:o,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:o,value:r,renderCondition:a,..._n(n,{})}})).map(e=>{if(i){const t="string"==typeof i?_n(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,i]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),wt(()=>{if(t&&0===Kn(o.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:r,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(i=!1,t[e]=nn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:o})=>{const r={...ii(jr),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(_n(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Wr={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Mi.Column]:null,[Mi.FilePath]:null,[Mi.Function]:null,[Mi.LineNumber]:null,[Mi.Namespace]:null,[Mi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Li.Java]:null,[Li.Golang]:null}},Vr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Dr(Wr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:r,headersCollection:a,customInstrumentations:s})=>{const l={...ii(Wr),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),r&&(l.codeAttributes={[Mi.Column]:r[Mi.Column]||null,[Mi.FilePath]:r[Mi.FilePath]||null,[Mi.Function]:r[Mi.Function]||null,[Mi.LineNumber]:r[Mi.LineNumber]||null,[Mi.Namespace]:r[Mi.Namespace]||null,[Mi.StackTrace]:r[Mi.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Li.Java]:s[Li.Java]||null,[Li.Golang]:s[Li.Golang]||null}),i(void 0,void 0,l)}}},qr=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:o,withMetaKey:r},a)=>(wt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,o,r,a]),null),Gr=(e,t)=>{wt(()=>{const i=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t])},Hr=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i}={})=>{const n=vt(null),[o,r]=yt(!1),[a,s]=yt({top:0,left:0});return Gr(n,()=>{o&&(r(!1),i?.())}),{popupRef:n,popupOpen:o,setPopupOpen:r,popupPosition:a,handlePosition:(i,o)=>{const{innerWidth:r,innerHeight:a}=window;let l=o,c=i;l>=a/2&&(l+=-(n.current?.clientHeight||e)),c>=r/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Kr=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?_n(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Yr={otelServiceName:"",currentStreamName:""},Jr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Dr(Yr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...ii(Yr),otelServiceName:e||t||""};i(void 0,void 0,n)}}},Xr=(e,t,i)=>{const n="boolean"==typeof i,o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(n?i:e.selected&&(!o||r))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:a,numberOfInstances:e.numberOfInstances}},Zr=(e,t,i)=>({...Xr(e,t,i),currentStreamName:t}),Qr=(e,t,i)=>{const n="boolean"==typeof i,o=e.dataStreamNames?.includes(t),r=(n?i:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&r,currentStreamName:t}},ea=e=>{const{fetchSingleNamespace:t}=e||{},{selectedStreamName:i}=Ko(),{namespaces:n,addEntities:o}=Jo(),r=vt(!1),{configuredSources:a,configuredFutureApps:s,availableSources:l,setAvailableSources:c}=lr(),[d,p]=yt(l),[u,h]=yt(""),[m,g]=yt(!1),[$,x]=yt([]),[f,b]=yt(""),[y,w]=yt(s),[v,C]=yt(((e,t,i)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Zr(e,i))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const o=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),r=Zr(t,i);-1!==o?n[e][o]=r:n[e].push(r)})}),n})(l,a,i)),k=async(e,n)=>{if(t)if($.includes(e.name))C(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:i}))}));else{h(e.name);const{data:a}=await t({namespaceName:e.name});h("");const s=a?.computePlatform?.k8sActualNamespace;if(!s||!r.current)return;o(wi.Namespace,[{...s,sources:[]}]);const l=s.sources?.map(e=>Xr(e,i))||[];x(e=>[...e,s.name]),c({...lr.getState().availableSources,[s.name]:l}),p(e=>({...e,[s.name]:l})),C(e=>({...e,[s.name]:"boolean"!=typeof n&&e[s.name]?.length?e[s.name]:s.sources?.map(e=>Zr(e,i,n))||[]})),w(e=>({...e,[s.name]:Qr(s,i,n)}))}};wt(()=>(n?.length&&(p(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),C(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||Qr(e,i)),t}),r.current=!0,(async()=>{for await(const e of n){if(!r.current)break;await k(e)}})()),()=>{r.current=!1}),[n.length,i]);const[S,E]=yt(""),[A,T]=yt(wi.Source),[D,I]=yt(!1),[N,O]=yt(!1),F=bt(()=>{const e=(e,t)=>!S||A!==t||A===t&&e.toLowerCase().includes(S),t={};return Object.entries(v).filter(([t])=>e(t,wi.Namespace)).forEach(([i,n])=>{const o=n.filter(t=>e(t.name,wi.Source)&&(!D||t.selected)&&(e=>!N||(e.numberOfInstances||0)>0)(t));(!S||S&&(A===wi.Namespace||A===wi.Source&&o.length))&&(t[i]=o)}),t},[v,S,A,D,N]);return{fetchingNamespace:u,fetchedNamespaces:$,availableSources:d,filteredNamespacesAndSources:F,getApiSourcesPayload:()=>{const e={};return Object.entries(v).forEach(([t,i])=>{i.forEach(i=>{const n=d[t]?.find(e=>e.name===i.name&&e.kind===i.kind);n?.selected!==i.selected&&(e[t]||(e[t]=[]),e[t].push(i))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).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:f,onSelectNamespace:(e,t)=>{const i=n.find(t=>t.name===e);if(i){const n="boolean"==typeof t;b(t=>t!==e||n?e:""),k(i,t),n&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),n.forEach(t=>k(t,e))},selectedSources:v,onSelectSource:(e,t)=>{const n=t||f;if(!n)return;const o=[...v[n]||[]],r=o.findIndex(({name:t,kind:i})=>t===e.name&&i===e.kind);if(-1!==r){const e={...o[r],selected:!o[r].selected,currentStreamName:i};o[r]=e}else o.push({...e,selected:!0,currentStreamName:i});C(e=>({...e,[n]:o})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const o=t||f;if(!o)return;const r=n.find(e=>e.name===t);r&&w(t=>({...t,[o]:Qr(r,i,e)}))},searchText:S,setSearchText:E,searchBy:A,setSearchBy:T,showSelectedOnly:D,setShowSelectedOnly:I,showRunningOnly:N,setShowRunningOnly:O}};try{Tt.addDefaultLocale(Ot)}catch(e){}const ta=()=>{const e=vt(new Tt(Ot.locale));return{formatTimeAgo:Ct(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ia=Rt.div`
336
+ `,Mr=({icon:e,size:t=Rr.S,onClick:i,disabled:n})=>Ft(Br,{$size:t,$disabled:n,onClick:e=>{i&&!n&&(e.stopPropagation(),i(e))},children:Ft(e,{size:t})}),Lr=({onDone:e}={})=>{const[t,i]=yt(!1),[n,o]=yt(-1),r=Ct(async(n,r)=>{if(!t){if(i(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),o(-1)},1e3)}},[t,e]);return{CopyButton:Ct(({value:e,size:i})=>Ft(Mr,{icon:t?He:Ke,size:i,onClick:()=>r(e)}),[t]),isCopied:t,copiedIndex:n,clickCopy:r}},Pr=e=>{const{addNotification:t}=er(),{formData:i,handleFormChange:n,formErrors:o,handleErrorChange:r,resetFormData:a}=Dr(e);return{formData:i,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return i.name?Ln(i.name)?n.name=void 0:(o=!1,n.name=nn.ILLEGAL_K8S_LABEL):(o=!1,n.name=nn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const i={...ii(e),name:t};n(void 0,void 0,i)}}},jr={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Ur=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=er(),{formData:o,formErrors:r,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Dr(jr),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:o,initialValue:r,renderCondition:a}=e;if(i===Ci.Dropdown){const e=_n(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:i,title:o,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:o,value:r,renderCondition:a,..._n(n,{})}})).map(e=>{if(i){const t="string"==typeof i?_n(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,i]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),wt(()=>{if(t&&0===Kn(o.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:r,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(i=!1,t[e]=nn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:o})=>{const r={...ii(jr),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(_n(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Wr={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Mi.Column]:null,[Mi.FilePath]:null,[Mi.Function]:null,[Mi.LineNumber]:null,[Mi.Namespace]:null,[Mi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Pi.Java]:null,[Pi.Golang]:null}},Vr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Dr(Wr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:r,headersCollection:a,customInstrumentations:s})=>{const l={...ii(Wr),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),r&&(l.codeAttributes={[Mi.Column]:r[Mi.Column]||null,[Mi.FilePath]:r[Mi.FilePath]||null,[Mi.Function]:r[Mi.Function]||null,[Mi.LineNumber]:r[Mi.LineNumber]||null,[Mi.Namespace]:r[Mi.Namespace]||null,[Mi.StackTrace]:r[Mi.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Pi.Java]:s[Pi.Java]||null,[Pi.Golang]:s[Pi.Golang]||null}),i(void 0,void 0,l)}}},Gr=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:o,withMetaKey:r},a)=>(wt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,o,r,a]),null),qr=(e,t)=>{wt(()=>{const i=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t])},Hr=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i}={})=>{const n=vt(null),[o,r]=yt(!1),[a,s]=yt({top:0,left:0});return qr(n,()=>{o&&(r(!1),i?.())}),{popupRef:n,popupOpen:o,setPopupOpen:r,popupPosition:a,handlePosition:(i,o)=>{const{innerWidth:r,innerHeight:a}=window;let l=o,c=i;l>=a/2&&(l+=-(n.current?.clientHeight||e)),c>=r/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Kr=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?_n(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Yr={otelServiceName:"",currentStreamName:""},Jr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Dr(Yr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...ii(Yr),otelServiceName:e||t||""};i(void 0,void 0,n)}}},Xr=(e,t,i)=>{const n="boolean"==typeof i,o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(n?i:e.selected&&(!o||r))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:a,numberOfInstances:e.numberOfInstances}},Zr=(e,t,i)=>({...Xr(e,t,i),currentStreamName:t}),Qr=(e,t,i)=>{const n="boolean"==typeof i,o=e.dataStreamNames?.includes(t),r=(n?i:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&r,currentStreamName:t}},ea=e=>{const{fetchSingleNamespace:t}=e||{},{selectedStreamName:i}=Ko(),{namespaces:n,addEntities:o}=Jo(),r=vt(!1),{configuredSources:a,configuredFutureApps:s,availableSources:l,setAvailableSources:c}=lr(),[d,p]=yt(l),[u,h]=yt(""),[m,g]=yt(!1),[$,x]=yt([]),[f,b]=yt(""),[y,w]=yt(s),[v,C]=yt(((e,t,i)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Zr(e,i))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const o=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),r=Zr(t,i);-1!==o?n[e][o]=r:n[e].push(r)})}),n})(l,a,i)),k=async(e,n)=>{if(t)if($.includes(e.name))C(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:i}))}));else{h(e.name);const{data:a}=await t({namespaceName:e.name});h("");const s=a?.computePlatform?.k8sActualNamespace;if(!s||!r.current)return;o(wi.Namespace,[{...s,sources:[]}]);const l=s.sources?.map(e=>Xr(e,i))||[];x(e=>[...e,s.name]),c({...lr.getState().availableSources,[s.name]:l}),p(e=>({...e,[s.name]:l})),C(e=>({...e,[s.name]:"boolean"!=typeof n&&e[s.name]?.length?e[s.name]:s.sources?.map(e=>Zr(e,i,n))||[]})),w(e=>({...e,[s.name]:Qr(s,i,n)}))}};wt(()=>(n?.length&&(p(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),C(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||Qr(e,i)),t}),r.current=!0,(async()=>{for await(const e of n){if(!r.current)break;await k(e)}})()),()=>{r.current=!1}),[n.length,i]);const[S,E]=yt(""),[A,T]=yt(wi.Source),[D,I]=yt(!1),[N,O]=yt(!1),F=bt(()=>{const e=(e,t)=>!S||A!==t||A===t&&e.toLowerCase().includes(S),t={};return Object.entries(v).filter(([t])=>e(t,wi.Namespace)).forEach(([i,n])=>{const o=n.filter(t=>e(t.name,wi.Source)&&(!D||t.selected)&&(e=>!N||(e.numberOfInstances||0)>0)(t));(!S||S&&(A===wi.Namespace||A===wi.Source&&o.length))&&(t[i]=o)}),t},[v,S,A,D,N]);return{fetchingNamespace:u,fetchedNamespaces:$,availableSources:d,filteredNamespacesAndSources:F,getApiSourcesPayload:()=>{const e={};return Object.entries(v).forEach(([t,i])=>{i.forEach(i=>{const n=d[t]?.find(e=>e.name===i.name&&e.kind===i.kind);n?.selected!==i.selected&&(e[t]||(e[t]=[]),e[t].push(i))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).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:f,onSelectNamespace:(e,t)=>{const i=n.find(t=>t.name===e);if(i){const n="boolean"==typeof t;b(t=>t!==e||n?e:""),k(i,t),n&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),n.forEach(t=>k(t,e))},selectedSources:v,onSelectSource:(e,t)=>{const n=t||f;if(!n)return;const o=[...v[n]||[]],r=o.findIndex(({name:t,kind:i})=>t===e.name&&i===e.kind);if(-1!==r){const e={...o[r],selected:!o[r].selected,currentStreamName:i};o[r]=e}else o.push({...e,selected:!0,currentStreamName:i});C(e=>({...e,[n]:o})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const o=t||f;if(!o)return;const r=n.find(e=>e.name===t);r&&w(t=>({...t,[o]:Qr(r,i,e)}))},searchText:S,setSearchText:E,searchBy:A,setSearchBy:T,showSelectedOnly:D,setShowSelectedOnly:I,showRunningOnly:N,setShowRunningOnly:O}};try{Tt.addDefaultLocale(Ot)}catch(e){}const ta=()=>{const e=vt(new Tt(Ot.locale));return{formatTimeAgo:Ct(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ia=Rt.div`
337
337
  flex: 1;
338
338
  align-self: stretch;
339
339
  display: flex;
@@ -464,7 +464,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
464
464
  font-family: ${({theme:e})=>e.font_family.secondary};
465
465
  text-decoration: underline;
466
466
  cursor: pointer;
467
- `,va=({isOpen:e,noOverlay:t,header:i,actionComponent:n,onClose:o,children:r,closeOnEscape:a=!0})=>(qr({key:"Escape",active:e&&a},()=>o()),Or(e),e?qt.createPortal(zt(_t,{children:[Ft(la,{hidden:!e,onClick:o,style:{opacity:t?0:1}}),zt(ma,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&zt(ga,{children:[zt($a,{onClick:o,children:[Ft(Ye,{}),Ft(wa,{children:"Cancel"})]}),Ft(ba,{children:Ft(ya,{children:i.title})}),Ft(xa,{children:n})]}),Ft(fa,{children:r})]})]}),document.body):null),Ca=Rt.div`
467
+ `,va=({isOpen:e,noOverlay:t,header:i,actionComponent:n,onClose:o,children:r,closeOnEscape:a=!0})=>(Gr({key:"Escape",active:e&&a},()=>o()),Or(e),e?Gt.createPortal(zt(_t,{children:[Ft(la,{hidden:!e,onClick:o,style:{opacity:t?0:1}}),zt(ma,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&zt(ga,{children:[zt($a,{onClick:o,children:[Ft(Ye,{}),Ft(wa,{children:"Cancel"})]}),Ft(ba,{children:Ft(ya,{children:i.title})}),Ft(xa,{children:n})]}),Ft(fa,{children:r})]})]}),document.body):null),Ca=Rt.div`
468
468
  width: ${({$orientation:e,$thickness:t,$length:i})=>"vertical"===e?`${t}px`:i||"100%"};
469
469
  height: ${({$orientation:e,$thickness:t,$length:i})=>"horizontal"===e?`${t}px`:i||"100%"};
470
470
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
@@ -493,7 +493,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
493
493
  `,Ta=Rt.div`
494
494
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
495
495
  border-top: 1px solid ${({theme:e})=>e.colors.border};
496
- `,Da=kt(({isOpen:e,asPortal:t,...i},n)=>{const o=bt(()=>{const{children:e,top:o,bottom:r,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=i;return zt(Sa,{ref:n,$top:o,$bottom:r,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Ft(Ea,{$padding:c,children:u}),Ft(Aa,{$padding:c,children:e}),h&&Ft(Ta,{$padding:c,children:h})]})},[n,i,t]);return e?t?qt.createPortal(o,document.body):o:null});Da.displayName=Da.name;const Ia=Rt.div`
496
+ `,Da=kt(({isOpen:e,asPortal:t,...i},n)=>{const o=bt(()=>{const{children:e,top:o,bottom:r,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=i;return zt(Sa,{ref:n,$top:o,$bottom:r,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Ft(Ea,{$padding:c,children:u}),Ft(Aa,{$padding:c,children:e}),h&&Ft(Ta,{$padding:c,children:h})]})},[n,i,t]);return e?t?Gt.createPortal(o,document.body):o:null});Da.displayName=Da.name;const Ia=Rt.div`
497
497
  width: fit-content;
498
498
  position: relative;
499
499
  display: flex;
@@ -560,14 +560,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
560
560
  padding: 0 12px;
561
561
  border-radius: 32px;
562
562
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
563
- `,Pa=Rt.div`
563
+ `,La=Rt.div`
564
564
  display: flex;
565
565
  align-items: center;
566
566
  margin: 0 auto 0 0;
567
567
  padding: 8px 0;
568
568
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
569
569
  min-height: 12px;
570
- `,La=Rt(go)`
570
+ `,Pa=Rt(go)`
571
571
  font-size: 14px;
572
572
  color: ${({$type:e,theme:t})=>t.text[e]};
573
573
  `,ja=Rt(go)`
@@ -584,9 +584,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
584
584
  transform: scale(1.1);
585
585
  transition: transform 0.3s;
586
586
  }
587
- `,Va=({type:e,icon:t,title:i,message:n,action:o,onClose:r,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Mt(),[d,p]=yt(!1),u=vt(null),h=vt(null),m=e=>{r&&(p(!0),r({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||Nn(e,c);return zt(Ra,{className:r?"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:[zt(Ma,{"data-id":"toast",$type:e,style:l,children:[Ft(g,{fill:c.text[e]}),zt(Pa,{$withAction:!!o,$overrideMaxWidth:s,children:[i&&Ft(La,{$type:e,children:i}),i&&n&&Ft(ka,{orientation:"vertical",type:e}),n&&Ft(ja,{$type:e,children:n})]}),(!!o||!!r)&&zt(Ua,{children:[o&&Ft(Wa,{"data-id":"toast-action",onClick:o.onClick,children:o.label}),r&&Ft(_a,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Ft(Ye,{size:12})})]})]}),r&&Ft(Ba,{ref:h,$duration:a,$type:e})]})},qa=Rt.div`
587
+ `,Va=({type:e,icon:t,title:i,message:n,action:o,onClose:r,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Mt(),[d,p]=yt(!1),u=vt(null),h=vt(null),m=e=>{r&&(p(!0),r({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||Nn(e,c);return zt(Ra,{className:r?"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:[zt(Ma,{"data-id":"toast",$type:e,style:l,children:[Ft(g,{fill:c.text[e]}),zt(La,{$withAction:!!o,$overrideMaxWidth:s,children:[i&&Ft(Pa,{$type:e,children:i}),i&&n&&Ft(ka,{orientation:"vertical",type:e}),n&&Ft(ja,{$type:e,children:n})]}),(!!o||!!r)&&zt(Ua,{children:[o&&Ft(Wa,{"data-id":"toast-action",onClick:o.onClick,children:o.label}),r&&Ft(_a,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Ft(Ye,{size:12})})]})]}),r&&Ft(Ba,{ref:h,$duration:a,$type:e})]})},Ga=Rt.div`
588
588
  padding: 24px 32px;
589
- `,Ga=Rt.div`
589
+ `,qa=Rt.div`
590
590
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
591
591
  `,Ha=Rt(go)`
592
592
  font-size: 20px;
@@ -605,7 +605,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
605
605
  width: 250px;
606
606
  `,Xa=Rt.div`
607
607
  margin-bottom: 12px;
608
- `,Za=({isOpen:e,noOverlay:t,title:i="",description:n="",note:o,approveButton:r,denyButton:a,closeOnEscape:s=!0})=>{qr({key:"Enter",active:e&&s},()=>r.onClick());const l=()=>a.onClick();return Ft(va,{isOpen:e,noOverlay:t,onClose:l,children:zt(qa,{children:[Ft(Ha,{children:i}),Ft(Ga,{$withNote:!!o,children:Ft(Ka,{children:n})}),!!o&&Ft(Xa,{children:Ft(Va,{type:o.type,title:o.title,message:o.message})}),zt(Ya,{children:[Ft(Ja,{"data-id":"approve",variant:r.variant||"primary",onClick:()=>r.onClick(),children:r.text}),Ft(Ja,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},Qa=({isOpen:e,noOverlay:t,name:i,onApprove:n,onDeny:o})=>Ft(Za,{isOpen:e,noOverlay:t,title:"Cancel"+(i?` ${i}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Si.Warning,onClick:n},denyButton:{text:"Go Back",onClick:o}}),es=Rt.div`
608
+ `,Za=({isOpen:e,noOverlay:t,title:i="",description:n="",note:o,approveButton:r,denyButton:a,closeOnEscape:s=!0})=>{Gr({key:"Enter",active:e&&s},()=>r.onClick());const l=()=>a.onClick();return Ft(va,{isOpen:e,noOverlay:t,onClose:l,children:zt(Ga,{children:[Ft(Ha,{children:i}),Ft(qa,{$withNote:!!o,children:Ft(Ka,{children:n})}),!!o&&Ft(Xa,{children:Ft(Va,{type:o.type,title:o.title,message:o.message})}),zt(Ya,{children:[Ft(Ja,{"data-id":"approve",variant:r.variant||"primary",onClick:()=>r.onClick(),children:r.text}),Ft(Ja,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},Qa=({isOpen:e,noOverlay:t,name:i,onApprove:n,onDeny:o})=>Ft(Za,{isOpen:e,noOverlay:t,title:"Cancel"+(i?` ${i}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Si.Warning,onClick:n},denyButton:{text:"Go Back",onClick:o}}),es=Rt.div`
609
609
  display: flex;
610
610
  align-items: center;
611
611
  gap: 8px;
@@ -693,7 +693,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
693
693
  white-space: nowrap;
694
694
  `,Es=Rt(ra)`
695
695
  width: 16px;
696
- `,As=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:i="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const o=Mt(),[r,a]=yt(!1),s=bt(()=>Gn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>un(s),[s]);wt(()=>{a(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Si.Error:p?Si.Warning:u?Si.Info:Si.Success,$=Nn(g,o),x=c?t:p||u?i:m?"Loading...":n,f=c?o.text.error:p?o.text.warning:o.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?o.text.error_secondary:p?o.text.warning_secondary:o.text.info_secondary,w=Ct(()=>a(e=>!e),[]);return zt(ws,{onClick:w,$status:g,children:[zt(vs,{children:[Ft(m?fs:$,{}),Ft(go,{color:f,size:14,children:x}),Ft(go,{color:y,size:12,family:"secondary",children:b}),Ft(ys,{extend:r,align:"right"})]}),r&&Ft(Cs,{children:s.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:r},a)=>{const s=e===Ai.Loading?()=>Ft(fs,{scale:.8}):e===Ai.Disabled?Nn(Si.Info,o):Nn(e,o),l=e===Ai.Disabled?o.text.info:e===Si.Error?o.text.error:e===Si.Warning?o.text.warning:o.text.info,c=e===Ai.Disabled?o.text.info_secondary:e===Si.Error?o.text.error_secondary:e===Si.Warning?o.text.warning_secondary:o.text.info_secondary;return zt(ks,{children:[Ft(Es,{children:Ft(s,{})}),zt(oa,{$gap:12,style:{width:"100%",justifyContent:"space-between"},children:[zt(go,{color:l,size:12,children:[Ft(Ss,{color:c,size:12,weight:700,children:t}),n||i]}),Ft(Ss,{color:l,size:12,children:new Date(r).toLocaleString()})]})]},`condition-${a}`)})})]})},Ts=Rt.div`
696
+ `,As=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:i="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const o=Mt(),[r,a]=yt(!1),s=bt(()=>qn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>un(s),[s]);wt(()=>{a(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Si.Error:p?Si.Warning:u?Si.Info:Si.Success,$=Nn(g,o),x=c?t:p||u?i:m?"Loading...":n,f=c?o.text.error:p?o.text.warning:o.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?o.text.error_secondary:p?o.text.warning_secondary:o.text.info_secondary,w=Ct(()=>a(e=>!e),[]);return zt(ws,{onClick:w,$status:g,children:[zt(vs,{children:[Ft(m?fs:$,{}),Ft(go,{color:f,size:14,children:x}),Ft(go,{color:y,size:12,family:"secondary",children:b}),Ft(ys,{extend:r,align:"right"})]}),r&&Ft(Cs,{children:s.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:r},a)=>{const s=e===Ai.Loading?()=>Ft(fs,{scale:.8}):e===Ai.Disabled?Nn(Si.Info,o):Nn(e,o),l=e===Ai.Disabled?o.text.info:e===Si.Error?o.text.error:e===Si.Warning?o.text.warning:o.text.info,c=e===Ai.Disabled?o.text.info_secondary:e===Si.Error?o.text.error_secondary:e===Si.Warning?o.text.warning_secondary:o.text.info_secondary;return zt(ks,{children:[Ft(Es,{children:Ft(s,{})}),zt(oa,{$gap:12,style:{width:"100%",justifyContent:"space-between"},children:[zt(go,{color:l,size:12,children:[Ft(Ss,{color:c,size:12,weight:700,children:t}),n||i]}),Ft(Ss,{color:l,size:12,children:new Date(r).toLocaleString()})]})]},`condition-${a}`)})})]})},Ts=Rt.div`
697
697
  display: flex;
698
698
  align-items: center;
699
699
  gap: ${({$size:e})=>e/3}px;
@@ -719,7 +719,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
719
719
  width: 100%;
720
720
  padding-left: 12px;
721
721
  }
722
- `,zs=({value:e,callbackCopyDone:t})=>{const{clickCopy:i,isCopied:n}=Pr();return zt(Fs,{children:[Ft("pre",{children:e}),Ft(_a,{onClick:n=>{n.stopPropagation(),i(e),t?.()},tooltip:n?"Copied!":"Copy",children:Ft(n?He:Ke,{})})]})},_s=({label:e,onClick:t,variant:i="tertiary",...n})=>{const o=Mt();return zt(Tr,{onClick:t,variant:i,...n,children:[Ft(tt,{fill:"primary"===i?o.text.primary:o.text.info}),Ft(go,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?o.text.primary:void 0,children:e||rn.EDIT})]})},Rs=({onClick:e})=>Ft(Va,{type:Si.Default,icon:Ge,message:on.QUICK_BACK_TO_SUMMARY,action:{label:on.GO_TO_SUMMARY,onClick:e}}),Bs=Rt(go)`
722
+ `,zs=({value:e,callbackCopyDone:t})=>{const{clickCopy:i,isCopied:n}=Lr();return zt(Fs,{children:[Ft("pre",{children:e}),Ft(_a,{onClick:n=>{n.stopPropagation(),i(e),t?.()},tooltip:n?"Copied!":"Copy",children:Ft(n?He:Ke,{})})]})},_s=({label:e,onClick:t,variant:i="tertiary",...n})=>{const o=Mt();return zt(Tr,{onClick:t,variant:i,...n,children:[Ft(tt,{fill:"primary"===i?o.text.primary:o.text.info}),Ft(go,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?o.text.primary:void 0,children:e||rn.EDIT})]})},Rs=({onClick:e})=>Ft(Va,{type:Si.Default,icon:qe,message:on.QUICK_BACK_TO_SUMMARY,action:{label:on.GO_TO_SUMMARY,onClick:e}}),Bs=Rt(go)`
723
723
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
724
724
  white-space: nowrap;
725
725
  overflow-x: auto;
@@ -729,7 +729,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
729
729
  content: '';
730
730
  display: block;
731
731
  }
732
- `,Ms=({maxWidth:e,text:t,textSize:i=16,textColor:n})=>{const[o,r]=yt(!1),a=vt(null);return wt(()=>{if(a.current){const{clientWidth:t}=a.current;r(t<1.05*(e-i)&&t>.95*(e-i))}},[e,i,t]),zt(oa,{$gap:0,children:[t&&Ft(Oa,{text:o?t:void 0,children:Ft(Bs,{ref:a,$maxWidth:e-i,size:i,color:n,children:t})}),o&&Ft(Bs,{$maxWidth:i,size:i,color:n,children:"..."})]})},Ps=({src:e="",alt:t="",size:i=16})=>{const[n,o]=yt(!1);return e&&!n?Ft("img",{src:e,alt:t,width:i,height:i,onError:()=>o(!0)}):Ft(a,{size:i})},Ls=Rt.div`
732
+ `,Ms=({maxWidth:e,text:t,textSize:i=16,textColor:n})=>{const[o,r]=yt(!1),a=vt(null);return wt(()=>{if(a.current){const{clientWidth:t}=a.current;r(t<1.05*(e-i)&&t>.95*(e-i))}},[e,i,t]),zt(oa,{$gap:0,children:[t&&Ft(Oa,{text:o?t:void 0,children:Ft(Bs,{ref:a,$maxWidth:e-i,size:i,color:n,children:t})}),o&&Ft(Bs,{$maxWidth:i,size:i,color:n,children:"..."})]})},Ls=({src:e="",alt:t="",size:i=16})=>{const[n,o]=yt(!1);return e&&!n?Ft("img",{src:e,alt:t,width:i,height:i,onError:()=>o(!0)}):Ft(a,{size:i})},Ps=Rt.div`
733
733
  display: flex;
734
734
  align-items: center;
735
735
  justify-content: center;
@@ -737,7 +737,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
737
737
  height: ${({$size:e})=>e}px;
738
738
  border-radius: 8px;
739
739
  background: ${({$status:e,theme:t})=>{const i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+gr["030"]} 100%)`}};
740
- `,js=({icon:e,src:t="",alt:i="",status:n,size:o=36})=>Ft(Ls,{$status:n,$size:o,children:t?Ft(Ps,{src:t,alt:i,size:o-12}):Ft(e||a,{size:o-12})}),Us=Rt.div`
740
+ `,js=({icon:e,src:t="",alt:i="",status:n,size:o=36})=>Ft(Ps,{$status:n,$size:o,children:t?Ft(Ls,{src:t,alt:i,size:o-12}):Ft(e||a,{size:o-12})}),Us=Rt.div`
741
741
  position: relative;
742
742
  display: flex;
743
743
  flex-wrap: wrap;
@@ -758,7 +758,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
758
758
  border-radius: 100%;
759
759
  border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+gr["030"]};
760
760
  background: ${({$status:e,theme:t})=>{const i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+gr["030"]} 100%)`}};
761
- `,Vs=({icons:e=[],iconSrcs:t=[],status:i,size:n=36,id:o})=>{const r=Mt(),a=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return Ft(Vs,{icons:t.map(e=>()=>Ft(Ps,{src:e,size:a})),status:i,size:n,id:o});if(1===e.length)return Ft(js,{icon:e[0],status:i,size:n});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 Ft(Us,{$status:i,$size:n,children:e.map((t,n)=>n>2?null:Ft(Ws,{$status:i,$size:1.5*a,$top:s(n),$left:l(n),$zIndex:n+1,children:2===n&&e.length>3?zt(go,{family:"secondary",color:r.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Ft(t,{size:a})},`icon-${o}-${n}`))})},qs=jo.map(({id:e})=>e),Gs=({monitors:e=qs,withTooltips:t,withLabels:i,size:n=12,color:o})=>{const r=Mt(),a=o||r.text.grey;return Ft(oa,{$gap:i?n:n/2,children:e.map(e=>{const o=Zt(e.toLowerCase()),r=kn(e);return r?Ft(Oa,{text:t?o:"",children:zt(oa,{$gap:n/3,children:[Ft(r,{size:i?n+2:n,fill:a}),i&&Ft(go,{size:n,color:a,children:o})]})},e):null})})},Hs=Rt.div`
761
+ `,Vs=({icons:e=[],iconSrcs:t=[],status:i,size:n=36,id:o})=>{const r=Mt(),a=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return Ft(Vs,{icons:t.map(e=>()=>Ft(Ls,{src:e,size:a})),status:i,size:n,id:o});if(1===e.length)return Ft(js,{icon:e[0],status:i,size:n});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 Ft(Us,{$status:i,$size:n,children:e.map((t,n)=>n>2?null:Ft(Ws,{$status:i,$size:1.5*a,$top:s(n),$left:l(n),$zIndex:n+1,children:2===n&&e.length>3?zt(go,{family:"secondary",color:r.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Ft(t,{size:a})},`icon-${o}-${n}`))})},Gs=jo.map(({id:e})=>e),qs=({monitors:e=Gs,withTooltips:t,withLabels:i,size:n=12,color:o})=>{const r=Mt(),a=o||r.text.grey;return Ft(oa,{$gap:i?n:n/2,children:e.map(e=>{const o=Zt(e.toLowerCase()),r=kn(e);return r?Ft(Oa,{text:t?o:"",children:zt(oa,{$gap:n/3,children:[Ft(r,{size:i?n+2:n,fill:a}),i&&Ft(go,{size:n,color:a,children:o})]})},e):null})})},Hs=Rt.div`
762
762
  visibility: hidden;
763
763
  `,Ks=Rt.div`
764
764
  display: flex;
@@ -789,7 +789,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
789
789
  `,Xs=Rt(go)`
790
790
  font-size: 10px;
791
791
  color: ${({theme:e})=>e.text.grey};
792
- `,Zs=({title:e,subTitle:t,hoverText:i,onClick:n,renderActions:o,iconProps:{icon:r,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:v,renderExtended:C}={},...k})=>{const S=Mt(),[E,A]=yt(v||!1),[T,D]=yt(0),I=vt(null),N=vt(null),O=vt(null);return wt(()=>{if(I.current){const e=I.current.clientWidth,t=N.current?.clientWidth||0;D(e-(($?125:85)+t))}},[$]),zt(Ks,{ref:I,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...k,children:[zt(oa,{$gap:8,children:[zt(oa,{$gap:16,children:[b?Ft(fs,{}):$?Ft(is,{value:f,onChange:y,disabled:x}):null,a?.length||l?.length?Ft(Vs,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):r||s?Ft(js,{icon:r,src:s,status:c}):null]}),zt(ra,{$gap:4,children:[e&&Ft(Ms,{maxWidth:T,text:e,textSize:14}),zt(oa,{$gap:4,children:[t&&Ft(Ms,{maxWidth:T-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),h&&h.length>0&&zt(oa,{$gap:4,ref:O,children:[t&&Ft(Xs,{children:"•"}),Ft(Gs,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Ft(oa,{$gap:4,children:g?.map((e,t)=>Ft(ft,{children:e},`componentsUnderTitles-${t}`))}):null]}),zt(Ys,{ref:N,children:[!!i&&Ft(Hs,{children:Ft(Js,{size:14,family:"secondary",children:i})}),o&&o(),w&&zt(ft,{children:[Ft(ka,{orientation:"vertical",length:"16px",margin:"0 2px"}),Ft(_a,{onClick:()=>A(e=>!e),children:Ft(ys,{extend:E})})]})]})]}),E&&C&&zt(ra,{children:[Ft(ka,{margin:"16px 0"}),C()]})]})},Qs=Rt(oa)`
792
+ `,Zs=({title:e,subTitle:t,hoverText:i,onClick:n,renderActions:o,iconProps:{icon:r,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:v,renderExtended:C}={},...k})=>{const S=Mt(),[E,A]=yt(v||!1),[T,D]=yt(0),I=vt(null),N=vt(null),O=vt(null);return wt(()=>{if(I.current){const e=I.current.clientWidth,t=N.current?.clientWidth||0;D(e-(($?125:85)+t))}},[$]),zt(Ks,{ref:I,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...k,children:[zt(oa,{$gap:8,children:[zt(oa,{$gap:16,children:[b?Ft(fs,{}):$?Ft(is,{value:f,onChange:y,disabled:x}):null,a?.length||l?.length?Ft(Vs,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):r||s?Ft(js,{icon:r,src:s,status:c}):null]}),zt(ra,{$gap:4,children:[e&&Ft(Ms,{maxWidth:T,text:e,textSize:14}),zt(oa,{$gap:4,children:[t&&Ft(Ms,{maxWidth:T-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),h&&h.length>0&&zt(oa,{$gap:4,ref:O,children:[t&&Ft(Xs,{children:"•"}),Ft(qs,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Ft(oa,{$gap:4,children:g?.map((e,t)=>Ft(ft,{children:e},`componentsUnderTitles-${t}`))}):null]}),zt(Ys,{ref:N,children:[!!i&&Ft(Hs,{children:Ft(Js,{size:14,family:"secondary",children:i})}),o&&o(),w&&zt(ft,{children:[Ft(ka,{orientation:"vertical",length:"16px",margin:"0 2px"}),Ft(_a,{onClick:()=>A(e=>!e),children:Ft(ys,{extend:E})})]})]})]}),E&&C&&zt(ra,{children:[Ft(ka,{margin:"16px 0"}),C()]})]})},Qs=Rt(oa)`
793
793
  width: 100%;
794
794
  justify-content: space-between;
795
795
  `,el=Rt(go)`
@@ -960,9 +960,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
960
960
  min-width: 120px;
961
961
  width: 100%;
962
962
  opacity: ${({$disabled:e})=>e?.5:1};
963
- `,Pl=Rt.div`
964
- position: relative;
965
963
  `,Ll=Rt.div`
964
+ position: relative;
965
+ `,Pl=Rt.div`
966
966
  display: flex;
967
967
  align-items: center;
968
968
  justify-content: space-between;
@@ -992,7 +992,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
992
992
  display: flex;
993
993
  align-items: center;
994
994
  gap: 4px;
995
- `,Ul=({options:e,value:t,onSelect:i,onDeselect:n,title:o,tooltip:r,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=yt(!1),[$,x]=yt(!1),f=vt(null);Gr(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return zt(Ml,{$disabled:s,children:[Ft(Il,{title:o,required:d,tooltip:r,status:h}),zt(Pl,{ref:f,children:[zt(Ll,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Ft(Gl,{value:t,placeholder:a,onDeselect:n}),zt(jl,{children:[l&&Ft(kr,{label:y,filled:!!y}),Ft(ys,{extend:m})]})]}),m&&Ft(Yl,{openUpwards:$,options:e,value:t,onSelect:e=>{i?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Ft(fo,{children:p})]})},Wl=Rt(jl)`
995
+ `,Ul=({options:e,value:t,onSelect:i,onDeselect:n,title:o,tooltip:r,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=yt(!1),[$,x]=yt(!1),f=vt(null);qr(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return zt(Ml,{$disabled:s,children:[Ft(Il,{title:o,required:d,tooltip:r,status:h}),zt(Ll,{ref:f,children:[zt(Pl,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Ft(ql,{value:t,placeholder:a,onDeselect:n}),zt(jl,{children:[l&&Ft(kr,{label:y,filled:!!y}),Ft(ys,{extend:m})]})]}),m&&Ft(Yl,{openUpwards:$,options:e,value:t,onSelect:e=>{i?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Ft(fo,{children:p})]})},Wl=Rt(jl)`
996
996
  max-width: calc(100% - 50px);
997
997
  overflow-x: auto;
998
998
  `,Vl=Rt(go)`
@@ -1010,7 +1010,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1010
1010
  transition: transform 0.3s;
1011
1011
  }
1012
1012
  }
1013
- `,ql=Rt(go)``,Gl=({value:e,placeholder:t,onDeselect:i})=>{const n=Mt();return Array.isArray(e)?e.length?Ft(Wl,{children:e.map(e=>zt(Vl,{size:14,children:[e.value,Ft(ka,{orientation:"vertical",length:"10px",margin:"0 4px"}),Ft(Ye,{size:12,onClick:t=>{t.stopPropagation(),i?.(e)}})]},`multi-label-${e.id}`))}):Ft(ql,{size:14,color:n.text.darker_grey,children:t}):Ft(ql,{size:14,color:e?.value?void 0:n.text.darker_grey,children:e?.value||t})},Hl=Rt.div`
1013
+ `,Gl=Rt(go)``,ql=({value:e,placeholder:t,onDeselect:i})=>{const n=Mt();return Array.isArray(e)?e.length?Ft(Wl,{children:e.map(e=>zt(Vl,{size:14,children:[e.value,Ft(ka,{orientation:"vertical",length:"10px",margin:"0 4px"}),Ft(Ye,{size:12,onClick:t=>{t.stopPropagation(),i?.(e)}})]},`multi-label-${e.id}`))}):Ft(Gl,{size:14,color:n.text.darker_grey,children:t}):Ft(Gl,{size:14,color:e?.value?void 0:n.text.darker_grey,children:e?.value||t})},Hl=Rt.div`
1014
1014
  position: absolute;
1015
1015
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1016
1016
  left: 0;
@@ -1046,12 +1046,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1046
1046
  width: 100%;
1047
1047
  gap: 12px;
1048
1048
  align-items: flex-end;
1049
- `,ec=({clientX:e=0,flipX:t,clientY:i=0,flipY:n,isOpen:o,onClose:r,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Mt(),{popupRef:m,popupPosition:g,handlePosition:$}=Hr({onClickOutside:r});return qr({key:"Enter",active:o},a),wt(()=>$(e,i),[e,i]),0===g.top&&0!==i||0===g.left&&0!==e?null:Ft(Da,{ref:m,isOpen:o,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:zt(Zl,{children:[Ft(Oa,{text:d,withIcon:!0,children:Ft(go,{size:14,children:c})}),zt(Ql,{children:[u,zt(oa,{$gap:6,children:[Ft(_a,{withBorder:!0,onClick:r,tooltip:"Cancel",children:Ft(Ye,{})}),Ft(_a,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Ft(He,{fill:h.text.primary})}),s&&Ft(_a,{onClick:l,tooltip:"Undo",children:Ft(at,{})})]})]}),p&&Ft(Va,{type:Si.Warning,message:p})]})})},tc=Rt.div`
1049
+ `,ec=({clientX:e=0,flipX:t,clientY:i=0,flipY:n,isOpen:o,onClose:r,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Mt(),{popupRef:m,popupPosition:g,handlePosition:$}=Hr({onClickOutside:r});return Gr({key:"Enter",active:o},a),wt(()=>$(e,i),[e,i]),0===g.top&&0!==i||0===g.left&&0!==e?null:Ft(Da,{ref:m,isOpen:o,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:zt(Zl,{children:[Ft(Oa,{text:d,withIcon:!0,children:Ft(go,{size:14,children:c})}),zt(Ql,{children:[u,zt(oa,{$gap:6,children:[Ft(_a,{withBorder:!0,onClick:r,tooltip:"Cancel",children:Ft(Ye,{})}),Ft(_a,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Ft(He,{fill:h.text.primary})}),s&&Ft(_a,{onClick:l,tooltip:"Undo",children:Ft(at,{})})]})]}),p&&Ft(Va,{type:Si.Warning,message:p})]})})},tc=Rt.div`
1050
1050
  position: relative;
1051
1051
  `,ic=({defaultLanguage:e=bi.Unknown,defaultVersion:t="",defaultOtelDistroName:i=null,handleSave:n})=>{const{tier:o}=Cl(),{addNotification:r}=er(),{formData:a,handleFormChange:s,resetFormData:l}=Dr({language:e,version:t,otelDistroName:i}),[c,d]=yt(!1),p=()=>{d(!1),l()},u=bt(()=>{if(!a.language)return[];const e=Vo[a.language].community,t=o===$i.Onprem?Vo[a.language].enterprise:[];return e.concat(t)},[a.language,o]);return zt(tc,{children:[Ft(_a,{tooltip:on.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Ft(tt,{})}),Ft(ec,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||Vn(a.version)?(await n({...a}),p()):r({type:Si.Warning,message:nn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await n({language:null,version:"",otelDistroName:null}),p()},title:on.OVERRIDE_RUNTIME_DETAILS,warning:on.OVERRIDE_RUNTIME_WARNING,children:zt(ra,{$gap:12,children:[zt(oa,{$gap:12,children:[Ft(Ul,{title:on.LANGUAGE,options:Wo,value:Wo.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Ft(Bl,{title:on.RUNTIME_VERSION,placeholder:on.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Ft(Ul,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},nc=Rt(oa)`
1052
1052
  width: 100%;
1053
1053
  justify-content: center;
1054
- `,oc=({containerName:e,language:t,runtimeVersion:i,overriden:n,instrumented:o,instrumentationMessage:r,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Mt(),c=o?Si.Success:r?Si.Info:Si.Warning,d=o?Ei.INSTRUMENTED:r?Ei.NOT_INSTRUMENTED:Ei.INSTRUMENTING;return Ft(Zs,{title:e,subTitle:`${t?Uo[t]:"no runtime info"}`+(i?` • Runtime Version: ${i}`:""),iconProps:{icon:mn(t)},extendableProps:{isExtended:!!r,renderExtended:()=>Ft(nc,{children:Ft(go,{size:12,family:"secondary",color:l.text.info,children:qn(r)})})},renderActions:()=>zt(_t,{children:[Ft(Ns,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),n&&Ft(Ns,{status:Si.Default,forceIcon:st,title:on.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Ft(ic,{defaultLanguage:t,defaultVersion:i,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},rc=Rt.tr`
1054
+ `,oc=({containerName:e,language:t,runtimeVersion:i,overriden:n,instrumented:o,instrumentationMessage:r,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Mt(),c=o?Si.Success:r?Si.Info:Si.Warning,d=o?Ei.INSTRUMENTED:r?Ei.NOT_INSTRUMENTED:Ei.INSTRUMENTING;return Ft(Zs,{title:e,subTitle:`${t?Uo[t]:"no runtime info"}`+(i?` • Runtime Version: ${i}`:""),iconProps:{icon:mn(t)},extendableProps:{isExtended:!!r,renderExtended:()=>Ft(nc,{children:Ft(go,{size:12,family:"secondary",color:l.text.info,children:Gn(r)})})},renderActions:()=>zt(_t,{children:[Ft(Ns,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),n&&Ft(Ns,{status:Si.Default,forceIcon:st,title:on.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Ft(ic,{defaultLanguage:t,defaultVersion:i,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},rc=Rt.tr`
1055
1055
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1056
1056
  opacity: ${({$faded:e})=>e?.5:1};
1057
1057
  `,ac=Rt.td`
@@ -1133,7 +1133,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1133
1133
  `,vc=Rt(go)`
1134
1134
  font-size: 12px;
1135
1135
  white-space: pre-wrap;
1136
- `,Cc=({data:e})=>Ft(bc,{children:e?.map(({type:e,title:t,titleIcon:i,tooltip:n,value:o},r)=>zt(yc,{$width:e&&[fc.Code,fc.Table].includes(e)?"inherit":e&&[fc.Loader,fc.Divider,fc.CopyText].includes(e)?"100%":"unset",children:[Ft(Oa,{text:n,withIcon:!0,children:zt(oa,{$alignItems:"center",$gap:4,children:[i&&Ft(i,{size:14}),!!t&&Ft(wc,{transform:"capitalize",children:t})]})}),Ft(kc,{type:e,value:o})]},`data-field-${t||(o?JSON.stringify(o):r)}`))}),kc=({type:e,value:t})=>{const i=Mt();switch(e){case fc.Divider:return Ft(ka,{length:"100%",margin:"0"});case fc.Loader:return Ft(aa,{children:Ft(fs,{scale:1.2})});case fc.Monitors:return Ft(Gs,{monitors:t?.split(", ")||[],withLabels:!0,color:i.colors.secondary});case fc.Badge:{const{label:e,filled:i,...n}=_n(t,{label:"-",filled:!1});return Ft(kr,{label:e,filled:i,...n})}case fc.Code:{const{language:e,code:i,...n}=_n(t,{language:"",code:""});return Ft(us,{language:e,code:i,...n})}case fc.Table:{const{columns:e,rows:i,...n}=_n(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Ft(xc,{columns:e,rows:i,...n})}case fc.ActiveStatus:return Ft(Ns,{status:"true"==t?Si.Success:Si.Error,title:"true"==t?on.ENABLED:on.DISABLED,size:10,withIcon:!0,withBorder:!0});case fc.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Ft(zs,{value:e})}default:return Ft(vc,{children:Zn("string"==typeof t?t||"-":"")})}},Sc=Rt.div`
1136
+ `,Cc=({data:e})=>Ft(bc,{children:e?.map(({type:e,title:t,titleIcon:i,tooltip:n,value:o},r)=>zt(yc,{$width:e&&[fc.Code,fc.Table].includes(e)?"inherit":e&&[fc.Loader,fc.Divider,fc.CopyText].includes(e)?"100%":"unset",children:[Ft(Oa,{text:n,withIcon:!0,children:zt(oa,{$alignItems:"center",$gap:4,children:[i&&Ft(i,{size:14}),!!t&&Ft(wc,{transform:"capitalize",children:t})]})}),Ft(kc,{type:e,value:o})]},`data-field-${t||(o?JSON.stringify(o):r)}`))}),kc=({type:e,value:t})=>{const i=Mt();switch(e){case fc.Divider:return Ft(ka,{length:"100%",margin:"0"});case fc.Loader:return Ft(aa,{children:Ft(fs,{scale:1.2})});case fc.Monitors:return Ft(qs,{monitors:t?.split(", ")||[],withLabels:!0,color:i.colors.secondary});case fc.Badge:{const{label:e,filled:i,...n}=_n(t,{label:"-",filled:!1});return Ft(kr,{label:e,filled:i,...n})}case fc.Code:{const{language:e,code:i,...n}=_n(t,{language:"",code:""});return Ft(us,{language:e,code:i,...n})}case fc.Table:{const{columns:e,rows:i,...n}=_n(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Ft(xc,{columns:e,rows:i,...n})}case fc.ActiveStatus:return Ft(Ns,{status:"true"==t?Si.Success:Si.Error,title:"true"==t?on.ENABLED:on.DISABLED,size:10,withIcon:!0,withBorder:!0});case fc.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Ft(zs,{value:e})}default:return Ft(vc,{children:Zn("string"==typeof t?t||"-":"")})}},Sc=Rt.div`
1137
1137
  display: flex;
1138
1138
  flex-direction: column;
1139
1139
  align-items: flex-start;
@@ -1192,9 +1192,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1192
1192
  font-size: 14px;
1193
1193
  gap: 6px;
1194
1194
  min-width: 100px;
1195
- `,Mc=({endpoint:e="/",variant:t="secondary"})=>zt(Bc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Ft(ct,{size:18}),"Docs"]}),Pc=Rt(oa)`
1195
+ `,Mc=({endpoint:e="/",variant:t="secondary"})=>zt(Bc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Ft(ct,{size:18}),"Docs"]}),Lc=Rt(oa)`
1196
1196
  border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1197
- `,Lc=Rt.div`
1197
+ `,Pc=Rt.div`
1198
1198
  display: flex;
1199
1199
  align-items: center;
1200
1200
  border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
@@ -1203,7 +1203,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1203
1203
  padding: 12px;
1204
1204
  font-size: 14px;
1205
1205
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1206
- `,Uc=({tabs:e,hideBorder:t=!1})=>e?.length?Ft(Pc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:i,selected:n})=>zt(Lc,{onClick:i,$selected:n,children:[Ft(jc,{$selected:n,children:e}),t&&Ft(t,{})]},`tab-${e}`))}):null,Wc=Rt.section`
1206
+ `,Uc=({tabs:e,hideBorder:t=!1})=>e?.length?Ft(Lc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:i,selected:n})=>zt(Pc,{onClick:i,$selected:n,children:[Ft(jc,{$selected:n,children:e}),t&&Ft(t,{})]},`tab-${e}`))}):null,Wc=Rt.section`
1207
1207
  padding: 0px 32px;
1208
1208
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1209
1209
  `,Vc=Rt.div`
@@ -1212,11 +1212,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1212
1212
  justify-content: space-between;
1213
1213
  flex-shrink: 0;
1214
1214
  align-self: stretch;
1215
- `,qc=Rt.div`
1215
+ `,Gc=Rt.div`
1216
1216
  display: flex;
1217
1217
  align-items: center;
1218
1218
  gap: ${({$gap:e})=>e||16}px;
1219
- `,Gc=Rt(go)`
1219
+ `,qc=Rt(go)`
1220
1220
  font-size: 18px;
1221
1221
  line-height: 26px;
1222
1222
  max-width: ${({$maxWidth:e})=>e};
@@ -1225,7 +1225,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1225
1225
  text-overflow: ellipsis;
1226
1226
  `,Hc=Rt(Tr)`
1227
1227
  gap: 8px;
1228
- `,Kc=Rt(Tr)``,Yc=({onClose:e,width:t,icons:i,iconSrcs:n,title:o,titleTooltip:r,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>zt(Wc,{children:[zt(Vc,{children:[zt(qc,{children:[i?.length||n?.length?Ft(Vs,{icons:i,iconSrcs:n,id:`drawer-header-${o}`}):null,("function"==typeof a?Ft(a,{}):a||null)||Ft(Oa,{text:r||o,withIcon:!!r,children:o&&Ft(Gc,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:o})})]}),zt(qc,{$gap:2,children:[s,l.map((e,t)=>Ft(Hc,{...e},`header-action-button-${t}`)),Ft(Kc,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Ft(Ye,{size:12})})]})]}),Ft(Uc,{tabs:c,hideBorder:!0})]}),Jc=Rt.div`
1228
+ `,Kc=Rt(Tr)``,Yc=({onClose:e,width:t,icons:i,iconSrcs:n,title:o,titleTooltip:r,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>zt(Wc,{children:[zt(Vc,{children:[zt(Gc,{children:[i?.length||n?.length?Ft(Vs,{icons:i,iconSrcs:n,id:`drawer-header-${o}`}):null,("function"==typeof a?Ft(a,{}):a||null)||Ft(Oa,{text:r||o,withIcon:!!r,children:o&&Ft(qc,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:o})})]}),zt(Gc,{$gap:2,children:[s,l.map((e,t)=>Ft(Hc,{...e},`header-action-button-${t}`)),Ft(Kc,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Ft(Ye,{size:12})})]})]}),Ft(Uc,{tabs:c,hideBorder:!0})]}),Jc=Rt.div`
1229
1229
  display: flex;
1230
1230
  justify-content: space-between;
1231
1231
  gap: 8px;
@@ -1262,7 +1262,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1262
1262
  flex-grow: 1;
1263
1263
  padding: 24px 32px;
1264
1264
  overflow-y: auto;
1265
- `,rd=({isOpen:e,onClose:t,closeOnEscape:i=!0,position:n="right",width:o="300px",children:r,header:a,footer:s})=>(qr({key:"Escape",active:e&&i},()=>t()),Or(e),e?qt.createPortal(zt(_t,{children:[Ft(la,{hidden:!e,onClick:t}),Ft(id,{"data-id":"drawer",$position:n,$width:o,children:zt(nd,{children:[Ft(Yc,{onClose:t,width:o,...a}),Ft(od,{children:r}),Ft(td,{...s})]})})]}),document.body):null),ad=({error:e})=>{const t=Mt(),i={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 zt("div",{style:i.container,children:[Ft("h2",{children:"Something went wrong!"}),Ft("pre",{style:i.errorMessage,children:e?.message||"Unknown Error"}),zt("details",{style:i.errorStackWrapper,children:[Ft("summary",{children:"Stack Trace"}),Ft("pre",{style:i.errorStack,children:e?.stack||"Unknown Stack"})]}),Ft("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),Ft(Tr,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},sd=({children:e})=>Ft(Yt,{FallbackComponent:({error:e,...t})=>Ft(mr,{children:Ft(ad,{...t,error:e})}),children:e}),ld=Rt(oa)`
1265
+ `,rd=({isOpen:e,onClose:t,closeOnEscape:i=!0,position:n="right",width:o="300px",children:r,header:a,footer:s})=>(Gr({key:"Escape",active:e&&i},()=>t()),Or(e),e?Gt.createPortal(zt(_t,{children:[Ft(la,{hidden:!e,onClick:t}),Ft(id,{"data-id":"drawer",$position:n,$width:o,children:zt(nd,{children:[Ft(Yc,{onClose:t,width:o,...a}),Ft(od,{children:r}),Ft(td,{...s})]})})]}),document.body):null),ad=({error:e})=>{const t=Mt(),i={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 zt("div",{style:i.container,children:[Ft("h2",{children:"Something went wrong!"}),Ft("pre",{style:i.errorMessage,children:e?.message||"Unknown Error"}),zt("details",{style:i.errorStackWrapper,children:[Ft("summary",{children:"Stack Trace"}),Ft("pre",{style:i.errorStack,children:e?.stack||"Unknown Stack"})]}),Ft("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),Ft(Tr,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},sd=({children:e})=>Ft(Yt,{FallbackComponent:({error:e,...t})=>Ft(mr,{children:Ft(ad,{...t,error:e})}),children:e}),ld=Rt(oa)`
1266
1266
  position: relative;
1267
1267
  width: calc(100% - 24px);
1268
1268
  padding: 12px;
@@ -1351,7 +1351,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1351
1351
  `,Nd=Rt(_a)`
1352
1352
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1353
1353
  opacity: ${({$disabled:e})=>e?.5:1};
1354
- `,Od={key:"",value:""},Fd=({initialKeyValuePairs:e=[],value:t,onChange:i,title:n,tooltip:o,disabled:r,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=yt(t||e);wt(()=>{p.length||u([{...Od}])},[]);const h=p.filter(({key:e,value:t})=>!Mn(e.trim())&&!Mn(t.trim())),m=vt(JSON.stringify(h));wt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,i&&i(h))},[h]);const g=(e,t,i)=>{u(n=>{const o=[...n];return o[i][e]=t,o})},$=p.length<=1,x=r||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=r||$&&x;return zt(Ad,{children:[Ft(Il,{title:n,required:a,tooltip:o}),Ft(Td,{children:p.map(({key:e,value:t},i)=>zt(Dd,{children:[Ft(Id,{$maxWidth:d,children:Ft(Bl,{placeholder:l,disabled:r,value:e,onChange:e=>g("key",e.target.value,i),hasError:!!s&&(!a||a&&!e),autoFocus:Mn(t)&&!$&&i===p.length-1})}),Ft(Id,{$maxWidth:i===p.length-1?d-38:d,children:Ft(Bl,{placeholder:c,disabled:r,value:t,onChange:e=>g("value",e.target.value,i),hasError:!!s&&(!a||a&&Mn(t)),autoFocus:!1})}),i===p.length-1&&Ft(Nd,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Od}),t})},children:Ft(et,{})}),Ft(Nd,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,i)=>i!==e))})(i),children:Ft(at,{})})]},`key-value-input-list-${i}`))}),!!s&&Ft(fo,{children:s})]})},zd=Lt`
1354
+ `,Od={key:"",value:""},Fd=({initialKeyValuePairs:e=[],value:t,onChange:i,title:n,tooltip:o,disabled:r,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=yt(t||e);wt(()=>{p.length||u([{...Od}])},[]);const h=p.filter(({key:e,value:t})=>!Mn(e.trim())&&!Mn(t.trim())),m=vt(JSON.stringify(h));wt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,i&&i(h))},[h]);const g=(e,t,i)=>{u(n=>{const o=[...n];return o[i][e]=t,o})},$=p.length<=1,x=r||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=r||$&&x;return zt(Ad,{children:[Ft(Il,{title:n,required:a,tooltip:o}),Ft(Td,{children:p.map(({key:e,value:t},i)=>zt(Dd,{children:[Ft(Id,{$maxWidth:d,children:Ft(Bl,{placeholder:l,disabled:r,value:e,onChange:e=>g("key",e.target.value,i),hasError:!!s&&(!a||a&&!e),autoFocus:Mn(t)&&!$&&i===p.length-1})}),Ft(Id,{$maxWidth:i===p.length-1?d-38:d,children:Ft(Bl,{placeholder:c,disabled:r,value:t,onChange:e=>g("value",e.target.value,i),hasError:!!s&&(!a||a&&Mn(t)),autoFocus:!1})}),i===p.length-1&&Ft(Nd,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Od}),t})},children:Ft(et,{})}),Ft(Nd,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,i)=>i!==e))})(i),children:Ft(at,{})})]},`key-value-input-list-${i}`))}),!!s&&Ft(fo,{children:s})]})},zd=Pt`
1355
1355
  0% {
1356
1356
  background-position: 0% 50%;
1357
1357
  }
@@ -1373,7 +1373,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1373
1373
  border-radius: 32px;
1374
1374
  padding: 8px;
1375
1375
  `}
1376
- `,Md=(e,t)=>!t?.length||!!t?.find(t=>t===e),Pd=({isVertical:e,title:t="Monitors",required:i,errorMessage:n,allowedSignals:o,selectedSignals:r,setSelectedSignals:a})=>{const[s,l]=yt(1===r.length),c=vt(JSON.stringify(r));return wt(()=>{const e=r;e.length||jo.forEach(({id:t})=>{Md(t,o)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[o]),zt("div",{children:[t&&Ft(Il,{title:t,required:i}),Ft(Bd,{$isVertical:e,$hasError:!!n,children:jo.map(e=>{const t=Md(e.id,o),i=((e,t)=>!!t?.find(t=>t===e))(e.id,r);return t?Ft(is,{title:e.value,disabled:!t||s&&i,value:i,onChange:t=>((e,t)=>{const i=e,n=t?[...r,i]:r.filter(e=>e!==i);a(n),l(1===n.length)})(e.id,t)},e.id):null})}),!!n&&Ft(fo,{children:n})]})},Ld=Rt.div`
1376
+ `,Md=(e,t)=>!t?.length||!!t?.find(t=>t===e),Ld=({isVertical:e,title:t="Monitors",required:i,errorMessage:n,allowedSignals:o,selectedSignals:r,setSelectedSignals:a})=>{const[s,l]=yt(1===r.length),c=vt(JSON.stringify(r));return wt(()=>{const e=r;e.length||jo.forEach(({id:t})=>{Md(t,o)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[o]),zt("div",{children:[t&&Ft(Il,{title:t,required:i}),Ft(Bd,{$isVertical:e,$hasError:!!n,children:jo.map(e=>{const t=Md(e.id,o),i=((e,t)=>!!t?.find(t=>t===e))(e.id,r);return t?Ft(is,{title:e.value,disabled:!t||s&&i,value:i,onChange:t=>((e,t)=>{const i=e,n=t?[...r,i]:r.filter(e=>e!==i);a(n),l(1===n.length)})(e.id,t)},e.id):null})}),!!n&&Ft(fo,{children:n})]})},Pd=Rt.div`
1377
1377
  display: flex;
1378
1378
  gap: 8px;
1379
1379
  align-items: center;
@@ -1383,7 +1383,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1383
1383
  justify-content: center;
1384
1384
  gap: 8px;
1385
1385
  min-width: 90px;
1386
- `,Ud=({buttons:e})=>{const t=Mt(),i=({button:t,index:i})=>e.length>1&&0===i&&(t.icon||t.iconSrc),n=({button:e,rotate:i})=>e.icon?Ft(e.icon,{size:14,rotate:i,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Ft("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Ft(Ld,{children:e.map((e,t)=>Ft(Oa,{text:e.tooltip||"",children:zt(jd,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[i({button:e,index:t})&&n({button:e,rotate:0}),e.label,!i({button:e,index:t})&&n({button:e,rotate:180})]},t)},t))})},Wd=Rt.div`
1386
+ `,Ud=({buttons:e})=>{const t=Mt(),i=({button:t,index:i})=>e.length>1&&0===i&&(t.icon||t.iconSrc),n=({button:e,rotate:i})=>e.icon?Ft(e.icon,{size:14,rotate:i,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Ft("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Ft(Pd,{children:e.map((e,t)=>Ft(Oa,{text:e.tooltip||"",children:zt(jd,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[i({button:e,index:t})&&n({button:e,rotate:0}),e.label,!i({button:e,index:t})&&n({button:e,rotate:180})]},t)},t))})},Wd=Rt.div`
1387
1387
  width: 100%;
1388
1388
  height: 100%;
1389
1389
 
@@ -1391,12 +1391,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1391
1391
  animation: none !important;
1392
1392
  transition: none !important;
1393
1393
  }
1394
- `,Vd=({width:e="100%",height:t="100%",gap:i=0,elements:n,noAnimation:o=!1})=>{const r=bt(()=>i?n.map((e,t)=>Ft("div",{style:{paddingBottom:i},children:e},`scroll-y-item-${t}`)):n,[n,i]),a=Ft(Xt,{style:{width:e,height:t},children:r});return o?Ft(Wd,{children:a}):a},qd=Rt.div`
1394
+ `,Vd=({width:e="100%",height:t="100%",gap:i=0,elements:n,noAnimation:o=!1})=>{const r=bt(()=>i?n.map((e,t)=>Ft("div",{style:{paddingBottom:i},children:e},`scroll-y-item-${t}`)):n,[n,i]),a=Ft(Xt,{style:{width:e,height:t},children:r});return o?Ft(Wd,{children:a}):a},Gd=Rt.div`
1395
1395
  display: flex;
1396
1396
  justify-content: space-between;
1397
1397
  align-items: center;
1398
1398
  gap: 16px;
1399
- `,Gd=Rt.div`
1399
+ `,qd=Rt.div`
1400
1400
  display: flex;
1401
1401
  flex-direction: column;
1402
1402
  gap: 4px;
@@ -1404,7 +1404,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1404
1404
  display: flex;
1405
1405
  align-items: center;
1406
1406
  gap: 8px;
1407
- `,Kd=Rt(go)``,Yd=Rt(go)``,Jd=({title:e,description:t,badgeLabel:i,icon:n,actionButton:o,size:r="medium"})=>{const a="small"===r?16:"medium"===r?20:24,s="small"===r?12:"medium"===r?14:16;return zt(qd,{children:[zt(Gd,{children:[zt(Hd,{children:[n&&Ft(n,{size:a}),Ft(Kd,{weight:300,size:a,children:e}),void 0!==i&&Ft(kr,{label:i,filled:!!i})]}),Ft(Yd,{weight:200,opacity:.8,size:s,children:t})]}),o&&Ft("div",{children:o})]})},Xd=Rt.div`
1407
+ `,Kd=Rt(go)``,Yd=Rt(go)``,Jd=({title:e,description:t,badgeLabel:i,icon:n,actionButton:o,size:r="medium"})=>{const a="small"===r?16:"medium"===r?20:24,s="small"===r?12:"medium"===r?14:16;return zt(Gd,{children:[zt(qd,{children:[zt(Hd,{children:[n&&Ft(n,{size:a}),Ft(Kd,{weight:300,size:a,children:e}),void 0!==i&&Ft(kr,{label:i,filled:!!i})]}),Ft(Yd,{weight:200,opacity:.8,size:s,children:t})]}),o&&Ft("div",{children:o})]})},Xd=Rt.div`
1408
1408
  position: relative;
1409
1409
  gap: 0;
1410
1410
  z-index: 0;
@@ -1702,7 +1702,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1702
1702
  justify-content: space-between;
1703
1703
  align-items: center;
1704
1704
  gap: 8px;
1705
- `,Mp=({label:e,icon:t,loading:i,disabled:n,onClick:o})=>{const[r,a]=yt(!1);return zt(_p,{$hovered:r,type:"button",disabled:n||i,onClick:o,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[Ft(Rp,{$hovered:r,$hasIcon:!!t,children:t&&Ft(t,{size:36})}),zt(Bp,{$hasIcon:!!t,children:[i?Ft(Rd,{size:16}):Ft(so,{variant:oo.Span,align:"center",children:e}),Ft(dt,{rotate:90,size:24})]})]})},Pp=({buttons:e})=>Ft(ra,{$gap:12,children:e.map(e=>Ft(Mp,{...e},e.label))}),Lp=Rt.div`
1705
+ `,Mp=({label:e,icon:t,loading:i,disabled:n,onClick:o})=>{const[r,a]=yt(!1);return zt(_p,{$hovered:r,type:"button",disabled:n||i,onClick:o,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[Ft(Rp,{$hovered:r,$hasIcon:!!t,children:t&&Ft(t,{size:36})}),zt(Bp,{$hasIcon:!!t,children:[i?Ft(Rd,{size:16}):Ft(so,{variant:oo.Span,align:"center",children:e}),Ft(dt,{rotate:90,size:24})]})]})},Lp=({buttons:e})=>Ft(ra,{$gap:12,children:e.map(e=>Ft(Mp,{...e},e.label))}),Pp=Rt.div`
1706
1706
  display: flex;
1707
1707
  align-items: center;
1708
1708
  flex-wrap: wrap;
@@ -1716,7 +1716,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1716
1716
  display: flex;
1717
1717
  flex-direction: column;
1718
1718
  gap: 4px;
1719
- `,Up=({cellsPerRow:e,items:t})=>{const i=Mt(),{CopyButton:n}=Pr();return Ft(Lp,{children:t.map(({id:o,title:r,label:a,withCopy:s,badge:l})=>zt(jp,{$cellsPerRow:e||t.length,children:[Ft(so,{size:ro.XXXS,color:i.v2.colors.silver[200],nowrap:!0,children:r}),zt(oa,{$gap:4,children:[l&&Ft(co,{...l}),a&&Ft(so,{size:ro.XS,nowrap:!0,children:a}),s&&Ft(n,{value:a||l?.label?.toString()||"",size:Rr.XS})]})]},o))})};var Wp;!function(e){e.S="s",e.L="l"}(Wp||(Wp={}));const Vp=Rt.div`
1719
+ `,Up=({cellsPerRow:e,items:t})=>{const i=Mt(),{CopyButton:n}=Lr();return Ft(Pp,{children:t.map(({id:o,title:r,label:a,withCopy:s,badge:l})=>zt(jp,{$cellsPerRow:e||t.length,children:[Ft(so,{size:ro.XXXS,color:i.v2.colors.silver[200],nowrap:!0,children:r}),zt(oa,{$gap:4,children:[l&&Ft(co,{...l}),a&&Ft(so,{size:ro.XS,nowrap:!0,children:a}),s&&Ft(n,{value:a||l?.label?.toString()||"",size:Rr.XS})]})]},o))})};var Wp;!function(e){e.S="s",e.L="l"}(Wp||(Wp={}));const Vp=Rt.div`
1720
1720
  display: flex;
1721
1721
  align-items: center;
1722
1722
  gap: 2px;
@@ -1724,7 +1724,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1724
1724
  border-radius: 8px;
1725
1725
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1726
1726
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1727
- `,qp=Rt.button`
1727
+ `,Gp=Rt.button`
1728
1728
  flex: 1;
1729
1729
  display: flex;
1730
1730
  align-items: center;
@@ -1739,7 +1739,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1739
1739
  &:hover {
1740
1740
  background-color: ${({theme:e,$isSelected:t,$selectedBgColor:i})=>t?i||e.v2.colors.black[500]:e.v2.colors.silver[800]};
1741
1741
  }
1742
- `,Gp=({size:e=Wp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Mt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Wp.S?ro.XXS:ro.XS,l=e===Wp.S?400:500;return Ft(Vp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>zt(qp,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&Ft(c,{fill:a}),r&&Ft(so,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},Hp=Rt.div`
1742
+ `,qp=({size:e=Wp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Mt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Wp.S?ro.XXS:ro.XS,l=e===Wp.S?400:500;return Ft(Vp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>zt(Gp,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&Ft(c,{fill:a}),r&&Ft(so,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},Hp=Rt.div`
1743
1743
  box-sizing: border-box !important;
1744
1744
  width: ${({$width:e})=>e??"fit-content"};
1745
1745
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -1770,7 +1770,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1770
1770
  overflow: hidden;
1771
1771
  text-overflow: ellipsis;
1772
1772
  white-space: nowrap;
1773
- `,Yp=({value:e,onChange:t,placeholder:i,width:n,segment:o})=>{const r=Mt(),[a,s]=yt(!1),[l,c]=yt(!1),[d,p]=yt(!1),u=a?r.v2.colors.white[500]:r.v2.colors.silver[200],h=!!o?.options?.length,m=bt(()=>{if(h)return o?.options.find(e=>e.value===o.selected)?.label},[h,o?.options,o?.selected]),g=bt(()=>i||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[i,h,m]);return zt(Hp,{$width:n,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[Ft(rt,{size:18,fill:u}),Ft(Kp,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&Ft("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:Ft(Gp,{options:o.options,selected:o.selected,setSelected:o.setSelected,size:Wp.S})})]})};var Jp;!function(e){e.S="small",e.L="large"}(Jp||(Jp={}));const Xp=Rt.div`
1773
+ `,Yp=({value:e,onChange:t,placeholder:i,width:n,segment:o})=>{const r=Mt(),[a,s]=yt(!1),[l,c]=yt(!1),[d,p]=yt(!1),u=a?r.v2.colors.white[500]:r.v2.colors.silver[200],h=!!o?.options?.length,m=bt(()=>{if(h)return o?.options.find(e=>e.value===o.selected)?.label},[h,o?.options,o?.selected]),g=bt(()=>i||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[i,h,m]);return zt(Hp,{$width:n,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[Ft(rt,{size:18,fill:u}),Ft(Kp,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&Ft("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:Ft(qp,{options:o.options,selected:o.selected,setSelected:o.setSelected,size:Wp.S})})]})};var Jp;!function(e){e.S="small",e.L="large"}(Jp||(Jp={}));const Xp=Rt.div`
1774
1774
  width: fit-content;
1775
1775
  display: flex;
1776
1776
  align-items: center;
@@ -1831,14 +1831,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1831
1831
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1832
1832
  }
1833
1833
  `}
1834
- `,lu=({defaultOpen:e,alignX:t,alignY:i,items:n,selectedIds:o,setSelectedIds:r,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Mt(),m=!!d||!!p||!!u,[g,$]=yt(e??!m),[x,f]=yt({x:t||iu.Left,y:i||nu.Bottom}),b=e=>{$(e=>!e),f({x:t||(e.clientX>window.innerWidth/2?iu.Right:iu.Left),y:i||(e.clientY>window.innerHeight/2?nu.Top:nu.Bottom)})},y=e=>{r(a?o.includes(e)?o.filter(t=>t!==e):[...o,e]:[e]),m&&!a&&$(!1)},w=vt(null);Gr(w,()=>$(!1));const[v,C]=yt(""),k=bt(()=>v?n.filter(e=>e?.label?.toLowerCase().includes(v.toLowerCase())):n,[n.length,v]);return zt(ou,{ref:w,children:[d&&Ft(zp,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&Ft(Mr,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&zt(ru,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&Ft(Yp,{value:v,onChange:C,width:"100%"}),Ft(au,{$maxHeight:c,children:k.map(e=>{if(!e)return null;const{id:t,label:i,icon:n,withCheckbox:r}=e,a=o.includes(t);return zt(su,{$selected:a&&!r,onClick:()=>y(t),children:[r&&Ft(Qp,{value:a,onChange:()=>y(t)}),n&&Ft(n,{size:14,fill:h.v2.colors.white[500]}),Ft(so,{size:ro.XS,nowrap:!0,children:i})]},t)})}),a&&Ft(zp,{label:"Done",onClick:()=>$(!1)})]})]})};var cu;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(cu||(cu={}));const du=({onAnyClick:e,actions:t})=>Ft(oa,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case cu.Button:return Ft(zp,{...t.buttonProps,onClick:i=>{t.buttonProps?.onClick?.(i),e?.()}},t.id);case cu.ButtonDropData:return Ft(lu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:i=>{t.buttonProps?.onClick?.(i[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),pu=Rt.div`
1834
+ `,lu=({defaultOpen:e,alignX:t,alignY:i,items:n,selectedIds:o,setSelectedIds:r,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Mt(),m=!!d||!!p||!!u,[g,$]=yt(e??!m),[x,f]=yt({x:t||iu.Left,y:i||nu.Bottom}),b=e=>{$(e=>!e),f({x:t||(e.clientX>window.innerWidth/2?iu.Right:iu.Left),y:i||(e.clientY>window.innerHeight/2?nu.Top:nu.Bottom)})},y=e=>{r(a?o.includes(e)?o.filter(t=>t!==e):[...o,e]:[e]),m&&!a&&$(!1)},w=vt(null);qr(w,()=>$(!1));const[v,C]=yt(""),k=bt(()=>v?n.filter(e=>e?.label?.toLowerCase().includes(v.toLowerCase())):n,[n.length,v]);return zt(ou,{ref:w,children:[d&&Ft(zp,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&Ft(Mr,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&zt(ru,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&Ft(Yp,{value:v,onChange:C,width:"100%"}),Ft(au,{$maxHeight:c,children:k.map(e=>{if(!e)return null;const{id:t,label:i,icon:n,withCheckbox:r}=e,a=o.includes(t);return zt(su,{$selected:a&&!r,onClick:()=>y(t),children:[r&&Ft(Qp,{value:a,onChange:()=>y(t)}),n&&Ft(n,{size:14,fill:h.v2.colors.white[500]}),Ft(so,{size:ro.XS,nowrap:!0,children:i})]},t)})}),a&&Ft(zp,{label:"Done",onClick:()=>$(!1)})]})]})};var cu;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(cu||(cu={}));const du=({onAnyClick:e,actions:t})=>Ft(oa,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case cu.Button:return Ft(zp,{...t.buttonProps,onClick:i=>{t.buttonProps?.onClick?.(i),e?.()}},t.id);case cu.ButtonDropData:return Ft(lu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:i=>{t.buttonProps?.onClick?.(i[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),pu=Rt.div`
1835
1835
  display: flex;
1836
1836
  align-items: center;
1837
1837
  justify-content: center;
1838
1838
  padding: 8px;
1839
1839
  border-radius: 8px;
1840
1840
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1841
- `,uu=({icon:e,title:t,subTitle:i,withCopy:n,badge:o,children:r})=>{const a=Mt(),{CopyButton:s}=Pr();return zt(oa,{$gap:i?8:6,$alignItems:"center",children:[i?Ft(pu,{children:Ft(e,{size:24})}):Ft(e,{size:24}),zt(ra,{children:[zt(oa,{$gap:6,$alignItems:"center",children:[Ft(so,{nowrap:!0,children:t}),n&&Ft(s,{value:t,size:Rr.XS}),o&&Ft(co,{...o})]}),i&&Ft(so,{size:ro.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:i})]}),r]})};var hu;!function(e){e.S="small",e.M="medium"}(hu||(hu={}));const mu=Rt.div`
1841
+ `,uu=({icon:e,title:t,subTitle:i,withCopy:n,badge:o,children:r})=>{const a=Mt(),{CopyButton:s}=Lr();return zt(oa,{$gap:i?8:6,$alignItems:"center",children:[i?Ft(pu,{children:Ft(e,{size:24})}):Ft(e,{size:24}),zt(ra,{children:[zt(oa,{$gap:6,$alignItems:"center",children:[Ft(so,{nowrap:!0,children:t}),n&&Ft(s,{value:t,size:Rr.XS}),o&&Ft(co,{...o})]}),i&&Ft(so,{size:ro.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:i})]}),r]})};var hu;!function(e){e.S="small",e.M="medium"}(hu||(hu={}));const mu=Rt.div`
1842
1842
  display: flex;
1843
1843
  flex-direction: column;
1844
1844
  gap: ${({$gap:e})=>e}px;
@@ -1899,7 +1899,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1899
1899
  flex-shrink: 0;
1900
1900
  font-size: 14px;
1901
1901
  color: #5ffb98; // TODO: add to theme
1902
- `,Eu=({value:e,hideCopy:t=!1,onDone:i})=>{const{CopyButton:n}=Pr({onDone:i}),o=vt(null),[r,a]=yt(!1);return wt(()=>{const e=()=>{if(o.current){const{scrollWidth:e,clientWidth:t}=o.current;a(e>t)}};e();const t=new ResizeObserver(e);return o.current&&t.observe(o.current),()=>{t.disconnect()}},[e]),zt(vu,{children:[zt(Cu,{$hideCopy:t,children:[Ft(ku,{ref:o,children:e}),r&&Ft(Su,{children:"..."})]}),!t&&Ft(n,{value:e,size:Rr.XS})]})},Au=Rt.div`
1902
+ `,Eu=({value:e,hideCopy:t=!1,onDone:i})=>{const{CopyButton:n}=Lr({onDone:i}),o=vt(null),[r,a]=yt(!1);return wt(()=>{const e=()=>{if(o.current){const{scrollWidth:e,clientWidth:t}=o.current;a(e>t)}};e();const t=new ResizeObserver(e);return o.current&&t.observe(o.current),()=>{t.disconnect()}},[e]),zt(vu,{children:[zt(Cu,{$hideCopy:t,children:[Ft(ku,{ref:o,children:e}),r&&Ft(Su,{children:"..."})]}),!t&&Ft(n,{value:e,size:Rr.XS})]})},Au=Rt.div`
1903
1903
  display: flex;
1904
1904
  align-items: center;
1905
1905
  justify-content: space-between;
@@ -1947,7 +1947,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1947
1947
 
1948
1948
  height: calc(100% - ${56}px);
1949
1949
  overflow-y: auto;
1950
- `,zu=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Or(e),e?Gt(zt(_t,{children:[!t&&Ft(la,{onClick:o.onCloseDisabled?void 0:o.onClose}),zt(Ou,{$position:i,$width:n,children:[Ft(Nu,{...o}),Ft(Fu,{children:r})]})]}),document.body):null),_u=Rt.span`
1950
+ `,zu=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Or(e),e?qt(zt(_t,{children:[!t&&Ft(la,{onClick:o.onCloseDisabled?void 0:o.onClose}),zt(Ou,{$position:i,$width:n,children:[Ft(Nu,{...o}),Ft(Fu,{children:r})]})]}),document.body):null),_u=Rt.span`
1951
1951
  font-family: ${({theme:e})=>e.font_family.primary};
1952
1952
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1953
1953
  font-weight: 400;
@@ -1957,7 +1957,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1957
1957
  font-size: 14px;
1958
1958
  font-weight: 400;
1959
1959
  color: ${({theme:e})=>e.v2.colors.red[500]};
1960
- `,Bu=({label:e,tooltip:t,required:i,width:n,smallAndDark:o})=>e||t||i?zt(oa,{$width:n,$justifyContent:"space-between",children:[e&&Ft(_u,{$smallAndDark:o,children:e}),zt(oa,{$gap:4,children:[i&&Ft(Ru,{children:"*"}),t&&Ft(Oa,{text:t,withIcon:!0})]})]}):null,Mu=({errorMessage:e,helpMessage:t})=>{const i=Mt(),n=e?i.v2.colors.red[500]:i.v2.colors.silver[200],o=Ft(Ge,{size:12,fill:n});return e||t?zt(oa,{$gap:4,children:[Ft("div",{children:o}),Ft(so,{size:ro.XXS,weight:400,color:n,children:e||t})]}):null},Pu=Rt.div`
1960
+ `,Bu=({label:e,tooltip:t,required:i,width:n,smallAndDark:o})=>e||t||i?zt(oa,{$width:n,$justifyContent:"space-between",children:[e&&Ft(_u,{$smallAndDark:o,children:e}),zt(oa,{$gap:4,children:[i&&Ft(Ru,{children:"*"}),t&&Ft(Oa,{text:t,withIcon:!0})]})]}):null,Mu=({errorMessage:e,helpMessage:t})=>{const i=Mt(),n=e?i.v2.colors.red[500]:i.v2.colors.silver[200],o=Ft(qe,{size:12,fill:n});return e||t?zt(oa,{$gap:4,children:[Ft("div",{children:o}),Ft(so,{size:ro.XXS,weight:400,color:n,children:e||t})]}):null},Lu=Rt.div`
1961
1961
  padding: ${({$small:e})=>e?"4px":"8px 12px"};
1962
1962
 
1963
1963
  display: flex;
@@ -1975,7 +1975,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
1975
1975
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1976
1976
  }
1977
1977
  `}
1978
- `,Lu=Rt.input`
1978
+ `,Pu=Rt.input`
1979
1979
  max-width: ${({$maxWidth:e})=>e||"unset"};
1980
1980
  width: ${({$width:e})=>e||"unset"};
1981
1981
 
@@ -2006,7 +2006,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2006
2006
  align-items: center;
2007
2007
  justify-content: center;
2008
2008
  cursor: pointer;
2009
- `,Uu=({label:e,required:t,tooltip:i,leftIcon:n,rightIcon:o,hasError:r,errorMessage:a,helpMessage:s,type:l=ki.Text,name:c,value:d,onChange:p,disabled:u,maxWidth:h,width:m,small:g=!1,...$})=>{const x=Mt(),f=l===ki.Password,[b,y]=yt(!1),w=d?x.v2.colors.white[500]:u?x.v2.colors.grey[400]:x.v2.colors.silver[200],v=g?14:18;return zt(ra,{$width:m,$gap:6,children:[Ft(Bu,{label:e,tooltip:i,required:t}),zt(Pu,{$small:g,$disabled:u,$error:r||!!a,children:[n?Ft(n,{size:v,fill:w}):null,Ft(Lu,{"data-id":c,type:b||l===ki.Number?ki.Text:l,name:c,value:d,onChange:e=>{e.stopPropagation(),l===ki.Number&&(e.target.value=Jn(e.target.value)),p?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:u,$maxWidth:h,$width:m,$small:g,...$}),f?Ft(ju,{onClick:()=>y(e=>!e),children:Ft(b?nt:ot,{size:v,fill:w})}):o?Ft(o,{size:v,fill:w}):null]}),Ft(Mu,{errorMessage:a,helpMessage:s})]})},Wu=({options:e,values:t,setValues:i,withMultiSelect:n,withSearch:o,...r})=>{const a=bt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=bt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return Ft(lu,{withMultiSelect:n,withSearch:o,alignX:iu.Left,items:a,selectedIds:t,setSelectedIds:i,children:({ChevronIcon:e,handleClick:t})=>Ft(Uu,{placeholder:"Select options...",...r,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},Vu=Rt.header`
2009
+ `,Uu=({label:e,required:t,tooltip:i,leftIcon:n,rightIcon:o,hasError:r,errorMessage:a,helpMessage:s,type:l=ki.Text,name:c,value:d,onChange:p,disabled:u,maxWidth:h,width:m,small:g=!1,...$})=>{const x=Mt(),f=l===ki.Password,[b,y]=yt(!1),w=d?x.v2.colors.white[500]:u?x.v2.colors.grey[400]:x.v2.colors.silver[200],v=g?14:18;return zt(ra,{$width:m,$gap:6,children:[Ft(Bu,{label:e,tooltip:i,required:t}),zt(Lu,{$small:g,$disabled:u,$error:r||!!a,children:[n?Ft(n,{size:v,fill:w}):null,Ft(Pu,{"data-id":c,type:b||l===ki.Number?ki.Text:l,name:c,value:d,onChange:e=>{e.stopPropagation(),l===ki.Number&&(e.target.value=Jn(e.target.value)),p?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:u,$maxWidth:h,$width:m,$small:g,...$}),f?Ft(ju,{onClick:()=>y(e=>!e),children:Ft(b?nt:ot,{size:v,fill:w})}):o?Ft(o,{size:v,fill:w}):null]}),Ft(Mu,{errorMessage:a,helpMessage:s})]})},Wu=({options:e,values:t,setValues:i,withMultiSelect:n,withSearch:o,...r})=>{const a=bt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=bt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return Ft(lu,{withMultiSelect:n,withSearch:o,alignX:iu.Left,items:a,selectedIds:t,setSelectedIds:i,children:({ChevronIcon:e,handleClick:t})=>Ft(Uu,{placeholder:"Select options...",...r,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},Vu=Rt.header`
2010
2010
  position: relative;
2011
2011
  width: calc(100% - 36px);
2012
2012
  padding: 12px 18px;
@@ -2014,12 +2014,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2014
2014
  display: flex;
2015
2015
  align-items: center;
2016
2016
  justify-content: space-between;
2017
- `,qu=Rt(oa)`
2017
+ `,Gu=Rt(oa)`
2018
2018
  position: absolute;
2019
2019
  left: 50%;
2020
2020
  transform: translateX(-50%);
2021
2021
  gap: 16px;
2022
- `,Gu=({left:e=[],center:t=[],right:i=[]})=>zt(Vu,{children:[Ft(oa,{$gap:16,children:e}),Ft(qu,{children:t}),Ft(oa,{$gap:16,children:i})]}),Hu=Rt.div`
2022
+ `,qu=({left:e=[],center:t=[],right:i=[]})=>zt(Vu,{children:[Ft(oa,{$gap:16,children:e}),Ft(Gu,{children:t}),Ft(oa,{$gap:16,children:i})]}),Hu=Rt.div`
2023
2023
  display: flex;
2024
2024
  align-items: center;
2025
2025
  gap: 2px;
@@ -2104,7 +2104,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2104
2104
  top: 50%;
2105
2105
  left: 50%;
2106
2106
  transform: translate(-50%, -50%);
2107
- `,fh=()=>zt($h,{children:[Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ft("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ft("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ft("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ft("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ft("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ft("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ft("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ft("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ft("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ft("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Ft("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Ft("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:Ft(q,{size:112})})]}),bh=Lt`
2107
+ `,fh=()=>zt($h,{children:[Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ft("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ft("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ft("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ft("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ft("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ft("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ft("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ft("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ft("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ft("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Ft("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Ft("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:zt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Ft("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)"}),Ft("defs",{children:zt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ft(xh,{children:Ft(G,{size:112})})]}),bh=Pt`
2108
2108
  0% {
2109
2109
  background-position: 0% 50%;
2110
2110
  }
@@ -2136,7 +2136,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2136
2136
  position: absolute;
2137
2137
  top: 16px;
2138
2138
  left: 16px;
2139
- `,Eh=({isOpen:e,hideOverlay:t=!1,relativeToParent:i=!1,onBack:n,onClose:o,children:r})=>{if(Or(e),!e)return null;const a=zt(_t,{children:[!t&&Ft(la,{$relativeToParent:i,onClick:o}),Ft(Ch,{$relativeToParent:i,children:zt(kh,{children:[n&&Ft(Sh,{children:Ft(Mr,{icon:e=>Ft(dt,{rotate:-90,...e}),size:Rr.L,onClick:n})}),r]})})]});return i?a:Gt(a,document.body)},Ah=Rt.aside`
2139
+ `,Eh=({isOpen:e,hideOverlay:t=!1,relativeToParent:i=!1,onBack:n,onClose:o,children:r})=>{if(Or(e),!e)return null;const a=zt(_t,{children:[!t&&Ft(la,{$relativeToParent:i,onClick:o}),Ft(Ch,{$relativeToParent:i,children:zt(kh,{children:[n&&Ft(Sh,{children:Ft(Mr,{icon:e=>Ft(dt,{rotate:-90,...e}),size:Rr.L,onClick:n})}),r]})})]});return i?a:qt(a,document.body)},Ah=Rt.aside`
2140
2140
  display: flex;
2141
2141
  flex-direction: column;
2142
2142
  gap: 8px;
@@ -2194,11 +2194,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2194
2194
  border-radius: 100%;
2195
2195
  border: 1px solid ${({$borderColor:e})=>e};
2196
2196
  background-color: ${({$backgroundColor:e})=>e};
2197
- `,Mh=({label:e,value:t,onChange:i,disabled:n,size:o=_h.L})=>{const r=Mt(),[a,s]=yt(!1),l=t,c=o===_h.S?6:8,d=n?r.v2.colors.grey[400]:r.v2.colors.white[500],p=l?"transparent":n?r.v2.colors.grey[700]:a?r.v2.colors.silver[400]:r.v2.colors.silver[600],u=n?r.v2.colors.grey[600]:l?r.v2.colors.purple[500]:r.v2.colors.silver[900];return zt(Rh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||i(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[Ft(Bh,{$size:o,$borderColor:p,$backgroundColor:u,children:t?Ft(gt,{size:c,fill:d}):null}),e&&Ft(so,{size:o===_h.S?ro.XXS:ro.XS,children:e})]})},Ph=Rt.div`
2197
+ `,Mh=({label:e,value:t,onChange:i,disabled:n,size:o=_h.L})=>{const r=Mt(),[a,s]=yt(!1),l=t,c=o===_h.S?6:8,d=n?r.v2.colors.grey[400]:r.v2.colors.white[500],p=l?"transparent":n?r.v2.colors.grey[700]:a?r.v2.colors.silver[400]:r.v2.colors.silver[600],u=n?r.v2.colors.grey[600]:l?r.v2.colors.purple[500]:r.v2.colors.silver[900];return zt(Rh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||i(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[Ft(Bh,{$size:o,$borderColor:p,$backgroundColor:u,children:t?Ft(gt,{size:c,fill:d}):null}),e&&Ft(so,{size:o===_h.S?ro.XXS:ro.XS,children:e})]})},Lh=Rt.div`
2198
2198
  display: flex;
2199
2199
  flex-direction: ${({$flexDirection:e})=>e};
2200
2200
  gap: ${({$gap:e})=>e}px;
2201
- `,Lh=({label:e,direction:t,disabled:i,size:n,options:o,values:r,setValues:a})=>zt(Ph,{$flexDirection:t===mi.Horizontal?"row":"column",$gap:t===mi.Horizontal?16:8,children:[e&&Ft(so,{children:e}),o.map(t=>Ft(Mh,{...t,value:r[t.id],onChange:e=>{return i=t.id,n=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:i,size:n},`${e}-radio-${t.id}`))]});var jh;!function(e){e.Data="data",e.Pretty="pretty"}(jh||(jh={}));const Uh=Rt.div`
2201
+ `,Ph=({label:e,direction:t,disabled:i,size:n,options:o,values:r,setValues:a})=>zt(Lh,{$flexDirection:t===mi.Horizontal?"row":"column",$gap:t===mi.Horizontal?16:8,children:[e&&Ft(so,{children:e}),o.map(t=>Ft(Mh,{...t,value:r[t.id],onChange:e=>{return i=t.id,n=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:i,size:n},`${e}-radio-${t.id}`))]});var jh;!function(e){e.Data="data",e.Pretty="pretty"}(jh||(jh={}));const Uh=Rt.div`
2202
2202
  height: ${({$maxHeight:e})=>e};
2203
2203
  width: 100%;
2204
2204
  display: flex;
@@ -2213,10 +2213,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2213
2213
  `,Vh=Rt.div`
2214
2214
  flex-shrink: 0;
2215
2215
  z-index: 1;
2216
- `,qh=Rt.div`
2216
+ `,Gh=Rt.div`
2217
2217
  display: flex;
2218
2218
  width: 100%;
2219
- `,Gh=Rt.div`
2219
+ `,qh=Rt.div`
2220
2220
  position: relative;
2221
2221
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2222
2222
  flex: 1;
@@ -2243,6 +2243,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2243
2243
  `,Kh=Rt.div`
2244
2244
  position: relative;
2245
2245
 
2246
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2246
2247
  flex: 1;
2247
2248
  display: flex;
2248
2249
  align-items: center;
@@ -2267,7 +2268,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2267
2268
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2268
2269
  gap: 4px;
2269
2270
  text-align: ${({$textAlign:e})=>e||"left"};
2270
- `,Jh=({variant:e,columns:t,rows:i,getRowActions:n,rowActionsPushRightPosition:o,withCheckboxes:r})=>{const[a,s]=yt(null),l=bt(()=>i.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=a===c,x=n(l),f=(e,t)=>({$isLastRow:c===i.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return zt(qh,{children:[r&&Ft(Kh,{$variant:e,...f(!0,!1),children:!g&&Ft(Qp,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:i,textAlign:n},a)=>{const s=d.find(e=>e.key===i),l=0===a&&!r,p=a===t.length-1;return zt(Kh,{$variant:e,...f(l,p),children:[s?.component?Ft(oa,{$justifyContent:"right"===n?"flex-end":"flex-start",children:Ft(s.component,{})}):Ft(so,{size:ro.XS,align:n,children:s?.rawValue||"-"}),x.length?Ft(Ku,{isOpen:$&&p,actions:x,positionRight:o}):null]},`row-${c}-cell-${a}`)})]},`row-${c}`)}),[i,a,n,o,r,t]);return Ft(Vd,{gap:e===jh.Pretty?8:0,elements:l})},Xh=({columnKey:e,sortDirection:t,sortByKey:i,onSort:n})=>{const o=Mt(),r=i===e?o.v2.colors.white[500]:o.v2.colors.grey[400],a=t===gi.Ascending?0:180;return Ft(Mr,{icon:e=>Ft(dt,{fill:r,rotate:a,...e}),onClick:()=>n(e)})},Zh=({columnKey:e,filters:t,onFilter:i,rowsUnfiltered:n})=>{const o=Mt(),r=t[e]?.length?o.v2.colors.white[500]:o.v2.colors.grey[400],a=bt(()=>Array.from(new Set(n.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[n,e]);return Ft(lu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>i(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Ft($t,{fill:r,...e})}})},Qh=({variant:e,backgroundColor:t,columns:i,rowsUnfiltered:n,sortDirection:o,sortByKey:r,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>zt(qh,{children:[c&&Ft(Gh,{$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1,children:Ft(Qp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),i.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},$)=>{const x=0===$&&!c,f=$===i.length-1;return zt(Gh,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:f,children:[zt(Yh,{$textAlign:g,children:[Ft(so,{size:ro.XS,align:g,children:p}),!u&&Ft(Xh,{columnKey:d,sortDirection:o,sortByKey:r,onSort:a}),!h&&Ft(Zh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})]}),!f&&e===jh.Data&&Ft(Hh,{})]},`column-${d}`)})]}),em=({variant:e,maxHeight:t="256px",headerBackgroundColor:i,isLoading:n,columns:o,rows:r,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=yt(gi.Ascending),[p,u]=yt(""),[h,m]=yt({}),g=Ct(e=>{u(e),d(e=>e===gi.Ascending?gi.Descending:gi.Ascending)},[]),$=Ct((e,t)=>{m(i=>({...i,[e]:t}))},[]),x=bt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i&&(i.rawValue?.toString()||i.component?.({})?.props?.children?.toString())||""};return(p?[...r].sort((t,i)=>{const n=e(t,p),o=e(i,p);return(c===gi.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,o)}):r).filter(t=>{for(const[i,n]of Object.entries(h))if(n.length&&!n.includes(e(t,i)))return!1;return!0})},[r,p,c,h]),{partiallySelected:f,allSelected:b}=bt(()=>{const e=x.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[x]);return Ft(Uh,{$maxHeight:t,children:zt(Wh,{$variant:e,children:[Ft(Vh,{children:Ft(Qh,{variant:e,backgroundColor:i,columns:o,rowsUnfiltered:r,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:$,withCheckboxes:l,partiallySelected:f,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),x.length?Ft(Jh,{variant:e,columns:o,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}):Ft(aa,{style:{marginTop:"0.5rem"},children:n?Ft(vh,{withSpinner:!0}):Ft(Ih,{})})]})})},tm=Rt.div`
2271
+ `,Jh=({variant:e,columns:t,rows:i,getRowActions:n,rowActionsPushRightPosition:o,withCheckboxes:r})=>{const[a,s]=yt(null),l=bt(()=>i.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=a===c,x=n(l),f=(e,t)=>({$isLastRow:c===i.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return zt(Gh,{children:[r&&Ft(Kh,{$variant:e,style:{flex:"0 0 68px"},...f(!0,!1),children:!g&&Ft(Qp,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:i,textAlign:n,minWidth:a},s)=>{const l=d.find(e=>e.key===i),p=0===s&&!r,u=s===t.length-1,h="right"===n?"flex-end":"center"===n?"center":"flex-start";return zt(Kh,{$variant:e,$minWidth:a,...f(p,u),children:[Ft(oa,{$width:"100%",$justifyContent:h,children:l?.component?Ft(l.component,{}):Ft(so,{size:ro.XS,children:l?.rawValue||"-"})}),x.length?Ft(Ku,{isOpen:$&&u,actions:x,positionRight:o}):null]},`row-${c}-cell-${s}`)})]},`row-${c}`)}),[i,a,n,o,r,t]);return Ft(Vd,{gap:e===jh.Pretty?8:0,elements:l})},Xh=({columnKey:e,sortDirection:t,sortByKey:i,onSort:n})=>{const o=Mt(),r=i===e?o.v2.colors.white[500]:o.v2.colors.grey[400],a=t===gi.Ascending?0:180;return Ft(Mr,{icon:e=>Ft(dt,{fill:r,rotate:a,...e}),onClick:()=>n(e)})},Zh=({columnKey:e,filters:t,onFilter:i,rowsUnfiltered:n})=>{const o=Mt(),r=t[e]?.length?o.v2.colors.white[500]:o.v2.colors.grey[400],a=bt(()=>Array.from(new Set(n.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[n,e]);return Ft(lu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>i(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Ft($t,{fill:r,...e})}})},Qh=({variant:e,backgroundColor:t,columns:i,rowsUnfiltered:n,sortDirection:o,sortByKey:r,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>zt(Gh,{children:[c&&Ft(qh,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:Ft(Qp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),i.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},$)=>{const x=0===$&&!c,f=$===i.length-1;return zt(qh,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:f,children:[zt(Yh,{$textAlign:g,children:[Ft(so,{size:ro.XS,align:g,children:p}),!u&&Ft(Xh,{columnKey:d,sortDirection:o,sortByKey:r,onSort:a}),!h&&Ft(Zh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})]}),!f&&e===jh.Data&&Ft(Hh,{})]},`column-${d}`)})]}),em=({variant:e,maxHeight:t="256px",headerBackgroundColor:i,isLoading:n,columns:o,rows:r,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=yt(gi.Ascending),[p,u]=yt(""),[h,m]=yt({}),g=Ct(e=>{u(e),d(e=>e===gi.Ascending?gi.Descending:gi.Ascending)},[]),$=Ct((e,t)=>{m(i=>({...i,[e]:t}))},[]),x=bt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i&&(i.rawValue?.toString()||i.component?.({})?.props?.children?.toString())||""};return(p?[...r].sort((t,i)=>{const n=e(t,p),o=e(i,p);return(c===gi.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,o)}):r).filter(t=>{for(const[i,n]of Object.entries(h))if(n.length&&!n.includes(e(t,i)))return!1;return!0})},[r,p,c,h]),{partiallySelected:f,allSelected:b}=bt(()=>{const e=x.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[x]);return Ft(Uh,{$maxHeight:t,children:zt(Wh,{$variant:e,children:[Ft(Vh,{children:Ft(Qh,{variant:e,backgroundColor:i,columns:o,rowsUnfiltered:r,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:$,withCheckboxes:l,partiallySelected:f,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),x.length?Ft(Jh,{variant:e,columns:o,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}):Ft(aa,{style:{marginTop:"0.5rem"},children:n?Ft(vh,{withSpinner:!0}):Ft(Ih,{})})]})})},tm=Rt.div`
2271
2272
  display: flex;
2272
2273
  align-items: center;
2273
2274
  justify-content: center;
@@ -2378,4 +2379,4 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
2378
2379
  gap: 16px;
2379
2380
  padding: 16px 24px;
2380
2381
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2381
- `,fm=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Mt();return Ft(Eh,{isOpen:n,onClose:o,...c,children:zt(gm,{children:[zt($m,{children:[e&&Ft(e,{}),Ft(so,{size:ro.M,weight:500,color:d.v2.colors.white[500],children:t}),Ft(ra,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>Ft(so,{size:ro.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&zt(xm,{children:[Ft(zp,{variant:Np.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&Ft(zp,{variant:Np.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{mn as $,li as A,zp as B,Qp as C,zu as D,Gi as E,ra as F,Kn as G,Mi as H,Uu as I,Oa as J,ci as K,vh as L,jo as M,Ih as N,Pi as O,ji as P,Yi as Q,uu as R,Vd as S,um as T,Ki as U,hh as V,fm as W,Li as X,Bi as Y,co as Z,Uo as _,Bu as a,go as a$,gr as a0,_o as a1,Ro as a2,Dr as a3,on as a4,nn as a5,Mr as a6,Rr as a7,Mo as a8,Po as a9,ia as aA,em as aB,jh as aC,ih as aD,In as aE,fs as aF,Eu as aG,wr as aH,du as aI,fu as aJ,wu as aK,Ui as aL,na as aM,fc as aN,Il as aO,is as aP,fo as aQ,Bl as aR,Ed as aS,Ap as aT,Fd as aU,vd as aV,ep as aW,Jd as aX,Mc as aY,Pd as aZ,kp as a_,$n as aa,Wp as ab,Ko as ac,Lo as ad,Ti as ae,sm as af,oo as ag,or as ah,en as ai,wi as aj,tr as ak,Pr as al,qr as am,ta as an,Ln as ao,gu as ap,Jo as aq,lu as ar,nu as as,iu as at,Cl as au,Up as av,dn as aw,vl as ax,cu as ay,rn as az,Mu as b,_a as b$,Yo as b0,rd as b1,Rc as b2,Qa as b3,Nr as b4,fn as b5,Bo as b6,As as b7,Ic as b8,pn as b9,kr as bA,to as bB,Tr as bC,rr as bD,Zs as bE,ln as bF,wn as bG,gn as bH,Ri as bI,cp as bJ,_r as bK,an as bL,ri as bM,Zi as bN,oi as bO,Fr as bP,Hr as bQ,Da as bR,sa as bS,np as bT,Gr as bU,qn as bV,Ul as bW,tn as bX,Kr as bY,Lr as bZ,lr as b_,yi as ba,Qo as bb,va as bc,ca as bd,Va as be,Oo as bf,ka as bg,Ud as bh,un as bi,Ns as bj,Ai as bk,Gn as bl,Nn as bm,Zo as bn,ni as bo,js as bp,bn as bq,Gs as br,da as bs,pa as bt,md as bu,xn as bv,ua as bw,xc as bx,sl as by,Ip as bz,ki as c,Xi as c$,ys as c0,Os as c1,Rs as c2,vi as c3,Hn as c4,Ur as c5,Rn as c6,Zt as c7,Ji as c8,xp as c9,oc as cA,ea as cB,Vs as cC,hn as cD,ec as cE,Go as cF,cn as cG,rs as cH,An as cI,Ms as cJ,us as cK,ai as cL,Oi as cM,ui as cN,Fi as cO,Ni as cP,fi as cQ,Ei as cR,hi as cS,mi as cT,pi as cU,_i as cV,xi as cW,qi as cX,Vi as cY,Wi as cZ,Di as c_,Cc as ca,Cn as cb,yp as cc,er as cd,Vr as ce,$i as cf,Za as cg,xr as ch,zn as ci,zr as cj,Ii as ck,bl as cl,Rd as cm,_s as cn,xd as co,On as cp,Bn as cq,zs as cr,ol as cs,al as ct,Ku as cu,jn as cv,Xn as cw,Jr as cx,zi as cy,bi as cz,eh as d,im as d$,Hi as d0,gi as d1,di as d2,Qt as d3,sn as d4,yn as d5,vn as d6,kn as d7,Sn as d8,En as d9,cl as dA,_c as dB,td as dC,Yc as dD,sd as dE,ud as dF,Ps as dG,la as dH,Uc as dI,ha as dJ,uo as dK,ho as dL,mo as dM,gh as dN,mh as dO,fh as dP,Mp as dQ,Pp as dR,tu as dS,Jp as dT,Gu as dU,Eh as dV,Th as dW,Mh as dX,Lh as dY,_h as dZ,hu as d_,Tn as da,Dn as db,Fn as dc,Pn as dd,Un as de,Vn as df,Jn as dg,Zn as dh,Qn as di,eo as dj,io as dk,no as dl,Wo as dm,Vo as dn,qo as dp,zo as dq,mr as dr,vr as ds,$r as dt,hr as du,Or as dv,wl as dw,Sl as dx,El as dy,gl as dz,lm as e,mm as e0,am as e1,Yu as f,Ci as g,si as h,Mn as i,ii as j,oa as k,aa as l,ro as m,Yp as n,zh as o,Si as p,Np as q,so as r,Op as s,Qi as t,Gp as u,rm as v,ti as w,Wu as x,_n as y,Yn as z};
2382
+ `,fm=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Mt();return Ft(Eh,{isOpen:n,onClose:o,...c,children:zt(gm,{children:[zt($m,{children:[e&&Ft(e,{}),Ft(so,{size:ro.M,weight:500,color:d.v2.colors.white[500],children:t}),Ft(ra,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>Ft(so,{size:ro.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&zt(xm,{children:[Ft(zp,{variant:Np.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&Ft(zp,{variant:Np.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{mn as $,li as A,zp as B,Qp as C,zu as D,qi as E,ra as F,Kn as G,Mi as H,Uu as I,Oa as J,ci as K,vh as L,jo as M,Ih as N,Li as O,ji as P,Yi as Q,uu as R,Vd as S,um as T,Ki as U,hh as V,fm as W,Pi as X,Bi as Y,co as Z,Uo as _,Bu as a,go as a$,gr as a0,_o as a1,Ro as a2,Dr as a3,on as a4,nn as a5,Mr as a6,Rr as a7,Mo as a8,Lo as a9,ia as aA,em as aB,jh as aC,ih as aD,In as aE,fs as aF,Eu as aG,wr as aH,du as aI,fu as aJ,wu as aK,Ui as aL,na as aM,fc as aN,Il as aO,is as aP,fo as aQ,Bl as aR,Ed as aS,Ap as aT,Fd as aU,vd as aV,ep as aW,Jd as aX,Mc as aY,Ld as aZ,kp as a_,$n as aa,Wp as ab,Ko as ac,Po as ad,Ti as ae,sm as af,oo as ag,or as ah,en as ai,wi as aj,tr as ak,Lr as al,Gr as am,ta as an,Pn as ao,gu as ap,Jo as aq,lu as ar,nu as as,iu as at,Cl as au,Up as av,dn as aw,vl as ax,cu as ay,rn as az,Mu as b,_a as b$,Yo as b0,rd as b1,Rc as b2,Qa as b3,Nr as b4,fn as b5,Bo as b6,As as b7,Ic as b8,pn as b9,kr as bA,to as bB,Tr as bC,rr as bD,Zs as bE,ln as bF,wn as bG,gn as bH,Ri as bI,cp as bJ,_r as bK,an as bL,ri as bM,Zi as bN,oi as bO,Fr as bP,Hr as bQ,Da as bR,sa as bS,np as bT,qr as bU,Gn as bV,Ul as bW,tn as bX,Kr as bY,Pr as bZ,lr as b_,yi as ba,Qo as bb,va as bc,ca as bd,Va as be,Oo as bf,ka as bg,Ud as bh,un as bi,Ns as bj,Ai as bk,qn as bl,Nn as bm,Zo as bn,ni as bo,js as bp,bn as bq,qs as br,da as bs,pa as bt,md as bu,xn as bv,ua as bw,xc as bx,sl as by,Ip as bz,ki as c,Xi as c$,ys as c0,Os as c1,Rs as c2,vi as c3,Hn as c4,Ur as c5,Rn as c6,Zt as c7,Ji as c8,xp as c9,oc as cA,ea as cB,Vs as cC,hn as cD,ec as cE,qo as cF,cn as cG,rs as cH,An as cI,Ms as cJ,us as cK,ai as cL,Oi as cM,ui as cN,Fi as cO,Ni as cP,fi as cQ,Ei as cR,hi as cS,mi as cT,pi as cU,_i as cV,xi as cW,Gi as cX,Vi as cY,Wi as cZ,Di as c_,Cc as ca,Cn as cb,yp as cc,er as cd,Vr as ce,$i as cf,Za as cg,xr as ch,zn as ci,zr as cj,Ii as ck,bl as cl,Rd as cm,_s as cn,xd as co,On as cp,Bn as cq,zs as cr,ol as cs,al as ct,Ku as cu,jn as cv,Xn as cw,Jr as cx,zi as cy,bi as cz,eh as d,im as d$,Hi as d0,gi as d1,di as d2,Qt as d3,sn as d4,yn as d5,vn as d6,kn as d7,Sn as d8,En as d9,cl as dA,_c as dB,td as dC,Yc as dD,sd as dE,ud as dF,Ls as dG,la as dH,Uc as dI,ha as dJ,uo as dK,ho as dL,mo as dM,gh as dN,mh as dO,fh as dP,Mp as dQ,Lp as dR,tu as dS,Jp as dT,qu as dU,Eh as dV,Th as dW,Mh as dX,Ph as dY,_h as dZ,hu as d_,Tn as da,Dn as db,Fn as dc,Ln as dd,Un as de,Vn as df,Jn as dg,Zn as dh,Qn as di,eo as dj,io as dk,no as dl,Wo as dm,Vo as dn,Go as dp,zo as dq,mr as dr,vr as ds,$r as dt,hr as du,Or as dv,wl as dw,Sl as dx,El as dy,gl as dz,lm as e,mm as e0,am as e1,Yu as f,Ci as g,si as h,Mn as i,ii as j,oa as k,aa as l,ro as m,Yp as n,zh as o,Si as p,Np as q,so as r,Op as s,Qi as t,qp as u,rm as v,ti as w,Wu as x,_n as y,Yn as z};