@odigos/ui-kit 0.0.273 → 0.0.275

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/docs/api-context.md +6 -2
  3. package/lib/chunks/helpers-BkaWRtR9.js +9 -0
  4. package/lib/chunks/{index-C18_FX5i.js → index-D3cEk2g_.js} +3 -3
  5. package/lib/chunks/source-instrument-form-context-B40tRNcP.js +5 -0
  6. package/lib/chunks/ui-components-BUMZXMZ4.js +1596 -0
  7. package/lib/components/note/index.d.ts +2 -1
  8. package/lib/components.js +1 -1
  9. package/lib/constants/actions/categories.d.ts +6 -0
  10. package/lib/constants/actions/index.d.ts +1 -0
  11. package/lib/constants/strings/index.d.ts +0 -1
  12. package/lib/constants.js +1 -1
  13. package/lib/containers/_drawers/add-action-drawer/lists-column/index.d.ts +10 -0
  14. package/lib/containers/central-connections/helpers.d.ts +2 -1
  15. package/lib/containers/central-connections/index.d.ts +1 -1
  16. package/lib/containers.js +274 -275
  17. package/lib/contexts/odigos-api/capabilities.d.ts +0 -4
  18. package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +16 -1
  19. package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +17 -2
  20. package/lib/contexts/odigos-api/types.d.ts +1 -1
  21. package/lib/contexts/odigos-api/use-api-query.d.ts +3 -1
  22. package/lib/contexts/odigos-context.d.ts +3 -1
  23. package/lib/contexts.js +1 -1
  24. package/lib/functions/get-action-icon/index.d.ts +2 -2
  25. package/lib/functions.js +1 -1
  26. package/lib/hooks.js +1 -1
  27. package/lib/icons/actions/enrichment-icon/index.d.ts +2 -0
  28. package/lib/icons/actions/index.d.ts +3 -0
  29. package/lib/icons/actions/normalization-icon/index.d.ts +2 -0
  30. package/lib/icons/actions/privacy-icon/index.d.ts +2 -0
  31. package/lib/icons/compute-platform/ecs-logo/index.d.ts +2 -0
  32. package/lib/icons/compute-platform/index.d.ts +1 -1
  33. package/lib/icons.js +1 -1
  34. package/lib/snippets/wide-drawer/index.d.ts +1 -1
  35. package/lib/snippets.js +1 -1
  36. package/lib/store.js +1 -1
  37. package/lib/theme.js +1 -1
  38. package/lib/types/actions/index.d.ts +9 -0
  39. package/lib/types/common/index.d.ts +2 -1
  40. package/lib/types.js +1 -1
  41. package/lib/visuals.js +1 -1
  42. package/package.json +1 -1
  43. package/lib/chunks/helpers-B3Ne2tBs.js +0 -9
  44. package/lib/chunks/source-instrument-form-context-DsVdhWzt.js +0 -5
  45. package/lib/chunks/ui-components-Cz05Wzh4.js +0 -1596
  46. package/lib/containers/_drawers/edit-source-drawer/helpers.d.ts +0 -16
  47. package/lib/icons/compute-platform/cloud-connector-policy-icon/index.d.ts +0 -2
