@odigos/ui-kit 0.0.265 → 0.0.266

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,1591 @@
1
+ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{ActionIcon as l,RenameAttributeIcon as c,PiiMaskingIcon as d,DeleteAttributeIcon as u,AddClusterInfoIcon as p,K8sLogo as h,ImageErrorIcon as g,PayloadCollectionIcon as m,HeadersCollectionIcon as f,CustomInstrumentationIcon as y,CodeAttributesIcon as b,VSquareIcon as v,XSquareIcon as E,KafkaLogo as S,RedisLogo as C,PostgresLogo as $,NginxLogo as x,MysqlLogo as w,ElixirLogo as T,SwiftLogo as O,RustLogo as N,RubyLogo as I,PhpLogo as A,CPlusPlusLogo as _,CSharpLogo as R,DotnetLogo as D,PythonLogo as k,NodejsLogo as L,GoLogo as P,JavaLogo as U,PyroscopeLogo as M,AwsXrayLogo as F,VictoriaMetricsLogo as z,UptraceLogo as B,TraceloopLogo as H,TingyunLogo as W,TempoLogo as j,TelemetryHubLogo as G,SumoLogicLogo as X,SplunkLogo as V,SignozLogo as K,SeqLogo as Y,AwsS3Logo as J,QuickwitLogo as q,GigapipeLogo as Q,QrynLogo as Z,PrometheusLogo as ee,OpenTelemetryLogo as te,OracleLogo as oe,OpsVerseLogo as ne,OpenObserveLogo as re,OneUptimeLogo as ie,OdigosLogo as ae,ObserveLogo as se,NewRelicLogo as le,MiddlewareLogo as ce,LumigoLogo as de,LokiLogo as ue,LogzioLogo as pe,LightstepLogo as he,Last9Logo as ge,KloudmateLogo as me,JaegerLogo as fe,InstanaLogo as ye,HyperDxLogo as be,HoneycombLogo as ve,GroundcoverLogo as Ee,GreptimeLogo as Se,GrafanaLogo as Ce,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as xe,ElasticApmLogo as we,DynatraceLogo as Te,DatadogLogo as Oe,Dash0Logo as Ne,CoralogixLogo as Ie,AwsCloudwatchLogo as Ae,ClickhouseLogo as _e,ChronosphereLogo as Re,ChecklyLogo as De,CauselyLogo as ke,BonreeLogo as Le,BetterStackLogo as Pe,AzureMonitorLogo as Ue,AzureBlobLogo as Me,AxiomLogo as Fe,AppDynamicsLogo as ze,AlibabaCloudLogo as Be,AlaudaLogo as He,SamplingIcon as We,InstrumentationRuleIcon as je,DestinationIcon as Ge,SourceIcon as Xe,NamespacesIcon as Ve,TracesIcon as Ke,MetricsIcon as Ye,LogsIcon as Je,CloudConnectorIcon as qe,VmLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as ot,ISquareIcon as nt,AwsLogo as rt,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as ut,AwsLambdaLogo as pt,AwsSnsLogo as ht,AwsSqsLogo as gt,AwsDynamoDbLogo as mt,AwsStsLogo as ft,OpenTelemetryLogoStripped as yt,VIcon as bt,CopyIcon as vt,SearchIcon as Et,XIcon as St,MinusIcon as Ct,ChevronUpIcon as $t,ChevronDownIcon as xt,DotsVerticalIcon as wt,EyeClosedIcon as Tt,EyeOpenIcon as Ot,ArrowIcon as Nt,ListIcon as It,CodeIcon as At,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as kt,FilterIcon as Lt}from"../icons.js";import{create as Pt}from"zustand";import{forwardRef as Ut,Fragment as Mt,useState as Ft,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as Wt,useLayoutEffect as jt,createElement as Gt}from"react";import Xt from"javascript-time-ago";import Vt from"javascript-time-ago/locale/en";import Kt,{createPortal as Yt}from"react-dom";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{persist as Qt,createJSONStorage as Zt}from"zustand/middleware";import{ErrorBoundary as eo}from"react-error-boundary";import{VList as to}from"virtua";const oo=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var no,ro,io,ao,so,lo,co,uo,po,ho,go,mo,fo,yo,bo,vo,Eo,So,Co,$o,xo,wo,To,Oo,No,Io,Ao,_o,Ro,Do,ko,Lo,Po,Uo,Mo,Fo,zo,Bo,Ho,Wo,jo,Go;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"})(no||(no={})),(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.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"})(ro||(ro={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(io||(io={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ao||(ao={})),(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"})(so||(so={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(lo||(lo={})),(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"})(co||(co={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(uo||(uo={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(po||(po={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(ho||(ho={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(go||(go={})),(e=>{e.Community="community",e.Onprem="onprem"})(mo||(mo={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector"})(fo||(fo={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(yo||(yo={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(bo||(bo={})),(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"})(vo||(vo={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Eo||(Eo={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(So||(So={})),(e=>{e.DataStream="DataStream"})(Co||(Co={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup"})($o||($o={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(xo||(xo={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(wo||(wo={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(To||(To={})),(e=>{e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"})(Oo||(Oo={})),(e=>{e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"})(No||(No={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Io||(Io={})),(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"})(Ao||(Ao={})),(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"})(_o||(_o={})),(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",e.InstrumentationConfig="InstrumentationConfig"})(Ro||(Ro={})),(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"})(Do||(Do={})),(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"})(ko||(ko={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Lo||(Lo={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Po||(Po={})),(e=>{e.HeaderKeys="headerKeys"})(Uo||(Uo={})),(e=>{e.Java="java",e.Golang="golang"})(Mo||(Mo={}));class Xo{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 Vo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(Fo||(Fo={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(zo||(zo={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Bo||(Bo={})),(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={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Wo||(Wo={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(jo||(jo={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Go||(Go={}));const Ko={[jo.Logs]:Go.Logs,[jo.Metrics]:Go.Metrics,[jo.Traces]:Go.Traces,[jo.Profiles]:Go.Profiles},Yo={[Go.Logs]:jo.Logs,[Go.Metrics]:jo.Metrics,[Go.Traces]:jo.Traces,[Go.Profiles]:jo.Profiles};var Jo,qo;(e=>{e.RolloutWorkload="RolloutWorkload"})(Jo||(Jo={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(qo||(qo={}));const Qo=e=>({[no.K8sAttributes]:h,[no.AddClusterInfo]:p,[no.DeleteAttributes]:u,[no.PiiMasking]:d,[no.RenameAttributes]:c,[no.ExtractAttribute]:l,[no.URLTemplatization]:l}[e]||g),Zo=[{type:no.K8sAttributes,icon:Qo(no.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[fo.K8s]},{type:no.AddClusterInfo,icon:Qo(no.AddClusterInfo),label:"Add Cluster Info",description:"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.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[fo.K8s]},{type:no.DeleteAttributes,icon:Qo(no.DeleteAttributes),label:"Delete Attribute",description:"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.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[fo.K8s]},{type:no.RenameAttributes,icon:Qo(no.RenameAttributes),label:"Rename Attribute",description:"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.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[fo.K8s]},{type:no.PiiMasking,icon:Qo(no.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[fo.K8s]},{type:no.URLTemplatization,icon:Qo(no.URLTemplatization),label:"URL Templatization",description:"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.",allowedSignals:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[fo.K8s]:oo("v1.21.0")},supportedPlatforms:[fo.K8s,fo.Vm]},{type:no.ExtractAttribute,icon:Qo(no.ExtractAttribute),label:"Extract Attribute",description:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",allowedSignals:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[fo.K8s]:oo("v1.29.0")},supportedPlatforms:[fo.K8s]}],en=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),tn=(e,t,o)=>{const n=e.minVersion?.[t];return!n||oo(o)>=n},on=(e,t)=>Zo.filter(o=>en(o,e)&&tn(o,e,t)),nn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Qo(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var rn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(rn||(rn={}));const an={[rn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[rn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[rn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[rn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[rn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[rn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},sn=e=>({[Lo.CodeAttributes]:b,[Lo.CustomInstrumentation]:y,[Lo.HeadersCollection]:f,[Lo.PayloadCollection]:m,[Lo.UnknownType]:g}[e]||g),ln=[{type:Lo.CodeAttributes,icon:sn(Lo.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[vo.Go,vo.Python,vo.JavaScript]},{type:Lo.CustomInstrumentation,icon:sn(Lo.CustomInstrumentation),label:"Custom Instrumentation",description:'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.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[vo.Go,vo.Java]},{type:Lo.HeadersCollection,icon:sn(Lo.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[vo.Go,vo.Java,vo.JavaScript]},{type:Lo.PayloadCollection,icon:sn(Lo.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[vo.Go,vo.JavaScript]}],cn=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:sn(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages,fields:e.fields})):[]},dn={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},un={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},pn={[uo.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[uo.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[uo.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},hn="Cancel",gn="Save",mn="Edit rule",fn="Edit auto rule",yn="Create rule",bn="Delete rule",vn="Save",En="Create your first rule",Sn="No Rules Exist",Cn="No Results",$n=e=>`No rules match the search term "${e}"`,xn="Rule name",wn="Rule type",Tn="Select the type of condition that makes a trace highly relevant.",On="Rule Enabled",Nn="Rule Disabled",In="Enabled",An="Disabled",_n="Note",Rn="HTTP route",Dn="Method",kn="Keep Percentage",Ln="Keep traces with duration larger than",Pn="Keep traces with errors",Un="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Mn="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Fn="Custom percentage",zn="Disabled rule",Bn="Sample",Hn="Keep all",Wn="Drop all",jn="Operation type",Gn="HTTP route prefix",Xn="Templated path",Vn="Templated path prefix",Kn="Kafka topic",Yn="Custom duration (ms)",Jn="No preview available",qn="Server address",Qn="Drop at most this percentage of matching traces",Zn="Unnamed rule",er="Sampling Preview",tr="Source Scope",or="Unknown source",nr="Operation",rr="Duration",ir="Errors",ar="Keep Percentage",sr="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",lr="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.",cr="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",dr="Retain traces with errors from the selected services and operations.",ur="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",pr="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",hr={highlyRelevant:ur,noisy:pr,costReduction:void 0},gr="Type rule name",mr="Add note here...",fr="Type here",yr="Search source name",br="e.g. collector.my.vendor.com",vr="Optional notes (not used by the system). Add any context or details for this sampling rule.",Er="Rule will apply to all sources in the cluster",Sr="If multiple source scopes are set, they must all match simultaneously.",Cr="All sources",$r="-",xr="All",wr="Sources",Tr="Namespaces",Or="Languages",Nr="any of",Ir="AND",Ar="All operations",_r="HTTP server endpoint",Rr="HTTP client endpoint",Dr="Kafka consumer",kr="Kafka producer",Lr="Sampling Rules",Pr='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ur="Refresh",Mr="Create rule",Fr="Sampling docs",zr="75vw",Br="Delete rule?",Hr="Are you sure you want to delete this sampling rule?",Wr="Delete",jr="Cancel",Gr="Kubernetes Health Probes",Xr="Keep All Error Traces",Vr="Drop Traces Cluster-Wide",Kr="A rule with the same matching conditions already exists.",Yr="Create this rule as-is?",Jr="This rule still uses the default configuration.\nDo you want to create it anyway?",qr="Rule preview",Qr="Continue editing",Zr="Create 'Noisy Operation Kubernetes Health Probes' rule",ei="Edit 'Noisy Operation Kubernetes Health Probes' rule",ti="Automatically detect and sample health probe traces across the cluster.",oi="Create 'Highly Relevant Operations' rule",ni="Edit 'Highly Relevant Operations' rule",ri="Automatically keep all error traces across the entire cluster.",ii="Create 'Cost Reduction' rule",ai="Edit 'Cost Reduction' rule",si="Automatically drop a percentage of traces across the entire cluster.",li="Skip setup",ci="Start setup",di="Next",ui="Go to Sampling",pi="Read more",hi="Welcome to Sampling",gi="Cut costs without losing what matters",mi="Odigos sampling works in three stages:",fi="Filter noisy traffic",yi="Remove non-actionable traces like health checks.",bi="Guarantee highly relevance operations",vi="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ei="Reduce cost",Si="Sample routine traffic using percentages.",Ci="Sampling does not drop individual spans - it keeps or drops the entire trace.",$i="Filter noisy operations",xi="Cut traces with little or no observability value (health-checks, metric scarping, etc)",wi="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.",Ti="Preset Rules",Oi="Kubernetes Health Probes",Ni="Automatically ignore health checks",Ii="You can review, adjust, and add additional custom rules later.",Ai="Choose your sampling strategy",_i="Pick the approach that best fits your balance of cost vs data-completeness",Ri="Keep List",Di="Budget Friendly",ki="Define which traces must be kept, while all others are sampled by default to minimize cost.",Li="Cost-oriented - keeps only what you explicitly select.",Pi="Best for very large clusters with high volumes of traces and high costs.",Ui="Higher risk of missing important traces without ongoing review.",Mi="Drop List",Fi="Safe Choice",zi="Define which traces must be aggressively dropped, while all others are kept by default.",Bi="Preserves most data unless explicitly filtered.",Hi="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Wi="Advanced",ji="Maximum Flexibility",Gi="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Xi="'Keep List' profile",Vi="Protect important traces",Ki="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:",Yi="Traces with errors",Ji="Slow requests (duration above threshold)",qi="Mission-Critical endpoints or services",Qi="Services under test or evaluation",Zi="New deployments",ea="You can review, adjust, and add rules once onboarding is complete.",ta="Common Rules",oa="Preset Rules",na="Error collection - entire cluster",ra="Keep all traces with errors",ia="Ambient sampling percentage",aa="'Drop List' profile",sa="Reduce high-volume traffic",la="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.",ca="Advanced Configuration",da="Configure sampling rules",ua="Advanced mode allows you to configure all sampling categories:",pa="Noise Filtering - remove non-actionable traces",ha="Highly Relevance - guarantee important traces are kept",ga='Cost Control - drop traces for "Normal" operations',ma="Rules can target:",fa="Services",ya="HTTP Endpoints",ba="DB Operations",va="Errors",Ea="Latency and more...",Sa="Sampling configured successfully!",Ca="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",$a="Odigos will now:",xa="Filter noisy operations",wa="Guarantee important traces",Ta="Reduce cost using controlled sampling",Oa="Recommended",Na={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."},Ia={noisy:Zr,highlyRelevant:oi,costReduction:ii},Aa={noisy:ei,highlyRelevant:ni,costReduction:ai},_a={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Ra=[{id:jo.Logs,value:"Logs"},{id:jo.Metrics,value:"Metrics"},{id:jo.Traces,value:"Traces"},{id:jo.Profiles,value:"Profiles"}],Da=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var ka,La,Pa;(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"})(ka||(ka={})),(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"})(La||(La={})),(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"})(Pa||(Pa={}));const Ua=new Set(Object.values(Pa)),Ma=(e,t)=>{if("string"!=typeof(o=t)||!Ua.has(o))return t;var o;switch(t){case Pa.Primary:return e.v2.colors.white[500];case Pa.Secondary:return e.v2.colors.silver[200];case Pa.Tertiary:return e.v2.colors.black[500];case Pa.Disable:return e.v2.colors.grey[400];case Pa.Error:return e.v2.colors.red[500];case Pa.Mandatory:return e.v2.colors.red[600];case Pa.Link:return e.v2.colors.purple[400];case Pa.Success:return e.v2.colors.green[400];default:return}},Fa=n.p`
2
+ margin: 0;
3
+ color: ${({$color:e,theme:t})=>Ma(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:o})=>t||`${e.v2.text.size[o]+2}px`};
10
+ opacity: ${({$opacity:e})=>e};
11
+
12
+ ${({$nowrap:e})=>e?r`
13
+ text-wrap: nowrap;
14
+ white-space: nowrap;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ `:r`
18
+ flex: 0 1 auto;
19
+ min-width: 0;
20
+ overflow-wrap: anywhere;
21
+ `}
22
+
23
+ ${({$maxLines:e})=>!!e&&e>0&&r`
24
+ display: -webkit-box;
25
+ -webkit-box-orient: vertical;
26
+ -webkit-line-clamp: ${e};
27
+ line-clamp: ${e};
28
+ overflow: hidden;
29
+ `}
30
+
31
+ ${({$underline:e})=>e&&r`
32
+ text-decoration: underline;
33
+ `}
34
+
35
+ ${({$withClick:e})=>e&&r`
36
+ cursor: pointer;
37
+ &:hover {
38
+ text-decoration: underline;
39
+ }
40
+ `}
41
+ `,za=Ut(({children:o,variant:n=ka.P,color:r,size:i=La.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=o?.toString().split("\n")||[];return e(Fa,{ref:y,as:n,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b.map((o,n)=>t(Mt,{children:[o,n!==b.length-1&&e("br",{})]},`typography-${n}-${o}`))})});za.displayName="Typography";const Ba="https://docs.odigos.io",Ha="default",Wa="this-cluster",ja="This Cluster",Ga={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Xa={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)'},Va={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",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",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",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",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect 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_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",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.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",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",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",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.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},Ka={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Ya=(e,t)=>e===wo.Success?Va.HEALTHY:e===wo.Error?Va.NOT_HEALTHY:Da(t),Ja=e=>{if(!e)return null;switch(e){case ko.Irrelevant:return null;case ko.Failure:case ko.Error:return wo.Error;case ko.Notice:return wo.Warning;case ko.Pending:case ko.Waiting:return wo.Loading;case ko.Unsupported:case ko.Disabled:return wo.Disabled;case ko.Success:return wo.Success;case ko.Unknown:default:return wo.Info}},qa=(e,t,o="reason",n)=>{const r=Ja(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===wo.Success?v:E),label:n||("reason"===o?Da(e?.reasonEnum):Ya(r,e?.reasonEnum)),tooltip:e?.message,textSize:La.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Qa=e=>e.charAt(0).toUpperCase()+e.slice(1),Za=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]="object"==typeof i&&null!==i?JSON.stringify(o(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(o(r)):e[n]=r}return e},{})};var es;(e=>{e.SIGNALS="SIGNALS"})(es||(es={}));const ts=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,i]=e;if(n===es.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=o.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){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}},os=e=>JSON.parse(JSON.stringify(e)),ns=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),rs=(e,t,o)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=o},is=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},as=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},ss=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],ls=(e,t)=>{let o=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));o=o.filter(({runtimeInfo:t,containers:o})=>t?.detectedLanguages?.some(t=>e.has(t))||o?.some(t=>{const o=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!o&&e.has(o)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));o=o.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(o=o.filter(e=>Ja(e.workloadOdigosHealthStatus?.status)===wo.Error)),o},cs=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ha&&!e.dataStreamNames?.length):[],ds=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],i=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${i}[${t}]`;null!==e&&"object"==typeof e?ds(e,n,o):o[n]=e}):o[i]=r:ds(r,i,o)}return o},us=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]}`},ps=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`}},hs=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},gs=e=>{if(!e)return ms([]);if(Array.isArray(e))return ms(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const o=Ja(t.status);o&&e.push({status:o,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return ms(t)},ms=e=>{const t=e?.filter(({status:e})=>e===wo.Error),o=e?.filter(({status:e})=>e===wo.Warning),n=e?.filter(({status:e})=>e===wo.Disabled),r=e?.filter(({status:e})=>e===wo.Loading),i=t.length>0,a=o.length>0,s=n.length>0;return{errors:t,hasErrors:i,warnings:o,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?wo.Error:a?wo.Warning:s?wo.Info:void 0}},fs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},ys=e=>({[vo.Java]:U,[vo.Go]:P,[vo.JavaScript]:L,[vo.Python]:k,[vo.DotNet]:D,[vo.CSharp]:R,[vo.CPlusPlus]:_,[vo.Php]:A,[vo.Ruby]:I,[vo.Rust]:N,[vo.Swift]:O,[vo.Elixir]:T,[vo.MySql]:w,[vo.Nginx]:x,[vo.Postgres]:$,[vo.Redis]:C,[vo.Kafka]:S,[vo.Ignored]:g,[vo.Unknown]:g,[vo.Processing]:g,[vo.NoContainers]:g,[vo.NoRunningPods]:g}[e]||g),bs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown:vo.Unknown,vs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Es=e=>e?.map(e=>ys(bs(e)))||[],Ss=e=>e?.map(e=>ys(e))||[],Cs=e=>e.runtimeInfo?.detectedLanguages?.length?Ss(e.runtimeInfo?.detectedLanguages):Es(e.containers),$s=(e,t)=>{const o={[_o.Alauda]:He,[_o.AlibabaCloud]:Be,[_o.AppDynamics]:ze,[_o.Axiom]:Fe,[_o.AzureBlob]:Me,[_o.AzureMonitor]:Ue,[_o.BetterStack]:Pe,[_o.Bonree]:Le,[_o.Causely]:ke,[_o.Checkly]:De,[_o.Chronosphere]:Re,[_o.ClickHouse]:_e,[_o.CloudWatch]:Ae,[_o.Coralogix]:Ie,[_o.Dash0]:Ne,[_o.Datadog]:Oe,[_o.Dynamic]:te,[_o.Dynatrace]:Te,[_o.ElasticApm]:we,[_o.ElasticSearch]:xe,[_o.GoogleCloud]:$e,[_o.GoogleCloudOTLP]:$e,[_o.GrafanaCloudLoki]:Ce,[_o.GrafanaCloudPrometheus]:Ce,[_o.GrafanaCloudTempo]:Ce,[_o.Greptime]:Se,[_o.Groundcover]:Ee,[_o.Honeycomb]:ve,[_o.HyperDX]:be,[_o.Instana]:ye,[_o.Jaeger]:fe,[_o.Kafka]:S,[_o.Kloudmate]:me,[_o.Last9]:ge,[_o.Lightstep]:he,[_o.LogzIo]:pe,[_o.Loki]:ue,[_o.Lumigo]:de,[_o.Middleware]:ce,[_o.NewRelic]:le,[_o.Observe]:se,[_o.Odigos]:ae,[_o.OneUptime]:ie,[_o.OpenObserve]:re,[_o.Opsverse]:ne,[_o.Oracle]:oe,[_o.OTLP]:te,[_o.OTLPHttp]:te,[_o.Prometheus]:ee,[_o.Qryn]:Z,[_o.QrynOss]:Q,[_o.Quickwit]:q,[_o.S3]:J,[_o.Seq]:Y,[_o.Signalfx]:V,[_o.Signoz]:K,[_o.Splunk]:V,[_o.SplunkSapm]:V,[_o.SplunkOtlp]:V,[_o.SumoLogic]:X,[_o.TelemetryHub]:G,[_o.Tempo]:j,[_o.Tingyun]:W,[_o.Traceloop]:H,[_o.Uptrace]:B,[_o.VictoriaMetrics]:z,[_o.VictoriaMetricsCloud]:z,[_o.XRay]:F,[_o.Pyroscope]:M}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xs=e=>({[So.Namespace]:Ve,[So.Source]:Xe,[So.Destination]:Ge,[So.Action]:l,[So.InstrumentationRule]:je,[So.SamplingRule]:We}[e]),ws=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?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,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Ts=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Os=e=>Ts(ws(e)),Ns=(e,t,o)=>{const{extended:n,prioritizeDisplayName:r}=o||{};let i="",a="";switch(t){case So.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case So.Source:const o=e;i=o.id.name,a=o.serviceName||"";break;case So.Action:const n=e;i=n.type,a=n.name||"";break;case So.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case So.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):r&&a||i},Is=(e,t)=>{if(t===So.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},As=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown,_s=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?vo.Processing:vo.NoRunningPods;const n=o?.filter(e=>As(e)!==vo.Ignored);if(!n.length)return vo.NoContainers;const r=n.find(e=>As(e)!==vo.Unknown);return r?As(r):vo.Unknown},Rs=(e,t,o)=>(t===So.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},Ds=e=>({[jo.Logs]:Je,[jo.Metrics]:Ye,[jo.Traces]:Ke,[jo.Profiles]:ae}[e]),ks=(e,t)=>Object.values(La).reduce((o,n)=>Math.abs(t[n]-e)<Math.abs(t[o]-e)?n:o),Ls=e=>e?{[fo.K8s]:h,[fo.Vm]:Qe,[fo.Connector]:qe}[e]:ae,Ps=e=>e?{[fo.K8s]:"Kubernetes Cluster",[fo.Vm]:"Virtual Machine",[fo.Connector]:"Cloud Connector"}[e]:"Unknown",Us=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...Us(e,t,o)),r}):[]},Ms={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},Fs=e=>{if(!e)return"";if(Ms[e])return Ms[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},zs=(e,t)=>{if(t===So.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Bs=(e,t,o)=>{switch(o=o??"500",t){case wo.Default:return e.v2.colors.purple[o];case wo.Info:return e.v2.colors.blue[o];case wo.Error:return e.v2.colors.red[o];case wo.Warning:return e.v2.colors.yellow[o];case wo.Success:return e.v2.colors.green[o];case wo.Loading:case wo.Disabled:case wo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},Hs=e=>{switch(e){case zo.Updating:case Bo.Pending:case Ho.ContainerCreating:case Wo.Waiting:return wo.Info;case zo.Healthy:case Bo.Succeeded:case Bo.Running:case Ho.Running:case Wo.Running:return wo.Success;case zo.Degraded:return wo.Warning;case zo.Failed:case Bo.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 Wo.Terminated:case Ho.DeadlineExceeded:case Ho.StartError:return wo.Error;case zo.Down:case Ho.Completed:return wo.Disabled;case zo.Unknown:case Bo.Unknown:default:return wo.Unknown}},Ws=n.div`
42
+ border-radius: 100%;
43
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
+ position: relative;
45
+ `,js=n.div`
46
+ width: 80px;
47
+ height: 80px;
48
+ border-radius: 100%;
49
+ border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
50
+ border-right-color: transparent;
51
+ border-left-color: transparent;
52
+ border-bottom-color: transparent;
53
+ animation: spin 1s linear infinite;
54
+ @keyframes spin {
55
+ to {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+ `,Gs=n(za)`
60
+ position: absolute;
61
+ top: 50%;
62
+ left: 50%;
63
+ transform: translate(-50%, -50%);
64
+ `,Xs=({percentage:o})=>t(Ws,{children:[e(js,{}),"number"==typeof o?e(Gs,{size:La.M,weight:500,nowrap:!0,children:`${o}%`}):null]}),Vs={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 Ks(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const n=(e.match(/[^0-9]*$/)||"").toString();return Vs[n]?{value:t,unit:n}:{value:t,unit:"px"}}function Ys(e){const t=Ks(e);return`${t.value}${t.unit}`}const Js=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),qs=({loading:o=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=n||d.text.secondary;if(!o)return null;const{value:p}=Ks(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:Ys(1.5),height:Ys(4),borderRadius:Ys(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Js} ${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% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}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*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Qs=n.div`
65
+ width: ${({$size:e})=>e}px;
66
+ height: ${({$size:e})=>e}px;
67
+ border-radius: 100%;
68
+ background: ${({$color:e})=>e};
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ `,Zs=({scale:t,icon:o})=>{const n=i();return e(Qs,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(Qs,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(Qs,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(Qs,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(Qs,{$size:23*t,$color:"#50F6E8",children:e(o,{size:16*t,fill:n.v2.colors.black[500]})})})})})})},el=434,tl=635,ol=n.div`
73
+ width: ${434}px;
74
+ height: ${635}px;
75
+ display: flex;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ justify-content: center;
79
+ padding: 16px;
80
+ background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
81
+ position: relative;
82
+ `,nl=n.div`
83
+ position: absolute;
84
+ top: 50%;
85
+ left: 50%;
86
+ transform: translate(-50%, -50%);
87
+ `,rl=()=>t(ol,{children:[e(nl,{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(nl,{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(nl,{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(nl,{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(nl,{children:e(ae,{size:112})})]}),il=n.div`
88
+ width: ${({$size:e})=>e}px;
89
+ height: ${({$size:e})=>e}px;
90
+ border-radius: 100%;
91
+ background: ${({$color:e})=>e};
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ `,al=({scale:t=1,icon:o})=>{const n=i();return e(il,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(il,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(il,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(il,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(il,{$size:39*t,$color:n.v2.colors.purple[500],children:e(o,{size:32*t,fill:n.v2.colors.white[500]})})})})})})},sl=n.div`
96
+ flex: 1;
97
+ align-self: stretch;
98
+ min-height: 0;
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: ${({$gap:e=24})=>e}px;
102
+ overflow-y: auto;
103
+ overflow-x: auto;
104
+ padding: 12px;
105
+ `,ll=n.div`
106
+ position: relative;
107
+
108
+ // inherit all the properties of the parent (PageContent)
109
+ flex: inherit;
110
+ align-self: inherit;
111
+ min-height: inherit;
112
+ display: inherit;
113
+ flex-direction: inherit;
114
+ gap: inherit;
115
+ `,cl=n.div`
116
+ padding: ${({$padding:e})=>e||"12px"};
117
+ `,dl=n.div`
118
+ display: flex;
119
+ flex-direction: row;
120
+ flex-wrap: ${({$wrap:e="unset"})=>e};
121
+ align-items: ${({$alignItems:e="center"})=>e};
122
+ justify-content: ${({$justifyContent:e="unset"})=>e};
123
+ gap: ${({$gap:e=2})=>e}px;
124
+ width: ${({$width:e})=>e||"unset"};
125
+ height: ${({$height:e})=>e||"unset"};
126
+ margin: ${({$margin:e="unset"})=>e};
127
+ padding: ${({$padding:e="unset"})=>e};
128
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
129
+ `,ul=n.div`
130
+ display: flex;
131
+ flex-direction: column;
132
+ flex-wrap: ${({$wrap:e="unset"})=>e};
133
+ align-items: ${({$alignItems:e="unset"})=>e};
134
+ justify-content: ${({$justifyContent:e="unset"})=>e};
135
+ gap: ${({$gap:e=2})=>e}px;
136
+ width: ${({$width:e})=>e||"unset"};
137
+ height: ${({$height:e})=>e||"unset"};
138
+ margin: ${({$margin:e="unset"})=>e};
139
+ padding: ${({$padding:e="unset"})=>e};
140
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
141
+ `,pl=n(ul)`
142
+ width: ${({$width:e})=>e||"100%"};
143
+ height: ${({$height:e})=>e||"unset"};
144
+ padding: ${({$padding:e})=>e||"unset"};
145
+ align-items: center;
146
+ justify-content: center;
147
+ `,hl=n.div`
148
+ display: flex;
149
+ flex-direction: column;
150
+ padding: 12px;
151
+ overflow-y: scroll;
152
+ `,gl=n.div`
153
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
154
+ top: 0;
155
+ left: 0;
156
+ right: 0;
157
+ bottom: 0;
158
+ // Full-screen overlays sit at the modal/drawer layer. Page-scoped overlays
159
+ // (relativeToParent, e.g. upgrade-required) use the island layer so the sidebar
160
+ // can expand above them. In both cases the surface is rendered after the overlay
161
+ // in JSX and stacks above it via DOM order at the same z-index level.
162
+ z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
163
+ background: rgba(0, 0, 0, 0.6);
164
+ backdrop-filter: blur(2px);
165
+ `,ml=n.div`
166
+ width: 800px;
167
+ min-height: ${({$minHeight:e})=>e||"unset"};
168
+ height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
169
+ margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
170
+ padding: 0 2px;
171
+ overflow-y: scroll;
172
+ `,fl=n(ul)`
173
+ max-width: ${({$maxWidth:e})=>e||"unset"};
174
+ width: 100%;
175
+ `,yl=n(dl)`
176
+ gap: 16px;
177
+ padding: 16px;
178
+ `,bl=n.div`
179
+ width: 100%;
180
+ max-height: ${({$maxHeight:e})=>e||"unset"};
181
+ overflow-y: auto;
182
+ `,vl=a`
183
+ 0% {
184
+ background-position: 0% 50%;
185
+ }
186
+ 100% {
187
+ background-position: 100% 50%;
188
+ }
189
+ `,El=n(za)`
190
+ background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
191
+ background-size: 250% 100%; /* Expand background to allow movement */
192
+ background-clip: text;
193
+ color: transparent;
194
+ animation: ${vl} 1s reverse linear infinite;
195
+ `,Sl=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),n=Math.floor(o/60),r=o%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Cl=({icon:o,title:n,titleColor:r,titleSize:a=La.S,subTitle:s,subTitleColor:l,subTitleSize:c=La.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?Sl(d):"");zt(()=>{if(!d)return;S(Sl(d));const e=setInterval(()=>S(Sl(d)),1e3);return()=>clearInterval(e)},[d]);const C=r||v.v2.colors.white[500],$=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return t(ul,{$gap:16,$alignItems:"center",children:[y?e(Zs,{scale:1.7,icon:b}):h?e(Xs,{percentage:f}):g?e(qs,{scale:m}):null,(n||s||d||o||u)&&t(ul,{$gap:8,$alignItems:"center",children:[t(dl,{$gap:4,children:[o&&e(o,{}),u?e(El,{align:"center",size:a,$titleColor:C,$gradientColor:x,nowrap:!0,children:n||"Loading..."}):n?e(za,{align:"center",size:a,color:C,children:n}):null]}),s?e(za,{align:"center",size:c,color:$,children:s}):null,E?e(za,{align:"center",size:c,color:C,children:E}):null]})]})},$l=(e,t)=>({[wo.Default]:o=>ae({fill:Bs(t,e,"300"),...o}),[wo.Info]:o=>nt({fill:Bs(t,e,"400"),...o}),[wo.Error]:o=>ot({fill:Bs(t,e,"500"),...o}),[wo.Warning]:o=>tt({fill:Bs(t,e,"500"),...o}),[wo.Success]:o=>v({fill:Bs(t,e,"500"),...o}),[wo.Loading]:e=>Cl({withSpinnerOld:!0,...e}),[wo.Disabled]:o=>E({fill:Bs(t,e,"400"),...o}),[wo.Unknown]:o=>et({fill:Bs(t,e,"300"),...o})}[e]),xl=e=>{switch(e){case ko.Success:return wo.Success;case ko.Error:case ko.Failure:return wo.Error;case ko.Notice:return wo.Warning;case ko.Unsupported:case ko.Unknown:return wo.Info;case ko.Irrelevant:case ko.Disabled:return wo.Disabled;case ko.Waiting:return wo.Loading;case ko.Pending:default:return wo.Default}},wl=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},Tl={redis:C,mysql:w,postgresql:$,postgres:$,kafka:S,elasticsearch:xe,clickhouse:_e,oracle:oe,aws:rt},Ol={sts:ft,dynamodb:mt,s3:J,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ae},Nl=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=Tl[o.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Tl[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Ol[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Tl))if(i.includes(e))return t;return Ge},Il=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:o,kind:n,region:r}=e;return{namespace:t,name:o,kind:n,region:r||void 0}};function Al(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const _l=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Al(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&o.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},Rl=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==wo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1};function Dl(e){if(!e||0===e.length)return null;const t=[],o=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&o.push(a),s&&n.push(s)}return 0===t.length&&0===o.length&&0===n.length?null:{sources:t,namespaces:o,languages:n}}function kl(e){if(!e)return null;const t=[];for(const o of e.sources??[])t.push({workloadName:o.name||null,workloadKind:o.kind||null,workloadNamespace:o.namespace||null});for(const o of e.namespaces??[])t.push({workloadNamespace:o});for(const o of e.languages??[])t.push({workloadLanguage:o});return t.length?t:null}function Ll(e){const{sourcesScopes:t,...o}=e;return{...o,sourceScopes:Dl(t??null)}}function Pl(e){const{sourceScopes:t,...o}=e;return{...o,sourcesScopes:kl(t??null)}}const Ul=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ml=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Fl=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},zl=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Bl=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Hl=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Wl=e=>Hl.test(e),jl=e=>e?.map(({status:e,type:t,reason:o,message:n})=>({status:e?.toLowerCase(),type:Da(t),reason:o?Da(o):"",message:n}))||[],Gl=(e,t)=>{const o=Al(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Xl=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Yo[e]):[],Vl=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Yo[e]):[],Kl=e=>{let t=e.replace(/[^\d.]/g,"");const o=t.indexOf(".");return-1!==o&&(t=t.slice(0,o+1)+t.slice(o+1).replace(/\./g,"")),t},Yl=e=>e.replace(/[^\d]/g,""),Jl=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ql=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Ql=e=>{const t=e.fields.reduce((e,{key:t,value:o})=>{const n=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(o);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Zl=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Zl(e)))}else if("object"==typeof n&&null!==n){const e=Zl(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},ec=(e,t=2)=>JSON.stringify(e||{},null,t),tc=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),oc=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),nc={PID:"process.pid",VPID:"process.vpid"},rc={[vo.Go]:"Go",[vo.Java]:"Java",[vo.JavaScript]:"Node.js",[vo.Python]:"Python",[vo.DotNet]:".NET",[vo.CSharp]:"C#",[vo.CPlusPlus]:"C++",[vo.Php]:"PHP",[vo.Ruby]:"Ruby",[vo.Rust]:"Rust",[vo.Swift]:"Swift",[vo.Elixir]:"Elixir",[vo.MySql]:"MySQL",[vo.Nginx]:"Nginx",[vo.Postgres]:"PostgreSQL",[vo.Redis]:"Redis",[vo.Kafka]:"Kafka",[vo.Ignored]:"Ignored",[vo.Unknown]:"Unknown",[vo.Processing]:"Processing",[vo.NoContainers]:"No Containers",[vo.NoRunningPods]:"No Running Pods"},ic=[{id:vo.Go,label:rc[vo.Go],icon:ys(vo.Go)},{id:vo.Java,label:rc[vo.Java],icon:ys(vo.Java)},{id:vo.JavaScript,label:rc[vo.JavaScript],icon:ys(vo.JavaScript)},{id:vo.Python,label:rc[vo.Python],icon:ys(vo.Python)},{id:vo.Php,label:rc[vo.Php],icon:ys(vo.Php)},{id:vo.Ruby,label:rc[vo.Ruby],icon:ys(vo.Ruby)},{id:vo.Rust,label:rc[vo.Rust],icon:ys(vo.Rust)},{id:vo.DotNet,label:rc[vo.DotNet],icon:ys(vo.DotNet)},{id:vo.CSharp,label:rc[vo.CSharp],icon:ys(vo.CSharp)},{id:vo.CPlusPlus,label:rc[vo.CPlusPlus],icon:ys(vo.CPlusPlus)},{id:vo.Swift,label:rc[vo.Swift],icon:ys(vo.Swift)},{id:vo.Elixir,label:rc[vo.Elixir],icon:ys(vo.Elixir)}],ac={id:Do.OpentelemetryEbpfInstrumentation,label:Do.OpentelemetryEbpfInstrumentation,icon:yt},sc={[vo.Go]:{community:[{id:Do.GolangCommunity,label:Do.GolangCommunity,icon:ys(vo.Go)},ac],enterprise:[{id:Do.GolangEnterprise,label:Do.GolangEnterprise,icon:ys(vo.Go)}]},[vo.JavaScript]:{community:[{id:Do.NodejsCommunity,label:Do.NodejsCommunity,icon:ys(vo.JavaScript)},ac],enterprise:[{id:Do.NodejsEnterprise,label:Do.NodejsEnterprise,icon:ys(vo.JavaScript)}]},[vo.Python]:{community:[{id:Do.PythonCommunity,label:Do.PythonCommunity,icon:ys(vo.Python)},ac],enterprise:[{id:Do.PythonEnterprise,label:Do.PythonEnterprise,icon:ys(vo.Python)}]},[vo.Java]:{community:[{id:Do.JavaCommunity,label:Do.JavaCommunity,icon:ys(vo.Java)},ac],enterprise:[{id:Do.JavaEnterprise,label:Do.JavaEnterprise,icon:ys(vo.Java)},{id:Do.JavaEbpfInstrumentations,label:Do.JavaEbpfInstrumentations,icon:ys(vo.Java)}]},[vo.DotNet]:{community:[{id:Do.DotNetCommunity,label:Do.DotNetCommunity,icon:ys(vo.DotNet)},ac],enterprise:[{id:Do.DotNetEnterprise,label:Do.DotNetEnterprise,icon:ys(vo.DotNet)}]},[vo.Ruby]:{community:[{id:Do.RubyCommunity,label:Do.RubyCommunity,icon:ys(vo.Ruby)},ac],enterprise:[{id:Do.RubyEnterprise,label:Do.RubyEnterprise,icon:ys(vo.Ruby)}]},[vo.Php]:{community:[{id:Do.PhpCommunity,label:Do.PhpCommunity,icon:ys(vo.Php)},ac],enterprise:[]},[vo.CSharp]:{community:[],enterprise:[{id:Do.CPlusPlusEnterprise,label:Do.CPlusPlusEnterprise,icon:ys(vo.CSharp)}]},[vo.MySql]:{community:[],enterprise:[{id:Do.MySqlEnterprise,label:Do.MySqlEnterprise,icon:ys(vo.MySql)}]},[vo.CPlusPlus]:{community:[ac],enterprise:[]},[vo.Rust]:{community:[ac],enterprise:[]},[vo.Swift]:{community:[ac],enterprise:[]},[vo.Elixir]:{community:[ac],enterprise:[]},[vo.Nginx]:{community:[ac],enterprise:[]},[vo.Postgres]:{community:[ac],enterprise:[]},[vo.Redis]:{community:[ac],enterprise:[]},[vo.Kafka]:{community:[ac],enterprise:[]},[vo.Ignored]:{community:[],enterprise:[]},[vo.Unknown]:{community:[ac],enterprise:[]},[vo.Processing]:{community:[],enterprise:[]},[vo.NoContainers]:{community:[],enterprise:[]},[vo.NoRunningPods]:{community:[],enterprise:[]}},lc=6048e5,cc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ga.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),dc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ha},uc=Pt(e=>({...dc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(dc)}));var pc;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(pc||(pc={}));const hc=e=>`add-${Da(e).replaceAll(" ","-").toLowerCase()}`,gc=e=>`edit-${Da(e).replaceAll(" ","-").toLowerCase()}`,mc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),fc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),yc=Pt(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}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:fc})),bc=Pt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,r=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var vc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(vc||(vc={}));const Ec=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Sc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Cc=Pt((e,t)=>({progress:{},setProgress:(o,n)=>{const r=t(),i=Ec();return"number"==typeof n.total&&(i.total=n.total),"number"==typeof n.current&&(i.current=n.current),Array.isArray(n.list)&&(i.list=n.list),e({progress:{...r.progress,[o]:Sc(i)}})},addProgress:(o,n,r)=>{const i=t(),a=Ec(o,i.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[o]:Sc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),$c=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),xc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},wc=(e,t)=>e.destinationType.type!==t.destinationType.type,Tc=Pt(e=>({...xc,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=>wc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>wc(e,t))})),clearStore:()=>e(()=>({...xc}))})),Oc=e=>{function t(){return void 0===e?{}:os(e)}const[o,n]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(o[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(o[e]=n)}else r!==t[e]&&(o[e]=t[e])}for(const n of Object.keys(t))n in e||(o[n]=t[n]);return o},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,o),[a,o]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,o]);const u=Bt((e,t)=>ns("formData"===e?o:r,t.toString()),[o,r]);return{formData:o,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,o)=>{if(e){const o=e.toString(),r=o.split(".");1===r.length?n(o=>({...o,[e]:t})):n(e=>{const o=os(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}),i(e=>{const t=o,n=r[r.length-1],i=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[n],s})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?i(o=>({...o,[e]:t})):i(e=>{const n=os(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n})}else o&&i({...o})},resetFormData:e=>{const o=e||t();n(o),s(o),i({})},getNestedValue:u}},Nc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Ic=()=>{const{addNotification:e}=bc(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:r,resetFormData:i}=Oc(Nc);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:i,validateForm:o=>{const n={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Ul(t)&&(n[e]=Xa.FIELD_IS_REQUIRED)}}),t.type===no.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Xa.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&o?.withAlert&&e({type:wo.Warning,title:o.alertTitle,message:Xa.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),i},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:r,disabled:i,fields:a})=>{const s={...os(Nc),type:e,signals:t,name:o,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case ro.LabelsAttributes:case ro.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(o=t)&&Array.isArray(o)?o.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):o;break;case ro.CollectContainerAttributes:case ro.CollectReplicaSetAttributes:case ro.CollectWorkloadId:case ro.CollectClusterId:case ro.ClusterAttributes:case ro.OverwriteExistingValues:case ro.AttributeNamesToDelete:case ro.Renames:case ro.PiiCategories:case ro.ExtractAttribute:case ro.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var o}),n(void 0,void 0,s)}}},Ac=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},_c=()=>{const e=Wt(null),[t,o]=Ft(0),[n,r]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Rc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Rc||(Rc={}));const Dc=n.div`
196
+ width: ${({$size:e})=>1.5*e}px;
197
+ height: ${({$size:e})=>1.5*e}px;
198
+ display: flex;
199
+ align-items: center;
200
+ justify-content: center;
201
+ border-radius: 100%;
202
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
203
+ &:hover {
204
+ background: ${({theme:e})=>e.v2.colors.silver[900]};
205
+ }
206
+ `,kc=({"data-id":t,icon:o,size:n=Rc.S,onClick:r,disabled:i})=>e(Dc,{"data-id":t,$size:n,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(o,{size:n})}),Lc=({onDone:t}={})=>{const[o,n]=Ft(!1),[r,i]=Ft(-1),a=Bt(async(e,r)=>{if(!o){if(n(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{n(!1),i(-1)},1e3)}},[o,t]);return{CopyButton:Bt(({value:t,size:n})=>e(kc,{icon:o?bt:vt,size:n,onClick:()=>a(t)}),[o]),isCopied:o,copiedIndex:r,clickCopy:a}},Pc=e=>{const{addNotification:t}=bc(),{formData:o,handleFormChange:n,formErrors:r,handleErrorChange:i,resetFormData:a}=Oc(e);return{formData:o,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return o.name?Ml(o.name)?n.name=void 0:(r=!1,n.name=Xa.ILLEGAL_K8S_LABEL):(r=!1,n.name=Xa.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:wo.Warning,title:e.alertTitle,message:Xa.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const o={...os(e),name:t};n(void 0,void 0,o)}}},Uc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Mc=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=bc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Oc(Uc),[c,d]=Ft([]),[u,p]=Ft([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:r,initialValue:i,renderCondition:a}=e;if(o===$o.Dropdown){const e=Al(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:o,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:r,value:i,renderCondition:a,...Al(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Al(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===Xl(r.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(o=!1,t[e]=Xa.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:wo.Warning,title:e.alertTitle,message:Xa.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:r})=>{const i={...os(Uc),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Al(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Fc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Fo.HttpRequest]:null,[Fo.HttpResponse]:null,[Fo.DbQuery]:null,[Fo.Messaging]:null},codeAttributes:{[Po.Column]:null,[Po.FilePath]:null,[Po.Function]:null,[Po.LineNumber]:null,[Po.Namespace]:null,[Po.StackTrace]:null},headersCollection:null,customInstrumentations:{[Mo.Java]:null,[Mo.Golang]:null}},zc=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Oc(Fc);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>{const c={...os(Fc),ruleName:e,notes:t,disabled:n,sourceScopes:r??null};i&&(c.payloadCollection={[Fo.HttpRequest]:i[Fo.HttpRequest]?{}:null,[Fo.HttpResponse]:i[Fo.HttpResponse]?{}:null,[Fo.DbQuery]:i[Fo.DbQuery]?{}:null,[Fo.Messaging]:i[Fo.Messaging]?{}:null}),a&&(c.codeAttributes={[Po.Column]:a[Po.Column]||null,[Po.FilePath]:a[Po.FilePath]||null,[Po.Function]:a[Po.Function]||null,[Po.LineNumber]:a[Po.LineNumber]||null,[Po.Namespace]:a[Po.Namespace]||null,[Po.StackTrace]:a[Po.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Mo.Java]:l[Mo.Java]||null,[Mo.Golang]:l[Mo.Golang]||null}),o(void 0,void 0,c)}}},Bc=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:r,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,n,r,i,a]),null),Hc="data-ignore-outside-click",Wc=(e,t)=>{const o=Wt(t);o.current=t,zt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Hc))return!0;t=t.parentNode}return!1})(n)||o.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},jc=(e,{axis:t="horizontal",deps:o=[]}={})=>{const[n,r]=Ft(!1),i=e=>{const o="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(o)};return jt(()=>{const t=e.current;if(!t)return;i(t);const o=new ResizeObserver(()=>i(t));return o.observe(t),()=>o.disconnect()},[t,...o]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const o=e.current;!t&&o&&i(o)}),()=>{t=!0}},[t,...o]),n},Gc=(e,{behavior:t="smooth",block:o="center",inline:n,delayMs:r=50}={})=>{const i=Wt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:o,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,o,n,r]),i},Xc=({sectionNames:e,threshold:t=.4})=>{const[o,n]=Ft(e[0]||""),[r,i]=Ft(null),a=Wt({}),s=Wt(!1),l=Wt(!1),c=Bt((e,t)=>{a.current[e]=t},[]),d=Bt(e=>{i(e)},[]),u=Bt(e=>{l.current=!0,n(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[o];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[o]),zt(()=>{const o=a.current,i=e.map(e=>o[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:o,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Vc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:n="local"}={})=>{const r=Wt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return Wc(r,()=>{i&&(a(!1),o?.())}),{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(o,i)=>{if("local"===n)return void l({top:i,left:o});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=o/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=o;if(g>=s/2&&(g+=-u),"center"===h){m=o-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=o-c);l({top:g,left:m})}}},Kc=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Al(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Yc={otelServiceName:"",currentStreamName:""},Jc=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Oc(Yc);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...os(Yc),otelServiceName:e||t.name||""};o(void 0,void 0,n)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const qc=new Xt(Vt.locale),Qc=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Zc=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),ed=()=>{const[e,t]=Ft(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return qc.format(Zc(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:o="long",suffix:n=!0}={})=>{try{const r=Zc(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===o?"0s":n?"just now":"0 seconds";const a=[];for(const e of Qc){if(a.length===t)break;const n=Math.floor(i/e.ms);if(!(n<=0&&0===a.length)){if(n<=0)break;i-=n*e.ms,a.push("short"===o?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const s="short"===o?a.join(""):a.join(" ");return n&&"long"===o?`${s} ago`:s}catch(e){return"-"}},[e])}},td=n.div`
207
+ width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
208
+ position: relative;
209
+ display: ${({$inline:e})=>e?"inline":"flex"};
210
+ align-items: center;
211
+ gap: 4px;
212
+
213
+ ${({$ellipsis:e})=>e&&r`
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ white-space: nowrap;
217
+ `}
218
+ `,od=n.div`
219
+ position: fixed;
220
+ top: ${({$top:e})=>e}px;
221
+ left: ${({$left:e})=>e}px;
222
+ z-index: ${({theme:e})=>e.v2.zIndex.tooltip};
223
+
224
+ display: flex;
225
+ flex-direction: column;
226
+ align-items: stretch;
227
+ min-width: 0;
228
+
229
+ ${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
230
+ `,nd=n.div`
231
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
232
+ border-radius: 4px;
233
+ padding: 8px;
234
+ max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
235
+ box-sizing: border-box;
236
+ min-width: 0;
237
+ `,rd=n.div`
238
+ display: flex;
239
+ flex-direction: column;
240
+ align-items: flex-start;
241
+ gap: 8px;
242
+ width: 100%;
243
+ min-width: 0;
244
+ `,id=n.div`
245
+ display: flex;
246
+ width: 100%;
247
+ flex-shrink: 0;
248
+ box-sizing: border-box;
249
+ line-height: 0;
250
+
251
+ ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
252
+ ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
253
+ ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
254
+ `,ad=n.div`
255
+ width: 0;
256
+ height: 0;
257
+ border-style: solid;
258
+ border-left: 6.5px solid transparent;
259
+ border-right: 6.5px solid transparent;
260
+ flex-shrink: 0;
261
+
262
+ ${({$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 `}
263
+ `,sd=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:C,handlePosition:$}=Vc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,n]=e.split('"');return{original:e,href:o,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:o,clientY:n}=e;x?$(S.left||o,S.top||n):$(o,n),E("mouseleave"!==t)};if(!f.length&&!h)return e(o,{children:c});const T=v&&f.length>0;return t(td,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,n&&e(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(t(od,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===C.edge&&e(id,{$align:C.align,children:e(ad,{$pointsUp:!0})}),e(nd,{$maxWidth:p,children:t(rd,{children:[(!!r||!!a)&&t(dl,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(za,{size:La.XS,children:a},"title")]}),f.map((t,o)=>e(za,{size:La.XXXS,children:t},o)),!!l&&e(za,{size:La.XXXS,color:Pa.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===C.edge&&e(id,{$align:C.align,children:e(ad,{$pointsUp:!1})})]}),document.body)]})},ld=n.div`
264
+ display: flex;
265
+ align-items: center;
266
+ justify-content: center;
267
+ gap: 4px;
268
+ min-width: ${({$minWidth:e})=>e};
269
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
270
+ padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
271
+ border-radius: 100px;
272
+ background-color: ${({$backgroundColor:e})=>e};
273
+ `,cd=({label:o,leftIcon:n,rightIcon:r,tooltip:a,status:s=wo.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=o?.toString(),y=wo.Loading===s,b=s?[wo.Disabled,wo.Loading].includes(s)?Bs(m,s,c?"400":"700"):[wo.Unknown].includes(s)?Bs(m,s,"600"):Bs(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(c&&![wo.Unknown].includes(s)?b:[wo.Disabled,wo.Loading].includes(s)?m.v2.colors.grey[400]:[wo.Error,wo.Warning,wo.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(c&&![wo.Unknown].includes(s)?[wo.Disabled,wo.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return e(sd,{text:a,fullWidth:g,children:t(ld,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?e(n,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:e(Cl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?e(Cl,{withGradient:!0,title:f,titleSize:d||La.XXS}):e(za,{color:v,size:d||La.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var dd,ud;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(dd||(dd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(ud||(ud={}));const pd=n.button`
274
+ display: flex;
275
+ align-items: center;
276
+ justify-content: center;
277
+ gap: 8px;
278
+ ${({$fullWidth:e})=>e&&r`
279
+ width: 100%;
280
+ `}
281
+ border: none;
282
+ border-radius: 6px;
283
+ ${({$size:e,$hasLabel:t})=>e===ud.S?r`
284
+ height: 32px;
285
+ ${t?r`
286
+ padding: 8px 16px;
287
+ `:r`
288
+ width: 32px;
289
+ `}
290
+ `:e===ud.M?r`
291
+ height: 38px;
292
+ ${t?r`
293
+ padding: 8px 18px;
294
+ `:r`
295
+ width: 38px;
296
+ `}
297
+ `:r`
298
+ height: 44px;
299
+ ${t?r`
300
+ padding: 8px 22px;
301
+ `:r`
302
+ width: 44px;
303
+ `}
304
+ `}
305
+
306
+ cursor: pointer;
307
+ &:disabled {
308
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
309
+ cursor: not-allowed;
310
+ }
311
+ &:enabled {
312
+ ${({$withShadow:e})=>e?r`
313
+ box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
314
+ `:""}
315
+ ${({$variant:e})=>e===dd.Primary?r`
316
+ background-color: ${({theme:e})=>e.v2.colors.purple[500]};
317
+ &:hover {
318
+ background-color: ${({theme:e})=>e.v2.colors.purple[600]};
319
+ }
320
+ &:active {
321
+ background-color: ${({theme:e})=>e.v2.colors.purple[700]};
322
+ }
323
+ `:e===dd.Secondary?r`
324
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
325
+ &:hover {
326
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
327
+ }
328
+ &:active {
329
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
330
+ }
331
+ `:e===dd.Text?r`
332
+ background-color: transparent;
333
+ &:hover {
334
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
335
+ }
336
+ &:active {
337
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
338
+ }
339
+ `:""}
340
+ }
341
+ `,hd=Ut(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=dd.Primary,size:u=ud.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),C=p||(u===ud.L?18:16),$=u===ud.L?La.S:La.XS,x=f||(y?S.v2.colors.grey[400]:S.v2.colors.white[500]),[w,T]=Ft(!1),O=!(!h&&!w),N=!(!y&&!O),I=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return e(pd,{ref:E,"data-id":n,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,...v,disabled:N,onClick:N?void 0:I,children:e(sd,{text:a,withIcon:!s,children:O?e(Cl,r?{withGradient:!0,titleColor:x,titleSize:$}:{withSpinnerOld:!0}):t(o,{children:[l&&e(pl,{$width:"fit-content",children:e(l,{size:C,fill:x})}),r?e(za,{size:$,weight:500,color:x,nowrap:!0,children:r}):null,c&&e(pl,{$width:"fit-content",children:e(c,{size:C,fill:x})})]})})})});hd.displayName=hd.name;const gd={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:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},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,sidebar:500,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"}},md={v2:gd.v2,darkMode:!0,colors:{...gd.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:gd.font_family},fd={v2:gd.v2,darkMode:!1,colors:{...gd.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:gd.font_family},yd=e=>e?md:fd,bd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:gd,darkModeTheme:md,getTheme:yd,lightModeTheme:fd},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@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");*,:after,:before{box-sizing:border-box}*{-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 vd=({children:t})=>{const{darkMode:o}=cc();return e(s,{theme:yd(o),children:t})},Ed={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"},Sd=Object.freeze(Object.defineProperty({__proto__:null,hex:Ed},Symbol.toStringTag,{value:"Module"})),Cd={in:{left:a`
342
+ from { transform: translateX(-100%); }
343
+ to { transform: translateX(0); }
344
+ `,right:a`
345
+ from { transform: translateX(100%); }
346
+ to { transform: translateX(0); }
347
+ `,top:a`
348
+ from { transform: translateY(-100%); }
349
+ to { transform: translateY(0); }
350
+ `,bottom:a`
351
+ from { transform: translateY(100%); }
352
+ to { transform: translateY(0); }
353
+ `,center:a`
354
+ from { transform: translate(-50%, 100%); }
355
+ to { transform: translate(-50%, -50%); }
356
+ `},out:{left:a`
357
+ from { transform: translateX(0); }
358
+ to { transform: translateX(-100%); }
359
+ `,right:a`
360
+ from { transform: translateX(0); }
361
+ to { transform: translateX(100%); }
362
+ `,top:a`
363
+ from { transform: translateY(0); }
364
+ to { transform: translateY(-100%); }
365
+ `,bottom:a`
366
+ from { transform: translateY(0); }
367
+ to { transform: translateY(100%); }
368
+ `,center:a`
369
+ from { transform: translate(-50%, -50%); }
370
+ to { transform: translate(-50%, 100%); }
371
+ `}},$d={in:a`
372
+ from {
373
+ width: 0%;
374
+ }
375
+ to {
376
+ width: 100%;
377
+ }
378
+ `,out:a`
379
+ from {
380
+ width: 100%;
381
+ }
382
+ to {
383
+ width: 0%;
384
+ }
385
+ `},xd=a`
386
+ 0% {
387
+ transform: scale(1);
388
+ opacity: 1;
389
+ }
390
+ 75%, 100% {
391
+ transform: scale(2);
392
+ opacity: 0;
393
+ }
394
+ `,wd=a`
395
+ 0% {
396
+ background-position: -500px 0;
397
+ }
398
+ 100% {
399
+ background-position: 500px 0;
400
+ }
401
+ `,Td={in:a`
402
+ from {
403
+ opacity: 0;
404
+ }
405
+ to {
406
+ opacity: 1;
407
+ }
408
+ `,out:a`
409
+ from {
410
+ opacity: 1;
411
+ }
412
+ to {
413
+ opacity: 0;
414
+ }
415
+ `},Od=Object.freeze(Object.defineProperty({__proto__:null,fade:Td,ping:xd,progress:$d,shimmer:wd,slide:Cd},Symbol.toStringTag,{value:"Module"}));var Nd,Id;(e=>{e.S="s",e.L="l"})(Nd||(Nd={})),(e=>{e.Filled="filled",e.Underline="underline"})(Id||(Id={}));const Ad=n.div`
416
+ display: flex;
417
+ align-items: center;
418
+ gap: 2px;
419
+ padding: 3px;
420
+ border-radius: 8px;
421
+ border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
422
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
423
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
424
+ `,_d=n.button`
425
+ flex: 1;
426
+ display: flex;
427
+ align-items: center;
428
+ justify-content: center;
429
+ gap: 8px;
430
+ padding: ${({$size:e})=>e===Nd.S?"4px 8px":"8px 16px"};
431
+ border-radius: 6px;
432
+ border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
433
+ box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
434
+
435
+ ${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:n})=>e?r`
436
+ cursor: not-allowed;
437
+ background-color: ${t?(o||n.v2.colors.black[500])+Ed["040"]:"transparent"};
438
+ `:r`
439
+ cursor: pointer;
440
+ background-color: ${t?o||n.v2.colors.black[500]:"transparent"};
441
+ &:hover {
442
+ background-color: ${t?o||n.v2.colors.black[500]:n.v2.colors.silver[800]};
443
+ }
444
+ `}
445
+ `,Rd=n.div`
446
+ display: flex;
447
+ align-items: stretch;
448
+ width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
449
+ `,Dd=n.button`
450
+ display: flex;
451
+ height: 34px;
452
+ padding: 8px 12px 8px 16px;
453
+ justify-content: center;
454
+ align-items: center;
455
+ gap: 8px;
456
+ border: none;
457
+ border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
458
+ border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
459
+ background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
460
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
461
+ transition:
462
+ border-color 0.2s,
463
+ background-color 0.2s,
464
+ border-radius 0.2s;
465
+ &:hover {
466
+ border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
467
+ }
468
+ `,kd=({"data-id":n,size:r=Nd.S,variant:a=Id.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Id.Underline,g=h?Dd:_d;return e(h?Rd:Ad,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const v=l===n,E=y||d,S=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],C=r===Nd.S?La.XXS:La.XS,$=v?500:400,x=t(o,{children:[a&&e(a,{fill:S}),i&&e(za,{size:C,weight:$,color:S,nowrap:!0,children:i}),s&&e(cd,{...s})]});return e(g,{onClick:()=>!E&&c(n),$disabled:E,$isSelected:v,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?e(sd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${n}`)})})},Ld=n.div`
469
+ box-sizing: border-box !important;
470
+ width: ${({$width:e})=>e??"fit-content"};
471
+ padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
472
+ display: flex;
473
+ align-self: stretch;
474
+ align-items: center;
475
+ gap: 8px;
476
+ overflow: hidden;
477
+ border-radius: 6px;
478
+
479
+ border: none;
480
+ border-radius: 6px;
481
+ background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:o,$emphasizeBackgroundColor:n,theme:r})=>{const i=o??r.v2.colors.silver[800],a=n??r.v2.colors.silver[700];return e||t?a:i}};
482
+ `,Pd=n.input`
483
+ min-width: 0;
484
+ flex: 1;
485
+ font-family: ${({theme:e})=>e.font_family.primary};
486
+ font-size: 14px;
487
+ font-weight: 400;
488
+ line-height: 20px;
489
+
490
+ cursor: text;
491
+ color: ${({$textColor:e})=>e};
492
+ &::placeholder {
493
+ color: ${({$textColor:e})=>e};
494
+ }
495
+
496
+ overflow: hidden;
497
+ text-overflow: ellipsis;
498
+ white-space: nowrap;
499
+ `,Ud=({"data-id":o,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,v]=Ft(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!d?.options?.length,C=Ht(()=>{if(S)return d?.options.find(e=>e.value===d.selected)?.label},[S,d?.options,d?.selected]),$=Ht(()=>l||(S&&C?`Search by ${C.toLowerCase()}`:"Search..."),[l,S,C]);return t(Ld,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(Et,{size:18,fill:E}),e(Pd,{"data-id":o??"search",name:"search",type:"text",placeholder:$,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&e("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:e(kd,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Md=n.div`
500
+ display: flex;
501
+ align-items: center;
502
+ justify-content: center;
503
+ width: fit-content;
504
+ height: fit-content;
505
+ padding: 8px;
506
+ border-radius: 100%;
507
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
508
+ `,Fd=({icon:o=St,hideIcon:n=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(ul,{$gap:12,$alignItems:"center",children:[!n&&e(Md,{children:e(o,{size:32,fill:l})}),t(ul,{$gap:4,$alignItems:"center",children:[e(za,{size:La.S,align:"center",children:r}),a&&e(za,{size:La.XXS,align:"center",color:l,children:a})]}),s&&e(hd,{variant:dd.Secondary,...s})]})},zd=n.span`
509
+ font-family: ${({theme:e})=>e.font_family.primary};
510
+ font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
511
+ font-weight: 400;
512
+ color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
513
+ `,Bd=n.span`
514
+ font-family: ${({theme:e})=>e.font_family.primary};
515
+ font-size: 14px;
516
+ font-weight: 400;
517
+ color: ${({theme:e})=>e.v2.colors.red[500]};
518
+ `,Hd=({label:o,tooltip:n,required:r,badge:i,width:a,smallAndDark:s})=>o||n||r?t(dl,{$width:a,$justifyContent:"space-between",children:[o&&e(zd,{$smallAndDark:s,children:o}),t(dl,{$gap:4,children:[i&&e(cd,{...i,textSize:La.XXXS}),r&&e(Bd,{children:"*"}),n&&e(sd,{text:n,withIcon:!0})]})]}):null,Wd=({errorMessage:o,warnMessage:n,helpMessage:r})=>{const a=i(),s=o?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return o||n||r?t(dl,{$alignItems:"center",children:[l&&e(ul,{children:l}),e(za,{size:La.XXXS,weight:400,color:s,children:o||n||r})]}):null};var jd;(e=>{e.S="small",e.L="large"})(jd||(jd={}));const Gd=n.div`
519
+ width: fit-content;
520
+ display: flex;
521
+ align-items: center;
522
+ gap: 8px;
523
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
524
+ `,Xd=n.div`
525
+ width: ${({$size:e})=>e===jd.S?"16px":"20px"};
526
+ height: ${({$size:e})=>e===jd.S?"16px":"20px"};
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: center;
530
+ border-radius: 4px;
531
+ border: 1px solid ${({$borderColor:e})=>e};
532
+ background-color: ${({$backgroundColor:e})=>e};
533
+ `,Vd=({name:o,label:n,tooltip:r,badge:a,size:s=jd.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ft(!1),b=c||d,v=s===jd.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],C=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return t(ul,{$gap:4,children:[t(dl,{$justifyContent:"space-between",children:[t(Gd,{"data-id":o||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(Xd,{$size:s,$borderColor:S,$backgroundColor:C,children:c?e(Ct,{size:v,fill:E}):d?e(bt,{size:v,fill:E}):null}),n&&e(za,{size:s===jd.S?La.XXS:La.XS,nowrap:!0,children:n})]}),e(Hd,{tooltip:r,badge:a})]}),e(Wd,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Kd=n.div`
534
+ display: flex;
535
+ flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
536
+ gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
537
+ `,Yd=({direction:o=ho.Vertical,title:n,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===jd.S?La.XXS:La.XS,u=Ht(()=>s.every(e=>l[e.id]),[s,l]),p=Ht(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(o=>{const n={...o};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return t(Kd,{$direction:o,children:[n&&a?e(Vd,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?e(za,{size:d,children:n}):null,s.map(t=>e(Vd,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${n}-checkbox-${t.id}`))]})};var Jd,qd;(e=>{e.Left="left",e.Right="right"})(Jd||(Jd={})),(e=>{e.Top="top",e.Bottom="bottom"})(qd||(qd={}));const Qd=n.div`
538
+ position: relative;
539
+ display: flex;
540
+ flex-direction: column;
541
+ gap: 4px;
542
+ `,Zd=n.div`
543
+ position: fixed;
544
+ ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
545
+ ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
546
+ ${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
547
+ ${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
548
+ ${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
549
+ z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
550
+
551
+ display: flex;
552
+ flex-direction: column;
553
+ gap: 0;
554
+
555
+ min-width: 120px;
556
+ padding: 8px;
557
+ border-radius: 6px;
558
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
559
+ box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
560
+ `,eu=n.div`
561
+ display: flex;
562
+ flex-direction: column;
563
+ gap: 0;
564
+
565
+ width: 100%;
566
+ max-height: ${({$maxHeight:e})=>e||"230px"};
567
+ overflow-y: auto;
568
+ `,tu=n.div`
569
+ display: flex;
570
+ align-items: center;
571
+ gap: 8px;
572
+ width: 100%;
573
+ padding: 8px;
574
+ border-radius: 6px;
575
+ cursor: pointer;
576
+ ${({$selected:e})=>e?r`
577
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
578
+ `:r`
579
+ background-color: transparent;
580
+ &:hover {
581
+ background-color: ${({theme:e})=>e.v2.colors.grey[700]};
582
+ }
583
+ `}
584
+ `,ou=n.div`
585
+ display: flex;
586
+ align-items: center;
587
+ gap: 8px;
588
+ flex: 1;
589
+ min-width: 0;
590
+ `,nu=n.div`
591
+ flex: 0 1 auto;
592
+ min-width: 0;
593
+ overflow: hidden;
594
+ text-overflow: ellipsis;
595
+ white-space: nowrap;
596
+ `,ru=n.span`
597
+ flex-shrink: 0;
598
+ width: 88px;
599
+ display: inline-flex;
600
+ justify-content: center;
601
+ padding: 1px 6px;
602
+ border-radius: 4px;
603
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
604
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
605
+ `,iu=n.div`
606
+ flex-shrink: 0;
607
+ display: inline-flex;
608
+ align-items: center;
609
+ gap: 4px;
610
+ `,au=({defaultOpen:o,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),C=void 0!==n,$=!!f||!!y||!!E,[x,w]=Ft(o??!$),T=C?n:x,O=Bt(e=>{C||w(e),r?.(e)},[C,r]),[N,I]=Ft({x:a||Jd.Left,y:s||qd.Bottom}),A=Wt(null);Wc(A,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const o=A.current?.getBoundingClientRect();if(!o)return;const n=$?8:0;R({top:t===qd.Bottom?$?o.bottom+n:o.top:void 0,bottom:t===qd.Top?$?window.innerHeight-o.top+n:window.innerHeight-o.bottom:void 0,left:e===Jd.Left?o.left:void 0,right:e===Jd.Right?window.innerWidth-o.right:void 0,width:g?o.width:void 0})},[$,g]),k=e=>{const t=!T;if(O(t),!t)return;const o={x:a||(e.clientX>window.innerWidth/2?Jd.Right:Jd.Left),y:s||(e.clientY>window.innerHeight/2?qd.Top:qd.Bottom)};I(o),D(o.x,o.y)};jt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),$&&!p&&O(!1)},[P,U]=Ft(""),M=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(Qd,{ref:A,children:[u&&e(Hd,{label:u}),f&&e(hd,{...f,fullWidth:g,rightIcon:T?$t:xt,onClick:k}),y&&e(hd,{variant:dd.Text,size:ud.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?$t:xt,handleClick:k}):E,T&&Yt(t(Zd,{$coords:_,"data-ignore-outside-click":"true",children:[h&&e(Ud,{value:P,onChange:U,width:"100%"}),b?e(Cl,{withSpinner:!0,title:"Loading...",titleSize:La.XS}):M.length?e(eu,{$maxHeight:m,children:M.map(o=>{if(!o)return null;const{id:n,label:r,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=o,d=c.includes(n);return t(tu,{"data-id":`option-${n}`,$selected:d&&!a,onClick:()=>L(n),title:l?`${r} — ${l}`:r,children:[a&&e(Vd,{value:d,onChange:()=>L(n)}),i&&e(i,{size:14,fill:o.color||S.v2.colors.white[500]}),s&&e(ru,{children:e(za,{size:La.XXS,nowrap:!0,color:Pa.Secondary,children:s})}),t(ou,{children:[e(nu,{children:e(za,{size:La.XS,nowrap:!0,color:o.color||Pa.Primary,children:r})}),l&&t(iu,{children:[e(Ve,{size:12,fill:S.v2.colors.silver[200]}),e(za,{size:La.XS,nowrap:!0,color:Pa.Secondary,children:l})]})]})]},n)})}):e(cl,{$padding:"6px 0",children:e(Fd,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!M.length&&e(hd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var su;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(su||(su={}));const lu=({onAnyClick:t,actions:o})=>e(dl,{$gap:8,$alignItems:"center",children:o?.map(o=>{if(!o)return null;switch(o.type){case su.Button:return e(hd,{...o.buttonProps,onClick:e=>{o.buttonProps?.onClick?.(e),t?.()}},o.id);case su.ButtonDropData:return e(au,{...o.dropDataProps,items:o.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{o.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:o.buttonProps},o.id);default:return null}})}),cu=n.div`
611
+ display: flex;
612
+ align-items: center;
613
+ justify-content: center;
614
+ padding: 8px;
615
+ border-radius: 8px;
616
+ background-color: ${({theme:e})=>e.v2.colors.white[500]+Ed["004"]};
617
+ `,du=({icon:o,iconWithWrapper:n=!1,title:r,titleSize:i=La.S,titleColor:a=Pa.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=La.XXS,subTitleColor:d=Pa.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Lc();return t(dl,{$gap:l?8:6,$alignItems:"center",children:[o&&(n||l?e(cu,{children:e(o,{size:24})}):e(o,{size:24})),r||g||l?t(ul,{children:[r||g?t(dl,{$gap:6,$alignItems:"center",children:[r&&e(za,{size:i,color:a,nowrap:!s,children:r}),h&&r&&e(y,{value:r,size:Rc.XS}),p&&e(sd,{text:p,withIcon:!0}),g&&e(cd,{...g})]}):null,l&&e(za,{size:c,color:d,nowrap:!u,children:l})]}):null,e(dl,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},uu=({children:t,fullText:o,fullWidth:n=!0,...r})=>{const i=Wt(null),a=!!r.maxLines&&r.maxLines>0,s=jc(i,{axis:a?"vertical":"horizontal",deps:[t]})?o??(null==t?"":String(t)):"";return e(sd,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:e(za,{ref:i,...r,children:t})})},pu=n.section`
618
+ display: flex;
619
+ flex-direction: column;
620
+ gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
621
+ width: ${({$width:e="100%"})=>e};
622
+ align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
623
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
624
+ padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
625
+ border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
626
+ background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
627
+ `,hu=n(dl)`
628
+ cursor: ${({$clickable:e})=>e?"pointer":"default"};
629
+ user-select: ${({$clickable:e})=>e?"none":"auto"};
630
+ `,gu=n.div`
631
+ display: flex;
632
+ align-items: flex-end;
633
+ flex-wrap: wrap;
634
+ width: 100%;
635
+ `,mu=n.div`
636
+ width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
637
+ margin: 8px;
638
+ display: flex;
639
+ flex-direction: column;
640
+ gap: 4px;
641
+ min-width: 0;
642
+ `,fu=({item:o,cellsPerRow:n})=>{const{CopyButton:r}=Lc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=o;return i?e("div",{style:{flex:1}}):t(mu,{$cellsPerRow:n,children:[!!a&&e(sd,{text:s,children:e(uu,{size:La.XXXS,color:Pa.Secondary,nowrap:!0,children:a})}),t(dl,{$gap:4,children:[u&&e(cd,{...u}),l&&e(sd,{text:c,children:e(uu,{size:La.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Rc.XS})]})]})},yu=({bgTint:o="900",width:n,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,S=!!u.length,C=!!c.length;return t(pu,{$width:n,$bgTint:o,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(hu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(du,{...a}):e("div",{}),t(dl,{$gap:12,children:[p,E&&v&&e(lu,{actions:d}),C&&e(dl,{$gap:8,children:c.map((e,t)=>Gt(cd,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&t(dl,{$gap:2,children:[S&&e(au,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:wt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(hd,{variant:dd.Text,size:ud.S,leftIcon:f?$t:xt,onClick:b})]})]})]}),v&&g?e(gu,{children:g.map(t=>e(fu,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,v&&m]})};var bu;(e=>{e.S="small",e.M="medium"})(bu||(bu={}));const vu=n.div`
643
+ display: flex;
644
+ flex-direction: column;
645
+ gap: ${({$gap:e})=>e}px;
646
+ width: 100%;
647
+ align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
648
+ ${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
649
+ padding: ${({$padding:e})=>e}px;
650
+ border-radius: 16px;
651
+ background-color: ${({theme:e,$backgroundColor:t,$bordered:o})=>t??(o?"transparent":e.v2.colors.silver[1e3])};
652
+ ${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
653
+ `,Eu=Ut(({id:o,size:n=bu.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===bu.S?4:16,y="number"==typeof h?h:n===bu.S?12:16,b=a??(i?e(du,{...i}):null),v=l??(s?e(Ud,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return t(vu,{ref:m,id:o,"data-section-name":o,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||S?t(dl,{$gap:f,$justifyContent:"space-between",children:[E?t(dl,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&e(lu,{actions:d??[]})]}):null,u]})});Eu.displayName="SectionCard";const Su=n.div`
654
+ flex: 1;
655
+ align-self: stretch;
656
+ display: flex;
657
+ align-items: center;
658
+ gap: 8px;
659
+ padding: 16px;
660
+ border-radius: 12px;
661
+ background-color: ${({theme:e,$status:t})=>Bs(e,t,t===wo.Unknown?"750":"500")};
662
+ `,Cu=n.div`
663
+ display: flex;
664
+ align-items: center;
665
+ justify-content: center;
666
+ width: fit-content;
667
+ height: fit-content;
668
+ padding: 8px;
669
+ border-radius: 12px;
670
+ background-color: ${({theme:e,$status:t})=>t===wo.Unknown?Bs(e,t,"800"):Bs(e,t,"900")+Ed["015"]};
671
+ `,$u=({status:o,icon:n,title:r,description:a})=>{const s=i(),l=n??$l(o,s),c=[wo.Default,wo.Info,wo.Disabled,wo.Unknown].includes(o)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Su,{$status:o,children:[e(Cu,{$status:o,children:e(l,{size:32,fill:c})}),t(ul,{$gap:2,$justifyContent:"center",children:[e(za,{size:La.M,weight:500,color:c,nowrap:!0,children:r}),e(za,{size:La.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},xu=n.div`
672
+ flex: 0.5;
673
+ display: flex;
674
+ flex-direction: column;
675
+ gap: 12px;
676
+ padding: 12px;
677
+ border-radius: 12px;
678
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
679
+ `,wu=["-","N/A","undefined","null","undefined/undefined","null/null"],Tu=({title:o,cells:n})=>{const r=i();return t(xu,{children:[e(za,{size:La.XXS,color:r.v2.colors.grey[150],children:o}),e(dl,{$gap:32,children:n.map((n,r)=>t(ul,{$gap:2,children:[!n.isLoading||n.value&&!wu.includes(n.value)?e(za,{size:n.label?La.M:La.L,children:n.value}):e(Cl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&e(za,{size:La.XXS,children:n.label})]},`${o}-${r}-${n.label}-${n.value}`))})]})},Ou=n.div`
680
+ padding: ${({$small:e})=>e?"4px":"6px 12px"};
681
+
682
+ display: flex;
683
+ align-self: stretch;
684
+ align-items: center;
685
+ gap: 8px;
686
+ border-radius: 6px;
687
+ cursor: ${({$clickable:e})=>e?"pointer":"inherit"};
688
+
689
+ border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
690
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
691
+ ${({$disabled:e,$error:t})=>!e&&!t&&r`
692
+ &:hover,
693
+ &:active,
694
+ &:focus-within {
695
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
696
+ }
697
+ `}
698
+ `,Nu=n.input`
699
+ max-width: ${({$maxWidth:e})=>e||"unset"};
700
+ width: ${({$width:e})=>e||"unset"};
701
+
702
+ flex: 1;
703
+ font-family: ${({theme:e})=>e.font_family.primary};
704
+ font-size: ${({$small:e})=>e?"12px":"14px"};
705
+ font-weight: 400;
706
+
707
+ cursor: text;
708
+ color: ${({theme:e})=>e.v2.colors.white[500]};
709
+ &::placeholder {
710
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
711
+ }
712
+
713
+ &:disabled {
714
+ cursor: not-allowed;
715
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
716
+ &::placeholder {
717
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
718
+ }
719
+ }
720
+
721
+ overflow: hidden;
722
+ text-overflow: ellipsis;
723
+ white-space: nowrap;
724
+
725
+ &:read-only {
726
+ cursor: pointer;
727
+ pointer-events: none;
728
+ user-select: none;
729
+ }
730
+ `,Iu=n.div`
731
+ display: flex;
732
+ align-items: center;
733
+ justify-content: center;
734
+ cursor: pointer;
735
+ `,Au=({label:o,required:n,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=xo.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...C})=>{const $=i(),x=h===xo.Password,[w,T]=Ft(!1),[O,N]=Ft(null),I=c||!!d||!!O,A=m?$.v2.colors.white[500]:y?$.v2.colors.grey[400]:$.v2.colors.silver[200],_=E?14:18,R=Wt(null),D=jc(R,{deps:[m]}),k=C.readOnly&&D&&null!=m&&""!==m?String(m):"";return t(ul,{$width:v,$gap:6,children:[e(Hd,{label:o,tooltip:r,required:n,badge:a}),e(Ou,{$small:E,$disabled:y,$error:I,$clickable:!!S&&!y,onClick:y?void 0:S,children:t(sd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:_,fill:A}):null,e(Nu,{"data-id":g,type:w||h===xo.Number||h===xo.Decimal?xo.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===xo.Number||h===xo.Decimal){const o=h===xo.Number?Yl(t):Kl(t),n=null!=C.min?Number(C.min):void 0,r=null!=C.max?Number(C.max):void 0,i=h===xo.Decimal&&o.endsWith(".");let a=o,s=!1;if(o&&!i){const e=parseFloat(o);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,N(t&&t!==o?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...C,ref:R}),x?e(Iu,{onClick:()=>T(e=>!e),children:e(w?Tt:Ot,{size:_,fill:A})}):l?e(l,{size:_,fill:A}):null]})}),e(Wd,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},_u=t=>{const{"data-id":o,options:n,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=Ht(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=Ht(()=>{if(a){const e=u.length;return e?1===e?n.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?n.find(e=>e.id===t.value)?.label??"":""},[a,t,n,u]),h=c?s:p,g=Ht(()=>{const e=a?n.map(e=>({...e,withCheckbox:!0})):n;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[a,n,s]),m=Bt(()=>{l(""),d(!0)},[]),f=Bt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Bt(e=>{d(e),e||l("")},[]),b=Bt(e=>{if(a)return void t.onSelect(e);const o=n.find(t=>t.id===e[0]);o&&(t.onSelect(o),l(""),d(!1))},[a,t,n]),v=c&&(i||g.length>0||s.length>0);return e(au,{open:v,onOpenChange:y,items:g,selectedIds:u,setSelectedIds:b,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:qd.Bottom,children:e(Au,{name:o,leftIcon:Et,placeholder:r,value:h,onChange:f,onFocus:m})})},Ru=n.button`
736
+ width: 100%;
737
+ padding: 0;
738
+ padding-right: 12px;
739
+ display: flex;
740
+ align-items: center;
741
+ justify-content: flex-start;
742
+ gap: 12px;
743
+ border-radius: 8px;
744
+ border: none;
745
+ ${({$hovered:e})=>e?r`
746
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
747
+ `:r`
748
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
749
+ `}
750
+ overflow: hidden;
751
+ cursor: pointer;
752
+ &:disabled {
753
+ cursor: not-allowed;
754
+ opacity: 0.5;
755
+ }
756
+ `,Du=n.div`
757
+ width: ${({$hasIcon:e})=>e?"56px":"0"};
758
+ height: 56px;
759
+ display: flex;
760
+ align-items: center;
761
+ justify-content: center;
762
+ ${({$hovered:e})=>e?r`
763
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
764
+ `:r`
765
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
766
+ `}
767
+ `,ku=n.div`
768
+ width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
769
+ display: flex;
770
+ justify-content: space-between;
771
+ align-items: center;
772
+ gap: 8px;
773
+ `,Lu=({label:o,icon:n,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(Ru,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Du,{$hovered:s,$hasIcon:!!n,children:n&&e(n,{size:36})}),t(ku,{$hasIcon:!!n,children:[r?e(Cl,{withGradient:!0,titleSize:La.S}):e(za,{variant:ka.Span,align:"center",children:o}),e(Nt,{rotate:90,size:24})]})]})},Pu=({buttons:t})=>e(ul,{$gap:12,children:t.map((t,o)=>e(Lu,{...t},`${t.label}-${o}`))});var Uu;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Uu||(Uu={}));const Mu=n.div`
774
+ display: flex;
775
+ align-items: flex-end;
776
+ justify-content: space-between;
777
+ gap: 24px;
778
+ width: fit-content;
779
+ `,Fu=n.div`
780
+ position: relative;
781
+ display: flex;
782
+ flex-direction: column;
783
+ align-items: center;
784
+ width: ${({$width:e})=>e??150}px;
785
+ flex-shrink: 0;
786
+ `,zu=n.svg`
787
+ display: block;
788
+ width: 100%;
789
+ height: auto;
790
+ overflow: visible;
791
+ `,Bu=n(ul)`
792
+ position: absolute;
793
+ left: 0;
794
+ right: 0;
795
+ bottom: 4px;
796
+ align-items: center;
797
+ gap: 2px;
798
+ pointer-events: none;
799
+ `,Hu=n.span`
800
+ display: inline-block;
801
+ flex-shrink: 0;
802
+ width: 9px;
803
+ height: 9px;
804
+ border-radius: 50%;
805
+ background-color: ${({$color:e})=>e};
806
+ `,Wu=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:""}},ju=(e,t,o,n)=>{const r=n*Math.PI/180;return{x:e+o*Math.cos(r),y:t-o*Math.sin(r)}},Gu=(e,t,o,n,r)=>{const i=ju(e,t,o,n),a=ju(e,t,o,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${i.x} ${i.y} A ${o} ${o} 0 ${l} ${s} ${a.x} ${a.y}`},Xu=({variant:o=Uu.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Wu(a),{number:g}=Wu(s),{number:m,prefix:f,suffix:y}=Wu(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?Gu(60,60,55,180,E):null,C=v<1?Gu(60,60,55,E,0):null,$=ju(60,60,55,180),x=ju(60,60,55,0),w=d??(o===Uu.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(o===Uu.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),I=e=>`${f}${e}${y}`,A=o===Uu.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?c:"secondary"===O?u:"",R="primary"===O?I(m):"secondary"===O?I(A):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return t(Mu,{children:[t(Fu,{$width:n,children:[e(sd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:t(zu,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[S&&e("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),C&&e("path",{d:C,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&e("circle",{cx:$.x,cy:$.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&e("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),r&&t(Bu,{children:[e(za,{size:La.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),e(za,{size:La.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),t(ul,{$gap:7,children:[t(dl,{$gap:8,$alignItems:"center",children:[e(Hu,{$color:w}),e(za,{size:La.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),t(dl,{$gap:8,$alignItems:"center",children:[e(Hu,{$color:T}),e(za,{size:La.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Vu=n(dl)`
807
+ width: 100%;
808
+ padding: 8px 12px;
809
+ border-radius: 6px;
810
+ background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t||"800"]};
811
+ display: flex;
812
+ align-items: center;
813
+ justify-content: space-between;
814
+ gap: 12px;
815
+ `,Ku=n.div`
816
+ position: relative;
817
+ width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
818
+ display: flex;
819
+ align-items: center;
820
+ gap: 4px;
821
+ `,Yu=n.pre`
822
+ flex: 1;
823
+ margin: 0;
824
+ padding: 0;
825
+ font-size: 12px;
826
+ color: #5ffb98; // TODO: add to theme
827
+ overflow-x: auto;
828
+ `,Ju=n.span`
829
+ flex-shrink: 0;
830
+ font-size: 14px;
831
+ color: #5ffb98; // TODO: add to theme
832
+ `,qu=({bgTint:o,label:n,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Lc({onDone:a}),l=Wt(null),[c,d]=Ft(!1);return zt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),t(ul,{$gap:4,children:[n&&e(za,{size:La.XXXS,color:Pa.Secondary,children:n}),t(Vu,{$bgTint:o,children:[t(Ku,{$hideCopy:i,children:[e(Yu,{ref:l,children:r}),c&&e(Ju,{children:"..."})]}),!i&&e(s,{value:r,size:Rc.XS})]})]})},Qu=n(dl)`
833
+ gap: 0;
834
+ `,Zu=n.button`
835
+ padding: 4px 8px;
836
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
837
+ border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
838
+ border: 1px solid ${({theme:e})=>e.colors.border};
839
+ display: flex;
840
+ align-items: center;
841
+ justify-content: center;
842
+ cursor: pointer;
843
+ &:hover {
844
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
845
+ }
846
+ `,ep=({isPrettyMode:o,setIsPrettyMode:n})=>t(Qu,{children:[e(Zu,{$position:"left",$selected:o,onClick:()=>n(!0),children:e(It,{})}),e(Zu,{$position:"right",$selected:!o,onClick:()=>n(!1),children:e(At,{})})]}),tp=n.table`
847
+ border-collapse: collapse;
848
+ font-family: ${({theme:e})=>e.font_family.primary};
849
+ `,op=n.tbody``,np=n.tr`
850
+ td:first-child {
851
+ padding-left: 0 !important;
852
+ }
853
+ td:last-child {
854
+ padding-right: 0 !important;
855
+ }
856
+ `,rp=n.td`
857
+ vertical-align: top;
858
+ padding: 4px 6px;
859
+ `,ip=n.span`
860
+ white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
861
+ overflow-wrap: break-word;
862
+ word-break: break-word;
863
+ word-wrap: break-word;
864
+ /* Fallback for older browsers */
865
+ -ms-word-break: break-all;
866
+ font-size: 12px;
867
+ `,ap=({language:t,code:o,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=n?qt[n]:s?qt.palenight:qt.vsLight;let c="";if("json"===t){const e=Al(o,{}),t=Zl(e);c=ec(r?ds(t):t)}else c=o;return a&&"json"===t?e(sp,{darkMode:s,str:c}):e(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:o,tokens:n})=>e("pre",{children:n.map((n,r)=>e("div",{...t({line:n}),children:n.map((t,n)=>e(ip,{...o({token:t})},`line-${r}-token-${n}`))},`line-${r}`))})})},sp=({darkMode:o,str:n})=>{const r=i(),a=(o,n)=>{const i=new Array(o).fill(o=>t(np,{...o,children:[e(rp,{}),e(rp,{})]}));return e(Mt,{children:i.map((t,o)=>e(t,{style:0===o?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${o}`))})};return e(Jt,{theme:o?qt.palenight:qt.vsLight,language:"json",code:n,children:({getLineProps:o,getTokenProps:n,tokens:i})=>e(tp,{children:e(op,{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 o=[...e],n=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(n.split("@")[0])&&(o[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:n}})})(i),c=o({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Mt,{children:[a(2,s),t(np,{...c,children:[e(rp,{children:e(za,{nowrap:!0,children:l[0].content})}),e(rp,{})]})]},`line-${s}`):2===l.length?e(np,{...c,children:l.map((o,i)=>{const{text:a,components:l}=((t,o)=>{const[n,...r]=t.split("@");return{text:n,components:r?.map((t,n)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(sd,{withIcon:!0,text:i},`${r}-${i}-${n}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${n}`);let t=$l(i,o);return t||(t=$l(wo.Warning,o)),e(t,{},`${r}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(o.content,r),c=0===i;return e(rp,{children:t(dl,{children:[e(dl,{children:l}),e(ip,{$noWrap:c,...n({token:o}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},lp=n.div`
868
+ display: flex;
869
+ align-items: center;
870
+ gap: 8px;
871
+ padding: ${({$hideBackground:e,$slim:t})=>e?"0":t?"8px":"16px"};
872
+ width: ${({$width:e})=>e||"auto"};
873
+ border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
874
+ background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
875
+
876
+ ${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:o})=>e&&r`
877
+ cursor: pointer;
878
+ transition: background 0.2s;
879
+ &:hover {
880
+ background-color: ${t?"transparent":o};
881
+ }
882
+ `}
883
+ `,cp=n.div`
884
+ display: flex;
885
+ align-items: center;
886
+ justify-content: center;
887
+ flex-shrink: 0;
888
+ width: ${({$slim:e})=>e?"32px":"42px"};
889
+ height: ${({$slim:e})=>e?"32px":"42px"};
890
+ border-radius: 11px;
891
+ background-color: ${({$backgroundColor:e,$slim:t})=>t?"transparent":e};
892
+ ${({$withClick:e})=>e&&r`
893
+ cursor: pointer;
894
+ & * {
895
+ cursor: pointer;
896
+ }
897
+ &:hover {
898
+ transform: scale(1.2);
899
+ }
900
+ `}
901
+ `,dp=n(ul)`
902
+ flex: 1;
903
+ min-width: 0;
904
+ `,up=n.div`
905
+ display: flex;
906
+ align-items: center;
907
+ justify-content: center;
908
+ flex-shrink: 0;
909
+ width: 24px;
910
+ height: 24px;
911
+ `,pp=({status:o,title:n,subTitle:r,badgeLabel:a,loading:s,action:l,actionButtons:c,isExtended:d=!1,toggleExtended:u,invertColors:p=!1,hideIcon:h=!1,hideBackground:g=!1,width:m,slim:f=!1})=>{const y=i(),b=$l(o,y),v=u?d?$t:xt:void 0,E=o===wo.Unknown,S=o===wo.Disabled,C=o===wo.Loading||s,$=[wo.Error,wo.Warning,wo.Success].includes(o),x=Bs(y,o,S?p?"400":"700":E?"600":p?"300":"500"),w=S?y.v2.colors.grey[400]:p?y.v2.colors.white[500]:$?y.v2.colors.black[500]:y.v2.colors.white[500],T=p&&!E?x:w,O=!p||E||S?"rgba(0, 0, 0, 0.13)":Bs(y,o,"800"),N=S?y.v2.colors.grey[900]:p||E?y.v2.colors.silver[800]:x,I=S?y.v2.colors.grey[800]:p||E?y.v2.colors.silver[700]:Bs(y,o,"600");return t(lp,{$width:m,$withHover:!!u,$isExtended:d,$hideBackground:g,$backgroundColor:N,$hoverBackgroundColor:I,$slim:f,onClick:u,children:[!h&&e(cp,{$backgroundColor:O,$slim:f,children:C?e(Cl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(b,{size:32,fill:T})}),t(dp,{$gap:4,$justifyContent:"center",children:[t(dl,{$gap:10,$alignItems:"center",children:[e(za,{size:f?La.XS:La.S,weight:500,color:T,children:n}),a&&e(cd,{label:a,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:La.XXXS})]}),r&&e(za,{size:La.XXXS,color:w,children:r}),!!c?.length&&e(dl,{$gap:8,$wrap:"wrap",$justifyContent:"flex-end",onClick:e=>e.stopPropagation(),children:c.map(t=>e(hd,{"data-id":t["data-id"],label:t.label,tooltip:t.tooltip,hideTooltipIcon:!0,leftIcon:t.leftIcon,disabled:t.disabled,onClick:t.onClick,variant:dd.Secondary,size:ud.S},t["data-id"]??t.label))})]}),l&&e(cp,{"data-id":l["data-id"],$backgroundColor:y.v2.colors.silver[750],$slim:f,$withClick:!!l.onClick,onClick:l.onClick,children:e(sd,{text:l.tooltip,children:e(l.icon,{size:32,fill:w})})}),v&&e(up,{children:e(v,{size:24,fill:w})})]})},hp=n.div`
912
+ display: flex;
913
+ flex-direction: column;
914
+ width: 100%;
915
+ border-radius: 12px;
916
+ overflow: hidden;
917
+ `,gp=n.div`
918
+ display: flex;
919
+ flex-direction: column;
920
+ gap: 8px;
921
+ padding: 8px 12px 16px 12px;
922
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
923
+ `,mp=n.div`
924
+ display: flex;
925
+ align-items: center;
926
+ gap: 8px;
927
+ `,fp=n.div`
928
+ display: flex;
929
+ align-items: center;
930
+ justify-content: center;
931
+ flex-shrink: 0;
932
+ width: 18px;
933
+ height: 18px;
934
+ `,yp=({conditions:o,title:n,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>jl(o),[o]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>gs(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ht(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ht(()=>p?wo.Error:g?wo.Warning:m?wo.Info:wo.Success,[p,g,m]),v=Ht(()=>n||(1===d.length?Da(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:o,loading:n})=>e?"Something Failed":t||o?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[n,d,p,g,m,y]),E=Ht(()=>r||1===d.length&&d[0].message||void 0,[r,d]),S=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(hp,{children:[e(pp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&e(gp,{children:d.map(({status:o,type:n,reason:r,message:i},s)=>{const l=o===wo.Loading,c=o===wo.Disabled?wo.Info:o,d=l?null:$l(c,a),u=o===wo.Error?Bs(a,wo.Error,"500"):o===wo.Warning?Bs(a,wo.Warning,"500"):a.v2.colors.white[500],p=[n,i||r].filter(Boolean).join(" - ");return t(mp,{children:[e(fp,{children:l||!d?e(Cl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(za,{size:La.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},bp=n.div`
935
+ width: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Vertical?`${t}px`:o||"100%"};
936
+ height: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Horizontal?`${t}px`:o||"100%"};
937
+ margin: ${({$orientation:e,$margin:t})=>t||(e===ho.Horizontal?"8px 0":"0 8px")};
938
+ background-color: ${({$type:e,theme:t})=>(e?Bs(t,e):t.v2.colors.grey[400])+Ed["050"]};
939
+ opacity: ${({$opacity:e})=>e||1};
940
+ `,vp=({orientation:t=ho.Horizontal,type:o,thickness:n=1,length:r,margin:i,opacity:a})=>e(bp,{$orientation:t,$type:o,$thickness:n,$length:r,$margin:i,$opacity:a});var Ep,Sp,Cp;(e=>{e.Default="default",e.SuccessError="successError"})(Ep||(Ep={})),(e=>{e.S="small",e.L="large"})(Sp||(Sp={})),(e=>{e.Left="left",e.Right="right"})(Cp||(Cp={}));const $p=n.div`
941
+ display: flex;
942
+ align-items: center;
943
+ gap: ${({$gap:e})=>e}px;
944
+ `,xp=n.div`
945
+ position: relative;
946
+ display: flex;
947
+ align-items: center;
948
+ justify-content: space-between;
949
+ box-sizing: content-box;
950
+
951
+ width: ${({$size:e})=>2*e+2}px;
952
+ height: ${({$size:e})=>e}px;
953
+ padding: ${4}px;
954
+ border-radius: ${({$size:e})=>2*e}px;
955
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(o&&!r)return o;switch(n){case Ep.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Ep.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
956
+
957
+ border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
958
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
959
+ `,wp=n.div`
960
+ position: absolute;
961
+ top: 50%;
962
+ left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
963
+ transform: translateY(-50%);
964
+ width: ${({$size:e})=>e}px;
965
+ height: ${({$size:e})=>e}px;
966
+ border-radius: 100%;
967
+ background-color: ${({$color:e})=>e};
968
+ 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)"};
969
+ `,Tp=({variant:n=Ep.Default,size:r=Sp.L,name:a,label:s,labelAlign:l=Cp.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=bt,offIcon:y=St,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:C})=>{const $=i(),x=g?$.v2.colors.grey[400]:$.v2.colors.white[500],w=r===Sp.S?10:16,T=c||$.v2.colors.silver[200],O=r===Sp.S?La.XXXS:La.XS,N=r===Sp.S?8:12;return t(ul,{$gap:4,children:[t(dl,{$justifyContent:"space-between",children:[t($p,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Cp.Left&&e(za,{color:T,size:O,nowrap:!0,children:s}),t(xp,{$onBgColor:b,$offBgColor:v,$variant:n,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(wp,{$color:x,$size:w,$value:p,$disabled:g}),m&&t(o,{children:[e(f,{size:w,fill:x}),e(y,{size:w,fill:x})]})]}),s&&l===Cp.Right&&e(za,{color:T,size:O,nowrap:!0,children:s})]}),e(Hd,{tooltip:d,badge:u})]}),e(Wd,{errorMessage:E,warnMessage:S,helpMessage:C})]})},Op=n.div`
970
+ display: flex;
971
+ flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
972
+ gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
973
+ `,Np=({direction:o=ho.Vertical,title:n,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===Sp.S?La.XS:La.S;return t(Op,{$direction:o,children:[n&&e(za,{size:c,children:n}),a.map(t=>e(Tp,{...t,labelAlign:Cp.Right,value:s[t.id],onChange:e=>{return o=t.id,n=e,void l(e=>{const t={...e};return o?t[o]=n:a.forEach(e=>t[e.id]=n),t});var o,n},disabled:i,size:r},`${n}-toggle-${t.id}`))]})},Ip=n.div`
974
+ display: flex;
975
+ align-items: center;
976
+ justify-content: space-between;
977
+ width: 100%;
978
+ overflow: hidden;
979
+ `,Ap=n.div`
980
+ display: flex;
981
+ align-items: center;
982
+ gap: 16px;
983
+ padding: 6px 0;
984
+ min-width: 0;
985
+ flex: 1;
986
+ overflow: hidden;
987
+ `,_p=n.div`
988
+ display: flex;
989
+ align-items: center;
990
+ justify-content: center;
991
+ flex: 0 0 36px;
992
+ width: 36px;
993
+ height: 36px;
994
+ border-radius: 8px;
995
+ background: ${({theme:e})=>e.v2.colors.silver[800]};
996
+ `,Rp=n.img`
997
+ width: 24px;
998
+ height: 24px;
999
+ `,Dp=n.div`
1000
+ display: flex;
1001
+ align-items: center;
1002
+ gap: 16px;
1003
+ flex-shrink: 0;
1004
+ `,kp=({icon:o,iconSrc:n,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(Ip,{children:[t(Ap,{children:[o?e(_p,{children:e(o,{size:24})}):n?e(_p,{children:e(Rp,{src:n,alt:r||"icon"})}):null,(r||i?.length||a)&&t(ul,{$gap:6,children:[(r||i?.length)&&t(dl,{$gap:16,children:[r&&e(za,{size:La.S,weight:500,children:r}),i?.length&&e(dl,{$gap:4,children:i?.map((t,o)=>e(cd,{...t},`${t.label}-${o}`))})]}),a&&e(za,{size:La.XXS,children:a})]})]}),t(Dp,{children:[s&&e(Tp,{...s}),l?.length?e(au,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:wt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(kc,{"data-id":"drawer-close",icon:St,size:Rc.M,onClick:c,disabled:d})]})]}),Lp=n.div`
1005
+ position: relative;
1006
+ &.animated {
1007
+ overflow: hidden;
1008
+ padding-bottom: 1px;
1009
+ border-radius: 8px;
1010
+ animation: ${({$isLeaving:e})=>e?Cd.out.bottom:Cd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1011
+ }
1012
+ `,Pp=n.div`
1013
+ position: absolute;
1014
+ bottom: -1px;
1015
+ left: 0;
1016
+ z-index: -1;
1017
+ width: 100%;
1018
+ height: 100%;
1019
+ border-radius: 8px;
1020
+ background-color: ${({theme:e,$status:t})=>Bs(e,t,t===wo.Default?"300":t===wo.Info?"400":"500")};
1021
+ animation: ${$d.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1022
+ `,Up=n.div`
1023
+ display: flex;
1024
+ align-items: center;
1025
+ gap: 10px;
1026
+ ${({$fullWidth:e})=>e&&r`
1027
+ width: 100%;
1028
+ `}
1029
+ padding: 8px 12px 8px 8px;
1030
+ border-radius: 8px;
1031
+ background-color: ${({theme:e,$status:t})=>Bs(e,t,[wo.Info,wo.Warning].includes(t)?"1000":"900")};
1032
+ `,Mp=n.div`
1033
+ width: ${({$smallIcon:e})=>e?"24px":"32px"};
1034
+ height: ${({$smallIcon:e})=>e?"24px":"32px"};
1035
+ display: flex;
1036
+ align-items: center;
1037
+ justify-content: center;
1038
+ border-radius: 6px;
1039
+ background-color: ${({theme:e,$status:t})=>Bs(e,t,[wo.Info].includes(t)?"900":"800")};
1040
+ `,Fp=n.div`
1041
+ margin-left: auto;
1042
+ display: flex;
1043
+ align-items: center;
1044
+ gap: 4px;
1045
+ `,zp=n.div`
1046
+ margin-right: 8px;
1047
+ cursor: pointer;
1048
+ &:hover {
1049
+ transform: scale(1.2);
1050
+ }
1051
+ `,Bp=({status:o,message:n,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=$l(o,u),h=Bs(u,o,o===wo.Default?"300":o===wo.Info?"400":"500"),[g,m]=Ft(!1),f=Wt(null),y=Wt(null),b=c/10,v=c-b,E=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),b))};return zt(()=>{if(l)return f.current=setTimeout(()=>E({asSeen:!1}),v),()=>{f.current&&clearTimeout(f.current)}},[c]),t(Lp,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*v;f.current=setTimeout(()=>E({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(Up,{$status:o,$fullWidth:a,children:[e("div",{children:e(Mp,{$status:o,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(za,{color:h,size:La.XXXS,weight:400,children:n}),(r||l)&&t(Fp,{children:[r&&e(zp,{"data-id":r["data-id"],onClick:r.onClick,children:e(za,{color:h,size:La.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&e(kc,{"data-id":"note-close",icon:St,size:Rc.XS,onClick:()=>E({asSeen:!0})})]})]}),l&&e(Pp,{ref:y,$status:o,$duration:c})]})},Hp=n.div`
1052
+ display: flex;
1053
+ align-items: center;
1054
+ gap: 8px;
1055
+ padding: 4px 12px;
1056
+ `,Wp=n.div`
1057
+ flex: 1;
1058
+ `,jp=n.div`
1059
+ min-width: 150px;
1060
+ width: fit-content;
1061
+ `,Gp=({note:o,actions:n,children:r})=>r?e(Hp,{children:r}):t(Hp,{children:[o&&e(Bp,{...o}),e(Wp,{}),n?.map((t,o)=>e(jp,{children:e(hd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${o}`))]}),Xp=n.div`
1062
+ position: fixed;
1063
+ top: 0;
1064
+ bottom: 0;
1065
+ ${({$position:e})=>e}: 0;
1066
+ z-index: ${({theme:e})=>e.v2.zIndex.drawer};
1067
+
1068
+ display: flex;
1069
+ flex-direction: column;
1070
+ gap: 12px;
1071
+
1072
+ width: ${({$width:e})=>e};
1073
+ min-width: ${({$minWidth:e})=>e||"unset"};
1074
+ padding: 12px;
1075
+ border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
1076
+ background: ${({theme:e})=>e.v2.colors.black[500]};
1077
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1078
+ overflow: hidden;
1079
+
1080
+ ${({$disableAnimation:e,$position:t})=>!e&&r`
1081
+ animation-name: ${Cd.in[t]};
1082
+ `}
1083
+ `,Vp=n.div`
1084
+ display: flex;
1085
+ flex-direction: column;
1086
+ gap: 12px;
1087
+
1088
+ height: calc(100% - ${56}px);
1089
+ overflow-y: auto;
1090
+ `,Kp=({isOpen:n,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Ac(n),n?Yt(t(o,{children:[!r&&e(gl,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),t(Xp,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&e(kp,{...c}),e(Vp,{children:u}),d&&e(Gp,{...d})]})]}),document.body):null),Yp=({options:t,values:o,setValues:n,withMultiSelect:r,withSearch:i,...a})=>{const s=Ht(()=>t.filter(e=>o.includes(e.id)),[t,o]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return e(au,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:Jd.Left,items:t,selectedIds:o,setSelectedIds:n,children:({ChevronIcon:t,handleClick:o})=>e(Au,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:o,readOnly:!0,tabIndex:-1})})},Jp=({error:o})=>{const n=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:o?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:o?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(hd,{variant:dd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},qp=({children:t})=>e(eo,{FallbackComponent:({error:t,...o})=>e(vd,{children:e(Jp,{...o,error:t})}),children:t}),Qp=n.header`
1091
+ position: relative;
1092
+ width: 100%;
1093
+ padding: 12px 18px;
1094
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
1095
+ display: flex;
1096
+ align-items: center;
1097
+ justify-content: space-between;
1098
+ `,Zp=n(dl)`
1099
+ position: absolute;
1100
+ left: 50%;
1101
+ transform: translateX(-50%);
1102
+ gap: 16px;
1103
+ `,eh=({left:o=[],center:n=[],right:r=[]})=>t(Qp,{children:[e(dl,{$gap:16,children:o}),e(Zp,{children:n}),e(dl,{$gap:16,children:r})]}),th=n.div`
1104
+ display: flex;
1105
+ align-items: center;
1106
+ gap: 2px;
1107
+ width: fit-content;
1108
+ padding: 4px;
1109
+ border-radius: 8px;
1110
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1111
+ box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
1112
+
1113
+ position: absolute;
1114
+ right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
1115
+ left: ${({$left:e})=>e||"unset"};
1116
+ top: 50%;
1117
+ transform: translateY(-50%);
1118
+ `,oh=({isOpen:t,actions:o,positionRight:n,positionLeft:r})=>t?e(th,{$right:n,$left:r,children:o.map(t=>{if(!t)return null;const{tooltip:o,...n}=t;return e(sd,{text:o||"",children:e(hd,{...n,variant:dd.Secondary,size:ud.S})},n.id)})}):null,nh=n.div`
1119
+ display: flex;
1120
+ align-items: center;
1121
+ justify-content: center;
1122
+ width: ${({$size:e,$padding:t})=>e+t}px;
1123
+ height: ${({$size:e,$padding:t})=>e+t}px;
1124
+ aspect-ratio: 1 / 1;
1125
+ border-radius: 8px;
1126
+ background-color: ${({theme:e,$noBackground:t,$status:o})=>t?"transparent":o?Bs(e,o,o===wo.Warning?"1000":"900"):e.v2.colors.silver[800]};
1127
+ `,rh=({icons:o,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=ks(d,c.v2.text.size);if(o&&o.length>1){const n=o.slice(0,3),r=o.length-n.length,i=n.slice(0,2),c=n.slice(2),u=c.length>0,h=Math.round(s/16);return e("div",{style:{width:"fit-content"},children:e(nh,{$size:s,$padding:l,$status:a,children:t(ul,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[e(dl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((t,o)=>e(t,{size:d},`top-${o}`))}),u&&t(dl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((t,o)=>e(t,{size:d},`bottom-${o}`)),r>0&&e(za,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=o?.[0]||n;return e("div",{style:{width:"fit-content"},children:e(nh,{$size:s,$padding:l,$status:a,children:h?e(h,{size:u}):e("img",{src:r,alt:"",width:u,height:u})})})},ih=n.div`
1128
+ width: 100%;
1129
+ border-radius: 8px;
1130
+ padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
1131
+ background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
1132
+ `,ah=({values:o,setValues:n,name:r,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=o.length<=1,b=g,v=g||y&&b,E=o.length?o:[""];return e(ih,{$plain:m,children:t(ul,{"data-id":r,$gap:6,children:[e(Hd,{label:a,tooltip:s,required:c,badge:l}),e(ul,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return t(dl,{$gap:8,$alignItems:"center",children:[e(Au,{width:"100%",autoFocus:Ul(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...o||[]];r[t]=e,n(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(hd,{leftIcon:_t,variant:dd.Secondary,size:ud.S,disabled:b,onClick:()=>(()=>{const e=o.length?os(o):[os("")];e.push(""),n(e)})()}),e(hd,{leftIcon:v?Rt:()=>e(Rt,{fill:f.v2.colors.red[500]}),variant:dd.Secondary,size:ud.S,disabled:v,onClick:()=>(e=>{const t=[...o||[]].filter((t,o)=>o!==e);t.length||t.push(""),n(t)})(i)})]},`input-list-${i}`)})}),e(Wd,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var sh;(e=>{e.S="small",e.L="large"})(sh||(sh={}));const lh=n.div`
1133
+ width: fit-content;
1134
+ display: flex;
1135
+ align-items: center;
1136
+ gap: 8px;
1137
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1138
+ `,ch=n.div`
1139
+ width: ${({$size:e})=>e===sh.S?"16px":"20px"};
1140
+ height: ${({$size:e})=>e===sh.S?"16px":"20px"};
1141
+ display: flex;
1142
+ align-items: center;
1143
+ justify-content: center;
1144
+ border-radius: 100%;
1145
+ border: 1px solid ${({$borderColor:e})=>e};
1146
+ background-color: ${({$backgroundColor:e})=>e};
1147
+ `,dh=({"data-id":o,label:n,value:r,onChange:a,disabled:s,size:l=sh.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===sh.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"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]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(lh,{"data-id":o??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(ch,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Dt,{size:h,fill:g}):null}),n&&e(za,{size:l===sh.S?La.XXS:La.XS,children:n})]})},uh=n.div`
1148
+ display: flex;
1149
+ flex-direction: ${({$flexDirection:e})=>e};
1150
+ gap: ${({$gap:e})=>e}px;
1151
+ `,ph=({label:o,direction:n,disabled:r,size:i,options:a,values:s,setValues:l})=>t(uh,{$flexDirection:n===ho.Horizontal?"row":"column",$gap:n===ho.Horizontal?16:8,children:[o&&e(za,{children:o}),a.map(t=>e(dh,{...t,value:s[t.id],onChange:e=>{return o=t.id,n=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=n,t});var o,n},disabled:r,size:i},`${o}-radio-${t.id}`))]}),hh=({col:o,colIdx:n,row:r,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:c,hideLabel:d,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=o,C=r[p];if(b&&!b(r))return null;const $=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const t=null!=C?String(C):"",o=Object.fromEntries((y||[]).map(e=>[e.id,e.id===t]));return e(ph,{direction:ho.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:o,setValues:e=>{const t="function"==typeof e?e(o):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,i)},disabled:c},p)}case $o.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===h,o=Array.isArray(C)?C:null!=C&&""!==C?[String(C)]:[],n=y?.filter(e=>o.includes(e.id)).map(e=>e.id)||[];return e(Yp,{name:p,label:$,placeholder:x,options:y||[],withMultiSelect:t,withSearch:t,values:n,setValues:e=>s(p,t?e:e[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===n&&Ul(C),d=e(Au,{name:p,label:$,placeholder:x,autoFocus:r,type:g,min:E,max:S,value:C,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:o.withRegexTester?"100%":void 0});return o.withRegexTester?t(dl,{$gap:8,$alignItems:"center",$width:"100%",children:[e("div",{style:{flex:1,minWidth:0},children:d}),e(hd,{variant:dd.Secondary,size:ud.S,label:"Test",disabled:c||!String(C??"").trim(),onClick:()=>u?.(String(C??""))})]}):d}},gh=n.div`
1152
+ width: 100%;
1153
+ background: ${({theme:e})=>e.v2.colors.silver[800]};
1154
+ border-radius: 8px;
1155
+ padding: 8px;
1156
+ display: flex;
1157
+ flex-direction: column;
1158
+ gap: 8px;
1159
+ `,mh=n.div`
1160
+ flex: 1;
1161
+ min-width: 0;
1162
+ `,fh=n.div`
1163
+ padding-top: 24px;
1164
+ `,yh=({columns:o,values:n,setValues:r,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=o.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return o.forEach(({keyName:e,defaultValue:o})=>t[e]=o??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=n.length?n:[b(v)],S=(f?E[0]?.[f]:"")||v,C=(e,t,o)=>{r(E.map((n,r)=>r===e?{...n,[t]:o}:n))},$=()=>r([...E,b(S)]),x=y.find(e=>e.id===S);return t(ul,{"data-id":a,$gap:16,$width:"100%",children:[s&&e(Hd,{label:s,tooltip:l,required:c}),m&&e(kd,{"data-id":`${a}-mode`,size:Nd.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!d&&(e=>r([b(e)]))(String(e))}),t(ul,{$gap:8,$width:"100%",children:[E.map((n,i)=>{const s=i===E.length-1,l=f?{...n,[f]:S}:n,c=o.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const o=t||e.length||1,n=[];let r=[];const i=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void n.push([e]);r.push(e),r.length>=o&&i()}),i(),n})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return t(gh,{"data-id":`${a}-card-${i}`,children:[t(dl,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[t(ul,{$gap:10,children:[T&&e(Hd,{label:T}),m.map(t=>e(dl,{$gap:24,children:(t.options??[]).map(o=>e(dh,{size:sh.L,label:o.label,value:String(n[t.keyName]??"")===String(o.id),disabled:d,onChange:e=>e&&C(i,t.keyName,o.id)},`${a}-card-${i}-${t.keyName}-${o.id}`))},`${a}-card-${i}-${t.keyName}`))]}),t(dl,{$gap:4,$alignItems:"center",children:[v&&e(hd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:dd.Secondary,size:ud.S,disabled:d||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),e(hd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>e(Rt,{fill:g.v2.colors.red[500]}),variant:dd.Secondary,size:ud.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,o)=>o!==e);r(t.length?t:[b(S)])})(i)}),s&&e(hd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:dd.Secondary,size:ud.S,disabled:d,onClick:$})]})]}),w.map((o,r)=>e(dl,{$gap:8,$alignItems:"flex-start",$width:"100%",children:o.map((o,r)=>{const s=((e,t)=>{let{label:o,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(o=i.label??o,n=i.placeholder??n,r=i.helpMessage??r)}return{label:o,placeholder:n,helpMessage:r}})(o,n);return t(Mt,{children:["arrow"===o.separator&&r>0&&e(fh,{children:e(kt,{size:24,fill:g.v2.colors.silver[200]})}),e(mh,{children:e(Au,{name:`${a}-card-${i}-${o.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:o.inputType,min:o.min,max:o.max,width:"100%",value:n[o.keyName]??"",disabled:d,hasError:!!u,onChange:e=>C(i,o.keyName,e.target.value)})})]},`${a}-card-${i}-${o.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),e(Wd,{errorMessage:u})]})]})},bh=n.div`
1165
+ width: 100%;
1166
+ background: ${({theme:e})=>e.v2.colors.silver[800]};
1167
+ border-radius: 8px;
1168
+ padding: 4px 8px;
1169
+ `,vh=n.table`
1170
+ width: 100%;
1171
+ border-collapse: separate;
1172
+ border-spacing: 0 8px;
1173
+ `,Eh=n.td`
1174
+ padding: 0 8px 0 0;
1175
+ vertical-align: top;
1176
+ `,Sh=n.td`
1177
+ width: 72px;
1178
+ vertical-align: ${({$center:e})=>e?"middle":"top"};
1179
+ padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1180
+ `,Ch=({columns:o,values:n,setValues:r,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return o.forEach(({keyName:t,defaultValue:o})=>e[t]=o??""),e},[o]),v=(e,t,o)=>{const i=n.length?os(n):[os(b)];i[o][e]=t,r(i)},E=n.length?n:[b];return e(bh,{children:t(ul,{"data-id":a,$gap:0,children:[e(Hd,{label:s,tooltip:l,required:d,badge:c}),e(vh,{children:e("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const o=t||e.length||1,n=[];let r=[];const i=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void n.push([e]);r.push(e),r.length>=o&&i()}),i(),n})(o.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return t(Mt,{children:[l.length>1&&a>0?e("tr",{children:e(Eh,{colSpan:d+1})}):null,l.map((o,l)=>{const g=c[l],m=g?22:0;return t("tr",{children:[o.map((n,r)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const s=r===o.length-1,c=0===l&&s?d-o.length+1:1;return e(Eh,{colSpan:c>1?c:void 0,children:t(ul,{$gap:6,children:[g&&(n.label?e(Hd,{label:n.label,tooltip:n.tooltip}):e(Hd,{label:"\\u00A0"})),e(hh,{col:n,colIdx:r,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:g,onTestRegex:f})]})},`input-table-row-${a}-col-${l}-${r}`)}),0===l&&e(Sh,{$topOffset:m,$center:h,children:t(dl,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&e(hd,{leftIcon:_t,variant:dd.Secondary,size:ud.S,disabled:u,onClick:()=>(()=>{const e=n.length?os(n):[os(b)];e.push(os(b)),r(e)})()}),e(hd,{leftIcon:u?Rt:()=>e(Rt,{fill:y.v2.colors.red[500]}),variant:dd.Secondary,size:ud.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,o)=>o!==e);t.length||t.push(os(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),e(Wd,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},$h=n.div`
1181
+ display: flex;
1182
+ align-items: center;
1183
+ justify-content: space-between;
1184
+ gap: 32px;
1185
+
1186
+ padding: 18px 16px;
1187
+ border-radius: 18px;
1188
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Ed["095"]};
1189
+ box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
1190
+
1191
+ position: fixed;
1192
+ bottom: 0;
1193
+ left: 50%;
1194
+ z-index: ${({theme:e})=>e.v2.zIndex.island};
1195
+ animation-name: ${Cd.in.center};
1196
+ `,xh=({isOpen:o,onClose:n,richTitle:r,actions:i})=>o?t($h,{children:[e(du,{...r}),e(lu,{onAnyClick:n,actions:i})]}):null,wh=n.div`
1197
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1198
+ top: 50%;
1199
+ left: 50%;
1200
+ transform: translate(-50%, -50%);
1201
+ // Match Overlay: page-scoped modals stay below the sidebar; full-screen modals
1202
+ // portal above it. See theme.v2.zIndex for the full stacking scale.
1203
+ z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
1204
+ width: fit-content;
1205
+ border-radius: 20px;
1206
+ background: ${({theme:e})=>e.v2.colors.black[500]};
1207
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1208
+ overflow: hidden;
1209
+
1210
+ /* Promote to its own composited layer and isolate paint/layout so descendant
1211
+ re-renders during the slide animation can't trigger reflows of the rest of
1212
+ the page. Without this, the global \`* { transition: all 300ms }\` rule plus
1213
+ a heavy modal body (forms, etc.) make the close visibly stutter. */
1214
+ will-change: transform;
1215
+ contain: layout paint;
1216
+
1217
+ animation-name: ${({$closing:e})=>e?Cd.out.center:Cd.in.center};
1218
+ /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1219
+ the global 300ms default which pairs with the fade-in for a soft entrance. */
1220
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1221
+ animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
1222
+
1223
+ /* Block hover/click work on form children mid-close so their transitions
1224
+ don't compete with the slide-out. */
1225
+ ${({$closing:e})=>e&&"pointer-events: none;"}
1226
+ `,Th=n(gl)`
1227
+ will-change: opacity;
1228
+ animation-name: ${({$closing:e})=>e?Td.out:Td.in};
1229
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1230
+
1231
+ /* The blurred backdrop is the most expensive thing on screen during the close
1232
+ — animating opacity on a backdrop-filtered element forces a full GPU
1233
+ recomposite per frame. Drop the blur while closing; visually identical
1234
+ because the overlay is fading to 0. */
1235
+ ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1236
+ `,Oh=n.div`
1237
+ position: relative;
1238
+ `,Nh=n.div`
1239
+ position: absolute;
1240
+ top: 16px;
1241
+ left: 16px;
1242
+ `,Ih=({isOpen:n,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(n),[p,h]=Ft(!1);if(zt(()=>{n?(u(!0),h(!1)):d&&h(!0)},[n]),Ac(d),!d)return null;const g=t(o,{children:[!r&&e(Th,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(wh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(Oh,{children:[a&&e(Nh,{children:e(kc,{icon:t=>e(Nt,{rotate:-90,...t}),size:Rc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Ah=n.div`
1243
+ position: relative;
1244
+ width: ${64}px;
1245
+ height: ${({$height:e})=>e};
1246
+ flex-shrink: 0;
1247
+ `,_h=n.aside`
1248
+ position: absolute;
1249
+ top: 0;
1250
+ left: 0;
1251
+ bottom: 0;
1252
+ display: flex;
1253
+ flex-direction: column;
1254
+ gap: 8px;
1255
+ width: ${({$expanded:e})=>e?"220px":"64px"};
1256
+ padding: 16px ${12}px;
1257
+ box-sizing: border-box;
1258
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
1259
+ overflow-x: hidden;
1260
+ overflow-y: auto;
1261
+ // Above page-scoped overlays (upgrade-required) so expanded labels stay visible;
1262
+ // below full-screen modals/drawers that portal to document.body.
1263
+ z-index: ${({theme:e})=>e.v2.zIndex.sidebar};
1264
+ transition:
1265
+ width 200ms ease,
1266
+ padding 200ms ease;
1267
+ `,Rh=n.button`
1268
+ display: flex;
1269
+ align-items: center;
1270
+ width: 100%;
1271
+ min-width: 0;
1272
+ height: ${40}px;
1273
+ padding: 0;
1274
+ margin: 0;
1275
+ border: none;
1276
+ border-radius: 6px;
1277
+ box-sizing: border-box;
1278
+ cursor: pointer;
1279
+ font: inherit;
1280
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
1281
+ &:hover {
1282
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
1283
+ }
1284
+ &:active {
1285
+ background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1286
+ }
1287
+ `,Dh=n.div`
1288
+ width: ${40}px;
1289
+ height: ${40}px;
1290
+ display: flex;
1291
+ align-items: center;
1292
+ justify-content: center;
1293
+ flex-shrink: 0;
1294
+ `,kh=n.div`
1295
+ flex: 1 1 0;
1296
+ min-width: 0;
1297
+ overflow: hidden;
1298
+ padding-right: 12px;
1299
+ pointer-events: none;
1300
+ `,Lh=({height:o,icons:n})=>{const r=i(),[a,s]=Ft(!1);return e(Ah,{$height:o,children:e(_h,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:o,label:n,selected:i,icon:s,onClick:l})=>t(Rh,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[e(Dh,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(kh,{children:e(za,{size:La.S,weight:500,color:Pa.Primary,nowrap:!0,children:n})})]},o))})})},Ph=n.div`
1301
+ display: flex;
1302
+ flex-direction: column;
1303
+ gap: 16px;
1304
+ width: 100%;
1305
+ padding: 16px;
1306
+ border-radius: 16px;
1307
+ border: 2px solid transparent;
1308
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1309
+ transition:
1310
+ background-color 0.15s ease,
1311
+ border-color 0.15s ease;
1312
+
1313
+ ${({$selected:e,$disabled:t,theme:o})=>e?r`
1314
+ background-color: ${o.v2.colors.purple[900]};
1315
+ border-color: ${o.v2.colors.purple[500]};
1316
+ `:r`
1317
+ background-color: ${o.v2.colors.silver[800]};
1318
+ ${!t&&r`
1319
+ &:hover {
1320
+ background-color: ${o.v2.colors.silver[700]};
1321
+ }
1322
+ `}
1323
+ `}
1324
+ `,Uh=n.div`
1325
+ display: flex;
1326
+ align-items: center;
1327
+ gap: 16px;
1328
+ width: 100%;
1329
+ `,Mh=n.div`
1330
+ display: flex;
1331
+ flex-direction: column;
1332
+ gap: 4px;
1333
+ flex: 1;
1334
+ min-width: 0;
1335
+ `,Fh=n.div`
1336
+ width: 100%;
1337
+ `,zh=({"data-id":o,title:n,description:r,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=o??`radio-card-${n}`,h=()=>{d||c(!0)};return t(Ph,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[t(Uh,{children:[e(dh,{"data-id":`${p}-radio`,value:l,onChange:h,size:sh.L,disabled:d}),t(Mh,{children:[e(za,{size:La.S,weight:500,lineHeight:"24px",color:Pa.Primary,children:n}),r&&e(za,{size:La.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:Pa.Secondary,children:r})]})]}),a&&e(Fh,{children:a}),s&&e(Fh,{children:s})]})},Bh=n.div`
1338
+ width: 100%;
1339
+ height: 100%;
1340
+
1341
+ * {
1342
+ animation: none !important;
1343
+ transition: none !important;
1344
+ }
1345
+ `,Hh=({width:t="100%",height:o="100%",gap:n=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=Wt(null),d=Ht(()=>n?r.map((t,o)=>e("div",{style:{paddingBottom:n},children:t},`scroll-y-item-${o}`)):r,[r,n]),u=Bt(e=>{if(!a||!c.current)return;const t=c.current.findItemIndex(e);a(t)},[a]);zt(()=>{null==s||s<0||!c.current||c.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=e(to,{ref:c,style:{width:t,height:o},onScroll:a?u:void 0,children:d});return i?e(Bh,{children:p}):p},Wh=n.div`
1346
+ display: flex;
1347
+ flex-direction: column;
1348
+ gap: 16px;
1349
+ padding: 8px;
1350
+ ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1351
+ ${({$maxHeight:e})=>e&&`max-height: ${e};`}
1352
+ width: 100%;
1353
+ height: 100%;
1354
+ `,jh=n.div`
1355
+ display: flex;
1356
+ align-items: center;
1357
+ gap: 16px;
1358
+ `,Gh=n.div`
1359
+ width: 50px;
1360
+ height: 50px;
1361
+ border-radius: 8px;
1362
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1363
+ background-size: 200% 100%;
1364
+ animation: ${wd} 10s infinite linear;
1365
+ `,Xh=n(ul)`
1366
+ flex: 1;
1367
+ gap: 12px;
1368
+ `,Vh=n.div`
1369
+ width: ${({$width:e})=>e};
1370
+ height: 16px;
1371
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1372
+ background-size: 200% 100%;
1373
+ animation: ${wd} 1.5s infinite linear;
1374
+ border-radius: 4px;
1375
+ `,Kh=({size:o=5,maxWidth:n,maxHeight:r})=>e(Wh,{$maxWidth:n,$maxHeight:r,children:[...Array(o)].map((o,n)=>t(jh,{children:[e(Gh,{}),t(Xh,{children:[e(Vh,{$width:"80%"}),e(Vh,{$width:"100%"})]})]},n))}),Yh=({currentStep:o,data:n,gap:r=12})=>e(ul,{$gap:r,children:n.map(n=>{const r=n.step<o,i=n.step===o;return t(dl,{$gap:8,children:[r||n.forceDoneBadge?e(cd,{status:wo.Success,label:"",leftIcon:bt}):e(cd,{status:wo.Default,label:n.step.toString()}),e(za,{size:i?La.M:La.XS,weight:i?500:400,opacity:i?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var Jh;(e=>{e.Data="data",e.Pretty="pretty"})(Jh||(Jh={}));const qh=n.div`
1376
+ ${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
1377
+ width: 100%;
1378
+ display: flex;
1379
+ flex-direction: column;
1380
+ overflow: hidden;
1381
+ `,Qh=n.div`
1382
+ width: 100%;
1383
+ flex: 1;
1384
+ display: flex;
1385
+ flex-direction: column;
1386
+ `,Zh=n.div`
1387
+ flex-shrink: 0;
1388
+ position: relative;
1389
+ z-index: 2;
1390
+ `,eg=n.div`
1391
+ position: relative;
1392
+ display: flex;
1393
+ width: 100%;
1394
+ `,tg=n.div`
1395
+ position: relative;
1396
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1397
+ flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
1398
+
1399
+ /* See the matching rule on Td below for the full explanation. The header
1400
+ * needs the same flex-grow override so its column shares any empty row
1401
+ * width even when the caller wrote 'flex: 0 0 Xpx'. */
1402
+ ${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
1403
+ flex-grow: 1;
1404
+ `}
1405
+
1406
+ padding: 18px 24px;
1407
+ border: none;
1408
+ border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
1409
+ box-sizing: border-box;
1410
+
1411
+ ${({$variant:e,$backgroundColor:t})=>{if(t)return r`
1412
+ background-color: ${t};
1413
+ `;switch(e){case Jh.Data:return r`
1414
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1415
+ `;case Jh.Pretty:return r`
1416
+ background-color: transparent;
1417
+ `;default:return""}}}
1418
+ `,og=n.div`
1419
+ position: absolute;
1420
+ top: 50%;
1421
+ right: 0;
1422
+ transform: translateY(-50%);
1423
+ width: 1px;
1424
+ height: 18px;
1425
+ background: ${({theme:e})=>e.v2.colors.silver[500]};
1426
+ `,ng=n.div`
1427
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1428
+ flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
1429
+
1430
+ /* Always let text columns grow into empty row space, even when the caller
1431
+ * wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
1432
+ * 'flex' shorthand above sets all three flex sub-properties from the
1433
+ * caller's value; this longhand 'flex-grow: 1' is declared after it so it
1434
+ * wins and the column still consumes any leftover width.
1435
+ *
1436
+ * Without this, a column pinned with 'flex: 0 0 160px' stays at 160px even
1437
+ * when the row has hundreds of pixels of empty space — and the text inside
1438
+ * gets ellipsised (or in extreme cases clipped without indication) when it
1439
+ * could comfortably fit a few more pixels. Combined with the cell's
1440
+ * 'overflow: hidden', a column that's STILL too narrow after consuming all
1441
+ * available space then truncates cleanly via TruncatableTypography's
1442
+ * ellipsis + tooltip.
1443
+ *
1444
+ * Component (auto-width) columns and JS-measured columns
1445
+ * ('resolvedColumnWidths') keep their exact pixel width — they're already
1446
+ * sized to fit their content and shouldn't steal leftover space from text
1447
+ * columns. The withCheckboxes column passes 'flex' via an inline style,
1448
+ * which takes precedence over class styles, so it stays pinned too. */
1449
+ ${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
1450
+ flex-grow: 1;
1451
+ `}
1452
+
1453
+ overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
1454
+ display: flex;
1455
+ align-items: center;
1456
+
1457
+ padding: 18px 24px;
1458
+ cursor: ${({$withClick:e})=>e?"pointer":"default"};
1459
+ box-sizing: border-box;
1460
+
1461
+ ${({$variant:e,$selected:t,$highlighted:o,$hovered:n,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case Jh.Data:return r`
1462
+ border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
1463
+ border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
1464
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1465
+ `;case Jh.Pretty:return r`
1466
+ border: none;
1467
+ border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
1468
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1469
+ `;default:return""}}}
1470
+ `,rg=n.div`
1471
+ position: absolute;
1472
+ top: 0;
1473
+ left: 0;
1474
+ visibility: hidden;
1475
+ pointer-events: none;
1476
+ height: 0;
1477
+ overflow: hidden;
1478
+ white-space: nowrap;
1479
+ `,ig=n.div`
1480
+ display: inline-flex;
1481
+ align-items: center;
1482
+ padding: 18px 24px;
1483
+ box-sizing: border-box;
1484
+ white-space: nowrap;
1485
+ `,ag=n.div`
1486
+ display: inline-flex;
1487
+ align-items: center;
1488
+ gap: 4px;
1489
+ white-space: nowrap;
1490
+ `,sg=n.div`
1491
+ width: 100%;
1492
+ height: 100%;
1493
+ display: flex;
1494
+ align-items: center;
1495
+ justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
1496
+ gap: 4px;
1497
+ text-align: ${({$textAlign:e})=>e||"left"};
1498
+ `,lg=({variant:o,columns:n,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ft(null),f=Ht(()=>r.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:C,checkboxTooltip:$}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return t(eg,{children:[d&&e(ng,{$variant:o,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&($?e(sd,{text:$,children:e(Vd,{value:b,disabled:C,onChange:()=>b?E?.():v?.()})}):e(Vd,{value:b,disabled:C,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),n.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===r),b=0===m&&!d,v=m===n.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",C=y?.component?e(y.component,{}):s?e(za,{size:La.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):e(uu,{size:La.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),$=e(dl,{$width:"100%",$justifyContent:S,children:C});return t(ng,{$variant:o,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?e(sd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:$}):$,E?e(oh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[r,g,u,s,l,c,d,n,i,a]);return e(Hh,{gap:o===Jh.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},cg=({columnKey:t,sortDirection:o,sortByKey:n,onSort:r})=>{const a=i(),s=n===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=o===go.Ascending?0:180;return e(hd,{variant:dd.Text,size:ud.S,leftIcon:()=>e(Nt,{fill:s,rotate:l}),onClick:()=>r(t)})},dg=({columnKey:t,filters:o,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=o[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.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})),[r,t,a]);return e(au,{items:c,withMultiSelect:!0,selectedIds:o[t]?.map(e=>e.toString())??[],setSelectedIds:e=>n(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(Lt,{fill:l,...t})}})},ug=({variant:o,backgroundColor:n,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>t(eg,{children:[h&&e(tg,{$variant:o,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:e(Vd,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:C,textAlign:$},x)=>{const w=0===x&&!h,T=x===r.length-1,O=!(!y&&!f),N=O?e(za,{size:La.XS,align:$,nowrap:!0,children:m}):e(uu,{size:La.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return t(tg,{$variant:o,$backgroundColor:n,$flex:S,$minWidth:C,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(sg,{$textAlign:$,children:[O?e(sd,{text:y||m,children:N}):N,!b&&e(cg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&e(dg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&o===Jh.Data&&e(og,{})]},`column-${g}`)})]}),pg=()=>{},hg={},gg=[],mg=({variant:o,maxHeight:n,headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=Ft(go.Ascending),[E,S]=Ft(""),[C,$]=Ft({}),x=g??C,w=Bt(e=>{S(e),v(e=>e===go.Ascending?go.Descending:go.Ascending)},[]),T=Bt((e,t)=>{const o={...x,[e]:t};m&&m(o),void 0===g&&$(o)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,o)=>{const n=e(t,E),r=e(o,E);return(b===go.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,r)}):c).filter(t=>{for(const[o,n]of Object.entries(x)){if(!n.length)continue;const r=l.find(e=>e.key===o)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1}else if(!n.includes(e(t,o)))return!1}return!0})},[c,E,b,x,l]),N=Ht(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:I,allSelected:A}=Ht(()=>{const e=O.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[O]),_=Ht(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const o of c)for(const n of o.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,l]),R=Wt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(o=>{const n=[t(ag,{children:[e(za,{size:La.XS,align:o.textAlign,children:o.label}),!o.noSort&&e(cg,{columnKey:o.key,sortDirection:go.Ascending,sortByKey:"",onSort:pg}),!o.noFilter&&e(dg,{columnKey:o.key,filters:hg,onFilter:pg,rowsUnfiltered:gg,filterOverride:o.filterOverride})]},`mw-${o.key}-header`)];return c.forEach((t,r)=>{const i=t.cells.find(e=>e.key===o.key);i&&n.push(i.component?e(i.component,{},`mw-${o.key}-${r}`):e(za,{size:La.XS,children:i.rawValue||"-"},`mw-${o.key}-${r}`))}),{key:o.key,nodes:n}}),[l,c,_]);return jt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const o=t.dataset.mwKey;if(!o)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[o]||n>e[o])&&(e[o]=n)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(o=>t[o]===e[o])?t:e)},[L,_]),t(qh,{$maxHeight:n,children:[L.length>0&&e(rg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:t,nodes:o})=>o.map((o,n)=>e(ig,{"data-mw-key":t,children:o},`mw-${t}-${n}`)))}),t(Qh,{$variant:o,children:[!i&&e(Zh,{children:e(ug,{variant:o,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:I,allSelected:A,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?e(lg,{variant:o,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):e(pl,{$height:n,children:a?e(Kh,{size:3,maxHeight:n}):e(Fd,{...s})})]})]})};var fg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(fg||(fg={}));const yg=(e,t,o)=>{switch(t){case fg.Purple:return e.v2.colors.purple[o?"300":"900"];case fg.Yellow:return e.v2.colors.yellow[o?"300":"1000"];case fg.Blue:return e.v2.colors.blue[o?"300":"1000"];case fg.Pink:return e.v2.colors.red[o?"300":"1000"];case fg.Green:return e.v2.colors.green[o?"300":"900"];case fg.Loader:return e.v2.colors.grey[o?"600":"800"];default:return e.v2.colors.grey[o?"300":"500"]}},bg=n.div`
1499
+ display: flex;
1500
+ align-items: center;
1501
+ justify-content: center;
1502
+ gap: 8px;
1503
+ padding: 4px 8px;
1504
+ border-radius: 6px;
1505
+ border: 1px solid transparent;
1506
+
1507
+ ${({$flex:e})=>e?r`
1508
+ flex: ${e};
1509
+ `:r`
1510
+ width: fit-content;
1511
+ `}
1512
+
1513
+ ${({$disabled:e,$variant:t,$withClick:o})=>e?r`
1514
+ background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1515
+ cursor: not-allowed;
1516
+ `:r`
1517
+ background-color: ${({theme:e})=>yg(e,t)};
1518
+ ${o&&r`
1519
+ cursor: pointer;
1520
+ &:hover,
1521
+ &:active {
1522
+ border: 1px solid ${({theme:e})=>yg(e,t,!0)};
1523
+ }
1524
+ `}
1525
+ `}
1526
+ `,vg=({variant:o=fg.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:o===fg.Default?d.v2.colors.white[500]:yg(d,o,!0),p=o===fg.Loader;return t(bg,{$variant:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(Cl,{withGradient:!0,title:n,titleSize:La.XXS}):e(za,{color:u,size:La.XXS,nowrap:!0,children:n}),a&&e(a,{fill:u,size:16})]})},Eg=n.div`
1527
+ padding: 6px 12px;
1528
+
1529
+ display: flex;
1530
+ align-self: stretch;
1531
+ align-items: flex-start;
1532
+ gap: 8px;
1533
+ border-radius: 6px;
1534
+
1535
+ border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1536
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1537
+ ${({$disabled:e,$error:t})=>!e&&!t&&r`
1538
+ &:hover,
1539
+ &:active,
1540
+ &:focus-within {
1541
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1542
+ }
1543
+ `}
1544
+ `,Sg=n.textarea`
1545
+ max-width: ${({$maxWidth:e})=>e||"unset"};
1546
+ min-height: ${({$minHeight:e})=>e||"50px"};
1547
+ flex: 1;
1548
+ font-family: ${({theme:e})=>e.font_family.primary};
1549
+ font-size: 14px;
1550
+ font-weight: 400;
1551
+ resize: none;
1552
+
1553
+ background: transparent;
1554
+ border: none;
1555
+ outline: none;
1556
+ cursor: text;
1557
+ color: ${({theme:e})=>e.v2.colors.white[500]};
1558
+ &::placeholder {
1559
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
1560
+ }
1561
+
1562
+ &:disabled {
1563
+ cursor: not-allowed;
1564
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
1565
+ &::placeholder {
1566
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
1567
+ }
1568
+ }
1569
+ `,Cg=({label:o,required:n,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Wt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(ul,{$gap:6,children:[e(Hd,{label:o,tooltip:r,required:n,badge:i}),e(Eg,{$disabled:p,$error:!!a,children:e(Sg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),e(Wd,{errorMessage:a,warnMessage:s,helpMessage:l})]})},$g=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],xg=n.div`
1570
+ flex: 1;
1571
+ min-width: 0;
1572
+ `,wg=n.div`
1573
+ flex: 0 0 auto;
1574
+ min-width: 140px;
1575
+ `,Tg=({name:o,label:n,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=$g,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Ht(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:E}=Ht(()=>((e,t,o)=>{if(null==e||""===e)return{num:"",unit:o};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),i=String(e).match(r);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:o}:{num:"",unit:o}})(c,u,b),[c,u,b]),S=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(ul,{$width:y,$gap:6,children:[e(Hd,{label:n,tooltip:r,required:s,badge:i}),t(dl,{$gap:8,$alignItems:"center",children:[e(xg,{children:e(Au,{name:o,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(Yl(e.target.value),E)})}),e(wg,{children:e(Yp,{name:`${o}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),e(Wd,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Og=n.div`
1576
+ min-width: 500px;
1577
+ `,Ng=n.div`
1578
+ display: flex;
1579
+ flex-direction: column;
1580
+ align-items: center;
1581
+ gap: 16px;
1582
+ padding: 24px;
1583
+ width: 100%;
1584
+ `,Ig=n.div`
1585
+ display: flex;
1586
+ justify-content: center;
1587
+ gap: 16px;
1588
+ padding: 16px 24px;
1589
+ width: 100%;
1590
+ background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1591
+ `,Ag=({visual:o,title:n,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Ih,{isOpen:i,onClose:a,...d,children:t(Og,{children:[t(Ng,{children:[o&&e(o,{}),e(za,{size:La.M,weight:500,color:Pa.Primary,children:n}),e(ul,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(za,{size:La.XS,weight:400,color:Pa.Secondary,children:t},t))}),c]}),(s||l)&&t(Ig,{children:[s&&e(hd,{"data-id":"deny",...s}),l&&e(hd,{"data-id":"approve",...l})]})]})});export{br as $,su as A,dd as B,Vd as C,Va as D,ir as E,$o as F,Vo as G,Uo as H,Ch as I,Xo as J,Pn as K,Jn as L,rr as M,za as N,Ln as O,fo as P,Pa as Q,du as R,kd as S,sd as T,La as U,Zs as V,Ag as W,cr as X,Yn as Y,nr as Z,lr as _,lu as a,hs as a$,qn as a0,dh as a1,fr as a2,Xn as a3,Rn as a4,Vn as a5,Gn as a6,au as a7,Dn as a8,Kn as a9,Er as aA,wo as aB,wr as aC,vg as aD,or as aE,Tr as aF,Or as aG,Sr as aH,vo as aI,ys as aJ,sr as aK,_u as aL,yr as aM,jd as aN,Nr as aO,Ir as aP,tr as aQ,os as aR,Ra as aS,Wd as aT,Hh as aU,pl as aV,Fd as aW,Kp as aX,Cl as aY,Ud as aZ,Lc as a_,_r as aa,jn as ab,$r as ac,Rr as ad,Ar as ae,Dr as af,kr as ag,hr as ah,kn as ai,Un as aj,Mn as ak,Bn as al,Wn as am,Hn as an,Zn as ao,xn as ap,wn as aq,_n as ar,gr as as,mr as at,vr as au,_a as av,Tn as aw,er as ax,yu as ay,Bp as az,mo as b,po as b$,ap as b0,bc as b1,Xa as b2,zs as b3,Eo as b4,So as b5,uc as b6,Cc as b7,Tc as b8,vc as b9,yh as bA,uu as bB,Nd as bC,Ba as bD,Ql as bE,cd as bF,rc as bG,Xr as bH,Qn as bI,ar as bJ,Vr as bK,pr as bL,Gr as bM,In as bN,An as bO,Fn as bP,Ed as bQ,on as bR,cl as bS,Kh as bT,kc as bU,Rc as bV,an as bW,$s as bX,ka as bY,ja as bZ,Wa as b_,Is as ba,nn as bb,ws as bc,Pl as bd,cn as be,Ll as bf,Oc as bg,Zo as bh,ro as bi,no as bj,Ul as bk,Ml as bl,rn as bm,Vl as bn,jo as bo,Xl as bp,ln as bq,Ro as br,io as bs,dn as bt,un as bu,uo as bv,pn as bw,sh as bx,vp as by,ts as bz,Ka as c,pc as c$,zh as c0,yp as c1,Qo as c2,Gl as c3,ss as c4,_l as c5,sn as c6,ed as c7,Gc as c8,qa as c9,zn as cA,yn as cB,Es as cC,hn as cD,vn as cE,mn as cF,bn as cG,Na as cH,Aa as cI,Ia as cJ,Qr as cK,Jr as cL,Yr as cM,qr as cN,ri as cO,ni as cP,si as cQ,ai as cR,ti as cS,ei as cT,gn as cU,zr as cV,Bc as cW,Fl as cX,qd as cY,Jd as cZ,Ih as c_,ko as ca,pp as cb,Ja as cc,nc as cd,bs as ce,fg as cf,qu as cg,mc as ch,Il as ci,Nl as cj,Cs as ck,rh as cl,gc as cm,Fs as cn,us as co,xl as cp,Jo as cq,Wc as cr,sc as cs,ic as ct,Wl as cu,vs as cv,Id as cw,mg as cx,Jh as cy,xh as cz,Tp as d,oa as d$,Oa as d0,di as d1,$i as d2,xi as d3,wi as d4,Ti as d5,Ni as d6,Oi as d7,Ii as d8,al as d9,ki as dA,Ri as dB,Bi as dC,Hi as dD,Fi as dE,zi as dF,Mi as dG,ji as dH,Gi as dI,Wi as dJ,pi as dK,pa as dL,ha as dM,ga as dN,ua as dO,fa as dP,ya as dQ,ba as dR,va as dS,Ea as dT,ma as dU,ca as dV,da as dW,ea as dX,aa as dY,sa as dZ,la as d_,Sa as da,Ca as db,$a as dc,xa as dd,wa as de,Ta as df,ui as dg,hi as dh,gi as di,mi as dj,yi as dk,fi as dl,vi as dm,bi as dn,Si as dp,Ei as dq,Ci as dr,li as ds,ci as dt,Ai as du,_i as dv,Ui as dw,Li as dx,Pi as dy,Di as dz,Cp as e,ho as e$,ra as e0,na as e1,Xi as e2,Vi as e3,Ki as e4,Yi as e5,Ji as e6,qi as e7,Qi as e8,Zi as e9,Tu as eA,ll as eB,xr as eC,Cn as eD,En as eE,Sn as eF,$n as eG,Kr as eH,Fr as eI,Ur as eJ,Mr as eK,Pr as eL,Lr as eM,Wr as eN,jr as eO,Hr as eP,Br as eQ,Xc as eR,Io as eS,lo as eT,Oo as eU,_o as eV,yo as eW,bo as eX,To as eY,co as eZ,qo as e_,ta as ea,ia as eb,Ps as ec,sl as ed,Yh as ee,yc as ef,cs as eg,Ga as eh,Kc as ei,hc as ej,$c as ek,$l as el,Os as em,gs as en,Ns as eo,Ts as ep,xs as eq,_c as er,ls as es,as as et,is as eu,Ha as ev,Hs as ew,zo as ex,$u as ey,Xu as ez,Sp as f,Pc as f$,so as f0,Do as f1,Co as f2,Wo as f3,Ho as f4,Bo as f5,Ao as f6,Yo as f7,Ko as f8,Go as f9,zl as fA,Bl as fB,jl as fC,Yl as fD,Jl as fE,ql as fF,Zl as fG,ec as fH,rs as fI,tc as fJ,oc as fK,Cr as fL,ii as fM,oi as fN,Zr as fO,dr as fP,ur as fQ,Nn as fR,On as fS,ac as fT,lc as fU,en as fV,tn as fW,cc as fX,Hc as fY,Ic as fZ,Ac as f_,go as fa,ao as fb,No as fc,tl as fd,el as fe,rl as ff,Qa as fg,Za as fh,Kl as fi,ds as fj,ps as fk,fs as fl,ns as fm,Ss as fn,Ya as fo,_s as fp,Rs as fq,Ds as fr,ks as fs,Ls as ft,Us as fu,Bs as fv,wl as fw,Rl as fx,Dl as fy,kl as fz,Tg as g,Mc as g0,zc as g1,jc as g2,Vc as g3,Jc as g4,vd as g5,Od as g6,Sd as g7,bd as g8,Lu as g9,Pu as ga,Yd as gb,$g as gc,qp as gd,Uu as ge,eh as gf,oh as gg,ml as gh,Lh as gi,gl as gj,ph as gk,bu as gl,fl as gm,yl as gn,bl as go,ep as gp,Np as gq,Ep as gr,hl as gs,Ma as gt,Yp as h,Cg as i,ah as j,Au as k,xo as l,hd as m,ud as n,fn as o,Lo as p,Mo as q,Fo as r,Al as s,oo as t,Po as u,Da as v,ul as w,Hd as x,dl as y,Eu as z};