@odigos/ui-kit 0.0.233 → 0.0.234

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.
@@ -0,0 +1,2696 @@
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as n,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{SamplerIcon as l,PiiMaskingIcon as c,ActionIcon as d,RenameAttributeIcon as p,DeleteAttributeIcon as u,AddClusterInfoIcon as h,K8sLogo as m,ImageErrorIcon as g,KafkaLogo as f,RedisLogo as y,PostgresLogo as x,NginxLogo as b,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as k,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as A,DotnetLogo as D,PythonLogo as T,NodejsLogo as I,GoLogo as N,JavaLogo as R,PyroscopeLogo as O,AwsXrayLogo as _,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as L,TingyunLogo as z,TempoLogo as M,TelemetryHubLogo as B,SumoLogicLogo as U,SplunkLogo as j,SignozLogo as W,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as G,GigapipeLogo as V,QrynLogo as K,PrometheusLogo as q,OpenTelemetryLogo as J,OracleLogo as Y,OpsVerseLogo as Q,OpenObserveLogo as Z,OneUptimeLogo as ee,OdigosLogo as te,ObserveLogo as re,NewRelicLogo as oe,MiddlewareLogo as ne,LumigoLogo as ie,LokiLogo as ae,LogzioLogo as se,LightstepLogo as le,Last9Logo as ce,KloudmateLogo as de,JaegerLogo as pe,InstanaLogo as ue,HyperDxLogo as he,HoneycombLogo as me,GroundcoverLogo as ge,GreptimeLogo as fe,GrafanaLogo as ye,GoogleCloudPlatformLogo as xe,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as ke,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Ae,ChecklyLogo as De,CauselyLogo as Te,BonreeLogo as Ie,BetterStackLogo as Ne,AzureMonitorLogo as Re,AzureBlobLogo as Oe,AxiomLogo as _e,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Le,SamplingIcon as ze,InstrumentationRuleIcon as Me,DestinationIcon as Be,SourceIcon as Ue,NamespacesIcon as je,PayloadCollectionIcon as We,HeadersCollectionIcon as He,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ge,TracesIcon as Ve,MetricsIcon as Ke,LogsIcon as qe,VmLogo as Je,DotsHorizontalIcon as Ye,QuestionCircleIcon as Qe,XSquareIcon as Ze,VSquareIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as rt,ISquareIcon as ot,AwsLogo as nt,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as pt,AwsLambdaLogo as ut,AwsSnsLogo as ht,AwsSqsLogo as mt,AwsDynamoDbLogo as gt,AwsStsLogo as ft,VIcon as yt,CopyIcon as xt,XIcon as bt,MinusIcon as vt,ListIcon as $t,CodeIcon as wt,ExtendArrowIcon as St,PlusIcon as kt,EditIcon as Ct,NoDataIcon as Et,RefreshIcon as At,EyeClosedIcon as Dt,EyeOpenIcon as Tt,SearchIcon as It,TrashIcon as Nt,EditedIcon as Rt,SortArrowsIcon as Ot,NotebookIcon as _t,ChevronUpIcon as Pt,ChevronDownIcon as Ft,ArrowIcon as Lt,DotsVerticalIcon as zt,DotIcon as Mt,FilterIcon as Bt}from"../icons.js";import{create as Ut}from"zustand";import{forwardRef as jt,Fragment as Wt,useState as Ht,useEffect as Xt,useMemo as Gt,useRef as Vt,useCallback as Kt,useContext as qt,createContext as Jt,memo as Yt,useLayoutEffect as Qt}from"react";import Zt from"javascript-time-ago";import{p as er,c as tr,s as rr,l as or}from"./vendor-C150cdxb.js";import{Handle as nr,Position as ir,ReactFlowProvider as ar,ReactFlow as sr,Controls as lr,ControlButton as cr,useReactFlow as dr}from"@xyflow/react";import pr,{createPortal as ur}from"react-dom";import{Highlight as hr,themes as mr}from"prism-react-renderer";import{ErrorBoundary as gr}from"react-error-boundary";import fr from"lottie-react";import{VList as yr}from"virtua";const xr=e=>e.charAt(0).toUpperCase()+e.slice(1),br=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,r(o)]:[e,o]));return Object.entries(e).reduce((e,[o,n])=>{try{const i=JSON.parse(n);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(r(i)):n}catch(i){"object"==typeof n&&null!==n?Array.isArray(n)?e[o]=JSON.stringify(t(n)):e[o]=JSON.stringify(r(n)):e[o]=n}return e},{})};var vr;!function(e){e.SIGNALS="SIGNALS"}(vr||(vr={}));const $r=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,n,i]=e;if(o===vr.SIGNALS)switch(n){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=r.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(n){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},wr=e=>JSON.parse(JSON.stringify(e)),Sr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),kr=(e,t,r)=>{const o=t.split(".");let n=e;for(let e=0;e<o.length-1;e++)o[e]in n&&"object"==typeof n[o[e]]||(n[o[e]]={}),n=n[o[e]];n[o[o.length-1]]=r},Cr=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},Er=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Ar=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Dr,Tr,Ir,Nr,Rr,Or,_r,Pr,Fr,Lr,zr,Mr,Br,Ur,jr,Wr,Hr,Xr,Gr,Vr,Kr,qr,Jr,Yr,Qr,Zr,eo,to,ro,oo,no,io,ao,so,lo,co,po,uo,ho,mo,go,fo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Dr||(Dr={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(Tr||(Tr={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(Ir||(Ir={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(Nr||(Nr={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Rr||(Rr={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(Or||(Or={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(_r||(_r={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(Pr||(Pr={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fr||(Fr={})),function(e){e.Ascending="ascending",e.Descending="descending"}(Lr||(Lr={})),function(e){e.Community="community",e.Onprem="onprem"}(zr||(zr={})),function(e){e.K8s="k8s",e.Vm="vm"}(Mr||(Mr={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Br||(Br={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(Ur||(Ur={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(jr||(jr={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(Wr||(Wr={})),function(e){e.DataStream="DataStream"}(Hr||(Hr={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Xr||(Xr={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Gr||(Gr={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Vr||(Vr={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Kr||(Kr={})),function(e){e.Loading="loading",e.Disabled="disabled"}(qr||(qr={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Jr||(Jr={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Yr||(Yr={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Qr||(Qr={})),function(e){e.Labeled="labeled"}(Zr||(Zr={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(eo||(eo={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(to||(to={})),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"}(ro||(ro={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(oo||(oo={})),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"}(no||(no={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(io||(io={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(ao||(ao={})),function(e){e.HeaderKeys="headerKeys"}(so||(so={})),function(e){e.Java="java",e.Golang="golang"}(lo||(lo={}));class yo{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class xo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,o){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(co||(co={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(po||(po={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(uo||(uo={})),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"}(ho||(ho={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(mo||(mo={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(go||(go={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(fo||(fo={}));const bo={[go.Logs]:fo.Logs,[go.Metrics]:fo.Metrics,[go.Traces]:fo.Traces,[go.Profiles]:fo.Profiles},vo={[fo.Logs]:go.Logs,[fo.Metrics]:go.Metrics,[fo.Traces]:go.Traces,[fo.Profiles]:go.Profiles},$o=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({namespace:t})=>e.has(t))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({kind:t})=>e.has(t))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({containers:t})=>t?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.conditions?.length){const e=new Set(t.conditions.map(({id:e})=>e));r=r.filter(({conditions:t})=>t?.some(({type:t,reason:r})=>e.has(`${t}#${r}`)))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum)||e.has(t?.message))}if(t.onlyErrors&&(r=r.filter(e=>e.conditions?.some(e=>e.status===Vr.Error))),t.errors?.length){const e=new Set(t.errors.map(({id:e})=>e));r=r.filter(t=>t.conditions?.some(t=>e.has(t.message)))}return r},wo="https://docs.odigos.io",So="default",ko="this-cluster",Co="This Cluster",Eo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Ao={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)'},Do={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},To={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Io=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===So&&!e.dataStreamNames.length):[],No=(e,t="",r={})=>{for(const o in e)if(e.hasOwnProperty(o)){const n=e[o],i=t?`${t}.${o}`:o;null===n||"object"!=typeof n||Array.isArray(n)?Array.isArray(n)?n.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?No(e,o,r):r[o]=e}):r[i]=n:No(n,i,r)}return r},Ro=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Oo=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},_o=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const o=e[t%16];t++;return("1"===r?o:"0"===r?63&o|128:15&o|64).toString(16)})},Po=e=>{const t=e?.toLowerCase(),r=t?.includes(Dr.Samplers),o=t===Dr.Attributes;if(r)return l;if(o)return c;return{[Tr.K8sAttributes]:m,[Tr.AddClusterInfo]:h,[Tr.DeleteAttributes]:u,[Tr.PiiMasking]:c,[Tr.RenameAttributes]:p,[Tr.URLTemplatization]:d,[Tr.ErrorSampler]:l,[Tr.ProbabilisticSampler]:l,[Tr.LatencySampler]:l,[Tr.ServiceNameSampler]:l,[Tr.SpanAttributeSampler]:l}[e]||g},Fo=e=>{const t=e?.filter(({status:e})=>e===Vr.Error),r=e?.filter(({status:e})=>e===Vr.Warning),o=e?.filter(({status:e})=>e===qr.Disabled),n=e?.filter(({status:e})=>e===qr.Loading),i=t.length>0,a=r.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:r,hasWarnings:a,disableds:o,hasDisableds:s,loadings:n,hasLoadings:n.length>0,priorotizedStatus:i?Vr.Error:a?Vr.Warning:s?Vr.Info:void 0}},Lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zo=e=>({[Ur.Java]:R,[Ur.Go]:N,[Ur.JavaScript]:I,[Ur.Python]:T,[Ur.DotNet]:D,[Ur.CSharp]:A,[Ur.CPlusPlus]:E,[Ur.Php]:C,[Ur.Ruby]:k,[Ur.Rust]:S,[Ur.Swift]:w,[Ur.Elixir]:$,[Ur.MySql]:v,[Ur.Nginx]:b,[Ur.Postgres]:x,[Ur.Redis]:y,[Ur.Kafka]:f,[Ur.Ignored]:g,[Ur.Unknown]:g,[Ur.Processing]:g,[Ur.NoContainers]:g,[Ur.NoRunningPods]:g}[e]||g),Mo=e=>e?.map(e=>{return zo((t=e,t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language??"unknown"));var t})||[],Bo=e=>e?.map(e=>zo(e))||[],Uo=e=>e.detectedLanguages?.length?Bo(e.detectedLanguages):Mo(e.containers),jo=(e,t)=>{const r={[to.Alauda]:Le,[to.AlibabaCloud]:Fe,[to.AppDynamics]:Pe,[to.Axiom]:_e,[to.AzureBlob]:Oe,[to.AzureMonitor]:Re,[to.BetterStack]:Ne,[to.Bonree]:Ie,[to.Causely]:Te,[to.Checkly]:De,[to.Chronosphere]:Ae,[to.ClickHouse]:Ee,[to.CloudWatch]:Ce,[to.Coralogix]:ke,[to.Dash0]:Se,[to.Datadog]:we,[to.Dynamic]:J,[to.Dynatrace]:$e,[to.ElasticApm]:ve,[to.ElasticSearch]:be,[to.GoogleCloud]:xe,[to.GoogleCloudOTLP]:xe,[to.GrafanaCloudLoki]:ye,[to.GrafanaCloudPrometheus]:ye,[to.GrafanaCloudTempo]:ye,[to.Greptime]:fe,[to.Groundcover]:ge,[to.Honeycomb]:me,[to.HyperDX]:he,[to.Instana]:ue,[to.Jaeger]:pe,[to.Kafka]:f,[to.Kloudmate]:de,[to.Last9]:ce,[to.Lightstep]:le,[to.LogzIo]:se,[to.Loki]:ae,[to.Lumigo]:ie,[to.Middleware]:ne,[to.NewRelic]:oe,[to.Observe]:re,[to.Odigos]:te,[to.OneUptime]:ee,[to.OpenObserve]:Z,[to.Opsverse]:Q,[to.Oracle]:Y,[to.OTLP]:J,[to.OTLPHttp]:J,[to.Prometheus]:q,[to.Qryn]:K,[to.QrynOss]:V,[to.Quickwit]:G,[to.S3]:X,[to.Seq]:H,[to.Signalfx]:j,[to.Signoz]:W,[to.Splunk]:j,[to.SplunkSapm]:j,[to.SplunkOtlp]:j,[to.SumoLogic]:U,[to.TelemetryHub]:B,[to.Tempo]:M,[to.Tingyun]:z,[to.Traceloop]:L,[to.Uptrace]:F,[to.VictoriaMetrics]:P,[to.VictoriaMetricsCloud]:P,[to.XRay]:_,[to.Pyroscope]:O}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Wo=e=>({[Wr.Namespace]:je,[Wr.Source]:Ue,[Wr.Destination]:Be,[Wr.Action]:d,[Wr.InstrumentationRule]:Me,[Wr.SamplingRule]:ze}[e]),Ho=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,Xo=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Go=e=>Xo(Ho(e)),Vo=(e,t,r)=>{const{extended:o,prioritizeDisplayName:n}=r||{};let i="",a="";switch(t){case Wr.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Wr.Source:const r=e;i=r.name,a=r.otelServiceName;break;case Wr.Action:const o=e;i=o.type,a=o.name;break;case Wr.Destination:const n=e;i=n.destinationType.displayName,a=n.name;break;case Wr.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):n&&a||i},Ko=(e,t)=>{if(t===Wr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,o]=e.split("=");t[r]=o}),t}return e},qo=e=>({[io.CodeAttributes]:Ge,[io.CustomInstrumentation]:Xe,[io.HeadersCollection]:He,[io.PayloadCollection]:We,[io.UnknownType]:g}[e]||g),Jo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Ur.Unknown,Yo=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Ur.Processing:Ur.NoRunningPods;const o=r?.filter(e=>Jo(e)!==Ur.Ignored);if(!o.length)return Ur.NoContainers;const n=o.find(e=>Jo(e)!==Ur.Unknown);return n?Jo(n):Ur.Unknown},Qo=(e,t,r)=>(t===Wr.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Zo=e=>({[go.Logs]:qe,[go.Metrics]:Ke,[go.Traces]:Ve,[go.Profiles]:te}[e]),en=e=>{if(!e)return te;return{[Mr.K8s]:m,[Mr.Vm]:Je}[e]},tn=e=>{if(!e)return"Unknown";return{[Mr.K8s]:"Kubernetes Cluster",[Mr.Vm]:"Virtual Machine"}[e]},rn=(e,t,r)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[r],n=[];return void 0!==o&&(Array.isArray(o)?n.push(...o):n.push(o)),n.push(...rn(e,t,r)),n}):[]},on=(e,t)=>{if(t===Wr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},nn=(e,t,r)=>{switch(t){case Vr.Default:return e.v2.colors.purple[r];case Vr.Info:return e.v2.colors.blue[r];case Vr.Error:return e.v2.colors.red[r];case Vr.Warning:return e.v2.colors.yellow[r];case Vr.Success:return e.v2.colors.green[r];case qr.Loading:case Jr.Disabled:case Jr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},an=e=>{switch(e){case po.Updating:case uo.Pending:case ho.ContainerCreating:case mo.Waiting:return Vr.Info;case po.Healthy:case uo.Succeeded:case uo.Running:case ho.Running:case mo.Running:return Vr.Success;case po.Degraded:return Vr.Warning;case po.Failed:case uo.Failed:case ho.Error:case ho.CrashLoopBackOff:case ho.CreateContainerError:case ho.CreateContainerConfigError:case ho.ErrImagePull:case ho.ErrImageNeverPull:case ho.ImagePullBackOff:case ho.InvalidImageName:case ho.RegistryUnavailable:case ho.NetworkNotReady:case ho.OOMKilled:case ho.ContainerCannotRun:case mo.Terminated:case ho.DeadlineExceeded:case ho.StartError:return Vr.Error;case po.Down:case ho.Completed:return Jr.Disabled;case po.Unknown:case uo.Unknown:default:return Jr.Unknown}};var sn,ln,cn;!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"}(sn||(sn={})),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"}(ln||(ln={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(cn||(cn={}));const dn=new Set(Object.values(cn)),pn=(e,t)=>{if("string"!=typeof(r=t)||!dn.has(r))return t;var r;switch(t){case cn.Primary:return e.v2.colors.white[500];case cn.Secondary:return e.v2.colors.silver[200];case cn.Tertiary:return e.v2.colors.black[500];case cn.Disable:return e.v2.colors.grey[400];case cn.Error:return e.v2.colors.red[500];case cn.Mandatory:return e.v2.colors.red[600];case cn.Link:return e.v2.colors.purple[400];case cn.Success:return e.v2.colors.green[400];default:return}},un=o.p`
2
+ margin: 0;
3
+ color: ${({$color:e,theme:t})=>pn(t,e)||t.v2.colors.grey[50]};
4
+ font-family: ${({theme:e})=>e.font_family.primary};
5
+ font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
+ font-weight: ${({$weight:e})=>e};
7
+ text-align: ${({$align:e})=>e};
8
+ text-transform: ${({$transform:e})=>e};
9
+ line-height: ${({theme:e,$lineHeight:t,$size:r})=>t||`${e.v2.text.size[r]+2}px`};
10
+ opacity: ${({$opacity:e})=>e};
11
+
12
+ ${({$nowrap:e})=>e&&n`
13
+ text-wrap: nowrap;
14
+ white-space: nowrap;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ `}
18
+
19
+ ${({$underline:e})=>e&&n`
20
+ text-decoration: underline;
21
+ `}
22
+
23
+ ${({$withClick:e})=>e&&n`
24
+ cursor: pointer;
25
+ &:hover {
26
+ text-decoration: underline;
27
+ }
28
+ `}
29
+ `,hn=jt(({children:r,variant:o=sn.P,color:n,size:i=ln.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:p,underline:u,onClick:h,disabled:m,...g},f)=>{const y=r?.toString().split("\n")||[];return e(un,{ref:f,as:o,$color:n,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:p,$underline:u,$withClick:!!h&&!m,onClick:m?void 0:h,...g,children:y.map((r,o)=>t(Wt,{children:[r,o!==y.length-1&&e("br",{})]},`typography-${o}-${r}`))})});hn.displayName="Typography";const mn=o.div`
30
+ border-radius: 100%;
31
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
32
+ position: relative;
33
+ `,gn=o.div`
34
+ width: 80px;
35
+ height: 80px;
36
+ border-radius: 100%;
37
+ border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
38
+ border-right-color: transparent;
39
+ border-left-color: transparent;
40
+ border-bottom-color: transparent;
41
+ animation: spin 1s linear infinite;
42
+ @keyframes spin {
43
+ to {
44
+ transform: rotate(360deg);
45
+ }
46
+ }
47
+ `,fn=o(hn)`
48
+ position: absolute;
49
+ top: 50%;
50
+ left: 50%;
51
+ transform: translate(-50%, -50%);
52
+ `,yn=({percentage:r})=>t(mn,{children:[e(gn,{}),"number"==typeof r?e(fn,{size:ln.M,weight:500,children:`${r}%`}):null]}),xn={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function bn(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return xn[o]?{value:t,unit:o}:{value:t,unit:"px"}}function vn(e){const t=bn(e);return`${t.value}${t.unit}`}const $n=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),wn=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=bn(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},y=(e,t)=>({position:"absolute",width:vn(1.5),height:vn(4),borderRadius:vn(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${$n} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Sn=o.div`
53
+ width: ${({$size:e})=>e}px;
54
+ height: ${({$size:e})=>e}px;
55
+ border-radius: 100%;
56
+ background: ${({$color:e})=>e};
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ `,kn=({scale:t,icon:r})=>{const o=i();return e(Sn,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(Sn,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(Sn,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(Sn,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(Sn,{$size:23*t,$color:"#50F6E8",children:e(r,{size:16*t,fill:o.v2.colors.black[500]})})})})})})},Cn=434,En=635,An=o.div`
61
+ width: ${434}px;
62
+ height: ${635}px;
63
+ display: flex;
64
+ flex-direction: column;
65
+ align-items: center;
66
+ justify-content: center;
67
+ padding: 16px;
68
+ background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
69
+ position: relative;
70
+ `,Dn=o.div`
71
+ position: absolute;
72
+ top: 50%;
73
+ left: 50%;
74
+ transform: translate(-50%, -50%);
75
+ `,Tn=()=>t(An,{children:[e(Dn,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(Dn,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Dn,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Dn,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Dn,{children:e(te,{size:112})})]}),In=o.div`
76
+ width: ${({$size:e})=>e}px;
77
+ height: ${({$size:e})=>e}px;
78
+ border-radius: 100%;
79
+ background: ${({$color:e})=>e};
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ `,Nn=({scale:t=1,icon:r})=>{const o=i();return e(In,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(In,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(In,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(In,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(In,{$size:39*t,$color:o.v2.colors.purple[500],children:e(r,{size:32*t,fill:o.v2.colors.white[500]})})})})})})},Rn=o.div`
84
+ flex: 1;
85
+ align-self: stretch;
86
+ display: flex;
87
+ flex-direction: column;
88
+ gap: ${({$gap:e=24})=>e}px;
89
+ overflow-x: scroll;
90
+
91
+ max-height: calc(100vh - 24px - ${({$heightOffset:e})=>e||0}px);
92
+ padding: 24px 24px 0 24px;
93
+ `,On=o.div`
94
+ position: relative;
95
+
96
+ // inherit all the properties of the parent (PageContent)
97
+ flex: inherit;
98
+ align-self: inherit;
99
+ display: inherit;
100
+ flex-direction: inherit;
101
+ gap: inherit;
102
+ overflow-x: inherit;
103
+ `,_n=o.div`
104
+ padding: ${({$padding:e})=>e||"12px"};
105
+ `,Pn=o.div`
106
+ display: flex;
107
+ flex-direction: row;
108
+ flex-wrap: ${({$wrap:e="unset"})=>e};
109
+ align-items: ${({$alignItems:e="center"})=>e};
110
+ justify-content: ${({$justifyContent:e="unset"})=>e};
111
+ gap: ${({$gap:e=2})=>e}px;
112
+ width: ${({$width:e})=>e||"unset"};
113
+ height: ${({$height:e})=>e||"unset"};
114
+ margin: ${({$margin:e="unset"})=>e};
115
+ padding: ${({$padding:e="unset"})=>e};
116
+ `,Fn=o.div`
117
+ display: flex;
118
+ flex-direction: column;
119
+ flex-wrap: ${({$wrap:e="unset"})=>e};
120
+ align-items: ${({$alignItems:e="unset"})=>e};
121
+ justify-content: ${({$justifyContent:e="unset"})=>e};
122
+ gap: ${({$gap:e=2})=>e}px;
123
+ width: ${({$width:e})=>e||"unset"};
124
+ height: ${({$height:e})=>e||"unset"};
125
+ margin: ${({$margin:e="unset"})=>e};
126
+ padding: ${({$padding:e="unset"})=>e};
127
+ `,Ln=o(Fn)`
128
+ width: ${({$width:e})=>e||"100%"};
129
+ height: ${({$height:e})=>e||"unset"};
130
+ padding: ${({$padding:e})=>e||"unset"};
131
+ align-items: center;
132
+ justify-content: center;
133
+ `,zn=o.div`
134
+ display: flex;
135
+ flex-direction: column;
136
+ padding: 12px;
137
+ overflow-y: scroll;
138
+ `,Mn=o.div`
139
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
140
+ top: 0;
141
+ left: 0;
142
+ right: 0;
143
+ bottom: 0;
144
+ // Sits at the modal/drawer layer; rendered before the surface in JSX so the surface
145
+ // visually stacks above it via DOM order while sharing the same z-index level.
146
+ z-index: ${({theme:e})=>e.v2.zIndex.modal};
147
+ background: rgba(0, 0, 0, 0.6);
148
+ backdrop-filter: blur(2px);
149
+ `,Bn=o.div`
150
+ width: 800px;
151
+ min-height: ${({$minHeight:e})=>e||"unset"};
152
+ height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
153
+ margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
154
+ padding: 0 2px;
155
+ overflow-y: scroll;
156
+ `,Un=o(Fn)`
157
+ max-width: ${({$maxWidth:e})=>e||"unset"};
158
+ width: 100%;
159
+ `,jn=o(Pn)`
160
+ gap: 16px;
161
+ padding: 16px;
162
+ `,Wn=o.div`
163
+ width: 100%;
164
+ max-height: ${({$maxHeight:e})=>e||"unset"};
165
+ overflow-y: auto;
166
+ `,Hn=a`
167
+ 0% {
168
+ background-position: 0% 50%;
169
+ }
170
+ 100% {
171
+ background-position: 100% 50%;
172
+ }
173
+ `,Xn=o(hn)`
174
+ background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
175
+ background-size: 250% 100%; /* Expand background to allow movement */
176
+ background-clip: text;
177
+ color: transparent;
178
+ animation: ${Hn} 1s reverse linear infinite;
179
+ `,Gn=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),o=Math.floor(r/60),n=r%60;return`${String(o).padStart(2,"0")}:${String(n).padStart(2,"0")}`},Vn=({icon:r,title:o,titleColor:n,titleSize:a=ln.S,subTitle:s,subTitleColor:l,subTitleSize:c=ln.XXXS,startedAt:d,withGradient:p,gradientColor:u,withSpinner:h,withSpinnerOld:m,scaleSpinnerOld:g=1,percentage:f,withVisual:y,visualIcon:x=Ye})=>{const b=i(),[v,$]=Ht(()=>d?Gn(d):"");Xt(()=>{if(!d)return;$(Gn(d));const e=setInterval(()=>$(Gn(d)),1e3);return()=>clearInterval(e)},[d]);const w=n||b.v2.colors.white[500],S=l||b.v2.colors.silver[200],k=u||b.v2.colors.black[500];return t(Fn,{$gap:16,$alignItems:"center",children:[y?e(kn,{scale:1.7,icon:x}):h?e(yn,{percentage:f}):m?e(wn,{scale:g}):null,(o||s||d||r)&&t(Fn,{$gap:8,$alignItems:"center",children:[t(Pn,{$gap:4,children:[r&&e(r,{}),p?e(Xn,{align:"center",size:a,$titleColor:w,$gradientColor:k,children:o}):e(hn,{align:"center",size:a,color:w,children:o})]}),s?e(hn,{align:"center",size:c,color:S,children:s}):null,v?e(hn,{align:"center",size:c,color:w,children:v}):null]})]})},Kn=(e,t)=>{const r={[Vr.Default]:r=>te({fill:nn(t,e,"300"),...r}),[Vr.Info]:r=>ot({fill:nn(t,e,"400"),...r}),[Vr.Error]:r=>rt({fill:nn(t,e,"500"),...r}),[Vr.Warning]:r=>tt({fill:nn(t,e,"500"),...r}),[Vr.Success]:r=>et({fill:nn(t,e,"500"),...r}),[qr.Loading]:e=>Vn({withSpinnerOld:!0,...e}),[Jr.Disabled]:r=>Ze({fill:nn(t,e,"400"),...r}),[Jr.Unknown]:r=>Qe({fill:nn(t,e,"300"),...r})};return r[e]},qn=e=>{switch(e){case no.Success:return Vr.Success;case no.Error:case no.Failure:return Vr.Error;case no.Notice:return Vr.Warning;case no.Unsupported:case no.Unknown:return Vr.Info;case no.Irrelevant:case no.Disabled:return qr.Disabled;case no.Waiting:return qr.Loading;case no.Pending:default:return Vr.Default}},Jn=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Yn={redis:y,mysql:v,postgresql:x,postgres:x,kafka:f,elasticsearch:be,clickhouse:Ee,oracle:Y,aws:nt},Qn={sts:ft,dynamodb:gt,s3:X,sqs:mt,sns:ht,lambda:ut,kinesis:pt,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ce},Zn=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Yn[r.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Yn[o.toLowerCase()];if(e)return e}const n=t["rpc.system"];if(n?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Qn[e];if(t)return t}return nt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Yn))if(i.includes(e))return t;return Be},ei=({namespace:e,name:t,kind:r})=>({namespace:e,name:t,kind:r});function ti(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ri=(e,t)=>{const r=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=ti(t.fields,{}),n=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==n&&r.push(...e.items[n].fields.map(e=>({...e,initialValue:o[e.name]})))}return r},oi=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Vr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1},ni=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ii=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ai=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},si=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},li=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ci=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,di=e=>ci.test(e),pi=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",ui=e=>e?.map(({status:e,type:t,reason:r,message:o})=>({status:e?.toLowerCase(),type:pi(t),reason:r?pi(r):"",message:o}))||[],hi=(e,t)=>{const r=ti(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},mi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>vo[e]):[],gi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>vo[e]):[],fi=e=>e.replace(/[^\d]/g,""),yi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},xi=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},bi=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(r);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},vi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const o=e[r];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>vi(e)))}else if("object"==typeof o&&null!==o){const e=vi(o);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(o)||(t[r]=o)}),t},$i=(e,t=2)=>JSON.stringify(e||{},null,t),wi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Si=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),ki=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)},Ci=o.div`
180
+ color: ${({$color:e,theme:t})=>e||t.text.secondary};
181
+ font-size: ${({$size:e})=>void 0!==e?e:16}px;
182
+ font-weight: ${({$weight:e})=>void 0!==e?e:300};
183
+ text-align: ${({$align:e})=>e||"left"};
184
+ opacity: ${({$opacity:e})=>void 0!==e?e:1};
185
+ text-decoration: ${({$decoration:e})=>e||"none"};
186
+ text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
187
+ font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
188
+ white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
189
+ text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
190
+ `,Ei=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,o]=e.split('"');return{original:e,href:r,label:o.replace("</a>","").replace(">","")}})},Ai=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Di=(r,o)=>{const n=Ei(r);n?.forEach((e,t)=>{r=r.replace(e.original,`LINK-${t}###`)});const i=Ai(r);i?.forEach((e,t)=>{r=r.replace(e.original,`STRONG-${t}###`)});return r.split(" ").map(r=>{if(r.includes("LINK-")){const[i,a]=r.split("###"),s=n?.[parseInt(i.replace("LINK-",""))];return t(Wt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},r)}if(r.includes("STRONG-")){const[o,n]=r.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Wt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),n?`${n} `:" "]},r)}return r+" "})},Ti=({children:r,color:o,size:n,weight:a,align:s,family:l,opacity:c,decoration:d,transform:p,nowrap:u,...h})=>{const m=i(),g=Gt(()=>(r?["string","number"].includes(typeof r)?r.toString():Array.isArray(r)?r.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[r]);return e(Ci,{$color:o,$size:n,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:p,$nowrap:u,...h,children:g.length?g.map((r,o)=>t(Wt,{children:[Di(r,m),o!==g.length-1?e("br",{}):null]},`text-${o}-${r}`)):r})},Ii=o.div`
191
+ padding: 4px 0 0 0;
192
+ `,Ni=o(Ti)`
193
+ font-size: 12px;
194
+ color: ${({theme:e})=>e.text.error};
195
+ `,Ri=({children:t})=>e(Ii,{children:e(Ni,{children:t})}),Oi=o.div`
196
+ position: relative;
197
+ width: 100%;
198
+ `,_i=o.div`
199
+ width: calc(100% - 16px);
200
+ display: flex;
201
+ align-items: center;
202
+ height: 36px;
203
+ gap: 8px;
204
+ padding-left: 12px;
205
+ transition: border-color 0.3s;
206
+ border-radius: 32px;
207
+ border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
208
+
209
+ &:hover {
210
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
211
+ }
212
+ &:focus-within {
213
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
214
+ }
215
+ `,Pi=o.input`
216
+ flex: 1;
217
+ border: none;
218
+ outline: none;
219
+ background: none;
220
+ color: ${({theme:e})=>e.text.secondary};
221
+ font-size: 14px;
222
+ font-family: ${({theme:e})=>e.font_family.primary};
223
+ font-weight: 300;
224
+ &::placeholder {
225
+ color: ${({theme:e})=>e.text.secondary};
226
+ font-family: ${({theme:e})=>e.font_family.primary};
227
+ opacity: 0.4;
228
+ font-size: 14px;
229
+ font-weight: 300;
230
+ line-height: 22px;
231
+ }
232
+
233
+ &:disabled {
234
+ cursor: not-allowed;
235
+ }
236
+ `,Fi=o.ul`
237
+ position: absolute;
238
+ max-height: 500px;
239
+ top: 32px;
240
+ border-radius: 24px;
241
+ width: calc(100% - 32px);
242
+ overflow-y: auto;
243
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
244
+ border: 1px solid ${({theme:e})=>e.colors.border};
245
+ z-index: 9999;
246
+ padding: 12px;
247
+ `,Li=o.li`
248
+ width: calc(100% - 24px);
249
+ padding: 8px 12px;
250
+ cursor: ${({$isList:e})=>e?"default":"pointer"};
251
+ border-radius: 24px;
252
+ gap: 8px;
253
+ display: flex;
254
+ align-items: ${({$isList:e})=>e?"flex-start":"center"};
255
+ background: transparent;
256
+ &:hover {
257
+ background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
258
+ }
259
+ `,zi=o.div`
260
+ width: 100%;
261
+ `,Mi=o.div`
262
+ display: flex;
263
+ width: 100%;
264
+ `,Bi=o.div`
265
+ width: 1px;
266
+ height: 52px;
267
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
268
+ position: absolute;
269
+ left: 33px;
270
+ `,Ui=o.div`
271
+ display: flex;
272
+ flex-direction: column;
273
+ gap: 4px;
274
+ `,ji=o(Ti)`
275
+ flex: 1;
276
+ font-size: 14px;
277
+ `,Wi=o(Ti)`
278
+ color: ${({theme:e})=>e.text.grey};
279
+ font-size: 10px;
280
+ line-height: 150%;
281
+ `,Hi=o.ul`
282
+ padding-left: 0px;
283
+ margin: 4px 0 0 0;
284
+ list-style: none;
285
+ width: 100%;
286
+ `,Xi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const o=Xi(r.items,t);o.length&&e.push({...r,items:o})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Gi=({placeholder:r="Type to search...",options:o,selectedOption:n,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Ht(n?.label||a||""),[m,g]=Ht(Xi(o,u)),[f,y]=Ht(!1);Ht(-1),Xt(()=>g(Xi(o,u)),[o]);const x=n?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),y(!e),i?.(e)};return t(Oi,{style:l,children:[t(_i,{$hasError:!!d,children:[x&&e(x,{}),e(Pi,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Xi(o,t),n=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(n)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&y(!1),onFocus:()=>!c&&y(!0),...p})]}),f&&m.length?e(Fi,{children:m.map(t=>e(Vi,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ri,{children:d})]})},Vi=({option:r,renderIcon:o=!0,onClick:n})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Li,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:n(r),children:[a&&o&&e(a,{}),t(zi,{children:[t(Ui,{children:[e(ji,{children:r.label}),e(Wi,{children:r.description})]}),i&&e(Hi,{children:r.items?.map(r=>t(Mi,{children:[e(Bi,{}),e(Vi,{option:r,renderIcon:!1,onClick:n})]},r.type||r.label))})]})]})},Ki=Ut(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),qi=[{type:Tr.K8sAttributes,icon:Po(Tr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[go.Traces,go.Metrics,go.Logs,go.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Tr.AddClusterInfo,icon:Po(Tr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[go.Traces,go.Metrics,go.Logs,go.Profiles],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:Tr.DeleteAttributes,icon:Po(Tr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[go.Traces,go.Metrics,go.Logs,go.Profiles],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Tr.RenameAttributes,icon:Po(Tr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[go.Traces,go.Metrics,go.Logs,go.Profiles],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Tr.PiiMasking,icon:Po(Tr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Tr.URLTemplatization,icon:Po(Tr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[go.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:ki("v1.21.0")}],Ji=[{type:Tr.ErrorSampler,icon:Po(Dr.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Tr.LatencySampler,icon:Po(Dr.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Tr.ProbabilisticSampler,icon:Po(Dr.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Tr.ServiceNameSampler,icon:Po(Dr.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Tr.SpanAttributeSampler,icon:Po(Dr.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[go.Traces,go.Profiles],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Yi=[{label:"Attributes",icon:Po(Dr.Attributes),items:qi},{label:"Samplers",icon:Po(Dr.Samplers),items:Ji}];var Qi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Qi||(Qi={}));const Zi={[Qi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Qi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Qi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Qi.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Qi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Qi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ea=[{type:io.CodeAttributes,icon:qo(io.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Ur.Go,Ur.Python]},{type:io.CustomInstrumentation,icon:qo(io.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Ur.Go,Ur.Java]},{type:io.HeadersCollection,icon:qo(io.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Ur.Go,Ur.Java,Ur.JavaScript]},{type:io.PayloadCollection,icon:qo(io.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Ur.Go,Ur.JavaScript]}],ta="Cancel",ra="Save",oa="Edit rule",na="Edit auto rule",ia="Create rule",aa="Delete rule",sa="Save",la="Create your first rule",ca="No Rules Exist",da="No Results",pa=e=>`No rules match the search term "${e}"`,ua="Rule name",ha="Rule type",ma="Select the type of condition that makes a trace highly relevant.",ga="Rule Enabled",fa="Rule Disabled",ya="Enabled",xa="Disabled",ba="Note",va="HTTP route",$a="Method",wa="Keep Percentage",Sa="Drop Percentage",ka="Keep traces with duration larger than",Ca="Keep traces with errors",Ea="Keep at least this percentage of matching traces",Aa="Keep at most this percentage of matching traces",Da="Custom percentage",Ta="Disabled rule",Ia="Sample",Na="Keep all",Ra="Drop all",Oa="Operation type",_a="HTTP route prefix",Pa="Templated path",Fa="Templated path prefix",La="Kafka topic",za="Custom duration (ms)",Ma="No preview available",Ba="Server address",Ua="Drop at most this percentage of matching traces",ja="Unnamed rule",Wa="Sampling Preview",Ha="Source Scope",Xa="Operation",Ga="Duration",Va="Errors",Ka="Keep Percentage",qa="Drop Percentage",Ja="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ya="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Qa="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Za="Retain traces with errors from the selected services and operations.",es="Specify the exact percentage of matching traces to keep",ts="Specify the exact percentage of matching traces to drop",rs="Type rule name",os="Add note here...",ns="Type here",is="Search source name",as="e.g. collector.my.vendor.com",ss="Optional notes (not used by the system). Add any context or details for this sampling rule.",ls="Rule will apply to all sources in the cluster",cs="If multiple source scopes are set, they must all match simultaneously.",ds="All sources",ps="-",us="All",hs="All operations",ms="HTTP server endpoint",gs="HTTP client endpoint",fs="Kafka consumer",ys="Kafka producer",xs="Sampling Rules",bs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',vs="Refresh",$s="Create rule",ws="Sampling docs",Ss="75vw",ks="Delete rule?",Cs="Are you sure you want to delete this sampling rule?",Es="Delete",As="Cancel",Ds="Kubernetes Health Probes",Ts="Keep All Error Traces",Is="Drop Traces Cluster-Wide",Ns="A rule with the same matching conditions already exists.",Rs="Create 'Noisy Operation Kubernetes Health Probes' rule",Os="Edit 'Noisy Operation Kubernetes Health Probes' rule",_s="Automatically detect and sample health probe traces across the cluster.",Ps="Create 'Highly Relevant Operations' rule",Fs="Edit 'Highly Relevant Operations' rule",Ls="Automatically keep all error traces across the entire cluster.",zs="Create 'Cost Reduction' rule",Ms="Edit 'Cost Reduction' rule",Bs="Automatically drop a percentage of traces across the entire cluster.",Us="Skip setup",js="Start setup",Ws="Next",Hs="Go to Sampling",Xs="Read more",Gs="Welcome to Sampling",Vs="Cut costs without losing what matters",Ks="Odigos sampling works in three stages:",qs="Filter noisy traffic",Js="Remove non-actionable traces like health checks.",Ys="Guarantee highly relevance operations",Qs="Keep traces with errors, high latency, or mission-critical endpoints/services.",Zs="Reduce cost",el="Sample routine traffic using percentages.",tl="Sampling does not drop individual spans - it keeps or drops the entire trace.",rl="Filter noisy operations",ol="Cut traces with little or no observability value (health-checks, metric scarping, etc)",nl="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",il="Preset Rules",al="Kubernetes Health Probes",sl="Automatically ignore health checks",ll="You can review, adjust, and add additional custom rules later.",cl="Choose your sampling strategy",dl="Pick the approach that best fits your balance of cost vs data-completeness",pl="Keep List",ul="Budget Friendly",hl="Define which traces must be kept, while all others are sampled by default to minimize cost.",ml="Cost-oriented - keeps only what you explicitly select.",gl="Best for very large clusters with high volumes of traces and high costs.",fl="Higher risk of missing important traces without ongoing review.",yl="Drop List",xl="Safe Choice",bl="Define which traces must be aggressively dropped, while all others are kept by default.",vl="Preserves most data unless explicitly filtered.",$l="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",wl="Advanced",Sl="Maximum Flexibility",kl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Cl="'Keep List' profile",El="Protect important traces",Al="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Dl="Traces with errors",Tl="Slow requests (duration above threshold)",Il="Mission-Critical endpoints or services",Nl="Services under test or evaluation",Rl="New deployments",Ol="You can review, adjust, and add rules once onboarding is complete.",_l="Common Rules",Pl="Preset Rules",Fl="Error collection - entire cluster",Ll="Keep all traces with errors",zl="Ambient sampling percentage",Ml="'Drop List' profile",Bl="Reduce high-volume traffic",Ul="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",jl="Advanced Configuration",Wl="Configure sampling rules",Hl="Advanced mode allows you to configure all sampling categories:",Xl="Noise Filtering - remove non-actionable traces",Gl="Highly Relevance - guarantee important traces are kept",Vl='Cost Control - drop traces for "Normal" operations',Kl="Rules can target:",ql="Services",Jl="HTTP Endpoints",Yl="DB Operations",Ql="Errors",Zl="Latency and more...",ec="Sampling configured successfully!",tc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",rc="Odigos will now:",oc="Filter noisy operations",nc="Guarantee important traces",ic="Reduce cost using controlled sampling",ac="Recommended",sc={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},lc={noisy:Rs,highlyRelevant:Ps,costReduction:zs},cc={noisy:Os,highlyRelevant:Fs,costReduction:Ms},dc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},pc=[{id:go.Logs,value:"Logs"},{id:go.Metrics,value:"Metrics"},{id:go.Traces,value:"Traces"},{id:go.Profiles,value:"Profiles"}],uc={[Ur.Go]:"Go",[Ur.Java]:"Java",[Ur.JavaScript]:"Node.js",[Ur.Python]:"Python",[Ur.DotNet]:".NET",[Ur.CSharp]:"C#",[Ur.CPlusPlus]:"C++",[Ur.Php]:"PHP",[Ur.Ruby]:"Ruby",[Ur.Rust]:"Rust",[Ur.Swift]:"Swift",[Ur.Elixir]:"Elixir",[Ur.MySql]:"MySQL",[Ur.Nginx]:"Nginx",[Ur.Postgres]:"PostgreSQL",[Ur.Redis]:"Redis",[Ur.Kafka]:"Kafka",[Ur.Ignored]:"Ignored",[Ur.Unknown]:"Unknown",[Ur.Processing]:"Processing",[Ur.NoContainers]:"No Containers",[Ur.NoRunningPods]:"No Running Pods"},hc=[{id:Ur.Go,value:uc[Ur.Go],icon:zo(Ur.Go)},{id:Ur.Java,value:uc[Ur.Java],icon:zo(Ur.Java)},{id:Ur.JavaScript,value:uc[Ur.JavaScript],icon:zo(Ur.JavaScript)},{id:Ur.Python,value:uc[Ur.Python],icon:zo(Ur.Python)},{id:Ur.Php,value:uc[Ur.Php],icon:zo(Ur.Php)},{id:Ur.Ruby,value:uc[Ur.Ruby],icon:zo(Ur.Ruby)},{id:Ur.Rust,value:uc[Ur.Rust],icon:zo(Ur.Rust)},{id:Ur.DotNet,value:uc[Ur.DotNet],icon:zo(Ur.DotNet)},{id:Ur.CSharp,value:uc[Ur.CSharp],icon:zo(Ur.CSharp)},{id:Ur.CPlusPlus,value:uc[Ur.CPlusPlus],icon:zo(Ur.CPlusPlus)},{id:Ur.Swift,value:uc[Ur.Swift],icon:zo(Ur.Swift)},{id:Ur.Elixir,value:uc[Ur.Elixir],icon:zo(Ur.Elixir)}],mc={id:oo.OpentelemetryEbpfInstrumentation,value:oo.OpentelemetryEbpfInstrumentation,icon:J},gc={[Ur.Go]:{community:[{id:oo.GolangCommunity,value:oo.GolangCommunity,icon:zo(Ur.Go)},mc],enterprise:[{id:oo.GolangEnterprise,value:oo.GolangEnterprise,icon:zo(Ur.Go)}]},[Ur.JavaScript]:{community:[{id:oo.NodejsCommunity,value:oo.NodejsCommunity,icon:zo(Ur.JavaScript)},mc],enterprise:[{id:oo.NodejsEnterprise,value:oo.NodejsEnterprise,icon:zo(Ur.JavaScript)}]},[Ur.Python]:{community:[{id:oo.PythonCommunity,value:oo.PythonCommunity,icon:zo(Ur.Python)},mc],enterprise:[{id:oo.PythonEnterprise,value:oo.PythonEnterprise,icon:zo(Ur.Python)}]},[Ur.Java]:{community:[{id:oo.JavaCommunity,value:oo.JavaCommunity,icon:zo(Ur.Java)},mc],enterprise:[{id:oo.JavaEnterprise,value:oo.JavaEnterprise,icon:zo(Ur.Java)},{id:oo.JavaEbpfInstrumentations,value:oo.JavaEbpfInstrumentations,icon:zo(Ur.Java)}]},[Ur.DotNet]:{community:[{id:oo.DotNetCommunity,value:oo.DotNetCommunity,icon:zo(Ur.DotNet)},mc],enterprise:[{id:oo.DotNetEnterprise,value:oo.DotNetEnterprise,icon:zo(Ur.DotNet)}]},[Ur.Ruby]:{community:[{id:oo.RubyCommunity,value:oo.RubyCommunity,icon:zo(Ur.Ruby)},mc],enterprise:[{id:oo.RubyEnterprise,value:oo.RubyEnterprise,icon:zo(Ur.Ruby)}]},[Ur.Php]:{community:[{id:oo.PhpCommunity,value:oo.PhpCommunity,icon:zo(Ur.Php)},mc],enterprise:[]},[Ur.CSharp]:{community:[],enterprise:[{id:oo.CPlusPlusEnterprise,value:oo.CPlusPlusEnterprise,icon:zo(Ur.CSharp)}]},[Ur.MySql]:{community:[],enterprise:[{id:oo.MySqlEnterprise,value:oo.MySqlEnterprise,icon:zo(Ur.MySql)}]},[Ur.CPlusPlus]:{community:[mc],enterprise:[]},[Ur.Rust]:{community:[mc],enterprise:[]},[Ur.Swift]:{community:[mc],enterprise:[]},[Ur.Elixir]:{community:[mc],enterprise:[]},[Ur.Nginx]:{community:[mc],enterprise:[]},[Ur.Postgres]:{community:[mc],enterprise:[]},[Ur.Redis]:{community:[mc],enterprise:[]},[Ur.Kafka]:{community:[mc],enterprise:[]},[Ur.Ignored]:{community:[],enterprise:[]},[Ur.Unknown]:{community:[],enterprise:[]},[Ur.Processing]:{community:[],enterprise:[]},[Ur.NoContainers]:{community:[],enterprise:[]},[Ur.NoRunningPods]:{community:[],enterprise:[]}},fc=6048e5,yc=Ut()(er(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Eo.DARK_MODE,storage:"undefined"!=typeof window?tr(()=>localStorage):void 0})),xc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:So},bc=Ut(e=>({...xc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(xc)})),vc=Ut(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),$c=Ut(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const o=t===Wr.Namespace?"namespacesLoading":t===Wr.Source?"sourcesLoading":t===Wr.Destination?"destinationsLoading":t===Wr.Action?"actionsLoading":t===Wr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:r})},setEntities:(t,r)=>{const o=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:r})},addEntities:(t,r)=>{const o=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],n=new Map;return t.forEach((e,t)=>{n.set(Go(e),t)}),r.forEach(e=>{const r=Go(e),o=n.get(r);void 0!==o?t[o]={...t[o],...e}:(n.set(r,t.length),t.push(e))}),{[o]:t}})},removeEntities:(t,r)=>{const o=t===Wr.Namespace?"namespaces":t===Wr.Source?"sources":t===Wr.Destination?"destinations":t===Wr.Action?"actions":t===Wr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(r.map(e=>Xo(e))),n=e[o].filter(e=>!t.has(Go(e)));return{[o]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),wc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Sc=Ut(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:wc})),kc=Ut(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Cc=Ut((e,t)=>({notifications:[],addNotification:r=>{const o=new Date,n=`${o.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:n,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Ec;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Ec||(Ec={}));const Ac=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Dc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Tc=Ut((e,t)=>({progress:{},setProgress:(r,o)=>{const n=t(),i=Ac();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...n.progress,[r]:Dc(i)}})},addProgress:(r,o,n)=>{const i=t(),a=Ac(r,i.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...i.progress,[r]:Dc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ic=Ut(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Nc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Rc=(e,t)=>e.destinationType.type!==t.destinationType.type,Oc=Ut(e=>({...Nc,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=>Rc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Rc(e,t))})),clearStore:()=>e(()=>({...Nc}))})),_c={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Pc={v2:_c.v2,darkMode:!0,colors:{..._c.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:_c.font_family},Fc={v2:_c.v2,darkMode:!1,colors:{..._c.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:_c.font_family},Lc=e=>e?Pc:Fc;var zc=Object.freeze({__proto__:null,baseTheme:_c,darkModeTheme:Pc,getTheme:Lc,lightModeTheme:Fc});rr('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const Mc=({children:t})=>{const{darkMode:r}=yc();return e(s,{theme:Lc(r),children:t})},Bc={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 Uc=Object.freeze({__proto__:null,hex:Bc});const jc={in:{left:a`
287
+ from { transform: translateX(-100%); }
288
+ to { transform: translateX(0); }
289
+ `,right:a`
290
+ from { transform: translateX(100%); }
291
+ to { transform: translateX(0); }
292
+ `,top:a`
293
+ from { transform: translateY(-100%); }
294
+ to { transform: translateY(0); }
295
+ `,bottom:a`
296
+ from { transform: translateY(100%); }
297
+ to { transform: translateY(0); }
298
+ `,center:a`
299
+ from { transform: translate(-50%, 100%); }
300
+ to { transform: translate(-50%, -50%); }
301
+ `},out:{left:a`
302
+ from { transform: translateX(0); }
303
+ to { transform: translateX(-100%); }
304
+ `,right:a`
305
+ from { transform: translateX(0); }
306
+ to { transform: translateX(100%); }
307
+ `,top:a`
308
+ from { transform: translateY(0); }
309
+ to { transform: translateY(-100%); }
310
+ `,bottom:a`
311
+ from { transform: translateY(0); }
312
+ to { transform: translateY(100%); }
313
+ `,center:a`
314
+ from { transform: translate(-50%, -50%); }
315
+ to { transform: translate(-50%, 100%); }
316
+ `}},Wc={in:a`
317
+ from {
318
+ width: 0%;
319
+ }
320
+ to {
321
+ width: 100%;
322
+ }
323
+ `,out:a`
324
+ from {
325
+ width: 100%;
326
+ }
327
+ to {
328
+ width: 0%;
329
+ }
330
+ `},Hc=a`
331
+ 0% {
332
+ transform: scale(1);
333
+ opacity: 1;
334
+ }
335
+ 75%, 100% {
336
+ transform: scale(2);
337
+ opacity: 0;
338
+ }
339
+ `,Xc=a`
340
+ 0% {
341
+ background-position: -500px 0;
342
+ }
343
+ 100% {
344
+ background-position: 500px 0;
345
+ }
346
+ `,Gc={in:a`
347
+ from {
348
+ opacity: 0;
349
+ }
350
+ to {
351
+ opacity: 1;
352
+ }
353
+ `,out:a`
354
+ from {
355
+ opacity: 1;
356
+ }
357
+ to {
358
+ opacity: 0;
359
+ }
360
+ `};var Vc=Object.freeze({__proto__:null,fade:Gc,ping:Hc,progress:Wc,shimmer:Xc,slide:jc});const Kc=o.span`
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+
365
+ min-height: 16px;
366
+ min-width: 16px;
367
+ width: fit-content;
368
+ padding: 4px;
369
+ gap: 2px;
370
+
371
+ border-radius: 50px;
372
+ border: 1px solid ${({theme:e,$filled:t,$status:r})=>r?e.text[r]+(t?"":Bc["050"]):t?"transparent":e.colors.border};
373
+ background-color: ${({theme:e,$filled:t,$status:r})=>t?r?e.colors[r]:e.colors.majestic_blue:"transparent"};
374
+ color: ${({theme:e,$filled:t,$status:r})=>t&&r?e.text.secondary:t?e.text.white:r?e.text[r]:e.text.grey};
375
+ font-family: ${({theme:e})=>e.font_family.secondary};
376
+ font-size: 12px;
377
+ white-space: nowrap;
378
+
379
+ ${({theme:e,$filled:t,$status:r,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${r?e.colors[r]+Bc["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Bc["020"]};\n }`}
380
+ `,qc=({label:r,filled:o,status:n,withIcon:a,onClick:s})=>{const l=i(),c=n&&a?Kn(n,l):null;return t(Kc,{$filled:o,$status:n,$clickable:!!s,onClick:s,children:[!!c&&e(c,{}),r]})},Jc=o.div`
381
+ height: fit-content;
382
+ border: 2px solid transparent;
383
+ padding: 2px;
384
+ border-radius: 32px;
385
+ background-color: transparent;
386
+ transition: border-color 0.3s ease;
387
+ &:focus-within {
388
+ border-color: ${({theme:e})=>e.colors.secondary};
389
+ }
390
+ `,Yc={primary:n`
391
+ border: 1px solid ${({theme:e})=>e.text.secondary+Bc["024"]};
392
+ background: ${({theme:e})=>e.colors.secondary};
393
+ color: ${({theme:e})=>e.colors.primary};
394
+ &:hover {
395
+ background: ${({theme:e})=>e.colors.secondary+Bc["080"]};
396
+ }
397
+ &:active {
398
+ background: ${({theme:e})=>e.text.secondary+Bc["060"]};
399
+ }
400
+ `,secondary:n`
401
+ border: 1px solid ${({theme:e})=>e.colors.border};
402
+ background: ${({theme:e})=>e.colors.primary};
403
+ color: ${({theme:e})=>e.colors.secondary};
404
+ &:hover {
405
+ border: 1px solid ${({theme:e})=>e.text.darker_grey};
406
+ background: ${({theme:e})=>e.colors.secondary+Bc["010"]};
407
+ }
408
+ &:active {
409
+ border: 1px solid ${({theme:e})=>e.text.dark_grey};
410
+ background: ${({theme:e})=>e.colors.secondary+Bc["015"]};
411
+ }
412
+ `,tertiary:n`
413
+ border-color: transparent;
414
+ background: transparent;
415
+ &:hover {
416
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+Bc["040"]};
417
+ }
418
+ &:active {
419
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
420
+ }
421
+ `,danger:n`
422
+ border-color: transparent;
423
+ background: ${({theme:e})=>e.text.error};
424
+ &:hover {
425
+ background: ${({theme:e})=>e.text.error+Bc["090"]};
426
+ }
427
+ &:active {
428
+ background: ${({theme:e})=>e.text.error+Bc["080"]};
429
+ }
430
+ `,warning:n`
431
+ border-color: transparent;
432
+ background: ${({theme:e})=>e.text.warning};
433
+ &:hover {
434
+ background: ${({theme:e})=>e.text.warning+Bc["090"]};
435
+ }
436
+ &:active {
437
+ background: ${({theme:e})=>e.text.warning+Bc["080"]};
438
+ }
439
+ `},Qc=o.button`
440
+ height: 36px;
441
+ border-radius: 32px;
442
+ cursor: pointer;
443
+ display: flex;
444
+ align-items: center;
445
+ justify-content: center;
446
+ gap: 8px;
447
+ padding: 0 12px;
448
+ font-family: ${({theme:e})=>e.font_family.secondary};
449
+ text-transform: uppercase;
450
+ text-decoration: underline;
451
+ font-weight: 600;
452
+ outline: none;
453
+ ${({$variant:e})=>e&&Yc[e]}
454
+ ${({disabled:e,$variant:t})=>e&&n`
455
+ opacity: 0.5;
456
+ cursor: not-allowed;
457
+
458
+ ${"primary"===t?n`
459
+ color: ${({theme:e})=>e.colors.secondary};
460
+ background: ${({theme:e})=>e.text.secondary+Bc["010"]};
461
+ &:hover {
462
+ background: ${({theme:e})=>e.text.secondary+Bc["015"]};
463
+ }
464
+ `:""}
465
+ `}
466
+ `,Zc=({children:t,variant:r="primary",onClick:o,...n})=>{const i=Vt(null);return e(Jc,{$variant:r,children:e(Qc,{ref:i,$variant:r,onClick:e=>{o&&o(e),i.current?.blur()},...n,children:t})})},ed=e=>{function t(){return void 0===e?{}:wr(e)}const[r,o]=Ht(t()),[n,i]=Ht({}),[a,s]=Ht(t()),l=Kt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(r[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const o=l(n,t[e]);Object.keys(o).length>0&&(r[e]=o)}else n!==t[e]&&(r[e]=t[e])}for(const o of Object.keys(t))o in e||(r[o]=t[o]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Gt(()=>!c(a,r),[a,r]);Xt(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(n)&&(o(n),s(n))},[e,r]);const p=Kt((e,t)=>Sr("formData"===e?r:n,t.toString()),[r,n]);return{formData:r,formErrors:n,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const o=wr(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&o({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const o=wr(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&i({...r})},resetFormData:e=>{const r=e||t();o(r),s(r),i({})},getNestedValue:p}},td={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},rd=()=>{const{addNotification:e}=Cc(),{formData:t,formErrors:r,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ed(td),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:r,handleFormChange:o,resetFormData:i,validateForm:r=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ni(t)&&(o[e]=Ao.FIELD_IS_REQUIRED)}}),t.type===Tr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Ao.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&r?.withAlert&&e({type:Vr.Warning,title:r.alertTitle,message:Ao.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:n,disabled:i,fields:s})=>{const l={...wr(td),type:e,signals:t,name:r,notes:n,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Ir.LabelsAttributes:case Ir.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Ir.CollectContainerAttributes:case Ir.CollectReplicaSetAttributes:case Ir.CollectWorkloadId:case Ir.CollectClusterId:case Ir.ClusterAttributes:case Ir.OverwriteExistingValues:case Ir.AttributeNamesToDelete:case Ir.Renames:case Ir.PiiCategories:case Ir.FallbackSamplingRatio:case Ir.SamplingPercentage:case Ir.EndpointsFilters:case Ir.ServicesNameFilters:case Ir.AttributeFilters:case Ir.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},od=e=>{Xt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},nd=()=>{const{setCurrentModal:e}=kc(),{setDrawerType:t,setDrawerEntityId:r}=vc(),{setActiveNodeType:o,setActiveNodeId:n,activeNodeId:i}=Ki();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(o(null),n(null)):(o(c),n(l)),p){case Wr.Source:case Wr.Destination:case Wr.Action:case Wr.InstrumentationRule:t(p),r(d);break;case eo.AddSource:e(Wr.Source);break;case eo.AddDestination:e(Wr.Destination);break;case eo.AddAction:e(Wr.Action);break;case eo.AddRule:e(Wr.InstrumentationRule)}}}},id=()=>{const{setDrawerType:e,setDrawerEntityId:t}=vc(),{markAsDismissed:r,markAsSeen:o}=Cc();return{onClickNotification:(n,i)=>{const{id:a,crdType:s,target:l}=n,{dismissToast:c}=i||{};if(s&&l)switch(s){case Wr.InstrumentationRule:e(Wr.InstrumentationRule),t(Ko(l,Wr.InstrumentationRule));break;case Wr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Wr.Source),t(Ko(l,Wr.Source));break;case Wr.Action:e(Wr.Action),t(Ko(l,Wr.Action));break;case Wr.Destination:case"Destination":e(Wr.Destination),t(Ko(l,Wr.Destination))}o(a),c&&r(a)}}},ad=()=>{const e=Vt(null),[t,r]=Ht(0),[o,n]=Ht(0);return Xt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();r(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var sd;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(sd||(sd={}));const ld=o.div`
467
+ width: ${({$size:e})=>1.5*e}px;
468
+ height: ${({$size:e})=>1.5*e}px;
469
+ display: flex;
470
+ align-items: center;
471
+ justify-content: center;
472
+ border-radius: 100%;
473
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
474
+ &:hover {
475
+ background: ${({theme:e})=>e.v2.colors.silver[900]};
476
+ }
477
+ `,cd=({"data-id":t,icon:r,size:o=sd.S,onClick:n,disabled:i})=>e(ld,{"data-id":t,$size:o,$disabled:i,onClick:e=>{n&&!i&&(e.stopPropagation(),n(e))},children:e(r,{size:o})}),dd=({onDone:t}={})=>{const[r,o]=Ht(!1),[n,i]=Ht(-1),a=Kt(async(e,n)=>{if(!r){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Kt(({value:t,size:o})=>e(cd,{icon:r?yt:xt,size:o,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:n,clickCopy:a}},pd=e=>{const{addNotification:t}=Cc(),{formData:r,handleFormChange:o,formErrors:n,handleErrorChange:i,resetFormData:a}=ed(e);return{formData:r,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return r.name?ii(r.name)?o.name=void 0:(n=!1,o.name=Ao.ILLEGAL_K8S_LABEL):(n=!1,o.name=Ao.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Vr.Warning,title:e.alertTitle,message:Ao.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const r={...wr(e),name:t};o(void 0,void 0,r)}}},ud={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},hd=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:o}=Cc(),{formData:n,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=ed(ud),[c,d]=Ht([]),[p,u]=Ht([]);Xt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e;if(r===Xr.Dropdown){const e=ti(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:n,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:n,value:i,renderCondition:a,...ti(o,{})}})).map(e=>{if(r){const t="string"==typeof r?ti(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Xt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Xt(()=>{if(t&&0===mi(n.exportedSignals).length){const{logs:e,metrics:r,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:o.supported})}},[t,n.exportedSignals]);return{formData:n,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:o,required:n})=>{n&&!o&&(r=!1,t[e]=Ao.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&o({type:Vr.Warning,title:e.alertTitle,message:Ao.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:o,fields:n})=>{const i={...wr(ud),type:e,name:t,disabled:r,exportedSignals:o,fields:Object.entries(ti(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},md={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[co.HttpRequest]:null,[co.HttpResponse]:null,[co.DbQuery]:null,[co.Messaging]:null},codeAttributes:{[ao.Column]:null,[ao.FilePath]:null,[ao.Function]:null,[ao.LineNumber]:null,[ao.Namespace]:null,[ao.StackTrace]:null},headersCollection:null,customInstrumentations:{[lo.Java]:null,[lo.Golang]:null}},gd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=ed(md);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:n,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...wr(md),ruleName:e,notes:t,disabled:o};n&&(l.payloadCollection={[co.HttpRequest]:n[co.HttpRequest]?{}:null,[co.HttpResponse]:n[co.HttpResponse]?{}:null,[co.DbQuery]:n[co.DbQuery]?{}:null,[co.Messaging]:n[co.Messaging]?{}:null}),i&&(l.codeAttributes={[ao.Column]:i[ao.Column]||null,[ao.FilePath]:i[ao.FilePath]||null,[ao.Function]:i[ao.Function]||null,[ao.LineNumber]:i[ao.LineNumber]||null,[ao.Namespace]:i[ao.Namespace]||null,[ao.StackTrace]:i[ao.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[lo.Java]:s[lo.Java]||null,[lo.Golang]:s[lo.Golang]||null}),r(void 0,void 0,l)}}},fd=({active:e,key:t,withAltKey:r,withCtrlKey:o,withShiftKey:n,withMetaKey:i},a)=>(Xt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,o,n,i,a]),null),yd="data-ignore-outside-click",xd=(e,t)=>{const r=Vt(t);r.current=t,Xt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(yd))return!0;t=t.parentNode}return!1})(o)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},bd=({sectionNames:e,threshold:t=.4})=>{const[r,o]=Ht(e[0]||""),[n,i]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),c=Kt((e,t)=>{a.current[e]=t},[]),d=Kt(e=>{i(e)},[]),p=Kt(e=>{l.current=!0,o(e)},[]);return Xt(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),Xt(()=>{const r=a.current,i=e.map(e=>r[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,n]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},vd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:o="local"}={})=>{const n=Vt(null),[i,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[c,d]=Ht({edge:"top",align:"left"});xd(n,()=>{i&&(a(!1),r?.())});return{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===o)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=n.current?.clientWidth||t,p=n.current?.clientHeight||e,u=r/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let m=i,g=r;if(m>=s/2&&(m+=-p),"center"===h){g=r-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=r-c);l({top:m,left:g})}}},$d=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ti(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wd={otelServiceName:"",currentStreamName:""},Sd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=ed(wd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...wr(wd),otelServiceName:e||t||""};r(void 0,void 0,o)}}},kd=Jt({platformType:Mr.K8s,tier:zr.Community,version:"v0.0.0"}),Cd=({children:t,platformType:r,tier:o,version:n})=>{const i=Gt(()=>({platformType:r,tier:o,version:n}),[r,o,n]);return e(kd.Provider,{value:i,children:t})},Ed=(e,t)=>!t||ki(e)>=ki(t),Ad=e=>{const t=qt(kd),r=Ed(t.version,e),o=t.platformType===Mr.Vm;return{...t,isVersionSupported:r,isVm:o,isEnterprise:t.tier===zr.Onprem}},Dd=new Set([ro.StaticPod]),Td=e=>{const t=e.workloads.filter(({selected:e})=>e).length,r=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===r,isSomeSourced:t>0&&t<r,isFutureApps:e.selected||!1}},Id=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:o}=Td(e);return t||r||o}return!0},Nd=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),Rd=(e,t,r)=>{const o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,n=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!o||n)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},Od=(e,t,r)=>({...Rd(e,t),currentStreamName:t}),_d=(e,t,r)=>{const o="boolean"==typeof r,n=e.dataStreamNames?.includes(t),i=(o?r:e.selected)||!1;return{namespace:e.name,selected:!(!n&&!o)&&i,currentStreamName:t}},Pd=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Ad(),o=e=>r!==zr.Onprem&&Dd.has(e),{selectedStreamName:n}=bc(),{namespaces:i,addEntities:a}=$c(),[s,l]=Ht(!1),[c,d]=Ht({}),[p,u]=Ht(!1),[h,m]=Ht(""),[g,f]=Ht({}),[y,x]=Ht({}),[b,v]=Ht(""),[$,w]=Ht(Wr.Source),[S,k]=Ht(!1),[C,E]=Ht(!1),A=Gt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(y).filter(([t])=>e(t,Wr.Namespace)).forEach(([r,o])=>{const n=o.filter(t=>{return e(t.name,Wr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===Wr.Namespace||$===Wr.Source&&n.length))&&(t[r]=n)}),t},[y,b,$,S,C]);return Xt(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const o=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of o){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>Rd(e,n)),s[e.name]=t.map(e=>Od(e,n)),c[e.name]=_d(e,n)}a(Wr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=Oc.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const r=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==r&&(s[e][r]={...s[e][r],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(i),x(s),f(c)})()},[n]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(y).forEach(([t,r])=>{r.forEach(r=>{const o=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);o?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const o=i?.find(e=>e.name===t);(r.selected&&!o?.dataStreamNames?.includes(n)||!r.selected&&o?.dataStreamNames?.includes(n))&&(e[t]=r)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(i.find(t=>t.name===e)){const r="boolean"==typeof t;m(t=>t!==e||r?e:""),r&&(x(r=>({...r,[e]:(r[e]||[]).map(e=>t&&o(e.kind)?e:{...e,selected:t,currentStreamName:n})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),x(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&o(t.kind)?t:{...t,selected:e,currentStreamName:n});return r})},selectedSources:y,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(o(e.kind))return;const i=[...y[r]||[]],a=i.findIndex(({name:t,kind:r})=>t===e.name&&r===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});x(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const o=i.find(e=>e.name===t);o&&f(t=>({...t,[r]:_d(o,n,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Zt.addDefaultLocale(or)}catch(e){}const Fd=()=>{const e=Vt(new Zt(or.locale));return{formatTimeAgo:Kt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Ld=o.div`
478
+ position: fixed;
479
+ top: 50%;
480
+ left: 50%;
481
+ transform: translate(-50%, -50%);
482
+ z-index: 1000;
483
+ width: fit-content;
484
+ background: ${({theme:e})=>e.colors.translucent_bg};
485
+ border: ${({theme:e})=>`1px solid ${e.colors.border}`};
486
+ border-radius: 40px;
487
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+Bc["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
488
+ animation-name: ${jc.in.center};
489
+ `,zd=o.div`
490
+ display: flex;
491
+ justify-content: space-between;
492
+ align-items: center;
493
+ height: 80px;
494
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
495
+ padding: 0 24px;
496
+ `,Md=o.div`
497
+ cursor: pointer;
498
+ display: flex;
499
+ align-items: center;
500
+ gap: 8px;
501
+ `,Bd=o.div`
502
+ display: flex;
503
+ align-items: center;
504
+ gap: 8px;
505
+ `,Ud=o(Ln)`
506
+ min-width: 350px;
507
+ min-height: 150px;
508
+ `,jd=o.div`
509
+ position: absolute;
510
+ left: 50%;
511
+ transform: translateX(-50%);
512
+ display: flex;
513
+ align-items: center;
514
+ justify-content: center;
515
+ width: 100%;
516
+ pointer-events: none;
517
+ `,Wd=o(Ti)`
518
+ text-transform: uppercase;
519
+ font-family: ${({theme:e})=>e.font_family.secondary};
520
+ pointer-events: auto;
521
+ `,Hd=o(Ti)`
522
+ text-transform: uppercase;
523
+ font-weight: 500;
524
+ font-size: 14px;
525
+ font-family: ${({theme:e})=>e.font_family.secondary};
526
+ text-decoration: underline;
527
+ cursor: pointer;
528
+ `,Xd=({isOpen:o,noOverlay:n,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(fd({key:"Escape",active:o&&c},()=>s()),od(o),o?pr.createPortal(t(r,{children:[e(Mn,{hidden:!o,onClick:s,style:{opacity:n?0:1}}),t(Ld,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(zd,{children:[t(Md,{onClick:s,children:[e(bt,{}),e(Hd,{children:"Cancel"})]}),e(jd,{children:e(Wd,{children:i.title})}),e(Bd,{children:a})]}),e(Ud,{children:l})]})]}),document.body):null),Gd=o.div`
529
+ width: ${({$orientation:e,$thickness:t,$length:r})=>"vertical"===e?`${t}px`:r||"100%"};
530
+ height: ${({$orientation:e,$thickness:t,$length:r})=>"horizontal"===e?`${t}px`:r||"100%"};
531
+ margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
532
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Bc["050"]};
533
+ opacity: ${({$opacity:e})=>e||1};
534
+ `,Vd=({orientation:t="horizontal",type:r,thickness:o=1,length:n,margin:i,opacity:a})=>e(Gd,{$orientation:t,$type:r,$thickness:o,$length:n,$margin:i,$opacity:a}),Kd=o.div`
535
+ /* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
536
+ position: ${({$asPortal:e})=>e?"fixed":"absolute"};
537
+ ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
538
+ ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
539
+ ${({$left:e})=>void 0!==e&&`left: ${e}px;`}
540
+ ${({$right:e})=>void 0!==e&&`right: ${e}px;`}
541
+ z-index: 9999;
542
+
543
+ background-color: ${({theme:e})=>e.colors.info};
544
+ border: 1px solid ${({theme:e})=>e.colors.border};
545
+ border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
546
+ max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
547
+ width: ${({$width:e})=>void 0!==e?e:"unset"};
548
+
549
+ ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
550
+ `,qd=o.div`
551
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
552
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
553
+ `,Jd=o.div`
554
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
555
+ `,Yd=o.div`
556
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
557
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
558
+ `,Qd=jt(({isOpen:r,asPortal:o,...n},i)=>{const a=Gt(()=>{const{children:r,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:p,maxWidth:u,width:h,header:m,footer:g,withPointerEvents:f,...y}=n;return t(Kd,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[m&&e(qd,{$padding:p,children:m}),e(Jd,{$padding:p,children:r}),g&&e(Yd,{$padding:p,children:g})]})},[i,n,o]);return r?o?pr.createPortal(a,document.body):a:null});Qd.displayName=Qd.name;const Zd=o.div`
559
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
560
+ position: relative;
561
+ display: flex;
562
+ align-items: center;
563
+ gap: 4px;
564
+
565
+ /* Only signal "this is hoverable" when there's actually a tooltip to show. Important for callers (e.g. truncation-aware wrappers) that always mount the Tooltip with "keepAlive" and toggle "text" based on overflow — we don't want every wrapped element to show a help cursor when no tooltip would actually appear. */
566
+ cursor: ${({$hasText:e})=>e?"help":"inherit"};
567
+ ${({$ellipsis:e})=>e&&n`
568
+ overflow: hidden;
569
+ text-overflow: ellipsis;
570
+ white-space: nowrap;
571
+ `}
572
+ `,ep=o.div`
573
+ display: flex;
574
+ flex-direction: column;
575
+ align-items: flex-start;
576
+ gap: 8px;
577
+ width: 100%;
578
+ `,tp=o.div`
579
+ display: flex;
580
+ width: 100%;
581
+ flex-shrink: 0;
582
+ box-sizing: border-box;
583
+ line-height: 0;
584
+
585
+ ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
586
+ ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
587
+ ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
588
+ `,rp=o.div`
589
+ width: 0;
590
+ height: 0;
591
+ border-style: solid;
592
+ border-left: 6.5px solid transparent;
593
+ border-right: 6.5px solid transparent;
594
+ flex-shrink: 0;
595
+
596
+ ${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
597
+ `,op=o.div`
598
+ display: flex;
599
+ flex-direction: column;
600
+ align-items: stretch;
601
+ min-width: 0;
602
+ `,np=o.div`
603
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
604
+ border-radius: 4px;
605
+ padding: 8px;
606
+ box-sizing: border-box;
607
+ min-width: 0;
608
+ `,ip=({withIcon:o,titleIcon:n,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:p=!1,ellipsis:u=!1})=>{const h=i(),{popupRef:m,popupOpen:g,setPopupOpen:f,popupPosition:y,arrowPlacement:x,handlePosition:b}=vd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Gt(()=>!!Ei(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:o}=e;v?b(y.left||r,y.top||o):b(r,o),f("mouseleave"!==t)};return s||p?t(Zd,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,o&&e(Qe,{fill:h.v2.colors.white[500]}),e(Qd,{ref:m,isOpen:g&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(op,{children:["top"===x.edge&&e(tp,{$align:x.align,children:e(rp,{$pointsUp:!0})}),e(np,{children:t(ep,{children:[(!!n||!!a)&&t(Pn,{$gap:4,style:{alignItems:"center"},children:[n&&e(n,{size:16},"icon"),a&&e(hn,{size:ln.XS,children:a},"title")]}),!!s&&e(hn,{size:ln.XXXS,children:s}),!!l&&e(hn,{size:ln.XXXS,color:cn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===x.edge&&e(tp,{$align:x.align,children:e(rp,{$pointsUp:!1})})]})})]}):e(r,{children:c})},ap=o.button`
609
+ position: relative;
610
+ width: ${({$size:e})=>e}px;
611
+ height: ${({$size:e})=>e}px;
612
+ border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
613
+ border-radius: 100%;
614
+ background-color: ${({$backgroundColor:e})=>e||"transparent"};
615
+ display: flex;
616
+ align-items: center;
617
+ justify-content: center;
618
+ cursor: pointer;
619
+ &:hover {
620
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+Bc["070"]:e.colors.dropdown_bg_2};
621
+ }
622
+ `,sp=o.div`
623
+ position: absolute;
624
+ top: ${({$size:e})=>e/5}px;
625
+ right: ${({$size:e})=>e/5}px;
626
+ width: 6px;
627
+ height: 6px;
628
+ border-radius: 100%;
629
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
630
+
631
+ &::after {
632
+ content: '';
633
+ position: absolute;
634
+ inset: 0;
635
+ border-radius: 100%;
636
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
637
+ animation: ${Hc} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
638
+ }
639
+ `,lp=({children:r,onClick:o,tooltip:n,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(ip,{text:n,children:t(ap,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(sp,{$size:i,$color:s}),r]})}),cp=o.div`
640
+ position: relative;
641
+ &.animated {
642
+ overflow: hidden;
643
+ padding-bottom: 1px;
644
+ border-radius: 32px;
645
+ animation: ${({$isLeaving:e})=>e?jc.out.bottom:jc.in.bottom} ${({$duration:e})=>e/10}ms forwards;
646
+ }
647
+ `,dp=o.div`
648
+ position: absolute;
649
+ bottom: -1px;
650
+ left: 0;
651
+ z-index: -1;
652
+ width: 100%;
653
+ height: 100%;
654
+ border-radius: 32px;
655
+ background-color: ${({$type:e,theme:t})=>t.text[e]};
656
+ animation: ${Wc.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
657
+ `,pp=o.div`
658
+ display: flex;
659
+ align-items: center;
660
+ flex: 1;
661
+ gap: 8px;
662
+ padding: 0 12px;
663
+ border-radius: 32px;
664
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
665
+ `,up=o.div`
666
+ display: flex;
667
+ align-items: center;
668
+ margin: 0 auto 0 0;
669
+ padding: 8px 0;
670
+ max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
671
+ min-height: 12px;
672
+ `,hp=o(Ti)`
673
+ font-size: 14px;
674
+ color: ${({$type:e,theme:t})=>t.text[e]};
675
+ `,mp=o(Ti)`
676
+ color: ${({$type:e,theme:t})=>t.text[e]};
677
+ font-size: 12px;
678
+ `,gp=o(Pn)``,fp=o(Ti)`
679
+ text-transform: uppercase;
680
+ text-decoration: underline;
681
+ font-size: 12px;
682
+ font-family: ${({theme:e})=>e.font_family.secondary};
683
+ white-space: nowrap;
684
+ cursor: pointer;
685
+ &:hover {
686
+ transform: scale(1.1);
687
+ transition: transform 0.3s;
688
+ }
689
+ `,yp=({type:r,icon:o,title:n,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Ht(!1),g=Vt(null),f=Vt(null),y=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Xt(()=>(g.current=setTimeout(()=>y({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const x=o||Kn(r,u);return t(cp,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{g.current&&clearTimeout(g.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;g.current=setTimeout(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(pp,{"data-id":"toast",$type:r,style:p,children:[e(x,{fill:u.text[r]}),t(up,{$withAction:!!s,$overrideMaxWidth:d,children:[n&&e(hp,{$type:r,children:n}),n&&a&&e(Vd,{orientation:"vertical",type:r}),a&&e(mp,{$type:r,children:a})]}),(!!s||!!l)&&t(gp,{children:[s&&e(fp,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(lp,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(bt,{size:12})})]})]}),l&&e(dp,{ref:f,$duration:c,$type:r})]})},xp=o.div`
690
+ padding: 24px 32px;
691
+ `,bp=o.div`
692
+ padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
693
+ `,vp=o(Ti)`
694
+ font-size: 20px;
695
+ line-height: 28px;
696
+ `,$p=o(Ti)`
697
+ color: ${({theme:e})=>e.text.grey};
698
+ width: 416px;
699
+ font-style: normal;
700
+ font-weight: 300;
701
+ line-height: 24px;
702
+ `,wp=o.div`
703
+ display: flex;
704
+ justify-content: space-between;
705
+ gap: 12px;
706
+ `,Sp=o(Zc)`
707
+ width: 250px;
708
+ `,kp=o.div`
709
+ margin-bottom: 12px;
710
+ `,Cp=({isOpen:r,noOverlay:o,title:n="",description:i="",note:a,approveButton:s,denyButton:l,closeOnEscape:c=!0})=>{fd({key:"Enter",active:r&&c},()=>s.onClick());const d=()=>l.onClick();return e(Xd,{isOpen:r,noOverlay:o,onClose:d,children:t(xp,{children:[e(vp,{children:n}),e(bp,{$withNote:!!a,children:e($p,{children:i})}),!!a&&e(kp,{children:e(yp,{type:a.type,title:a.title,message:a.message})}),t(wp,{children:[e(Sp,{"data-id":"approve",variant:s.variant||"primary",onClick:()=>s.onClick(),children:s.text}),e(Sp,{"data-id":"deny",variant:l.variant||"secondary",onClick:d,children:l.text})]})]})})},Ep=({isOpen:t,noOverlay:r,name:o,onApprove:n,onDeny:i})=>e(Cp,{isOpen:t,noOverlay:r,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Vr.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),Ap=o.div`
711
+ display: flex;
712
+ align-items: center;
713
+ gap: 8px;
714
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
715
+ opacity: ${({$disabled:e})=>e?.6:1};
716
+ `,Dp=o.div`
717
+ width: 18px;
718
+ height: 18px;
719
+ border-radius: 6px;
720
+ border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e||t?"transparent":r.colors.secondary};
721
+ display: flex;
722
+ align-items: center;
723
+ justify-content: center;
724
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e?r.colors.majestic_blue:t?r.colors.majestic_blue_soft:r.colors.secondary+Bc["020"]};
725
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
726
+ transition: border 0.3s;
727
+ &:hover {
728
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
729
+ }
730
+ `,Tp=({title:r,titleColor:o,tooltip:n,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Ht(a);Xt(()=>g(a),[a]);return t(Fn,{children:[t(Ap,{"data-id":"checkbox"+(r?`-${r}`:""),$disabled:c,onClick:e=>{c||(u||e.stopPropagation(),l?l(!!s||!m):g(e=>!!s||!e))},style:d,children:[e(Dp,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(vt,{fill:h.text.white}):m?e(yt,{fill:h.text.white}):null}),r&&e(ip,{text:n,withIcon:!0,children:e(Ti,{size:12,color:o||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ri,{children:p})]})},Ip=o(Pn)`
731
+ gap: 0;
732
+ `,Np=o.button`
733
+ padding: 4px 8px;
734
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
735
+ border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
736
+ border: 1px solid ${({theme:e})=>e.colors.border};
737
+ display: flex;
738
+ align-items: center;
739
+ justify-content: center;
740
+ cursor: pointer;
741
+ &:hover {
742
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
743
+ }
744
+ `,Rp=({isPrettyMode:r,setIsPrettyMode:o})=>t(Ip,{children:[e(Np,{$position:"left",$selected:r,onClick:()=>o(!0),children:e($t,{})}),e(Np,{$position:"right",$selected:!r,onClick:()=>o(!1),children:e(wt,{})})]}),Op=o.table`
745
+ border-collapse: collapse;
746
+ font-family: ${({theme:e})=>e.font_family.primary};
747
+ `,_p=o.tbody``,Pp=o.tr`
748
+ td:first-child {
749
+ padding-left: 0 !important;
750
+ }
751
+ td:last-child {
752
+ padding-right: 0 !important;
753
+ }
754
+ `,Fp=o.td`
755
+ vertical-align: top;
756
+ padding: 4px 6px;
757
+ `,Lp=o(Ti)`
758
+ white-space: nowrap;
759
+ `,zp=o.span`
760
+ white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
761
+ overflow-wrap: break-word;
762
+ word-break: break-word;
763
+ word-wrap: break-word;
764
+ /* Fallback for older browsers */
765
+ -ms-word-break: break-all;
766
+ font-size: 12px;
767
+ `,Mp=({language:t,code:r,theme:o,flatten:n,pretty:a})=>{const{darkMode:s}=i(),l=o?mr[o]:s?mr.palenight:mr.vsLight;let c="";if("json"===t){const e=ti(r,{}),t=vi(e);c=$i(n?No(t):t)}else c=r;return a&&"json"===t?e(Bp,{darkMode:s,str:c}):e(hr,{theme:l||(s?mr.palenight:mr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:o})=>e("pre",{children:o.map((o,n)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(zp,{...r({token:t})},`line-${n}-token-${o}`))},`line-${n}`))})})},Bp=({darkMode:r,str:o})=>{const n=i(),a=(r,o)=>{const i=new Array(r).fill(r=>t(Pp,{...r,children:[e(Fp,{}),e(Fp,{})]}));return e(Wt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${n.colors.border}`}:{}},`empty-row-${o}-${r}`))})};return e(hr,{theme:r?mr.palenight:mr.vsLight,language:"json",code:o,children:({getLineProps:r,getTokenProps:o,tokens:i})=>e(Op,{children:e(_p,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],o=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(o.split("@")[0])&&(r[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:o}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Wt,{children:[a(2,s),t(Pp,{...c,children:[e(Fp,{children:e(Lp,{children:l[0].content})}),e(Fp,{})]})]},`line-${s}`):2===l.length?e(Pp,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[o,...n]=t.split("@");return{text:o,components:n?.map((t,o)=>{if(!t.includes("="))return null;const[n,i]=t.split("=");switch(n){case"tooltip":return e(ip,{withIcon:!0,text:i},`${n}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${n}-${i}-${o}`);let t=Kn(i,r);return t||(t=Kn(Vr.Warning,r)),e(t,{},`${n}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,n),c=0===i;return e(Fp,{children:t(Pn,{children:[e(Pn,{children:l}),e(zp,{$noWrap:c,...o({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Up={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function jp(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Up[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Wp(e){const t=jp(e);return`${t.value}${t.unit}`}const Hp=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Xp=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=jp(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},y=(e,t)=>({position:"absolute",width:Wp(1.5),height:Wp(4),borderRadius:Wp(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${Hp} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Gp=o.div`
768
+ margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
769
+ display: flex;
770
+ align-items: center;
771
+ justify-content: center;
772
+ `,Vp=({extend:t,size:r=14,align:o="center"})=>e(Gp,{$align:o,children:e(St,{size:r,rotate:t?180:0})}),Kp=o.div`
773
+ border-radius: 24px;
774
+ background-color: ${({theme:e,$status:t})=>t===Vr.Error?e.text.error+Bc["010"]:t===Vr.Warning?e.text.warning+Bc["010"]:e.colors.secondary+Bc["005"]};
775
+ &:hover {
776
+ background-color: ${({theme:e,$status:t})=>t===Vr.Error?e.text.error+Bc["020"]:t===Vr.Warning?e.text.warning+Bc["020"]:e.colors.secondary+Bc["010"]};
777
+ }
778
+ cursor: pointer;
779
+ transition: background 0.3s;
780
+ `,qp=o.div`
781
+ display: flex;
782
+ align-items: center;
783
+ gap: 12px;
784
+ padding: 12px 18px;
785
+ `,Jp=o.div`
786
+ display: flex;
787
+ flex-direction: column;
788
+ gap: 8px;
789
+ padding: 6px 18px 12px 18px;
790
+ `,Yp=o.div`
791
+ display: flex;
792
+ align-items: center;
793
+ gap: 12px;
794
+ `,Qp=o(Ti)`
795
+ white-space: nowrap;
796
+ `,Zp=o(Fn)`
797
+ width: 16px;
798
+ `,eu=({conditions:r,headerLabelError:o="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Ht(!1),d=Gt(()=>ui(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Fo(d),[d]);Xt(()=>{c(u||m||g)},[u,m,g]);const y=(!d.length||f)&&!u&&!m&&!g,x=u?Vr.Error:m?Vr.Warning:g?Vr.Info:Vr.Success,b=Kn(x,s),v=u?o:m||g?n:y?"Loading...":a,$=u?s.text.error:m?s.text.warning:s.text.info,w=`(${u?p.length:m?h.length:d.length}/${d.length})`,S=u?s.text.error_secondary:m?s.text.warning_secondary:s.text.info_secondary,k=Kt(()=>c(e=>!e),[]);return t(Kp,{onClick:k,$status:x,children:[t(qp,{children:[e(y?Xp:b,{}),e(Ti,{color:$,size:14,children:v}),e(Ti,{color:S,size:12,family:"secondary",children:w}),e(Vp,{extend:l,align:"right"})]}),l&&e(Jp,{children:d.map(({status:r,type:o,reason:n,message:i},a)=>{const l=r===qr.Loading?()=>e(Xp,{scale:.8}):r===qr.Disabled?Kn(Vr.Info,s):Kn(r,s),c=r===qr.Disabled?s.text.info:r===Vr.Error?s.text.error:r===Vr.Warning?s.text.warning:s.text.info,d=r===qr.Disabled?s.text.info_secondary:r===Vr.Error?s.text.error_secondary:r===Vr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(Yp,{children:[e(Zp,{children:e(l,{})}),t(Ti,{color:c,size:12,children:[e(Qp,{color:d,size:12,weight:700,children:o}),i||n]})]},`condition-${a}`)})})]})},tu=o.div`
799
+ display: flex;
800
+ align-items: center;
801
+ gap: ${({$size:e})=>e/3}px;
802
+ padding: ${({$size:e,$withBorder:t,$withBackground:r})=>t||r?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
803
+ width: ${({$width:e})=>e||"fit-content"};
804
+ border-radius: 360px;
805
+ border: ${({$withBorder:e,$status:t,theme:r})=>e?`1px solid ${r.text[t]+Bc["050"]}`:"none"};
806
+ background: ${({$withBackground:e,$status:t,theme:r})=>e?`linear-gradient(90deg, transparent 0%, ${r.text[t]+Bc["030"]} 100%)`:"transparent"};
807
+ `,ru=o.div`
808
+ display: flex;
809
+ align-items: center;
810
+ `,ou=o.div`
811
+ display: flex;
812
+ align-items: center;
813
+ `,nu=({title:r,subtitle:o,status:n=Vr.Default,forceIcon:a,withIcon:s,withBorder:l,withBackground:c,width:d,size:p=12,family:u="secondary",nowrap:h=!1})=>{const m=i(),g=[qr.Loading,qr.Disabled].includes(n)?Vr.Info:n,f=a?()=>e(a,{size:p+2,fill:m.text[g]}):n===qr.Loading?()=>e(Xp,{scale:.8}):()=>Kn(g,m)?.({size:p+2});return t(tu,{$status:g,$width:d,$size:p,$withIcon:s,$withBorder:l,$withBackground:c,children:[s&&e(ru,{children:e(f,{})}),(!!r||!!o)&&t(ou,{children:[!!r&&e(Ti,{size:p,family:u,color:m.text[g],nowrap:h,children:r}),!!r&&!!o&&e(Vd,{orientation:"vertical",length:p-2+"px",type:g}),!!o&&e(Ti,{size:p-2,family:u,color:m.text[`${g}_secondary`],nowrap:h,children:o})]})]})},iu=({label:r,onClick:o,variant:n="tertiary",textProps:a,...s})=>{const l=i();return t(Zc,{onClick:o,variant:n,...s,children:[e(kt,{fill:"primary"===n?l.text.primary:l.text.info}),e(Ti,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?l.text.primary:void 0,...a,children:r||To.ADD})]})},au=o(Pn)`
814
+ width: 100%;
815
+ border-radius: 8px;
816
+ background-color: ${({theme:e})=>e.colors.secondary+Bc["010"]};
817
+ pre {
818
+ color: ${({theme:e})=>e.text.default};
819
+ font-size: 12px;
820
+ overflow-x: auto;
821
+ width: 100%;
822
+ padding-left: 12px;
823
+ }
824
+ `,su=({value:r,callbackCopyDone:o})=>{const{clickCopy:n,isCopied:i}=dd();return t(au,{children:[e("pre",{children:r}),e(lp,{onClick:e=>{e.stopPropagation(),n(r),o?.()},tooltip:i?"Copied!":"Copy",children:e(i?yt:xt,{})})]})},lu=({label:r,onClick:o,variant:n="tertiary",...a})=>{const s=i();return t(Zc,{onClick:o,variant:n,...a,children:[e(Ct,{fill:"primary"===n?s.text.primary:s.text.info}),e(Ti,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?s.text.primary:void 0,children:r||To.EDIT})]})},cu=({onClick:t})=>e(yp,{type:Vr.Default,icon:ot,message:Do.QUICK_BACK_TO_SUMMARY,action:{label:Do.GO_TO_SUMMARY,onClick:t}}),du=o(Ti)`
825
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
826
+ white-space: nowrap;
827
+ overflow-x: auto;
828
+
829
+ &::after {
830
+ // This is to prevent the "browser default tooltip" from appearing when the title is too long
831
+ content: '';
832
+ display: block;
833
+ }
834
+ `,pu=({maxWidth:r,text:o,textSize:n=16,textColor:i})=>{const[a,s]=Ht(!1),l=Vt(null);return Xt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-n)&&e>.95*(r-n))}},[r,n,o]),t(Pn,{$gap:0,children:[o&&e(ip,{text:a?o:void 0,children:e(du,{ref:l,$maxWidth:r-n,size:n,color:i,children:o})}),a&&e(du,{$maxWidth:n,size:n,color:i,children:"..."})]})},uu=({src:t="",alt:r="",size:o=16})=>{const[n,i]=Ht(!1);return t&&!n?e("img",{src:t,alt:r,width:o,height:o,onError:()=>i(!0)}):e(g,{size:o})},hu=o.div`
835
+ display: flex;
836
+ align-items: center;
837
+ justify-content: center;
838
+ width: ${({$size:e})=>e}px;
839
+ height: ${({$size:e})=>e}px;
840
+ border-radius: 8px;
841
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Bc["030"]} 100%)`}};
842
+ `,mu=({icon:t,src:r="",alt:o="",status:n,size:i=36})=>e(hu,{$status:n,$size:i,children:r?e(uu,{src:r,alt:o,size:i-12}):e(t||g,{size:i-12})}),gu=o.div`
843
+ position: relative;
844
+ display: flex;
845
+ flex-wrap: wrap;
846
+ align-items: center;
847
+ justify-content: center;
848
+ width: ${({$size:e})=>e}px;
849
+ height: ${({$size:e})=>e}px;
850
+ `,fu=o.div`
851
+ position: absolute;
852
+ top: ${({$top:e})=>e}px;
853
+ left: ${({$left:e})=>e}px;
854
+ z-index: ${({$zIndex:e})=>e};
855
+ display: flex;
856
+ align-items: center;
857
+ justify-content: center;
858
+ width: ${({$size:e})=>e}px;
859
+ height: ${({$size:e})=>e}px;
860
+ border-radius: 100%;
861
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Bc["030"]};
862
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Bc["030"]} 100%)`}};
863
+ `,yu=({icons:r=[],iconSrcs:o=[],status:n,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(yu,{icons:o.map(t=>()=>e(uu,{src:t,size:c})),status:n,size:a,id:s});if(1===r.length)return e(mu,{icon:r[0],status:n,size:a});const d=e=>r.length<=2?.5*c:0===e||1===e?0:1.15*c,p=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(gu,{$status:n,$size:a,children:r.map((o,i)=>i>2?null:e(fu,{$status:n,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Ti,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},xu=pc.map(({id:e})=>e),bu=({monitors:r=xu,withTooltips:o,withLabels:n,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(Pn,{$gap:n?a:a/2,children:r.map(r=>{const i=xr(r.toLowerCase()),s=Zo(r);return s?e(ip,{text:o?i:"",children:t(Pn,{$gap:a/3,children:[e(s,{size:n?a+2:a,fill:c}),n&&e(Ti,{size:a,color:c,children:i})]})},r):null})})},vu=o.div`
864
+ visibility: hidden;
865
+ `,$u=o.div`
866
+ display: flex;
867
+ flex-direction: column;
868
+ align-self: stretch;
869
+ padding: 16px;
870
+ width: calc(100% - 32px);
871
+ border-radius: 16px;
872
+ background-color: ${({theme:e,$status:t,$bgColor:r})=>r||(t?e.text[t]+Bc["010"]:e.colors.secondary+Bc["005"])};
873
+ opacity: ${({$faded:e})=>e?.5:1};
874
+
875
+ ${({theme:e,$status:t,$bgColorHover:r,$withClick:o})=>o?n`
876
+ &:hover {
877
+ cursor: pointer;
878
+ background-color: ${r||(t?e.text[t]+Bc["020"]:e.colors.secondary+Bc["010"])};
879
+ ${vu} {
880
+ visibility: visible;
881
+ }
882
+ }
883
+ `:`\n &:hover {\n ${vu} {\n visibility: visible;\n }\n }\n `}
884
+ `,wu=o.div`
885
+ display: flex;
886
+ align-items: center;
887
+ gap: 8px;
888
+ margin-left: auto;
889
+ `,Su=o(Ti)`
890
+ margin-right: 16px;
891
+ `,ku=o(Ti)`
892
+ font-size: 10px;
893
+ color: ${({theme:e})=>e.text.grey};
894
+ `,Cu=({title:r,subTitle:o,hoverText:n,onClick:a,renderActions:s,iconProps:{icon:l,icons:c,iconSrc:d,iconSrcs:p}={},visualProps:{status:u,faded:h,bgColor:m,bgColorHover:g,monitors:f,monitorsWithLabels:y,componentsUnderTitles:x}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Ht(C||!1),[N,R]=Ht(0),O=Vt(null),_=Vt(null),P=Vt(null);return Xt(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t($u,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(Pn,{$gap:8,children:[t(Pn,{$gap:16,children:[w?e(Xp,{}):b?e(Tp,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(yu,{icons:c,iconSrcs:p,status:u,id:`${r}-${o}`}):l||d?e(mu,{icon:l,src:d,status:u}):null]}),t(Fn,{$gap:4,children:[r&&e(pu,{maxWidth:N,text:r,textSize:14}),t(Pn,{$gap:4,children:[o&&e(pu,{maxWidth:N-(P.current?.clientWidth||0),text:o,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(Pn,{$gap:4,ref:P,children:[o&&e(ku,{children:"•"}),e(bu,{monitors:f,withLabels:y,size:10})]})]}),x&&x.length>0?e(Pn,{$gap:4,children:x?.map((t,r)=>e(Wt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(wu,{ref:_,children:[!!n&&e(vu,{children:e(Su,{size:14,family:"secondary",children:n})}),s&&s(),k&&t(Wt,{children:[e(Vd,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(lp,{onClick:()=>I(e=>!e),children:e(Vp,{extend:T})})]})]})]}),T&&E&&t(Fn,{children:[e(Vd,{margin:"16px 0"}),E()]})]})},Eu=o(Pn)`
895
+ width: 100%;
896
+ justify-content: space-between;
897
+ `,Au=o(Ti)`
898
+ font-size: 12px;
899
+ color: ${({theme:e})=>e.text.grey};
900
+ `,Du=o(Ti)`
901
+ font-size: 10px;
902
+ color: ${({theme:e})=>e.text.darker_grey};
903
+ `,Tu=o.div`
904
+ display: flex;
905
+ align-items: center;
906
+ gap: 8px;
907
+ margin-left: auto;
908
+ `,Iu=o(Ti)`
909
+ font-size: 12px;
910
+ text-align: right;
911
+ `,Nu=({title:r,subTitle:o,tooltip:n,value:i})=>t(Eu,{children:[e(Fn,{$gap:4,children:t(ip,{text:n||"",children:[r&&e(Au,{children:r},"title"),o&&e(Du,{children:o},"subtitle")]})}),e(Tu,{children:i?.status?e(nu,{status:"transitioning"===i.status?qr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(Iu,{children:i?.text||"-"})})]}),Ru=o(Fn)`
912
+ width: 100%;
913
+ `,Ou=({containerName:r,actualDevices:o,started:n,ready:i,instrumentationInstances:a})=>{const s=Gt(()=>{const t=[];return n?.name&&t.push(e(nu,{status:si(n.value)?yi(n.value)?Vr.Success:Vr.Error:Vr.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(nu,{status:si(i.value)?yi(i.value)?Vr.Success:Vr.Error:Vr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[n?.name,n?.value,i?.name,i?.value]);return e(Cu,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(nu,{status:Vr.Info,title:"Instrumentation Device",subtitle:o.value&&"[]"!==o.value?o.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(Ru,{$gap:24,children:a.map((r,o)=>t(Ru,{$gap:8,children:[e(Nu,{title:`Instrumented Process #${o+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Vr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Nu,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${o}`))})}})},_u=({title:r="Data not found",subTitle:o})=>{const n=i().v2.colors.grey[400];return t(Ln,{children:[t(Pn,{$gap:8,children:[e(Et,{fill:n}),e(hn,{size:ln.XS,color:n,align:"center",children:r})]}),o&&e(hn,{size:ln.XXS,color:n,align:"center",children:o})]})},Pu=o(Fn)`
914
+ max-width: 300px;
915
+ padding: 12px;
916
+ border-radius: 12px;
917
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
918
+ justify-content: center;
919
+ `,Fu=Yt(({id:t,data:r})=>{const{title:o,subTitle:n}=r;return e(Pu,{"data-id":t,children:e(_u,{title:o,subTitle:n})})});Fu.displayName=Fu.name;const Lu=o.div`
920
+ padding: 6px;
921
+ border-radius: 12px;
922
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
923
+ cursor: pointer;
924
+ ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
925
+ `,zu=o.div`
926
+ position: relative;
927
+ `,Mu=o.div`
928
+ position: absolute;
929
+ top: 100%;
930
+ margin-top: 4px;
931
+ left: 50%;
932
+ transform: translateX(-50%);
933
+ display: flex;
934
+ flex-direction: column;
935
+ align-items: center;
936
+ gap: 2px;
937
+ width: 140px;
938
+ text-align: center;
939
+ `,Bu=Yt(({id:o,data:n})=>{const{id:a,status:s,title:l,icons:c,isVirtual:d}=n,p=i(),u=d||s!==Vr.Error?null:Kn(s,p);return t(r,{children:[e(nr,{type:"source",position:ir.Right,style:{visibility:"hidden"}}),e(nr,{type:"target",position:ir.Left,style:{visibility:"hidden"}}),t(zu,{"data-id":o,children:[e(Lu,{$isVirtual:d,children:e(yu,{id:a,icons:c,status:d?void 0:s})}),t(Mu,{children:[u&&e(u,{}),e(Ti,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:l})]})]})]})});Bu.displayName=Bu.name;const Uu={duration:300,padding:.1,includeHiddenNodes:!0},ju=o.div`
940
+ height: 100%;
941
+ .react-flow__attribution {
942
+ visibility: hidden;
943
+ }
944
+ `,Wu=o.div`
945
+ button {
946
+ padding: 8px;
947
+ margin: 8px;
948
+ border-radius: 8px;
949
+ border: 1px solid ${({theme:e})=>e.colors.border} !important;
950
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
951
+ path {
952
+ fill: ${({theme:e})=>e.text.secondary};
953
+ }
954
+ &:hover {
955
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
956
+ }
957
+ &:last-child svg {
958
+ transform: scale(1.4);
959
+ }
960
+ }
961
+ `,Hu={[Qr.MapItem]:Bu,[Qr.NoData]:Fu},Xu=({trigger:e})=>{const{fitView:t}=dr(),r=Vt(!0);return Xt(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(Uu))},[e,t]),null},Gu=({nodes:r,edges:o,onNodesChange:n,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=nd(),{setActiveNodeType:h,setActiveNodeId:m}=Ki();return t(sr,{zoomOnScroll:s,nodes:r,nodeTypes:Hu,edges:o,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:n,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(Xu,{trigger:a}),e(Wu,{children:e(lr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Uu,children:p&&e(cr,{onClick:p,children:e(At,{size:20})})})})]})},Vu=t=>e(ju,{children:e(ar,{children:e(Gu,{...t})})}),Ku={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},qu=Jt(null),Ju="All row fields are required",Yu="At least one row is required",Qu=Ao.LATENCY_HTTP_ROUTE,Zu=e=>"string"==typeof e?!e.trim():ni(e),eh=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!Zu(r)}),th=({children:t})=>{const[r,o]=Ht(null),[n,i]=Ht(void 0),a=ed(Ku),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),o(e)},[]),l=Kt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:o,signals:n,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!o,signals:n??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,qi.find(e=>e.type===t)??Ji.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:wr(Ku)};const e=(e=>{const t=wr(e),r=t.fields||{},o=r[Ir.UrlTemplatizationRulesGroups];o?.length&&(r[Ir.UrlTemplatizationRulesGroups]=o.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const n=r[Ir.AttributeNamesToDelete];n?.length&&(r[Ir.AttributeNamesToDelete]=n.filter(e=>!!e?.trim()));const i=r[Ir.Renames];return i&&(r[Ir.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};ni(e.signals)&&(t.signals=Ao.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const o={},n=t.fields||{},i=r.fields||{};switch(e){case Tr.K8sAttributes:{const e=!(n[Ir.CollectContainerAttributes]||n[Ir.CollectReplicaSetAttributes]||n[Ir.CollectWorkloadId]||n[Ir.CollectClusterId]),t=!n[Ir.LabelsAttributes]?.length,r=!n[Ir.AnnotationsAttributes]?.length;e&&t&&r&&(o[Ir.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=n[Ir.LabelsAttributes];i?.some(e=>!eh(e,["labelKey","attributeKey","fromSources"]))&&(o[Ir.LabelsAttributes]=Ju);const a=n[Ir.AnnotationsAttributes];a?.some(e=>!eh(e,["annotationKey","attributeKey","fromSources"]))&&(o[Ir.AnnotationsAttributes]=Ju);break}case Tr.AddClusterInfo:{const e=n[Ir.ClusterAttributes];e?.length?e.some(e=>!eh(e,["attributeName","attributeStringValue"]))&&(o[Ir.ClusterAttributes]=Ju):o[Ir.ClusterAttributes]=Yu;break}case Tr.DeleteAttributes:{const e=i[Ir.AttributeNamesToDelete]||[],t=n[Ir.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(o[Ir.AttributeNamesToDelete]=Ju):o[Ir.AttributeNamesToDelete]=e.length?Ju:Yu;break}case Tr.RenameAttributes:{const e=Object.entries(i[Ir.Renames]||{}),t=Object.entries(n[Ir.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(o[Ir.Renames]=Ju):o[Ir.Renames]=e.length?Ju:Yu;break}case Tr.PiiMasking:{const e=n[Ir.PiiCategories];e?.length||(o[Ir.PiiCategories]="Select at least one attribute to mask");break}case Tr.ErrorSampler:Zu(n[Ir.FallbackSamplingRatio])&&(o[Ir.FallbackSamplingRatio]=Ao.FIELD_IS_REQUIRED);break;case Tr.ProbabilisticSampler:Zu(n[Ir.SamplingPercentage])&&(o[Ir.SamplingPercentage]=Ao.FIELD_IS_REQUIRED);break;case Tr.LatencySampler:{const e=n[Ir.EndpointsFilters];e?.length?e.some(e=>!eh(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?o[Ir.EndpointsFilters]=Ju:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(o[Ir.EndpointsFilters]=Qu):o[Ir.EndpointsFilters]=Yu;break}case Tr.ServiceNameSampler:{const e=n[Ir.ServicesNameFilters];e?.length?e.some(e=>!eh(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(o[Ir.ServicesNameFilters]=Ju):o[Ir.ServicesNameFilters]=Yu;break}case Tr.SpanAttributeSampler:{const e=n[Ir.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!eh(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const o=e.condition||{},n=t.find(e=>!!o[e]);if(!n)return!0;const i=o[n]||{},a=i.operation;return!a||!(r.has(a)||!Zu(i.expectedValue))})&&(o[Ir.AttributeFilters]=Ju):o[Ir.AttributeFilters]=Yu;break}case Tr.URLTemplatization:{const e=n[Ir.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(o[Ir.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return o})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(qu.Provider,{value:d,children:t})},rh=()=>{const e=qt(qu);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},oh={name:""},nh=Jt(null),ih=({children:t,defaultExcludeName:r=""})=>{const{dataStreams:o}=bc(),[n,i]=Ht(void 0),[a,s]=Ht(r),[l,c]=Ht(void 0),[d,p]=Ht(null),u=Vt(null),h=ed(oh),m=Kt(e=>{h.resetFormData({name:e}),h.handleErrorChange(void 0,void 0,{}),i(void 0),s(e),c(e),p(null),u.current=null},[]),g=Kt(()=>{const e=wr(h.formData),t=(e=>{const t={};return e.name?ii(e.name)||(t.name=Ao.ILLEGAL_K8S_LABEL):t.name=Ao.FIELD_IS_REQUIRED,t})(e);h.handleErrorChange(void 0,void 0,t);const r=Object.keys(t).length>0?Ao.REQUIRED_FIELDS:void 0;return i(r),{errorMessage:r,preparedFormData:e}},[h]),f=Kt(async e=>{const{errorMessage:t,preparedFormData:r}=g();if(t)return;const n=o.find(e=>e.name===r.name&&e.name!==a);if(n)return u.current=e,void p({preparedFormData:r,existingName:n.name,editingName:l});await e(r)},[g,o,a,l]),y=Kt(async()=>{const e=u.current,t=d?.preparedFormData;u.current=null,p(null),e&&t&&await e(t)},[d]),x=Kt(()=>{u.current=null,p(null)},[]),b=Gt(()=>({genericForm:h,loadDataStream:m,editingName:l,validateFormData:g,requestSubmit:f,pendingMerge:d,confirmMerge:y,cancelMerge:x,errorMessage:n,excludeName:a,setExcludeName:s}),[h,m,l,g,f,d,y,x,n,a]);return e(nh.Provider,{value:b,children:t})},ah=()=>{const e=qt(nh);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},sh={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[]},lh={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:wr(sh)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},ch=Jt(lh),dh=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e,s=r===Xr.Dropdown,l=ti(o,{});return{componentType:r,renderCondition:a,name:t,title:n,value:i,placeholder:l.placeholder||(s?"Select an option":void 0),options:s&&Array.isArray(l.values)?l.values.map(e=>({id:e,value:e})):void 0,...l}}),ph=({children:t})=>{const{selectedStreamName:r}=bc(),o=$c(e=>e.destinations),[n,i]=Ht(null),[a,s]=Ht(),[l,c]=Ht(lh.unsavedDestinations),d=Gt(()=>"number"==typeof n?.unsavedIdx?l[n.unsavedIdx]:void 0,[n,l]),p=Kt((e,t)=>{n&&(c(t=>[...t,{...e,option:n.option}]),i(t?e=>e?{...e,listType:Qi.UNSAVED,unsavedIdx:l.length}:null:null))},[n,l.length]),u=Kt((e,t,r)=>{n&&(c(r=>r.map((r,o)=>o===e?{...r,...t,option:n.option}:r)),i(r?e=>e?{...e,listType:Qi.UNSAVED}:null:null))},[n]),h=Kt(e=>{c(t=>t.filter((t,r)=>r!==e)),i(null)},[]),m=ed({...sh,currentStreamName:r});Xt(()=>{if(!n)return;if(d)return void m.resetFormData({...d.formData});if(n.listType===Qi.EXISTS&&n.option.id){const e=o.find(e=>e.id===n.option.id);if(e)return void m.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:r,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces,profiles:!!e.exportedSignals?.profiles},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=gi(n.option.supportedSignals);m.resetFormData({type:n.option.type,name:n.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(go.Logs),metrics:e.includes(go.Metrics),traces:e.includes(go.Traces),profiles:e.includes(go.Profiles)},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[n,d]);const g=Kt(e=>{m.resetFormData(),m.handleErrorChange(void 0,void 0,{}),s(void 0),i(e?{...e,dynamicFields:e.option?.fields?dh(e.option.fields):[]}:null)},[]),f=Kt((e,t)=>{let r;for(const o of t){const t=o.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const o=ti(e.fields,{}),n={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:r?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:r?r.fields.map(e=>({...e,initialValue:o[e.name]??e.initialValue})):[]},a=dh(n.fields);i({listType:Qi.EXISTS,option:n,dynamicFields:a}),s(void 0)},[]),y=Kt(()=>{const e=wr(m.formData),t={};n?.dynamicFields.forEach(({name:r,required:o})=>{if(o){const o=e.fields.find(e=>e.key===r)?.value;ni(o)&&(t[r]=Ao.FIELD_IS_REQUIRED)}});mi(e.exportedSignals).length||(t.exportedSignals=Ao.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return m.handleErrorChange(void 0,void 0,t),s(r),{errorMessage:r,preparedFormData:e}},[m,n]);return e(ch.Provider,{value:{activeForm:n,onChangeActiveForm:g,loadDestination:f,genericForm:m,formErrorMessage:a,validateFormData:y,unsavedDestinations:l,thisUnsavedDestination:d,setUnsavedDestinations:c,addUnsavedDestination:p,updateUnsavedDestination:u,deleteUnsavedDestination:h},children:t})},uh=()=>qt(ch),hh={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},mh=Jt(null),gh=({children:t})=>{const[r,o]=Ht(null),[n,i]=Ht(void 0),a=ed(hh),s=Kt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),o(e)},[]),l=Kt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:o,instrumentationLibraries:n,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:o??null,instrumentationLibraries:n??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,ea.find(e=>e.type===t)??null))},[]),c=Kt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:wr(hh)};const e=(e=>{const t=wr(e);return t.headersCollection?.[so.HeaderKeys]?.length&&(t.headersCollection[so.HeaderKeys]=t.headersCollection[so.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[lo.Golang]?.length&&(t.customInstrumentations[lo.Golang]=t.customInstrumentations[lo.Golang].map(e=>new xo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>{return t=e,!!(t.packageName?.trim()||t.functionName?.trim()||t.receiverName?.trim()||t.receiverMethodName?.trim());var t})),t.customInstrumentations?.[lo.Java]?.length&&(t.customInstrumentations[lo.Java]=t.customInstrumentations[lo.Java].map(e=>new yo(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(a.formData),t=((e,t)=>{const r={};switch(e){case io.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case io.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case io.HeadersCollection:t.headersCollection?.[so.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case io.CustomInstrumentation:{const e=t.customInstrumentations?.[lo.Golang]||[],o=t.customInstrumentations?.[lo.Java]||[];if(!e.length&&!o.length){r.customInstrumentations="Custom instrumentation are required";break}const n=e.findIndex(e=>!new xo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==n){r.customInstrumentations=`Golang probe #${n+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=o.findIndex(e=>!new yo(e.className,e.methodName).Verify());if(-1!==i){r.customInstrumentations=`Java probe #${i+1} is invalid: both class name and method name are required`;break}break}}return r})(r.type,e);a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Gt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(mh.Provider,{value:d,children:t})},fh=()=>{const e=qt(mh);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function yh(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:[],operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function xh(e){if(!e.sourceScopes.length)return null;const t=[];for(const r of e.sourceScopes)if("source"===r.scopeType&&r.workloadName){const e={workloadName:r.workloadName};r.workloadKind&&(e.workloadKind=r.workloadKind),r.workloadNamespace&&(e.workloadNamespace=r.workloadNamespace),t.push(e)}else"namespace"===r.scopeType&&r.workloadNamespace?t.push({workloadNamespace:r.workloadNamespace}):"language"===r.scopeType&&r.workloadLanguage&&t.push({workloadLanguage:r.workloadLanguage});return t.length?t:null}function bh(e){return xh(e)}function vh(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function $h(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function wh(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function Sh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?wh(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function kh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?wh(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Ch(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:xh(e),percentageAtMost:vh(e),operation:Sh(e)}}function Eh(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:xh(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?$h(e):null,percentageAtLeast:vh(e),operation:kh(e)}}function Ah(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:xh(e),percentageAtMost:vh(e)??0,operation:kh(e)}}function Dh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:bh(e),operation:Sh(e),percentageAtMost:vh(e),notes:e.notes||null}}function Th(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:bh(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?$h(e):null,operation:kh(e),percentageAtLeast:vh(e),notes:e.notes||null}}function Ih(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:bh(e),operation:kh(e),percentageAtMost:vh(e)??0,notes:e.notes||null}}const Nh=["5000","1000","500","100","50"],Rh=["50","25","10","1","0.5","0.1","0"];function Oh(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=Rh.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function _h(e){if(!e)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};const t=e;if(t.httpServer){return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""}}return t.kafkaConsumer?{operationType:"kafkaConsumer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaConsumer.kafkaTopic||""}:t.kafkaProducer?{operationType:"kafkaProducer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaProducer.kafkaTopic||""}:{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}function Ph(e){const t=yh(),r=(o=e.rule.sourceScopes,o?.length?o.map(e=>e.workloadLanguage?{scopeType:"language",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:e.workloadLanguage}:e.workloadName?{scopeType:"source",workloadName:e.workloadName,workloadKind:e.workloadKind??"",workloadNamespace:e.workloadNamespace??"",workloadLanguage:""}:e.workloadNamespace?{scopeType:"namespace",workloadName:"",workloadKind:"",workloadNamespace:e.workloadNamespace,workloadLanguage:""}:{scopeType:"all",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:""}).filter(e=>"all"!==e.scopeType):[]);var o;const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let i,a,s={durationPreset:"500",customDurationMs:""},l=!1;switch(e.category){case"noisy":i=function(e){const t=e.rule.operation;if(!t)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};if(t.httpServer)return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""};if(t.httpClient)return{operationType:"httpClient",routeType:t.httpClient.templatedPathPrefix?"routePrefix":"route",route:t.httpClient.templatedPath||t.httpClient.templatedPathPrefix||"",serverAddress:t.httpClient.serverAddress||"",method:t.httpClient.method||"",kafkaTopic:""};return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}(e),a=Oh(e.rule.percentageAtMost);break;case"highlyRelevant":i=_h(e.rule.operation),a=Oh(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=Nh.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),l=e.rule.error;break;case"costReduction":i=_h(e.rule.operation),a=Oh(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...i,...s,keepErrors:l,...a}}var Fh;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Fh||(Fh={}));const Lh=[Fh.Action,Fh.Endpoint,Fh.Scope,Fh.Duration],zh=o.span`
962
+ font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
963
+ font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
964
+ line-height: 20px;
965
+ color: ${({theme:e,$variant:t})=>{const r=e.v2.colors;switch(t){case"action":return r.green[400];case"endpoint":return r.purple[300];case"scope":return r.yellow[400];case"duration":return r.orange[600];default:return r.white[500]}}};
966
+ `,Mh=o.span`
967
+ display: inline;
968
+ cursor: help;
969
+ text-decoration: underline dotted;
970
+ text-underline-offset: 3px;
971
+ `,Bh=o.div`
972
+ display: flex;
973
+ flex-direction: column;
974
+ gap: 4px;
975
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
976
+ border-radius: 4px;
977
+ padding: 8px;
978
+ max-width: 300px;
979
+ `,Uh=({items:r,children:o})=>{const{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=vd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(Mh,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[o,e(Qd,{ref:n,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(Bh,{children:r.map((t,r)=>e(hn,{size:ln.XXXS,children:t},r))})})]})},jh=({parts:o})=>e(r,{children:o.map((o,n)=>{const i=e(zh,{$variant:o.variant,$isMono:Lh.includes(o.variant),children:o.text});return t(Wt,{children:[0!==n&&e(r,{children:" "}),o.tooltipItems?.length?e(Uh,{items:o.tooltipItems,children:i}):i]},`${o.variant}-${n}`)})});var Wh;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(Wh||(Wh={}));const Hh=[{value:Wh.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:Wh.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:Wh.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],Xh={[Wh.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[Wh.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[Wh.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},Gh={[Wh.Noisy]:"Noisy Operations rules list",[Wh.HighlyRelevant]:"Highly Relevant Operations rules list",[Wh.CostReduction]:"Cost Reduction rules list"},Vh={[Wh.Noisy]:"noisy",[Wh.HighlyRelevant]:"highlyRelevant",[Wh.CostReduction]:"costReduction"};function Kh(e){if(e.workloadName){const t=e.workloadKind?.toLowerCase()||"deployment";return e.workloadNamespace?`${t} '${e.workloadName}' in namespace '${e.workloadNamespace}'`:`${t} '${e.workloadName}'`}return e.workloadNamespace?`namespace '${e.workloadNamespace}'`:e.workloadLanguage?`${e.workloadLanguage} services`:""}function qh(e){if(!e?.length)return[{text:" for ",variant:Fh.Default},{text:"all services in the cluster",variant:Fh.Scope}];const t=e.map(Kh).filter(Boolean);if(!t.length)return[{text:" for ",variant:Fh.Default},{text:"all services in the cluster",variant:Fh.Scope}];const r=[{text:" for ",variant:Fh.Default}],o=t.slice(0,2),n=t.slice(2);return o.forEach((e,t)=>{t>0&&r.push({text:", ",variant:Fh.Default}),r.push({text:e,variant:Fh.Scope})}),n.length>0&&r.push({text:` + ${n.length} more`,variant:Fh.Default,tooltipItems:n}),r}function Jh(e,t){if(!e)return[];const r=(o=e).startsWith("/")?o.slice(1):o;var o;const n=[{text:" starting at ",variant:Fh.Default}];return t?n.push({text:`${t} /${r}`,variant:Fh.Endpoint}):n.push({text:`endpoint /${r}`,variant:Fh.Endpoint}),n}function Yh(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default})):t.push({text:"Drop all traces",variant:Fh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...Jh(r,o));const n=e.operation.httpClient,i=n?.templatedPath||n?.templatedPathPrefix,a=n?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:Fh.Default}),o?t.push({text:`${o} /${e}`,variant:Fh.Endpoint}):t.push({text:`/${e}`,variant:Fh.Endpoint})}}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...qh(e.sourceScopes)),t}function Qh(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default})):t.push({text:"Keep all traces",variant:Fh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...Jh(r,o))}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...qh(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:Fh.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:Fh.Duration})),t}function Zh(e){const t=[];if(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...Jh(r,o));const n=e.operation.kafkaConsumer?.kafkaTopic;n&&!r&&(t.push({text:" from ",variant:Fh.Default}),t.push({text:`topic '${n}'`,variant:Fh.Endpoint}))}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...qh(e.sourceScopes)),t}function em(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function tm(e,t,r){const o=Vh[t],n=[];for(const i of e)switch(t){case Wh.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Yh(e),category:o});break;case Wh.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Qh(e),category:o,typeBadge:em(e)});break;case Wh.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Zh(e),category:o})}return n}function rm(e,t){switch(e){case"noisy":return Yh(t);case"highlyRelevant":return Qh(t);case"costReduction":return Zh(t)}}function om(e,t,r,o){for(const n of e)if(n.id===t)switch(o){case"noisy":{const e=n.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:n.id,rule:e};break}case"highlyRelevant":{const e=n.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:n.id,rule:e};break}case"costReduction":{const e=n.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:n.id,rule:e};break}}return null}function nm(e,t){const r=om(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:rm(r.category,r.rule)}:null}function im(e,t){const r=om(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function am(e){return null==e||Array.isArray(e)&&0===e.length?null:e}function sm(e,t){return JSON.stringify({sourceScopes:am(e),operation:am(t)})}function lm(e,t,r,o){return JSON.stringify({sourceScopes:am(e),error:t??!1,durationAtLeastMs:am(r),operation:am(o)})}function cm(e,t){return JSON.stringify({sourceScopes:am(e),operation:am(t)})}function dm(e,t,r,o){switch(t){case"noisy":{const t=sm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!o||e.ruleId!==o)&&sm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=lm(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!o||e.ruleId!==o)&&lm(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=cm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!o||e.ruleId!==o)&&cm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function pm(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"traces for kubelet health probes in the entire cluster",variant:Fh.Scope}]}function um(e){return!(!0!==e.error||e.sourceScopes&&0!==e.sourceScopes.length||e.operation||null!=e.percentageAtLeast&&100!==e.percentageAtLeast)}function hm(e){for(const t of e){const e=t.highlyRelevantOperations.find(um);if(e)return{rule:e,samplingId:t.id}}return null}function mm(e){return!e||e.disabled?[{text:"Auto rule is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}]:[{text:"Keep all traces",variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"error traces across the entire cluster",variant:Fh.Scope}]}function gm(e){return!(e.sourceScopes&&0!==e.sourceScopes.length||e.operation)}function fm(e){for(const t of e){const e=t.costReductionRules.find(gm);if(e)return{rule:e,samplingId:t.id}}return null}function ym(e){return!e||e.disabled?[{text:" is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}]:[{text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"traces across the entire cluster",variant:Fh.Scope}]}var xm;!function(e){e.Create="create",e.View="view",e.EditAutoNoisy="edit-auto-noisy",e.EditAutoCostReduction="edit-auto-cost-reduction",e.EditAutoHighlyRelevant="edit-auto-highly-relevant"}(xm||(xm={}));const bm=Jt(null),vm=["50","25","10","1"];function $m(e){const t=String(e);return vm.includes(t)?t:"custom"}const wm=({category:t,sourceOptions:r=[],namespaceOptions:o=[],children:n})=>{const{formData:i,handleFormChange:a,resetFormData:s}=ed(yh(t)),[l,c]=Ht(null);Xt(()=>{s(yh(t)),c(null)},[t]);const d=Kt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Kt(()=>{s(yh(t)),c(null)},[t,s]),u=Gt(()=>({formType:xm.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:o}),[t,i,d,p,l,r,o]);return e(bm.Provider,{value:u,children:n})},Sm=({data:t,defaultEditMode:r,sourceOptions:o=[],namespaceOptions:n=[],children:i})=>{const[a,s]=Ht(!1),{formData:l,handleFormChange:c,resetFormData:d}=ed(void 0),p=Vt(null),[u,h]=Ht(null);Xt(()=>{t!==p.current&&(p.current=t,t&&r?(d(Ph(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Kt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Kt(()=>{t&&(d(Ph(t)),h(null),s(!0))},[t,d]),f=Kt(()=>{s(!1),h(null)},[]),y=Gt(()=>({formType:xm.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:o,namespaceOptions:n}),[t,a,l,m,g,f,u,o,n]);return e(bm.Provider,{value:y,children:i})};function km(e){const[t,r]=Ht(()=>0===e?"all":"sample"),[o,n]=Ht(()=>$m(e)),[i,a]=Ht(()=>"custom"===$m(e)?String(e):"");Xt(()=>{r(0===e?"all":"sample");const t=$m(e);n(t),a("custom"===t?String(e):"")},[e]);const s=Gt(()=>"all"===t?0:"custom"===o?Number(i)||0:Number(o),[t,o,i]);return{percentageMode:t,setPercentageMode:r,percentagePreset:o,setPercentagePreset:n,customPercentage:i,setCustomPercentage:a,resolvedPercentage:s}}const Cm=({enabled:t,keepPercentage:r,children:o})=>{const[n,i]=Ht(t),a=km(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>pm({enabled:n,keepPercentage:a.resolvedPercentage}),[n,a.resolvedPercentage]),l=Gt(()=>({formType:xm.EditAutoNoisy,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(bm.Provider,{value:l,children:o})},Em=({enabled:t,dropPercentage:r,children:o})=>{const[n,i]=Ht(t),a=km(r);Xt(()=>{i(t)},[t]);const s=Gt(()=>ym(n?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[n,a.resolvedPercentage]),l=Gt(()=>({formType:xm.EditAutoCostReduction,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(bm.Provider,{value:l,children:o})},Am=({enabled:t,children:r})=>{const[o,n]=Ht(t);Xt(()=>{n(t)},[t]);const i=Gt(()=>mm(o?{disabled:!1}:null),[o]),a=Gt(()=>({formType:xm.EditAutoHighlyRelevant,localEnabled:o,setLocalEnabled:n,summary:i}),[o,i]);return e(bm.Provider,{value:a,children:r})},Dm=t=>{switch(t.formType){case xm.Create:return e(wm,{...t});case xm.View:return e(Sm,{...t});case xm.EditAutoNoisy:return e(Cm,{...t});case xm.EditAutoCostReduction:return e(Em,{...t});case xm.EditAutoHighlyRelevant:return e(Am,{...t})}};function Tm(e){const t=qt(bm);if(!t)throw new Error("useSamplingRulesFormContext must be used within a SamplingRulesFormProvider");if(e&&t.formType!==e)throw new Error(`Expected formType "${e}" but found "${t.formType}"`);return t}const Im=Jt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Nm=({children:t,selectedConnectionIds:r,initialInputs:o})=>{const{tier:n}=Ad(),i=n===zr.Onprem,{selectedStreamName:a}=bc(),[s,l]=Ht(!1),[c,d]=Ht(null),[p,u]=Ht([]);Xt(()=>{c&&u(e=>{const t=((e,t)=>wr(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(c,r);return t.map(t=>{const r=e?.find(e=>e.clusterId===t.clusterId),n=r??t;if(o?.[t.clusterId]){const e=o[t.clusterId],r=wr(n);return e.forEach(e=>{const t=r.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const r=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);r&&(r.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Dd.has(e.kind)&&!i||(e.selected=!0)})}),r}return n})})},[c,r,o]);const{formDiff:h,isFormDirty:m}=Gt(()=>{const e=((e,t,r)=>{const o={};return e.forEach(e=>{e.namespaces.forEach(n=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===n.name),a=n.selected||!1;if(a!==i?.selected)o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push({namespace:n.name,selected:a,currentStreamName:r}),a?o[e.clusterId]=o[e.clusterId].filter(e=>e.namespace!==n.name||e.namespace===n.name&&(!e.name||!e.kind)):n.workloads.forEach(t=>{t.selected&&o[e.clusterId].push({namespace:n.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:r})});else{const t=((e,t,r)=>{const o=[];return t.workloads.forEach(n=>{const i=e?.workloads.find(e=>e.name===n.name&&e.kind===n.kind);n.selected!==i?.selected&&o.push({namespace:t.name,name:n.name,kind:n.kind,selected:n.selected||!1,currentStreamName:r})}),o})(i,n,r);t.length>0&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push(...t))}})}),o})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Kt(e=>!i&&Dd.has(e),[i]),f=Kt(({clusterId:e,workloadId:t,selected:r,auto:o})=>{u(n=>{const i=wr(n),a=i.findIndex(t=>t.clusterId===e);if(-1===a)return i;const s=i[a].namespaces.findIndex(e=>e.name===t.namespace);if(-1===s)return i;if(t.kind&&t.name){const e=i[a].namespaces[s].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return i;const o="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=o,o){const e=i[a].namespaces[s].workloads.filter(e=>!g(e.kind));e.every(e=>e.selected)&&(i[a].namespaces[s].selected=!0)}else i[a].namespaces[s].selected=!1}else{const e="boolean"==typeof o?o:!i[a].namespaces[s].selected;i[a].namespaces[s].selected=e,e?i[a].namespaces[s].workloads.forEach(e=>{g(e.kind)||(e.selected=!0)}):"boolean"!=typeof r||r||i[a].namespaces[s].workloads.forEach(e=>{e.selected=!1})}return i})},[g]),y=Kt(({clusterId:e,namespaceName:t,boolean:r,searchText:o="",searchBy:n="",filters:i})=>{u(a=>{const s=wr(a),l=n===Wr.Namespace?o:"",c=n===Wr.Source?o:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((o,n)=>{e&&o.clusterId!==e||o.namespaces.forEach(({name:e,workloads:o},a)=>{if(!t||e===t)if(d)if(t){o.forEach((e,t)=>{r&&g(e.kind)||Nd(e,c,i||{showOnlySelected:!1})&&(s[n].namespaces[a].workloads[t].selected=r)});const e=s[n].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[n].namespaces[a].selected=t}else{if(!Id(s[n].namespaces[a],l,i||{showOnlySelected:!1}))return;s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})}else s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Im.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:y,formDiff:h,isFormDirty:m},children:t})},Rm=()=>qt(Im),Om=Jt({formType:void 0}),_m=({children:t,formType:r})=>{const o=Gt(()=>({formType:r}),[r]);return e(Om.Provider,{value:o,children:t})},Pm=()=>qt(Om),Fm=o.div`
980
+ display: flex;
981
+
982
+ align-items: center;
983
+ gap: 6px;
984
+ margin-bottom: 4px;
985
+ `,Lm=o(Ti)`
986
+ font-size: 14px;
987
+ opacity: 0.8;
988
+ line-height: 22px;
989
+ overflow: hidden;
990
+ white-space: nowrap;
991
+ text-overflow: ellipsis;
992
+ color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
993
+ `,zm=o(Ti)`
994
+ font-size: 12px;
995
+ color: ${({theme:e})=>e.text.darker_grey};
996
+ opacity: 0.8;
997
+ `,Mm=({title:r,required:o,tooltip:n,style:i,status:a})=>r?e(Fm,{style:i,children:t(ip,{text:n,withIcon:!0,children:[e(Lm,{$status:a,children:r}),!o&&e(zm,{children:"(optional)"})]})}):null,Bm=o.div`
998
+ display: flex;
999
+ flex-direction: column;
1000
+ position: relative;
1001
+ width: 100%;
1002
+ `,Um=o.div`
1003
+ width: 100%;
1004
+ display: flex;
1005
+ align-items: center;
1006
+ height: 36px;
1007
+ gap: 12px;
1008
+ transition: border-color 0.3s;
1009
+ border-radius: 32px;
1010
+ border: 1px solid ${({theme:e})=>e.colors.border};
1011
+ ${({$disabled:e})=>e&&n`
1012
+ cursor: not-allowed;
1013
+ opacity: 0.6;
1014
+ `}
1015
+ ${({$isActive:e,$hasError:t,$status:r})=>e?n`
1016
+ border-color: ${({theme:e})=>e.colors.secondary};
1017
+ `:t?n`
1018
+ border-color: ${({theme:e})=>e.text.error};
1019
+ `:r?n`
1020
+ border-color: ${({theme:e})=>e.text[r]};
1021
+ `:""}
1022
+ &:hover {
1023
+ border-color: ${({theme:e})=>e.colors.secondary};
1024
+ }
1025
+ &:focus-within {
1026
+ border-color: ${({theme:e})=>e.colors.secondary};
1027
+ }
1028
+ `,jm=o.input`
1029
+ padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1030
+ flex: 1;
1031
+ min-width: 150px;
1032
+ width: 100%;
1033
+ border: none;
1034
+ outline: none;
1035
+ background: none;
1036
+ color: ${({theme:e})=>e.text.secondary};
1037
+ font-size: 14px;
1038
+ font-family: ${({theme:e})=>e.font_family.primary};
1039
+ font-weight: 300;
1040
+ &::placeholder {
1041
+ color: ${({theme:e})=>e.text.secondary};
1042
+ font-family: ${({theme:e})=>e.font_family.primary};
1043
+ opacity: 0.4;
1044
+ font-size: 14px;
1045
+ font-weight: 300;
1046
+ line-height: 22px; /* 157.143% */
1047
+ }
1048
+ &:disabled {
1049
+ cursor: not-allowed;
1050
+ opacity: 0.6;
1051
+ }
1052
+ &::-webkit-inner-spin-button,
1053
+ &::-webkit-outer-spin-button {
1054
+ -webkit-appearance: none;
1055
+ margin: 0;
1056
+ }
1057
+ `,Wm=o.div`
1058
+ display: flex;
1059
+ align-items: center;
1060
+ margin-left: 12px;
1061
+ `,Hm=o(Wm)`
1062
+ cursor: pointer;
1063
+ `,Xm=o.button`
1064
+ background-color: ${({theme:e})=>e.colors.primary};
1065
+ border: none;
1066
+ color: ${({theme:e})=>e.text.secondary};
1067
+ padding: 8px 16px;
1068
+ border-radius: 20px;
1069
+ cursor: pointer;
1070
+ margin-left: 8px;
1071
+ &:hover {
1072
+ background-color: ${({theme:e})=>e.colors.secondary};
1073
+ }
1074
+ &:disabled {
1075
+ background-color: ${({theme:e})=>e.colors.border};
1076
+ cursor: not-allowed;
1077
+ }
1078
+ `,Gm=({icon:r,buttonLabel:o,onButtonClick:n,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Gr.Text,name:m,status:g,...f})=>{const y=i(),x=h===Gr.Password,[b,v]=Ht(!1);return t(Bm,{children:[e(Mm,{title:l,required:d,tooltip:c,status:g}),t(Um,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[x?e(Hm,{onClick:()=>v(e=>!e),children:e(b?Dt:Tt,{size:14,fill:y.text.grey})}):r?e(Wm,{children:e(r,{size:14,fill:y.text.grey})}):null,e(jm,{"data-id":m,type:b||h===Gr.Number?Gr.Text:h,$hasIcon:!!r||x,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Gr.Number&&(e.target.value=fi(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),o&&n&&e(Xm,{onClick:n,disabled:f.disabled,children:o})]}),!!s&&e(Ri,{children:s})]})},Vm=o.div`
1079
+ display: flex;
1080
+ flex-direction: column;
1081
+ min-width: 120px;
1082
+ width: 100%;
1083
+ opacity: ${({$disabled:e})=>e?.5:1};
1084
+ `,Km=o.div`
1085
+ position: relative;
1086
+ `,qm=o.div`
1087
+ display: flex;
1088
+ align-items: center;
1089
+ justify-content: space-between;
1090
+ height: 36px;
1091
+ padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
1092
+ border-radius: 32px;
1093
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1094
+
1095
+ ${({$isOpen:e,$isMulti:t,theme:r})=>e&&!t?n`
1096
+ border: 1px solid ${r.text.grey};
1097
+ background: ${r.colors.dropdown_bg_2};
1098
+ `:n`
1099
+ border: 1px solid ${r.colors.border};
1100
+ background: transparent;
1101
+ `};
1102
+
1103
+ ${({$hasError:e,$status:t})=>e?n`
1104
+ border-color: ${({theme:e})=>e.text.error};
1105
+ `:t?n`
1106
+ border-color: ${({theme:e})=>e.text[t]};
1107
+ `:""}
1108
+
1109
+ &:hover {
1110
+ border-color: ${({$isMulti:e,$hasSelections:t,$disabled:r,theme:o})=>r?"auto":e&&t?o.colors.border:o.colors.secondary};
1111
+ }
1112
+ `,Jm=o.div`
1113
+ display: flex;
1114
+ align-items: center;
1115
+ gap: 4px;
1116
+ `,Ym=({options:r,value:o,onSelect:n,onDeselect:i,title:a,tooltip:s,placeholder:l,disabled:c=!1,isMulti:d=!1,showSearch:p=!1,required:u=!1,errorMessage:h,hasError:m=!1,status:g})=>{const[f,y]=Ht(!1),[x,b]=Ht(!1),v=Vt(null);xd(v,()=>y(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),y(e=>!e)},w=Array.isArray(o)?o.length:0;return t(Vm,{$disabled:c,children:[e(Mm,{title:a,required:u,tooltip:s,status:g}),t(Km,{ref:v,children:[t(qm,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(o)&&!!o.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(tg,{value:o,placeholder:l,onDeselect:i}),t(Jm,{children:[d&&e(qc,{label:w,filled:!!w}),e(Vp,{extend:f})]})]}),f&&e(ng,{openUpwards:x,options:r,value:o,onSelect:e=>{n?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ri,{children:h})]})},Qm=o(Jm)`
1117
+ max-width: calc(100% - 50px);
1118
+ overflow-x: auto;
1119
+ `,Zm=o(Ti)`
1120
+ display: flex;
1121
+ align-items: center;
1122
+ gap: 2px;
1123
+ padding: 4px 12px;
1124
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
1125
+ border-radius: 360px;
1126
+ white-space: nowrap;
1127
+ text-overflow: ellipsis;
1128
+ img {
1129
+ &:hover {
1130
+ transform: scale(2);
1131
+ transition: transform 0.3s;
1132
+ }
1133
+ }
1134
+ `,eg=o(Ti)``,tg=({value:r,placeholder:o,onDeselect:n})=>{const a=i();return Array.isArray(r)?r.length?e(Qm,{children:r.map(r=>t(Zm,{size:14,children:[r.value,e(Vd,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(bt,{size:12,onClick:e=>{e.stopPropagation(),n?.(r)}})]},`multi-label-${r.id}`))}):e(eg,{size:14,color:a.text.darker_grey,children:o}):e(eg,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||o})},rg=o.div`
1135
+ position: absolute;
1136
+ ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1137
+ left: 0;
1138
+ z-index: 1;
1139
+ display: flex;
1140
+ flex-direction: column;
1141
+ overflow-y: auto;
1142
+ width: calc(100% - 16px);
1143
+ max-height: 200px;
1144
+ gap: 8px;
1145
+ padding: 8px;
1146
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1147
+ border: 1px solid ${({theme:e})=>e.colors.border};
1148
+ border-radius: 24px;
1149
+ `,og=o.div`
1150
+ display: flex;
1151
+ flex-direction: column;
1152
+ align-items: center;
1153
+ `,ng=({openUpwards:r,options:o,value:n,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Ht(""),p=o.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(rg,{$openUpwards:r,children:[l&&t(og,{children:[e(Gm,{placeholder:"Search...",icon:It,value:c,onChange:e=>d(e.target.value)}),e(Vd,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(_u,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(ag,{option:t,value:n,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},ig=o.div`
1154
+ padding: 8px 12px;
1155
+ cursor: pointer;
1156
+ display: flex;
1157
+ justify-content: space-between;
1158
+ align-items: center;
1159
+ border-radius: 32px;
1160
+ &:hover,
1161
+ &.selected {
1162
+ background: ${({theme:e})=>e.colors.majestic_blue+Bc["024"]};
1163
+ }
1164
+ `,ag=({option:r,value:o,isMulti:n,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(o)?!!o?.find(e=>e.id===r.id):o?.id===r.id,d=e=>e?a?.(r):s?.(r);return n?e(ig,{className:c?"selected":"",onClick:()=>d(!c),children:e(Tp,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(ig,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(Pn,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Ti,{size:14,children:r.value})]}),c&&e(yt,{})]})},sg=o(Fn)`
1165
+ gap: 12px;
1166
+ `,lg=o(Pn)`
1167
+ width: 100%;
1168
+ gap: 12px;
1169
+ align-items: flex-end;
1170
+ `,cg=({clientX:r=0,flipX:o,clientY:n=0,flipY:a,isOpen:s,onClose:l,onSave:c,withDelete:d,onDelete:p,title:u,titleTooltip:h,warning:m,children:g})=>{const f=i(),{popupRef:y,popupPosition:x,handlePosition:b}=vd({onClickOutside:l});return fd({key:"Enter",active:s},c),Xt(()=>b(r,n),[r,n]),0===x.top&&0!==n||0===x.left&&0!==r?null:e(Qd,{ref:y,isOpen:s,top:a?void 0:x.top,bottom:a?x.top:void 0,left:o?void 0:x.left,right:o?x.left:void 0,padding:"24px",children:t(sg,{children:[e(ip,{text:h,withIcon:!0,children:e(Ti,{size:14,children:u})}),t(lg,{children:[g,t(Pn,{$gap:6,children:[e(lp,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(bt,{})}),e(lp,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(yt,{fill:f.text.primary})}),d&&e(lp,{onClick:p,tooltip:"Undo",children:e(Nt,{})})]})]}),m&&e(yp,{type:Vr.Warning,message:m})]})})},dg=o.div`
1171
+ position: relative;
1172
+ `,pg=({defaultLanguage:r=Ur.Unknown,defaultVersion:o="",defaultOtelDistroName:n=null,handleSave:i})=>{const{tier:a}=Ad(),{addNotification:s}=Cc(),{formData:l,handleFormChange:c,resetFormData:d}=ed({language:r,version:o,otelDistroName:n}),[p,u]=Ht(!1),h=()=>{u(!1),d()},m=Gt(()=>{if(!l.language)return[];const e=gc[l.language].community,t=a===zr.Onprem?gc[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(dg,{children:[e(lp,{tooltip:Do.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(Ct,{})}),e(cg,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||di(l.version)?(await i({...l}),h()):s({type:Vr.Warning,message:Ao.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Do.OVERRIDE_RUNTIME_DETAILS,warning:Do.OVERRIDE_RUNTIME_WARNING,children:t(Fn,{$gap:12,children:[t(Pn,{$gap:12,children:[e(Ym,{title:Do.LANGUAGE,options:hc,value:hc.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(Gm,{title:Do.RUNTIME_VERSION,placeholder:Do.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(Ym,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},ug=o(Pn)`
1173
+ width: 100%;
1174
+ justify-content: center;
1175
+ `,hg=({containerName:o,runtimeInfo:n,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??n,p=d?.language??Ur.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,y=m?Vr.Success:g?Vr.Info:Vr.Warning,x=m?Kr.INSTRUMENTED:g?Kr.NOT_INSTRUMENTED:Kr.INSTRUMENTING;return e(Cu,{title:o,subTitle:`${p?uc[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:zo(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(ug,{children:e(Ti,{size:12,family:"secondary",color:c.text.info,children:pi(g)})})},renderActions:()=>t(r,{children:[e(nu,{status:y,title:x,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(nu,{status:Vr.Default,forceIcon:Rt,title:Do.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(pg,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:o})})]})})},mg=o.tr`
1176
+ cursor: ${({$withHover:e})=>e?"pointer":"default"};
1177
+ opacity: ${({$faded:e})=>e?.5:1};
1178
+ `,gg=o.td`
1179
+ position: relative;
1180
+ width: fit-content;
1181
+ padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
1182
+ color: ${({theme:e})=>e.text.secondary};
1183
+ font-family: ${({theme:e})=>e.font_family.primary};
1184
+ font-size: 14px;
1185
+ white-space: nowrap;
1186
+ `,fg=o(Ti)`
1187
+ font-size: 14px;
1188
+ color: ${({$color:e,theme:t})=>e??t.text.secondary};
1189
+ line-height: 16px;
1190
+
1191
+ overflow: hidden;
1192
+ overflow-wrap: break-word;
1193
+ white-space: wrap;
1194
+ text-wrap: wrap;
1195
+ text-overflow: ellipsis;
1196
+ display: -webkit-box;
1197
+ -webkit-line-clamp: 2;
1198
+ -webkit-box-orient: vertical;
1199
+ `,yg=o.div`
1200
+ position: absolute;
1201
+ top: 0;
1202
+ left: 0;
1203
+ z-index: -1;
1204
+ width: ${({$width:e})=>e}px;
1205
+ height: ${({$height:e})=>e}px;
1206
+ border-radius: 16px;
1207
+ background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+Bc["020"]:e.colors.majestic_blue+Bc["030"]:r?e.text[r]+Bc["010"]:e.colors.secondary+Bc["005"]};
1208
+ `,xg=({index:r,columns:o,cells:n,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=ad(),[p,u]=Ht(!1);return e(mg,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:o.map(({key:o},i)=>{const s=n.find(({columnKey:e})=>e===o);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(gg,{$isFirst:0===i,children:[m?e(mu,{icon:m}):g?e(g,{}):e(ip,{text:h&&l?String(l):"",children:e(fg,{$color:u,children:ni(l)?"-":l})}),0===i&&e(yg,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${o}-${l}-${r}-${i}`)})})},bg=o.div`
1209
+ width: 100%;
1210
+ `,vg=o.table`
1211
+ position: relative;
1212
+ z-index: 0;
1213
+ width: 100%;
1214
+ border-collapse: separate;
1215
+ border-spacing: 0 12px;
1216
+ `,$g=o.thead`
1217
+ // only supported with "border-collapse: collapse;"
1218
+ // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1219
+ // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1220
+ `,wg=o.th`
1221
+ // only required with "border-collapse: separate;"
1222
+ border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1223
+ border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1224
+
1225
+ padding: 8px;
1226
+ `,Sg=o(Pn)`
1227
+ cursor: pointer;
1228
+ &:hover {
1229
+ * {
1230
+ color: ${({theme:e})=>e.text.secondary};
1231
+ }
1232
+ }
1233
+ `,kg=o(Ti)`
1234
+ color: ${({theme:e})=>e.text.darker_grey};
1235
+ font-family: ${({theme:e})=>e.font_family.secondary};
1236
+ text-transform: uppercase;
1237
+ font-size: 12px;
1238
+ font-weight: 500;
1239
+ text-wrap: nowrap;
1240
+ `,Cg=o.tbody``,Eg=({columns:r,rows:o})=>{const[n,i]=Ht(Lr.Ascending),[a,s]=Ht("name"),l=Kt(e=>{a===e?i(e=>e===Lr.Ascending?Lr.Descending:Lr.Ascending):(s(e),i(Lr.Ascending))},[a]),c=Gt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...o].sort((e,r)=>{const o=t(e,a),i=t(r,a);return(n===Lr.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o).map(({status:t,faded:o,cells:n,onClick:i},a)=>e(xg,{index:a,columns:r,cells:n,onClick:i,status:t,faded:o},`row-${a}`))},[r,o,a,n]);return e(bg,{children:t(vg,{children:[e($g,{children:e("tr",{children:r.map(({key:r,title:o,sortable:n})=>e(wg,{children:n?t(Sg,{onClick:()=>l(r),children:[e(Ot,{}),e(kg,{children:o})]}):e(kg,{children:o})},`column-${r}`))})}),e(Cg,{children:c})]})})};var Ag;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(Ag||(Ag={}));const Dg=o.div`
1241
+ display: flex;
1242
+ flex-wrap: wrap;
1243
+ gap: 16px 32px;
1244
+ width: 100%;
1245
+ `,Tg=o.div`
1246
+ display: flex;
1247
+ flex-direction: column;
1248
+ gap: 2px;
1249
+ width: ${({$width:e})=>e};
1250
+ `,Ig=o(Ti)`
1251
+ color: ${({theme:e})=>e.text.grey};
1252
+ font-size: 10px;
1253
+ line-height: 16px;
1254
+ `,Ng=o(Ti)`
1255
+ font-size: 12px;
1256
+ white-space: pre-wrap;
1257
+ `,Rg=({data:r})=>e(Dg,{children:r?.map(({type:r,title:o,titleIcon:n,tooltip:i,value:a},s)=>t(Tg,{$width:r&&[Ag.Code,Ag.Table].includes(r)?"inherit":r&&[Ag.Loader,Ag.Divider,Ag.CopyText].includes(r)?"100%":"unset",children:[e(ip,{text:i,withIcon:!0,children:t(Pn,{$alignItems:"center",$gap:4,children:[n&&e(n,{size:14}),!!o&&e(Ig,{transform:"capitalize",children:o})]})}),e(Og,{type:r,value:a})]},`data-field-${o||(a?JSON.stringify(a):s)}`))}),Og=({type:t,value:r})=>{const o=i();switch(t){case Ag.Divider:return e(Vd,{length:"100%",margin:"0"});case Ag.Loader:return e(Ln,{children:e(Xp,{scale:1.2})});case Ag.Monitors:return e(bu,{monitors:r?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Ag.Badge:{const{label:t,filled:o,...n}=ti(r,{label:"-",filled:!1});return e(qc,{label:t,filled:o,...n})}case Ag.Code:{const{language:t,code:o,...n}=ti(r,{language:"",code:""});return e(Mp,{language:t,code:o,...n})}case Ag.Table:{const{columns:t,rows:o,...n}=ti(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(Eg,{columns:t,rows:o,...n})}case Ag.ActiveStatus:return e(nu,{status:"true"==r?Vr.Success:Vr.Error,title:"true"==r?Do.ENABLED:Do.DISABLED,size:10,withIcon:!0,withBorder:!0});case Ag.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(su,{value:t})}default:return e(Ng,{children:xi("string"==typeof r?r||"-":"")})}},_g=o.div`
1258
+ display: flex;
1259
+ flex-direction: column;
1260
+ align-items: flex-start;
1261
+ align-self: stretch;
1262
+ gap: 16px;
1263
+ padding: 24px;
1264
+ border-radius: 24px;
1265
+ border: 1px solid ${({theme:e})=>e.colors.border};
1266
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Bc["010"]:"transparent"};
1267
+ transition: background-color 0.3s;
1268
+ `,Pg=o.div`
1269
+ width: 100%;
1270
+ display: flex;
1271
+ flex-direction: column;
1272
+ gap: 4px;
1273
+ cursor: ${({$clickable:e})=>e?"pointer":"default"};
1274
+ `,Fg=o(Ti)`
1275
+ width: 100%;
1276
+ display: flex;
1277
+ align-items: center;
1278
+ gap: 8px;
1279
+ font-size: 16px;
1280
+ `,Lg=o(Ti)`
1281
+ font-size: 12px;
1282
+ color: ${({theme:e})=>e.text.grey};
1283
+ `,zg=o(Pn)`
1284
+ margin-left: auto;
1285
+ gap: 8px;
1286
+ `,Mg=({title:r="Details",titleBadge:o,titleIcon:n,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Ht(l),[h,m]=Ht(!1);return t(_g,{$hovered:h,children:[r||n||i||a?t(Pg,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(Pn,{children:[t(Pn,{$alignItems:"center",$gap:8,children:[n&&e(Pn,{$alignItems:"center",children:e(n,{size:20})}),!!r&&e(Fg,{transform:"capitalize",children:r}),o===qr.Loading?e(Xp,{}):void 0!==o&&e(qc,{label:o})]}),(!!a||s)&&t(zg,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(Vp,{extend:p})]})]}),!!i&&e(Lg,{children:i})]}):null,(!s||s&&p)&&(d||e(Rg,{data:c}))]})},Bg=o.div`
1287
+ visibility: hidden;
1288
+ `,Ug=o(Pn)`
1289
+ align-self: stretch;
1290
+ width: calc(100% - 32px);
1291
+ padding: 16px;
1292
+ border-radius: 16px;
1293
+ background-color: ${({theme:e})=>e.colors.secondary+Bc["005"]};
1294
+ ${({theme:e,$withClick:t})=>t?n`
1295
+ &:hover {
1296
+ cursor: pointer;
1297
+ background-color: ${e.colors.secondary+Bc["010"]};
1298
+ ${Bg} {
1299
+ visibility: visible;
1300
+ }
1301
+ }
1302
+ `:`\n &:hover {\n ${Bg} {\n visibility: visible;\n }\n }\n `}
1303
+ `,jg=o(Pn)`
1304
+ margin-left: auto;
1305
+ gap: 8px;
1306
+ `,Wg=o(Ti)`
1307
+ font-size: 10px;
1308
+ color: ${({theme:e})=>e.text.grey};
1309
+ `,Hg=({title:o,subTitle:n,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Ht(0),h=Vt(null),m=Vt(null);return Xt(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(Ug,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(yu,{id:`${o}-${n}`,icons:a,iconSrcs:s}),o&&e(pu,{maxWidth:p/2,text:o,textSize:14}),o&&n&&e(Wg,{children:"•"}),n&&e(pu,{maxWidth:p/2,text:n,textSize:10,textColor:d.text.grey}),e(jg,{ref:m,children:c&&t(r,{children:[e(Vd,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},Xg=({isOpen:t,noOverlay:r,name:o,type:n,isLastItem:i,onApprove:a,onDeny:s})=>{const l=n===Wr.Source?"uninstrument":"delete";return e(Cp,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Vr.Warning,title:`You're about to ${l} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},Gg=o(Zc)`
1310
+ display: flex;
1311
+ align-items: center;
1312
+ justify-content: center;
1313
+ font-size: 14px;
1314
+ gap: 6px;
1315
+ min-width: 100px;
1316
+ `,Vg=({endpoint:r="/",variant:o="secondary"})=>t(Gg,{variant:o,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(_t,{size:18}),"Docs"]}),Kg=o(Pn)`
1317
+ border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1318
+ `,qg=o.div`
1319
+ display: flex;
1320
+ align-items: center;
1321
+ border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1322
+ cursor: pointer;
1323
+ `,Jg=o(Ti)`
1324
+ padding: 12px;
1325
+ font-size: 14px;
1326
+ color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1327
+ `,Yg=({tabs:r,hideBorder:o=!1})=>r?.length?e(Kg,{$hideBorder:o,children:r.map(({label:r,icon:o,onClick:n,selected:i})=>t(qg,{onClick:n,$selected:i,children:[e(Jg,{$selected:i,children:r}),o&&e(o,{})]},`tab-${r}`))}):null,Qg=o.section`
1328
+ padding: 0px 32px;
1329
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1330
+ `,Zg=o.div`
1331
+ height: 76px;
1332
+ display: flex;
1333
+ justify-content: space-between;
1334
+ flex-shrink: 0;
1335
+ align-self: stretch;
1336
+ `,ef=o.div`
1337
+ display: flex;
1338
+ align-items: center;
1339
+ gap: ${({$gap:e})=>e||16}px;
1340
+ `,tf=o(Ti)`
1341
+ font-size: 18px;
1342
+ line-height: 26px;
1343
+ max-width: ${({$maxWidth:e})=>e};
1344
+ overflow: hidden;
1345
+ white-space: nowrap;
1346
+ text-overflow: ellipsis;
1347
+ `,rf=o(Zc)`
1348
+ gap: 8px;
1349
+ `,of=o(Zc)``,nf=({onClose:r,width:o,icons:n,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(Qg,{children:[t(Zg,{children:[t(ef,{children:[n?.length||i?.length?e(yu,{icons:n,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(ip,{text:s||a,withIcon:!!s,children:a&&e(tf,{$maxWidth:`calc(${o} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(ef,{$gap:2,children:[c,d.map((t,r)=>e(rf,{...t},`header-action-button-${r}`)),e(of,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(bt,{size:12})})]})]}),e(Yg,{tabs:p,hideBorder:!0})]}),af=o.div`
1350
+ display: flex;
1351
+ justify-content: space-between;
1352
+ gap: 8px;
1353
+ padding: 24px 18px 24px 32px;
1354
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
1355
+ background-color: ${({theme:e})=>e.colors.translucent_bg};
1356
+ transform: translateY(100%);
1357
+ animation-name: ${jc.in.bottom};
1358
+ `,sf=o(Pn)`
1359
+ margin-right: auto;
1360
+ `,lf=o(Pn)`
1361
+ margin: 0 auto;
1362
+ `,cf=o(Pn)`
1363
+ margin-left: auto;
1364
+ `,df=o(Zc)`
1365
+ min-width: 140px;
1366
+ font-size: 14px;
1367
+ `,pf=({isOpen:r,leftButtons:o=[],centerButtons:n=[],rightButtons:i=[]})=>r?t(af,{children:[e(sf,{children:o.map((t,r)=>e(df,{...t},`footer-left-button-${r}`))}),e(lf,{children:n.map((t,r)=>e(df,{...t},`footer-center-button-${r}`))}),e(cf,{children:i.map((t,r)=>e(df,{...t},`footer-right-button-${r}`))})]}):null,uf=o.div`
1368
+ position: fixed;
1369
+ top: 0;
1370
+ bottom: 0;
1371
+ ${({$position:e})=>e}: 0;
1372
+ z-index: 1000;
1373
+ width: ${({$width:e})=>e};
1374
+ background: ${({theme:e})=>e.colors.translucent_bg};
1375
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Bc["010"]};
1376
+ overflow-y: auto;
1377
+ animation-name: ${({$position:e})=>jc.in[e]};
1378
+ `,hf=o.div`
1379
+ display: flex;
1380
+ flex-direction: column;
1381
+ height: 100%;
1382
+ `,mf=o.div`
1383
+ flex-grow: 1;
1384
+ padding: 24px 32px;
1385
+ overflow-y: auto;
1386
+ `,gf=({isOpen:o,onClose:n,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(fd({key:"Escape",active:o&&i},()=>n()),od(o),o?pr.createPortal(t(r,{children:[e(Mn,{hidden:!o,onClick:n}),e(uf,{"data-id":"drawer",$position:a,$width:s,children:t(hf,{children:[e(nf,{onClose:n,width:s,...c}),e(mf,{children:l}),e(pf,{...d})]})})]}),document.body):null),ff=({error:r})=>{const o=i(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:n.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:n.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:n.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:n.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:n.infoText,children:"Try refreshing the page or contact support"}),e(Zc,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},yf=({children:t})=>e(gr,{FallbackComponent:({error:t,...r})=>e(Mc,{children:e(ff,{...r,error:t})}),children:t}),xf=o(Pn)`
1387
+ position: relative;
1388
+ width: calc(100% - 24px);
1389
+ padding: 12px;
1390
+ background-color: ${({theme:e})=>e.colors.dark_grey};
1391
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+Bc["050"]};
1392
+ `,bf=o(Pn)`
1393
+ margin-right: auto;
1394
+ margin-left: 32px;
1395
+ gap: 12px;
1396
+ `,vf=o(Pn)`
1397
+ margin-left: auto;
1398
+ margin-right: 32px;
1399
+ gap: 12px;
1400
+ `,$f=o(Pn)`
1401
+ position: absolute;
1402
+ left: 50%;
1403
+ transform: translateX(-50%);
1404
+ gap: 12px;
1405
+ `,wf=({left:r=[],center:o=[],right:n=[]})=>t(xf,{children:[e(bf,{children:r.map((t,r)=>t&&e(Wt,{children:t},r))}),e($f,{children:o.map((t,r)=>t&&e(Wt,{children:t},r))}),e(vf,{children:n.map((t,r)=>t&&e(Wt,{children:t},r))})]}),Sf=o(Ti)`
1406
+ color: ${({theme:e})=>e.text.grey};
1407
+ `,kf=({icon:r,title:o,badge:n,badgeTooltip:i,loading:a})=>t(Pn,{$gap:6,children:[r&&e(r,{}),e(Sf,{size:14,children:o}),void 0!==n&&e(ip,{text:i,children:e(qc,{label:n})}),a&&e(Xp,{})]}),Cf=o.div`
1408
+ width: fit-content;
1409
+ height: fit-content;
1410
+ padding: 4px;
1411
+ gap: 4px;
1412
+ border-radius: 32px;
1413
+ border: 1px solid ${({theme:e})=>e.colors.border+Bc["070"]};
1414
+
1415
+ display: flex;
1416
+ flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1417
+ align-items: center;
1418
+ justify-content: center;
1419
+ `,Ef=o.div`
1420
+ width: 32px;
1421
+ height: 32px;
1422
+
1423
+ border-radius: 100%;
1424
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Bc["070"]:e.colors.secondary+Bc["012"]};
1425
+ transition: background-color 0.3s;
1426
+
1427
+ display: flex;
1428
+ align-items: center;
1429
+ justify-content: center;
1430
+
1431
+ cursor: pointer;
1432
+ `,Af=({orientation:r="vertical",flip:o,mainIcons:n,subIcons:i})=>t(Cf,{$orientation:r,$flip:o,children:[n.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(ip,{text:n,children:e(Ef,{$selected:r,onClick:o,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!n.length&&!!i.length&&e(Vd,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(ip,{text:n,children:e(Ef,{$selected:r,onClick:o,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),Df=o.div`
1433
+ display: flex;
1434
+ flex-direction: column;
1435
+ width: 100%;
1436
+ `,Tf=o.div`
1437
+ display: flex;
1438
+ flex-direction: column;
1439
+ gap: 8px;
1440
+ `,If=o.div`
1441
+ display: flex;
1442
+ align-items: center;
1443
+ gap: 16px;
1444
+ `,Nf=o(lp)`
1445
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1446
+ opacity: ${({$disabled:e})=>e?.5:1};
1447
+ `,Rf=({initialValues:r=[],value:o,onChange:n,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Ht(o||r);Xt(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Vt(JSON.stringify(p));Xt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,n&&n(p))},[p]);const h=(e,t)=>{d(r=>{const o=[...r];return o[t]=e,o})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(Df,{children:[e(Mm,{title:i,required:s,tooltip:a}),e(Tf,{children:c.map((r,o)=>{const n=o===c.length-1;return t(If,{children:[e(Gm,{value:r,onChange:e=>h(e.target.value,o),hasError:!!l,autoFocus:ni(r)&&!m&&n}),o===c.length-1&&e(Nf,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(kt,{})}),e(Nf,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(o),children:e(Nt,{})})]},`input-list-${o}`)})}),!!l&&e(Ri,{children:l})]})},Of=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:s,errorMessage:l,limitFieldsPerRow:c})=>{const{keyName:d,title:p,tooltip:u,placeholder:h,required:m,type:g,componentType:f,options:y,renderCondition:x}=t,b=o[d];if(x&&!x(o))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Xr.Dropdown:const t=y?.find(e=>e.id===b);return e(Ym,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:t,onSelect:e=>s(d,e.id,n),onDeselect:()=>s(d,"",n),hasError:!!l&&(!m||m&&ni(b))});case"multi-dropdown":const o=Array.isArray(b)&&y?.filter(e=>b.includes(e.id))||[];return e(Ym,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,n)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,n)},hasError:!!l&&(!m||m&&ni(b))});default:const f=i>1&&n===i-1&&0===r&&ni(b);return e(Gm,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,type:g,required:m,autoFocus:f,value:b,onChange:({target:{value:e}})=>s(d,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&ni(b))})}})()},`input-table-${n}-${d}`)},_f=o.div`
1448
+ display: flex;
1449
+ flex-direction: column;
1450
+ width: 100%;
1451
+ `,Pf=o.button`
1452
+ margin-top: ${({$marginTop:e})=>e};
1453
+ background: none;
1454
+ border: none;
1455
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1456
+ opacity: ${({disabled:e})=>e?.5:1};
1457
+ `,Ff=({columns:r,initialValues:o=[],value:n,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Ht({}),[p,u]=Ht(n||o),h=Gt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Xt(()=>{if(!p.length){const e={};r.forEach(({keyName:t})=>e[t]=""),d(e),u([e])}},[]);const m=p.filter(e=>{for(const[t,r]of Object.entries(e)){const o=h.get(t);if((!o?.renderCondition||o.renderCondition(e))&&(o?.required&&ni(r)))return!1}return!0}),g=Vt(JSON.stringify(m)),f=m.length!==p.length,y=`${Math.floor(640/((s||r.length)+.4))}px`;Xt(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const x=(e,t,r)=>{u(o=>{const n=wr(o);return n[r][e]=t,n})},b=Gt(()=>{if(s){const e=[];for(let t=0;;t+=s){const o=r.slice(t,t+s);if(!o.length)break;e.push(o)}return e}return[r]},[s,r]);return t(_f,{children:[e(Mm,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:o})=>e("th",{style:{maxWidth:y},children:e(Mm,{title:t,required:o,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((o,n)=>t(Wt,{children:[s&&n>0?e("tr",{children:e("td",{colSpan:b.length,children:e(Vd,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(Of,{col:t,colIdx:r,row:o,rowIdx:n,rowsLength:p.length,maxWidth:y,limitFieldsPerRow:s,errorMessage:a,handleChange:x},`input-table-row-${n}-col-${r}`)),0===l&&e("td",{children:e(Pf,{$marginTop:s?"24px":"0",onClick:()=>{return e=n,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>x(t,r===Gr.Number?"0":"",e)));var e},children:e(Nt,{})})})]},`input-table-matrix-${n}-${l}`))]},`input-table-row-${n}`))})]}),!!a&&e(Ri,{children:a}),e(iu,{onClick:()=>{u(e=>{const t=wr(e);return t.push(wr(c)),t})},disabled:f})]})},Lf=o.div`
1458
+ display: flex;
1459
+ flex-direction: column;
1460
+ width: 100%;
1461
+ `,zf=o.div`
1462
+ display: flex;
1463
+ flex-direction: column;
1464
+ gap: 8px;
1465
+ `,Mf=o.div`
1466
+ display: flex;
1467
+ align-items: center;
1468
+ gap: 8px;
1469
+ `,Bf=o.div`
1470
+ width: 100%;
1471
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1472
+ `,Uf=o(lp)`
1473
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1474
+ opacity: ${({$disabled:e})=>e?.5:1};
1475
+ `,jf={key:"",value:""},Wf=({initialKeyValuePairs:r=[],value:o,onChange:n,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Ht(o||r);Xt(()=>{h.length||m([{...jf}])},[]);const g=h.filter(({key:e,value:t})=>!ni(e.trim())&&!ni(t.trim())),f=Vt(JSON.stringify(g));Xt(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,n&&n(g))},[g]);const y=(e,t,r)=>{m(o=>{const n=[...o];return n[r][e]=t,n})},x=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||x&&b;return t(Lf,{children:[e(Mm,{title:i,required:l,tooltip:a}),e(zf,{children:h.map(({key:r,value:o},n)=>t(Mf,{children:[e(Bf,{$maxWidth:u,children:e(Gm,{placeholder:d,disabled:s,value:r,onChange:e=>y("key",e.target.value,n),hasError:!!c&&(!l||l&&!r),autoFocus:ni(o)&&!x&&n===h.length-1})}),e(Bf,{$maxWidth:n===h.length-1?u-38:u,children:e(Gm,{placeholder:p,disabled:s,value:o,onChange:e=>y("value",e.target.value,n),hasError:!!c&&(!l||l&&ni(o)),autoFocus:!1})}),n===h.length-1&&e(Uf,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...jf}),t})},children:e(kt,{})}),e(Uf,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{x?(y("key","",e),y("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(n),children:e(Nt,{})})]},`key-value-input-list-${n}`))}),!!c&&e(Ri,{children:c})]})},Hf=a`
1476
+ 0% {
1477
+ background-position: 0% 50%;
1478
+ }
1479
+ 100% {
1480
+ background-position: 100% 50%;
1481
+ }
1482
+ `,Xf=o(Ti)`
1483
+ background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1484
+ background-size: 250% 100%; /* Expand background to allow movement */
1485
+ background-clip: text;
1486
+ color: transparent;
1487
+ animation: ${Hf} 1s reverse linear infinite;
1488
+ `,Gf=({children:t="Loading...",textColor:r,stripColor:o,...n})=>{const a=i(),s=r||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(Xf,{$textColor:s,$stripColor:l,...n,children:t})},Vf=o.div`
1489
+ display: flex;
1490
+ flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1491
+ gap: ${({$isVertical:e})=>e?"12px":"24px"};
1492
+ ${({$hasError:e})=>e&&n`
1493
+ border: 1px solid ${({theme:e})=>e.text.error};
1494
+ border-radius: 32px;
1495
+ padding: 8px;
1496
+ `}
1497
+ `,Kf=(e,t)=>!t?.length||!!t?.find(t=>t===e),qf=({isVertical:r,title:o="Monitors",required:n,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Ht(1===s.length),p=Vt(JSON.stringify(s));Xt(()=>{const e=s;e.length||pc.forEach(({id:t})=>{Kf(t,a)&&e.push(t)});const t=JSON.stringify(e);return p.current!==t&&(p.current=t,l(e),d(1===e.length)),()=>{p.current=""}},[a]);return t("div",{children:[o&&e(Mm,{title:o,required:n}),e(Vf,{$isVertical:r,$hasError:!!i,children:pc.map(t=>{const r=Kf(t.id,a),o=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(Tp,{title:t.value,disabled:!r||c&&o,value:o,onChange:e=>((e,t)=>{const r=e,o=t?[...s,r]:s.filter(e=>e!==r);l(o),d(1===o.length)})(t.id,e)},t.id):null})}),!!i&&e(Ri,{children:i})]})},Jf=o.div`
1498
+ display: flex;
1499
+ gap: 8px;
1500
+ align-items: center;
1501
+ `,Yf=o(Zc)`
1502
+ display: flex;
1503
+ align-items: center;
1504
+ justify-content: center;
1505
+ gap: 8px;
1506
+ min-width: 90px;
1507
+ `,Qf=({buttons:r})=>{const o=i(),n=({button:e,index:t})=>r.length>1&&0===t&&(e.icon||e.iconSrc),a=({button:t,rotate:r})=>t.icon?e(t.icon,{size:14,rotate:r,fill:o.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(Jf,{children:r.map((r,o)=>e(ip,{text:r.tooltip||"",children:t(Yf,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[n({button:r,index:o})&&a({button:r,rotate:0}),r.label,!n({button:r,index:o})&&a({button:r,rotate:180})]},o)},o))})},Zf=o.div`
1508
+ width: 100%;
1509
+ height: 100%;
1510
+
1511
+ * {
1512
+ animation: none !important;
1513
+ transition: none !important;
1514
+ }
1515
+ `,ey=({width:t="100%",height:r="100%",gap:o=0,elements:n,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Vt(null),l=Gt(()=>o?n.map((t,r)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${r}`)):n,[n,o]),c=Kt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(yr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(Zf,{children:d}):d},ty=o.div`
1516
+ display: flex;
1517
+ justify-content: space-between;
1518
+ align-items: center;
1519
+ gap: 16px;
1520
+ `,ry=o.div`
1521
+ display: flex;
1522
+ flex-direction: column;
1523
+ gap: 4px;
1524
+ `,oy=o.div`
1525
+ display: flex;
1526
+ align-items: center;
1527
+ gap: 8px;
1528
+ `,ny=o(Ti)``,iy=o(Ti)``,ay=({title:r,description:o,badgeLabel:n,icon:i,actionButton:a,size:s="medium"})=>{const l="small"===s?16:"medium"===s?20:24,c="small"===s?12:"medium"===s?14:16;return t(ty,{children:[t(ry,{children:[t(oy,{children:[i&&e(i,{size:l}),e(ny,{weight:300,size:l,children:r}),void 0!==n&&e(qc,{label:n,filled:!!n})]}),e(iy,{weight:200,opacity:.8,size:c,children:o})]}),a&&e("div",{children:a})]})},sy=o.div`
1529
+ position: relative;
1530
+ gap: 0;
1531
+ z-index: 0;
1532
+ display: grid;
1533
+ grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1534
+ `,ly=o.button`
1535
+ flex: 1;
1536
+ display: flex;
1537
+ align-items: center;
1538
+ justify-content: center;
1539
+ gap: 4px;
1540
+ padding: 6px 12px;
1541
+ background-color: transparent;
1542
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1543
+ border: 1px solid ${({theme:e})=>e.colors.border};
1544
+ cursor: pointer;
1545
+ &:hover {
1546
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
1547
+ }
1548
+ `,cy=o.div`
1549
+ position: absolute;
1550
+ top: ${({$y:e})=>e}px;
1551
+ left: ${({$x:e})=>e}px;
1552
+ z-index: -1;
1553
+ width: ${({$width:e})=>e}px;
1554
+ height: ${({$height:e})=>e}px;
1555
+ background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1556
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1557
+ transition: all 0.3s;
1558
+ `,dy=({options:r=[],selected:o,setSelected:n})=>{const i=r.findIndex(e=>e.value===o),[a,s]=Ht(r[i]?.selectedBgColor||""),[l,c]=Ht({width:0,height:0}),[d,p]=Ht({x:0,y:0}),u=Vt(null);return Xt(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[o,i]),t(sy,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=o===l;return t(ly,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{n(l),s(c||"")},children:[i&&e(i,{}),a&&e(Ti,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(cy,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},py=o(Zc)`
1559
+ gap: 8px;
1560
+ text-transform: none;
1561
+ text-decoration: none;
1562
+ border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1563
+ &.not-selected {
1564
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Bc["060"]};
1565
+ &:hover {
1566
+ background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1567
+ }
1568
+ }
1569
+ &.selected {
1570
+ background-color: ${({theme:e})=>e.colors.majestic_blue+Bc["030"]};
1571
+ }
1572
+ `,uy=o(Ti)`
1573
+ white-space: nowrap;
1574
+ overflow: hidden;
1575
+ text-overflow: ellipsis;
1576
+ font-size: 14px;
1577
+ `,hy=({label:r,onClick:o,icon:n,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(py,{onClick:o,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[n&&e("div",{children:e(n,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(uy,{children:r}),c&&e("div",{children:e(yt,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(qc,{label:s,filled:l||c})]})},my=o.div`
1578
+ display: flex;
1579
+ flex-direction: column;
1580
+ gap: 16px;
1581
+ ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1582
+ `,gy=o.div`
1583
+ display: flex;
1584
+ align-items: center;
1585
+ gap: 16px;
1586
+ `,fy=o.div`
1587
+ width: 50px;
1588
+ height: 50px;
1589
+ border-radius: 8px;
1590
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1591
+ background-size: 200% 100%;
1592
+ animation: ${Xc} 10s infinite linear;
1593
+ `,yy=o(Fn)`
1594
+ flex: 1;
1595
+ gap: 12px;
1596
+ `,xy=o.div`
1597
+ width: ${({$width:e})=>e};
1598
+ height: 16px;
1599
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1600
+ background-size: 200% 100%;
1601
+ animation: ${Xc} 1.5s infinite linear;
1602
+ border-radius: 4px;
1603
+ `,by=({size:r=5,maxWidth:o})=>e(my,{$maxWidth:o,children:[...Array(r)].map((r,o)=>t(gy,{children:[e(fy,{}),t(yy,{children:[e(xy,{$width:"80%"}),e(xy,{$width:"100%"})]})]},o))});var vy;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(vy||(vy={}));const $y=o.div`
1604
+ display: flex;
1605
+ flex-direction: column;
1606
+ gap: 32px;
1607
+ `,wy=o.div`
1608
+ display: flex;
1609
+ gap: 16px;
1610
+ padding: 8px;
1611
+ opacity: ${({$state:e})=>e===vy.Active?1:e===vy.Disabled?.5:.8};
1612
+ transition: all 0.3s;
1613
+ `,Sy=o(Pn)`
1614
+ justify-content: center;
1615
+ width: 24px;
1616
+ height: 24px;
1617
+ border-radius: 32px;
1618
+ border: ${({theme:e,$state:t})=>t===vy.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1619
+ opacity: ${({$state:e})=>e===vy.Finished?.8:1};
1620
+ `,ky=o(Fn)`
1621
+ justify-content: center;
1622
+ gap: 8px;
1623
+ `,Cy=o(Ti)``,Ey=o(Ti)``,Ay=({data:r,currentStep:o=0})=>{const[n,i]=Ht([]);return Xt(()=>{i(r.map((e,t)=>t<o-1?{...e,state:vy.Finished,subtitle:e.subtitle||Vr.Success}:t===o-1?{...e,state:vy.Active,subtitle:""}:{...e,state:vy.Disabled,subtitle:""}))},[o,r]),e($y,{children:n.map((r,o)=>t(wy,{$state:r.state,children:[e(Sy,{$state:r.state,children:[vy.Active,vy.Disabled].includes(r.state)?e(Ti,{size:12,children:r.stepNumber}):r.state===vy.Finished?e(yt,{size:20}):null}),t(ky,{children:[e(Cy,{family:"secondary",children:r.title}),r.subtitle&&e(Ey,{size:10,weight:300,children:r.subtitle})]})]},o))})},Dy=o(Pn)`
1624
+ width: fit-content;
1625
+ gap: 6px;
1626
+ padding: 6px 12px;
1627
+ border-radius: 360px;
1628
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
1629
+ `,Ty=o(Ti)`
1630
+ color: ${({$type:e,theme:t})=>t.text[e]};
1631
+ `,Iy=({type:r=Vr.Info,icon:o,title:n,size:i,family:a,children:s,...l})=>t(Dy,{$type:r,children:[o&&e(o,{}),e(Ty,{$type:r,size:i||12,family:a||"secondary",...l,children:s||n})]}),Ny=o.div`
1632
+ display: flex;
1633
+ flex-direction: column;
1634
+ position: relative;
1635
+ width: 100%;
1636
+ `,Ry=o.div`
1637
+ width: 100%;
1638
+ display: flex;
1639
+ align-items: center;
1640
+ gap: 12px;
1641
+ transition: border-color 0.3s;
1642
+ border-radius: 24px;
1643
+ border: 1px solid ${({theme:e})=>e.colors.border};
1644
+ ${({$disabled:e})=>e&&n`
1645
+ background-color: ${({theme:e})=>e.colors.border};
1646
+ cursor: not-allowed;
1647
+ opacity: 0.6;
1648
+ `}
1649
+
1650
+ ${({$hasError:e})=>e&&n`
1651
+ border-color: ${({theme:e})=>e.text.error};
1652
+ `}
1653
+
1654
+ ${({$isActive:e})=>e&&n`
1655
+ border-color: ${({theme:e})=>e.colors.secondary};
1656
+ `}
1657
+
1658
+ &:hover {
1659
+ border-color: ${({theme:e})=>e.colors.secondary};
1660
+ }
1661
+ &:focus-within {
1662
+ border-color: ${({theme:e})=>e.colors.secondary};
1663
+ }
1664
+ `,Oy=o.textarea`
1665
+ flex: 1;
1666
+ border: none;
1667
+ outline: none;
1668
+ background: none;
1669
+ color: ${({theme:e})=>e.text.secondary};
1670
+ font-size: 14px;
1671
+ padding: 12px 20px 0;
1672
+ font-family: ${({theme:e})=>e.font_family.primary};
1673
+ font-weight: 300;
1674
+ line-height: 22px;
1675
+ &::placeholder {
1676
+ color: ${({theme:e})=>e.text.secondary};
1677
+ font-family: ${({theme:e})=>e.font_family.primary};
1678
+ opacity: 0.4;
1679
+ font-size: 14px;
1680
+ font-weight: 300;
1681
+ line-height: 22px; /* 157.143% */
1682
+ }
1683
+
1684
+ &:disabled {
1685
+ background-color: ${({theme:e})=>e.colors.border};
1686
+ cursor: not-allowed;
1687
+ }
1688
+ `,_y=({errorMessage:r,title:o,tooltip:n,required:i,onChange:a,name:s,...l})=>{const c=Vt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Ny,{children:[e(Mm,{title:o,required:i,tooltip:n}),e(Ry,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(Oy,{ref:c,"data-id":s,name:s,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{e.stopPropagation(),d(!0),a?.(e)},onKeyDown:e=>{e.stopPropagation()},...l})}),!!r&&e(Ri,{children:r})]})},Py=o.div`
1689
+ display: flex;
1690
+ align-items: center;
1691
+ gap: 12px;
1692
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1693
+ opacity: ${({$disabled:e})=>e?.6:1};
1694
+ `,Fy=o.div`
1695
+ width: 24px;
1696
+ height: 12px;
1697
+ border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
1698
+ border-radius: 20px;
1699
+ display: flex;
1700
+ align-items: center;
1701
+ padding: 2px;
1702
+ background-color: transparent;
1703
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
1704
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1705
+ opacity: ${({$isActive:e})=>e?1:.5};
1706
+ transition: border-color 0.3s, opacity 0.3s;
1707
+ &::before {
1708
+ content: '';
1709
+ width: 12px;
1710
+ height: 12px;
1711
+ border-radius: 50%;
1712
+ background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
1713
+ transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1714
+ transition: background-color 0.3s, transform 0.3s;
1715
+ }
1716
+ `,Ly=({title:r,tooltip:o,initialValue:n=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Ht(n);Xt(()=>d(n),[n]);return t(Py,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(Fy,{$disabled:a,$isActive:c}),(r||o)&&e(ip,{text:o,withIcon:!0,children:r&&e(Ti,{size:14,children:r})}),l&&e(Fy,{$disabled:a,$isActive:c})]})};var zy={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const My=o.div`
1717
+ width: ${({$width:e})=>e}px;
1718
+ height: ${({$height:e})=>e}px;
1719
+ position: relative;
1720
+ `,By=({width:t=620})=>{const{darkMode:r}=i(),o=t/(620/220);return e(My,{$width:t,$height:o,children:e(fr,{autoplay:!0,loop:!0,animationData:zy,style:{width:o,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:r?"invert(0)":"invert(1)"}})})},Uy=o.div`
1721
+ display: flex;
1722
+ align-items: center;
1723
+ justify-content: center;
1724
+ gap: 4px;
1725
+ min-width: ${({$minWidth:e})=>e};
1726
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
1727
+ padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1728
+ border-radius: 100px;
1729
+ background-color: ${({$backgroundColor:e})=>e};
1730
+ `,jy=({label:r,leftIcon:o,rightIcon:n,tooltip:a,status:s=Jr.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:p,backgroundColor:u,minWidth:h="unset",fullWidth:m=!1})=>{const g=i(),f=r?.toString(),y=s?[Jr.Disabled].includes(s)?nn(g,s,c?"400":"700"):[Jr.Unknown].includes(s)?nn(g,s,"600"):nn(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],x=p||(c&&![Jr.Unknown].includes(s)?y:[Jr.Disabled].includes(s)?g.v2.colors.grey[400]:[Vr.Error,Vr.Warning,Vr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![Jr.Unknown].includes(s)?[Jr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:y);return e(ip,{text:a,fullWidth:m,children:t(Uy,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[o&&e(o,{fill:x,size:14}),f&&e(hn,{color:x,size:d||ln.XXS,nowrap:!0,children:f}),n&&e(n,{fill:x,size:14})]})})},Wy=o.span`
1731
+ font-family: ${({theme:e})=>e.font_family.primary};
1732
+ font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1733
+ font-weight: 400;
1734
+ color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1735
+ `,Hy=o.span`
1736
+ font-family: ${({theme:e})=>e.font_family.primary};
1737
+ font-size: 14px;
1738
+ font-weight: 400;
1739
+ color: ${({theme:e})=>e.v2.colors.red[500]};
1740
+ `,Xy=({label:r,tooltip:o,required:n,badge:i,width:a,smallAndDark:s})=>r||o||n?t(Pn,{$width:a,$justifyContent:"space-between",children:[r&&e(Wy,{$smallAndDark:s,children:r}),t(Pn,{$gap:4,children:[i&&e(jy,{...i,textSize:ln.XXXS}),n&&e(Hy,{children:"*"}),o&&e(ip,{text:o,withIcon:!0})]})]}):null,Gy=({errorMessage:r,warnMessage:o,helpMessage:n})=>{const a=i(),s=r?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(ot,{size:12,fill:s});return r||o||n?t(Pn,{$alignItems:"center",children:[l&&e(Fn,{children:l}),e(hn,{size:ln.XXS,weight:400,color:s,children:r||o||n})]}):null},Vy=o.div`
1741
+ padding: ${({$small:e})=>e?"4px":"6px 12px"};
1742
+
1743
+ display: flex;
1744
+ align-self: stretch;
1745
+ align-items: center;
1746
+ gap: 8px;
1747
+ border-radius: 6px;
1748
+
1749
+ border: 1px solid ${({theme:e,$disabled:t,$error:r})=>t?e.v2.colors.grey[600]:r?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1750
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1751
+ ${({$disabled:e,$error:t})=>!e&&!t&&n`
1752
+ &:hover,
1753
+ &:active,
1754
+ &:focus-within {
1755
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1756
+ }
1757
+ `}
1758
+ `,Ky=o.input`
1759
+ max-width: ${({$maxWidth:e})=>e||"unset"};
1760
+ width: ${({$width:e})=>e||"unset"};
1761
+
1762
+ flex: 1;
1763
+ font-family: ${({theme:e})=>e.font_family.primary};
1764
+ font-size: ${({$small:e})=>e?"12px":"14px"};
1765
+ font-weight: 400;
1766
+
1767
+ cursor: text;
1768
+ color: ${({theme:e})=>e.v2.colors.white[500]};
1769
+ &::placeholder {
1770
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
1771
+ }
1772
+
1773
+ &:disabled {
1774
+ cursor: not-allowed;
1775
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
1776
+ &::placeholder {
1777
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
1778
+ }
1779
+ }
1780
+
1781
+ overflow: hidden;
1782
+ text-overflow: ellipsis;
1783
+ white-space: nowrap;
1784
+ `,qy=o.div`
1785
+ display: flex;
1786
+ align-items: center;
1787
+ justify-content: center;
1788
+ cursor: pointer;
1789
+ `,Jy=({label:r,required:o,tooltip:n,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Gr.Text,name:m,value:g,onChange:f,disabled:y,maxWidth:x,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Gr.Password,[C,E]=Ht(!1),[A,D]=Ht(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:y?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(Fn,{$width:b,$gap:6,children:[e(Xy,{label:r,tooltip:n,required:o,badge:a}),t(Vy,{$small:v,$disabled:y,$error:T,onClick:y?void 0:$,children:[s?e(s,{size:N,fill:I}):null,e(Ky,{"data-id":m,type:C||h===Gr.Number?Gr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Gr.Number&&(e.target.value=fi(t),t&&t!==e.target.value?D("Please enter a valid number"):D(null)),f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:x,$width:b,$small:v,...w}),k?e(qy,{onClick:()=>E(e=>!e),children:e(C?Dt:Tt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(Gy,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var Yy,Qy;!function(e){e.S="s",e.L="l"}(Yy||(Yy={})),function(e){e.Filled="filled",e.Underline="underline"}(Qy||(Qy={}));const Zy=o.div`
1790
+ display: flex;
1791
+ align-items: center;
1792
+ gap: 2px;
1793
+ padding: 3px;
1794
+ border-radius: 8px;
1795
+ border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1796
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1797
+ `,ex=o.button`
1798
+ flex: 1;
1799
+ display: flex;
1800
+ align-items: center;
1801
+ justify-content: center;
1802
+ gap: 8px;
1803
+ padding: ${({$size:e})=>e===Yy.S?"4px 8px":"8px 16px"};
1804
+ border-radius: 6px;
1805
+ border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
1806
+ box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1807
+
1808
+ ${({$disabled:e,$isSelected:t,$selectedBgColor:r,theme:o})=>e?n`
1809
+ cursor: not-allowed;
1810
+ background-color: ${t?(r||o.v2.colors.black[500])+Bc["040"]:"transparent"};
1811
+ `:n`
1812
+ cursor: pointer;
1813
+ background-color: ${t?r||o.v2.colors.black[500]:"transparent"};
1814
+ &:hover {
1815
+ background-color: ${t?r||o.v2.colors.black[500]:o.v2.colors.silver[800]};
1816
+ }
1817
+ `}
1818
+ `,tx=o.div`
1819
+ display: flex;
1820
+ align-items: stretch;
1821
+ `,rx=o.button`
1822
+ display: flex;
1823
+ height: 34px;
1824
+ padding: 8px 12px 8px 16px;
1825
+ justify-content: center;
1826
+ align-items: center;
1827
+ gap: 8px;
1828
+ border: none;
1829
+ border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
1830
+ border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
1831
+ background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
1832
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1833
+ transition:
1834
+ border-color 0.2s,
1835
+ background-color 0.2s,
1836
+ border-radius 0.2s;
1837
+ &:hover {
1838
+ border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
1839
+ }
1840
+ `,ox=({"data-id":o,size:n=Yy.L,variant:a=Qy.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===Qy.Underline,h=u?rx:ex;return e(u?tx:Zy,{"data-id":o,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:m,selectedBorderColor:g,disabled:f},y)=>{const x=l===o,b=f||d,v=b?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],$=n===Yy.S?ln.XXS:ln.XS,w=x?500:400,S=t(r,{children:[a&&e(a,{fill:v}),i&&e(hn,{size:$,weight:w,color:v,nowrap:!0,children:i})]});return e(h,{onClick:()=>!b&&c(o),$disabled:b,$isSelected:x,$size:n,...!u&&{$selectedBgColor:m,$selectedBorderColor:g},children:s?e(ip,{text:s,withIcon:!0,children:S}):S},`segment-${i||y}-${o}`)})})},nx=o.div`
1841
+ box-sizing: border-box !important;
1842
+ width: ${({$width:e})=>e??"fit-content"};
1843
+ padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
1844
+ display: flex;
1845
+ align-self: stretch;
1846
+ align-items: center;
1847
+ gap: 8px;
1848
+ overflow: hidden;
1849
+ border-radius: 6px;
1850
+
1851
+ border: none;
1852
+ border-radius: 6px;
1853
+ background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:o,theme:n})=>{const i=r??n.v2.colors.silver[800],a=o??n.v2.colors.silver[700];return e||t?a:i}};
1854
+ `,ix=o.input`
1855
+ min-width: 0;
1856
+ flex: 1;
1857
+ font-family: ${({theme:e})=>e.font_family.primary};
1858
+ font-size: 14px;
1859
+ font-weight: 400;
1860
+ line-height: 20px;
1861
+
1862
+ cursor: text;
1863
+ color: ${({$textColor:e})=>e};
1864
+ &::placeholder {
1865
+ color: ${({$textColor:e})=>e};
1866
+ }
1867
+
1868
+ overflow: hidden;
1869
+ text-overflow: ellipsis;
1870
+ white-space: nowrap;
1871
+ `,ax=({"data-id":r,value:o,onChange:n,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:p,emphasizeBackgroundColor:u})=>{const h=i(),[m,g]=Ht(!1),[f,y]=Ht(!1),[x,b]=Ht(!1),v=m?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,w=Gt(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),S=Gt(()=>l||($&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,$,w]);return t(nx,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!x,$isActive:m,$idleBackgroundColor:p,$emphasizeBackgroundColor:u,children:[e(It,{size:18,fill:v}),e(ix,{"data-id":r??"search",name:"search",type:"text",placeholder:S,value:o,onChange:e=>{e.stopPropagation(),n(e.target.value)},onFocus:()=>{g(!0),a?.()},onBlur:()=>{g(!1),s?.()},$textColor:v}),$&&e("div",{style:{flexShrink:0},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:e(ox,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected,size:Yy.S})})]})};var sx,lx;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(sx||(sx={})),function(e){e.S="small",e.M="medium",e.L="large"}(lx||(lx={}));const cx=o.button`
1872
+ display: flex;
1873
+ align-items: center;
1874
+ justify-content: center;
1875
+ gap: 8px;
1876
+ ${({$fullWidth:e})=>e&&n`
1877
+ width: 100%;
1878
+ `}
1879
+ border: none;
1880
+ border-radius: 6px;
1881
+ ${({$size:e,$hasLabel:t})=>e===lx.S?n`
1882
+ height: 32px;
1883
+ ${t?n`
1884
+ padding: 8px 16px;
1885
+ `:n`
1886
+ width: 32px;
1887
+ `}
1888
+ `:e===lx.M?n`
1889
+ height: 38px;
1890
+ ${t?n`
1891
+ padding: 8px 18px;
1892
+ `:n`
1893
+ width: 38px;
1894
+ `}
1895
+ `:n`
1896
+ height: 44px;
1897
+ ${t?n`
1898
+ padding: 8px 22px;
1899
+ `:n`
1900
+ width: 44px;
1901
+ `}
1902
+ `}
1903
+
1904
+ cursor: pointer;
1905
+ &:disabled {
1906
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1907
+ cursor: not-allowed;
1908
+ }
1909
+ &:enabled {
1910
+ ${({$withShadow:e})=>e?n`
1911
+ box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1912
+ `:""}
1913
+ ${({$variant:e})=>e===sx.Primary?n`
1914
+ background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1915
+ &:hover {
1916
+ background-color: ${({theme:e})=>e.v2.colors.purple[600]};
1917
+ }
1918
+ &:active {
1919
+ background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1920
+ }
1921
+ `:e===sx.Secondary?n`
1922
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1923
+ &:hover {
1924
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1925
+ }
1926
+ &:active {
1927
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1928
+ }
1929
+ `:e===sx.Text?n`
1930
+ background-color: transparent;
1931
+ &:hover {
1932
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1933
+ }
1934
+ &:active {
1935
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1936
+ }
1937
+ `:""}
1938
+ }
1939
+ `,dx=jt(({"data-id":o,label:n,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=sx.Primary,size:p=lx.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:y,onClick:x,...b},v)=>{const $=i(),w=u||(p===lx.L?18:16),S=p===lx.L?ln.S:ln.XS,k=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Ht(!1),A=Kt(async e=>{e.stopPropagation(),E(!0),await(x?.(e)),E(!1)},[x]);return e(cx,{ref:v,"data-id":o,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!n,disabled:y,onClick:h||C?void 0:A,...b,children:e(ip,{text:a,withIcon:!s,children:h||C?n?e(Gf,{size:$.v2.text.size[S],textColor:k}):e(Xp,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),n?e(hn,{size:S,weight:500,color:k,nowrap:!0,children:n}):null,c&&e(c,{size:w,fill:k})]})})})});dx.displayName=dx.name;const px=o.div`
1940
+ display: flex;
1941
+ align-items: center;
1942
+ justify-content: center;
1943
+ width: fit-content;
1944
+ height: fit-content;
1945
+ padding: 8px;
1946
+ border-radius: 100%;
1947
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1948
+ `,ux=({icon:r=bt,hideIcon:o=!1,title:n="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Fn,{$gap:12,$alignItems:"center",children:[!o&&e(px,{children:e(r,{size:32,fill:l})}),t(Fn,{$gap:4,$alignItems:"center",children:[e(hn,{size:ln.S,align:"center",children:n}),a&&e(hn,{size:ln.XXS,align:"center",color:l,children:a})]}),s&&e(dx,{variant:sx.Secondary,...s})]})};var hx;!function(e){e.S="small",e.L="large"}(hx||(hx={}));const mx=o.div`
1949
+ width: fit-content;
1950
+ display: flex;
1951
+ align-items: center;
1952
+ gap: 8px;
1953
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1954
+ `,gx=o.div`
1955
+ width: ${({$size:e})=>e===hx.S?"16px":"20px"};
1956
+ height: ${({$size:e})=>e===hx.S?"16px":"20px"};
1957
+ display: flex;
1958
+ align-items: center;
1959
+ justify-content: center;
1960
+ border-radius: 4px;
1961
+ border: 1px solid ${({$borderColor:e})=>e};
1962
+ background-color: ${({$backgroundColor:e})=>e};
1963
+ `,fx=({name:r,label:o,tooltip:n,badge:a,size:s=hx.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,y]=Ht(!1),x=c||d,b=s===hx.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=x?"transparent":l?g.v2.colors.grey[700]:f?g.v2.colors.silver[400]:g.v2.colors.silver[600],w=l?g.v2.colors.grey[600]:x?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(Fn,{$gap:4,children:[t(Pn,{$justifyContent:"space-between",children:[t(mx,{"data-id":r||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(gx,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(vt,{size:b,fill:v}):d?e(yt,{size:b,fill:v}):null}),o&&e(hn,{size:s===hx.S?ln.XXS:ln.XS,nowrap:!0,children:o})]}),e(Xy,{tooltip:n,badge:a})]}),e(Gy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},yx=o.div`
1964
+ display: flex;
1965
+ flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
1966
+ gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
1967
+ `,xx=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=n===hx.S?ln.XXS:ln.XS,p=Gt(()=>s.every(e=>l[e.id]),[s,l]),u=Gt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const o={...r};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(yx,{$direction:r,children:[o&&a?e(fx,{label:o,partiallyChecked:u,value:p,onChange:e=>h("",e),size:n}):o&&!a?e(hn,{size:d,children:o}):null,s.map(t=>e(fx,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:n},`${o}-checkbox-${t.id}`))]})};var bx,vx;!function(e){e.Left="left",e.Right="right"}(bx||(bx={})),function(e){e.Top="top",e.Bottom="bottom"}(vx||(vx={}));const $x=o.div`
1968
+ position: relative;
1969
+ display: flex;
1970
+ flex-direction: column;
1971
+ gap: 4px;
1972
+ `,wx=o.div`
1973
+ position: fixed;
1974
+ ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
1975
+ ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
1976
+ ${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
1977
+ ${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
1978
+ ${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
1979
+ z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
1980
+
1981
+ display: flex;
1982
+ flex-direction: column;
1983
+ gap: 0;
1984
+
1985
+ min-width: 120px;
1986
+ padding: 8px;
1987
+ border-radius: 6px;
1988
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1989
+ box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1990
+ `,Sx=o.div`
1991
+ display: flex;
1992
+ flex-direction: column;
1993
+ gap: 0;
1994
+
1995
+ width: 100%;
1996
+ max-height: ${({$maxHeight:e})=>e||"230px"};
1997
+ overflow-y: auto;
1998
+ `,kx=o.div`
1999
+ display: flex;
2000
+ align-items: center;
2001
+ gap: 8px;
2002
+ width: calc(100% - 16px);
2003
+ padding: 8px;
2004
+ border-radius: 6px;
2005
+ cursor: pointer;
2006
+ ${({$selected:e})=>e?n`
2007
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
2008
+ `:n`
2009
+ background-color: transparent;
2010
+ &:hover {
2011
+ background-color: ${({theme:e})=>e.v2.colors.grey[700]};
2012
+ }
2013
+ `}
2014
+ `,Cx=({defaultOpen:r,open:o,onOpenChange:n,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:y,isLoading:x,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==o,S=!!f||!!y||!!v,[k,C]=Ht(r??!S),E=w?o:k,A=Kt(e=>{w||C(e),n?.(e)},[w,n]),[D,T]=Ht({x:a||bx.Left,y:s||vx.Bottom}),I=Vt(null),N=Vt(null),[R,O]=Ht({}),_=Kt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const o=S?8:0;O({top:t===vx.Bottom?S?r.bottom+o:r.top:void 0,bottom:t===vx.Top?S?window.innerHeight-r.top+o:window.innerHeight-r.bottom:void 0,left:e===bx.Left?r.left:void 0,right:e===bx.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),P=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?bx.Right:bx.Left),y:s||(e.clientY>window.innerHeight/2?vx.Top:vx.Bottom)};T(r),_(r.x,r.y)};Qt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Xt(()=>{if(!E)return;const e=e=>{const t=e.target;I.current?.contains(t)||N.current?.contains(t)||A(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[E,A]),Xt(()=>{if(!E)return;const e=()=>A(!1),t=()=>A(!1);return document.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[E,A]);const F=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=Ht(""),M=Gt(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t($x,{ref:I,children:[p&&e(Xy,{label:p}),f&&e(dx,{...f,fullWidth:m,rightIcon:E?Pt:Ft,onClick:P}),y&&e(cd,{...y,onClick:P}),"function"==typeof v?v({ChevronIcon:E?Pt:Ft,handleClick:P}):v,E&&ur(t(wx,{ref:N,$coords:R,"data-ignore-outside-click":"true",children:[h&&e(ax,{value:L,onChange:z,width:"100%"}),x?e(Vn,{withSpinner:!0,title:"Loading...",titleSize:ln.XS}):M.length?e(Sx,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:o,label:n,icon:i,withCheckbox:a}=r,s=c.includes(o);return t(kx,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>F(o),children:[a&&e(fx,{value:s,onChange:()=>F(o)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(hn,{size:ln.XS,nowrap:!0,color:r.color||cn.Primary,children:n})]},o)})}):e(_n,{$padding:"6px 0",children:e(ux,{hideIcon:!0,title:"No results",subTitle:b})}),u&&!!M.length&&e(dx,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Ex=t=>{const{"data-id":r,options:o,placeholder:n="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ht(""),[c,d]=Ht(!1),p=Gt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Gt(()=>{if(a){const e=p.length;return e?1===e?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,p]),h=c?s:u,m=Gt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),g=Kt(()=>{l(""),d(!0)},[]),f=Kt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Kt(e=>{d(e),e||l("")},[]),x=Kt(e=>{if(a)return void t.onSelect(e);const r=o.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,o]),b=c&&(i||m.length>0||s.length>0);return e(Cx,{open:b,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:x,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:vx.Bottom,children:e(Jy,{name:r,leftIcon:It,placeholder:n,value:h,onChange:f,onFocus:g})})},Ax=o.button`
2015
+ width: 100%;
2016
+ padding: 0;
2017
+ padding-right: 12px;
2018
+ display: flex;
2019
+ align-items: center;
2020
+ justify-content: flex-start;
2021
+ gap: 12px;
2022
+ border-radius: 8px;
2023
+ border: none;
2024
+ ${({$hovered:e})=>e?n`
2025
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2026
+ `:n`
2027
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2028
+ `}
2029
+ overflow: hidden;
2030
+ cursor: pointer;
2031
+ &:disabled {
2032
+ cursor: not-allowed;
2033
+ opacity: 0.5;
2034
+ }
2035
+ `,Dx=o.div`
2036
+ width: ${({$hasIcon:e})=>e?"56px":"0"};
2037
+ height: 56px;
2038
+ display: flex;
2039
+ align-items: center;
2040
+ justify-content: center;
2041
+ ${({$hovered:e})=>e?n`
2042
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2043
+ `:n`
2044
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2045
+ `}
2046
+ `,Tx=o.div`
2047
+ width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
2048
+ display: flex;
2049
+ justify-content: space-between;
2050
+ align-items: center;
2051
+ gap: 8px;
2052
+ `,Ix=({label:r,icon:o,loading:n,disabled:i,onClick:a})=>{const[s,l]=Ht(!1);return t(Ax,{$hovered:s,type:"button",disabled:i||n,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Dx,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(Tx,{$hasIcon:!!o,children:[n?e(Gf,{size:16}):e(hn,{variant:sn.Span,align:"center",children:r}),e(Lt,{rotate:90,size:24})]})]})},Nx=({buttons:t})=>e(Fn,{$gap:12,children:t.map(t=>e(Ix,{...t},t.label))});var Rx;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Rx||(Rx={}));const Ox=({onAnyClick:t,actions:r})=>e(Pn,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Rx.Button:return e(dx,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case Rx.ButtonDropData:return e(Cx,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{r.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:r.buttonProps},r.id);default:return null}})}),_x=({children:t,fullText:r,...o})=>{const n=Vt(null),[i,a]=Ht(!1);Qt(()=>{const e=n.current;if(!e)return;const t=()=>{a(e.scrollWidth>e.clientWidth+1)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[t]),Xt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=n.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(ip,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(hn,{ref:n,...o,children:t})})},Px=o.div`
2053
+ display: flex;
2054
+ align-items: center;
2055
+ justify-content: center;
2056
+ padding: 8px;
2057
+ border-radius: 8px;
2058
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2059
+ `,Fx=({icon:r,title:o,subTitle:n,withCopy:i,badge:a,gap:s,children:l})=>{const{CopyButton:c}=dd();return t(Pn,{$gap:n?8:6,$alignItems:"center",children:[r&&(n?e(Px,{children:e(r,{size:24})}):e(r,{size:24})),o||a||n?t(Fn,{children:[o||a?t(Pn,{$gap:6,$alignItems:"center",children:[o&&e(hn,{nowrap:!0,children:o}),i&&o&&e(c,{value:o,size:sd.XS}),a&&e(jy,{...a})]}):null,n&&e(hn,{size:ln.XXS,color:cn.Secondary,nowrap:!0,children:n})]}):null,e(Pn,{$gap:s,$margin:`0 0 0 ${s??0}px`,$alignItems:"center",children:l})]})},Lx=o.div`
2060
+ display: flex;
2061
+ flex-direction: column;
2062
+ gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
2063
+ width: ${({$moreSpacing:e})=>e?"calc(100% - 32px)":"calc(100% - 24px)"};
2064
+ align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
2065
+ padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
2066
+ border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
2067
+ background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
2068
+ `,zx=o.div`
2069
+ display: flex;
2070
+ align-items: center;
2071
+ flex-wrap: wrap;
2072
+ width: 100%;
2073
+ `,Mx=o.div`
2074
+ width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
2075
+ margin: 8px;
2076
+ display: flex;
2077
+ flex-direction: column;
2078
+ gap: 4px;
2079
+ min-width: 0;
2080
+ `,Bx=({item:r,cellsPerRow:o})=>{const{CopyButton:n}=dd(),{title:i,label:a,withCopy:s,badge:l}=r;return t(Mx,{$cellsPerRow:o,children:[!!i&&e(_x,{size:ln.XXXS,color:cn.Secondary,nowrap:!0,children:i}),t(Pn,{$gap:4,children:[l&&e(jy,{...l}),a&&e(_x,{size:ln.XS,nowrap:!0,children:a}),s&&e(n,{value:a||l?.label?.toString()||"",size:sd.XS})]})]})},Ux=({bgTint:r="900",fullHeight:o=!1,moreSpacing:n=!1,richTitle:i,withCollapse:a,collapseIsDefaultOpen:s,actions:l=[],cellsPerRow:c,items:d,children:p})=>{const[u,h]=Ht(s||!1),m=!a||a&&u;return t(Lx,{$bgTint:r,$fullHeight:o,$moreSpacing:n,children:[(i||a)&&t(Pn,{$gap:16,$justifyContent:"space-between",children:[i?e(Fx,{...i}):e("div",{}),t(Pn,{children:[m&&e(Ox,{actions:l}),a&&e(Pn,{$gap:8,$alignItems:"center",children:e(dx,{variant:sx.Text,size:lx.S,leftIcon:u?Pt:Ft,onClick:()=>h(e=>!e)})})]})]}),m&&d?e(zx,{children:d.map(t=>e(Bx,{item:t,cellsPerRow:c&&c<d.length?c:d.length},t.id))}):null,m&&p]})};var jx;!function(e){e.S="small",e.M="medium"}(jx||(jx={}));const Wx=o.div`
2081
+ display: flex;
2082
+ flex-direction: column;
2083
+ gap: ${({$gap:e})=>e}px;
2084
+ width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
2085
+ align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
2086
+ padding: ${({$padding:e})=>e}px;
2087
+ border-radius: 16px;
2088
+ background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2089
+ `,Hx=jt(({id:r,size:o=jx.M,fullHeight:n=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:p},u)=>{const h=o===jx.S?4:16,m=o===jx.S?12:16,g=a??(i?e(Fx,{...i}):null),f=l??(s?e(ax,{...s}):null),y=!!g||!!f,x=!!d&&d.length>0;return t(Wx,{ref:u,id:r,"data-section-name":r,$padding:m,$gap:h,$fullHeight:n,children:[y||x?t(Pn,{$gap:h,$justifyContent:"space-between",children:[y?t(Pn,{$gap:h,$alignItems:"center",children:[g,f,c]}):null,x&&e(Ox,{actions:d??[]})]}):null,p]})});Hx.displayName="SectionCard";const Xx=o.div`
2090
+ flex: 1;
2091
+ align-self: stretch;
2092
+ display: flex;
2093
+ align-items: center;
2094
+ gap: 8px;
2095
+ padding: 16px;
2096
+ border-radius: 12px;
2097
+ background-color: ${({theme:e,$status:t})=>nn(e,t,t===Jr.Unknown?"750":"500")};
2098
+ `,Gx=o.div`
2099
+ display: flex;
2100
+ align-items: center;
2101
+ justify-content: center;
2102
+ width: fit-content;
2103
+ height: fit-content;
2104
+ padding: 8px;
2105
+ border-radius: 12px;
2106
+ background-color: ${({theme:e,$status:t})=>t===Jr.Unknown?nn(e,t,"800"):nn(e,t,"900")+Bc["015"]};
2107
+ `,Vx=({status:r,icon:o,title:n,description:a})=>{const s=i(),l=o??Kn(r,s),c=[Vr.Default,Vr.Info,Jr.Disabled,Jr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Xx,{$status:r,children:[e(Gx,{$status:r,children:e(l,{size:32,fill:c})}),t(Fn,{$gap:2,$justifyContent:"center",children:[e(hn,{size:ln.M,weight:500,color:c,nowrap:!0,children:n}),e(hn,{size:ln.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Kx=o.div`
2108
+ flex: 0.5;
2109
+ display: flex;
2110
+ flex-direction: column;
2111
+ gap: 12px;
2112
+ padding: 12px;
2113
+ border-radius: 12px;
2114
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2115
+ `,qx=["-","N/A","undefined","null","undefined/undefined","null/null"],Jx=({title:r,cells:o})=>{const n=i();return t(Kx,{children:[e(hn,{size:ln.XXS,color:n.v2.colors.grey[150],children:r}),e(Pn,{$gap:32,children:o.map(o=>t(Fn,{$gap:2,children:[!o.isLoading||o.value&&!qx.includes(o.value)?e(hn,{size:o.label?ln.M:ln.L,children:o.value}):e(Xp,{scale:.9}),o.label&&e(hn,{size:ln.XXS,children:o.label})]},`${r}-${o.label}-${o.value}`))})]})};var Yx;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Yx||(Yx={}));const Qx=o.div`
2116
+ display: flex;
2117
+ align-items: flex-end;
2118
+ justify-content: space-between;
2119
+ gap: 24px;
2120
+ width: fit-content;
2121
+ `,Zx=o.div`
2122
+ position: relative;
2123
+ display: flex;
2124
+ flex-direction: column;
2125
+ align-items: center;
2126
+ width: ${({$width:e})=>e??150}px;
2127
+ flex-shrink: 0;
2128
+ `,eb=o.svg`
2129
+ display: block;
2130
+ width: 100%;
2131
+ height: auto;
2132
+ overflow: visible;
2133
+ `,tb=o(Fn)`
2134
+ position: absolute;
2135
+ left: 0;
2136
+ right: 0;
2137
+ bottom: 4px;
2138
+ align-items: center;
2139
+ gap: 2px;
2140
+ pointer-events: none;
2141
+ `,rb=o.span`
2142
+ display: inline-block;
2143
+ flex-shrink: 0;
2144
+ width: 9px;
2145
+ height: 9px;
2146
+ border-radius: 50%;
2147
+ background-color: ${({$color:e})=>e};
2148
+ `,ob=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},nb=10,ib=(e,t,r,o)=>{const n=o*Math.PI/180;return{x:e+r*Math.cos(n),y:t-r*Math.sin(n)}},ab=(e,t,r,o,n)=>{const i=ib(e,t,r,o),a=ib(e,t,r,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},sb=({variant:r=Yx.CurrentOfMax,gaugeWidth:o,title:n,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=ob(a),{number:m}=ob(s),{number:g,prefix:f,suffix:y}=ob(l),x=i(),b=((e,t,r)=>Math.min(Math.max(e,t),r))((g-h)/Math.max(m-h,1),0,1),v=180-180*b,$=b>0?ab(60,60,55,180,v):null,w=b<1?ab(60,60,55,v,0):null,S=ib(60,60,55,180),k=ib(60,60,55,0),C=d??(r===Yx.GoodAgainstBad?x.v2.colors.green[500]:x.v2.colors.purple[400]),E=u??(r===Yx.GoodAgainstBad?x.v2.colors.red[500]:x.v2.colors.silver[500]),[A,D]=Ht(null),T=e=>`${f}${e}${y}`,I=r===Yx.GoodAgainstBad?Math.max(m-g,0):m,N="primary"===A?c:"secondary"===A?p:"",R="primary"===A?T(g):"secondary"===A?T(I):"",O=()=>D("primary"),_=()=>D("secondary"),P=()=>D(null);return t(Qx,{children:[t(Zx,{$width:o,children:[e(ip,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(eb,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:nb,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:P}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:nb,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:P}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:P}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:P})]})}),n&&t(tb,{children:[e(hn,{size:ln.XXXS,color:x.v2.colors.grey[150],align:"center",children:n}),e(hn,{size:ln.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),t(Fn,{$gap:7,children:[t(Pn,{$gap:8,$alignItems:"center",children:[e(rb,{$color:C}),e(hn,{size:ln.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Pn,{$gap:8,$alignItems:"center",children:[e(rb,{$color:E}),e(hn,{size:ln.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},lb=o(Pn)`
2149
+ width: calc(100% - 20px);
2150
+ padding: 10px;
2151
+ border-radius: 6px;
2152
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2153
+ display: flex;
2154
+ align-items: center;
2155
+ justify-content: space-between;
2156
+ gap: 12px;
2157
+ `,cb=o.div`
2158
+ position: relative;
2159
+ width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
2160
+ display: flex;
2161
+ align-items: center;
2162
+ gap: 4px;
2163
+ `,db=o.pre`
2164
+ flex: 1;
2165
+ margin: 0;
2166
+ padding: 0;
2167
+ font-size: 14px;
2168
+ color: #5ffb98; // TODO: add to theme
2169
+ overflow-x: auto;
2170
+ `,pb=o.span`
2171
+ flex-shrink: 0;
2172
+ font-size: 14px;
2173
+ color: #5ffb98; // TODO: add to theme
2174
+ `,ub=({value:r,hideCopy:o=!1,onDone:n})=>{const{CopyButton:i}=dd({onDone:n}),a=Vt(null),[s,l]=Ht(!1);return Xt(()=>{const e=()=>{if(a.current){const{scrollWidth:e,clientWidth:t}=a.current;l(e>t)}};e();const t=new ResizeObserver(e);return a.current&&t.observe(a.current),()=>{t.disconnect()}},[r]),t(lb,{children:[t(cb,{$hideCopy:o,children:[e(db,{ref:a,children:r}),s&&e(pb,{children:"..."})]}),!o&&e(i,{value:r,size:sd.XS})]})},hb=o.div`
2175
+ display: flex;
2176
+ align-items: center;
2177
+ gap: 8px;
2178
+ padding: 16px;
2179
+ border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
2180
+ background-color: ${({$backgroundColor:e})=>e};
2181
+
2182
+ ${({$withHover:e,$hoverBackgroundColor:t})=>e&&n`
2183
+ cursor: pointer;
2184
+ transition: background 0.2s;
2185
+ &:hover {
2186
+ background-color: ${t};
2187
+ }
2188
+ `}
2189
+ `,mb=o.div`
2190
+ display: flex;
2191
+ align-items: center;
2192
+ justify-content: center;
2193
+ flex-shrink: 0;
2194
+ width: 42px;
2195
+ height: 42px;
2196
+ border-radius: 11px;
2197
+ background-color: ${({$backgroundColor:e})=>e};
2198
+ `,gb=o(Fn)`
2199
+ flex: 1;
2200
+ min-width: 0;
2201
+ `,fb=o.div`
2202
+ display: flex;
2203
+ align-items: center;
2204
+ justify-content: center;
2205
+ flex-shrink: 0;
2206
+ width: 24px;
2207
+ height: 24px;
2208
+ `,yb=({status:r,title:o,subTitle:n,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=Kn(r,p),h=c?l?Pt:Ft:void 0,m=r===Jr.Unknown,g=r===Jr.Disabled,f=[Vr.Error,Vr.Warning,Vr.Success].includes(r),y=nn(p,r,g?d?"400":"700":m?"600":d?"300":"500"),x=g?p.v2.colors.grey[400]:d?p.v2.colors.white[500]:f?p.v2.colors.black[500]:p.v2.colors.white[500],b=d&&!m?y:x,v=d&&!m?g?p.v2.colors.grey[700]:l?p.v2.colors.silver[500]:p.v2.colors.silver[600]:"rgba(21, 22, 24, 0.1)",$=d||m?l?p.v2.colors.silver[700]:p.v2.colors.silver[800]:g?l?p.v2.colors.grey[800]:p.v2.colors.grey[900]:nn(p,r,l?"400":"500"),w=d||m?l?p.v2.colors.silver[600]:p.v2.colors.silver[700]:g?l?p.v2.colors.grey[700]:p.v2.colors.grey[800]:nn(p,r,l?"700":"800");return t(hb,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(mb,{$backgroundColor:v,children:s?e(Xp,{scale:1.2}):e(u,{size:32,fill:b})}),t(gb,{$gap:4,$justifyContent:"center",children:[t(Pn,{$gap:10,$alignItems:"center",children:[e(hn,{size:ln.S,weight:500,color:x,children:o}),a&&e(jy,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:ln.XXXS})]}),n&&e(hn,{size:ln.XXXS,color:x,children:n})]}),h&&e(fb,{children:e(h,{size:24,fill:x})})]})},xb=o.div`
2209
+ display: flex;
2210
+ flex-direction: column;
2211
+ width: 100%;
2212
+ border-radius: 12px;
2213
+ overflow: hidden;
2214
+ `,bb=o.div`
2215
+ display: flex;
2216
+ flex-direction: column;
2217
+ gap: 8px;
2218
+ padding: 8px 12px 16px 12px;
2219
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2220
+ `,vb=o.div`
2221
+ display: flex;
2222
+ align-items: center;
2223
+ gap: 8px;
2224
+ `,$b=o.div`
2225
+ display: flex;
2226
+ align-items: center;
2227
+ justify-content: center;
2228
+ flex-shrink: 0;
2229
+ width: 18px;
2230
+ height: 18px;
2231
+ `,wb=({conditions:r,title:o,subTitle:n})=>{const a=i(),[s,l]=Ht(!1),c=Kt(()=>l(e=>!e),[]),d=Gt(()=>ui(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Gt(()=>Fo(d),[d]);Xt(()=>{l(u||m||g)},[u,m,g]);const y=Gt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),x=Gt(()=>u?Vr.Error:m?Vr.Warning:g?Vr.Info:Vr.Success,[u,m,g]),b=Gt(()=>o||(1===d.length?pi(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:o})=>{const n="Something isn't right";return e?"Something Failed":t||r?n:o?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:y}),[o,d,u,m,g,y]),v=Gt(()=>n||1===d.length&&d[0].message||void 0,[n,d]),$=Gt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(xb,{children:[e(yb,{status:x,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&e(bb,{children:d.map(({status:r,type:o,reason:n,message:i},s)=>{const l=r===qr.Loading,c=r===qr.Disabled?Vr.Info:r,d=l?null:Kn(c,a),p=r===Vr.Error?nn(a,Vr.Error,"500"):r===Vr.Warning?nn(a,Vr.Warning,"500"):a.v2.colors.white[500],u=[o,i||n].filter(Boolean).join(" - ");return t(vb,{children:[e($b,{children:l||!d?e(Vn,{withSpinnerOld:!0}):e(d,{size:18})}),e(hn,{size:ln.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var Sb,kb,Cb;!function(e){e.Default="default",e.SuccessError="successError"}(Sb||(Sb={})),function(e){e.S="small",e.L="large"}(kb||(kb={})),function(e){e.Left="left",e.Right="right"}(Cb||(Cb={}));const Eb=o.div`
2232
+ display: flex;
2233
+ align-items: center;
2234
+ gap: ${({$gap:e})=>e}px;
2235
+ `,Ab=o.div`
2236
+ position: relative;
2237
+ display: flex;
2238
+ align-items: center;
2239
+ justify-content: space-between;
2240
+
2241
+ width: ${({$size:e})=>2*e+2}px;
2242
+ height: ${({$size:e})=>e}px;
2243
+ padding: ${4}px;
2244
+ border-radius: ${({$size:e})=>2*e}px;
2245
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:o,$value:n,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&n)return t;if(r&&!n)return r;switch(o){case Sb.SuccessError:return n?i.v2.colors.green[500]:i.v2.colors.red[500];case Sb.Default:default:return n?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2246
+
2247
+ border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
2248
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2249
+ `,Db=o.div`
2250
+ position: absolute;
2251
+ top: 50%;
2252
+ left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
2253
+ transform: translateY(-50%);
2254
+ width: ${({$size:e})=>e}px;
2255
+ height: ${({$size:e})=>e}px;
2256
+ border-radius: 100%;
2257
+ background-color: ${({$color:e})=>e};
2258
+ box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
2259
+ `,Tb=({variant:o=Sb.Default,size:n=kb.L,name:a,label:s,labelAlign:l=Cb.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=yt,offIcon:y=bt,onBgColor:x,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=n===kb.S?10:16,E=c||S.v2.colors.silver[200],A=n===kb.S?ln.XXXS:ln.XS,D=n===kb.S?8:12;return t(Fn,{$gap:4,children:[t(Pn,{$justifyContent:"space-between",children:[t(Eb,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===Cb.Left&&e(hn,{color:E,size:A,nowrap:!0,children:s}),t(Ab,{$onBgColor:x,$offBgColor:b,$variant:o,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(Db,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(y,{size:C,fill:k})]})]}),s&&l===Cb.Right&&e(hn,{color:E,size:A,nowrap:!0,children:s})]}),e(Xy,{tooltip:d,badge:p})]}),e(Gy,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Ib=o.div`
2260
+ display: flex;
2261
+ flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
2262
+ gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
2263
+ `,Nb=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,options:a,values:s,setValues:l})=>{const c=n===kb.S?ln.XS:ln.S;return t(Ib,{$direction:r,children:[o&&e(hn,{size:c,children:o}),a.map(t=>e(Tb,{...t,labelAlign:Cb.Right,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return r?t[r]=o:a.forEach(e=>t[e.id]=o),t});var r,o},disabled:i,size:n},`${o}-toggle-${t.id}`))]})},Rb=o.div`
2264
+ display: flex;
2265
+ align-items: center;
2266
+ justify-content: space-between;
2267
+ width: 100%;
2268
+ overflow: hidden;
2269
+ `,Ob=o.div`
2270
+ display: flex;
2271
+ align-items: center;
2272
+ gap: 16px;
2273
+ padding: 6px 0;
2274
+ min-width: 0;
2275
+ flex: 1;
2276
+ overflow: hidden;
2277
+ `,_b=o.div`
2278
+ display: flex;
2279
+ align-items: center;
2280
+ justify-content: center;
2281
+ flex: 0 0 36px;
2282
+ width: 36px;
2283
+ height: 36px;
2284
+ border-radius: 8px;
2285
+ background: ${({theme:e})=>e.v2.colors.silver[800]};
2286
+ `,Pb=o.img`
2287
+ width: 24px;
2288
+ height: 24px;
2289
+ `,Fb=o.div`
2290
+ display: flex;
2291
+ align-items: center;
2292
+ gap: 16px;
2293
+ flex-shrink: 0;
2294
+ `,Lb=({icon:r,iconSrc:o,title:n,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(Rb,{children:[t(Ob,{children:[r?e(_b,{children:e(r,{size:24})}):o?e(_b,{children:e(Pb,{src:o,alt:n||"icon"})}):null,(n||i)&&t(Fn,{$gap:6,children:[n&&e(hn,{size:ln.S,weight:500,children:n}),i&&e(hn,{size:ln.XXS,children:i})]})]}),t(Fb,{children:[a&&e(Tb,{...a}),s?.length?e(Cx,{iconButtonProps:{"data-id":"drawer-actions",icon:zt},items:s,selectedIds:s?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>s?.find(t=>t?.id===e[0])?.onClick?.()}):null,l&&e(cd,{"data-id":"drawer-close",icon:bt,size:sd.M,onClick:l,disabled:c})]})]}),zb=o.div`
2295
+ display: flex;
2296
+ align-items: center;
2297
+ gap: 10px;
2298
+ ${({$fullWidth:e})=>e&&n`
2299
+ width: calc(100% - 16px);
2300
+ `}
2301
+ padding: 4px 12px 4px 4px;
2302
+ border-radius: 8px;
2303
+ background-color: ${({theme:e,$status:t})=>nn(e,t,[Vr.Info,Vr.Warning].includes(t)?"1000":"900")};
2304
+ `,Mb=o.div`
2305
+ width: ${({$smallIcon:e})=>e?"24px":"32px"};
2306
+ height: ${({$smallIcon:e})=>e?"24px":"32px"};
2307
+ display: flex;
2308
+ align-items: center;
2309
+ justify-content: center;
2310
+ border-radius: 6px;
2311
+ background-color: ${({theme:e,$status:t})=>nn(e,t,[Vr.Info].includes(t)?"900":"800")};
2312
+ `,Bb=o.div`
2313
+ margin-left: auto;
2314
+ margin-right: 8px;
2315
+ cursor: pointer;
2316
+ &:hover {
2317
+ transform: scale(1.2);
2318
+ }
2319
+ `,Ub=({status:r,message:o,action:n,fullWidth:a,smallIcon:s})=>{const l=i(),c=Kn(r,l),d=nn(l,r,r===Vr.Default?"300":r===Vr.Info?"400":"500");return t(zb,{$status:r,$fullWidth:a,children:[e("div",{children:e(Mb,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(hn,{color:d,size:ln.XXXS,weight:400,children:o}),n&&e(Bb,{"data-id":n["data-id"],onClick:n.onClick,children:e(hn,{color:d,size:ln.XXS,weight:500,underline:!0,children:n.label})})]})},jb=o.div`
2320
+ display: flex;
2321
+ align-items: center;
2322
+ gap: 8px;
2323
+ padding: 4px 12px;
2324
+ `,Wb=o.div`
2325
+ flex: 1;
2326
+ `,Hb=o.div`
2327
+ width: 150px;
2328
+ `,Xb=({note:r,actions:o,children:n})=>n?e(jb,{children:n}):t(jb,{children:[r&&e(Ub,{...r}),e(Wb,{}),o?.map((t,r)=>e(Hb,{children:e(dx,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),Gb=o.div`
2329
+ position: fixed;
2330
+ top: 0;
2331
+ bottom: 0;
2332
+ ${({$position:e})=>e}: 0;
2333
+ z-index: ${({theme:e})=>e.v2.zIndex.drawer};
2334
+
2335
+ display: flex;
2336
+ flex-direction: column;
2337
+ gap: 12px;
2338
+
2339
+ width: calc(${({$width:e})=>e} - 32px);
2340
+ padding: 12px;
2341
+ border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
2342
+ background: ${({theme:e})=>e.v2.colors.black[500]};
2343
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2344
+ overflow: hidden;
2345
+
2346
+ ${({$disableAnimation:e,$position:t})=>!e&&n`
2347
+ animation-name: ${jc.in[t]};
2348
+ `}
2349
+ `,Vb=o.div`
2350
+ display: flex;
2351
+ flex-direction: column;
2352
+ gap: 12px;
2353
+
2354
+ height: calc(100% - ${56}px);
2355
+ overflow-y: auto;
2356
+ `,Kb=({isOpen:o,hideOverlay:n=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(od(o),o?ur(t(r,{children:[!n&&e(Mn,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Gb,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(Lb,{...l}),e(Vb,{children:d}),c&&e(Xb,{...c})]})]}),document.body):null),qb=({options:t,values:r,setValues:o,withMultiSelect:n,withSearch:i,...a})=>{const s=Gt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(Cx,{withMultiSelect:n,withSearch:i,alignX:bx.Left,items:t,selectedIds:r,setSelectedIds:o,children:({ChevronIcon:t,handleClick:r})=>e(Jy,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},Jb=o.header`
2357
+ position: relative;
2358
+ width: calc(100% - 36px);
2359
+ padding: 12px 18px;
2360
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
2361
+ display: flex;
2362
+ align-items: center;
2363
+ justify-content: space-between;
2364
+ `,Yb=o(Pn)`
2365
+ position: absolute;
2366
+ left: 50%;
2367
+ transform: translateX(-50%);
2368
+ gap: 16px;
2369
+ `,Qb=({left:r=[],center:o=[],right:n=[]})=>t(Jb,{children:[e(Pn,{$gap:16,children:r}),e(Yb,{children:o}),e(Pn,{$gap:16,children:n})]}),Zb=o.div`
2370
+ display: flex;
2371
+ align-items: center;
2372
+ gap: 2px;
2373
+ width: fit-content;
2374
+ padding: 4px;
2375
+ border-radius: 8px;
2376
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2377
+ box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
2378
+
2379
+ position: absolute;
2380
+ right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
2381
+ left: ${({$left:e})=>e||"unset"};
2382
+ top: 50%;
2383
+ transform: translateY(-50%);
2384
+ `,ev=({isOpen:t,actions:r,positionRight:o,positionLeft:n})=>t?e(Zb,{$right:o,$left:n,children:r.map(t=>{if(!t)return null;const{tooltip:r,...o}=t;return e(ip,{text:r||"",children:e(dx,{...o,variant:sx.Secondary,size:lx.S})},o.id)})}):null,tv=({values:r,setValues:o,name:n,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:p,helpMessage:u,placeholder:h,disabled:m})=>{const g=i(),f=r.length<=1,y=m,x=m||f&&y,b=r.length?r:[""];return t(Fn,{"data-id":n,$gap:6,children:[e(Xy,{label:a,tooltip:s,required:c,badge:l}),e(Fn,{$gap:8,children:b.map((n,i)=>{const a=i===b.length-1;return t(Pn,{$gap:8,$alignItems:"center",children:[e(Jy,{width:"100%",autoFocus:ni(n)&&!f&&a,value:n,onChange:e=>((e,t)=>{const n=[...r||[]];n[t]=e,o(n)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(dx,{leftIcon:kt,variant:sx.Secondary,size:lx.S,disabled:y,onClick:()=>(()=>{const e=[...r||[]];e.push(""),o(e)})()}),e(dx,{leftIcon:x?Nt:()=>e(Nt,{fill:g.v2.colors.red[500]}),variant:sx.Secondary,size:lx.S,disabled:x,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(Gy,{errorMessage:d,warnMessage:p,helpMessage:u})]})},rv=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,handleChange:a,errorMessage:s,disabled:l})=>{const{keyName:c,componentType:d,inputType:p,label:u,placeholder:h,options:m,renderCondition:g}=t,f=o[c];if(g&&!g(o))return null;switch(d){case Xr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],o=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(qb,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(c,t?e:e[0]??"",n),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===n&&0===r&&ni(f);return e(Jy,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,n),disabled:l,hasError:!!s})}},ov=o.table`
2385
+ width: 100%;
2386
+ border-collapse: separate;
2387
+ border-spacing: 0 8px;
2388
+ `,nv=o.td`
2389
+ padding: 0 8px 0 0;
2390
+ `,iv=o.td`
2391
+ width: 72px;
2392
+ padding-bottom: 2px;
2393
+ vertical-align: bottom;
2394
+ `,av=({columns:r,values:o,setValues:n,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),y=Gt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),x=(e,t,r)=>{const i=o.length?wr(o):[wr(y)];i[r][e]=t,n(i)},b=Gt(()=>{if(g){const e=[];for(let t=0;;t+=g){const o=r.slice(t,t+g);if(!o.length)break;e.push(o)}return e}return[r]},[g,r]),v=o.length?o:[y];return t(Fn,{"data-id":a,$gap:0,children:[e(Xy,{label:s,tooltip:l,required:d,badge:c}),e(ov,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(Wt,{children:[g&&i>0?e("tr",{children:e(nv,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,o)=>t.renderCondition&&!t.renderCondition(r)?null:e(nv,{children:e(rv,{col:t,colIdx:o,row:r,rowIdx:i,rowsLength:v.length,handleChange:x,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${o}`)),0===l&&e(iv,{children:t(Pn,{$gap:8,$justifyContent:"flex-end",children:[a&&e(dx,{leftIcon:kt,variant:sx.Secondary,size:lx.S,disabled:p,onClick:()=>(()=>{const e=wr(o);e.push(wr(y)),n(e)})()}),e(dx,{leftIcon:p?Nt:()=>e(Nt,{fill:f.v2.colors.red[500]}),variant:sx.Secondary,size:lx.S,disabled:p,onClick:()=>(e=>{const t=o.filter((t,r)=>r!==e);t.length||t.push(wr(y)),n(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(Gy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},sv=o.div`
2395
+ display: flex;
2396
+ align-items: center;
2397
+ justify-content: space-between;
2398
+ gap: 32px;
2399
+
2400
+ padding: 18px 16px;
2401
+ border-radius: 18px;
2402
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Bc["095"]};
2403
+ box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2404
+
2405
+ position: fixed;
2406
+ bottom: 0;
2407
+ left: 50%;
2408
+ z-index: ${({theme:e})=>e.v2.zIndex.island};
2409
+ animation-name: ${jc.in.center};
2410
+ `,lv=({isOpen:r,onClose:o,richTitle:n,actions:i})=>r?t(sv,{children:[e(Fx,{...n}),e(Ox,{onAnyClick:o,actions:i})]}):null,cv=o.div`
2411
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2412
+ top: 50%;
2413
+ left: 50%;
2414
+ transform: translate(-50%, -50%);
2415
+ z-index: ${({theme:e})=>e.v2.zIndex.modal};
2416
+ width: fit-content;
2417
+ border-radius: 20px;
2418
+ background: ${({theme:e})=>e.v2.colors.black[500]};
2419
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2420
+ overflow: hidden;
2421
+
2422
+ /* Promote to its own composited layer and isolate paint/layout so descendant
2423
+ re-renders during the slide animation can't trigger reflows of the rest of
2424
+ the page. Without this, the global \`* { transition: all 300ms }\` rule plus
2425
+ a heavy modal body (forms, etc.) make the close visibly stutter. */
2426
+ will-change: transform;
2427
+ contain: layout paint;
2428
+
2429
+ animation-name: ${({$closing:e})=>e?jc.out.center:jc.in.center};
2430
+ /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
2431
+ the global 300ms default which pairs with the fade-in for a soft entrance. */
2432
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
2433
+ animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
2434
+
2435
+ /* Block hover/click work on form children mid-close so their transitions
2436
+ don't compete with the slide-out. */
2437
+ ${({$closing:e})=>e&&"pointer-events: none;"}
2438
+ `,dv=o(Mn)`
2439
+ will-change: opacity;
2440
+ animation-name: ${({$closing:e})=>e?Gc.out:Gc.in};
2441
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
2442
+
2443
+ /* The blurred backdrop is the most expensive thing on screen during the close
2444
+ — animating opacity on a backdrop-filtered element forces a full GPU
2445
+ recomposite per frame. Drop the blur while closing; visually identical
2446
+ because the overlay is fading to 0. */
2447
+ ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
2448
+ `,pv=o.div`
2449
+ position: relative;
2450
+ `,uv=o.div`
2451
+ position: absolute;
2452
+ top: 16px;
2453
+ left: 16px;
2454
+ `,hv=({isOpen:o,hideOverlay:n=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,p]=Ht(o),[u,h]=Ht(!1);if(Xt(()=>{o?(p(!0),h(!1)):d&&h(!0)},[o]),od(d),!d)return null;const m=t(r,{children:[!n&&e(dv,{$relativeToParent:i,$closing:u,onClick:u?void 0:s}),e(cv,{"data-id":"modal",$relativeToParent:i,$closing:u,onAnimationEnd:e=>{e.target===e.currentTarget&&u&&(p(!1),h(!1),l?.())},children:t(pv,{children:[a&&e(uv,{children:e(cd,{icon:t=>e(Lt,{rotate:-90,...t}),size:sd.L,onClick:a})}),c]})})]});return i?m:ur(m,document.body)},mv=o.div`
2455
+ position: relative;
2456
+ width: ${64}px;
2457
+ height: ${({$height:e})=>e};
2458
+ flex-shrink: 0;
2459
+ `,gv=o.aside`
2460
+ position: absolute;
2461
+ top: 0;
2462
+ left: 0;
2463
+ bottom: 0;
2464
+ display: flex;
2465
+ flex-direction: column;
2466
+ gap: 8px;
2467
+ width: ${({$expanded:e})=>e?"220px":"64px"};
2468
+ padding: 16px ${12}px;
2469
+ box-sizing: border-box;
2470
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
2471
+ overflow-x: hidden;
2472
+ overflow-y: auto;
2473
+ z-index: 10;
2474
+ transition:
2475
+ width 200ms ease,
2476
+ padding 200ms ease;
2477
+ `,fv=o.button`
2478
+ display: flex;
2479
+ align-items: center;
2480
+ width: 100%;
2481
+ min-width: 0;
2482
+ height: ${40}px;
2483
+ padding: 0;
2484
+ margin: 0;
2485
+ border: none;
2486
+ border-radius: 6px;
2487
+ box-sizing: border-box;
2488
+ cursor: pointer;
2489
+ font: inherit;
2490
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
2491
+ &:hover {
2492
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
2493
+ }
2494
+ &:active {
2495
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
2496
+ }
2497
+ `,yv=o.div`
2498
+ width: ${40}px;
2499
+ height: ${40}px;
2500
+ display: flex;
2501
+ align-items: center;
2502
+ justify-content: center;
2503
+ flex-shrink: 0;
2504
+ `,xv=o.div`
2505
+ flex: 1 1 0;
2506
+ min-width: 0;
2507
+ overflow: hidden;
2508
+ padding-right: 12px;
2509
+ pointer-events: none;
2510
+ `,bv=({height:r,icons:o})=>{const n=i(),[a,s]=Ht(!1);return e(mv,{$height:r,children:e(gv,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:r,label:o,selected:i,icon:s,onClick:l})=>t(fv,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(yv,{children:e(s,{size:24,fill:n.v2.colors.white[500]})}),a&&e(xv,{children:e(hn,{size:ln.S,weight:500,color:cn.Primary,nowrap:!0,children:o})})]},r))})})};var vv;!function(e){e.S="small",e.L="large"}(vv||(vv={}));const $v=o.div`
2511
+ width: fit-content;
2512
+ display: flex;
2513
+ align-items: center;
2514
+ gap: 8px;
2515
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2516
+ `,wv=o.div`
2517
+ width: ${({$size:e})=>e===vv.S?"16px":"20px"};
2518
+ height: ${({$size:e})=>e===vv.S?"16px":"20px"};
2519
+ display: flex;
2520
+ align-items: center;
2521
+ justify-content: center;
2522
+ border-radius: 100%;
2523
+ border: 1px solid ${({$borderColor:e})=>e};
2524
+ background-color: ${({$backgroundColor:e})=>e};
2525
+ `,Sv=({"data-id":r,label:o,value:n,onChange:a,disabled:s,size:l=vv.L})=>{const c=i(),[d,p]=Ht(!1),u=n,h=l===vv.S?6:8,m=s?c.v2.colors.grey[400]:c.v2.colors.white[500],g=u?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:u?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t($v,{"data-id":r??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!n)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(wv,{$size:l,$borderColor:g,$backgroundColor:f,children:n?e(Mt,{size:h,fill:m}):null}),o&&e(hn,{size:l===vv.S?ln.XXS:ln.XS,children:o})]})},kv=o.div`
2526
+ display: flex;
2527
+ flex-direction: ${({$flexDirection:e})=>e};
2528
+ gap: ${({$gap:e})=>e}px;
2529
+ `,Cv=({label:r,direction:o,disabled:n,size:i,options:a,values:s,setValues:l})=>t(kv,{$flexDirection:o===Fr.Horizontal?"row":"column",$gap:o===Fr.Horizontal?16:8,children:[r&&e(hn,{children:r}),a.map(t=>e(Sv,{...t,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=o,t});var r,o},disabled:n,size:i},`${r}-radio-${t.id}`))]}),Ev=({currentStep:r,data:o,gap:n=12})=>e(Fn,{$gap:n,children:o.map(o=>{const n=o.step<r,i=o.step===r;return t(Pn,{$gap:8,children:[n||o.forceDoneBadge?e(jy,{status:Vr.Success,label:"",leftIcon:yt}):e(jy,{status:Vr.Default,label:o.step.toString()}),e(hn,{size:i?ln.M:ln.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var Av;!function(e){e.Data="data",e.Pretty="pretty"}(Av||(Av={}));const Dv=o.div`
2530
+ height: ${({$maxHeight:e})=>e};
2531
+ width: 100%;
2532
+ display: flex;
2533
+ flex-direction: column;
2534
+ overflow: hidden;
2535
+ `,Tv=o.div`
2536
+ width: 100%;
2537
+ flex: 1;
2538
+ display: flex;
2539
+ flex-direction: column;
2540
+ `,Iv=o.div`
2541
+ flex-shrink: 0;
2542
+ position: relative;
2543
+ z-index: 2;
2544
+ `,Nv=o.div`
2545
+ position: relative;
2546
+ display: flex;
2547
+ width: 100%;
2548
+ `,Rv=o.div`
2549
+ position: relative;
2550
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2551
+ flex: ${({$flex:e})=>e??1};
2552
+ padding: 18px 24px;
2553
+ border: none;
2554
+ border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
2555
+ box-sizing: border-box;
2556
+
2557
+ ${({$variant:e,$backgroundColor:t})=>{if(t)return n`
2558
+ background-color: ${t};
2559
+ `;switch(e){case Av.Data:return n`
2560
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2561
+ `;case Av.Pretty:return n`
2562
+ background-color: transparent;
2563
+ `;default:return""}}}
2564
+ `,Ov=o.div`
2565
+ position: absolute;
2566
+ top: 50%;
2567
+ right: 0;
2568
+ transform: translateY(-50%);
2569
+ width: 1px;
2570
+ height: 18px;
2571
+ background: ${({theme:e})=>e.v2.colors.silver[500]};
2572
+ `,_v=o.div`
2573
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2574
+ flex: ${({$flex:e})=>e??1};
2575
+ overflow: hidden;
2576
+ display: flex;
2577
+ align-items: center;
2578
+
2579
+ padding: 18px 24px;
2580
+ cursor: ${({$withClick:e})=>e?"pointer":"default"};
2581
+ box-sizing: border-box;
2582
+
2583
+ ${({$variant:e,$selected:t,$hovered:r,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Av.Data:return n`
2584
+ border-bottom: ${({theme:e})=>o?"none":`1px solid ${e.v2.colors.silver[500]}`};
2585
+ border-radius: ${o?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
2586
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2587
+ `;case Av.Pretty:return n`
2588
+ border: none;
2589
+ border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
2590
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2591
+ `;default:return""}}}
2592
+ `,Pv=o.div`
2593
+ width: 100%;
2594
+ display: flex;
2595
+ align-items: center;
2596
+ justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2597
+ gap: 4px;
2598
+ text-align: ${({$textAlign:e})=>e||"left"};
2599
+ `,Fv=({variant:r,columns:o,rows:n,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Ht(null),p=Gt(()=>n.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:y,hideCheckbox:x}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===n.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(Nv,{children:[l&&e(_v,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!x&&e(fx,{value:g,onChange:()=>g?y?.():f?.()})},"checkbox-column"),o.map(({key:n,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===n),f=0===m&&!l,y=m===o.length-1,x=v.length&&(a&&y||s&&f||!a&&!s&&y),w=e(Pn,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(hn,{size:ln.XS,children:g?.rawValue||"-"})});return t(_v,{$variant:r,$flex:d,$minWidth:p,...$(f,y),children:[i?e(ip,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,x?e(ev,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[n,c,i,a,s,l,o]);return e(ey,{gap:r===Av.Pretty?8:0,elements:p})},Lv=({columnKey:t,sortDirection:r,sortByKey:o,onSort:n})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Lr.Ascending?0:180;return e(cd,{icon:t=>e(Lt,{fill:s,rotate:l,...t}),onClick:()=>n(t)})},zv=({columnKey:t,filters:r,onFilter:o,rowsUnfiltered:n,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Gt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(n.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[n,t,a]);return e(Cx,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Bt,{fill:l,...t})}})},Mv=({variant:r,backgroundColor:o,columns:n,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(Nv,{children:[p&&e(Rv,{$variant:r,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(fx,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),n.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:y,filterOverride:x,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===n.length-1,C=e(hn,{size:ln.XS,align:$,children:h});return t(Rv,{$variant:r,$backgroundColor:o,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(Pv,{$textAlign:$,children:[g||m?e(ip,{text:g||h,children:C}):C,!f&&e(Lv,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!y&&e(zv,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:x})]}),!k&&r===Av.Data&&e(Ov,{})]},`column-${u}`)})]}),Bv=({variant:r,maxHeight:o="256px",headerBackgroundColor:n,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h,filters:m,onFiltersChange:g})=>{const[f,y]=Ht(Lr.Ascending),[x,b]=Ht(""),[v,$]=Ht({}),w=m??v,S=Kt(e=>{b(e),y(e=>e===Lr.Ascending?Lr.Descending:Lr.Ascending)},[]),k=Kt((e,t)=>{const r={...w,[e]:t};g&&g(r),void 0===m&&$(r)},[w,g,m]),C=Gt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const o=e(t,x),n=e(r,x);return(f===Lr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,n)}):c).filter(t=>{for(const[r,o]of Object.entries(w)){if(!o.length)continue;const n=l.find(e=>e.key===r)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1}else if(!o.includes(e(t,r)))return!1}return!0})},[c,x,f,w,l]),{partiallySelected:E,allSelected:A}=Gt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(Dv,{$maxHeight:o,children:t(Tv,{$variant:r,children:[!i&&e(Iv,{children:e(Mv,{variant:r,backgroundColor:n,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:x,onSort:S,filters:w,onFilter:k,withCheckboxes:h,partiallySelected:E,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(Fv,{variant:r,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Ln,{style:{height:o},children:a?e(Vn,{withSpinner:!0}):e(ux,{...s})})]})})},Uv=o.div`
2600
+ display: flex;
2601
+ align-items: center;
2602
+ justify-content: center;
2603
+ gap: 8px;
2604
+ padding: 8px;
2605
+ border-radius: 6px;
2606
+
2607
+ ${({$flex:e})=>e?n`
2608
+ flex: ${e};
2609
+ `:n`
2610
+ width: fit-content;
2611
+ `}
2612
+
2613
+ ${({$disabled:e,$withClick:t})=>e?n`
2614
+ cursor: not-allowed;
2615
+ background-color: ${({theme:e})=>e.v2.colors.grey[800]};
2616
+ border: 1px solid transparent;
2617
+ `:t?n`
2618
+ cursor: pointer;
2619
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2620
+ &:hover {
2621
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2622
+ }
2623
+ &:active {
2624
+ background-color: ${({theme:e})=>e.v2.colors.purple[900]};
2625
+ border: 1px solid ${({theme:e})=>e.v2.colors.purple[400]};
2626
+ }
2627
+ `:n`
2628
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2629
+ border: 1px solid transparent;
2630
+ `}
2631
+ `,jv=({label:r,leftIcon:o,rightIcon:n,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(Uv,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[o&&e(o,{fill:d,size:16}),e(hn,{color:d,size:ln.XS,nowrap:!0,children:r}),n&&e(n,{fill:d,size:16})]})},Wv=o.div`
2632
+ padding: 6px 12px;
2633
+
2634
+ display: flex;
2635
+ align-self: stretch;
2636
+ align-items: flex-start;
2637
+ gap: 8px;
2638
+ border-radius: 6px;
2639
+
2640
+ border: 1px solid ${({theme:e,$disabled:t,$error:r})=>t?e.v2.colors.grey[600]:r?e.v2.colors.red[500]:e.v2.colors.silver[500]};
2641
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
2642
+ ${({$disabled:e,$error:t})=>!e&&!t&&n`
2643
+ &:hover,
2644
+ &:active,
2645
+ &:focus-within {
2646
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2647
+ }
2648
+ `}
2649
+ `,Hv=o.textarea`
2650
+ max-width: ${({$maxWidth:e})=>e||"unset"};
2651
+ min-height: ${({$minHeight:e})=>e||"50px"};
2652
+ flex: 1;
2653
+ font-family: ${({theme:e})=>e.font_family.primary};
2654
+ font-size: 14px;
2655
+ font-weight: 400;
2656
+ resize: none;
2657
+
2658
+ background: transparent;
2659
+ border: none;
2660
+ outline: none;
2661
+ cursor: text;
2662
+ color: ${({theme:e})=>e.v2.colors.white[500]};
2663
+ &::placeholder {
2664
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
2665
+ }
2666
+
2667
+ &:disabled {
2668
+ cursor: not-allowed;
2669
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2670
+ &::placeholder {
2671
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2672
+ }
2673
+ }
2674
+ `,Xv=({label:r,required:o,tooltip:n,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Vt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Fn,{$gap:6,children:[e(Xy,{label:r,tooltip:n,required:o,badge:i}),e(Wv,{$disabled:u,$error:!!a,children:e(Hv,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(Gy,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Gv=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Vv=o.div`
2675
+ flex: 1;
2676
+ min-width: 0;
2677
+ `,Kv=o.div`
2678
+ flex: 0 0 auto;
2679
+ min-width: 140px;
2680
+ `,qv=({name:r,label:o,tooltip:n,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=Gv,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:y})=>{const x=Gt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Gt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),n=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(n);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(c,p,x),[c,p,x]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Fn,{$width:y,$gap:6,children:[e(Xy,{label:o,tooltip:n,required:s,badge:i}),t(Pn,{$gap:8,$alignItems:"center",children:[e(Vv,{children:e(Jy,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(fi(e.target.value),v)})}),e(Kv,{children:e(qb,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(Gy,{errorMessage:h,warnMessage:m,helpMessage:g})]})},Jv=o.div`
2681
+ min-width: 500px;
2682
+ `,Yv=o.div`
2683
+ display: flex;
2684
+ flex-direction: column;
2685
+ align-items: center;
2686
+ gap: 16px;
2687
+ padding: 24px;
2688
+ width: calc(100% - 48px);
2689
+ `,Qv=o.div`
2690
+ display: flex;
2691
+ justify-content: center;
2692
+ gap: 16px;
2693
+ padding: 16px 24px;
2694
+ width: calc(100% - 48px);
2695
+ background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2696
+ `,Zv=({visual:r,title:o,description:n,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(hv,{isOpen:i,onClose:a,...d,children:t(Jv,{children:[t(Yv,{children:[r&&e(r,{}),e(hn,{size:ln.M,weight:500,color:cn.Primary,children:o}),e(Fn,{$alignItems:"center",$gap:4,children:n.split("\n").map(t=>e(hn,{size:ln.XS,weight:400,color:cn.Secondary,children:t},t))}),c]}),(s||l)&&t(Qv,{children:[s&&e(dx,{"data-id":"deny",...s}),l&&e(dx,{"data-id":"approve",...l})]})]})});export{wr as $,Rx as A,lx as B,Mp as C,Ux as D,Wr as E,Pn as F,Ag as G,pi as H,Gm as I,nu as J,qn as K,Vn as L,Xp as M,ux as N,qr as O,Ur as P,_u as Q,Vr as R,ox as S,Ti as T,oi as U,su as V,Vd as W,Nu as X,Ou as Y,Mg as Z,ev as _,sx as a,wi as a$,yp as a0,si as a1,yi as a2,$c as a3,Ad as a4,bc as a5,Io as a6,Sd as a7,ei as a8,ro as a9,Ho as aA,Yi as aB,Po as aC,jr as aD,kc as aE,ki as aF,Xd as aG,Bn as aH,Ao as aI,Gi as aJ,Qf as aK,Fo as aL,ui as aM,Kn as aN,Sc as aO,Cr as aP,mu as aQ,Vo as aR,bu as aS,Un as aT,jn as aU,kf as aV,Wo as aW,Wn as aX,Eg as aY,By as aZ,qc as a_,eu as aa,hg as ab,Cp as ac,Mo as ad,Tr as ae,Nr as af,Ir as ag,Mm as ah,Tp as ai,Ri as aj,Gr as ak,ni as al,Ff as am,Ly as an,Wf as ao,Rf as ap,lp as aq,iu as ar,Xr as as,dy as at,Bc as au,ay as av,Vg as aw,qf as ax,_y as ay,rd as az,Ln as b,jc as b$,Zc as b0,Ic as b1,Cu as b2,no as b3,Go as b4,Xo as b5,ey as b6,mi as b7,Ro as b8,qo as b9,hi as bA,$r as bB,ti as bC,go as bD,hd as bE,ri as bF,xr as bG,gi as bH,Qi as bI,Zi as bJ,bo as bK,Ay as bL,Rg as bM,Qo as bN,so as bO,yo as bP,lo as bQ,xo as bR,ao as bS,co as bT,io as bU,Iy as bV,zo as bW,Cc as bX,gd as bY,ea as bZ,zr as b_,jo as ba,Uo as bb,Tc as bc,Ec as bd,by as be,ad as bf,Ar as bg,$o as bh,Er as bi,nd as bj,vd as bk,Qd as bl,zn as bm,hy as bn,xd as bo,Ym as bp,uc as bq,pc as br,Eo as bs,$d as bt,pd as bu,Oc as bv,So as bw,Vp as bx,cu as by,Hr as bz,vc as c,jv as c$,Fd as c0,id as c1,Qr as c2,Zn as c3,Kb as c4,Ki as c5,Vu as c6,Dd as c7,lu as c8,Af as c9,Zv as cA,Tm as cB,xm as cC,Ts as cD,Ua as cE,ts as cF,qa as cG,Is as cH,Ds as cI,ya as cJ,xa as cK,Hx as cL,Da as cM,qi as cN,Ji as cO,qb as cP,cd as cQ,Nd as cR,Jr as cS,sn as cT,Id as cU,Td as cV,Rm as cW,Co as cX,ko as cY,_n as cZ,wb as c_,Pd as ca,yu as cb,Lo as cc,ai as cd,ed as ce,sd as cf,cg,yc as ch,Oo as ci,Rp as cj,rn as ck,pu as cl,Xy as cm,fx as cn,Gy as co,Jy as cp,av as cq,tv as cr,rh as cs,wo as ct,Xv as cu,uh as cv,Ub as cw,bi as cx,fh as cy,ah as cz,fd as d,xl as d$,ta as d0,sa as d1,oa as d2,aa as d3,Dm as d4,sc as d5,cc as d6,ja as d7,ia as d8,lc as d9,rc as dA,oc as dB,nc as dC,ic as dD,Hs as dE,Gs as dF,Vs as dG,Ks as dH,Js as dI,qs as dJ,Qs as dK,Ys as dL,el as dM,Zs as dN,tl as dO,Us as dP,js as dQ,cl as dR,dl as dS,fl as dT,ml as dU,gl as dV,ul as dW,hl as dX,pl as dY,vl as dZ,$l as d_,Ls as da,Fs as db,Bs as dc,Ms as dd,_s as de,Os as df,ra as dg,Ss as dh,Cx as di,vx as dj,bx as dk,ac as dl,jh as dm,Ws as dn,pm as dp,rl as dq,ol as dr,nl as ds,il as dt,sl as du,al as dv,ll as dw,Nn as dx,ec as dy,tc as dz,To as e,ca as e$,bl as e0,yl as e1,Sl as e2,kl as e3,wl as e4,Sv as e5,vv as e6,Xs as e7,Xl as e8,Gl as e9,_l as eA,zl as eB,hv as eC,Ed as eD,Rn as eE,Nm as eF,ph as eG,th as eH,gh as eI,lv as eJ,Ev as eK,hx as eL,_x as eM,ih as eN,Fx as eO,Ox as eP,an as eQ,ub as eR,po as eS,Vx as eT,sb as eU,Jx as eV,On as eW,Ta as eX,us as eY,da as eZ,la as e_,Vl as ea,Hl as eb,ql as ec,Jl as ed,Yl as ee,Ql as ef,Zl as eg,Kl as eh,jl as ei,Wl as ej,Ol as ek,mm as el,Ml as em,Bl as en,Ul as eo,Pl as ep,Ll as eq,Fl as er,Cl as es,El as et,Al as eu,Dl as ev,Tl as ew,Il as ex,Nl as ey,Rl as ez,gf as f,ha as f$,pa as f0,Wh as f1,hm as f2,fm as f3,ym as f4,nm as f5,tm as f6,Ih as f7,Th as f8,Dh as f9,Xa as fA,Ya as fB,as as fC,Ba as fD,ns as fE,Pa as fF,va as fG,Fa as fH,_a as fI,$a as fJ,La as fK,ms as fL,Oa as fM,ps as fN,gs as fO,hs as fP,fs as fQ,ys as fR,es as fS,wa as fT,Sa as fU,Ea as fV,Aa as fW,Ia as fX,Ra as fY,Na as fZ,ua as f_,im as fa,rm as fb,Vh as fc,dm as fd,Ns as fe,ws as ff,vs as fg,$s as fh,bs as fi,xs as fj,Hh as fk,Xh as fl,Gh as fm,Es as fn,As as fo,Cs as fp,ks as fq,bd as fr,qv as fs,Va as ft,Ca as fu,Ga as fv,ka as fw,Za as fx,Qa as fy,za as fz,_o as g,vi as g$,ba as g0,rs as g1,os as g2,ss as g3,dc as g4,ma as g5,Fh as g6,na as g7,Zh as g8,Ah as g9,ho as gA,uo as gB,Yr as gC,vo as gD,fo as gE,Lr as gF,Rr as gG,En as gH,Cn as gI,Tn as gJ,br as gK,No as gL,Sr as gM,Bo as gN,Ko as gO,Yo as gP,Zo as gQ,en as gR,tn as gS,on as gT,nn as gU,Jn as gV,ii as gW,li as gX,di as gY,fi as gZ,xi as g_,Qh as ga,Eh as gb,Yh as gc,Ch as gd,Wa as ge,Ma as gf,Ha as gg,ls as gh,Ja as gi,cs as gj,Ex as gk,is as gl,kn as gm,Dr as gn,eo as go,_r as gp,to as gq,Zr as gr,Br as gs,Kr as gt,Pr as gu,Fr as gv,Or as gw,oo as gx,Mr as gy,mo as gz,Xg as h,$i as h0,kr as h1,Si as h2,ds as h3,zs as h4,Ps as h5,Rs as h6,fa as h7,ga as h8,hc as h9,Di as hA,Ix as hB,Nx as hC,xx as hD,yb as hE,Gv as hF,Yx as hG,Qb as hH,bv as hI,Cv as hJ,jx as hK,Nb as hL,Sb as hM,mc as ha,gc as hb,Ka as hc,fc as hd,Mc as he,Vc as hf,Uc as hg,zc as hh,yd as hi,od as hj,Cd as hk,_m as hl,Pm as hm,Bu as hn,Fu as ho,Hg as hp,pf as hq,nf as hr,yf as hs,wf as ht,uu as hu,Gf as hv,Mn as hw,Yg as hx,Ei as hy,Ai as hz,Ep as i,Tb as j,kb as k,Cb as l,dx as m,hn as n,cn as o,ln as p,ip as q,Qy as r,Yy as s,Bv as t,dd as u,Av as v,ax as w,jy as x,Fn as y,Do as z};