@@ -1,1596 +0,0 @@
1
- import{jsxs as e,jsx 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 $,RedisLogo as S,PostgresLogo as C,NginxLogo as x,MysqlLogo as w,ElixirLogo as T,SwiftLogo as O,RustLogo as N,RubyLogo as A,PhpLogo as I,CPlusPlusLogo as _,CSharpLogo as R,DotnetLogo as D,PythonLogo as k,NodejsLogo as L,GoLogo as P,JavaLogo as M,PyroscopeLogo as U,AwsXrayLogo as F,VictoriaMetricsLogo as z,UptraceLogo as B,TraceloopLogo as H,TingyunLogo as j,TempoLogo as W,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 $e,GrafanaLogo as Se,GoogleCloudPlatformLogo as Ce,ElasticSearchLogo as xe,ElasticApmLogo as we,DynatraceLogo as Te,DatadogLogo as Oe,Dash0Logo as Ne,CoralogixLogo as Ae,AwsCloudwatchLogo as Ie,ClickhouseLogo as _e,ChronosphereLogo as Re,ChecklyLogo as De,CauselyLogo as ke,BonreeLogo as Le,BetterStackLogo as Pe,AzureMonitorLogo as Me,AzureBlobLogo as Ue,AxiomLogo as Fe,AppDynamicsLogo as ze,AlibabaCloudLogo as Be,AlaudaLogo as He,SamplingIcon as je,InstrumentationRuleIcon as We,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,CodeIcon as bt,VIcon as vt,CopyIcon as Et,SearchIcon as $t,XIcon as St,MinusIcon as Ct,ChevronUpIcon as xt,ChevronDownIcon as wt,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as It,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 Mt,Fragment as Ut,useState as Ft,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as jt,useLayoutEffect as Wt,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,$o,So,Co,xo,wo,To,Oo,No,Ao,Io,_o,Ro,Do,ko,Lo,Po,Mo,Uo,Fo,zo,Bo,Ho,jo,Wo,Go,Xo;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(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",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(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"})($o||($o={})),(e=>{e.DataStream="DataStream"})(So||(So={})),(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",e.SourceScopes="sourceScopes"})(Co||(Co={})),(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.RolloutWorkload="RolloutWorkload"})(Oo||(Oo={})),(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"})(No||(No={})),(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"})(Ao||(Ao={})),(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"})(_o||(_o={})),(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"})(Ro||(Ro={})),(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"})(Do||(Do={})),(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"})(ko||(ko={})),(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"})(Lo||(Lo={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Po||(Po={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Mo||(Mo={})),(e=>{e.HeaderKeys="headerKeys"})(Uo||(Uo={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Fo||(Fo={}));class Vo{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 Ko{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]"}}class Yo{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(zo||(zo={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Bo||(Bo={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Ho||(Ho={})),(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"})(jo||(jo={})),(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"})(Go||(Go={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Xo||(Xo={}));const Jo={[Go.Logs]:Xo.Logs,[Go.Metrics]:Xo.Metrics,[Go.Traces]:Xo.Traces,[Go.Profiles]:Xo.Profiles},qo={[Xo.Logs]:Go.Logs,[Xo.Metrics]:Go.Metrics,[Xo.Traces]:Go.Traces,[Xo.Profiles]:Go.Profiles};var Qo;(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Qo||(Qo={}));const Zo=e=>({[no.K8sAttributes]:h,[no.AddClusterInfo]:p,[no.DeleteAttributes]:u,[no.PiiMasking]:d,[no.RenameAttributes]:c,[no.ExtractAttribute]:l,[no.URLTemplatization]:l,[no.DbQueryTemplatization]:l,[no.InferDbAttributes]:l}[e]||g),en=[{type:no.K8sAttributes,icon:Zo(no.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Go.Traces,Go.Metrics,Go.Logs,Go.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[fo.K8s]},{type:no.AddClusterInfo,icon:Zo(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:[Go.Traces,Go.Metrics,Go.Logs,Go.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[fo.K8s]},{type:no.DeleteAttributes,icon:Zo(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:[Go.Traces,Go.Metrics,Go.Logs,Go.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[fo.K8s]},{type:no.RenameAttributes,icon:Zo(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:[Go.Traces,Go.Metrics,Go.Logs,Go.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[fo.K8s]},{type:no.PiiMasking,icon:Zo(no.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Go.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[fo.K8s]},{type:no.URLTemplatization,icon:Zo(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:[Go.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:Zo(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:[Go.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[fo.K8s]:oo("v1.29.0")},supportedPlatforms:[fo.K8s]}],tn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),on=(e,t,o)=>{const n=e.minVersion?.[t];return!n||oo(o)>=n},nn=(e,t)=>en.filter(o=>tn(o,e)&&on(o,e,t)),rn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Zo(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var an;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(an||(an={}));const sn={[an.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[an.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[an.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[an.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[an.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[an.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ln=e=>({[Po.CodeAttributes]:b,[Po.CustomInstrumentation]:y,[Po.HeadersCollection]:f,[Po.PayloadCollection]:m,[Po.UnknownType]:g}[e]||g),cn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var dn,un,pn;(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"})(dn||(dn={})),(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"})(un||(un={})),(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"})(pn||(pn={}));const hn=new Set(Object.values(pn)),gn=(e,t)=>{if("string"!=typeof(o=t)||!hn.has(o))return t;var o;switch(t){case pn.Primary:return e.v2.colors.white[500];case pn.Secondary:return e.v2.colors.silver[200];case pn.Tertiary:return e.v2.colors.black[500];case pn.Disable:return e.v2.colors.grey[400];case pn.Error:return e.v2.colors.red[500];case pn.Mandatory:return e.v2.colors.red[600];case pn.Link:return e.v2.colors.purple[400];case pn.Success:return e.v2.colors.green[400];default:return}},mn=n.p`
2
- margin: 0;
3
- color: ${({$color:e,theme:t})=>gn(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
- `,fn=Mt(({children:o,variant:n=dn.P,color:r,size:i=un.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="string"==typeof o?o.split("\n").map((o,n,r)=>e(Ut,{children:[o,n!==r.length-1&&t("br",{})]},`typography-${n}-${o}`)):o;return t(mn,{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})});fn.displayName="Typography";const yn="https://docs.odigos.io",bn="default",vn="this-cluster",En="This Cluster",$n={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Sn={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)',PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},Cn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No 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",PHP_CUSTOM_PROBES:"PHP 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"},xn={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"},wn=(e,t)=>e===wo.Success?Cn.HEALTHY:e===wo.Error?Cn.NOT_HEALTHY:cn(t),Tn=e=>{if(!e)return null;switch(e){case Lo.Irrelevant:return null;case Lo.Failure:case Lo.Error:return wo.Error;case Lo.Notice:return wo.Warning;case Lo.Pending:case Lo.Waiting:return wo.Loading;case Lo.Unsupported:case Lo.Disabled:return wo.Disabled;case Lo.Success:return wo.Success;case Lo.Unknown:default:return wo.Info}},On=(e,t,o="reason",n)=>{const r=Tn(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===wo.Success?v:E),label:n||("reason"===o?cn(e?.reasonEnum):wn(r,e?.reasonEnum)),tooltip:e?.message,textSize:un.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var Nn;(e=>{e.SIGNALS="SIGNALS"})(Nn||(Nn={}));const An=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,i]=e;if(n===Nn.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}};function In(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const _n=e=>({status:e?wo.Success:wo.Unknown,label:e?"True":"False",invertColors:!0}),Rn=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Dn=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),kn=e=>"string"==typeof e?{id:e,label:e}:e??{},Ln=(e,t)=>e.label||e.displayName||t,Pn=(e,t,o={})=>{const n=[],r=o.signals||[],i=new Set(o.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));return t.forEach((t,o)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!An(t.renderCondition,r,a))return;const s=t.displayName||t.name,l=`${t.name}-${o}`,c=e[t.name],d=In(t.componentProperties,{});switch(t.componentType){case Co.Toggle:case Co.Checkbox:return void n.push({id:l,title:s,badge:_n(!!c)});case Co.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void n.push({id:l,title:s,label:e.length?e.join(", "):"-"})}if("flatFields"===t)return void(Array.isArray(d.options)?d.options:[]).forEach((t,o)=>{const r=kn(t),i=String(r.id??"");i&&n.push({id:`${l}-${o}-${i}`,title:Ln(r,i),badge:_n(!0===e[i])})});const o=Rn(c)?c:{},r=Array.isArray(d.options)?d.options:[];if(r.length){const e=r.map(e=>{const t=kn(e),n=String(t.id??"");return n&&o[n]?Ln(t,n):null}).filter(Boolean);return void n.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(o).filter(([,e])=>!!e).map(([e])=>e);return void n.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case Co.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,o=e&&Rn(c)?c[e]:c;if(Array.isArray(o)&&o.length){const e=o.map(e=>t&&Rn(e)?String(e[t]??""):String(e??""));return void n.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void n.push({id:l,title:s,label:"-"})}case Co.KeyValuePair:return Rn(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],o)=>{n.push({id:`${l}-${o}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const o=Rn(e)?e:{};n.push({id:`${l}-${t}`,title:String(o.key??""),label:String(o.value??"")})}):void n.push({id:l,title:s,label:"-"});case Co.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&Rn(c)?c[e]:c)?e&&Rn(c)?c[e]:c:[],o=Array.isArray(d.columns)?d.columns:[],r=e=>{const t=o.find(t=>Rn(t)&&t.keyName===e);return t?.label||e};return t.length?void t.forEach((e,o)=>{const i=t.length>1?`${s} #${o+1} `:`${s} `;Object.entries(e||{}).forEach(([e,t])=>{null!=t&&""!==t&&n.push({id:`${l}-${o}-${e}`,title:`${i}${r(e)}`,label:Dn(t)})})}):void n.push({id:l,title:s,label:"-"})}case Co.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,o)=>{const r=e.length>1?`${s} #${o+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&n.push({id:`${l}-${o}-${e}`,title:`${r}${e}`,label:Dn(t)})})}):void n.push({id:l,title:s,label:"-"})}default:n.push({id:l,title:s,label:Dn(c)})}}),n},Mn=e=>e.charAt(0).toUpperCase()+e.slice(1),Un=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},{})},Fn=e=>JSON.parse(JSON.stringify(e)),zn=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Bn=(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},Hn=(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},jn=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Wn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Gn=(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.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));o=o.filter(({id:t})=>!!t.region&&e.has(t.region))}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??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));o=o.filter(({instrumentationReport:t})=>{const o=t?.state||t?.progressStage;return!!o&&e.has(o)})}return t.onlyErrors&&(o=o.filter(e=>Tn(e.workloadOdigosHealthStatus?.status)===wo.Error)),o},Xn=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===bn&&!e.dataStreamNames?.length):[],Vn=(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?Vn(e,n,o):o[n]=e}):o[i]=r:Vn(r,i,o)}return o},Kn=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]}`},Yn=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`}},Jn=()=>{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)})},qn=e=>e?e.reduce((e,t)=>{if(null!=t){const o=Tn(t.status);o&&e.push({status:o,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Qn=e=>Array.isArray(e?.statuses)?qn(e.statuses):e?.conditions??[],Zn=e=>e?Array.isArray(e)?er(e):er(qn(Object.values(e))):er([]),er=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}},tr=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},or=e=>({[vo.Java]:M,[vo.Go]:P,[vo.JavaScript]:L,[vo.Python]:k,[vo.DotNet]:D,[vo.CSharp]:R,[vo.CPlusPlus]:_,[vo.Php]:I,[vo.Ruby]:A,[vo.Rust]:N,[vo.Swift]:O,[vo.Elixir]:T,[vo.MySql]:w,[vo.Nginx]:x,[vo.Postgres]:C,[vo.Redis]:S,[vo.Kafka]:$,[vo.Ignored]:g,[vo.Unknown]:g,[vo.Processing]:g,[vo.NoContainers]:g,[vo.NoRunningPods]:g}[e]||g),nr=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown:vo.Unknown,rr=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,ir=e=>e?.map(e=>or(nr(e)))||[],ar=e=>e?.map(e=>or(e))||[],sr=e=>e.runtimeInfo?.detectedLanguages?.length?ar(e.runtimeInfo?.detectedLanguages):ir(e.containers),lr=(e,t)=>{const o={[Ro.Alauda]:He,[Ro.AlibabaCloud]:Be,[Ro.AppDynamics]:ze,[Ro.Axiom]:Fe,[Ro.AzureBlob]:Ue,[Ro.AzureMonitor]:Me,[Ro.BetterStack]:Pe,[Ro.Bonree]:Le,[Ro.Causely]:ke,[Ro.Checkly]:De,[Ro.Chronosphere]:Re,[Ro.ClickHouse]:_e,[Ro.CloudWatch]:Ie,[Ro.Coralogix]:Ae,[Ro.Dash0]:Ne,[Ro.Datadog]:Oe,[Ro.Dynamic]:te,[Ro.Dynatrace]:Te,[Ro.ElasticApm]:we,[Ro.ElasticSearch]:xe,[Ro.GoogleCloud]:Ce,[Ro.GoogleCloudOTLP]:Ce,[Ro.GrafanaCloudLoki]:Se,[Ro.GrafanaCloudPrometheus]:Se,[Ro.GrafanaCloudTempo]:Se,[Ro.Greptime]:$e,[Ro.Groundcover]:Ee,[Ro.Honeycomb]:ve,[Ro.HyperDX]:be,[Ro.Instana]:ye,[Ro.Jaeger]:fe,[Ro.Kafka]:$,[Ro.Kloudmate]:me,[Ro.Last9]:ge,[Ro.Lightstep]:he,[Ro.LogzIo]:pe,[Ro.Loki]:ue,[Ro.Lumigo]:de,[Ro.Middleware]:ce,[Ro.NewRelic]:le,[Ro.Observe]:se,[Ro.Odigos]:ae,[Ro.OneUptime]:ie,[Ro.OpenObserve]:re,[Ro.Opsverse]:ne,[Ro.Oracle]:oe,[Ro.OTLP]:te,[Ro.OTLPHttp]:te,[Ro.Prometheus]:ee,[Ro.Qryn]:Z,[Ro.QrynOss]:Q,[Ro.Quickwit]:q,[Ro.S3]:J,[Ro.Seq]:Y,[Ro.Signalfx]:V,[Ro.Signoz]:K,[Ro.Splunk]:V,[Ro.SplunkSapm]:V,[Ro.SplunkOtlp]:V,[Ro.SumoLogic]:X,[Ro.TelemetryHub]:G,[Ro.Tempo]:W,[Ro.Tingyun]:j,[Ro.Traceloop]:H,[Ro.Uptrace]:B,[Ro.VictoriaMetrics]:z,[Ro.VictoriaMetricsCloud]:z,[Ro.XRay]:F,[Ro.Pyroscope]:U}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},cr=e=>({[$o.Namespace]:Ve,[$o.Source]:Xe,[$o.Destination]:Ge,[$o.Action]:l,[$o.InstrumentationRule]:We,[$o.SamplingRule]:je}[e]),dr=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,ur=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},pr=e=>ur(dr(e)),hr=(e,t,o)=>{const{extended:n,prioritizeDisplayName:r}=o||{};let i="",a="";switch(t){case $o.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case $o.Source:const o=e;i=o.id.name,a=o.serviceName||"";break;case $o.Action:const n=e;i=n.type,a=n.name||"";break;case $o.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case $o.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):r&&a||i},gr=(e,t)=>{if(t===$o.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},mr=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown,fr=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?vo.Processing:vo.NoRunningPods;const n=o?.filter(e=>mr(e)!==vo.Ignored);if(!n.length)return vo.NoContainers;const r=n.find(e=>mr(e)!==vo.Unknown);return r?mr(r):vo.Unknown},yr=(e,t,o)=>(t===$o.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},br=e=>({[Go.Logs]:Je,[Go.Metrics]:Ye,[Go.Traces]:Ke,[Go.Profiles]:ae}[e]),vr=(e,t)=>Object.values(un).reduce((o,n)=>Math.abs(t[n]-e)<Math.abs(t[o]-e)?n:o),Er=e=>e?{[fo.K8s]:h,[fo.Vm]:Qe,[fo.Connector]:qe}[e]:ae,$r=e=>e?{[fo.K8s]:"Kubernetes Cluster",[fo.Vm]:"Virtual Machine",[fo.Connector]:"Cloud Connector"}[e]:"Unknown",Sr=(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(...Sr(e,t,o)),r}):[]},Cr={"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"},xr=e=>{if(!e)return"";if(Cr[e])return Cr[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},wr=(e,t)=>{if(t===$o.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Tr=(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]}},Or=e=>{switch(e){case Bo.Updating:case Ho.Pending:case jo.ContainerCreating:case Wo.Waiting:return wo.Info;case Bo.Healthy:case Ho.Succeeded:case Ho.Running:case jo.Running:case Wo.Running:return wo.Success;case Bo.Degraded:return wo.Warning;case Bo.Failed:case Ho.Failed:case jo.Error:case jo.CrashLoopBackOff:case jo.CreateContainerError:case jo.CreateContainerConfigError:case jo.ErrImagePull:case jo.ErrImageNeverPull:case jo.ImagePullBackOff:case jo.InvalidImageName:case jo.RegistryUnavailable:case jo.NetworkNotReady:case jo.OOMKilled:case jo.ContainerCannotRun:case Wo.Terminated:case jo.DeadlineExceeded:case jo.StartError:return wo.Error;case Bo.Down:case jo.Completed:return wo.Disabled;case Bo.Unknown:case Ho.Unknown:default:return wo.Unknown}},Nr=n.div`
42
- border-radius: 100%;
43
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
- position: relative;
45
- `,Ar=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
- `,Ir=n(fn)`
60
- position: absolute;
61
- top: 50%;
62
- left: 50%;
63
- transform: translate(-50%, -50%);
64
- `,_r=({percentage:o})=>e(Nr,{children:[t(Ar,{}),"number"==typeof o?t(Ir,{size:un.M,weight:500,nowrap:!0,children:`${o}%`}):null]}),Rr={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 Dr(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 Rr[n]?{value:t,unit:n}:{value:t,unit:"px"}}function kr(e){const t=Dr(e);return`${t.value}${t.unit}`}const Lr=(()=>{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})(),Pr=({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}=Dr(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:kr(1.5),height:kr(4),borderRadius:kr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Lr} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...c,children:[t("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Mr=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
- `,Ur=({scale:e,icon:o})=>{const n=i();return t(Mr,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(Mr,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(Mr,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(Mr,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(Mr,{$size:23*e,$color:"#50F6E8",children:t(o,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},Fr=434,zr=635,Br=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
- `,Hr=n.div`
83
- position: absolute;
84
- top: 50%;
85
- left: 50%;
86
- transform: translate(-50%, -50%);
87
- `,jr=()=>e(Br,{children:[t(Hr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("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)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(Hr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("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)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Hr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("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)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Hr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("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)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Hr,{children:t(ae,{size:112})})]}),Wr=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
- `,Gr=({scale:e=1,icon:o})=>{const n=i();return t(Wr,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Wr,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Wr,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Wr,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Wr,{$size:39*e,$color:n.v2.colors.purple[500],children:t(o,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Xr=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
- `,Vr=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
- `,Kr=n.div`
116
- padding: ${({$padding:e})=>e||"12px"};
117
- `,Yr=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
- `,Jr=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
- `,qr=n(Jr)`
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
- `,Qr=n.div`
148
- display: flex;
149
- flex-direction: column;
150
- padding: 12px;
151
- overflow-y: scroll;
152
- `,Zr=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
- `,ei=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
- `,ti=n(Jr)`
173
- max-width: ${({$maxWidth:e})=>e||"unset"};
174
- width: 100%;
175
- `,oi=n(Yr)`
176
- gap: 16px;
177
- padding: 16px;
178
- `,ni=n.div`
179
- width: 100%;
180
- max-height: ${({$maxHeight:e})=>e||"unset"};
181
- overflow-y: auto;
182
- `,ri=a`
183
- 0% {
184
- background-position: 0% 50%;
185
- }
186
- 100% {
187
- background-position: 100% 50%;
188
- }
189
- `,ii=n(fn)`
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: ${ri} 1s reverse linear infinite;
195
- `,ai=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")}`},si=({icon:o,title:n,titleColor:r,titleSize:a=un.S,subTitle:s,subTitleColor:l,subTitleSize:c=un.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,$]=Ft(()=>d?ai(d):"");zt(()=>{if(!d)return;$(ai(d));const e=setInterval(()=>$(ai(d)),1e3);return()=>clearInterval(e)},[d]);const S=r||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(Jr,{$gap:16,$alignItems:"center",children:[y?t(Ur,{scale:1.7,icon:b}):h?t(_r,{percentage:f}):g?t(Pr,{scale:m}):null,(n||s||d||o||u)&&e(Jr,{$gap:8,$alignItems:"center",children:[e(Yr,{$gap:4,children:[o&&t(o,{}),u?t(ii,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:n||"Loading..."}):n?t(fn,{align:"center",size:a,color:S,children:n}):null]}),s?t(fn,{align:"center",size:c,color:C,children:s}):null,E?t(fn,{align:"center",size:c,color:S,children:E}):null]})]})},li=(e,t)=>({[wo.Default]:o=>ae({fill:Tr(t,e,"300"),...o}),[wo.Info]:o=>nt({fill:Tr(t,e,"400"),...o}),[wo.Error]:o=>ot({fill:Tr(t,e,"500"),...o}),[wo.Warning]:o=>tt({fill:Tr(t,e,"500"),...o}),[wo.Success]:o=>v({fill:Tr(t,e,"500"),...o}),[wo.Loading]:e=>si({withSpinnerOld:!0,...e}),[wo.Disabled]:o=>E({fill:Tr(t,e,"400"),...o}),[wo.Unknown]:o=>et({fill:Tr(t,e,"300"),...o})}[e]),ci=e=>{switch(e){case Lo.Success:return wo.Success;case Lo.Error:case Lo.Failure:return wo.Error;case Lo.Notice:return wo.Warning;case Lo.Unsupported:case Lo.Unknown:return wo.Info;case Lo.Irrelevant:case Lo.Disabled:return wo.Disabled;case Lo.Waiting:return wo.Loading;case Lo.Pending:default:return wo.Default}},di=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},ui={redis:S,mysql:w,postgresql:C,postgres:C,kafka:$,elasticsearch:xe,clickhouse:_e,oracle:oe,aws:rt},pi={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:Ie},hi=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=ui[o.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=ui[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=pi[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(ui))if(i.includes(e))return t;return Ge},gi=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}},mi=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=In(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},fi=(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 yi(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 bi(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 vi(e){const{sourcesScopes:t,...o}=e;return{...o,sourceScopes:yi(t??null)}}function Ei(e){const{sourceScopes:t,...o}=e;return{...o,sourcesScopes:bi(t??null)}}const $i=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Si=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ci=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},xi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},wi=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ti=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Oi=e=>Ti.test(e),Ni=e=>e?.map(({status:e,type:t,reason:o,message:n})=>({status:e?.toLowerCase(),type:cn(t),reason:o?cn(o):"",message:n}))||[],Ai=(e,t)=>{const o=In(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}))},Ii=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>qo[e]):[],_i=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>qo[e]):[],Ri=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},Di=e=>e.replace(/[^\d]/g,""),ki=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Li=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},Pi=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}},Mi=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=>Mi(e)))}else if("object"==typeof n&&null!==n){const e=Mi(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Ui=(e,t=2)=>JSON.stringify(e||{},null,t),Fi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),zi=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Bi={PID:"process.pid",VPID:"process.vpid"},Hi={[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"},ji=[{id:vo.Go,label:Hi[vo.Go],icon:or(vo.Go)},{id:vo.Java,label:Hi[vo.Java],icon:or(vo.Java)},{id:vo.JavaScript,label:Hi[vo.JavaScript],icon:or(vo.JavaScript)},{id:vo.Python,label:Hi[vo.Python],icon:or(vo.Python)},{id:vo.Php,label:Hi[vo.Php],icon:or(vo.Php)},{id:vo.Ruby,label:Hi[vo.Ruby],icon:or(vo.Ruby)},{id:vo.Rust,label:Hi[vo.Rust],icon:or(vo.Rust)},{id:vo.DotNet,label:Hi[vo.DotNet],icon:or(vo.DotNet)},{id:vo.CSharp,label:Hi[vo.CSharp],icon:or(vo.CSharp)},{id:vo.CPlusPlus,label:Hi[vo.CPlusPlus],icon:or(vo.CPlusPlus)},{id:vo.Swift,label:Hi[vo.Swift],icon:or(vo.Swift)},{id:vo.Elixir,label:Hi[vo.Elixir],icon:or(vo.Elixir)}],Wi={id:ko.OpentelemetryEbpfInstrumentation,label:ko.OpentelemetryEbpfInstrumentation,icon:yt},Gi={[vo.Go]:{community:[{id:ko.GolangCommunity,label:ko.GolangCommunity,icon:or(vo.Go)},Wi],enterprise:[{id:ko.GolangEnterprise,label:ko.GolangEnterprise,icon:or(vo.Go)}]},[vo.JavaScript]:{community:[{id:ko.NodejsCommunity,label:ko.NodejsCommunity,icon:or(vo.JavaScript)},Wi],enterprise:[{id:ko.NodejsEnterprise,label:ko.NodejsEnterprise,icon:or(vo.JavaScript)}]},[vo.Python]:{community:[{id:ko.PythonCommunity,label:ko.PythonCommunity,icon:or(vo.Python)},Wi],enterprise:[{id:ko.PythonEnterprise,label:ko.PythonEnterprise,icon:or(vo.Python)}]},[vo.Java]:{community:[{id:ko.JavaCommunity,label:ko.JavaCommunity,icon:or(vo.Java)},Wi],enterprise:[{id:ko.JavaEnterprise,label:ko.JavaEnterprise,icon:or(vo.Java)},{id:ko.JavaEbpfInstrumentations,label:ko.JavaEbpfInstrumentations,icon:or(vo.Java)}]},[vo.DotNet]:{community:[{id:ko.DotNetCommunity,label:ko.DotNetCommunity,icon:or(vo.DotNet)},Wi],enterprise:[{id:ko.DotNetEnterprise,label:ko.DotNetEnterprise,icon:or(vo.DotNet)}]},[vo.Ruby]:{community:[{id:ko.RubyCommunity,label:ko.RubyCommunity,icon:or(vo.Ruby)},Wi],enterprise:[{id:ko.RubyEnterprise,label:ko.RubyEnterprise,icon:or(vo.Ruby)}]},[vo.Php]:{community:[{id:ko.PhpCommunity,label:ko.PhpCommunity,icon:or(vo.Php)},Wi],enterprise:[]},[vo.CSharp]:{community:[],enterprise:[{id:ko.CPlusPlusEnterprise,label:ko.CPlusPlusEnterprise,icon:or(vo.CSharp)}]},[vo.MySql]:{community:[],enterprise:[{id:ko.MySqlEnterprise,label:ko.MySqlEnterprise,icon:or(vo.MySql)}]},[vo.CPlusPlus]:{community:[Wi],enterprise:[]},[vo.Rust]:{community:[Wi],enterprise:[]},[vo.Swift]:{community:[Wi],enterprise:[]},[vo.Elixir]:{community:[Wi],enterprise:[]},[vo.Nginx]:{community:[Wi],enterprise:[]},[vo.Postgres]:{community:[Wi],enterprise:[]},[vo.Redis]:{community:[Wi],enterprise:[]},[vo.Kafka]:{community:[Wi],enterprise:[]},[vo.Ignored]:{community:[],enterprise:[]},[vo.Unknown]:{community:[Wi],enterprise:[]},[vo.Processing]:{community:[],enterprise:[]},[vo.NoContainers]:{community:[],enterprise:[]},[vo.NoRunningPods]:{community:[],enterprise:[]}},Xi="*",Vi=e=>!!e?.includes(Xi),Ki=e=>e?.length?Vi(e)?[Xi]:e:[],Yi=e=>{if(e?.length&&!Vi(e))return e.filter(e=>e!==Xi)},Ji=e=>e===Xi?"All languages":Hi[e]??e,qi=e=>e===Xi?bt:or(e),Qi=[{type:Po.CodeAttributes,icon:ln(Po.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:Po.CustomInstrumentation,icon:ln(Po.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[vo.Go,vo.Java,vo.Php]},{type:Po.HeadersCollection,icon:ln(Po.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:Po.PayloadCollection,icon:ln(Po.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]}],Zi=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:ln(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},ea={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.'},ta={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."},oa={[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."}},na="Cancel",ra="Save",ia="Edit rule",aa="Edit auto rule",sa="Create rule",la="Delete rule",ca="Save",da="Create your first rule",ua="No Rules Exist",pa="No Results",ha=e=>`No rules match the search term "${e}"`,ga="Rule name",ma="Rule type",fa="Select the type of condition that makes a trace highly relevant.",ya="Rule Enabled",ba="Rule Disabled",va="Enabled",Ea="Disabled",$a="Note",Sa="HTTP route",Ca="Method",xa="Keep Percentage",wa="Keep traces with duration larger than",Ta="Keep traces with errors",Oa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Na="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Aa="Custom percentage",Ia="Disabled rule",_a="Sample",Ra="Keep all",Da="Drop all",ka="Operation type",La="HTTP route prefix",Pa="Templated path",Ma="Templated path prefix",Ua="Kafka topic",Fa="Custom duration (ms)",za="No preview available",Ba="Server address",Ha="Drop at most this percentage of matching traces",ja="Unnamed rule",Wa="Sampling Preview",Ga="Source Scope",Xa="Unknown source",Va="Operation",Ka="Duration",Ya="Errors",Ja="Keep Percentage",qa="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Qa="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Za="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",es="Retain traces with errors from the selected services and operations.",ts="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",os="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ns={highlyRelevant:ts,noisy:os,costReduction:void 0},rs="Type rule name",is="Add note here...",as="Type here",ss="Search source name",ls="e.g. collector.my.vendor.com",cs="Optional notes (not used by the system). Add any context or details for this sampling rule.",ds="Rule will apply to all sources in the cluster",us="If multiple source scopes are set, they must all match simultaneously.",ps="All sources",hs="-",gs="All",ms="Sources",fs="Namespaces",ys="Languages",bs="any of",vs="AND",Es="All operations",$s="HTTP server endpoint",Ss="HTTP client endpoint",Cs="Kafka consumer",xs="Kafka producer",ws="Sampling Rules",Ts='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Os="Refresh",Ns="Create rule",As="Sampling docs",Is="75vw",_s="Delete rule?",Rs="Are you sure you want to delete this sampling rule?",Ds="Delete",ks="Cancel",Ls="Kubernetes Health Probes",Ps="Keep All Error Traces",Ms="Drop Traces Cluster-Wide",Us="A rule with the same matching conditions already exists.",Fs="Create this rule as-is?",zs="This rule still uses the default configuration.\nDo you want to create it anyway?",Bs="Rule preview",Hs="Continue editing",js="Create 'Noisy Operation Kubernetes Health Probes' rule",Ws="Edit 'Noisy Operation Kubernetes Health Probes' rule",Gs="Automatically detect and sample health probe traces across the cluster.",Xs="Create 'Highly Relevant Operations' rule",Vs="Edit 'Highly Relevant Operations' rule",Ks="Automatically keep all error traces across the entire cluster.",Ys="Create 'Cost Reduction' rule",Js="Edit 'Cost Reduction' rule",qs="Automatically drop a percentage of traces across the entire cluster.",Qs="Skip setup",Zs="Start setup",el="Next",tl="Go to Sampling",ol="Read more",nl="Welcome to Sampling",rl="Cut costs without losing what matters",il="Odigos sampling works in three stages:",al="Filter noisy traffic",sl="Remove non-actionable traces like health checks.",ll="Guarantee highly relevance operations",cl="Keep traces with errors, high latency, or mission-critical endpoints/services.",dl="Reduce cost",ul="Sample routine traffic using percentages.",pl="Sampling does not drop individual spans - it keeps or drops the entire trace.",hl="Filter noisy operations",gl="Cut traces with little or no observability value (health-checks, metric scarping, etc)",ml="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.",fl="Preset Rules",yl="Kubernetes Health Probes",bl="Automatically ignore health checks",vl="You can review, adjust, and add additional custom rules later.",El="Choose your sampling strategy",$l="Pick the approach that best fits your balance of cost vs data-completeness",Sl="Keep List",Cl="Budget Friendly",xl="Define which traces must be kept, while all others are sampled by default to minimize cost.",wl="Cost-oriented - keeps only what you explicitly select.",Tl="Best for very large clusters with high volumes of traces and high costs.",Ol="Higher risk of missing important traces without ongoing review.",Nl="Drop List",Al="Safe Choice",Il="Define which traces must be aggressively dropped, while all others are kept by default.",_l="Preserves most data unless explicitly filtered.",Rl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Dl="Advanced",kl="Maximum Flexibility",Ll="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Pl="'Keep List' profile",Ml="Protect important traces",Ul="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:",Fl="Traces with errors",zl="Slow requests (duration above threshold)",Bl="Mission-Critical endpoints or services",Hl="Services under test or evaluation",jl="New deployments",Wl="You can review, adjust, and add rules once onboarding is complete.",Gl="Common Rules",Xl="Preset Rules",Vl="Error collection - entire cluster",Kl="Keep all traces with errors",Yl="Ambient sampling percentage",Jl="'Drop List' profile",ql="Reduce high-volume traffic",Ql="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.",Zl="Advanced Configuration",ec="Configure sampling rules",tc="Advanced mode allows you to configure all sampling categories:",oc="Noise Filtering - remove non-actionable traces",nc="Highly Relevance - guarantee important traces are kept",rc='Cost Control - drop traces for "Normal" operations',ic="Rules can target:",ac="Services",sc="HTTP Endpoints",lc="DB Operations",cc="Errors",dc="Latency and more...",uc="Sampling configured successfully!",pc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",hc="Odigos will now:",gc="Filter noisy operations",mc="Guarantee important traces",fc="Reduce cost using controlled sampling",yc="Recommended",bc={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."},vc={noisy:js,highlyRelevant:Xs,costReduction:Ys},Ec={noisy:Ws,highlyRelevant:Vs,costReduction:Js},$c={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Sc=[{id:Go.Logs,value:"Logs"},{id:Go.Metrics,value:"Metrics"},{id:Go.Traces,value:"Traces"},{id:Go.Profiles,value:"Profiles"}],Cc=6048e5,xc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:$n.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),wc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:bn},Tc=Pt(e=>({...wc,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(wc)}));var Oc;(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"})(Oc||(Oc={}));const Nc=e=>`add-${cn(e).replaceAll(" ","-").toLowerCase()}`,Ac=e=>`edit-${cn(e).replaceAll(" ","-").toLowerCase()}`,Ic=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),_c=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),Rc=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}),regions:[],setRegions:t=>e({regions: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:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:_c})),Dc=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 kc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(kc||(kc={}));const Lc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Pc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Mc=Pt((e,t)=>({progress:{},setProgress:(o,n)=>{const r=t(),i=Lc();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]:Pc(i)}})},addProgress:(o,n,r)=>{const i=t(),a=Lc(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]:Pc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Uc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Fc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},zc=(e,t)=>e.destinationType.type!==t.destinationType.type,Bc=Pt(e=>({...Fc,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=>zc(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=>zc(e,t))})),clearStore:()=>e(()=>({...Fc}))})),Hc=e=>{function t(){return void 0===e?{}:Fn(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)=>zn("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=Fn(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=Fn(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}},jc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Wc=()=>{const{addNotification:e}=Dc(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:r,resetFormData:i}=Hc(jc);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":$i(t)&&(n[e]=Sn.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=Sn.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&o?.withAlert&&e({type:wo.Warning,title:o.alertTitle,message:Sn.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={...Fn(jc),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)}}},Gc=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xc=()=>{const e=jt(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 Vc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Vc||(Vc={}));const Kc=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
- `,Yc=({"data-id":e,icon:o,size:n=Vc.S,onClick:r,disabled:i})=>t(Kc,{"data-id":e,$size:n,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:t(o,{size:n})}),Jc=({onDone:e}={})=>{const[o,n]=Ft(!1),[r,i]=Ft(-1),a=Bt(async(t,r)=>{if(!o){if(n(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),i(-1)},1e3)}},[o,e]);return{CopyButton:Bt(({value:e,size:n})=>t(Yc,{icon:o?vt:Et,size:n,onClick:()=>a(e)}),[o]),isCopied:o,copiedIndex:r,clickCopy:a}},qc=e=>{const{addNotification:t}=Dc(),{formData:o,handleFormChange:n,formErrors:r,handleErrorChange:i,resetFormData:a}=Hc(e);return{formData:o,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return o.name?Si(o.name)?n.name=void 0:(r=!1,n.name=Sn.ILLEGAL_K8S_LABEL):(r=!1,n.name=Sn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:wo.Warning,title:e.alertTitle,message:Sn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const o={...Fn(e),name:t};n(void 0,void 0,o)}}},Qc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Zc=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=Dc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Hc(Qc),[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===Co.Dropdown){const e=In(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,...In(n,{})}})).map(e=>{if(o){const t="string"==typeof o?In(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===Ii(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]=Sn.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:wo.Warning,title:e.alertTitle,message:Sn.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={...Fn(Qc),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(In(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},ed={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[zo.HttpRequest]:null,[zo.HttpResponse]:null,[zo.DbQuery]:null,[zo.Messaging]:null},codeAttributes:{[Mo.Column]:null,[Mo.FilePath]:null,[Mo.Function]:null,[Mo.LineNumber]:null,[Mo.Namespace]:null,[Mo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Fo.Java]:null,[Fo.Golang]:null,[Fo.Php]:null},networkMetrics:null},td=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Hc(ed);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,networkMetrics:c})=>{const d={...Fn(ed),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:c??null};i&&(d.payloadCollection={[zo.HttpRequest]:i[zo.HttpRequest]?{}:null,[zo.HttpResponse]:i[zo.HttpResponse]?{}:null,[zo.DbQuery]:i[zo.DbQuery]?{}:null,[zo.Messaging]:i[zo.Messaging]?{}:null}),a&&(d.codeAttributes={[Mo.Column]:a[Mo.Column]||null,[Mo.FilePath]:a[Mo.FilePath]||null,[Mo.Function]:a[Mo.Function]||null,[Mo.LineNumber]:a[Mo.LineNumber]||null,[Mo.Namespace]:a[Mo.Namespace]||null,[Mo.StackTrace]:a[Mo.StackTrace]||null}),s&&(d.headersCollection=s),l&&(d.customInstrumentations={[Fo.Java]:l[Fo.Java]||null,[Fo.Golang]:l[Fo.Golang]||null,[Fo.Php]:l[Fo.Php]||null}),o(void 0,void 0,d)}}},od=({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),nd="data-ignore-outside-click",rd=(e,t)=>{const o=jt(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(nd))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])},id=(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 Wt(()=>{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},ad=(e,{behavior:t="smooth",block:o="center",inline:n,delayMs:r=50}={})=>{const i=jt(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},sd=({sectionNames:e,threshold:t=.4})=>{const[o,n]=Ft(e[0]||""),[r,i]=Ft(null),a=jt({}),s=jt(!1),l=jt(!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}},ld=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:n="local"}={})=>{const r=jt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return rd(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})}}},cd=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?In(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),dd={otelServiceName:"",currentStreamName:""},ud=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Hc(dd);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...Fn(dd),otelServiceName:e||t.name||""};o(void 0,void 0,n)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const pd=new Xt(Vt.locale),hd=[{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"}],gd=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),md=()=>{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 pd.format(gd(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:o="long",suffix:n=!0}={})=>{try{const r=gd(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 hd){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])}},fd=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
- `,yd=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
- `,bd=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
- `,vd=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
- `,Ed=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
- `,$d=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:$,arrowPlacement:S,handlePosition:C}=ld({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?C($.left||o,$.top||n):C(o,n),E("mouseleave"!==t)};if(!f.length&&!h)return t(o,{children:c});const T=v&&f.length>0;return e(fd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,n&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(yd,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===S.edge&&t(Ed,{$align:S.align,children:t($d,{$pointsUp:!0})}),t(bd,{$maxWidth:p,children:e(vd,{children:[(!!r||!!a)&&e(Yr,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(fn,{size:un.XS,children:a},"title")]}),f.map((e,o)=>t(fn,{size:un.XXXS,children:e},o)),!!l&&t(fn,{size:un.XXXS,color:pn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Ed,{$align:S.align,children:t($d,{$pointsUp:!1})})]}),document.body)]})},Cd=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
- `,xd=({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)?Tr(m,s,c?"400":"700"):[wo.Unknown].includes(s)?Tr(m,s,"600"):Tr(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 t(Sd,{text:a,fullWidth:g,children:e(Cd,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?t(n,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(si,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(si,{withGradient:!0,title:f,titleSize:d||un.XXS}):t(fn,{color:v,size:d||un.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var wd,Td;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(wd||(wd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Td||(Td={}));const Od=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===Td.S?r`
284
- height: 32px;
285
- ${t?r`
286
- padding: 8px 16px;
287
- `:r`
288
- width: 32px;
289
- `}
290
- `:e===Td.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===wd.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===wd.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===wd.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
- `,Nd=Mt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=wd.Primary,size:u=Td.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const $=i(),S=p||(u===Td.L?18:16),C=u===Td.L?un.S:un.XS,x=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[w,T]=Ft(!1),O=!(!h&&!w),N=!(!y&&!O),A=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return t(Od,{ref:E,"data-id":n,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,...v,disabled:N,onClick:N?void 0:A,children:t(Sd,{text:a,withIcon:!s,children:O?t(si,r?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(o,{children:[l&&t(qr,{$width:"fit-content",children:t(l,{size:S,fill:x})}),r?t(fn,{size:C,weight:500,color:x,nowrap:!0,children:r}):null,c&&t(qr,{$width:"fit-content",children:t(c,{size:S,fill:x})})]})})})});Nd.displayName=Nd.name;const Ad={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:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},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"}},Id={v2:Ad.v2,darkMode:!0,colors:{...Ad.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:Ad.font_family},_d={v2:Ad.v2,darkMode:!1,colors:{...Ad.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:Ad.font_family},Rd=e=>e?Id:_d,Dd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Ad,darkModeTheme:Id,getTheme:Rd,lightModeTheme:_d},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 kd=({children:e})=>{const{darkMode:o}=xc();return t(s,{theme:Rd(o),children:e})},Ld={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"},Pd=Object.freeze(Object.defineProperty({__proto__:null,hex:Ld},Symbol.toStringTag,{value:"Module"})),Md={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
- `}},Ud={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
- `},Fd=a`
386
- 0% {
387
- transform: scale(1);
388
- opacity: 1;
389
- }
390
- 75%, 100% {
391
- transform: scale(2);
392
- opacity: 0;
393
- }
394
- `,zd=a`
395
- 0% {
396
- background-position: -500px 0;
397
- }
398
- 100% {
399
- background-position: 500px 0;
400
- }
401
- `,Bd={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
- `},Hd=Object.freeze(Object.defineProperty({__proto__:null,fade:Bd,ping:Fd,progress:Ud,shimmer:zd,slide:Md},Symbol.toStringTag,{value:"Module"}));var jd,Wd;(e=>{e.S="s",e.L="l"})(jd||(jd={})),(e=>{e.Filled="filled",e.Underline="underline"})(Wd||(Wd={}));const Gd=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
- `,Xd=n.button`
425
- flex: 1;
426
- display: flex;
427
- align-items: center;
428
- justify-content: center;
429
- gap: 8px;
430
- padding: ${({$size:e})=>e===jd.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])+Ld["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
- `,Vd=n.div`
446
- display: flex;
447
- align-items: stretch;
448
- width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
449
- `,Kd=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
- `,Yd=({"data-id":n,size:r=jd.S,variant:a=Wd.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Wd.Underline,g=h?Kd:Xd;return t(h?Vd:Gd,{"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,$=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],S=r===jd.S?un.XXS:un.XS,C=v?500:400,x=e(o,{children:[a&&t(a,{fill:$}),i&&t(fn,{size:S,weight:C,color:$,nowrap:!0,children:i}),s&&t(xd,{...s})]});return t(g,{onClick:()=>!E&&c(n),$disabled:E,$isSelected:v,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?t(Sd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${n}`)})})},Jd=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
- `,qd=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
- `,Qd=({"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],$=!!d?.options?.length,S=Ht(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),C=Ht(()=>l||($&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,$,S]);return e(Jd,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t($t,{size:18,fill:E}),t(qd,{"data-id":o??"search",name:"search",type:"text",placeholder:C,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),$&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(Yd,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Zd=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
- `,eu=({icon:o=St,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(Jr,{$gap:12,$alignItems:"center",children:[!n&&t(Zd,{children:t(o,{size:32,fill:c})}),e(Jr,{$gap:4,$alignItems:"center",children:[t(fn,{size:un.S,align:"center",children:r}),a&&t(fn,{size:un.XXS,align:"center",color:c,children:a})]}),s&&t(Nd,{variant:wd.Secondary,...s}),l]})},tu=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
- `,ou=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
- `,nu=({label:o,tooltip:n,required:r,badge:i,width:a,smallAndDark:s})=>o||n||r?e(Yr,{$width:a,$justifyContent:"space-between",children:[o&&t(tu,{$smallAndDark:s,children:o}),e(Yr,{$gap:4,children:[i&&t(xd,{...i,textSize:un.XXXS}),r&&t(ou,{children:"*"}),n&&t(Sd,{text:n,withIcon:!0})]})]}):null,ru=({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=t(nt,{size:12,fill:s});return o||n||r?e(Yr,{$alignItems:"center",children:[l&&t(Jr,{children:l}),t(fn,{size:un.XXXS,weight:400,color:s,children:o||n||r})]}):null};var iu;(e=>{e.S="small",e.L="large"})(iu||(iu={}));const au=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
- `,su=n.div`
525
- width: ${({$size:e})=>e===iu.S?"16px":"20px"};
526
- height: ${({$size:e})=>e===iu.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
- `,lu=({name:o,label:n,tooltip:r,badge:a,size:s=iu.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===iu.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Jr,{$gap:4,children:[e(Yr,{$justifyContent:"space-between",children:[e(au,{"data-id":o||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(su,{$size:s,$borderColor:$,$backgroundColor:S,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),n&&t(fn,{size:s===iu.S?un.XXS:un.XS,nowrap:!0,children:n})]}),t(nu,{tooltip:r,badge:a})]}),t(ru,{errorMessage:p,warnMessage:h,helpMessage:g})]})},cu=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
- `,du=({direction:o=ho.Vertical,title:n,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===iu.S?un.XXS:un.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 e(cu,{$direction:o,children:[n&&a?t(lu,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(fn,{size:d,children:n}):null,s.map(e=>t(lu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:r},`${n}-checkbox-${e.id}`))]})};var uu,pu;(e=>{e.Left="left",e.Right="right"})(uu||(uu={})),(e=>{e.Top="top",e.Bottom="bottom"})(pu||(pu={}));const hu=n.div`
538
- position: relative;
539
- display: flex;
540
- flex-direction: column;
541
- gap: 4px;
542
- `,gu=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
- `,mu=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
- `,fu=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
- `,yu=n.div`
585
- display: flex;
586
- align-items: center;
587
- gap: 8px;
588
- flex: 1;
589
- min-width: 0;
590
- `,bu=n.div`
591
- flex: 0 1 auto;
592
- min-width: 0;
593
- overflow: hidden;
594
- text-overflow: ellipsis;
595
- white-space: nowrap;
596
- `,vu=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
- `,Eu=n.div`
606
- flex-shrink: 0;
607
- display: inline-flex;
608
- align-items: center;
609
- gap: 4px;
610
- `,$u=({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 $=i(),S=void 0!==n,C=!!f||!!y||!!E,[x,w]=Ft(o??!C),T=S?n:x,O=Bt(e=>{S||w(e),r?.(e)},[S,r]),[N,A]=Ft({x:a||uu.Left,y:s||pu.Bottom}),I=jt(null);rd(I,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const o=I.current?.getBoundingClientRect();if(!o)return;const n=C?8:0;R({top:t===pu.Bottom?C?o.bottom+n:o.top:void 0,bottom:t===pu.Top?C?window.innerHeight-o.top+n:window.innerHeight-o.bottom:void 0,left:e===uu.Left?o.left:void 0,right:e===uu.Right?window.innerWidth-o.right:void 0,width:g?o.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const o={x:a||(e.clientX>window.innerWidth/2?uu.Right:uu.Left),y:s||(e.clientY>window.innerHeight/2?pu.Top:pu.Bottom)};A(o),D(o.x,o.y)};Wt(()=>{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]),C&&!p&&O(!1)},[P,M]=Ft(""),U=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(hu,{ref:I,children:[u&&t(nu,{label:u}),f&&t(Nd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(Nd,{variant:wd.Text,size:Td.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(gu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(Qd,{value:P,onChange:M,width:"100%"}),b?t(si,{withSpinner:!0,title:"Loading...",titleSize:un.XS}):U.length?t(mu,{$maxHeight:m,children:U.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 e(fu,{"data-id":`option-${n}`,$selected:d&&!a,onClick:()=>L(n),title:l?`${r} — ${l}`:r,children:[a&&t(lu,{value:d,onChange:()=>L(n)}),i&&t(i,{size:14,fill:o.color||$.v2.colors.white[500]}),s&&t(vu,{children:t(fn,{size:un.XXS,nowrap:!0,color:pn.Secondary,children:s})}),e(yu,{children:[t(bu,{children:t(fn,{size:un.XS,nowrap:!0,color:o.color||pn.Primary,children:r})}),l&&e(Eu,{children:[t(Ve,{size:12,fill:$.v2.colors.silver[200]}),t(fn,{size:un.XS,nowrap:!0,color:pn.Secondary,children:l})]})]})]},n)})}):t(Kr,{$padding:"6px 0",children:t(eu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!U.length&&t(Nd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var Su;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(Su||(Su={}));const Cu=({onAnyClick:e,actions:o})=>t(Yr,{$gap:8,$alignItems:"center",children:o?.map(o=>{if(!o)return null;switch(o.type){case Su.Button:return t(Nd,{...o.buttonProps,onClick:t=>{o.buttonProps?.onClick?.(t),e?.()}},o.id);case Su.ButtonDropData:return t($u,{...o.dropDataProps,items:o.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{o.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:o.buttonProps},o.id);default:return null}})}),xu=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]+Ld["004"]};
617
- `,wu=({icon:o,iconWithWrapper:n=!1,title:r,titleSize:i=un.S,titleColor:a=pn.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=un.XXS,subTitleColor:d=pn.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Jc();return e(Yr,{$gap:l?8:6,$alignItems:"center",children:[o&&(n||l?t(xu,{children:t(o,{size:24})}):t(o,{size:24})),r||g||l?e(Jr,{children:[r||g?e(Yr,{$gap:6,$alignItems:"center",children:[r&&t(fn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&t(y,{value:r,size:Vc.XS}),p&&t(Sd,{text:p,withIcon:!0}),g&&t(xd,{...g})]}):null,l&&t(fn,{size:c,color:d,nowrap:!u,children:l})]}):null,t(Yr,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Tu=({children:e,fullText:o,fullWidth:n=!0,...r})=>{const i=jt(null),a=!!r.maxLines&&r.maxLines>0,s=id(i,{axis:a?"vertical":"horizontal",deps:[e]})?o??(null==e?"":String(e)):"";return t(Sd,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(fn,{ref:i,...r,children:e})})},Ou=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
- `,Nu=n(Yr)`
628
- cursor: ${({$clickable:e})=>e?"pointer":"default"};
629
- user-select: ${({$clickable:e})=>e?"none":"auto"};
630
- `,Au=n.div`
631
- display: flex;
632
- align-items: flex-end;
633
- flex-wrap: wrap;
634
- width: 100%;
635
- `,Iu=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
- `,_u=({item:o,cellsPerRow:n})=>{const{CopyButton:r}=Jc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=o;return i?t("div",{style:{flex:1}}):e(Iu,{$cellsPerRow:n,children:[!!a&&t(Sd,{text:s,children:t(Tu,{size:un.XXXS,color:pn.Secondary,nowrap:!0,children:a})}),e(Yr,{$gap:4,children:[u&&t(xd,{...u}),l&&t(Sd,{text:c,children:t(Tu,{size:un.XS,nowrap:!0,children:l})}),d&&t(r,{value:l||u?.label?.toString()||"",size:Vc.XS})]})]})},Ru=({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,$=!!u.length,S=!!c.length;return e(Ou,{$width:n,$bgTint:o,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&e(Nu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(wu,{...a}):t("div",{}),e(Yr,{$gap:12,children:[p,E&&v&&t(Cu,{actions:d}),S&&t(Yr,{$gap:8,children:c.map((e,t)=>Gt(xd,{...e,key:e.key||`${e.label}-${t}`}))}),($||s)&&e(Yr,{$gap:2,children:[$&&t($u,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(Nd,{variant:wd.Text,size:Td.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Au,{children:g.map(e=>t(_u,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Du;(e=>{e.S="small",e.M="medium"})(Du||(Du={}));const ku=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
- `,Lu=Mt(({id:o,size:n=Du.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===Du.S?4:16,y="number"==typeof h?h:n===Du.S?12:16,b=a??(i?t(wu,{...i}):null),v=l??(s?t(Qd,{...s}):null),E=!!b||!!v,$=!!d&&d.length>0;return e(ku,{ref:m,id:o,"data-section-name":o,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||$?e(Yr,{$gap:f,$justifyContent:"space-between",children:[E?e(Yr,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,$&&t(Cu,{actions:d??[]})]}):null,u]})});Lu.displayName="SectionCard";const Pu=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})=>Tr(e,t,t===wo.Unknown?"750":"500")};
662
- `,Mu=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?Tr(e,t,"800"):Tr(e,t,"900")+Ld["015"]};
671
- `,Uu=({status:o,icon:n,title:r,description:a})=>{const s=i(),l=n??li(o,s),c=[wo.Default,wo.Info,wo.Disabled,wo.Unknown].includes(o)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Pu,{$status:o,children:[t(Mu,{$status:o,children:t(l,{size:32,fill:c})}),e(Jr,{$gap:2,$justifyContent:"center",children:[t(fn,{size:un.M,weight:500,color:c,nowrap:!0,children:r}),t(fn,{size:un.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Fu=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
- `,zu=["-","N/A","undefined","null","undefined/undefined","null/null"],Bu=({title:o,cells:n})=>{const r=i();return e(Fu,{children:[t(fn,{size:un.XXS,color:r.v2.colors.grey[150],children:o}),t(Yr,{$gap:32,children:n.map((n,r)=>e(Jr,{$gap:2,children:[!n.isLoading||n.value&&!zu.includes(n.value)?t(fn,{size:n.label?un.M:un.L,children:n.value}):t(si,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(fn,{size:un.XXS,children:n.label})]},`${o}-${r}-${n.label}-${n.value}`))})]})},Hu=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
- `,ju=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
- `,Wu=n.div`
731
- display: flex;
732
- align-items: center;
733
- justify-content: center;
734
- cursor: pointer;
735
- `,Gu=({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})=>{const C=i(),x=h===xo.Password,[w,T]=Ft(!1),[O,N]=Ft(null),A=c||!!d||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=id(R,{deps:[m]}),k=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(Jr,{$width:v,$gap:6,children:[t(nu,{label:o,tooltip:r,required:n,badge:a}),t(Hu,{$small:E,$disabled:y,$error:A,$clickable:!!$&&!y,onClick:y?void 0:$,children:e(Sd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(ju,{"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?Di(t):Ri(t),n=null!=S.min?Number(S.min):void 0,r=null!=S.max?Number(S.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,...S,ref:R}),x?t(Wu,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(ru,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},Xu=e=>{const{"data-id":o,options:n,placeholder:r="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ft(""),[d,u]=Ft(!1),p=Ht(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Ht(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=d?l:h,m=Ht(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Bt(()=>{c(""),u(!0)},[]),y=Bt(t=>{c(t.target.value),d||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[d,s,e]),b=Bt(e=>{u(e),e||c("")},[]),v=Bt(t=>{if(s)return void e.onSelect(t);const o=n.find(e=>e.id===t[0]);o&&(e.onSelect(o),c(""),u(!1))},[s,e,n]),E=d&&(i||m.length>0||l.length>0);return t($u,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:pu.Bottom,children:t(Gu,{name:o,leftIcon:$t,placeholder:r,value:g,onChange:y,onFocus:f,disabled:a})})},Vu=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
- `,Ku=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
- `,Yu=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
- `,Ju=({label:o,icon:n,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return e(Vu,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Ku,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(Yu,{$hasIcon:!!n,children:[r?t(si,{withGradient:!0,titleSize:un.S}):t(fn,{variant:dn.Span,align:"center",children:o}),t(At,{rotate:90,size:24})]})]})},qu=({buttons:e})=>t(Jr,{$gap:12,children:e.map((e,o)=>t(Ju,{...e},`${e.label}-${o}`))});var Qu;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Qu||(Qu={}));const Zu=n.div`
774
- display: flex;
775
- align-items: flex-end;
776
- justify-content: space-between;
777
- gap: 24px;
778
- width: fit-content;
779
- `,ep=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
- `,tp=n.svg`
787
- display: block;
788
- width: 100%;
789
- height: auto;
790
- overflow: visible;
791
- `,op=n(Jr)`
792
- position: absolute;
793
- left: 0;
794
- right: 0;
795
- bottom: 4px;
796
- align-items: center;
797
- gap: 2px;
798
- pointer-events: none;
799
- `,np=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
- `,rp=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:""}},ip=(e,t,o,n)=>{const r=n*Math.PI/180;return{x:e+o*Math.cos(r),y:t-o*Math.sin(r)}},ap=(e,t,o,n,r)=>{const i=ip(e,t,o,n),a=ip(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}`},sp=({variant:o=Qu.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=rp(a),{number:g}=rp(s),{number:m,prefix:f,suffix:y}=rp(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,$=v>0?ap(60,60,55,180,E):null,S=v<1?ap(60,60,55,E,0):null,C=ip(60,60,55,180),x=ip(60,60,55,0),w=d??(o===Qu.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(o===Qu.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),A=e=>`${f}${e}${y}`,I=o===Qu.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?c:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return e(Zu,{children:[e(ep,{$width:n,children:[t(Sd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(tp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[$&&t("path",{d:$,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),r&&e(op,{children:[t(fn,{size:un.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(fn,{size:un.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(Jr,{$gap:7,children:[e(Yr,{$gap:8,$alignItems:"center",children:[t(np,{$color:w}),t(fn,{size:un.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(Yr,{$gap:8,$alignItems:"center",children:[t(np,{$color:T}),t(fn,{size:un.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},lp=n(Yr)`
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
- `,cp=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
- `,dp=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
- `,up=n.span`
829
- flex-shrink: 0;
830
- font-size: 14px;
831
- color: #5ffb98; // TODO: add to theme
832
- `,pp=({bgTint:o,label:n,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Jc({onDone:a}),l=jt(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]),e(Jr,{$gap:4,children:[n&&t(fn,{size:un.XXXS,color:pn.Secondary,children:n}),e(lp,{$bgTint:o,children:[e(cp,{$hideCopy:i,children:[t(dp,{ref:l,children:r}),c&&t(up,{children:"..."})]}),!i&&t(s,{value:r,size:Vc.XS})]})]})},hp=n(Yr)`
833
- gap: 0;
834
- `,gp=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
- `,mp=({isPrettyMode:o,setIsPrettyMode:n})=>e(hp,{children:[t(gp,{$position:"left",$selected:o,onClick:()=>n(!0),children:t(It,{})}),t(gp,{$position:"right",$selected:!o,onClick:()=>n(!1),children:t(bt,{})})]}),fp=n.table`
847
- border-collapse: collapse;
848
- font-family: ${({theme:e})=>e.font_family.primary};
849
- `,yp=n.tbody``,bp=n.tr`
850
- td:first-child {
851
- padding-left: 0 !important;
852
- }
853
- td:last-child {
854
- padding-right: 0 !important;
855
- }
856
- `,vp=n.td`
857
- vertical-align: top;
858
- padding: 4px 6px;
859
- `,Ep=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
- `,$p=({language:e,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"===e){const e=In(o,{}),t=Mi(e);c=Ui(r?Vn(t):t)}else c=o;return a&&"json"===e?t(Sp,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:o,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(Ep,{...o({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},Sp=({darkMode:o,str:n})=>{const r=i(),a=(o,n)=>{const i=new Array(o).fill(o=>e(bp,{...o,children:[t(vp,{}),t(vp,{})]}));return t(Ut,{children:i.map((e,o)=>t(e,{style:0===o?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${o}`))})};return t(Jt,{theme:o?qt.palenight:qt.vsLight,language:"json",code:n,children:({getLineProps:o,getTokenProps:n,tokens:i})=>t(fp,{children:t(yp,{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]?e(Ut,{children:[a(2,s),e(bp,{...c,children:[t(vp,{children:t(fn,{nowrap:!0,children:l[0].content})}),t(vp,{})]})]},`line-${s}`):2===l.length?t(bp,{...c,children:l.map((o,i)=>{const{text:a,components:l}=((e,o)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return t(Sd,{withIcon:!0,text:i},`${r}-${i}-${n}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${r}-${i}-${n}`);let e=li(i,o);return e||(e=li(wo.Warning,o)),t(e,{},`${r}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(o.content,r),c=0===i;return t(vp,{children:e(Yr,{children:[t(Yr,{children:l}),t(Ep,{$noWrap:c,...n({token:o}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Cp=n.div`
868
- display: flex;
869
- align-items: ${({$slim:e})=>e?"flex-start":"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
- `,xp=n.div`
884
- display: flex;
885
- align-items: center;
886
- justify-content: center;
887
- align-self: ${({$slim:e})=>e?"flex-start":"auto"};
888
- flex-shrink: 0;
889
- width: ${({$slim:e})=>e?"32px":"42px"};
890
- height: ${({$slim:e})=>e?"32px":"42px"};
891
- border-radius: 11px;
892
- background-color: ${({$backgroundColor:e,$slim:t})=>t?"transparent":e};
893
- ${({$withClick:e})=>e&&r`
894
- cursor: pointer;
895
- & * {
896
- cursor: pointer;
897
- }
898
- &:hover {
899
- transform: scale(1.2);
900
- }
901
- `}
902
- `,wp=n(Jr)`
903
- flex: 1;
904
- align-self: ${({$slim:e})=>e?"flex-start":"center"};
905
- min-width: 0;
906
- `,Tp=n(Jr)`
907
- align-self: stretch;
908
- flex-shrink: 0;
909
- `,Op=n.div`
910
- display: flex;
911
- align-items: center;
912
- justify-content: center;
913
- flex-shrink: 0;
914
- width: 24px;
915
- height: 24px;
916
- `,Np=({status:o,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:c,actionButtons:d,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=i(),v=li(o,b),E=p?u?xt:wt:void 0,$=o===wo.Unknown,S=o===wo.Disabled,C=o===wo.Loading||c,x=[wo.Error,wo.Warning,wo.Success].includes(o),w=Tr(b,o,S?h?"400":"700":$?"600":h?"300":"500"),T=S?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!$?w:T,N=!h||$||S?"rgba(0, 0, 0, 0.13)":Tr(b,o,"800"),A=S?b.v2.colors.grey[900]:h||$?b.v2.colors.silver[800]:w,I=S?b.v2.colors.grey[800]:h||$?b.v2.colors.silver[700]:Tr(b,o,"600");return e(Cp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(xp,{$backgroundColor:N,$slim:y,children:C?t(si,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(wp,{$gap:4,$justifyContent:"center",$slim:y,children:[e(Yr,{$gap:10,$alignItems:"center",children:[t(fn,{size:y?un.XS:un.S,weight:500,color:O,children:n}),l&&t(xd,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:un.XXXS})]}),r&&t(fn,{size:un.XXXS,color:T,children:r}),a]}),(!!d?.length||s)&&e(Tp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(Yr,{$gap:8,children:d.map(e=>t(Nd,{...e,variant:wd.Secondary,size:Td.S},e["data-id"]??e.label))}),s]}),E&&t(Op,{children:t(E,{size:24,fill:T})})]})},Ap=n.div`
917
- display: flex;
918
- flex-direction: column;
919
- width: 100%;
920
- border-radius: 12px;
921
- overflow: hidden;
922
- `,Ip=n.div`
923
- display: flex;
924
- flex-direction: column;
925
- gap: 8px;
926
- padding: 8px 12px 16px 12px;
927
- background-color: ${({theme:e})=>e.v2.colors.silver[900]};
928
- `,_p=n.div`
929
- display: flex;
930
- align-items: center;
931
- gap: 8px;
932
- `,Rp=n.div`
933
- display: flex;
934
- align-items: center;
935
- justify-content: center;
936
- flex-shrink: 0;
937
- width: 18px;
938
- height: 18px;
939
- `,Dp=({conditions:o,title:n,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Ni(o),[o]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>Zn(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?cn(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]),$=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Ap,{children:[t(Np,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&t(Ip,{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:li(c,a),u=o===wo.Error?Tr(a,wo.Error,"500"):o===wo.Warning?Tr(a,wo.Warning,"500"):a.v2.colors.white[500],p=[n,i||r].filter(Boolean).join(" - ");return e(_p,{children:[t(Rp,{children:l||!d?t(si,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(fn,{size:un.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},kp=n.div`
940
- width: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Vertical?`${t}px`:o||"100%"};
941
- height: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Horizontal?`${t}px`:o||"100%"};
942
- margin: ${({$orientation:e,$margin:t})=>t||(e===ho.Horizontal?"8px 0":"0 8px")};
943
- background-color: ${({$type:e,theme:t})=>(e?Tr(t,e):t.v2.colors.grey[400])+Ld["050"]};
944
- opacity: ${({$opacity:e})=>e||1};
945
- `,Lp=({orientation:e=ho.Horizontal,type:o,thickness:n=1,length:r,margin:i,opacity:a})=>t(kp,{$orientation:e,$type:o,$thickness:n,$length:r,$margin:i,$opacity:a});var Pp,Mp,Up;(e=>{e.Default="default",e.SuccessError="successError"})(Pp||(Pp={})),(e=>{e.S="small",e.L="large"})(Mp||(Mp={})),(e=>{e.Left="left",e.Right="right"})(Up||(Up={}));const Fp=n.div`
946
- display: flex;
947
- align-items: center;
948
- gap: ${({$gap:e})=>e}px;
949
- `,zp=n.div`
950
- position: relative;
951
- display: flex;
952
- align-items: center;
953
- justify-content: space-between;
954
- box-sizing: content-box;
955
-
956
- width: ${({$size:e})=>2*e+2}px;
957
- height: ${({$size:e})=>e}px;
958
- padding: ${4}px;
959
- border-radius: ${({$size:e})=>2*e}px;
960
- 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 Pp.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Pp.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
961
-
962
- border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
963
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
964
- `,Bp=n.div`
965
- position: absolute;
966
- top: 50%;
967
- left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
968
- transform: translateY(-50%);
969
- width: ${({$size:e})=>e}px;
970
- height: ${({$size:e})=>e}px;
971
- border-radius: 100%;
972
- background-color: ${({$color:e})=>e};
973
- 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)"};
974
- `,Hp=({variant:n=Pp.Default,size:r=Mp.L,name:a,label:s,labelAlign:l=Up.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=St,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:$,helpMessage:S})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=r===Mp.S?10:16,T=c||C.v2.colors.silver[200],O=r===Mp.S?un.XXXS:un.XS,N=r===Mp.S?8:12;return e(Jr,{$gap:4,children:[e(Yr,{$justifyContent:"space-between",children:[e(Fp,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Up.Left&&t(fn,{color:T,size:O,nowrap:!0,children:s}),e(zp,{$onBgColor:b,$offBgColor:v,$variant:n,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Bp,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(o,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Up.Right&&t(fn,{color:T,size:O,nowrap:!0,children:s})]}),t(nu,{tooltip:d,badge:u})]}),t(ru,{errorMessage:E,warnMessage:$,helpMessage:S})]})},jp=n.div`
975
- display: flex;
976
- flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
977
- gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
978
- `,Wp=({direction:o=ho.Vertical,title:n,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===Mp.S?un.XS:un.S;return e(jp,{$direction:o,children:[n&&t(fn,{size:c,children:n}),a.map(e=>t(Hp,{...e,labelAlign:Up.Right,value:s[e.id],onChange:t=>{return o=e.id,n=t,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-${e.id}`))]})},Gp=n.div`
979
- display: flex;
980
- align-items: center;
981
- justify-content: space-between;
982
- width: 100%;
983
- overflow: hidden;
984
- `,Xp=n.div`
985
- display: flex;
986
- align-items: center;
987
- gap: 16px;
988
- padding: 6px 0;
989
- min-width: 0;
990
- flex: 1;
991
- overflow: hidden;
992
- `,Vp=n.div`
993
- display: flex;
994
- align-items: center;
995
- justify-content: center;
996
- flex: 0 0 36px;
997
- width: 36px;
998
- height: 36px;
999
- border-radius: 8px;
1000
- background: ${({theme:e})=>e.v2.colors.silver[800]};
1001
- `,Kp=n.img`
1002
- width: 24px;
1003
- height: 24px;
1004
- `,Yp=n.div`
1005
- display: flex;
1006
- align-items: center;
1007
- gap: 16px;
1008
- flex-shrink: 0;
1009
- `,Jp=({icon:o,iconSrc:n,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(Gp,{children:[e(Xp,{children:[o?t(Vp,{children:t(o,{size:24})}):n?t(Vp,{children:t(Kp,{src:n,alt:r||"icon"})}):null,(r||i?.length||a)&&e(Jr,{$gap:6,children:[(r||i?.length)&&e(Yr,{$gap:16,children:[r&&t(fn,{size:un.S,weight:500,children:r}),i?.length&&t(Yr,{$gap:4,children:i?.map((e,o)=>t(xd,{...e},`${e.label}-${o}`))})]}),a&&t(fn,{size:un.XXS,children:a})]})]}),e(Yp,{children:[s&&t(Hp,{...s}),l?.length?t($u,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(Yc,{"data-id":"drawer-close",icon:St,size:Vc.M,onClick:c,disabled:d})]})]}),qp=n.div`
1010
- position: relative;
1011
- &.animated {
1012
- overflow: hidden;
1013
- padding-bottom: 1px;
1014
- border-radius: 8px;
1015
- animation: ${({$isLeaving:e})=>e?Md.out.bottom:Md.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1016
- }
1017
- `,Qp=n.div`
1018
- position: absolute;
1019
- bottom: -1px;
1020
- left: 0;
1021
- z-index: -1;
1022
- width: 100%;
1023
- height: 100%;
1024
- border-radius: 8px;
1025
- background-color: ${({theme:e,$status:t})=>Tr(e,t,t===wo.Default?"300":t===wo.Info?"400":"500")};
1026
- animation: ${Ud.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1027
- `,Zp=n.div`
1028
- display: flex;
1029
- align-items: center;
1030
- gap: 10px;
1031
- ${({$fullWidth:e})=>e&&r`
1032
- width: 100%;
1033
- `}
1034
- padding: 8px 12px 8px 8px;
1035
- border-radius: 8px;
1036
- background-color: ${({theme:e,$status:t})=>Tr(e,t,[wo.Info,wo.Warning].includes(t)?"1000":"900")};
1037
- `,eh=n.div`
1038
- width: ${({$smallIcon:e})=>e?"24px":"32px"};
1039
- height: ${({$smallIcon:e})=>e?"24px":"32px"};
1040
- display: flex;
1041
- align-items: center;
1042
- justify-content: center;
1043
- border-radius: 6px;
1044
- background-color: ${({theme:e,$status:t})=>Tr(e,t,[wo.Info].includes(t)?"900":"800")};
1045
- `,th=n.div`
1046
- margin-left: auto;
1047
- display: flex;
1048
- align-items: center;
1049
- gap: 4px;
1050
- `,oh=n.div`
1051
- margin-right: 8px;
1052
- cursor: pointer;
1053
- &:hover {
1054
- transform: scale(1.2);
1055
- }
1056
- `,nh=({status:o,message:n,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=li(o,u),h=Tr(u,o,o===wo.Default?"300":o===wo.Info?"400":"500"),[g,m]=Ft(!1),f=jt(null),y=jt(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]),e(qp,{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:[e(Zp,{$status:o,$fullWidth:a,children:[t("div",{children:t(eh,{$status:o,$smallIcon:s,children:t(p,{size:s?18:24})})}),t(fn,{color:h,size:un.XXXS,weight:400,children:n}),(r||l)&&e(th,{children:[r&&t(oh,{"data-id":r["data-id"],onClick:r.onClick,children:t(fn,{color:h,size:un.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&t(Yc,{"data-id":"note-close",icon:St,size:Vc.XS,onClick:()=>E({asSeen:!0})})]})]}),l&&t(Qp,{ref:y,$status:o,$duration:c})]})},rh=n.div`
1057
- display: flex;
1058
- align-items: center;
1059
- gap: 8px;
1060
- padding: 4px 12px;
1061
- `,ih=n.div`
1062
- flex: 1;
1063
- `,ah=n.div`
1064
- min-width: 150px;
1065
- width: fit-content;
1066
- `,sh=({note:o,actions:n,children:r})=>r?t(rh,{children:r}):e(rh,{children:[o&&t(nh,{...o}),t(ih,{}),n?.map((e,o)=>t(ah,{children:t(Nd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${o}`))]}),lh=n.div`
1067
- position: fixed;
1068
- top: 0;
1069
- bottom: 0;
1070
- ${({$position:e})=>e}: 0;
1071
- z-index: ${({theme:e})=>e.v2.zIndex.drawer};
1072
-
1073
- display: flex;
1074
- flex-direction: column;
1075
- gap: 12px;
1076
-
1077
- width: ${({$width:e})=>e};
1078
- min-width: ${({$minWidth:e})=>e||"unset"};
1079
- padding: 12px;
1080
- border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
1081
- background: ${({theme:e})=>e.v2.colors.black[500]};
1082
- box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1083
- overflow: hidden;
1084
-
1085
- ${({$disableAnimation:e,$position:t})=>!e&&r`
1086
- animation-name: ${Md.in[t]};
1087
- `}
1088
- `,ch=n.div`
1089
- display: flex;
1090
- flex-direction: column;
1091
- gap: 12px;
1092
-
1093
- height: calc(100% - ${56}px);
1094
- overflow-y: auto;
1095
- `,dh=({isOpen:n,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Gc(n),n?Yt(e(o,{children:[!r&&t(Zr,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(lh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(Jp,{...c}),t(ch,{children:u}),d&&t(sh,{...d})]})]}),document.body):null),uh=({options:e,values:o,setValues:n,withMultiSelect:r,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>o.includes(e.id)),[e,o]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t($u,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:uu.Left,items:e,selectedIds:o,setSelectedIds:n,children:({ChevronIcon:e,handleClick:o})=>t(Gu,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:o,readOnly:!0,tabIndex:-1})})},ph=({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 e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:o?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:o?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(Nd,{variant:wd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},hh=({children:e})=>t(eo,{FallbackComponent:({error:e,...o})=>t(kd,{children:t(ph,{...o,error:e})}),children:e}),gh=n.header`
1096
- position: relative;
1097
- width: 100%;
1098
- padding: 12px 18px;
1099
- background-color: ${({theme:e})=>e.v2.colors.black[500]};
1100
- display: flex;
1101
- align-items: center;
1102
- justify-content: space-between;
1103
- `,mh=n(Yr)`
1104
- position: absolute;
1105
- left: 50%;
1106
- transform: translateX(-50%);
1107
- gap: 16px;
1108
- `,fh=({left:o=[],center:n=[],right:r=[]})=>e(gh,{children:[t(Yr,{$gap:16,children:o}),t(mh,{children:n}),t(Yr,{$gap:16,children:r})]}),yh=n.div`
1109
- display: flex;
1110
- align-items: center;
1111
- gap: 2px;
1112
- width: fit-content;
1113
- padding: 4px;
1114
- border-radius: 8px;
1115
- background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1116
- box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
1117
-
1118
- position: absolute;
1119
- right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
1120
- left: ${({$left:e})=>e||"unset"};
1121
- top: 50%;
1122
- transform: translateY(-50%);
1123
- `,bh=({isOpen:e,actions:o,positionRight:n,positionLeft:r})=>e?t(yh,{$right:n,$left:r,children:o.map(e=>{if(!e)return null;const{tooltip:o,...n}=e;return t(Sd,{text:o||"",children:t(Nd,{...n,variant:wd.Secondary,size:Td.S})},n.id)})}):null,vh=n.div`
1124
- display: flex;
1125
- align-items: center;
1126
- justify-content: center;
1127
- width: ${({$size:e,$padding:t})=>e+t}px;
1128
- height: ${({$size:e,$padding:t})=>e+t}px;
1129
- aspect-ratio: 1 / 1;
1130
- border-radius: 8px;
1131
- background-color: ${({theme:e,$noBackground:t,$status:o})=>t?"transparent":o?Tr(e,o,o===wo.Warning?"1000":"900"):e.v2.colors.silver[800]};
1132
- `,Eh=({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=vr(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 t("div",{style:{width:"fit-content"},children:t(vh,{$size:s,$padding:l,$status:a,children:e(Jr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Yr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,o)=>t(e,{size:d},`top-${o}`))}),u&&e(Yr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,o)=>t(e,{size:d},`bottom-${o}`)),r>0&&t(fn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=o?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(vh,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},$h=n.div`
1133
- width: 100%;
1134
- border-radius: 8px;
1135
- padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
1136
- background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
1137
- `,Sh=({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 t($h,{$plain:m,children:e(Jr,{"data-id":r,$gap:6,children:[t(nu,{label:a,tooltip:s,required:c,badge:l}),t(Jr,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return e(Yr,{$gap:8,$alignItems:"center",children:[t(Gu,{width:"100%",autoFocus:$i(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&&t(Nd,{leftIcon:_t,variant:wd.Secondary,size:Td.S,disabled:b,onClick:()=>(()=>{const e=o.length?Fn(o):[Fn("")];e.push(""),n(e)})()}),t(Nd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:wd.Secondary,size:Td.S,disabled:v,onClick:()=>(e=>{const t=[...o||[]].filter((t,o)=>o!==e);t.length||t.push(""),n(t)})(i)})]},`input-list-${i}`)})}),t(ru,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var Ch;(e=>{e.S="small",e.L="large"})(Ch||(Ch={}));const xh=n.div`
1138
- width: fit-content;
1139
- display: flex;
1140
- align-items: center;
1141
- gap: 8px;
1142
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1143
- `,wh=n.div`
1144
- width: ${({$size:e})=>e===Ch.S?"16px":"20px"};
1145
- height: ${({$size:e})=>e===Ch.S?"16px":"20px"};
1146
- display: flex;
1147
- align-items: center;
1148
- justify-content: center;
1149
- border-radius: 100%;
1150
- border: 1px solid ${({$borderColor:e})=>e};
1151
- background-color: ${({$backgroundColor:e})=>e};
1152
- `,Th=({"data-id":o,label:n,value:r,onChange:a,disabled:s,size:l=Ch.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===Ch.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 e(xh,{"data-id":o??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(wh,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Dt,{size:h,fill:g}):null}),n&&t(fn,{size:l===Ch.S?un.XXS:un.XS,children:n})]})},Oh=n.div`
1153
- display: flex;
1154
- flex-direction: ${({$flexDirection:e})=>e};
1155
- gap: ${({$gap:e})=>e}px;
1156
- `,Nh=({label:o,direction:n,disabled:r,size:i,options:a,values:s,setValues:l})=>e(Oh,{$flexDirection:n===ho.Horizontal?"row":"column",$gap:n===ho.Horizontal?16:8,children:[o&&t(fn,{children:o}),a.map(e=>t(Th,{...e,value:s[e.id],onChange:t=>{return o=e.id,n=t,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-${e.id}`))]}),Ah=({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:$}=o,S=r[p];if(b&&!b(r))return null;const C=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",o=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(Nh,{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 Co.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,o=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=y?.filter(e=>o.includes(e.id)).map(e=>e.id)||[];return t(uh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===n&&$i(S),d=t(Gu,{name:p,label:C,placeholder:x,autoFocus:r,type:g,min:E,max:$,value:S,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:o.withRegexTester?"100%":void 0});return o.withRegexTester?e(Yr,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(Nd,{variant:wd.Secondary,size:Td.S,label:"Test",disabled:c||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):d}},Ih=n.div`
1157
- width: 100%;
1158
- background: ${({theme:e})=>e.v2.colors.silver[800]};
1159
- border-radius: 8px;
1160
- padding: 8px;
1161
- display: flex;
1162
- flex-direction: column;
1163
- gap: 8px;
1164
- `,_h=n.div`
1165
- flex: 1;
1166
- min-width: 0;
1167
- `,Rh=n.div`
1168
- padding-top: 24px;
1169
- `,Dh=({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)],$=(f?E[0]?.[f]:"")||v,S=(e,t,o)=>{r(E.map((n,r)=>r===e?{...n,[t]:o}:n))},C=()=>r([...E,b($)]),x=y.find(e=>e.id===$);return e(Jr,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(nu,{label:s,tooltip:l,required:c}),m&&t(Yd,{"data-id":`${a}-mode`,size:jd.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:$,setSelected:e=>!d&&(e=>r([b(e)]))(String(e))}),e(Jr,{$gap:8,$width:"100%",children:[E.map((n,i)=>{const s=i===E.length-1,l=f?{...n,[f]:$}: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 e(Ih,{"data-id":`${a}-card-${i}`,children:[e(Yr,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Jr,{$gap:10,children:[T&&t(nu,{label:T}),m.map(e=>t(Yr,{$gap:24,children:(e.options??[]).map(o=>t(Th,{size:Ch.L,label:o.label,value:String(n[e.keyName]??"")===String(o.id),disabled:d,onChange:t=>t&&S(i,e.keyName,o.id)},`${a}-card-${i}-${e.keyName}-${o.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(Yr,{$gap:4,$alignItems:"center",children:[v&&t(Nd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:wd.Secondary,size:Td.S,disabled:d||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(Nd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:wd.Secondary,size:Td.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,o)=>o!==e);r(t.length?t:[b($)])})(i)}),s&&t(Nd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:wd.Secondary,size:Td.S,disabled:d,onClick:C})]})]}),w.map((o,r)=>t(Yr,{$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 e(Ut,{children:["arrow"===o.separator&&r>0&&t(Rh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(_h,{children:t(Gu,{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=>S(i,o.keyName,e.target.value)})})]},`${a}-card-${i}-${o.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),t(ru,{errorMessage:u})]})]})},kh=n.div`
1170
- width: 100%;
1171
- background: ${({theme:e})=>e.v2.colors.silver[800]};
1172
- border-radius: 8px;
1173
- padding: 4px 8px;
1174
- `,Lh=n.table`
1175
- width: 100%;
1176
- border-collapse: separate;
1177
- border-spacing: 0 8px;
1178
- `,Ph=n.td`
1179
- padding: 0 8px 0 0;
1180
- vertical-align: top;
1181
- `,Mh=n.td`
1182
- width: 72px;
1183
- vertical-align: ${({$center:e})=>e?"middle":"top"};
1184
- padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1185
- `,Uh=({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?Fn(n):[Fn(b)];i[o][e]=t,r(i)},E=n.length?n:[b];return t(kh,{children:e(Jr,{"data-id":a,$gap:0,children:[t(nu,{label:s,tooltip:l,required:d,badge:c}),t(Lh,{children:t("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 e(Ut,{children:[l.length>1&&a>0?t("tr",{children:t(Ph,{colSpan:d+1})}):null,l.map((o,l)=>{const g=c[l],m=g?22:0;return e("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 t(Ph,{colSpan:c>1?c:void 0,children:e(Jr,{$gap:6,children:[g&&(n.label?t(nu,{label:n.label,tooltip:n.tooltip}):t(nu,{label:"\\u00A0"})),t(Ah,{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&&t(Mh,{$topOffset:m,$center:h,children:e(Yr,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Nd,{leftIcon:_t,variant:wd.Secondary,size:Td.S,disabled:u,onClick:()=>(()=>{const e=n.length?Fn(n):[Fn(b)];e.push(Fn(b)),r(e)})()}),t(Nd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:wd.Secondary,size:Td.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,o)=>o!==e);t.length||t.push(Fn(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),t(ru,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Fh=n.div`
1186
- display: flex;
1187
- align-items: center;
1188
- justify-content: space-between;
1189
- gap: 32px;
1190
-
1191
- padding: 18px 16px;
1192
- border-radius: 18px;
1193
- background-color: ${({theme:e})=>e.v2.colors.black[500]+Ld["095"]};
1194
- box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
1195
-
1196
- position: fixed;
1197
- bottom: 0;
1198
- left: 50%;
1199
- z-index: ${({theme:e})=>e.v2.zIndex.island};
1200
- animation-name: ${Md.in.center};
1201
- `,zh=({isOpen:o,onClose:n,richTitle:r,actions:i})=>o?e(Fh,{children:[t(wu,{...r}),t(Cu,{onAnyClick:n,actions:i})]}):null,Bh=n.div`
1202
- position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1203
- top: 50%;
1204
- left: 50%;
1205
- transform: translate(-50%, -50%);
1206
- // Match Overlay: page-scoped modals stay below the sidebar; full-screen modals
1207
- // portal above it. See theme.v2.zIndex for the full stacking scale.
1208
- z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
1209
- width: fit-content;
1210
- border-radius: 20px;
1211
- background: ${({theme:e})=>e.v2.colors.black[500]};
1212
- box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1213
- overflow: hidden;
1214
-
1215
- /* Promote to its own composited layer and isolate paint/layout so descendant
1216
- re-renders during the slide animation can't trigger reflows of the rest of
1217
- the page. Without this, the global \`* { transition: all 300ms }\` rule plus
1218
- a heavy modal body (forms, etc.) make the close visibly stutter. */
1219
- will-change: transform;
1220
- contain: layout paint;
1221
-
1222
- animation-name: ${({$closing:e})=>e?Md.out.center:Md.in.center};
1223
- /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1224
- the global 300ms default which pairs with the fade-in for a soft entrance. */
1225
- animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1226
- animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
1227
-
1228
- /* Block hover/click work on form children mid-close so their transitions
1229
- don't compete with the slide-out. */
1230
- ${({$closing:e})=>e&&"pointer-events: none;"}
1231
- `,Hh=n(Zr)`
1232
- will-change: opacity;
1233
- animation-name: ${({$closing:e})=>e?Bd.out:Bd.in};
1234
- animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1235
-
1236
- /* The blurred backdrop is the most expensive thing on screen during the close
1237
- — animating opacity on a backdrop-filtered element forces a full GPU
1238
- recomposite per frame. Drop the blur while closing; visually identical
1239
- because the overlay is fading to 0. */
1240
- ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1241
- `,jh=n.div`
1242
- position: relative;
1243
- `,Wh=n.div`
1244
- position: absolute;
1245
- top: 16px;
1246
- left: 16px;
1247
- `,Gh=({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]),Gc(d),!d)return null;const g=e(o,{children:[!r&&t(Hh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Bh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(jh,{children:[a&&t(Wh,{children:t(Yc,{icon:e=>t(At,{rotate:-90,...e}),size:Vc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Xh=n.div`
1248
- position: relative;
1249
- width: ${64}px;
1250
- height: ${({$height:e})=>e};
1251
- flex-shrink: 0;
1252
- `,Vh=n.aside`
1253
- position: absolute;
1254
- top: 0;
1255
- left: 0;
1256
- bottom: 0;
1257
- display: flex;
1258
- flex-direction: column;
1259
- gap: 8px;
1260
- width: ${({$expanded:e})=>e?"220px":"64px"};
1261
- padding: 16px ${12}px;
1262
- box-sizing: border-box;
1263
- background-color: ${({theme:e})=>e.v2.colors.black[500]};
1264
- overflow-x: hidden;
1265
- overflow-y: auto;
1266
- // Above page-scoped overlays (upgrade-required) so expanded labels stay visible;
1267
- // below full-screen modals/drawers that portal to document.body.
1268
- z-index: ${({theme:e})=>e.v2.zIndex.sidebar};
1269
- transition:
1270
- width 200ms ease,
1271
- padding 200ms ease;
1272
- `,Kh=n.button`
1273
- display: flex;
1274
- align-items: center;
1275
- width: 100%;
1276
- min-width: 0;
1277
- height: ${40}px;
1278
- padding: 0;
1279
- margin: 0;
1280
- border: none;
1281
- border-radius: 6px;
1282
- box-sizing: border-box;
1283
- cursor: pointer;
1284
- font: inherit;
1285
- background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
1286
- &:hover {
1287
- background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
1288
- }
1289
- &:active {
1290
- background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1291
- }
1292
- `,Yh=n.div`
1293
- width: ${40}px;
1294
- height: ${40}px;
1295
- display: flex;
1296
- align-items: center;
1297
- justify-content: center;
1298
- flex-shrink: 0;
1299
- `,Jh=n.div`
1300
- flex: 1 1 0;
1301
- min-width: 0;
1302
- overflow: hidden;
1303
- padding-right: 12px;
1304
- pointer-events: none;
1305
- `,qh=({height:o,icons:n})=>{const r=i(),[a,s]=Ft(!1);return t(Xh,{$height:o,children:t(Vh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:o,label:n,selected:i,icon:s,onClick:l})=>e(Kh,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Yh,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(Jh,{children:t(fn,{size:un.S,weight:500,color:pn.Primary,nowrap:!0,children:n})})]},o))})})},Qh=n.div`
1306
- display: flex;
1307
- flex-direction: column;
1308
- gap: 16px;
1309
- width: 100%;
1310
- padding: 16px;
1311
- border-radius: 16px;
1312
- border: 2px solid transparent;
1313
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1314
- transition:
1315
- background-color 0.15s ease,
1316
- border-color 0.15s ease;
1317
-
1318
- ${({$selected:e,$disabled:t,theme:o})=>e?r`
1319
- background-color: ${o.v2.colors.purple[900]};
1320
- border-color: ${o.v2.colors.purple[500]};
1321
- `:r`
1322
- background-color: ${o.v2.colors.silver[800]};
1323
- ${!t&&r`
1324
- &:hover {
1325
- background-color: ${o.v2.colors.silver[700]};
1326
- }
1327
- `}
1328
- `}
1329
- `,Zh=n.div`
1330
- display: flex;
1331
- align-items: center;
1332
- gap: 16px;
1333
- width: 100%;
1334
- `,eg=n.div`
1335
- display: flex;
1336
- flex-direction: column;
1337
- gap: 4px;
1338
- flex: 1;
1339
- min-width: 0;
1340
- `,tg=n.div`
1341
- width: 100%;
1342
- `,og=({"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 e(Qh,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(Zh,{children:[t(Th,{"data-id":`${p}-radio`,value:l,onChange:h,size:Ch.L,disabled:d}),e(eg,{children:[t(fn,{size:un.S,weight:500,lineHeight:"24px",color:pn.Primary,children:n}),r&&t(fn,{size:un.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:pn.Secondary,children:r})]})]}),a&&t(tg,{children:a}),s&&t(tg,{children:s})]})},ng=n.div`
1343
- width: 100%;
1344
- height: 100%;
1345
-
1346
- * {
1347
- animation: none !important;
1348
- transition: none !important;
1349
- }
1350
- `,rg=({width:e="100%",height:o="100%",gap:n=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ht(()=>n?r.map((e,o)=>t("div",{style:{paddingBottom:n},children:e},`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=t(to,{ref:c,style:{width:e,height:o},onScroll:a?u:void 0,children:d});return i?t(ng,{children:p}):p},ig=n.div`
1351
- display: flex;
1352
- flex-direction: column;
1353
- gap: 16px;
1354
- padding: 8px;
1355
- ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1356
- ${({$maxHeight:e})=>e&&`max-height: ${e};`}
1357
- width: 100%;
1358
- height: 100%;
1359
- `,ag=n.div`
1360
- display: flex;
1361
- align-items: center;
1362
- gap: 16px;
1363
- `,sg=n.div`
1364
- width: 50px;
1365
- height: 50px;
1366
- border-radius: 8px;
1367
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1368
- background-size: 200% 100%;
1369
- animation: ${zd} 10s infinite linear;
1370
- `,lg=n(Jr)`
1371
- flex: 1;
1372
- gap: 12px;
1373
- `,cg=n.div`
1374
- width: ${({$width:e})=>e};
1375
- height: 16px;
1376
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1377
- background-size: 200% 100%;
1378
- animation: ${zd} 1.5s infinite linear;
1379
- border-radius: 4px;
1380
- `,dg=({size:o=5,maxWidth:n,maxHeight:r})=>t(ig,{$maxWidth:n,$maxHeight:r,children:[...Array(o)].map((o,n)=>e(ag,{children:[t(sg,{}),e(lg,{children:[t(cg,{$width:"80%"}),t(cg,{$width:"100%"})]})]},n))}),ug=({currentStep:o,data:n,gap:r=12})=>t(Jr,{$gap:r,children:n.map(n=>{const r=n.step<o,i=n.step===o;return e(Yr,{$gap:8,children:[r||n.forceDoneBadge?t(xd,{status:wo.Success,label:"",leftIcon:vt}):t(xd,{status:wo.Default,label:n.step.toString()}),t(fn,{size:i?un.M:un.XS,weight:i?500:400,opacity:i?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var pg;(e=>{e.Data="data",e.Pretty="pretty"})(pg||(pg={}));const hg=n.div`
1381
- ${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
1382
- width: 100%;
1383
- display: flex;
1384
- flex-direction: column;
1385
- overflow: hidden;
1386
- `,gg=n.div`
1387
- width: 100%;
1388
- flex: 1;
1389
- display: flex;
1390
- flex-direction: column;
1391
- `,mg=n.div`
1392
- flex-shrink: 0;
1393
- position: relative;
1394
- z-index: 2;
1395
- `,fg=n.div`
1396
- position: relative;
1397
- display: flex;
1398
- width: 100%;
1399
- `,yg=n.div`
1400
- position: relative;
1401
- min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1402
- flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
1403
-
1404
- /* See the matching rule on Td below for the full explanation. The header
1405
- * needs the same flex-grow override so its column shares any empty row
1406
- * width even when the caller wrote 'flex: 0 0 Xpx'. */
1407
- ${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
1408
- flex-grow: 1;
1409
- `}
1410
-
1411
- padding: 18px 24px;
1412
- border: none;
1413
- border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
1414
- box-sizing: border-box;
1415
-
1416
- ${({$variant:e,$backgroundColor:t})=>{if(t)return r`
1417
- background-color: ${t};
1418
- `;switch(e){case pg.Data:return r`
1419
- background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1420
- `;case pg.Pretty:return r`
1421
- background-color: transparent;
1422
- `;default:return""}}}
1423
- `,bg=n.div`
1424
- position: absolute;
1425
- top: 50%;
1426
- right: 0;
1427
- transform: translateY(-50%);
1428
- width: 1px;
1429
- height: 18px;
1430
- background: ${({theme:e})=>e.v2.colors.silver[500]};
1431
- `,vg=n.div`
1432
- min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1433
- flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
1434
-
1435
- /* Always let text columns grow into empty row space, even when the caller
1436
- * wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
1437
- * 'flex' shorthand above sets all three flex sub-properties from the
1438
- * caller's value; this longhand 'flex-grow: 1' is declared after it so it
1439
- * wins and the column still consumes any leftover width.
1440
- *
1441
- * Without this, a column pinned with 'flex: 0 0 160px' stays at 160px even
1442
- * when the row has hundreds of pixels of empty space — and the text inside
1443
- * gets ellipsised (or in extreme cases clipped without indication) when it
1444
- * could comfortably fit a few more pixels. Combined with the cell's
1445
- * 'overflow: hidden', a column that's STILL too narrow after consuming all
1446
- * available space then truncates cleanly via TruncatableTypography's
1447
- * ellipsis + tooltip.
1448
- *
1449
- * Component (auto-width) columns and JS-measured columns
1450
- * ('resolvedColumnWidths') keep their exact pixel width — they're already
1451
- * sized to fit their content and shouldn't steal leftover space from text
1452
- * columns. The withCheckboxes column passes 'flex' via an inline style,
1453
- * which takes precedence over class styles, so it stays pinned too. */
1454
- ${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
1455
- flex-grow: 1;
1456
- `}
1457
-
1458
- overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
1459
- display: flex;
1460
- align-items: center;
1461
-
1462
- padding: 18px 24px;
1463
- cursor: ${({$withClick:e})=>e?"pointer":"default"};
1464
- box-sizing: border-box;
1465
-
1466
- ${({$variant:e,$selected:t,$highlighted:o,$hovered:n,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case pg.Data:return r`
1467
- border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
1468
- border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
1469
- background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1470
- `;case pg.Pretty:return r`
1471
- border: none;
1472
- border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
1473
- background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1474
- `;default:return""}}}
1475
- `,Eg=n.div`
1476
- position: absolute;
1477
- top: 0;
1478
- left: 0;
1479
- visibility: hidden;
1480
- pointer-events: none;
1481
- height: 0;
1482
- overflow: hidden;
1483
- white-space: nowrap;
1484
- `,$g=n.div`
1485
- display: inline-flex;
1486
- align-items: center;
1487
- padding: 18px 24px;
1488
- box-sizing: border-box;
1489
- white-space: nowrap;
1490
- `,Sg=n.div`
1491
- display: inline-flex;
1492
- align-items: center;
1493
- gap: 4px;
1494
- white-space: nowrap;
1495
- `,Cg=n.div`
1496
- width: 100%;
1497
- height: 100%;
1498
- display: flex;
1499
- align-items: center;
1500
- justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
1501
- gap: 4px;
1502
- text-align: ${({$textAlign:e})=>e||"left"};
1503
- `,xg=({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:$,checkboxDisabled:S,checkboxTooltip:C}=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 e(fg,{children:[d&&t(vg,{$variant:o,style:{flex:"0 0 68px"},...O(!0,!1),children:!$&&(C?t(Sd,{text:C,children:t(lu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()})}):t(lu,{value:b,disabled:S,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),$="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?t(y.component,{}):s?t(fn,{size:un.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(Tu,{size:un.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(Yr,{$width:"100%",$justifyContent:$,children:S});return e(vg,{$variant:o,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?t(Sd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(bh,{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 t(rg,{gap:o===pg.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},wg=({columnKey:e,sortDirection:o,sortByKey:n,onSort:r})=>{const a=i(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=o===go.Ascending?0:180;return t(Nd,{variant:wd.Text,size:Td.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},Tg=({columnKey:e,filters:o,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=o[e]?.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(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t($u,{items:c,withMultiSelect:!0,selectedIds:o[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Og=({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})=>e(fg,{children:[h&&t(yg,{$variant:o,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(lu,{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:$,minWidth:S,textAlign:C},x)=>{const w=0===x&&!h,T=x===r.length-1,O=!(!y&&!f),N=O?t(fn,{size:un.XS,align:C,nowrap:!0,children:m}):t(Tu,{size:un.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(yg,{$variant:o,$backgroundColor:n,$flex:$,$minWidth:S,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Cg,{$textAlign:C,children:[O?t(Sd,{text:y||m,children:N}):N,!b&&t(wg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(Tg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&o===pg.Data&&t(bg,{})]},`column-${g}`)})]}),Ng=()=>{},Ag={},Ig=[],_g=({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,$]=Ft(""),[S,C]=Ft({}),x=g??S,w=Bt(e=>{$(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&&C(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:A,allSelected:I}=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=jt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(o=>{const n=[e(Sg,{children:[t(fn,{size:un.XS,align:o.textAlign,children:o.label}),!o.noSort&&t(wg,{columnKey:o.key,sortDirection:go.Ascending,sortByKey:"",onSort:Ng}),!o.noFilter&&t(Tg,{columnKey:o.key,filters:Ag,onFilter:Ng,rowsUnfiltered:Ig,filterOverride:o.filterOverride})]},`mw-${o.key}-header`)];return c.forEach((e,r)=>{const i=e.cells.find(e=>e.key===o.key);i&&n.push(i.component?t(i.component,{},`mw-${o.key}-${r}`):t(fn,{size:un.XS,children:i.rawValue||"-"},`mw-${o.key}-${r}`))}),{key:o.key,nodes:n}}),[l,c,_]);return Wt(()=>{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,_]),e(hg,{$maxHeight:n,children:[L.length>0&&t(Eg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:o})=>o.map((o,n)=>t($g,{"data-mw-key":e,children:o},`mw-${e}-${n}`)))}),e(gg,{$variant:o,children:[!i&&t(mg,{children:t(Og,{variant:o,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:A,allSelected:I,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?t(xg,{variant:o,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(qr,{$height:n,children:a?t(dg,{size:3,maxHeight:n}):t(eu,{...s})})]})]})};var Rg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Rg||(Rg={}));const Dg=(e,t,o)=>{switch(t){case Rg.Purple:return e.v2.colors.purple[o?"300":"900"];case Rg.Yellow:return e.v2.colors.yellow[o?"300":"1000"];case Rg.Blue:return e.v2.colors.blue[o?"300":"1000"];case Rg.Pink:return e.v2.colors.red[o?"300":"1000"];case Rg.Green:return e.v2.colors.green[o?"300":"900"];case Rg.Loader:return e.v2.colors.grey[o?"600":"800"];default:return e.v2.colors.grey[o?"300":"500"]}},kg=n.div`
1504
- display: flex;
1505
- align-items: center;
1506
- justify-content: center;
1507
- gap: 8px;
1508
- padding: 4px 8px;
1509
- border-radius: 6px;
1510
- border: 1px solid transparent;
1511
-
1512
- ${({$flex:e})=>e?r`
1513
- flex: ${e};
1514
- `:r`
1515
- width: fit-content;
1516
- `}
1517
-
1518
- ${({$disabled:e,$variant:t,$withClick:o})=>e?r`
1519
- background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1520
- cursor: not-allowed;
1521
- `:r`
1522
- background-color: ${({theme:e})=>Dg(e,t)};
1523
- ${o&&r`
1524
- cursor: pointer;
1525
- &:hover,
1526
- &:active {
1527
- border: 1px solid ${({theme:e})=>Dg(e,t,!0)};
1528
- }
1529
- `}
1530
- `}
1531
- `,Lg=({variant:o=Rg.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:o===Rg.Default?d.v2.colors.white[500]:Dg(d,o,!0),p=o===Rg.Loader;return e(kg,{$variant:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&t(r,{fill:u,size:16}),p?t(si,{withGradient:!0,title:n,titleSize:un.XXS}):t(fn,{color:u,size:un.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},Pg=n.div`
1532
- padding: 6px 12px;
1533
-
1534
- display: flex;
1535
- align-self: stretch;
1536
- align-items: flex-start;
1537
- gap: 8px;
1538
- border-radius: 6px;
1539
-
1540
- 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]};
1541
- background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1542
- ${({$disabled:e,$error:t})=>!e&&!t&&r`
1543
- &:hover,
1544
- &:active,
1545
- &:focus-within {
1546
- border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1547
- }
1548
- `}
1549
- `,Mg=n.textarea`
1550
- max-width: ${({$maxWidth:e})=>e||"unset"};
1551
- min-height: ${({$minHeight:e})=>e||"50px"};
1552
- flex: 1;
1553
- font-family: ${({theme:e})=>e.font_family.primary};
1554
- font-size: 14px;
1555
- font-weight: 400;
1556
- resize: none;
1557
-
1558
- background: transparent;
1559
- border: none;
1560
- outline: none;
1561
- cursor: text;
1562
- color: ${({theme:e})=>e.v2.colors.white[500]};
1563
- &::placeholder {
1564
- color: ${({theme:e})=>e.v2.colors.silver[600]};
1565
- }
1566
-
1567
- &:disabled {
1568
- cursor: not-allowed;
1569
- color: ${({theme:e})=>e.v2.colors.grey[400]};
1570
- &::placeholder {
1571
- color: ${({theme:e})=>e.v2.colors.grey[400]};
1572
- }
1573
- }
1574
- `,Ug=({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=jt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Jr,{$gap:6,children:[t(nu,{label:o,tooltip:r,required:n,badge:i}),t(Pg,{$disabled:p,$error:!!a,children:t(Mg,{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})}),t(ru,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Fg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],zg=n.div`
1575
- flex: 1;
1576
- min-width: 0;
1577
- `,Bg=n.div`
1578
- flex: 0 0 auto;
1579
- min-width: 140px;
1580
- `,Hg=({name:o,label:n,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Fg,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]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(Jr,{$width:y,$gap:6,children:[t(nu,{label:n,tooltip:r,required:s,badge:i}),e(Yr,{$gap:8,$alignItems:"center",children:[t(zg,{children:t(Gu,{name:o,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>$(Di(e.target.value),E)})}),t(Bg,{children:t(uh,{name:`${o}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>$(v,e[0]||E)})})]}),t(ru,{errorMessage:h,warnMessage:g,helpMessage:m})]})},jg=n.div`
1581
- min-width: 500px;
1582
- `,Wg=n.div`
1583
- display: flex;
1584
- flex-direction: column;
1585
- align-items: center;
1586
- gap: 16px;
1587
- padding: 24px;
1588
- width: 100%;
1589
- `,Gg=n.div`
1590
- display: flex;
1591
- justify-content: center;
1592
- gap: 16px;
1593
- padding: 16px 24px;
1594
- width: 100%;
1595
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1596
- `,Xg=({visual:o,title:n,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(Gh,{isOpen:i,onClose:a,...d,children:e(jg,{children:[e(Wg,{children:[o&&t(o,{}),t(fn,{size:un.M,weight:500,color:pn.Primary,children:n}),t(Jr,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(fn,{size:un.XS,weight:400,color:pn.Secondary,children:e},e))}),c]}),(s||l)&&e(Gg,{children:[s&&t(Nd,{"data-id":"deny",...s}),l&&t(Nd,{"data-id":"approve",...l})]})]})});export{iu as $,Su as A,Nd as B,lu as C,dh as D,ds as E,Jr as F,ms as G,Lg as H,Uh as I,fs as J,ys as K,us as L,vo as M,nh as N,or as O,fo as P,Lu as Q,wu as R,wo as S,Sd as T,Xa as U,Ur as V,Xg as W,qa as X,Yd as Y,Xu as Z,ss as _,Cu as a,qr as a$,bs as a0,vs as a1,Ga as a2,An as a3,Lp as a4,Dh as a5,aa as a6,za as a7,Po as a8,Fo as a9,$s as aA,ka as aB,hs as aC,Ss as aD,Es as aE,Cs as aF,xs as aG,ns as aH,xa as aI,Oa as aJ,Na as aK,_a as aL,Da as aM,Ra as aN,ja as aO,ga as aP,ma as aQ,$a as aR,rs as aS,is as aT,cs as aU,$c as aV,fa as aW,Wa as aX,Fn as aY,Sc as aZ,rg as a_,Vo as aa,Ko as ab,Yo as ac,Uo as ad,zo as ae,Mo as af,cn as ag,Ya as ah,Ta as ai,Ka as aj,wa as ak,Za as al,Fa as am,Va as an,Qa as ao,ls as ap,Ba as aq,Th as ar,as,Pa as at,Sa as au,Ma as av,La as aw,$u as ax,Ca as ay,Ua as az,mo as b,lr as b$,eu as b0,si as b1,Qd as b2,Jc as b3,Jn as b4,$p as b5,Dc as b6,Sn as b7,wr as b8,Eo as b9,oa as bA,Ch as bB,Tu as bC,jd as bD,yn as bE,Pi as bF,Ki as bG,Yi as bH,xd as bI,qi as bJ,Ji as bK,Ps as bL,Ha as bM,Ja as bN,Ms as bO,os as bP,Ls as bQ,va as bR,Ea as bS,Aa as bT,Ld as bU,nn as bV,Kr as bW,dg as bX,Yc as bY,Vc as bZ,sn as b_,$o as ba,Tc as bb,Mc as bc,Bc as bd,kc as be,gr as bf,rn as bg,dr as bh,Ei as bi,Zi as bj,vi as bk,Hc as bl,en as bm,ro as bn,no as bo,$i as bp,Si as bq,an as br,_i as bs,Go as bt,Ii as bu,Qi as bv,Do as bw,io as bx,ta as by,uo as bz,ea as c,ra as c$,dn as c0,En as c1,vn as c2,po as c3,og as c4,qn as c5,Np as c6,Pn as c7,Dp as c8,Zo as c9,ji as cA,Oi as cB,rr as cC,Wd as cD,_g as cE,pg as cF,zh as cG,Ia as cH,sa as cI,ir as cJ,na as cK,ca as cL,ia as cM,la as cN,bc as cO,Ec as cP,vc as cQ,Hs as cR,zs as cS,Fs as cT,Bs as cU,Ks as cV,Vs as cW,qs as cX,Js as cY,Gs as cZ,Ws as c_,Ai as ca,Wn as cb,mi as cc,ln as cd,md as ce,ad as cf,On as cg,Lo as ch,Tn as ci,Bi as cj,nr as ck,Rg as cl,pp as cm,Ic as cn,gi as co,hi as cp,sr as cq,Eh as cr,Ac as cs,xr as ct,Kn as cu,ci as cv,Tr as cw,li as cx,rd as cy,Gi as cz,nu as d,ic as d$,Is as d0,od as d1,Ci as d2,pu as d3,uu as d4,Gh as d5,Oc as d6,yc as d7,el as d8,hl as d9,Zs as dA,El as dB,$l as dC,Ol as dD,wl as dE,Tl as dF,Cl as dG,xl as dH,Sl as dI,_l as dJ,Rl as dK,Al as dL,Il as dM,Nl as dN,kl as dO,Ll as dP,Dl as dQ,ol as dR,oc as dS,nc as dT,rc as dU,tc as dV,ac as dW,sc as dX,lc as dY,cc as dZ,dc as d_,gl as da,ml as db,fl as dc,bl as dd,yl as de,vl as df,Gr as dg,uc as dh,pc as di,hc as dj,gc as dk,mc as dl,fc as dm,tl as dn,nl as dp,rl as dq,il as dr,sl as ds,al as dt,cl as du,ll as dv,ul as dw,dl as dx,pl as dy,Qs as dz,fn as e,lo as e$,Zl as e0,ec as e1,Wl as e2,Jl as e3,ql as e4,Ql as e5,Xl as e6,Kl as e7,Vl as e8,Pl as e9,Gn as eA,jn as eB,Hn as eC,bn as eD,Or as eE,Bo as eF,Uu as eG,sp as eH,Bu as eI,Vr as eJ,gs as eK,pa as eL,da as eM,ua as eN,ha as eO,Us as eP,As as eQ,Os as eR,Ns as eS,Ts as eT,ws as eU,Ds as eV,ks as eW,Rs as eX,_s as eY,sd as eZ,Io as e_,Ml as ea,Ul as eb,Fl as ec,zl as ed,Bl as ee,Hl as ef,jl as eg,Gl as eh,Yl as ei,$r as ej,Xr as ek,ug as el,Rc as em,Xn as en,$n as eo,Hi as ep,cd as eq,Nc as er,Uc as es,pr as et,Qn as eu,Zn as ev,hr as ew,ur as ex,cr as ey,Xc as ez,pn as f,ya as f$,No as f0,Oo as f1,Ro as f2,yo as f3,bo as f4,To as f5,co as f6,Qo as f7,ho as f8,so as f9,br as fA,vr as fB,Er as fC,Sr as fD,di as fE,fi as fF,yi as fG,bi as fH,xi as fI,wi as fJ,Ni as fK,Di as fL,ki as fM,Li as fN,Mi as fO,Ui as fP,Bn as fQ,Fi as fR,zi as fS,Xi as fT,ps as fU,Ys as fV,Xs as fW,js as fX,es as fY,ts as fZ,ba as f_,ko as fa,So as fb,Wo as fc,jo as fd,Ho as fe,_o as ff,qo as fg,Jo as fh,Xo as fi,go as fj,ao as fk,Ao as fl,zr as fm,Fr as fn,jr as fo,Mn as fp,Un as fq,Ri as fr,Vn as fs,Yn as ft,tr as fu,zn as fv,ar as fw,wn as fx,fr as fy,yr as fz,un as g,Wi as g0,Cc as g1,tn as g2,on as g3,Vi as g4,xc as g5,nd as g6,Wc as g7,Gc as g8,qc as g9,Wp as gA,Pp as gB,Qr as gC,gn as gD,Zc as ga,td as gb,id as gc,ld as gd,ud as ge,kd as gf,Hd as gg,Pd as gh,Dd as gi,Ju as gj,qu as gk,du as gl,Fg as gm,hh as gn,Qu as go,fh as gp,bh as gq,ei as gr,qh as gs,Zr as gt,Nh as gu,Du as gv,ti as gw,oi as gx,ni as gy,mp as gz,Yr as h,Td as i,wd as j,ru as k,xn as l,Cn as m,Co as n,Hp as o,Up as p,Mp as q,Hg as r,uh as s,oo as t,Ug as u,In as v,Sh as w,Gu as x,xo as y,Ru as z};