@odigos/ui-kit 0.0.272 → 0.0.274
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.
- package/CHANGELOG.md +21 -0
- package/lib/chunks/helpers-9QRquBS1.js +9 -0
- package/lib/chunks/{index-D2_SqNhv.js → index-BesD_mee.js} +3 -3
- package/lib/chunks/source-instrument-form-context-fYKmw6ZG.js +5 -0
- package/lib/chunks/{ui-components-Cz2E0SIN.js → ui-components-i5FUYiX9.js} +215 -215
- package/lib/components/note/index.d.ts +2 -1
- package/lib/components.js +1 -1
- package/lib/constants/actions/categories.d.ts +6 -0
- package/lib/constants/actions/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/add-action-drawer/lists-column/index.d.ts +10 -0
- package/lib/containers/_drawers/edit-action-drawer/statuses-card.d.ts +6 -0
- package/lib/containers/central-connections/helpers.d.ts +2 -1
- package/lib/containers/central-connections/index.d.ts +1 -1
- package/lib/containers.js +272 -273
- package/lib/contexts/odigos-api/capabilities.d.ts +0 -4
- package/lib/contexts/odigos-api/types.d.ts +1 -1
- package/lib/contexts/odigos-context.d.ts +3 -1
- package/lib/contexts.js +1 -1
- package/lib/functions/get-action-conditions/index.d.ts +2 -0
- package/lib/functions/get-action-icon/index.d.ts +2 -2
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions/map-desired-statuses-to-conditions/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/actions/enrichment-icon/index.d.ts +2 -0
- package/lib/icons/actions/index.d.ts +3 -0
- package/lib/icons/actions/normalization-icon/index.d.ts +2 -0
- package/lib/icons/actions/privacy-icon/index.d.ts +2 -0
- package/lib/icons/compute-platform/ecs-logo/index.d.ts +2 -0
- package/lib/icons/compute-platform/index.d.ts +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/wide-drawer/index.d.ts +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +12 -2
- package/lib/types/common/index.d.ts +17 -1
- package/lib/types/workload/index.d.ts +2 -16
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/helpers-BjINTDe1.js +0 -9
- package/lib/chunks/source-instrument-form-context-DqNzAFUO.js +0 -5
- package/lib/containers/_drawers/edit-source-drawer/helpers.d.ts +0 -16
- package/lib/icons/compute-platform/cloud-connector-policy-icon/index.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{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 ne,OpsVerseLogo as oe,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 nt,ISquareIcon as ot,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 en}from"react-error-boundary";import{VList as tn}from"virtua";const nn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)};var on,rn,an,sn,ln,cn,dn,un,pn,hn,gn,mn,fn,yn,bn,vn,En,$n,Sn,Cn,xn,wn,Tn,On,Nn,An,In,_n,Rn,Dn,kn,Ln,Pn,Mn,Un,Fn,zn,Bn,Hn,jn,Wn,Gn;(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"})(on||(on={})),(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"})(rn||(rn={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(an||(an={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(sn||(sn={})),(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"})(ln||(ln={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(cn||(cn={})),(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"})(dn||(dn={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(un||(un={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(pn||(pn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(hn||(hn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(gn||(gn={})),(e=>{e.Community="community",e.Onprem="onprem"})(mn||(mn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector"})(fn||(fn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(yn||(yn={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(bn||(bn={})),(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"})(vn||(vn={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(En||(En={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})($n||($n={})),(e=>{e.DataStream="DataStream"})(Sn||(Sn={})),(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"})(Cn||(Cn={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(xn||(xn={})),(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"})(wn||(wn={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Tn||(Tn={})),(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"})(On||(On={})),(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"})(Nn||(Nn={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(An||(An={})),(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"})(In||(In={})),(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"})(_n||(_n={})),(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"})(Rn||(Rn={})),(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"})(Dn||(Dn={})),(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"})(kn||(kn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Ln||(Ln={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Pn||(Pn={})),(e=>{e.HeaderKeys="headerKeys"})(Mn||(Mn={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Un||(Un={}));class Xn{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 Vn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class Kn{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"})(Fn||(Fn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(zn||(zn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Bn||(Bn={})),(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"})(Hn||(Hn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(jn||(jn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Wn||(Wn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Gn||(Gn={}));const Yn={[Wn.Logs]:Gn.Logs,[Wn.Metrics]:Gn.Metrics,[Wn.Traces]:Gn.Traces,[Wn.Profiles]:Gn.Profiles},Jn={[Gn.Logs]:Wn.Logs,[Gn.Metrics]:Wn.Metrics,[Gn.Traces]:Wn.Traces,[Gn.Profiles]:Wn.Profiles};var qn,Qn;(e=>{e.RolloutWorkload="RolloutWorkload"})(qn||(qn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Qn||(Qn={}));const Zn=e=>({[on.K8sAttributes]:h,[on.AddClusterInfo]:p,[on.DeleteAttributes]:u,[on.PiiMasking]:d,[on.RenameAttributes]:c,[on.ExtractAttribute]:l,[on.URLTemplatization]:l,[on.DbQueryTemplatization]:l,[on.InferDbAttributes]:l}[e]||g),eo=[{type:on.K8sAttributes,icon:Zn(on.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Wn.Traces,Wn.Metrics,Wn.Logs,Wn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[fn.K8s]},{type:on.AddClusterInfo,icon:Zn(on.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:[Wn.Traces,Wn.Metrics,Wn.Logs,Wn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[fn.K8s]},{type:on.DeleteAttributes,icon:Zn(on.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:[Wn.Traces,Wn.Metrics,Wn.Logs,Wn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[fn.K8s]},{type:on.RenameAttributes,icon:Zn(on.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:[Wn.Traces,Wn.Metrics,Wn.Logs,Wn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[fn.K8s]},{type:on.PiiMasking,icon:Zn(on.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Wn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[fn.K8s]},{type:on.URLTemplatization,icon:Zn(on.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:[Wn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[fn.K8s]:nn("v1.21.0")},supportedPlatforms:[fn.K8s,fn.Vm]},{type:on.ExtractAttribute,icon:Zn(on.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:[Wn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[fn.K8s]:nn("v1.29.0")},supportedPlatforms:[fn.K8s]}],to=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),no=(e,t,n)=>{const o=e.minVersion?.[t];return!o||nn(n)>=o},oo=(e,t)=>eo.filter(n=>to(n,e)&&no(n,e,t)),ro=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Zn(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var io;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(io||(io={}));const ao={[io.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[io.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[io.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[io.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[io.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[io.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},so=e=>({[Ln.CodeAttributes]:b,[Ln.CustomInstrumentation]:y,[Ln.HeadersCollection]:f,[Ln.PayloadCollection]:m,[Ln.UnknownType]:g}[e]||g),lo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var co,uo,po;(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"})(co||(co={})),(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"})(uo||(uo={})),(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"})(po||(po={}));const ho=new Set(Object.values(po)),go=(e,t)=>{if("string"!=typeof(n=t)||!ho.has(n))return t;var n;switch(t){case po.Primary:return e.v2.colors.white[500];case po.Secondary:return e.v2.colors.silver[200];case po.Tertiary:return e.v2.colors.black[500];case po.Disable:return e.v2.colors.grey[400];case po.Error:return e.v2.colors.red[500];case po.Mandatory:return e.v2.colors.red[600];case po.Link:return e.v2.colors.purple[400];case po.Success:return e.v2.colors.green[400];default:return}},mo=o.p`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as c,EnrichmentIcon as d,ActionIcon as u,ImageErrorIcon as p,PayloadCollectionIcon as h,HeadersCollectionIcon as g,CustomInstrumentationIcon as m,CodeAttributesIcon as f,VSquareIcon as y,XSquareIcon as b,KafkaLogo as v,RedisLogo as E,PostgresLogo as S,NginxLogo as $,MysqlLogo as C,ElixirLogo as x,SwiftLogo as w,RustLogo as T,RubyLogo as O,PhpLogo as N,CPlusPlusLogo as A,CSharpLogo as I,DotnetLogo as _,PythonLogo as R,NodejsLogo as D,GoLogo as k,JavaLogo as L,PyroscopeLogo as P,AwsXrayLogo as M,VictoriaMetricsLogo as U,UptraceLogo as F,TraceloopLogo as z,TingyunLogo as B,TempoLogo as H,TelemetryHubLogo as j,SumoLogicLogo as W,SplunkLogo as G,SignozLogo as X,SeqLogo as V,AwsS3Logo as K,QuickwitLogo as Y,GigapipeLogo as J,QrynLogo as q,PrometheusLogo as Q,OpenTelemetryLogo as Z,OracleLogo as ee,OpsVerseLogo as te,OpenObserveLogo as ne,OneUptimeLogo as oe,OdigosLogo as re,ObserveLogo as ie,NewRelicLogo as ae,MiddlewareLogo as se,LumigoLogo as le,LokiLogo as ce,LogzioLogo as de,LightstepLogo as ue,Last9Logo as pe,KloudmateLogo as he,JaegerLogo as ge,InstanaLogo as me,HyperDxLogo as fe,HoneycombLogo as ye,GroundcoverLogo as be,GreptimeLogo as ve,GrafanaLogo as Ee,GoogleCloudPlatformLogo as Se,ElasticSearchLogo as $e,ElasticApmLogo as Ce,DynatraceLogo as xe,DatadogLogo as we,Dash0Logo as Te,CoralogixLogo as Oe,AwsCloudwatchLogo as Ne,ClickhouseLogo as Ae,ChronosphereLogo as Ie,ChecklyLogo as _e,CauselyLogo as Re,BonreeLogo as De,BetterStackLogo as ke,AzureMonitorLogo as Le,AzureBlobLogo as Pe,AxiomLogo as Me,AppDynamicsLogo as Ue,AlibabaCloudLogo as Fe,AlaudaLogo as ze,SamplingIcon as Be,InstrumentationRuleIcon as He,DestinationIcon as je,SourceIcon as We,NamespacesIcon as Ge,TracesIcon as Xe,MetricsIcon as Ve,LogsIcon as Ke,EcsLogo as Ye,CloudConnectorIcon as Je,VmLogo as qe,K8sLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as nt,ISquareIcon as ot,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 St,XIcon as $t,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 en}from"react-error-boundary";import{VList as tn}from"virtua";const nn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)};var on,rn,an,sn,ln,cn,dn,un,pn,hn,gn,mn,fn,yn,bn,vn,En,Sn,$n,Cn,xn,wn,Tn,On,Nn,An,In,_n,Rn,Dn,kn,Ln,Pn,Mn,Un,Fn,zn,Bn,Hn,jn,Wn,Gn,Xn,Vn;(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"})(on||(on={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(rn||(rn={})),(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"})(an||(an={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(sn||(sn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ln||(ln={})),(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"})(cn||(cn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(dn||(dn={})),(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"})(un||(un={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(pn||(pn={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(hn||(hn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(gn||(gn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(mn||(mn={})),(e=>{e.Community="community",e.Onprem="onprem"})(fn||(fn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yn||(yn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(bn||(bn={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(vn||(vn={})),(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"})(En||(En={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Sn||(Sn={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})($n||($n={})),(e=>{e.DataStream="DataStream"})(Cn||(Cn={})),(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"})(xn||(xn={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(wn||(wn={})),(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"})(Tn||(Tn={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(On||(On={})),(e=>{e.RolloutWorkload="RolloutWorkload"})(Nn||(Nn={})),(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"})(An||(An={})),(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"})(In||(In={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_n||(_n={})),(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"})(Rn||(Rn={})),(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"})(Dn||(Dn={})),(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"})(kn||(kn={})),(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"})(Ln||(Ln={})),(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"})(Pn||(Pn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Mn||(Mn={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Un||(Un={})),(e=>{e.HeaderKeys="headerKeys"})(Fn||(Fn={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(zn||(zn={}));class Kn{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 Yn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class Jn{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"})(Bn||(Bn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hn||(Hn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(jn||(jn={})),(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"})(Wn||(Wn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gn||(Gn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Xn||(Xn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Vn||(Vn={}));const qn={[Xn.Logs]:Vn.Logs,[Xn.Metrics]:Vn.Metrics,[Xn.Traces]:Vn.Traces,[Xn.Profiles]:Vn.Profiles},Qn={[Vn.Logs]:Xn.Logs,[Vn.Metrics]:Xn.Metrics,[Vn.Traces]:Xn.Traces,[Vn.Profiles]:Xn.Profiles};var Zn;(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Zn||(Zn={}));const eo={[rn.Enrichment]:{TITLE:"Enrichment",ICON:d},[rn.Normalization]:{TITLE:"Normalization",ICON:c},[rn.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},to={[on.AddClusterInfo]:rn.Enrichment,[on.K8sAttributes]:rn.Enrichment,[on.ExtractAttribute]:rn.Enrichment,[on.InferDbAttributes]:rn.Enrichment,[on.DbQueryTemplatization]:rn.Normalization,[on.URLTemplatization]:rn.Normalization,[on.RenameAttributes]:rn.Normalization,[on.PiiMasking]:rn.Privacy,[on.DeleteAttributes]:rn.Privacy},no=e=>{const t=to[e];return t?eo[t].ICON:u},oo=[{type:on.K8sAttributes,icon:no(on.K8sAttributes),category:to[on.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yn.K8s]},{type:on.AddClusterInfo,icon:no(on.AddClusterInfo),category:to[on.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yn.K8s]},{type:on.DeleteAttributes,icon:no(on.DeleteAttributes),category:to[on.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yn.K8s]},{type:on.RenameAttributes,icon:no(on.RenameAttributes),category:to[on.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",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:[Xn.Traces,Xn.Metrics,Xn.Logs,Xn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yn.K8s]},{type:on.PiiMasking,icon:no(on.PiiMasking),category:to[on.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yn.K8s]},{type:on.URLTemplatization,icon:no(on.URLTemplatization),category:to[on.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yn.K8s]:nn("v1.21.0")},supportedPlatforms:[yn.K8s,yn.Vm]},{type:on.ExtractAttribute,icon:no(on.ExtractAttribute),category:to[on.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",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:[Xn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yn.K8s]:nn("v1.29.0")},supportedPlatforms:[yn.K8s]}],ro=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),io=(e,t,n)=>{const o=e.minVersion?.[t];return!o||nn(n)>=o},ao=(e,t)=>oo.filter(n=>ro(n,e)&&io(n,e,t)),so=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:no(e.type),category:e.category||to[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var lo;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(lo||(lo={}));const co={[lo.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[lo.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[lo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[lo.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[lo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[lo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},uo=e=>({[Mn.CodeAttributes]:f,[Mn.CustomInstrumentation]:m,[Mn.HeadersCollection]:g,[Mn.PayloadCollection]:h,[Mn.UnknownType]:p}[e]||p),po=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var ho,go,mo;(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"})(ho||(ho={})),(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"})(go||(go={})),(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"})(mo||(mo={}));const fo=new Set(Object.values(mo)),yo=(e,t)=>{if("string"!=typeof(n=t)||!fo.has(n))return t;var n;switch(t){case mo.Primary:return e.v2.colors.white[500];case mo.Secondary:return e.v2.colors.silver[200];case mo.Tertiary:return e.v2.colors.black[500];case mo.Disable:return e.v2.colors.grey[400];case mo.Error:return e.v2.colors.red[500];case mo.Mandatory:return e.v2.colors.red[600];case mo.Link:return e.v2.colors.purple[400];case mo.Success:return e.v2.colors.green[400];default:return}},bo=o.p`
|
|
2
2
|
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>
|
|
3
|
+
color: ${({$color:e,theme:t})=>yo(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
5
|
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
6
|
font-weight: ${({$weight:e})=>e};
|
|
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,fo=Mt(({children:n,variant:o=co.P,color:r,size:i=uo.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 n?n.split("\n").map((n,o,r)=>e(Ut,{children:[n,o!==r.length-1&&t("br",{})]},`typography-${o}-${n}`)):n;return t(mo,{ref:y,as:o,$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})});fo.displayName="Typography";const yo="https://docs.odigos.io",bo="default",vo="this-cluster",Eo="This Cluster",$o={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},So={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."},Co={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"},xo={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"},wo=(e,t)=>e===wn.Success?Co.HEALTHY:e===wn.Error?Co.NOT_HEALTHY:lo(t),To=e=>{if(!e)return null;switch(e){case kn.Irrelevant:return null;case kn.Failure:case kn.Error:return wn.Error;case kn.Notice:return wn.Warning;case kn.Pending:case kn.Waiting:return wn.Loading;case kn.Unsupported:case kn.Disabled:return wn.Disabled;case kn.Success:return wn.Success;case kn.Unknown:default:return wn.Info}},Oo=(e,t,n="reason",o)=>{const r=To(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===wn.Success?v:E),label:o||("reason"===n?lo(e?.reasonEnum):wo(r,e?.reasonEnum)),tooltip:e?.message,textSize:uo.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var No;(e=>{e.SIGNALS="SIGNALS"})(No||(No={}));const Ao=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===No.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);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 Io(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const _o=e=>({status:e?wn.Success:wn.Unknown,label:e?"True":"False",invertColors:!0}),Ro=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Do=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),ko=e=>"string"==typeof e?{id:e,label:e}:e??{},Lo=(e,t)=>e.label||e.displayName||t,Po=(e,t,n={})=>{const o=[],r=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));return t.forEach((t,n)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Ao(t.renderCondition,r,a))return;const s=t.displayName||t.name,l=`${t.name}-${n}`,c=e[t.name],d=Io(t.componentProperties,{});switch(t.componentType){case Cn.Toggle:case Cn.Checkbox:return void o.push({id:l,title:s,badge:_o(!!c)});case Cn.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void o.push({id:l,title:s,label:e.length?e.join(", "):"-"})}if("flatFields"===t)return void(Array.isArray(d.options)?d.options:[]).forEach((t,n)=>{const r=ko(t),i=String(r.id??"");i&&o.push({id:`${l}-${n}-${i}`,title:Lo(r,i),badge:_o(!0===e[i])})});const n=Ro(c)?c:{},r=Array.isArray(d.options)?d.options:[];if(r.length){const e=r.map(e=>{const t=ko(e),o=String(t.id??"");return o&&n[o]?Lo(t,o):null}).filter(Boolean);return void o.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(n).filter(([,e])=>!!e).map(([e])=>e);return void o.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case Cn.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,n=e&&Ro(c)?c[e]:c;if(Array.isArray(n)&&n.length){const e=n.map(e=>t&&Ro(e)?String(e[t]??""):String(e??""));return void o.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void o.push({id:l,title:s,label:"-"})}case Cn.KeyValuePair:return Ro(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],n)=>{o.push({id:`${l}-${n}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const n=Ro(e)?e:{};o.push({id:`${l}-${t}`,title:String(n.key??""),label:String(n.value??"")})}):void o.push({id:l,title:s,label:"-"});case Cn.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&Ro(c)?c[e]:c)?e&&Ro(c)?c[e]:c:[],n=Array.isArray(d.columns)?d.columns:[],r=e=>{const t=n.find(t=>Ro(t)&&t.keyName===e);return t?.label||e};return t.length?void t.forEach((e,n)=>{const i=t.length>1?`${s} #${n+1} `:`${s} `;Object.entries(e||{}).forEach(([e,t])=>{null!=t&&""!==t&&o.push({id:`${l}-${n}-${e}`,title:`${i}${r(e)}`,label:Do(t)})})}):void o.push({id:l,title:s,label:"-"})}case Cn.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,n)=>{const r=e.length>1?`${s} #${n+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&o.push({id:`${l}-${n}-${e}`,title:`${r}${e}`,label:Do(t)})})}):void o.push({id:l,title:s,label:"-"})}default:o.push({id:l,title:s,label:Do(c)})}}),o},Mo=e=>e.charAt(0).toUpperCase()+e.slice(1),Uo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})},Fo=e=>JSON.parse(JSON.stringify(e)),zo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Bo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},Ho=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},jo=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Wo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Go=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.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));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>To(e.workloadOdigosHealthStatus?.status)===wn.Error)),n},Xo=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===bo&&!e.dataStreamNames?.length):[],Vo=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?Vo(e,o,n):n[o]=e}):n[i]=r:Vo(r,i,n)}return n},Ko=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]}`},Yo=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`}},Jo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];return t++,("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},qo=e=>{if(!e)return Qo([]);if(Array.isArray(e))return Qo(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=To(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Qo(t)},Qo=e=>{const t=e?.filter(({status:e})=>e===wn.Error),n=e?.filter(({status:e})=>e===wn.Warning),o=e?.filter(({status:e})=>e===wn.Disabled),r=e?.filter(({status:e})=>e===wn.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?wn.Error:a?wn.Warning:s?wn.Info:void 0}},Zo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},er=e=>({[vn.Java]:M,[vn.Go]:P,[vn.JavaScript]:L,[vn.Python]:k,[vn.DotNet]:D,[vn.CSharp]:R,[vn.CPlusPlus]:_,[vn.Php]:I,[vn.Ruby]:A,[vn.Rust]:N,[vn.Swift]:O,[vn.Elixir]:T,[vn.MySql]:w,[vn.Nginx]:x,[vn.Postgres]:C,[vn.Redis]:S,[vn.Kafka]:$,[vn.Ignored]:g,[vn.Unknown]:g,[vn.Processing]:g,[vn.NoContainers]:g,[vn.NoRunningPods]:g}[e]||g),tr=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vn.Unknown:vn.Unknown,nr=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,or=e=>e?.map(e=>er(tr(e)))||[],rr=e=>e?.map(e=>er(e))||[],ir=e=>e.runtimeInfo?.detectedLanguages?.length?rr(e.runtimeInfo?.detectedLanguages):or(e.containers),ar=(e,t)=>{const n={[_n.Alauda]:He,[_n.AlibabaCloud]:Be,[_n.AppDynamics]:ze,[_n.Axiom]:Fe,[_n.AzureBlob]:Ue,[_n.AzureMonitor]:Me,[_n.BetterStack]:Pe,[_n.Bonree]:Le,[_n.Causely]:ke,[_n.Checkly]:De,[_n.Chronosphere]:Re,[_n.ClickHouse]:_e,[_n.CloudWatch]:Ie,[_n.Coralogix]:Ae,[_n.Dash0]:Ne,[_n.Datadog]:Oe,[_n.Dynamic]:te,[_n.Dynatrace]:Te,[_n.ElasticApm]:we,[_n.ElasticSearch]:xe,[_n.GoogleCloud]:Ce,[_n.GoogleCloudOTLP]:Ce,[_n.GrafanaCloudLoki]:Se,[_n.GrafanaCloudPrometheus]:Se,[_n.GrafanaCloudTempo]:Se,[_n.Greptime]:$e,[_n.Groundcover]:Ee,[_n.Honeycomb]:ve,[_n.HyperDX]:be,[_n.Instana]:ye,[_n.Jaeger]:fe,[_n.Kafka]:$,[_n.Kloudmate]:me,[_n.Last9]:ge,[_n.Lightstep]:he,[_n.LogzIo]:pe,[_n.Loki]:ue,[_n.Lumigo]:de,[_n.Middleware]:ce,[_n.NewRelic]:le,[_n.Observe]:se,[_n.Odigos]:ae,[_n.OneUptime]:ie,[_n.OpenObserve]:re,[_n.Opsverse]:oe,[_n.Oracle]:ne,[_n.OTLP]:te,[_n.OTLPHttp]:te,[_n.Prometheus]:ee,[_n.Qryn]:Z,[_n.QrynOss]:Q,[_n.Quickwit]:q,[_n.S3]:J,[_n.Seq]:Y,[_n.Signalfx]:V,[_n.Signoz]:K,[_n.Splunk]:V,[_n.SplunkSapm]:V,[_n.SplunkOtlp]:V,[_n.SumoLogic]:X,[_n.TelemetryHub]:G,[_n.Tempo]:W,[_n.Tingyun]:j,[_n.Traceloop]:H,[_n.Uptrace]:B,[_n.VictoriaMetrics]:z,[_n.VictoriaMetricsCloud]:z,[_n.XRay]:F,[_n.Pyroscope]:U}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},sr=e=>({[$n.Namespace]:Ve,[$n.Source]:Xe,[$n.Destination]:Ge,[$n.Action]:l,[$n.InstrumentationRule]:We,[$n.SamplingRule]:je}[e]),lr=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,cr=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},dr=e=>cr(lr(e)),ur=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case $n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case $n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case $n.Action:const o=e;i=o.type,a=o.name||"";break;case $n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case $n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},pr=(e,t)=>{if(t===$n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},hr=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vn.Unknown,gr=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?vn.Processing:vn.NoRunningPods;const o=n?.filter(e=>hr(e)!==vn.Ignored);if(!o.length)return vn.NoContainers;const r=o.find(e=>hr(e)!==vn.Unknown);return r?hr(r):vn.Unknown},mr=(e,t,n)=>(t===$n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},fr=e=>({[Wn.Logs]:Je,[Wn.Metrics]:Ye,[Wn.Traces]:Ke,[Wn.Profiles]:ae}[e]),yr=(e,t)=>Object.values(uo).reduce((n,o)=>Math.abs(t[o]-e)<Math.abs(t[n]-e)?o:n),br=e=>e?{[fn.K8s]:h,[fn.Vm]:Qe,[fn.Connector]:qe}[e]:ae,vr=e=>e?{[fn.K8s]:"Kubernetes Cluster",[fn.Vm]:"Virtual Machine",[fn.Connector]:"Cloud Connector"}[e]:"Unknown",Er=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...Er(e,t,n)),r}):[]},$r={"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"},Sr=e=>{if(!e)return"";if($r[e])return $r[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Cr=(e,t)=>{if(t===$n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},xr=(e,t,n)=>{switch(n=n??"500",t){case wn.Default:return e.v2.colors.purple[n];case wn.Info:return e.v2.colors.blue[n];case wn.Error:return e.v2.colors.red[n];case wn.Warning:return e.v2.colors.yellow[n];case wn.Success:return e.v2.colors.green[n];case wn.Loading:case wn.Disabled:case wn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},wr=e=>{switch(e){case zn.Updating:case Bn.Pending:case Hn.ContainerCreating:case jn.Waiting:return wn.Info;case zn.Healthy:case Bn.Succeeded:case Bn.Running:case Hn.Running:case jn.Running:return wn.Success;case zn.Degraded:return wn.Warning;case zn.Failed:case Bn.Failed:case Hn.Error:case Hn.CrashLoopBackOff:case Hn.CreateContainerError:case Hn.CreateContainerConfigError:case Hn.ErrImagePull:case Hn.ErrImageNeverPull:case Hn.ImagePullBackOff:case Hn.InvalidImageName:case Hn.RegistryUnavailable:case Hn.NetworkNotReady:case Hn.OOMKilled:case Hn.ContainerCannotRun:case jn.Terminated:case Hn.DeadlineExceeded:case Hn.StartError:return wn.Error;case zn.Down:case Hn.Completed:return wn.Disabled;case zn.Unknown:case Bn.Unknown:default:return wn.Unknown}},Tr=o.div`
|
|
41
|
+
`,vo=Mt(({children:n,variant:o=ho.P,color:r,size:i=go.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 n?n.split("\n").map((n,o,r)=>e(Ut,{children:[n,o!==r.length-1&&t("br",{})]},`typography-${o}-${n}`)):n;return t(bo,{ref:y,as:o,$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})});vo.displayName="Typography";const Eo="https://docs.odigos.io",So="default",$o="this-cluster",Co="This Cluster",xo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},wo={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."},To={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"},Oo={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"},No=(e,t)=>e===Tn.Success?To.HEALTHY:e===Tn.Error?To.NOT_HEALTHY:po(t),Ao=e=>{if(!e)return null;switch(e){case Pn.Irrelevant:return null;case Pn.Failure:case Pn.Error:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Pending:case Pn.Waiting:return Tn.Loading;case Pn.Unsupported:case Pn.Disabled:return Tn.Disabled;case Pn.Success:return Tn.Success;case Pn.Unknown:default:return Tn.Info}},Io=(e,t,n="reason",o)=>{const r=Ao(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Tn.Success?y:b),label:o||("reason"===n?po(e?.reasonEnum):No(r,e?.reasonEnum)),tooltip:e?.message,textSize:go.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var _o;(e=>{e.SIGNALS="SIGNALS"})(_o||(_o={}));const Ro=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===_o.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);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 Do(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ko=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lo=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Po=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),Mo=e=>"string"==typeof e?{id:e,label:e}:e??{},Uo=(e,t)=>e.label||e.displayName||t,Fo=(e,t,n={})=>{const o=[],r=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));return t.forEach((t,n)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Ro(t.renderCondition,r,a))return;const s=t.displayName||t.name,l=`${t.name}-${n}`,c=e[t.name],d=Do(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void o.push({id:l,title:s,badge:ko(!!c)});case xn.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void o.push({id:l,title:s,label:e.length?e.join(", "):"-"})}if("flatFields"===t)return void(Array.isArray(d.options)?d.options:[]).forEach((t,n)=>{const r=Mo(t),i=String(r.id??"");i&&o.push({id:`${l}-${n}-${i}`,title:Uo(r,i),badge:ko(!0===e[i])})});const n=Lo(c)?c:{},r=Array.isArray(d.options)?d.options:[];if(r.length){const e=r.map(e=>{const t=Mo(e),o=String(t.id??"");return o&&n[o]?Uo(t,o):null}).filter(Boolean);return void o.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(n).filter(([,e])=>!!e).map(([e])=>e);return void o.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case xn.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,n=e&&Lo(c)?c[e]:c;if(Array.isArray(n)&&n.length){const e=n.map(e=>t&&Lo(e)?String(e[t]??""):String(e??""));return void o.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void o.push({id:l,title:s,label:"-"})}case xn.KeyValuePair:return Lo(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],n)=>{o.push({id:`${l}-${n}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const n=Lo(e)?e:{};o.push({id:`${l}-${t}`,title:String(n.key??""),label:String(n.value??"")})}):void o.push({id:l,title:s,label:"-"});case xn.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&Lo(c)?c[e]:c)?e&&Lo(c)?c[e]:c:[],n=Array.isArray(d.columns)?d.columns:[],r=e=>{const t=n.find(t=>Lo(t)&&t.keyName===e);return t?.label||e};return t.length?void t.forEach((e,n)=>{const i=t.length>1?`${s} #${n+1} `:`${s} `;Object.entries(e||{}).forEach(([e,t])=>{null!=t&&""!==t&&o.push({id:`${l}-${n}-${e}`,title:`${i}${r(e)}`,label:Po(t)})})}):void o.push({id:l,title:s,label:"-"})}case xn.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,n)=>{const r=e.length>1?`${s} #${n+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&o.push({id:`${l}-${n}-${e}`,title:`${r}${e}`,label:Po(t)})})}):void o.push({id:l,title:s,label:"-"})}default:o.push({id:l,title:s,label:Po(c)})}}),o},zo=e=>e.charAt(0).toUpperCase()+e.slice(1),Bo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})},Ho=e=>JSON.parse(JSON.stringify(e)),jo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Wo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},Go=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Xo=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Vo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ko=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.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));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Ao(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Yo=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===So&&!e.dataStreamNames?.length):[],Jo=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?Jo(e,o,n):n[o]=e}):n[i]=r:Jo(r,i,n)}return n},qo=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]}`},Qo=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`}},Zo=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];return t++,("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},er=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Ao(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],tr=e=>Array.isArray(e?.statuses)?er(e.statuses):e?.conditions??[],nr=e=>e?Array.isArray(e)?or(e):or(er(Object.values(e))):or([]),or=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),o=e?.filter(({status:e})=>e===Tn.Disabled),r=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},rr=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},ir=e=>({[En.Java]:L,[En.Go]:k,[En.JavaScript]:D,[En.Python]:R,[En.DotNet]:_,[En.CSharp]:I,[En.CPlusPlus]:A,[En.Php]:N,[En.Ruby]:O,[En.Rust]:T,[En.Swift]:w,[En.Elixir]:x,[En.MySql]:C,[En.Nginx]:$,[En.Postgres]:S,[En.Redis]:E,[En.Kafka]:v,[En.Ignored]:p,[En.Unknown]:p,[En.Processing]:p,[En.NoContainers]:p,[En.NoRunningPods]:p}[e]||p),ar=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,sr=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,lr=e=>e?.map(e=>ir(ar(e)))||[],cr=e=>e?.map(e=>ir(e))||[],dr=e=>e.runtimeInfo?.detectedLanguages?.length?cr(e.runtimeInfo?.detectedLanguages):lr(e.containers),ur=(e,t)=>{const n={[Dn.Alauda]:ze,[Dn.AlibabaCloud]:Fe,[Dn.AppDynamics]:Ue,[Dn.Axiom]:Me,[Dn.AzureBlob]:Pe,[Dn.AzureMonitor]:Le,[Dn.BetterStack]:ke,[Dn.Bonree]:De,[Dn.Causely]:Re,[Dn.Checkly]:_e,[Dn.Chronosphere]:Ie,[Dn.ClickHouse]:Ae,[Dn.CloudWatch]:Ne,[Dn.Coralogix]:Oe,[Dn.Dash0]:Te,[Dn.Datadog]:we,[Dn.Dynamic]:Z,[Dn.Dynatrace]:xe,[Dn.ElasticApm]:Ce,[Dn.ElasticSearch]:$e,[Dn.GoogleCloud]:Se,[Dn.GoogleCloudOTLP]:Se,[Dn.GrafanaCloudLoki]:Ee,[Dn.GrafanaCloudPrometheus]:Ee,[Dn.GrafanaCloudTempo]:Ee,[Dn.Greptime]:ve,[Dn.Groundcover]:be,[Dn.Honeycomb]:ye,[Dn.HyperDX]:fe,[Dn.Instana]:me,[Dn.Jaeger]:ge,[Dn.Kafka]:v,[Dn.Kloudmate]:he,[Dn.Last9]:pe,[Dn.Lightstep]:ue,[Dn.LogzIo]:de,[Dn.Loki]:ce,[Dn.Lumigo]:le,[Dn.Middleware]:se,[Dn.NewRelic]:ae,[Dn.Observe]:ie,[Dn.Odigos]:re,[Dn.OneUptime]:oe,[Dn.OpenObserve]:ne,[Dn.Opsverse]:te,[Dn.Oracle]:ee,[Dn.OTLP]:Z,[Dn.OTLPHttp]:Z,[Dn.Prometheus]:Q,[Dn.Qryn]:q,[Dn.QrynOss]:J,[Dn.Quickwit]:Y,[Dn.S3]:K,[Dn.Seq]:V,[Dn.Signalfx]:G,[Dn.Signoz]:X,[Dn.Splunk]:G,[Dn.SplunkSapm]:G,[Dn.SplunkOtlp]:G,[Dn.SumoLogic]:W,[Dn.TelemetryHub]:j,[Dn.Tempo]:H,[Dn.Tingyun]:B,[Dn.Traceloop]:z,[Dn.Uptrace]:F,[Dn.VictoriaMetrics]:U,[Dn.VictoriaMetricsCloud]:U,[Dn.XRay]:M,[Dn.Pyroscope]:P}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},pr=e=>({[$n.Namespace]:Ge,[$n.Source]:We,[$n.Destination]:je,[$n.Action]:u,[$n.InstrumentationRule]:He,[$n.SamplingRule]:Be}[e]),hr=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,gr=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},mr=e=>gr(hr(e)),fr=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case $n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case $n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case $n.Action:const o=e;i=o.type,a=o.name||"";break;case $n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case $n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},yr=(e,t)=>{if(t===$n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},br=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,vr=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const o=n?.filter(e=>br(e)!==En.Ignored);if(!o.length)return En.NoContainers;const r=o.find(e=>br(e)!==En.Unknown);return r?br(r):En.Unknown},Er=(e,t,n)=>(t===$n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},Sr=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:re}[e]),$r=(e,t)=>Object.values(go).reduce((n,o)=>Math.abs(t[o]-e)<Math.abs(t[n]-e)?o:n),Cr=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||re,xr=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",wr=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...wr(e,t,n)),r}):[]},Tr={"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"},Or=e=>{if(!e)return"";if(Tr[e])return Tr[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Nr=(e,t)=>{if(t===$n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Ar=(e,t,n)=>{switch(n=n??"500",t){case Tn.Default:return e.v2.colors.purple[n];case Tn.Info:return e.v2.colors.blue[n];case Tn.Error:return e.v2.colors.red[n];case Tn.Warning:return e.v2.colors.yellow[n];case Tn.Success:return e.v2.colors.green[n];case Tn.Loading:case Tn.Disabled:case Tn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},Ir=e=>{switch(e){case Hn.Updating:case jn.Pending:case Wn.ContainerCreating:case Gn.Waiting:return Tn.Info;case Hn.Healthy:case jn.Succeeded:case jn.Running:case Wn.Running:case Gn.Running:return Tn.Success;case Hn.Degraded:return Tn.Warning;case Hn.Failed:case jn.Failed:case Wn.Error:case Wn.CrashLoopBackOff:case Wn.CreateContainerError:case Wn.CreateContainerConfigError:case Wn.ErrImagePull:case Wn.ErrImageNeverPull:case Wn.ImagePullBackOff:case Wn.InvalidImageName:case Wn.RegistryUnavailable:case Wn.NetworkNotReady:case Wn.OOMKilled:case Wn.ContainerCannotRun:case Gn.Terminated:case Wn.DeadlineExceeded:case Wn.StartError:return Tn.Error;case Hn.Down:case Wn.Completed:return Tn.Disabled;case Hn.Unknown:case jn.Unknown:default:return Tn.Unknown}},_r=o.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,Rr=o.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -56,12 +56,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Dr=o(vo)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,kr=({percentage:n})=>e(_r,{children:[t(Rr,{}),"number"==typeof n?t(Dr,{size:go.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),Lr={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 Pr(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Lr[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Mr(e){const t=Pr(e);return`${t.value}${t.unit}`}const Ur=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Fr=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=Pr(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:Mr(1.5),height:Mr(4),borderRadius:Mr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Ur} ${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)`}})]})},zr=o.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -69,7 +69,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,
|
|
72
|
+
`,Br=({scale:e,icon:n})=>{const o=i();return t(zr,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(zr,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(zr,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(zr,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(zr,{$size:23*e,$color:"#50F6E8",children:t(n,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},Hr=434,jr=635,Wr=o.div`
|
|
73
73
|
width: ${434}px;
|
|
74
74
|
height: ${635}px;
|
|
75
75
|
display: flex;
|
|
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,
|
|
82
|
+
`,Gr=o.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Xr=()=>e(Wr,{children:[t(Gr,{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(Gr,{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(Gr,{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(Gr,{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(Gr,{children:t(re,{size:112})})]}),Vr=o.div`
|
|
88
88
|
width: ${({$size:e})=>e}px;
|
|
89
89
|
height: ${({$size:e})=>e}px;
|
|
90
90
|
border-radius: 100%;
|
|
@@ -92,7 +92,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Kr=({scale:e=1,icon:n})=>{const o=i();return t(Vr,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Vr,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Vr,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Vr,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Vr,{$size:39*e,$color:o.v2.colors.purple[500],children:t(n,{size:32*e,fill:o.v2.colors.white[500]})})})})})})},Yr=o.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,Jr=o.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,9 +112,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,qr=o.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,Qr=o.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -126,7 +126,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
126
126
|
margin: ${({$margin:e="unset"})=>e};
|
|
127
127
|
padding: ${({$padding:e="unset"})=>e};
|
|
128
128
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,
|
|
129
|
+
`,Zr=o.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,18 +138,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
138
138
|
margin: ${({$margin:e="unset"})=>e};
|
|
139
139
|
padding: ${({$padding:e="unset"})=>e};
|
|
140
140
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,
|
|
141
|
+
`,ei=o(Zr)`
|
|
142
142
|
width: ${({$width:e})=>e||"100%"};
|
|
143
143
|
height: ${({$height:e})=>e||"unset"};
|
|
144
144
|
padding: ${({$padding:e})=>e||"unset"};
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
147
|
-
`,
|
|
147
|
+
`,ti=o.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
padding: 12px;
|
|
151
151
|
overflow-y: scroll;
|
|
152
|
-
`,
|
|
152
|
+
`,ni=o.div`
|
|
153
153
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -162,37 +162,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
162
162
|
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
163
163
|
background: rgba(0, 0, 0, 0.6);
|
|
164
164
|
backdrop-filter: blur(2px);
|
|
165
|
-
`,
|
|
165
|
+
`,oi=o.div`
|
|
166
166
|
width: 800px;
|
|
167
167
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
168
168
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
169
169
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
170
170
|
padding: 0 2px;
|
|
171
171
|
overflow-y: scroll;
|
|
172
|
-
`,
|
|
172
|
+
`,ri=o(Zr)`
|
|
173
173
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
174
174
|
width: 100%;
|
|
175
|
-
`,
|
|
175
|
+
`,ii=o(Qr)`
|
|
176
176
|
gap: 16px;
|
|
177
177
|
padding: 16px;
|
|
178
|
-
`,
|
|
178
|
+
`,ai=o.div`
|
|
179
179
|
width: 100%;
|
|
180
180
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
181
181
|
overflow-y: auto;
|
|
182
|
-
`,
|
|
182
|
+
`,si=a`
|
|
183
183
|
0% {
|
|
184
184
|
background-position: 0% 50%;
|
|
185
185
|
}
|
|
186
186
|
100% {
|
|
187
187
|
background-position: 100% 50%;
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,li=o(vo)`
|
|
190
190
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
191
191
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
192
192
|
background-clip: text;
|
|
193
193
|
color: transparent;
|
|
194
|
-
animation: ${
|
|
195
|
-
`,ri=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},ii=({icon:n,title:o,titleColor:r,titleSize:a=uo.S,subTitle:s,subTitleColor:l,subTitleSize:c=uo.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?ri(d):"");zt(()=>{if(!d)return;$(ri(d));const e=setInterval(()=>$(ri(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(Kr,{$gap:16,$alignItems:"center",children:[y?t(Pr,{scale:1.7,icon:b}):h?t(Ar,{percentage:f}):g?t(kr,{scale:m}):null,(o||s||d||n||u)&&e(Kr,{$gap:8,$alignItems:"center",children:[e(Vr,{$gap:4,children:[n&&t(n,{}),u?t(oi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:o||"Loading..."}):o?t(fo,{align:"center",size:a,color:S,children:o}):null]}),s?t(fo,{align:"center",size:c,color:C,children:s}):null,E?t(fo,{align:"center",size:c,color:S,children:E}):null]})]})},ai=(e,t)=>({[wn.Default]:n=>ae({fill:xr(t,e,"300"),...n}),[wn.Info]:n=>ot({fill:xr(t,e,"400"),...n}),[wn.Error]:n=>nt({fill:xr(t,e,"500"),...n}),[wn.Warning]:n=>tt({fill:xr(t,e,"500"),...n}),[wn.Success]:n=>v({fill:xr(t,e,"500"),...n}),[wn.Loading]:e=>ii({withSpinnerOld:!0,...e}),[wn.Disabled]:n=>E({fill:xr(t,e,"400"),...n}),[wn.Unknown]:n=>et({fill:xr(t,e,"300"),...n})}[e]),si=e=>{switch(e){case kn.Success:return wn.Success;case kn.Error:case kn.Failure:return wn.Error;case kn.Notice:return wn.Warning;case kn.Unsupported:case kn.Unknown:return wn.Info;case kn.Irrelevant:case kn.Disabled:return wn.Disabled;case kn.Waiting:return wn.Loading;case kn.Pending:default:return wn.Default}},li=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},ci={redis:S,mysql:w,postgresql:C,postgres:C,kafka:$,elasticsearch:xe,clickhouse:_e,oracle:ne,aws:rt},di={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},ui=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=ci[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=ci[o.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=di[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(ci))if(i.includes(e))return t;return Ge},pi=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:n,kind:o,region:r}=e;return{namespace:t,name:n,kind:o,region:r||void 0}},hi=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Io(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},gi=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==wn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function mi(e){if(!e||0===e.length)return null;const t=[],n=[],o=[];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&&n.push(a),s&&o.push(s)}return 0===t.length&&0===n.length&&0===o.length?null:{sources:t,namespaces:n,languages:o}}function fi(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function yi(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:mi(t??null)}}function bi(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:fi(t??null)}}const vi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ei=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),$i=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Si=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ci=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,xi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,wi=e=>xi.test(e),Ti=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:lo(t),reason:n?lo(n):"",message:o}))||[],Oi=(e,t)=>{const n=Io(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Ni=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Jn[e]):[],Ai=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Jn[e]):[],Ii=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},_i=e=>e.replace(/[^\d]/g,""),Ri=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Di=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},ki=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},Li=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Li(e)))}else if("object"==typeof o&&null!==o){const e=Li(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Pi=(e,t=2)=>JSON.stringify(e||{},null,t),Mi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ui=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Fi={PID:"process.pid",VPID:"process.vpid"},zi={[vn.Go]:"Go",[vn.Java]:"Java",[vn.JavaScript]:"Node.js",[vn.Python]:"Python",[vn.DotNet]:".NET",[vn.CSharp]:"C#",[vn.CPlusPlus]:"C++",[vn.Php]:"PHP",[vn.Ruby]:"Ruby",[vn.Rust]:"Rust",[vn.Swift]:"Swift",[vn.Elixir]:"Elixir",[vn.MySql]:"MySQL",[vn.Nginx]:"Nginx",[vn.Postgres]:"PostgreSQL",[vn.Redis]:"Redis",[vn.Kafka]:"Kafka",[vn.Ignored]:"Ignored",[vn.Unknown]:"Unknown",[vn.Processing]:"Processing",[vn.NoContainers]:"No Containers",[vn.NoRunningPods]:"No Running Pods"},Bi=[{id:vn.Go,label:zi[vn.Go],icon:er(vn.Go)},{id:vn.Java,label:zi[vn.Java],icon:er(vn.Java)},{id:vn.JavaScript,label:zi[vn.JavaScript],icon:er(vn.JavaScript)},{id:vn.Python,label:zi[vn.Python],icon:er(vn.Python)},{id:vn.Php,label:zi[vn.Php],icon:er(vn.Php)},{id:vn.Ruby,label:zi[vn.Ruby],icon:er(vn.Ruby)},{id:vn.Rust,label:zi[vn.Rust],icon:er(vn.Rust)},{id:vn.DotNet,label:zi[vn.DotNet],icon:er(vn.DotNet)},{id:vn.CSharp,label:zi[vn.CSharp],icon:er(vn.CSharp)},{id:vn.CPlusPlus,label:zi[vn.CPlusPlus],icon:er(vn.CPlusPlus)},{id:vn.Swift,label:zi[vn.Swift],icon:er(vn.Swift)},{id:vn.Elixir,label:zi[vn.Elixir],icon:er(vn.Elixir)}],Hi={id:Dn.OpentelemetryEbpfInstrumentation,label:Dn.OpentelemetryEbpfInstrumentation,icon:yt},ji={[vn.Go]:{community:[{id:Dn.GolangCommunity,label:Dn.GolangCommunity,icon:er(vn.Go)},Hi],enterprise:[{id:Dn.GolangEnterprise,label:Dn.GolangEnterprise,icon:er(vn.Go)}]},[vn.JavaScript]:{community:[{id:Dn.NodejsCommunity,label:Dn.NodejsCommunity,icon:er(vn.JavaScript)},Hi],enterprise:[{id:Dn.NodejsEnterprise,label:Dn.NodejsEnterprise,icon:er(vn.JavaScript)}]},[vn.Python]:{community:[{id:Dn.PythonCommunity,label:Dn.PythonCommunity,icon:er(vn.Python)},Hi],enterprise:[{id:Dn.PythonEnterprise,label:Dn.PythonEnterprise,icon:er(vn.Python)}]},[vn.Java]:{community:[{id:Dn.JavaCommunity,label:Dn.JavaCommunity,icon:er(vn.Java)},Hi],enterprise:[{id:Dn.JavaEnterprise,label:Dn.JavaEnterprise,icon:er(vn.Java)},{id:Dn.JavaEbpfInstrumentations,label:Dn.JavaEbpfInstrumentations,icon:er(vn.Java)}]},[vn.DotNet]:{community:[{id:Dn.DotNetCommunity,label:Dn.DotNetCommunity,icon:er(vn.DotNet)},Hi],enterprise:[{id:Dn.DotNetEnterprise,label:Dn.DotNetEnterprise,icon:er(vn.DotNet)}]},[vn.Ruby]:{community:[{id:Dn.RubyCommunity,label:Dn.RubyCommunity,icon:er(vn.Ruby)},Hi],enterprise:[{id:Dn.RubyEnterprise,label:Dn.RubyEnterprise,icon:er(vn.Ruby)}]},[vn.Php]:{community:[{id:Dn.PhpCommunity,label:Dn.PhpCommunity,icon:er(vn.Php)},Hi],enterprise:[]},[vn.CSharp]:{community:[],enterprise:[{id:Dn.CPlusPlusEnterprise,label:Dn.CPlusPlusEnterprise,icon:er(vn.CSharp)}]},[vn.MySql]:{community:[],enterprise:[{id:Dn.MySqlEnterprise,label:Dn.MySqlEnterprise,icon:er(vn.MySql)}]},[vn.CPlusPlus]:{community:[Hi],enterprise:[]},[vn.Rust]:{community:[Hi],enterprise:[]},[vn.Swift]:{community:[Hi],enterprise:[]},[vn.Elixir]:{community:[Hi],enterprise:[]},[vn.Nginx]:{community:[Hi],enterprise:[]},[vn.Postgres]:{community:[Hi],enterprise:[]},[vn.Redis]:{community:[Hi],enterprise:[]},[vn.Kafka]:{community:[Hi],enterprise:[]},[vn.Ignored]:{community:[],enterprise:[]},[vn.Unknown]:{community:[Hi],enterprise:[]},[vn.Processing]:{community:[],enterprise:[]},[vn.NoContainers]:{community:[],enterprise:[]},[vn.NoRunningPods]:{community:[],enterprise:[]}},Wi="*",Gi=e=>!!e?.includes(Wi),Xi=e=>e?.length?Gi(e)?[Wi]:e:[],Vi=e=>{if(e?.length&&!Gi(e))return e.filter(e=>e!==Wi)},Ki=e=>e===Wi?"All languages":zi[e]??e,Yi=e=>e===Wi?bt:er(e),Ji=[{type:Ln.CodeAttributes,icon:so(Ln.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:[vn.Go,vn.Python,vn.JavaScript]},{type:Ln.CustomInstrumentation,icon:so(Ln.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:[vn.Go,vn.Java,vn.Php]},{type:Ln.HeadersCollection,icon:so(Ln.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:[vn.Go,vn.Java,vn.JavaScript]},{type:Ln.PayloadCollection,icon:so(Ln.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:[vn.Go,vn.JavaScript]}],qi=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:so(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},Qi={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.'},Zi={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."},ea={[un.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[un.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[un.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},ta="Cancel",na="Save",oa="Edit rule",ra="Edit auto rule",ia="Create rule",aa="Delete rule",sa="Save",la="Create your first rule",ca="No Rules Exist",da="No Results",ua=e=>`No rules match the search term "${e}"`,pa="Rule name",ha="Rule type",ga="Select the type of condition that makes a trace highly relevant.",ma="Rule Enabled",fa="Rule Disabled",ya="Enabled",ba="Disabled",va="Note",Ea="HTTP route",$a="Method",Sa="Keep Percentage",Ca="Keep traces with duration larger than",xa="Keep traces with errors",wa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Ta="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Oa="Custom percentage",Na="Disabled rule",Aa="Sample",Ia="Keep all",_a="Drop all",Ra="Operation type",Da="HTTP route prefix",ka="Templated path",La="Templated path prefix",Pa="Kafka topic",Ma="Custom duration (ms)",Ua="No preview available",Fa="Server address",za="Drop at most this percentage of matching traces",Ba="Unnamed rule",Ha="Sampling Preview",ja="Source Scope",Wa="Unknown source",Ga="Operation",Xa="Duration",Va="Errors",Ka="Keep Percentage",Ya="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ja="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",qa="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Qa="Retain traces with errors from the selected services and operations.",Za="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",es="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ts={highlyRelevant:Za,noisy:es,costReduction:void 0},ns="Type rule name",os="Add note here...",rs="Type here",is="Search source name",as="e.g. collector.my.vendor.com",ss="Optional notes (not used by the system). Add any context or details for this sampling rule.",ls="Rule will apply to all sources in the cluster",cs="If multiple source scopes are set, they must all match simultaneously.",ds="All sources",us="-",ps="All",hs="Sources",gs="Namespaces",ms="Languages",fs="any of",ys="AND",bs="All operations",vs="HTTP server endpoint",Es="HTTP client endpoint",$s="Kafka consumer",Ss="Kafka producer",Cs="Sampling Rules",xs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',ws="Refresh",Ts="Create rule",Os="Sampling docs",Ns="75vw",As="Delete rule?",Is="Are you sure you want to delete this sampling rule?",_s="Delete",Rs="Cancel",Ds="Kubernetes Health Probes",ks="Keep All Error Traces",Ls="Drop Traces Cluster-Wide",Ps="A rule with the same matching conditions already exists.",Ms="Create this rule as-is?",Us="This rule still uses the default configuration.\nDo you want to create it anyway?",Fs="Rule preview",zs="Continue editing",Bs="Create 'Noisy Operation Kubernetes Health Probes' rule",Hs="Edit 'Noisy Operation Kubernetes Health Probes' rule",js="Automatically detect and sample health probe traces across the cluster.",Ws="Create 'Highly Relevant Operations' rule",Gs="Edit 'Highly Relevant Operations' rule",Xs="Automatically keep all error traces across the entire cluster.",Vs="Create 'Cost Reduction' rule",Ks="Edit 'Cost Reduction' rule",Ys="Automatically drop a percentage of traces across the entire cluster.",Js="Skip setup",qs="Start setup",Qs="Next",Zs="Go to Sampling",el="Read more",tl="Welcome to Sampling",nl="Cut costs without losing what matters",ol="Odigos sampling works in three stages:",rl="Filter noisy traffic",il="Remove non-actionable traces like health checks.",al="Guarantee highly relevance operations",sl="Keep traces with errors, high latency, or mission-critical endpoints/services.",ll="Reduce cost",cl="Sample routine traffic using percentages.",dl="Sampling does not drop individual spans - it keeps or drops the entire trace.",ul="Filter noisy operations",pl="Cut traces with little or no observability value (health-checks, metric scarping, etc)",hl="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.",gl="Preset Rules",ml="Kubernetes Health Probes",fl="Automatically ignore health checks",yl="You can review, adjust, and add additional custom rules later.",bl="Choose your sampling strategy",vl="Pick the approach that best fits your balance of cost vs data-completeness",El="Keep List",$l="Budget Friendly",Sl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Cl="Cost-oriented - keeps only what you explicitly select.",xl="Best for very large clusters with high volumes of traces and high costs.",wl="Higher risk of missing important traces without ongoing review.",Tl="Drop List",Ol="Safe Choice",Nl="Define which traces must be aggressively dropped, while all others are kept by default.",Al="Preserves most data unless explicitly filtered.",Il="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",_l="Advanced",Rl="Maximum Flexibility",Dl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",kl="'Keep List' profile",Ll="Protect important traces",Pl="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:",Ml="Traces with errors",Ul="Slow requests (duration above threshold)",Fl="Mission-Critical endpoints or services",zl="Services under test or evaluation",Bl="New deployments",Hl="You can review, adjust, and add rules once onboarding is complete.",jl="Common Rules",Wl="Preset Rules",Gl="Error collection - entire cluster",Xl="Keep all traces with errors",Vl="Ambient sampling percentage",Kl="'Drop List' profile",Yl="Reduce high-volume traffic",Jl="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.",ql="Advanced Configuration",Ql="Configure sampling rules",Zl="Advanced mode allows you to configure all sampling categories:",ec="Noise Filtering - remove non-actionable traces",tc="Highly Relevance - guarantee important traces are kept",nc='Cost Control - drop traces for "Normal" operations',oc="Rules can target:",rc="Services",ic="HTTP Endpoints",ac="DB Operations",sc="Errors",lc="Latency and more...",cc="Sampling configured successfully!",dc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",uc="Odigos will now:",pc="Filter noisy operations",hc="Guarantee important traces",gc="Reduce cost using controlled sampling",mc="Recommended",fc={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."},yc={noisy:Bs,highlyRelevant:Ws,costReduction:Vs},bc={noisy:Hs,highlyRelevant:Gs,costReduction:Ks},vc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Ec=[{id:Wn.Logs,value:"Logs"},{id:Wn.Metrics,value:"Metrics"},{id:Wn.Traces,value:"Traces"},{id:Wn.Profiles,value:"Profiles"}],$c=6048e5,Sc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:$o.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Cc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:bo},xc=Pt(e=>({...Cc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Cc)}));var wc;(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"})(wc||(wc={}));const Tc=e=>`add-${lo(e).replaceAll(" ","-").toLowerCase()}`,Oc=e=>`edit-${lo(e).replaceAll(" ","-").toLowerCase()}`,Nc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Ac=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),Ic=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:Ac})),_c=Pt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Rc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Rc||(Rc={}));const Dc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),kc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Lc=Pt((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=Dc();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:kc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=Dc(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:kc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Pc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Mc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Uc=(e,t)=>e.destinationType.type!==t.destinationType.type,Fc=Pt(e=>({...Mc,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=>Uc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Uc(e,t))})),clearStore:()=>e(()=>({...Mc}))})),zc=e=>{function t(){return void 0===e?{}:Fo(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Bt((e,t)=>zo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=Fo(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=Fo(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},Bc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Hc=()=>{const{addNotification:e}=_c(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=zc(Bc);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":vi(t)&&(o[e]=So.FIELD_IS_REQUIRED)}}),t.type===on.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=So.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:wn.Warning,title:n.alertTitle,message:So.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:a})=>{const s={...Fo(Bc),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case rn.LabelsAttributes:case rn.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case rn.CollectContainerAttributes:case rn.CollectReplicaSetAttributes:case rn.CollectWorkloadId:case rn.CollectClusterId:case rn.ClusterAttributes:case rn.OverwriteExistingValues:case rn.AttributeNamesToDelete:case rn.Renames:case rn.PiiCategories:case rn.ExtractAttribute:case rn.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var n}),o(void 0,void 0,s)}}},jc=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Wc=()=>{const e=jt(null),[t,n]=Ft(0),[o,r]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Gc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Gc||(Gc={}));const Xc=o.div`
|
|
194
|
+
animation: ${si} 1s reverse linear infinite;
|
|
195
|
+
`,ci=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},di=({icon:n,title:o,titleColor:r,titleSize:a=go.S,subTitle:s,subTitleColor:l,subTitleSize:c=go.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?ci(d):"");zt(()=>{if(!d)return;S(ci(d));const e=setInterval(()=>S(ci(d)),1e3);return()=>clearInterval(e)},[d]);const $=r||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(Zr,{$gap:16,$alignItems:"center",children:[y?t(Br,{scale:1.7,icon:b}):h?t(kr,{percentage:f}):g?t(Fr,{scale:m}):null,(o||s||d||n||u)&&e(Zr,{$gap:8,$alignItems:"center",children:[e(Qr,{$gap:4,children:[n&&t(n,{}),u?t(li,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:o||"Loading..."}):o?t(vo,{align:"center",size:a,color:$,children:o}):null]}),s?t(vo,{align:"center",size:c,color:C,children:s}):null,E?t(vo,{align:"center",size:c,color:$,children:E}):null]})]})},ui=(e,t)=>({[Tn.Default]:n=>re({fill:Ar(t,e,"300"),...n}),[Tn.Info]:n=>ot({fill:Ar(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Ar(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Ar(t,e,"500"),...n}),[Tn.Success]:n=>y({fill:Ar(t,e,"500"),...n}),[Tn.Loading]:e=>di({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>b({fill:Ar(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Ar(t,e,"300"),...n})}[e]),pi=e=>{switch(e){case Pn.Success:return Tn.Success;case Pn.Error:case Pn.Failure:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Unsupported:case Pn.Unknown:return Tn.Info;case Pn.Irrelevant:case Pn.Disabled:return Tn.Disabled;case Pn.Waiting:return Tn.Loading;case Pn.Pending:default:return Tn.Default}},hi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},gi={redis:E,mysql:C,postgresql:S,postgres:S,kafka:v,elasticsearch:$e,clickhouse:Ae,oracle:ee,aws:rt},mi={sts:ft,dynamodb:mt,s3:K,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:Ne},fi=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=gi[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=gi[o.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=mi[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(gi))if(i.includes(e))return t;return je},yi=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:n,kind:o,region:r}=e;return{namespace:t,name:n,kind:o,region:r||void 0}},bi=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Do(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},vi=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Tn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Ei(e){if(!e||0===e.length)return null;const t=[],n=[],o=[];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&&n.push(a),s&&o.push(s)}return 0===t.length&&0===n.length&&0===o.length?null:{sources:t,namespaces:n,languages:o}}function Si(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function $i(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ei(t??null)}}function Ci(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Si(t??null)}}const xi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),wi=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ti=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Oi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ni=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ai=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Ii=e=>Ai.test(e),_i=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:po(t),reason:n?po(n):"",message:o}))||[],Ri=(e,t)=>{const n=Do(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Di=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],ki=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Li=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Pi=e=>e.replace(/[^\d]/g,""),Mi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Ui=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},Fi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},zi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>zi(e)))}else if("object"==typeof o&&null!==o){const e=zi(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Bi=(e,t=2)=>JSON.stringify(e||{},null,t),Hi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),ji=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Wi={PID:"process.pid",VPID:"process.vpid"},Gi={[En.Go]:"Go",[En.Java]:"Java",[En.JavaScript]:"Node.js",[En.Python]:"Python",[En.DotNet]:".NET",[En.CSharp]:"C#",[En.CPlusPlus]:"C++",[En.Php]:"PHP",[En.Ruby]:"Ruby",[En.Rust]:"Rust",[En.Swift]:"Swift",[En.Elixir]:"Elixir",[En.MySql]:"MySQL",[En.Nginx]:"Nginx",[En.Postgres]:"PostgreSQL",[En.Redis]:"Redis",[En.Kafka]:"Kafka",[En.Ignored]:"Ignored",[En.Unknown]:"Unknown",[En.Processing]:"Processing",[En.NoContainers]:"No Containers",[En.NoRunningPods]:"No Running Pods"},Xi=[{id:En.Go,label:Gi[En.Go],icon:ir(En.Go)},{id:En.Java,label:Gi[En.Java],icon:ir(En.Java)},{id:En.JavaScript,label:Gi[En.JavaScript],icon:ir(En.JavaScript)},{id:En.Python,label:Gi[En.Python],icon:ir(En.Python)},{id:En.Php,label:Gi[En.Php],icon:ir(En.Php)},{id:En.Ruby,label:Gi[En.Ruby],icon:ir(En.Ruby)},{id:En.Rust,label:Gi[En.Rust],icon:ir(En.Rust)},{id:En.DotNet,label:Gi[En.DotNet],icon:ir(En.DotNet)},{id:En.CSharp,label:Gi[En.CSharp],icon:ir(En.CSharp)},{id:En.CPlusPlus,label:Gi[En.CPlusPlus],icon:ir(En.CPlusPlus)},{id:En.Swift,label:Gi[En.Swift],icon:ir(En.Swift)},{id:En.Elixir,label:Gi[En.Elixir],icon:ir(En.Elixir)}],Vi={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},Ki={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:ir(En.Go)},Vi],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:ir(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:ir(En.JavaScript)},Vi],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:ir(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:ir(En.Python)},Vi],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:ir(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:ir(En.Java)},Vi],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:ir(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:ir(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:ir(En.DotNet)},Vi],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:ir(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:ir(En.Ruby)},Vi],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:ir(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:ir(En.Php)},Vi],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:ir(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:ir(En.MySql)}]},[En.CPlusPlus]:{community:[Vi],enterprise:[]},[En.Rust]:{community:[Vi],enterprise:[]},[En.Swift]:{community:[Vi],enterprise:[]},[En.Elixir]:{community:[Vi],enterprise:[]},[En.Nginx]:{community:[Vi],enterprise:[]},[En.Postgres]:{community:[Vi],enterprise:[]},[En.Redis]:{community:[Vi],enterprise:[]},[En.Kafka]:{community:[Vi],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[Vi],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},Yi="*",Ji=e=>!!e?.includes(Yi),qi=e=>e?.length?Ji(e)?[Yi]:e:[],Qi=e=>{if(e?.length&&!Ji(e))return e.filter(e=>e!==Yi)},Zi=e=>e===Yi?"All languages":Gi[e]??e,ea=e=>e===Yi?bt:ir(e),ta=[{type:Mn.CodeAttributes,icon:uo(Mn.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:[En.Go,En.Python,En.JavaScript]},{type:Mn.CustomInstrumentation,icon:uo(Mn.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:[En.Go,En.Java,En.Php]},{type:Mn.HeadersCollection,icon:uo(Mn.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:[En.Go,En.Java,En.JavaScript]},{type:Mn.PayloadCollection,icon:uo(Mn.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:[En.Go,En.JavaScript]}],na=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:uo(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},oa={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.'},ra={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."},ia={[pn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[pn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[pn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},aa="Cancel",sa="Save",la="Edit rule",ca="Edit auto rule",da="Create rule",ua="Delete rule",pa="Save",ha="Create your first rule",ga="No Rules Exist",ma="No Results",fa=e=>`No rules match the search term "${e}"`,ya="Rule name",ba="Rule type",va="Select the type of condition that makes a trace highly relevant.",Ea="Rule Enabled",Sa="Rule Disabled",$a="Enabled",Ca="Disabled",xa="Note",wa="HTTP route",Ta="Method",Oa="Keep Percentage",Na="Keep traces with duration larger than",Aa="Keep traces with errors",Ia="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",_a="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ra="Custom percentage",Da="Disabled rule",ka="Sample",La="Keep all",Pa="Drop all",Ma="Operation type",Ua="HTTP route prefix",Fa="Templated path",za="Templated path prefix",Ba="Kafka topic",Ha="Custom duration (ms)",ja="No preview available",Wa="Server address",Ga="Drop at most this percentage of matching traces",Xa="Unnamed rule",Va="Sampling Preview",Ka="Source Scope",Ya="Unknown source",Ja="Operation",qa="Duration",Qa="Errors",Za="Keep Percentage",es="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ts="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.",ns="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",os="Retain traces with errors from the selected services and operations.",rs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",is="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",as={highlyRelevant:rs,noisy:is,costReduction:void 0},ss="Type rule name",ls="Add note here...",cs="Type here",ds="Search source name",us="e.g. collector.my.vendor.com",ps="Optional notes (not used by the system). Add any context or details for this sampling rule.",hs="Rule will apply to all sources in the cluster",gs="If multiple source scopes are set, they must all match simultaneously.",ms="All sources",fs="-",ys="All",bs="Sources",vs="Namespaces",Es="Languages",Ss="any of",$s="AND",Cs="All operations",xs="HTTP server endpoint",ws="HTTP client endpoint",Ts="Kafka consumer",Os="Kafka producer",Ns="Sampling Rules",As='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Is="Refresh",_s="Create rule",Rs="Sampling docs",Ds="75vw",ks="Delete rule?",Ls="Are you sure you want to delete this sampling rule?",Ps="Delete",Ms="Cancel",Us="Kubernetes Health Probes",Fs="Keep All Error Traces",zs="Drop Traces Cluster-Wide",Bs="A rule with the same matching conditions already exists.",Hs="Create this rule as-is?",js="This rule still uses the default configuration.\nDo you want to create it anyway?",Ws="Rule preview",Gs="Continue editing",Xs="Create 'Noisy Operation Kubernetes Health Probes' rule",Vs="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ks="Automatically detect and sample health probe traces across the cluster.",Ys="Create 'Highly Relevant Operations' rule",Js="Edit 'Highly Relevant Operations' rule",qs="Automatically keep all error traces across the entire cluster.",Qs="Create 'Cost Reduction' rule",Zs="Edit 'Cost Reduction' rule",el="Automatically drop a percentage of traces across the entire cluster.",tl="Skip setup",nl="Start setup",ol="Next",rl="Go to Sampling",il="Read more",al="Welcome to Sampling",sl="Cut costs without losing what matters",ll="Odigos sampling works in three stages:",cl="Filter noisy traffic",dl="Remove non-actionable traces like health checks.",ul="Guarantee highly relevance operations",pl="Keep traces with errors, high latency, or mission-critical endpoints/services.",hl="Reduce cost",gl="Sample routine traffic using percentages.",ml="Sampling does not drop individual spans - it keeps or drops the entire trace.",fl="Filter noisy operations",yl="Cut traces with little or no observability value (health-checks, metric scarping, etc)",bl="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.",vl="Preset Rules",El="Kubernetes Health Probes",Sl="Automatically ignore health checks",$l="You can review, adjust, and add additional custom rules later.",Cl="Choose your sampling strategy",xl="Pick the approach that best fits your balance of cost vs data-completeness",wl="Keep List",Tl="Budget Friendly",Ol="Define which traces must be kept, while all others are sampled by default to minimize cost.",Nl="Cost-oriented - keeps only what you explicitly select.",Al="Best for very large clusters with high volumes of traces and high costs.",Il="Higher risk of missing important traces without ongoing review.",_l="Drop List",Rl="Safe Choice",Dl="Define which traces must be aggressively dropped, while all others are kept by default.",kl="Preserves most data unless explicitly filtered.",Ll="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Pl="Advanced",Ml="Maximum Flexibility",Ul="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Fl="'Keep List' profile",zl="Protect important traces",Bl="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:",Hl="Traces with errors",jl="Slow requests (duration above threshold)",Wl="Mission-Critical endpoints or services",Gl="Services under test or evaluation",Xl="New deployments",Vl="You can review, adjust, and add rules once onboarding is complete.",Kl="Common Rules",Yl="Preset Rules",Jl="Error collection - entire cluster",ql="Keep all traces with errors",Ql="Ambient sampling percentage",Zl="'Drop List' profile",ec="Reduce high-volume traffic",tc="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.",nc="Advanced Configuration",oc="Configure sampling rules",rc="Advanced mode allows you to configure all sampling categories:",ic="Noise Filtering - remove non-actionable traces",ac="Highly Relevance - guarantee important traces are kept",sc='Cost Control - drop traces for "Normal" operations',lc="Rules can target:",cc="Services",dc="HTTP Endpoints",uc="DB Operations",pc="Errors",hc="Latency and more...",gc="Sampling configured successfully!",mc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",fc="Odigos will now:",yc="Filter noisy operations",bc="Guarantee important traces",vc="Reduce cost using controlled sampling",Ec="Recommended",Sc={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},$c={noisy:Xs,highlyRelevant:Ys,costReduction:Qs},Cc={noisy:Vs,highlyRelevant:Js,costReduction:Zs},xc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},wc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],Tc=6048e5,Oc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:xo.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Nc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:So},Ac=Pt(e=>({...Nc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Nc)}));var Ic;(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"})(Ic||(Ic={}));const _c=e=>`add-${po(e).replaceAll(" ","-").toLowerCase()}`,Rc=e=>`edit-${po(e).replaceAll(" ","-").toLowerCase()}`,Dc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),kc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),Lc=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:kc})),Pc=Pt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Mc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Mc||(Mc={}));const Uc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Fc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),zc=Pt((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=Uc();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:Fc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=Uc(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:Fc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Bc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Hc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},jc=(e,t)=>e.destinationType.type!==t.destinationType.type,Wc=Pt(e=>({...Hc,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=>jc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>jc(e,t))})),clearStore:()=>e(()=>({...Hc}))})),Gc=e=>{function t(){return void 0===e?{}:Ho(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Bt((e,t)=>jo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=Ho(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=Ho(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},Xc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Vc=()=>{const{addNotification:e}=Pc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Gc(Xc);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":xi(t)&&(o[e]=wo.FIELD_IS_REQUIRED)}}),t.type===on.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=wo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:wo.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:a})=>{const s={...Ho(Xc),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case an.LabelsAttributes:case an.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case an.CollectContainerAttributes:case an.CollectReplicaSetAttributes:case an.CollectWorkloadId:case an.CollectClusterId:case an.ClusterAttributes:case an.OverwriteExistingValues:case an.AttributeNamesToDelete:case an.Renames:case an.PiiCategories:case an.ExtractAttribute:case an.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var n}),o(void 0,void 0,s)}}},Kc=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Yc=()=>{const e=jt(null),[t,n]=Ft(0),[o,r]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Jc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Jc||(Jc={}));const qc=o.div`
|
|
196
196
|
width: ${({$size:e})=>1.5*e}px;
|
|
197
197
|
height: ${({$size:e})=>1.5*e}px;
|
|
198
198
|
display: flex;
|
|
@@ -203,7 +203,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
203
203
|
&:hover {
|
|
204
204
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`,Qc=({"data-id":e,icon:n,size:o=Jc.S,onClick:r,disabled:i})=>t(qc,{"data-id":e,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:t(n,{size:o})}),Zc=({onDone:e}={})=>{const[n,o]=Ft(!1),[r,i]=Ft(-1),a=Bt(async(t,r)=>{if(!n){if(o(!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(()=>{o(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:o})=>t(Qc,{icon:n?vt:Et,size:o,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},ed=e=>{const{addNotification:t}=Pc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=Gc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?wi(n.name)?o.name=void 0:(r=!1,o.name=wo.ILLEGAL_K8S_LABEL):(r=!1,o.name=wo.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:wo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...Ho(e),name:t};o(void 0,void 0,n)}}},td={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},nd=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Pc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Gc(td),[c,d]=Ft([]),[u,p]=Ft([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Do(o,{}),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:n,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:r,value:i,renderCondition:a,...Do(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Do(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===Di(r.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:o,required:r})=>{r&&!o&&(n=!1,t[e]=wo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:Tn.Warning,title:e.alertTitle,message:wo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:r})=>{const i={...Ho(td),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Do(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},od={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Un.Column]:null,[Un.FilePath]:null,[Un.Function]:null,[Un.LineNumber]:null,[Un.Namespace]:null,[Un.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},rd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Gc(od);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:c})=>{const d={...Ho(od),ruleName:e,notes:t,disabled:o,sourceScopes:r??null,networkMetrics:c??null};i&&(d.payloadCollection={[Bn.HttpRequest]:i[Bn.HttpRequest]?{}:null,[Bn.HttpResponse]:i[Bn.HttpResponse]?{}:null,[Bn.DbQuery]:i[Bn.DbQuery]?{}:null,[Bn.Messaging]:i[Bn.Messaging]?{}:null}),a&&(d.codeAttributes={[Un.Column]:a[Un.Column]||null,[Un.FilePath]:a[Un.FilePath]||null,[Un.Function]:a[Un.Function]||null,[Un.LineNumber]:a[Un.LineNumber]||null,[Un.Namespace]:a[Un.Namespace]||null,[Un.StackTrace]:a[Un.StackTrace]||null}),s&&(d.headersCollection=s),l&&(d.customInstrumentations={[zn.Java]:l[zn.Java]||null,[zn.Golang]:l[zn.Golang]||null,[zn.Php]:l[zn.Php]||null}),n(void 0,void 0,d)}}},id=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&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,n,o,r,i,a]),null),ad="data-ignore-outside-click",sd=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(ad))return!0;t=t.parentNode}return!1})(o)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},ld=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return Wt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),o},cd=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:o})},r);return()=>window.clearTimeout(a)},[e,t,n,o,r]),i},dd=({sectionNames:e,threshold:t=.4})=>{const[n,o]=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,o(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),zt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},ud=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=jt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return sd(r,()=>{i&&(a(!1),n?.())}),{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},pd=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Do(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),hd={otelServiceName:"",currentStreamName:""},gd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Gc(hd);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...Ho(hd),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const md=new Xt(Vt.locale),fd=[{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"}],yd=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),bd=()=>{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 md.format(yd(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=yd(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===n?"0s":o?"just now":"0 seconds";const a=[];for(const e of fd){if(a.length===t)break;const o=Math.floor(i/e.ms);if(!(o<=0&&0===a.length)){if(o<=0)break;i-=o*e.ms,a.push("short"===n?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return o&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},vd=o.div`
|
|
207
207
|
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
208
208
|
position: relative;
|
|
209
209
|
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
@@ -215,7 +215,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
`}
|
|
218
|
-
`,
|
|
218
|
+
`,Ed=o.div`
|
|
219
219
|
position: fixed;
|
|
220
220
|
top: ${({$top:e})=>e}px;
|
|
221
221
|
left: ${({$left:e})=>e}px;
|
|
@@ -227,21 +227,21 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
227
227
|
min-width: 0;
|
|
228
228
|
|
|
229
229
|
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
230
|
-
`,
|
|
230
|
+
`,Sd=o.div`
|
|
231
231
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
232
232
|
border-radius: 4px;
|
|
233
233
|
padding: 8px;
|
|
234
234
|
max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
|
|
235
235
|
box-sizing: border-box;
|
|
236
236
|
min-width: 0;
|
|
237
|
-
|
|
237
|
+
`,$d=o.div`
|
|
238
238
|
display: flex;
|
|
239
239
|
flex-direction: column;
|
|
240
240
|
align-items: flex-start;
|
|
241
241
|
gap: 8px;
|
|
242
242
|
width: 100%;
|
|
243
243
|
min-width: 0;
|
|
244
|
-
`,
|
|
244
|
+
`,Cd=o.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
width: 100%;
|
|
247
247
|
flex-shrink: 0;
|
|
@@ -251,7 +251,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
251
251
|
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
252
252
|
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
253
253
|
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
254
|
-
`,
|
|
254
|
+
`,xd=o.div`
|
|
255
255
|
width: 0;
|
|
256
256
|
height: 0;
|
|
257
257
|
border-style: solid;
|
|
@@ -260,7 +260,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
260
260
|
flex-shrink: 0;
|
|
261
261
|
|
|
262
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
|
-
`,
|
|
263
|
+
`,wd=({withIcon:o,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:$,handlePosition:C}=ud({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,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:o}=e;x?C(S.left||n,S.top||o):C(n,o),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e(vd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,o&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(Ed,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&t(Cd,{$align:$.align,children:t(xd,{$pointsUp:!0})}),t(Sd,{$maxWidth:p,children:e($d,{children:[(!!r||!!a)&&e(Qr,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(vo,{size:go.XS,children:a},"title")]}),f.map((e,n)=>t(vo,{size:go.XXXS,children:e},n)),!!l&&t(vo,{size:go.XXXS,color:mo.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&t(Cd,{$align:$.align,children:t(xd,{$pointsUp:!1})})]}),document.body)]})},Td=o.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
align-items: center;
|
|
266
266
|
justify-content: center;
|
|
@@ -270,7 +270,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
270
270
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
271
271
|
border-radius: 100px;
|
|
272
272
|
background-color: ${({$backgroundColor:e})=>e};
|
|
273
|
-
`,
|
|
273
|
+
`,Od=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=Tn.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),y=Tn.Loading===s,b=s?[Tn.Disabled,Tn.Loading].includes(s)?Ar(m,s,c?"400":"700"):[Tn.Unknown].includes(s)?Ar(m,s,"600"):Ar(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(c&&![Tn.Unknown].includes(s)?b:[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[400]:[Tn.Error,Tn.Warning,Tn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(c&&![Tn.Unknown].includes(s)?[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(wd,{text:a,fullWidth:g,children:e(Td,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&o?o?t(o,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(di,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(di,{withGradient:!0,title:f,titleSize:d||go.XXS}):t(vo,{color:v,size:d||go.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var Nd,Ad;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Nd||(Nd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Ad||(Ad={}));const Id=o.button`
|
|
274
274
|
display: flex;
|
|
275
275
|
align-items: center;
|
|
276
276
|
justify-content: center;
|
|
@@ -280,14 +280,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
280
280
|
`}
|
|
281
281
|
border: none;
|
|
282
282
|
border-radius: 6px;
|
|
283
|
-
${({$size:e,$hasLabel:t})=>e===
|
|
283
|
+
${({$size:e,$hasLabel:t})=>e===Ad.S?r`
|
|
284
284
|
height: 32px;
|
|
285
285
|
${t?r`
|
|
286
286
|
padding: 8px 16px;
|
|
287
287
|
`:r`
|
|
288
288
|
width: 32px;
|
|
289
289
|
`}
|
|
290
|
-
`:e===
|
|
290
|
+
`:e===Ad.M?r`
|
|
291
291
|
height: 38px;
|
|
292
292
|
${t?r`
|
|
293
293
|
padding: 8px 18px;
|
|
@@ -312,7 +312,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
312
312
|
${({$withShadow:e})=>e?r`
|
|
313
313
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
314
314
|
`:""}
|
|
315
|
-
${({$variant:e})=>e===
|
|
315
|
+
${({$variant:e})=>e===Nd.Primary?r`
|
|
316
316
|
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
317
317
|
&:hover {
|
|
318
318
|
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
@@ -320,7 +320,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
320
320
|
&:active {
|
|
321
321
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
322
322
|
}
|
|
323
|
-
`:e===
|
|
323
|
+
`:e===Nd.Secondary?r`
|
|
324
324
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
325
325
|
&:hover {
|
|
326
326
|
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
@@ -328,7 +328,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
328
328
|
&:active {
|
|
329
329
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
330
330
|
}
|
|
331
|
-
`:e===
|
|
331
|
+
`:e===Nd.Text?r`
|
|
332
332
|
background-color: transparent;
|
|
333
333
|
&:hover {
|
|
334
334
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
@@ -338,7 +338,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
338
338
|
}
|
|
339
339
|
`:""}
|
|
340
340
|
}
|
|
341
|
-
`,
|
|
341
|
+
`,_d=Mt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Nd.Primary,size:u=Ad.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),$=p||(u===Ad.L?18:16),C=u===Ad.L?go.S:go.XS,x=f||(y?S.v2.colors.grey[400]:S.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(Id,{ref:E,"data-id":o,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,...v,disabled:N,onClick:N?void 0:A,children:t(wd,{text:a,withIcon:!s,children:O?t(di,r?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ei,{$width:"fit-content",children:t(l,{size:$,fill:x})}),r?t(vo,{size:C,weight:500,color:x,nowrap:!0,children:r}):null,c&&t(ei,{$width:"fit-content",children:t(c,{size:$,fill:x})})]})})})});_d.displayName=_d.name;const Rd={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"}},Dd={v2:Rd.v2,darkMode:!0,colors:{...Rd.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:Rd.font_family},kd={v2:Rd.v2,darkMode:!1,colors:{...Rd.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:Rd.font_family},Ld=e=>e?Dd:kd,Pd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Rd,darkModeTheme:Dd,getTheme:Ld,lightModeTheme:kd},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.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 Md=({children:e})=>{const{darkMode:n}=Oc();return t(s,{theme:Ld(n),children:e})},Ud={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"},Fd=Object.freeze(Object.defineProperty({__proto__:null,hex:Ud},Symbol.toStringTag,{value:"Module"})),zd={in:{left:a`
|
|
342
342
|
from { transform: translateX(-100%); }
|
|
343
343
|
to { transform: translateX(0); }
|
|
344
344
|
`,right:a`
|
|
@@ -368,7 +368,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
368
368
|
`,center:a`
|
|
369
369
|
from { transform: translate(-50%, -50%); }
|
|
370
370
|
to { transform: translate(-50%, 100%); }
|
|
371
|
-
`}},
|
|
371
|
+
`}},Bd={in:a`
|
|
372
372
|
from {
|
|
373
373
|
width: 0%;
|
|
374
374
|
}
|
|
@@ -382,7 +382,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
382
382
|
to {
|
|
383
383
|
width: 0%;
|
|
384
384
|
}
|
|
385
|
-
`},
|
|
385
|
+
`},Hd=a`
|
|
386
386
|
0% {
|
|
387
387
|
transform: scale(1);
|
|
388
388
|
opacity: 1;
|
|
@@ -391,14 +391,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
391
391
|
transform: scale(2);
|
|
392
392
|
opacity: 0;
|
|
393
393
|
}
|
|
394
|
-
`,
|
|
394
|
+
`,jd=a`
|
|
395
395
|
0% {
|
|
396
396
|
background-position: -500px 0;
|
|
397
397
|
}
|
|
398
398
|
100% {
|
|
399
399
|
background-position: 500px 0;
|
|
400
400
|
}
|
|
401
|
-
`,
|
|
401
|
+
`,Wd={in:a`
|
|
402
402
|
from {
|
|
403
403
|
opacity: 0;
|
|
404
404
|
}
|
|
@@ -412,7 +412,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
412
412
|
to {
|
|
413
413
|
opacity: 0;
|
|
414
414
|
}
|
|
415
|
-
`},
|
|
415
|
+
`},Gd=Object.freeze(Object.defineProperty({__proto__:null,fade:Wd,ping:Hd,progress:Bd,shimmer:jd,slide:zd},Symbol.toStringTag,{value:"Module"}));var Xd,Vd;(e=>{e.S="s",e.L="l"})(Xd||(Xd={})),(e=>{e.Filled="filled",e.Underline="underline"})(Vd||(Vd={}));const Kd=o.div`
|
|
416
416
|
display: flex;
|
|
417
417
|
align-items: center;
|
|
418
418
|
gap: 2px;
|
|
@@ -421,20 +421,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
421
421
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
422
422
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
423
423
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
424
|
-
`,
|
|
424
|
+
`,Yd=o.button`
|
|
425
425
|
flex: 1;
|
|
426
426
|
display: flex;
|
|
427
427
|
align-items: center;
|
|
428
428
|
justify-content: center;
|
|
429
429
|
gap: 8px;
|
|
430
|
-
padding: ${({$size:e})=>e===
|
|
430
|
+
padding: ${({$size:e})=>e===Xd.S?"4px 8px":"8px 16px"};
|
|
431
431
|
border-radius: 6px;
|
|
432
432
|
border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
|
|
433
433
|
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
434
434
|
|
|
435
435
|
${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:o})=>e?r`
|
|
436
436
|
cursor: not-allowed;
|
|
437
|
-
background-color: ${t?(n||o.v2.colors.black[500])+
|
|
437
|
+
background-color: ${t?(n||o.v2.colors.black[500])+Ud["040"]:"transparent"};
|
|
438
438
|
`:r`
|
|
439
439
|
cursor: pointer;
|
|
440
440
|
background-color: ${t?n||o.v2.colors.black[500]:"transparent"};
|
|
@@ -442,11 +442,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
442
442
|
background-color: ${t?n||o.v2.colors.black[500]:o.v2.colors.silver[800]};
|
|
443
443
|
}
|
|
444
444
|
`}
|
|
445
|
-
`,
|
|
445
|
+
`,Jd=o.div`
|
|
446
446
|
display: flex;
|
|
447
447
|
align-items: stretch;
|
|
448
448
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
449
|
-
`,
|
|
449
|
+
`,qd=o.button`
|
|
450
450
|
display: flex;
|
|
451
451
|
height: 34px;
|
|
452
452
|
padding: 8px 12px 8px 16px;
|
|
@@ -465,7 +465,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
465
465
|
&:hover {
|
|
466
466
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
467
467
|
}
|
|
468
|
-
`,
|
|
468
|
+
`,Qd=({"data-id":o,size:r=Xd.S,variant:a=Vd.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Vd.Underline,g=h?qd:Yd;return t(h?Jd:Kd,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const v=l===o,E=y||d,S=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],$=r===Xd.S?go.XXS:go.XS,C=v?500:400,x=e(n,{children:[a&&t(a,{fill:S}),i&&t(vo,{size:$,weight:C,color:S,nowrap:!0,children:i}),s&&t(Od,{...s})]});return t(g,{onClick:()=>!E&&c(o),$disabled:E,$isSelected:v,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?t(wd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${o}`)})})},Zd=o.div`
|
|
469
469
|
box-sizing: border-box !important;
|
|
470
470
|
width: ${({$width:e})=>e??"fit-content"};
|
|
471
471
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -479,7 +479,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
479
479
|
border: none;
|
|
480
480
|
border-radius: 6px;
|
|
481
481
|
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:o,theme:r})=>{const i=n??r.v2.colors.silver[800],a=o??r.v2.colors.silver[700];return e||t?a:i}};
|
|
482
|
-
`,
|
|
482
|
+
`,eu=o.input`
|
|
483
483
|
min-width: 0;
|
|
484
484
|
flex: 1;
|
|
485
485
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -496,7 +496,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
496
496
|
overflow: hidden;
|
|
497
497
|
text-overflow: ellipsis;
|
|
498
498
|
white-space: nowrap;
|
|
499
|
-
`,
|
|
499
|
+
`,tu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,v]=Ft(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!d?.options?.length,$=Ht(()=>{if(S)return d?.options.find(e=>e.value===d.selected)?.label},[S,d?.options,d?.selected]),C=Ht(()=>l||(S&&$?`Search by ${$.toLowerCase()}`:"Search..."),[l,S,$]);return e(Zd,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:E}),t(eu,{"data-id":n??"search",name:"search",type:"text",placeholder:C,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(Qd,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},nu=o.div`
|
|
500
500
|
display: flex;
|
|
501
501
|
align-items: center;
|
|
502
502
|
justify-content: center;
|
|
@@ -505,41 +505,41 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
505
505
|
padding: 8px;
|
|
506
506
|
border-radius: 100%;
|
|
507
507
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
508
|
-
`,
|
|
508
|
+
`,ou=({icon:n=$t,hideIcon:o=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(Zr,{$gap:12,$alignItems:"center",children:[!o&&t(nu,{children:t(n,{size:32,fill:c})}),e(Zr,{$gap:4,$alignItems:"center",children:[t(vo,{size:go.S,align:"center",children:r}),a&&t(vo,{size:go.XXS,align:"center",color:c,children:a})]}),s&&t(_d,{variant:Nd.Secondary,...s}),l]})},ru=o.span`
|
|
509
509
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
510
510
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
511
511
|
font-weight: 400;
|
|
512
512
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
513
|
-
`,
|
|
513
|
+
`,iu=o.span`
|
|
514
514
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
515
515
|
font-size: 14px;
|
|
516
516
|
font-weight: 400;
|
|
517
517
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
518
|
-
`,
|
|
518
|
+
`,au=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?e(Qr,{$width:a,$justifyContent:"space-between",children:[n&&t(ru,{$smallAndDark:s,children:n}),e(Qr,{$gap:4,children:[i&&t(Od,{...i,textSize:go.XXXS}),r&&t(iu,{children:"*"}),o&&t(wd,{text:o,withIcon:!0})]})]}):null,su=({errorMessage:n,warnMessage:o,helpMessage:r})=>{const a=i(),s=n?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(ot,{size:12,fill:s});return n||o||r?e(Qr,{$alignItems:"center",children:[l&&t(Zr,{children:l}),t(vo,{size:go.XXXS,weight:400,color:s,children:n||o||r})]}):null};var lu;(e=>{e.S="small",e.L="large"})(lu||(lu={}));const cu=o.div`
|
|
519
519
|
width: fit-content;
|
|
520
520
|
display: flex;
|
|
521
521
|
align-items: center;
|
|
522
522
|
gap: 8px;
|
|
523
523
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
524
|
-
`,
|
|
525
|
-
width: ${({$size:e})=>e===
|
|
526
|
-
height: ${({$size:e})=>e===
|
|
524
|
+
`,du=o.div`
|
|
525
|
+
width: ${({$size:e})=>e===lu.S?"16px":"20px"};
|
|
526
|
+
height: ${({$size:e})=>e===lu.S?"16px":"20px"};
|
|
527
527
|
display: flex;
|
|
528
528
|
align-items: center;
|
|
529
529
|
justify-content: center;
|
|
530
530
|
border-radius: 4px;
|
|
531
531
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
532
532
|
background-color: ${({$backgroundColor:e})=>e};
|
|
533
|
-
`,
|
|
533
|
+
`,uu=({name:n,label:o,tooltip:r,badge:a,size:s=lu.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===lu.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],$=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Zr,{$gap:4,children:[e(Qr,{$justifyContent:"space-between",children:[e(cu,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(du,{$size:s,$borderColor:S,$backgroundColor:$,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),o&&t(vo,{size:s===lu.S?go.XXS:go.XS,nowrap:!0,children:o})]}),t(au,{tooltip:r,badge:a})]}),t(su,{errorMessage:p,warnMessage:h,helpMessage:g})]})},pu=o.div`
|
|
534
534
|
display: flex;
|
|
535
|
-
flex-direction: ${({$direction:e})=>e===
|
|
536
|
-
gap: ${({$direction:e})=>e===
|
|
537
|
-
`,
|
|
535
|
+
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
536
|
+
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
537
|
+
`,hu=({direction:n=gn.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===lu.S?go.XXS:go.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(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return e(pu,{$direction:n,children:[o&&a?t(uu,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?t(vo,{size:d,children:o}):null,s.map(e=>t(uu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:r},`${o}-checkbox-${e.id}`))]})};var gu,mu;(e=>{e.Left="left",e.Right="right"})(gu||(gu={})),(e=>{e.Top="top",e.Bottom="bottom"})(mu||(mu={}));const fu=o.div`
|
|
538
538
|
position: relative;
|
|
539
539
|
display: flex;
|
|
540
540
|
flex-direction: column;
|
|
541
541
|
gap: 4px;
|
|
542
|
-
`,
|
|
542
|
+
`,yu=o.div`
|
|
543
543
|
position: fixed;
|
|
544
544
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
545
545
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -557,7 +557,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
557
557
|
border-radius: 6px;
|
|
558
558
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
559
559
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
560
|
-
`,
|
|
560
|
+
`,bu=o.div`
|
|
561
561
|
display: flex;
|
|
562
562
|
flex-direction: column;
|
|
563
563
|
gap: 0;
|
|
@@ -565,7 +565,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
565
565
|
width: 100%;
|
|
566
566
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
567
567
|
overflow-y: auto;
|
|
568
|
-
`,
|
|
568
|
+
`,vu=o.div`
|
|
569
569
|
display: flex;
|
|
570
570
|
align-items: center;
|
|
571
571
|
gap: 8px;
|
|
@@ -581,19 +581,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
581
581
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
582
582
|
}
|
|
583
583
|
`}
|
|
584
|
-
`,
|
|
584
|
+
`,Eu=o.div`
|
|
585
585
|
display: flex;
|
|
586
586
|
align-items: center;
|
|
587
587
|
gap: 8px;
|
|
588
588
|
flex: 1;
|
|
589
589
|
min-width: 0;
|
|
590
|
-
`,
|
|
590
|
+
`,Su=o.div`
|
|
591
591
|
flex: 0 1 auto;
|
|
592
592
|
min-width: 0;
|
|
593
593
|
overflow: hidden;
|
|
594
594
|
text-overflow: ellipsis;
|
|
595
595
|
white-space: nowrap;
|
|
596
|
-
|
|
596
|
+
`,$u=o.span`
|
|
597
597
|
flex-shrink: 0;
|
|
598
598
|
width: 88px;
|
|
599
599
|
display: inline-flex;
|
|
@@ -602,19 +602,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
602
602
|
border-radius: 4px;
|
|
603
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
604
604
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
605
|
-
`,
|
|
605
|
+
`,Cu=o.div`
|
|
606
606
|
flex-shrink: 0;
|
|
607
607
|
display: inline-flex;
|
|
608
608
|
align-items: center;
|
|
609
609
|
gap: 4px;
|
|
610
|
-
`,
|
|
610
|
+
`,xu=({defaultOpen:n,open:o,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),$=void 0!==o,C=!!f||!!y||!!E,[x,w]=Ft(n??!C),T=$?o:x,O=Bt(e=>{$||w(e),r?.(e)},[$,r]),[N,A]=Ft({x:a||gu.Left,y:s||mu.Bottom}),I=jt(null);sd(I,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const o=C?8:0;R({top:t===mu.Bottom?C?n.bottom+o:n.top:void 0,bottom:t===mu.Top?C?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===gu.Left?n.left:void 0,right:e===gu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?gu.Right:gu.Left),y:s||(e.clientY>window.innerHeight/2?mu.Top:mu.Bottom)};A(n),D(n.x,n.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(fu,{ref:I,children:[u&&t(au,{label:u}),f&&t(_d,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(_d,{variant:Nd.Text,size:Ad.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(yu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(tu,{value:P,onChange:M,width:"100%"}),b?t(di,{withSpinner:!0,title:"Loading...",titleSize:go.XS}):U.length?t(bu,{$maxHeight:m,children:U.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(o);return e(vu,{"data-id":`option-${o}`,$selected:d&&!a,onClick:()=>L(o),title:l?`${r} — ${l}`:r,children:[a&&t(uu,{value:d,onChange:()=>L(o)}),i&&t(i,{size:14,fill:n.color||S.v2.colors.white[500]}),s&&t($u,{children:t(vo,{size:go.XXS,nowrap:!0,color:mo.Secondary,children:s})}),e(Eu,{children:[t(Su,{children:t(vo,{size:go.XS,nowrap:!0,color:n.color||mo.Primary,children:r})}),l&&e(Cu,{children:[t(Ge,{size:12,fill:S.v2.colors.silver[200]}),t(vo,{size:go.XS,nowrap:!0,color:mo.Secondary,children:l})]})]})]},o)})}):t(qr,{$padding:"6px 0",children:t(ou,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!U.length&&t(_d,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var wu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(wu||(wu={}));const Tu=({onAnyClick:e,actions:n})=>t(Qr,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case wu.Button:return t(_d,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case wu.ButtonDropData:return t(xu,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Ou=o.div`
|
|
611
611
|
display: flex;
|
|
612
612
|
align-items: center;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
padding: 8px;
|
|
615
615
|
border-radius: 8px;
|
|
616
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
617
|
-
`,
|
|
616
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+Ud["004"]};
|
|
617
|
+
`,Nu=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=go.S,titleColor:a=mo.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=go.XXS,subTitleColor:d=mo.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Zc();return e(Qr,{$gap:l?8:6,$alignItems:"center",children:[n&&(o||l?t(Ou,{children:t(n,{size:24})}):t(n,{size:24})),r||g||l?e(Zr,{children:[r||g?e(Qr,{$gap:6,$alignItems:"center",children:[r&&t(vo,{size:i,color:a,nowrap:!s,children:r}),h&&r&&t(y,{value:r,size:Jc.XS}),p&&t(wd,{text:p,withIcon:!0}),g&&t(Od,{...g})]}):null,l&&t(vo,{size:c,color:d,nowrap:!u,children:l})]}):null,t(Qr,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Au=({children:e,fullText:n,fullWidth:o=!0,...r})=>{const i=jt(null),a=!!r.maxLines&&r.maxLines>0,s=ld(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(wd,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:t(vo,{ref:i,...r,children:e})})},Iu=o.section`
|
|
618
618
|
display: flex;
|
|
619
619
|
flex-direction: column;
|
|
620
620
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -624,22 +624,22 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
624
624
|
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
625
625
|
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
626
626
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
627
|
-
`,
|
|
627
|
+
`,_u=o(Qr)`
|
|
628
628
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
629
629
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
630
|
-
`,
|
|
630
|
+
`,Ru=o.div`
|
|
631
631
|
display: flex;
|
|
632
632
|
align-items: flex-end;
|
|
633
633
|
flex-wrap: wrap;
|
|
634
634
|
width: 100%;
|
|
635
|
-
`,
|
|
635
|
+
`,Du=o.div`
|
|
636
636
|
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
637
637
|
margin: 8px;
|
|
638
638
|
display: flex;
|
|
639
639
|
flex-direction: column;
|
|
640
640
|
gap: 4px;
|
|
641
641
|
min-width: 0;
|
|
642
|
-
`,
|
|
642
|
+
`,ku=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Zc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Du,{$cellsPerRow:o,children:[!!a&&t(wd,{text:s,children:t(Au,{size:go.XXXS,color:mo.Secondary,nowrap:!0,children:a})}),e(Qr,{$gap:4,children:[u&&t(Od,{...u}),l&&t(wd,{text:c,children:t(Au,{size:go.XS,nowrap:!0,children:l})}),d&&t(r,{value:l||u?.label?.toString()||"",size:Jc.XS})]})]})},Lu=({bgTint:n="900",width:o,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,S=!!u.length,$=!!c.length;return e(Iu,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&e(_u,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Nu,{...a}):t("div",{}),e(Qr,{$gap:12,children:[p,E&&v&&t(Tu,{actions:d}),$&&t(Qr,{$gap:8,children:c.map((e,t)=>Gt(Od,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&e(Qr,{$gap:2,children:[S&&t(xu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(_d,{variant:Nd.Text,size:Ad.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Ru,{children:g.map(e=>t(ku,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Pu;(e=>{e.S="small",e.M="medium"})(Pu||(Pu={}));const Mu=o.div`
|
|
643
643
|
display: flex;
|
|
644
644
|
flex-direction: column;
|
|
645
645
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -650,7 +650,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
650
650
|
border-radius: 16px;
|
|
651
651
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
652
652
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
653
|
-
`,
|
|
653
|
+
`,Uu=Mt(({id:n,size:o=Pu.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=o===Pu.S?4:16,y="number"==typeof h?h:o===Pu.S?12:16,b=a??(i?t(Nu,{...i}):null),v=l??(s?t(tu,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return e(Mu,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||S?e(Qr,{$gap:f,$justifyContent:"space-between",children:[E?e(Qr,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&t(Tu,{actions:d??[]})]}):null,u]})});Uu.displayName="SectionCard";const Fu=o.div`
|
|
654
654
|
flex: 1;
|
|
655
655
|
align-self: stretch;
|
|
656
656
|
display: flex;
|
|
@@ -658,8 +658,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
658
658
|
gap: 8px;
|
|
659
659
|
padding: 16px;
|
|
660
660
|
border-radius: 12px;
|
|
661
|
-
background-color: ${({theme:e,$status:t})=>
|
|
662
|
-
`,
|
|
661
|
+
background-color: ${({theme:e,$status:t})=>Ar(e,t,t===Tn.Unknown?"750":"500")};
|
|
662
|
+
`,zu=o.div`
|
|
663
663
|
display: flex;
|
|
664
664
|
align-items: center;
|
|
665
665
|
justify-content: center;
|
|
@@ -667,8 +667,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
667
667
|
height: fit-content;
|
|
668
668
|
padding: 8px;
|
|
669
669
|
border-radius: 12px;
|
|
670
|
-
background-color: ${({theme:e,$status:t})=>t===
|
|
671
|
-
`,
|
|
670
|
+
background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?Ar(e,t,"800"):Ar(e,t,"900")+Ud["015"]};
|
|
671
|
+
`,Bu=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??ui(n,s),c=[Tn.Default,Tn.Info,Tn.Disabled,Tn.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Fu,{$status:n,children:[t(zu,{$status:n,children:t(l,{size:32,fill:c})}),e(Zr,{$gap:2,$justifyContent:"center",children:[t(vo,{size:go.M,weight:500,color:c,nowrap:!0,children:r}),t(vo,{size:go.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Hu=o.div`
|
|
672
672
|
flex: 0.5;
|
|
673
673
|
display: flex;
|
|
674
674
|
flex-direction: column;
|
|
@@ -676,7 +676,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
676
676
|
padding: 12px;
|
|
677
677
|
border-radius: 12px;
|
|
678
678
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
679
|
-
`,
|
|
679
|
+
`,ju=["-","N/A","undefined","null","undefined/undefined","null/null"],Wu=({title:n,cells:o})=>{const r=i();return e(Hu,{children:[t(vo,{size:go.XXS,color:r.v2.colors.grey[150],children:n}),t(Qr,{$gap:32,children:o.map((o,r)=>e(Zr,{$gap:2,children:[!o.isLoading||o.value&&!ju.includes(o.value)?t(vo,{size:o.label?go.M:go.L,children:o.value}):t(di,{withSpinnerOld:!0,scaleSpinnerOld:.9}),o.label&&t(vo,{size:go.XXS,children:o.label})]},`${n}-${r}-${o.label}-${o.value}`))})]})},Gu=o.div`
|
|
680
680
|
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
681
681
|
|
|
682
682
|
display: flex;
|
|
@@ -695,7 +695,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
695
695
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
696
696
|
}
|
|
697
697
|
`}
|
|
698
|
-
`,
|
|
698
|
+
`,Xu=o.input`
|
|
699
699
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
700
700
|
width: ${({$width:e})=>e||"unset"};
|
|
701
701
|
|
|
@@ -727,12 +727,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
727
727
|
pointer-events: none;
|
|
728
728
|
user-select: none;
|
|
729
729
|
}
|
|
730
|
-
`,
|
|
730
|
+
`,Vu=o.div`
|
|
731
731
|
display: flex;
|
|
732
732
|
align-items: center;
|
|
733
733
|
justify-content: center;
|
|
734
734
|
cursor: pointer;
|
|
735
|
-
`,
|
|
735
|
+
`,Ku=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=wn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...$})=>{const C=i(),x=h===wn.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=ld(R,{deps:[m]}),k=$.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(Zr,{$width:v,$gap:6,children:[t(au,{label:n,tooltip:r,required:o,badge:a}),t(Gu,{$small:E,$disabled:y,$error:A,$clickable:!!S&&!y,onClick:y?void 0:S,children:e(wd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(Xu,{"data-id":g,type:w||h===wn.Number||h===wn.Decimal?wn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===wn.Number||h===wn.Decimal){const n=h===wn.Number?Pi(t):Li(t),o=null!=$.min?Number($.min):void 0,r=null!=$.max?Number($.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...$,ref:R}),x?t(Vu,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(su,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},Yu=e=>{const{"data-id":n,options:o,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?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?o.find(t=>t.id===e.value)?.label??"":""},[s,e,o,p]),g=d?l:h,m=Ht(()=>{const e=s?o.map(e=>({...e,withCheckbox:!0})):o;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,o,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 n=o.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,o]),E=d&&(i||m.length>0||l.length>0);return t(xu,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:mu.Bottom,children:t(Ku,{name:n,leftIcon:St,placeholder:r,value:g,onChange:y,onFocus:f,disabled:a})})},Ju=o.button`
|
|
736
736
|
width: 100%;
|
|
737
737
|
padding: 0;
|
|
738
738
|
padding-right: 12px;
|
|
@@ -753,7 +753,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
753
753
|
cursor: not-allowed;
|
|
754
754
|
opacity: 0.5;
|
|
755
755
|
}
|
|
756
|
-
`,
|
|
756
|
+
`,qu=o.div`
|
|
757
757
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
758
758
|
height: 56px;
|
|
759
759
|
display: flex;
|
|
@@ -764,31 +764,31 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
764
764
|
`:r`
|
|
765
765
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
766
766
|
`}
|
|
767
|
-
`,
|
|
767
|
+
`,Qu=o.div`
|
|
768
768
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
769
769
|
display: flex;
|
|
770
770
|
justify-content: space-between;
|
|
771
771
|
align-items: center;
|
|
772
772
|
gap: 8px;
|
|
773
|
-
`,
|
|
773
|
+
`,Zu=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return e(Ju,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(qu,{$hovered:s,$hasIcon:!!o,children:o&&t(o,{size:36})}),e(Qu,{$hasIcon:!!o,children:[r?t(di,{withGradient:!0,titleSize:go.S}):t(vo,{variant:ho.Span,align:"center",children:n}),t(At,{rotate:90,size:24})]})]})},ep=({buttons:e})=>t(Zr,{$gap:12,children:e.map((e,n)=>t(Zu,{...e},`${e.label}-${n}`))});var tp;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(tp||(tp={}));const np=o.div`
|
|
774
774
|
display: flex;
|
|
775
775
|
align-items: flex-end;
|
|
776
776
|
justify-content: space-between;
|
|
777
777
|
gap: 24px;
|
|
778
778
|
width: fit-content;
|
|
779
|
-
`,
|
|
779
|
+
`,op=o.div`
|
|
780
780
|
position: relative;
|
|
781
781
|
display: flex;
|
|
782
782
|
flex-direction: column;
|
|
783
783
|
align-items: center;
|
|
784
784
|
width: ${({$width:e})=>e??150}px;
|
|
785
785
|
flex-shrink: 0;
|
|
786
|
-
`,
|
|
786
|
+
`,rp=o.svg`
|
|
787
787
|
display: block;
|
|
788
788
|
width: 100%;
|
|
789
789
|
height: auto;
|
|
790
790
|
overflow: visible;
|
|
791
|
-
`,
|
|
791
|
+
`,ip=o(Zr)`
|
|
792
792
|
position: absolute;
|
|
793
793
|
left: 0;
|
|
794
794
|
right: 0;
|
|
@@ -796,14 +796,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
796
796
|
align-items: center;
|
|
797
797
|
gap: 2px;
|
|
798
798
|
pointer-events: none;
|
|
799
|
-
`,
|
|
799
|
+
`,ap=o.span`
|
|
800
800
|
display: inline-block;
|
|
801
801
|
flex-shrink: 0;
|
|
802
802
|
width: 9px;
|
|
803
803
|
height: 9px;
|
|
804
804
|
border-radius: 50%;
|
|
805
805
|
background-color: ${({$color:e})=>e};
|
|
806
|
-
`,
|
|
806
|
+
`,sp=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:""}},lp=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},cp=(e,t,n,o,r)=>{const i=lp(e,t,n,o),a=lp(e,t,n,r),s=o>r?1:0,l=Math.abs(o-r)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},dp=({variant:n=tp.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=sp(a),{number:g}=sp(s),{number:m,prefix:f,suffix:y}=sp(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?cp(60,60,55,180,E):null,$=v<1?cp(60,60,55,E,0):null,C=lp(60,60,55,180),x=lp(60,60,55,0),w=d??(n===tp.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===tp.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),A=e=>`${f}${e}${y}`,I=n===tp.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(np,{children:[e(op,{$width:o,children:[t(wd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(rp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&t("path",{d:$,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(ip,{children:[t(vo,{size:go.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(vo,{size:go.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(Zr,{$gap:7,children:[e(Qr,{$gap:8,$alignItems:"center",children:[t(ap,{$color:w}),t(vo,{size:go.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(Qr,{$gap:8,$alignItems:"center",children:[t(ap,{$color:T}),t(vo,{size:go.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},up=o(Qr)`
|
|
807
807
|
width: 100%;
|
|
808
808
|
padding: 8px 12px;
|
|
809
809
|
border-radius: 6px;
|
|
@@ -812,26 +812,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
812
812
|
align-items: center;
|
|
813
813
|
justify-content: space-between;
|
|
814
814
|
gap: 12px;
|
|
815
|
-
`,
|
|
815
|
+
`,pp=o.div`
|
|
816
816
|
position: relative;
|
|
817
817
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
818
818
|
display: flex;
|
|
819
819
|
align-items: center;
|
|
820
820
|
gap: 4px;
|
|
821
|
-
`,
|
|
821
|
+
`,hp=o.pre`
|
|
822
822
|
flex: 1;
|
|
823
823
|
margin: 0;
|
|
824
824
|
padding: 0;
|
|
825
825
|
font-size: 12px;
|
|
826
826
|
color: #5ffb98; // TODO: add to theme
|
|
827
827
|
overflow-x: auto;
|
|
828
|
-
`,
|
|
828
|
+
`,gp=o.span`
|
|
829
829
|
flex-shrink: 0;
|
|
830
830
|
font-size: 14px;
|
|
831
831
|
color: #5ffb98; // TODO: add to theme
|
|
832
|
-
`,
|
|
832
|
+
`,mp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Zc({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(Zr,{$gap:4,children:[o&&t(vo,{size:go.XXXS,color:mo.Secondary,children:o}),e(up,{$bgTint:n,children:[e(pp,{$hideCopy:i,children:[t(hp,{ref:l,children:r}),c&&t(gp,{children:"..."})]}),!i&&t(s,{value:r,size:Jc.XS})]})]})},fp=o(Qr)`
|
|
833
833
|
gap: 0;
|
|
834
|
-
`,
|
|
834
|
+
`,yp=o.button`
|
|
835
835
|
padding: 4px 8px;
|
|
836
836
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
837
837
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -843,20 +843,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
843
843
|
&:hover {
|
|
844
844
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
845
845
|
}
|
|
846
|
-
`,
|
|
846
|
+
`,bp=({isPrettyMode:n,setIsPrettyMode:o})=>e(fp,{children:[t(yp,{$position:"left",$selected:n,onClick:()=>o(!0),children:t(It,{})}),t(yp,{$position:"right",$selected:!n,onClick:()=>o(!1),children:t(bt,{})})]}),vp=o.table`
|
|
847
847
|
border-collapse: collapse;
|
|
848
848
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
849
|
-
`,
|
|
849
|
+
`,Ep=o.tbody``,Sp=o.tr`
|
|
850
850
|
td:first-child {
|
|
851
851
|
padding-left: 0 !important;
|
|
852
852
|
}
|
|
853
853
|
td:last-child {
|
|
854
854
|
padding-right: 0 !important;
|
|
855
855
|
}
|
|
856
|
-
|
|
856
|
+
`,$p=o.td`
|
|
857
857
|
vertical-align: top;
|
|
858
858
|
padding: 4px 6px;
|
|
859
|
-
`,
|
|
859
|
+
`,Cp=o.span`
|
|
860
860
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
861
861
|
overflow-wrap: break-word;
|
|
862
862
|
word-break: break-word;
|
|
@@ -864,7 +864,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
864
864
|
/* Fallback for older browsers */
|
|
865
865
|
-ms-word-break: break-all;
|
|
866
866
|
font-size: 12px;
|
|
867
|
-
`,
|
|
867
|
+
`,xp=({language:e,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?qt[o]:s?qt.palenight:qt.vsLight;let c="";if("json"===e){const e=Do(n,{}),t=zi(e);c=Bi(r?Jo(t):t)}else c=n;return a&&"json"===e?t(wp,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:n,tokens:o})=>t("pre",{children:o.map((o,r)=>t("div",{...e({line:o}),children:o.map((e,o)=>t(Cp,{...n({token:e})},`line-${r}-token-${o}`))},`line-${r}`))})})},wp=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>e(Sp,{...n,children:[t($p,{}),t($p,{})]}));return t(Ut,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return t(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>t(vp,{children:t(Ep,{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 n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Ut,{children:[a(2,s),e(Sp,{...c,children:[t($p,{children:t(vo,{nowrap:!0,children:l[0].content})}),t($p,{})]})]},`line-${s}`):2===l.length?t(Sp,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[o,...r]=e.split("@");return{text:o,components:r?.map((e,o)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return t(wd,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let e=ui(i,n);return e||(e=ui(Tn.Warning,n)),t(e,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return t($p,{children:e(Qr,{children:[t(Qr,{children:l}),t(Cp,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Tp=o.div`
|
|
868
868
|
display: flex;
|
|
869
869
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
870
870
|
gap: 8px;
|
|
@@ -880,7 +880,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
880
880
|
background-color: ${t?"transparent":n};
|
|
881
881
|
}
|
|
882
882
|
`}
|
|
883
|
-
`,
|
|
883
|
+
`,Op=o.div`
|
|
884
884
|
display: flex;
|
|
885
885
|
align-items: center;
|
|
886
886
|
justify-content: center;
|
|
@@ -899,54 +899,54 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
899
899
|
transform: scale(1.2);
|
|
900
900
|
}
|
|
901
901
|
`}
|
|
902
|
-
`,
|
|
902
|
+
`,Np=o(Zr)`
|
|
903
903
|
flex: 1;
|
|
904
904
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
905
905
|
min-width: 0;
|
|
906
|
-
`,
|
|
906
|
+
`,Ap=o(Zr)`
|
|
907
907
|
align-self: stretch;
|
|
908
908
|
flex-shrink: 0;
|
|
909
|
-
`,
|
|
909
|
+
`,Ip=o.div`
|
|
910
910
|
display: flex;
|
|
911
911
|
align-items: center;
|
|
912
912
|
justify-content: center;
|
|
913
913
|
flex-shrink: 0;
|
|
914
914
|
width: 24px;
|
|
915
915
|
height: 24px;
|
|
916
|
-
`,
|
|
916
|
+
`,_p=({status:n,title:o,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=ui(n,b),E=p?u?xt:wt:void 0,S=n===Tn.Unknown,$=n===Tn.Disabled,C=n===Tn.Loading||c,x=[Tn.Error,Tn.Warning,Tn.Success].includes(n),w=Ar(b,n,$?h?"400":"700":S?"600":h?"300":"500"),T=$?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!S?w:T,N=!h||S||$?"rgba(0, 0, 0, 0.13)":Ar(b,n,"800"),A=$?b.v2.colors.grey[900]:h||S?b.v2.colors.silver[800]:w,I=$?b.v2.colors.grey[800]:h||S?b.v2.colors.silver[700]:Ar(b,n,"600");return e(Tp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(Op,{$backgroundColor:N,$slim:y,children:C?t(di,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(Np,{$gap:4,$justifyContent:"center",$slim:y,children:[e(Qr,{$gap:10,$alignItems:"center",children:[t(vo,{size:y?go.XS:go.S,weight:500,color:O,children:o}),l&&t(Od,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:go.XXXS})]}),r&&t(vo,{size:go.XXXS,color:T,children:r}),a]}),(!!d?.length||s)&&e(Ap,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(Qr,{$gap:8,children:d.map(e=>t(_d,{...e,variant:Nd.Secondary,size:Ad.S},e["data-id"]??e.label))}),s]}),E&&t(Ip,{children:t(E,{size:24,fill:T})})]})},Rp=o.div`
|
|
917
917
|
display: flex;
|
|
918
918
|
flex-direction: column;
|
|
919
919
|
width: 100%;
|
|
920
920
|
border-radius: 12px;
|
|
921
921
|
overflow: hidden;
|
|
922
|
-
`,
|
|
922
|
+
`,Dp=o.div`
|
|
923
923
|
display: flex;
|
|
924
924
|
flex-direction: column;
|
|
925
925
|
gap: 8px;
|
|
926
926
|
padding: 8px 12px 16px 12px;
|
|
927
927
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
928
|
-
`,
|
|
928
|
+
`,kp=o.div`
|
|
929
929
|
display: flex;
|
|
930
930
|
align-items: center;
|
|
931
931
|
gap: 8px;
|
|
932
|
-
`,
|
|
932
|
+
`,Lp=o.div`
|
|
933
933
|
display: flex;
|
|
934
934
|
align-items: center;
|
|
935
935
|
justify-content: center;
|
|
936
936
|
flex-shrink: 0;
|
|
937
937
|
width: 18px;
|
|
938
938
|
height: 18px;
|
|
939
|
-
`,
|
|
940
|
-
width: ${({$orientation:e,$thickness:t,$length:n})=>e===
|
|
941
|
-
height: ${({$orientation:e,$thickness:t,$length:n})=>e===
|
|
942
|
-
margin: ${({$orientation:e,$margin:t})=>t||(e===
|
|
943
|
-
background-color: ${({$type:e,theme:t})=>(e?
|
|
939
|
+
`,Pp=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>_i(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>nr(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?Tn.Error:g?Tn.Warning:m?Tn.Info:Tn.Success,[p,g,m]),v=Ht(()=>o||(1===d.length?po(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>e?"Something Failed":t||n?"Something isn't right":o?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[o,d,p,g,m,y]),E=Ht(()=>r||1===d.length&&d[0].message||void 0,[r,d]),S=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Rp,{children:[t(_p,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&t(Dp,{children:d.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===Tn.Loading,c=n===Tn.Disabled?Tn.Info:n,d=l?null:ui(c,a),u=n===Tn.Error?Ar(a,Tn.Error,"500"):n===Tn.Warning?Ar(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return e(kp,{children:[t(Lp,{children:l||!d?t(di,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(vo,{size:go.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},Mp=o.div`
|
|
940
|
+
width: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Vertical?`${t}px`:n||"100%"};
|
|
941
|
+
height: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Horizontal?`${t}px`:n||"100%"};
|
|
942
|
+
margin: ${({$orientation:e,$margin:t})=>t||(e===gn.Horizontal?"8px 0":"0 8px")};
|
|
943
|
+
background-color: ${({$type:e,theme:t})=>(e?Ar(t,e):t.v2.colors.grey[400])+Ud["050"]};
|
|
944
944
|
opacity: ${({$opacity:e})=>e||1};
|
|
945
|
-
`,
|
|
945
|
+
`,Up=({orientation:e=gn.Horizontal,type:n,thickness:o=1,length:r,margin:i,opacity:a})=>t(Mp,{$orientation:e,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a});var Fp,zp,Bp;(e=>{e.Default="default",e.SuccessError="successError"})(Fp||(Fp={})),(e=>{e.S="small",e.L="large"})(zp||(zp={})),(e=>{e.Left="left",e.Right="right"})(Bp||(Bp={}));const Hp=o.div`
|
|
946
946
|
display: flex;
|
|
947
947
|
align-items: center;
|
|
948
948
|
gap: ${({$gap:e})=>e}px;
|
|
949
|
-
`,
|
|
949
|
+
`,jp=o.div`
|
|
950
950
|
position: relative;
|
|
951
951
|
display: flex;
|
|
952
952
|
align-items: center;
|
|
@@ -957,11 +957,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
957
957
|
height: ${({$size:e})=>e}px;
|
|
958
958
|
padding: ${4}px;
|
|
959
959
|
border-radius: ${({$size:e})=>2*e}px;
|
|
960
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case
|
|
960
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case Fp.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Fp.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
961
961
|
|
|
962
962
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
963
963
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
964
|
-
`,
|
|
964
|
+
`,Wp=o.div`
|
|
965
965
|
position: absolute;
|
|
966
966
|
top: 50%;
|
|
967
967
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -971,17 +971,17 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
971
971
|
border-radius: 100%;
|
|
972
972
|
background-color: ${({$color:e})=>e};
|
|
973
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
|
-
`,
|
|
974
|
+
`,Gp=({variant:o=Fp.Default,size:r=zp.L,name:a,label:s,labelAlign:l=Bp.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=$t,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:$})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=r===zp.S?10:16,T=c||C.v2.colors.silver[200],O=r===zp.S?go.XXXS:go.XS,N=r===zp.S?8:12;return e(Zr,{$gap:4,children:[e(Qr,{$justifyContent:"space-between",children:[e(Hp,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Bp.Left&&t(vo,{color:T,size:O,nowrap:!0,children:s}),e(jp,{$onBgColor:b,$offBgColor:v,$variant:o,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Wp,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(n,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Bp.Right&&t(vo,{color:T,size:O,nowrap:!0,children:s})]}),t(au,{tooltip:d,badge:u})]}),t(su,{errorMessage:E,warnMessage:S,helpMessage:$})]})},Xp=o.div`
|
|
975
975
|
display: flex;
|
|
976
|
-
flex-direction: ${({$direction:e})=>e===
|
|
977
|
-
gap: ${({$direction:e})=>e===
|
|
978
|
-
`,
|
|
976
|
+
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
977
|
+
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
978
|
+
`,Vp=({direction:n=gn.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===zp.S?go.XS:go.S;return e(Xp,{$direction:n,children:[o&&t(vo,{size:c,children:o}),a.map(e=>t(Gp,{...e,labelAlign:Bp.Right,value:s[e.id],onChange:t=>{return n=e.id,o=t,void l(e=>{const t={...e};return n?t[n]=o:a.forEach(e=>t[e.id]=o),t});var n,o},disabled:i,size:r},`${o}-toggle-${e.id}`))]})},Kp=o.div`
|
|
979
979
|
display: flex;
|
|
980
980
|
align-items: center;
|
|
981
981
|
justify-content: space-between;
|
|
982
982
|
width: 100%;
|
|
983
983
|
overflow: hidden;
|
|
984
|
-
`,
|
|
984
|
+
`,Yp=o.div`
|
|
985
985
|
display: flex;
|
|
986
986
|
align-items: center;
|
|
987
987
|
gap: 16px;
|
|
@@ -989,7 +989,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
989
989
|
min-width: 0;
|
|
990
990
|
flex: 1;
|
|
991
991
|
overflow: hidden;
|
|
992
|
-
`,
|
|
992
|
+
`,Jp=o.div`
|
|
993
993
|
display: flex;
|
|
994
994
|
align-items: center;
|
|
995
995
|
justify-content: center;
|
|
@@ -998,23 +998,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
998
998
|
height: 36px;
|
|
999
999
|
border-radius: 8px;
|
|
1000
1000
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1001
|
-
`,
|
|
1001
|
+
`,qp=o.img`
|
|
1002
1002
|
width: 24px;
|
|
1003
1003
|
height: 24px;
|
|
1004
|
-
`,
|
|
1004
|
+
`,Qp=o.div`
|
|
1005
1005
|
display: flex;
|
|
1006
1006
|
align-items: center;
|
|
1007
1007
|
gap: 16px;
|
|
1008
1008
|
flex-shrink: 0;
|
|
1009
|
-
`,
|
|
1009
|
+
`,Zp=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(Kp,{children:[e(Yp,{children:[n?t(Jp,{children:t(n,{size:24})}):o?t(Jp,{children:t(qp,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&e(Zr,{$gap:6,children:[(r||i?.length)&&e(Qr,{$gap:16,children:[r&&t(vo,{size:go.S,weight:500,children:r}),i?.length&&t(Qr,{$gap:4,children:i?.map((e,n)=>t(Od,{...e},`${e.label}-${n}`))})]}),a&&t(vo,{size:go.XXS,children:a})]})]}),e(Qp,{children:[s&&t(Gp,{...s}),l?.length?t(xu,{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(Qc,{"data-id":"drawer-close",icon:$t,size:Jc.M,onClick:c,disabled:d})]})]}),eh=o.div`
|
|
1010
1010
|
position: relative;
|
|
1011
1011
|
&.animated {
|
|
1012
1012
|
overflow: hidden;
|
|
1013
1013
|
padding-bottom: 1px;
|
|
1014
1014
|
border-radius: 8px;
|
|
1015
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1015
|
+
animation: ${({$isLeaving:e})=>e?zd.out.bottom:zd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1016
1016
|
}
|
|
1017
|
-
`,
|
|
1017
|
+
`,th=o.div`
|
|
1018
1018
|
position: absolute;
|
|
1019
1019
|
bottom: -1px;
|
|
1020
1020
|
left: 0;
|
|
@@ -1022,9 +1022,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1022
1022
|
width: 100%;
|
|
1023
1023
|
height: 100%;
|
|
1024
1024
|
border-radius: 8px;
|
|
1025
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1026
|
-
animation: ${
|
|
1027
|
-
`,
|
|
1025
|
+
background-color: ${({theme:e,$status:t})=>Ar(e,t,t===Tn.Default?"300":t===Tn.Info?"400":"500")};
|
|
1026
|
+
animation: ${Bd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1027
|
+
`,nh=o.div`
|
|
1028
1028
|
display: flex;
|
|
1029
1029
|
align-items: center;
|
|
1030
1030
|
gap: 10px;
|
|
@@ -1033,37 +1033,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1033
1033
|
`}
|
|
1034
1034
|
padding: 8px 12px 8px 8px;
|
|
1035
1035
|
border-radius: 8px;
|
|
1036
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1037
|
-
`,
|
|
1036
|
+
background-color: ${({theme:e,$status:t})=>Ar(e,t,[Tn.Info,Tn.Warning].includes(t)?"1000":"900")};
|
|
1037
|
+
`,oh=o.div`
|
|
1038
1038
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1039
1039
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1040
1040
|
display: flex;
|
|
1041
1041
|
align-items: center;
|
|
1042
1042
|
justify-content: center;
|
|
1043
1043
|
border-radius: 6px;
|
|
1044
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1045
|
-
`,
|
|
1044
|
+
background-color: ${({theme:e,$status:t})=>Ar(e,t,[Tn.Info].includes(t)?"900":"800")};
|
|
1045
|
+
`,rh=o.div`
|
|
1046
1046
|
margin-left: auto;
|
|
1047
1047
|
display: flex;
|
|
1048
1048
|
align-items: center;
|
|
1049
1049
|
gap: 4px;
|
|
1050
|
-
`,
|
|
1050
|
+
`,ih=o.div`
|
|
1051
1051
|
margin-right: 8px;
|
|
1052
1052
|
cursor: pointer;
|
|
1053
1053
|
&:hover {
|
|
1054
1054
|
transform: scale(1.2);
|
|
1055
1055
|
}
|
|
1056
|
-
`,
|
|
1056
|
+
`,ah=({status:n,message:o,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:c,duration:d=5e3,zIndex:u})=>{const p=i(),h=ui(n,p),g=Ar(p,n,n===Tn.Default?"300":n===Tn.Info?"400":"500"),[m,f]=Ft(!1),y=jt(null),b=jt(null),v=d/10,E=d-v,S=e=>{c&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>c({asSeen:e?.asSeen}),v))};return zt(()=>{if(c)return y.current=setTimeout(()=>S({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[d]),e(eh,{className:c?"animated":"",$duration:d,$isLeaving:m,onMouseEnter:()=>{c&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(c&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*E;y.current=setTimeout(()=>S({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(nh,{$status:n,$fullWidth:a,children:[t("div",{children:t(oh,{$status:n,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(vo,{color:g,size:go.XXXS,weight:400,children:o}),(r||c)&&e(rh,{children:[r&&t(ih,{"data-id":r["data-id"],onClick:r.onClick,children:t(vo,{color:g,size:go.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),c&&t(Qc,{"data-id":"note-close",icon:$t,size:Jc.XS,onClick:()=>S({asSeen:!0})})]})]}),c&&t(th,{ref:b,$status:n,$duration:d})]})},sh=o.div`
|
|
1057
1057
|
display: flex;
|
|
1058
1058
|
align-items: center;
|
|
1059
1059
|
gap: 8px;
|
|
1060
1060
|
padding: 4px 12px;
|
|
1061
|
-
`,
|
|
1061
|
+
`,lh=o.div`
|
|
1062
1062
|
flex: 1;
|
|
1063
|
-
`,
|
|
1063
|
+
`,ch=o.div`
|
|
1064
1064
|
min-width: 150px;
|
|
1065
1065
|
width: fit-content;
|
|
1066
|
-
`,
|
|
1066
|
+
`,dh=({note:n,actions:o,children:r})=>r?t(sh,{children:r}):e(sh,{children:[n&&t(ah,{...n}),t(lh,{}),o?.map((e,n)=>t(ch,{children:t(_d,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),uh=o.div`
|
|
1067
1067
|
position: fixed;
|
|
1068
1068
|
top: 0;
|
|
1069
1069
|
bottom: 0;
|
|
@@ -1083,16 +1083,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1083
1083
|
overflow: hidden;
|
|
1084
1084
|
|
|
1085
1085
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1086
|
-
animation-name: ${
|
|
1086
|
+
animation-name: ${zd.in[t]};
|
|
1087
1087
|
`}
|
|
1088
|
-
`,
|
|
1088
|
+
`,ph=o.div`
|
|
1089
1089
|
display: flex;
|
|
1090
1090
|
flex-direction: column;
|
|
1091
1091
|
gap: 12px;
|
|
1092
1092
|
|
|
1093
1093
|
height: calc(100% - ${56}px);
|
|
1094
1094
|
overflow-y: auto;
|
|
1095
|
-
`,
|
|
1095
|
+
`,hh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Kc(o),o?Yt(e(n,{children:[!r&&t(ni,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(uh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(Zp,{...c}),t(ph,{children:u}),d&&t(dh,{...d})]})]}),document.body):null),gh=({options:e,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(xu,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:gu.Left,items:e,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:e,handleClick:n})=>t(Ku,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},mh=({error:n})=>{const o=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(_d,{variant:Nd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},fh=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(Md,{children:t(mh,{...n,error:e})}),children:e}),yh=o.header`
|
|
1096
1096
|
position: relative;
|
|
1097
1097
|
width: 100%;
|
|
1098
1098
|
padding: 12px 18px;
|
|
@@ -1100,12 +1100,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1100
1100
|
display: flex;
|
|
1101
1101
|
align-items: center;
|
|
1102
1102
|
justify-content: space-between;
|
|
1103
|
-
`,
|
|
1103
|
+
`,bh=o(Qr)`
|
|
1104
1104
|
position: absolute;
|
|
1105
1105
|
left: 50%;
|
|
1106
1106
|
transform: translateX(-50%);
|
|
1107
1107
|
gap: 16px;
|
|
1108
|
-
`,
|
|
1108
|
+
`,vh=({left:n=[],center:o=[],right:r=[]})=>e(yh,{children:[t(Qr,{$gap:16,children:n}),t(bh,{children:o}),t(Qr,{$gap:16,children:r})]}),Eh=o.div`
|
|
1109
1109
|
display: flex;
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
gap: 2px;
|
|
@@ -1120,7 +1120,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1120
1120
|
left: ${({$left:e})=>e||"unset"};
|
|
1121
1121
|
top: 50%;
|
|
1122
1122
|
transform: translateY(-50%);
|
|
1123
|
-
`,
|
|
1123
|
+
`,Sh=({isOpen:e,actions:n,positionRight:o,positionLeft:r})=>e?t(Eh,{$right:o,$left:r,children:n.map(e=>{if(!e)return null;const{tooltip:n,...o}=e;return t(wd,{text:n||"",children:t(_d,{...o,variant:Nd.Secondary,size:Ad.S})},o.id)})}):null,$h=o.div`
|
|
1124
1124
|
display: flex;
|
|
1125
1125
|
align-items: center;
|
|
1126
1126
|
justify-content: center;
|
|
@@ -1128,32 +1128,32 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1128
1128
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1129
1129
|
aspect-ratio: 1 / 1;
|
|
1130
1130
|
border-radius: 8px;
|
|
1131
|
-
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?
|
|
1132
|
-
`,
|
|
1131
|
+
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?Ar(e,n,n===Tn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1132
|
+
`,Ch=({icons:n,icon:o,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=$r(d,c.v2.text.size);if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,i=o.slice(0,2),c=o.slice(2),u=c.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t($h,{$size:s,$padding:l,$status:a,children:e(Zr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Qr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(Qr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,n)=>t(e,{size:d},`bottom-${n}`)),r>0&&t(vo,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=n?.[0]||o;return t("div",{style:{width:"fit-content"},children:t($h,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},xh=o.div`
|
|
1133
1133
|
width: 100%;
|
|
1134
1134
|
border-radius: 8px;
|
|
1135
1135
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1136
1136
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1137
|
-
`,
|
|
1137
|
+
`,wh=({values:n,setValues:o,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=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t(xh,{$plain:m,children:e(Zr,{"data-id":r,$gap:6,children:[t(au,{label:a,tooltip:s,required:c,badge:l}),t(Zr,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return e(Qr,{$gap:8,$alignItems:"center",children:[t(Ku,{width:"100%",autoFocus:xi(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&t(_d,{leftIcon:_t,variant:Nd.Secondary,size:Ad.S,disabled:b,onClick:()=>(()=>{const e=n.length?Ho(n):[Ho("")];e.push(""),o(e)})()}),t(_d,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:Nd.Secondary,size:Ad.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),t(su,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var Th;(e=>{e.S="small",e.L="large"})(Th||(Th={}));const Oh=o.div`
|
|
1138
1138
|
width: fit-content;
|
|
1139
1139
|
display: flex;
|
|
1140
1140
|
align-items: center;
|
|
1141
1141
|
gap: 8px;
|
|
1142
1142
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1143
|
-
`,
|
|
1144
|
-
width: ${({$size:e})=>e
|
|
1145
|
-
height: ${({$size:e})=>e
|
|
1143
|
+
`,Nh=o.div`
|
|
1144
|
+
width: ${({$size:e})=>e===Th.S?"16px":"20px"};
|
|
1145
|
+
height: ${({$size:e})=>e===Th.S?"16px":"20px"};
|
|
1146
1146
|
display: flex;
|
|
1147
1147
|
align-items: center;
|
|
1148
1148
|
justify-content: center;
|
|
1149
1149
|
border-radius: 100%;
|
|
1150
1150
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1151
1151
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1152
|
-
`,
|
|
1152
|
+
`,Ah=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=Th.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===Th.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(Oh,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Nh,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Dt,{size:h,fill:g}):null}),o&&t(vo,{size:l===Th.S?go.XXS:go.XS,children:o})]})},Ih=o.div`
|
|
1153
1153
|
display: flex;
|
|
1154
1154
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1155
1155
|
gap: ${({$gap:e})=>e}px;
|
|
1156
|
-
`,
|
|
1156
|
+
`,_h=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>e(Ih,{$flexDirection:o===gn.Horizontal?"row":"column",$gap:o===gn.Horizontal?16:8,children:[n&&t(vo,{children:n}),a.map(e=>t(Ah,{...e,value:s[e.id],onChange:t=>{return n=e.id,o=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:r,size:i},`${n}-radio-${e.id}`))]}),Rh=({col:n,colIdx:o,row:r,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:c,hideLabel:d,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=n,$=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!=$?String($):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(_h,{direction:gn.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:n,setValues:e=>{const t="function"==typeof e?e(n):e,o=Object.keys(t).find(e=>t[e])??"";s(p,o,i)},disabled:c},p)}case xn.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,n=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],o=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(gh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:o,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===o&&xi($),d=t(Ku,{name:p,label:C,placeholder:x,autoFocus:r,type:g,min:E,max:S,value:$,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(Qr,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(_d,{variant:Nd.Secondary,size:Ad.S,label:"Test",disabled:c||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):d}},Dh=o.div`
|
|
1157
1157
|
width: 100%;
|
|
1158
1158
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1159
1159
|
border-radius: 8px;
|
|
@@ -1161,28 +1161,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1161
1161
|
display: flex;
|
|
1162
1162
|
flex-direction: column;
|
|
1163
1163
|
gap: 8px;
|
|
1164
|
-
`,
|
|
1164
|
+
`,kh=o.div`
|
|
1165
1165
|
flex: 1;
|
|
1166
1166
|
min-width: 0;
|
|
1167
|
-
`,
|
|
1167
|
+
`,Lh=o.div`
|
|
1168
1168
|
padding-top: 24px;
|
|
1169
|
-
`,
|
|
1169
|
+
`,Ph=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=o.length?o:[b(v)],S=(f?E[0]?.[f]:"")||v,$=(e,t,n)=>{r(E.map((o,r)=>r===e?{...o,[t]:n}:o))},C=()=>r([...E,b(S)]),x=y.find(e=>e.id===S);return e(Zr,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(au,{label:s,tooltip:l,required:c}),m&&t(Qd,{"data-id":`${a}-mode`,size:Xd.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!d&&(e=>r([b(e)]))(String(e))}),e(Zr,{$gap:8,$width:"100%",children:[E.map((o,i)=>{const s=i===E.length-1,l=f?{...o,[f]:S}:o,c=n.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 n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Dh,{"data-id":`${a}-card-${i}`,children:[e(Qr,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Zr,{$gap:10,children:[T&&t(au,{label:T}),m.map(e=>t(Qr,{$gap:24,children:(e.options??[]).map(n=>t(Ah,{size:Th.L,label:n.label,value:String(o[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&$(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(Qr,{$gap:4,$alignItems:"center",children:[v&&t(_d,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Nd.Secondary,size:Ad.S,disabled:d||!String(o[v.keyName]??"").trim(),onClick:()=>p?.(String(o[v.keyName]??""))}),t(_d,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Nd.Secondary,size:Ad.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);r(t.length?t:[b(S)])})(i)}),s&&t(_d,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Nd.Secondary,size:Ad.S,disabled:d,onClick:C})]})]}),w.map((n,r)=>t(Qr,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,r)=>{const s=((e,t)=>{let{label:n,placeholder:o,helpMessage:r}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,o=i.placeholder??o,r=i.helpMessage??r)}return{label:n,placeholder:o,helpMessage:r}})(n,o);return e(Ut,{children:["arrow"===n.separator&&r>0&&t(Lh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(kh,{children:t(Ku,{name:`${a}-card-${i}-${n.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:n.inputType,min:n.min,max:n.max,width:"100%",value:o[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>$(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),t(su,{errorMessage:u})]})]})},Mh=o.div`
|
|
1170
1170
|
width: 100%;
|
|
1171
1171
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1172
1172
|
border-radius: 8px;
|
|
1173
1173
|
padding: 4px 8px;
|
|
1174
|
-
`,
|
|
1174
|
+
`,Uh=o.table`
|
|
1175
1175
|
width: 100%;
|
|
1176
1176
|
border-collapse: separate;
|
|
1177
1177
|
border-spacing: 0 8px;
|
|
1178
|
-
`,
|
|
1178
|
+
`,Fh=o.td`
|
|
1179
1179
|
padding: 0 8px 0 0;
|
|
1180
1180
|
vertical-align: top;
|
|
1181
|
-
`,
|
|
1181
|
+
`,zh=o.td`
|
|
1182
1182
|
width: 72px;
|
|
1183
1183
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1184
1184
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1185
|
-
`,
|
|
1185
|
+
`,Bh=({columns:n,values:o,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 n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=o.length?Ho(o):[Ho(b)];i[n][e]=t,r(i)},E=o.length?o:[b];return t(Mh,{children:e(Zr,{"data-id":a,$gap:0,children:[t(au,{label:s,tooltip:l,required:d,badge:c}),t(Uh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(n.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(Fh,{colSpan:d+1})}):null,l.map((n,l)=>{const g=c[l],m=g?22:0;return e("tr",{children:[n.map((o,r)=>{if(o.renderCondition&&!o.renderCondition(i))return null;const s=r===n.length-1,c=0===l&&s?d-n.length+1:1;return t(Fh,{colSpan:c>1?c:void 0,children:e(Zr,{$gap:6,children:[g&&(o.label?t(au,{label:o.label,tooltip:o.tooltip}):t(au,{label:"\\u00A0"})),t(Rh,{col:o,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(zh,{$topOffset:m,$center:h,children:e(Qr,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(_d,{leftIcon:_t,variant:Nd.Secondary,size:Ad.S,disabled:u,onClick:()=>(()=>{const e=o.length?Ho(o):[Ho(b)];e.push(Ho(b)),r(e)})()}),t(_d,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:Nd.Secondary,size:Ad.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(Ho(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),t(su,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Hh=o.div`
|
|
1186
1186
|
display: flex;
|
|
1187
1187
|
align-items: center;
|
|
1188
1188
|
justify-content: space-between;
|
|
@@ -1190,15 +1190,15 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1190
1190
|
|
|
1191
1191
|
padding: 18px 16px;
|
|
1192
1192
|
border-radius: 18px;
|
|
1193
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1193
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Ud["095"]};
|
|
1194
1194
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1195
1195
|
|
|
1196
1196
|
position: fixed;
|
|
1197
1197
|
bottom: 0;
|
|
1198
1198
|
left: 50%;
|
|
1199
1199
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1200
|
-
animation-name: ${
|
|
1201
|
-
`,
|
|
1200
|
+
animation-name: ${zd.in.center};
|
|
1201
|
+
`,jh=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?e(Hh,{children:[t(Nu,{...r}),t(Tu,{onAnyClick:o,actions:i})]}):null,Wh=o.div`
|
|
1202
1202
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1203
1203
|
top: 50%;
|
|
1204
1204
|
left: 50%;
|
|
@@ -1219,7 +1219,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1219
1219
|
will-change: transform;
|
|
1220
1220
|
contain: layout paint;
|
|
1221
1221
|
|
|
1222
|
-
animation-name: ${({$closing:e})=>e?
|
|
1222
|
+
animation-name: ${({$closing:e})=>e?zd.out.center:zd.in.center};
|
|
1223
1223
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1224
1224
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1225
1225
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1228,9 +1228,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1228
1228
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1229
1229
|
don't compete with the slide-out. */
|
|
1230
1230
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1231
|
-
`,
|
|
1231
|
+
`,Gh=o(ni)`
|
|
1232
1232
|
will-change: opacity;
|
|
1233
|
-
animation-name: ${({$closing:e})=>e?
|
|
1233
|
+
animation-name: ${({$closing:e})=>e?Wd.out:Wd.in};
|
|
1234
1234
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1235
1235
|
|
|
1236
1236
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1238,18 +1238,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1238
1238
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1239
1239
|
because the overlay is fading to 0. */
|
|
1240
1240
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1241
|
-
`,
|
|
1241
|
+
`,Xh=o.div`
|
|
1242
1242
|
position: relative;
|
|
1243
|
-
`,
|
|
1243
|
+
`,Vh=o.div`
|
|
1244
1244
|
position: absolute;
|
|
1245
1245
|
top: 16px;
|
|
1246
1246
|
left: 16px;
|
|
1247
|
-
`,
|
|
1247
|
+
`,Kh=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(o),[p,h]=Ft(!1);if(zt(()=>{o?(u(!0),h(!1)):d&&h(!0)},[o]),Kc(d),!d)return null;const g=e(n,{children:[!r&&t(Gh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Wh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Xh,{children:[a&&t(Vh,{children:t(Qc,{icon:e=>t(At,{rotate:-90,...e}),size:Jc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Yh=o.div`
|
|
1248
1248
|
position: relative;
|
|
1249
1249
|
width: ${64}px;
|
|
1250
1250
|
height: ${({$height:e})=>e};
|
|
1251
1251
|
flex-shrink: 0;
|
|
1252
|
-
`,
|
|
1252
|
+
`,Jh=o.aside`
|
|
1253
1253
|
position: absolute;
|
|
1254
1254
|
top: 0;
|
|
1255
1255
|
left: 0;
|
|
@@ -1269,7 +1269,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1269
1269
|
transition:
|
|
1270
1270
|
width 200ms ease,
|
|
1271
1271
|
padding 200ms ease;
|
|
1272
|
-
`,
|
|
1272
|
+
`,qh=o.button`
|
|
1273
1273
|
display: flex;
|
|
1274
1274
|
align-items: center;
|
|
1275
1275
|
width: 100%;
|
|
@@ -1289,20 +1289,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1289
1289
|
&:active {
|
|
1290
1290
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1291
1291
|
}
|
|
1292
|
-
`,
|
|
1292
|
+
`,Qh=o.div`
|
|
1293
1293
|
width: ${40}px;
|
|
1294
1294
|
height: ${40}px;
|
|
1295
1295
|
display: flex;
|
|
1296
1296
|
align-items: center;
|
|
1297
1297
|
justify-content: center;
|
|
1298
1298
|
flex-shrink: 0;
|
|
1299
|
-
`,
|
|
1299
|
+
`,Zh=o.div`
|
|
1300
1300
|
flex: 1 1 0;
|
|
1301
1301
|
min-width: 0;
|
|
1302
1302
|
overflow: hidden;
|
|
1303
1303
|
padding-right: 12px;
|
|
1304
1304
|
pointer-events: none;
|
|
1305
|
-
`,
|
|
1305
|
+
`,eg=({height:n,icons:o})=>{const r=i(),[a,s]=Ft(!1);return t(Yh,{$height:n,children:t(Jh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>e(qh,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[t(Qh,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(Zh,{children:t(vo,{size:go.S,weight:500,color:mo.Primary,nowrap:!0,children:o})})]},n))})})},tg=o.div`
|
|
1306
1306
|
display: flex;
|
|
1307
1307
|
flex-direction: column;
|
|
1308
1308
|
gap: 16px;
|
|
@@ -1326,20 +1326,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1326
1326
|
}
|
|
1327
1327
|
`}
|
|
1328
1328
|
`}
|
|
1329
|
-
`,
|
|
1329
|
+
`,ng=o.div`
|
|
1330
1330
|
display: flex;
|
|
1331
1331
|
align-items: center;
|
|
1332
1332
|
gap: 16px;
|
|
1333
1333
|
width: 100%;
|
|
1334
|
-
`,
|
|
1334
|
+
`,og=o.div`
|
|
1335
1335
|
display: flex;
|
|
1336
1336
|
flex-direction: column;
|
|
1337
1337
|
gap: 4px;
|
|
1338
1338
|
flex: 1;
|
|
1339
1339
|
min-width: 0;
|
|
1340
|
-
`,
|
|
1340
|
+
`,rg=o.div`
|
|
1341
1341
|
width: 100%;
|
|
1342
|
-
`,
|
|
1342
|
+
`,ig=({"data-id":n,title:o,description:r,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=n??`radio-card-${o}`,h=()=>{d||c(!0)};return e(tg,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(ng,{children:[t(Ah,{"data-id":`${p}-radio`,value:l,onChange:h,size:Th.L,disabled:d}),e(og,{children:[t(vo,{size:go.S,weight:500,lineHeight:"24px",color:mo.Primary,children:o}),r&&t(vo,{size:go.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:mo.Secondary,children:r})]})]}),a&&t(rg,{children:a}),s&&t(rg,{children:s})]})},ag=o.div`
|
|
1343
1343
|
width: 100%;
|
|
1344
1344
|
height: 100%;
|
|
1345
1345
|
|
|
@@ -1347,7 +1347,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1347
1347
|
animation: none !important;
|
|
1348
1348
|
transition: none !important;
|
|
1349
1349
|
}
|
|
1350
|
-
`,
|
|
1350
|
+
`,sg=({width:e="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ht(()=>o?r.map((e,n)=>t("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${n}`)):r,[r,o]),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(tn,{ref:c,style:{width:e,height:n},onScroll:a?u:void 0,children:d});return i?t(ag,{children:p}):p},lg=o.div`
|
|
1351
1351
|
display: flex;
|
|
1352
1352
|
flex-direction: column;
|
|
1353
1353
|
gap: 16px;
|
|
@@ -1356,47 +1356,47 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1356
1356
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1357
1357
|
width: 100%;
|
|
1358
1358
|
height: 100%;
|
|
1359
|
-
`,
|
|
1359
|
+
`,cg=o.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
gap: 16px;
|
|
1363
|
-
`,
|
|
1363
|
+
`,dg=o.div`
|
|
1364
1364
|
width: 50px;
|
|
1365
1365
|
height: 50px;
|
|
1366
1366
|
border-radius: 8px;
|
|
1367
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
1368
|
background-size: 200% 100%;
|
|
1369
|
-
animation: ${
|
|
1370
|
-
`,
|
|
1369
|
+
animation: ${jd} 10s infinite linear;
|
|
1370
|
+
`,ug=o(Zr)`
|
|
1371
1371
|
flex: 1;
|
|
1372
1372
|
gap: 12px;
|
|
1373
|
-
`,
|
|
1373
|
+
`,pg=o.div`
|
|
1374
1374
|
width: ${({$width:e})=>e};
|
|
1375
1375
|
height: 16px;
|
|
1376
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
1377
|
background-size: 200% 100%;
|
|
1378
|
-
animation: ${
|
|
1378
|
+
animation: ${jd} 1.5s infinite linear;
|
|
1379
1379
|
border-radius: 4px;
|
|
1380
|
-
`,
|
|
1380
|
+
`,hg=({size:n=5,maxWidth:o,maxHeight:r})=>t(lg,{$maxWidth:o,$maxHeight:r,children:[...Array(n)].map((n,o)=>e(cg,{children:[t(dg,{}),e(ug,{children:[t(pg,{$width:"80%"}),t(pg,{$width:"100%"})]})]},o))}),gg=({currentStep:n,data:o,gap:r=12})=>t(Zr,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return e(Qr,{$gap:8,children:[r||o.forceDoneBadge?t(Od,{status:Tn.Success,label:"",leftIcon:vt}):t(Od,{status:Tn.Default,label:o.step.toString()}),t(vo,{size:i?go.M:go.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var mg;(e=>{e.Data="data",e.Pretty="pretty"})(mg||(mg={}));const fg=o.div`
|
|
1381
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
1382
|
width: 100%;
|
|
1383
1383
|
display: flex;
|
|
1384
1384
|
flex-direction: column;
|
|
1385
1385
|
overflow: hidden;
|
|
1386
|
-
`,
|
|
1386
|
+
`,yg=o.div`
|
|
1387
1387
|
width: 100%;
|
|
1388
1388
|
flex: 1;
|
|
1389
1389
|
display: flex;
|
|
1390
1390
|
flex-direction: column;
|
|
1391
|
-
`,
|
|
1391
|
+
`,bg=o.div`
|
|
1392
1392
|
flex-shrink: 0;
|
|
1393
1393
|
position: relative;
|
|
1394
1394
|
z-index: 2;
|
|
1395
|
-
`,
|
|
1395
|
+
`,vg=o.div`
|
|
1396
1396
|
position: relative;
|
|
1397
1397
|
display: flex;
|
|
1398
1398
|
width: 100%;
|
|
1399
|
-
`,
|
|
1399
|
+
`,Eg=o.div`
|
|
1400
1400
|
position: relative;
|
|
1401
1401
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1402
1402
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
@@ -1415,12 +1415,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1415
1415
|
|
|
1416
1416
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1417
1417
|
background-color: ${t};
|
|
1418
|
-
`;switch(e){case
|
|
1418
|
+
`;switch(e){case mg.Data:return r`
|
|
1419
1419
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1420
|
-
`;case
|
|
1420
|
+
`;case mg.Pretty:return r`
|
|
1421
1421
|
background-color: transparent;
|
|
1422
1422
|
`;default:return""}}}
|
|
1423
|
-
`,
|
|
1423
|
+
`,Sg=o.div`
|
|
1424
1424
|
position: absolute;
|
|
1425
1425
|
top: 50%;
|
|
1426
1426
|
right: 0;
|
|
@@ -1428,7 +1428,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1428
1428
|
width: 1px;
|
|
1429
1429
|
height: 18px;
|
|
1430
1430
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1431
|
-
|
|
1431
|
+
`,$g=o.div`
|
|
1432
1432
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1433
1433
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1434
1434
|
|
|
@@ -1463,16 +1463,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1463
1463
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1464
1464
|
box-sizing: border-box;
|
|
1465
1465
|
|
|
1466
|
-
${({$variant:e,$selected:t,$highlighted:n,$hovered:o,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case
|
|
1466
|
+
${({$variant:e,$selected:t,$highlighted:n,$hovered:o,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case mg.Data:return r`
|
|
1467
1467
|
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1468
1468
|
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1469
1469
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1470
|
-
`;case
|
|
1470
|
+
`;case mg.Pretty:return r`
|
|
1471
1471
|
border: none;
|
|
1472
1472
|
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1473
1473
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1474
1474
|
`;default:return""}}}
|
|
1475
|
-
`,
|
|
1475
|
+
`,Cg=o.div`
|
|
1476
1476
|
position: absolute;
|
|
1477
1477
|
top: 0;
|
|
1478
1478
|
left: 0;
|
|
@@ -1481,18 +1481,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1481
1481
|
height: 0;
|
|
1482
1482
|
overflow: hidden;
|
|
1483
1483
|
white-space: nowrap;
|
|
1484
|
-
`,
|
|
1484
|
+
`,xg=o.div`
|
|
1485
1485
|
display: inline-flex;
|
|
1486
1486
|
align-items: center;
|
|
1487
1487
|
padding: 18px 24px;
|
|
1488
1488
|
box-sizing: border-box;
|
|
1489
1489
|
white-space: nowrap;
|
|
1490
|
-
`,
|
|
1490
|
+
`,wg=o.div`
|
|
1491
1491
|
display: inline-flex;
|
|
1492
1492
|
align-items: center;
|
|
1493
1493
|
gap: 4px;
|
|
1494
1494
|
white-space: nowrap;
|
|
1495
|
-
|
|
1495
|
+
`,Tg=o.div`
|
|
1496
1496
|
width: 100%;
|
|
1497
1497
|
height: 100%;
|
|
1498
1498
|
display: flex;
|
|
@@ -1500,7 +1500,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1500
1500
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1501
1501
|
gap: 4px;
|
|
1502
1502
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1503
|
-
`,
|
|
1503
|
+
`,Og=({variant:n,columns:o,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ft(null),f=Ht(()=>r.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:$,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(vg,{children:[d&&t($g,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?t(wd,{text:C,children:t(uu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):t(uu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),o.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===o.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",$=y?.component?t(y.component,{}):s?t(vo,{size:go.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(Au,{size:go.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(Qr,{$width:"100%",$justifyContent:S,children:$});return e($g,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?t(wd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(Sh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[r,g,u,s,l,c,d,o,i,a]);return t(sg,{gap:n===mg.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Ng=({columnKey:e,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(_d,{variant:Nd.Text,size:Ad.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},Ag=({columnKey:e,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[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(xu,{items:c,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Ig=({variant:n,backgroundColor:o,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(vg,{children:[h&&t(Eg,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(uu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:$,textAlign:C},x)=>{const w=0===x&&!h,T=x===r.length-1,O=!(!y&&!f),N=O?t(vo,{size:go.XS,align:C,nowrap:!0,children:m}):t(Au,{size:go.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(Eg,{$variant:n,$backgroundColor:o,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Tg,{$textAlign:C,children:[O?t(wd,{text:y||m,children:N}):N,!b&&t(Ng,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(Ag,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===mg.Data&&t(Sg,{})]},`column-${g}`)})]}),_g=()=>{},Rg={},Dg=[],kg=({variant:n,maxHeight:o,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(mn.Ascending),[E,S]=Ft(""),[$,C]=Ft({}),x=g??$,w=Bt(e=>{S(e),v(e=>e===mn.Ascending?mn.Descending:mn.Ascending)},[]),T=Bt((e,t)=>{const n={...x,[e]:t};m&&m(n),void 0===g&&C(n)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,n)=>{const o=e(t,E),r=e(n,E);return(b===mn.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,r)}):c).filter(t=>{for(const[n,o]of Object.entries(x)){if(!o.length)continue;const r=l.find(e=>e.key===n)?.filterOverride;if(r){if(!r.filterRow(t,o))return!1}else if(!o.includes(e(t,n)))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 n of c)for(const o of n.cells)o.component&&!e.has(o.key)&&t.add(o.key);return t},[c,l]),R=jt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const o=[e(wg,{children:[t(vo,{size:go.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Ng,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:_g}),!n.noFilter&&t(Ag,{columnKey:n.key,filters:Rg,onFilter:_g,rowsUnfiltered:Dg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((e,r)=>{const i=e.cells.find(e=>e.key===n.key);i&&o.push(i.component?t(i.component,{},`mw-${n.key}-${r}`):t(vo,{size:go.XS,children:i.rawValue||"-"},`mw-${n.key}-${r}`))}),{key:n.key,nodes:o}}),[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 n=t.dataset.mwKey;if(!n)return;const o=Math.ceil(t.getBoundingClientRect().width);(!e[n]||o>e[n])&&(e[n]=o)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(fg,{$maxHeight:o,children:[L.length>0&&t(Cg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,o)=>t(xg,{"data-mw-key":e,children:n},`mw-${e}-${o}`)))}),e(yg,{$variant:n,children:[!i&&t(bg,{children:t(Ig,{variant:n,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(Og,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ei,{$height:o,children:a?t(hg,{size:3,maxHeight:o}):t(ou,{...s})})]})]})};var Lg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Lg||(Lg={}));const Pg=(e,t,n)=>{switch(t){case Lg.Purple:return e.v2.colors.purple[n?"300":"900"];case Lg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Lg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Lg.Pink:return e.v2.colors.red[n?"300":"1000"];case Lg.Green:return e.v2.colors.green[n?"300":"900"];case Lg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Mg=o.div`
|
|
1504
1504
|
display: flex;
|
|
1505
1505
|
align-items: center;
|
|
1506
1506
|
justify-content: center;
|
|
@@ -1519,16 +1519,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1519
1519
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1520
1520
|
cursor: not-allowed;
|
|
1521
1521
|
`:r`
|
|
1522
|
-
background-color: ${({theme:e})=>
|
|
1522
|
+
background-color: ${({theme:e})=>Pg(e,t)};
|
|
1523
1523
|
${n&&r`
|
|
1524
1524
|
cursor: pointer;
|
|
1525
1525
|
&:hover,
|
|
1526
1526
|
&:active {
|
|
1527
|
-
border: 1px solid ${({theme:e})=>
|
|
1527
|
+
border: 1px solid ${({theme:e})=>Pg(e,t,!0)};
|
|
1528
1528
|
}
|
|
1529
1529
|
`}
|
|
1530
1530
|
`}
|
|
1531
|
-
`,
|
|
1531
|
+
`,Ug=({variant:n=Lg.Default,label:o,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Lg.Default?d.v2.colors.white[500]:Pg(d,n,!0),p=n===Lg.Loader;return e(Mg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&t(r,{fill:u,size:16}),p?t(di,{withGradient:!0,title:o,titleSize:go.XXS}):t(vo,{color:u,size:go.XXS,nowrap:!0,children:o}),a&&t(a,{fill:u,size:16})]})},Fg=o.div`
|
|
1532
1532
|
padding: 6px 12px;
|
|
1533
1533
|
|
|
1534
1534
|
display: flex;
|
|
@@ -1546,7 +1546,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1546
1546
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1547
1547
|
}
|
|
1548
1548
|
`}
|
|
1549
|
-
`,
|
|
1549
|
+
`,zg=o.textarea`
|
|
1550
1550
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1551
1551
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1552
1552
|
flex: 1;
|
|
@@ -1571,26 +1571,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1571
1571
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
`,
|
|
1574
|
+
`,Bg=({label:n,required:o,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(Zr,{$gap:6,children:[t(au,{label:n,tooltip:r,required:o,badge:i}),t(Fg,{$disabled:p,$error:!!a,children:t(zg,{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(su,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Hg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],jg=o.div`
|
|
1575
1575
|
flex: 1;
|
|
1576
1576
|
min-width: 0;
|
|
1577
|
-
`,
|
|
1577
|
+
`,Wg=o.div`
|
|
1578
1578
|
flex: 0 0 auto;
|
|
1579
1579
|
min-width: 140px;
|
|
1580
|
-
`,
|
|
1580
|
+
`,Gg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Hg,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,n)=>{if(null==e||""===e)return{num:"",unit:n};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${o.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:n}:{num:"",unit:n}})(c,u,b),[c,u,b]),S=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(Zr,{$width:y,$gap:6,children:[t(au,{label:o,tooltip:r,required:s,badge:i}),e(Qr,{$gap:8,$alignItems:"center",children:[t(jg,{children:t(Ku,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(Pi(e.target.value),E)})}),t(Wg,{children:t(gh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),t(su,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Xg=o.div`
|
|
1581
1581
|
min-width: 500px;
|
|
1582
|
-
`,
|
|
1582
|
+
`,Vg=o.div`
|
|
1583
1583
|
display: flex;
|
|
1584
1584
|
flex-direction: column;
|
|
1585
1585
|
align-items: center;
|
|
1586
1586
|
gap: 16px;
|
|
1587
1587
|
padding: 24px;
|
|
1588
1588
|
width: 100%;
|
|
1589
|
-
`,
|
|
1589
|
+
`,Kg=o.div`
|
|
1590
1590
|
display: flex;
|
|
1591
1591
|
justify-content: center;
|
|
1592
1592
|
gap: 16px;
|
|
1593
1593
|
padding: 16px 24px;
|
|
1594
1594
|
width: 100%;
|
|
1595
1595
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1596
|
-
`,
|
|
1596
|
+
`,Yg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(Kh,{isOpen:i,onClose:a,...d,children:e(Xg,{children:[e(Vg,{children:[n&&t(n,{}),t(vo,{size:go.M,weight:500,color:mo.Primary,children:o}),t(Zr,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(vo,{size:go.XS,weight:400,color:mo.Secondary,children:e},e))}),c]}),(s||l)&&e(Kg,{children:[s&&t(_d,{"data-id":"deny",...s}),l&&t(_d,{"data-id":"approve",...l})]})]})});export{lu as $,wu as A,_d as B,uu as C,hh as D,hs as E,Zr as F,bs as G,Ug as H,Bh as I,vs as J,Es as K,gs as L,En as M,ah as N,ir as O,yn as P,Uu as Q,Nu as R,Tn as S,wd as T,Ya as U,Br as V,Yg as W,es as X,Qd as Y,Yu as Z,ds as _,Tu as a,ei as a$,Ss as a0,$s as a1,Ka as a2,Ro as a3,Up as a4,Ph as a5,ca as a6,ja as a7,Mn as a8,zn as a9,xs as aA,Ma as aB,fs as aC,ws as aD,Cs as aE,Ts as aF,Os as aG,as as aH,Oa as aI,Ia as aJ,_a as aK,ka as aL,Pa as aM,La as aN,Xa as aO,ya as aP,ba as aQ,xa as aR,ss as aS,ls as aT,ps as aU,xc as aV,va as aW,Va as aX,Ho as aY,wc as aZ,sg as a_,Kn as aa,Yn as ab,Jn as ac,Fn as ad,Bn as ae,Un as af,po as ag,Qa as ah,Aa as ai,qa as aj,Na as ak,ns as al,Ha as am,Ja as an,ts as ao,us as ap,Wa as aq,Ah as ar,cs as as,Fa as at,wa as au,za as av,Ua as aw,xu as ax,Ta as ay,Ba as az,fn as b,Jc as b$,ou as b0,di as b1,tu as b2,Zc as b3,Zo as b4,xp as b5,Pc as b6,wo as b7,Nr as b8,Sn as b9,eo as bA,Od as bB,sn as bC,ra as bD,pn as bE,ia as bF,Th as bG,Au as bH,Xd as bI,Eo as bJ,Fi as bK,qi as bL,Qi as bM,ea as bN,Zi as bO,Fs as bP,Ga as bQ,Za as bR,zs as bS,is as bT,Us as bU,$a as bV,Ca as bW,Ra as bX,ao as bY,rn as bZ,Qc as b_,$n as ba,Ac as bb,zc as bc,Wc as bd,Mc as be,yr as bf,so as bg,hr as bh,Ci as bi,na as bj,$i as bk,Gc as bl,oo as bm,an as bn,on as bo,xi as bp,wi as bq,lo as br,ki as bs,Xn as bt,Di as bu,ta as bv,kn as bw,Ud as bx,qr as by,hg as bz,oa as c,Zs as c$,co as c0,ur as c1,ho as c2,Co as c3,$o as c4,hn as c5,ig as c6,er as c7,_p as c8,Fo as c9,Xi as cA,Ii as cB,Ar as cC,ui as cD,sr as cE,Vd as cF,kg as cG,mg as cH,jh as cI,Da as cJ,da as cK,Cr as cL,lr as cM,aa as cN,pa as cO,la as cP,ua as cQ,Sc as cR,Cc as cS,$c as cT,Gs as cU,js as cV,Hs as cW,Ws as cX,qs as cY,Js as cZ,el as c_,Pp as ca,no as cb,Ri as cc,Vo as cd,bi as ce,uo as cf,bd as cg,cd as ch,Io as ci,Pn as cj,Ao as ck,Wi as cl,ar as cm,Lg as cn,mp as co,Dc as cp,yi as cq,fi as cr,dr as cs,Ch as ct,Rc as cu,Or as cv,qo as cw,pi as cx,sd as cy,Ki as cz,au as d,uc as d$,Ks as d0,Vs as d1,sa as d2,Ds as d3,id as d4,Ti as d5,mu as d6,gu as d7,Kh as d8,Ic as d9,hl as dA,ml as dB,tl as dC,nl as dD,Cl as dE,xl as dF,Il as dG,Nl as dH,Al as dI,Tl as dJ,Ol as dK,wl as dL,kl as dM,Ll as dN,Rl as dO,Dl as dP,_l as dQ,Ml as dR,Ul as dS,Pl as dT,il as dU,ic as dV,ac as dW,sc as dX,rc as dY,cc as dZ,dc as d_,Ec as da,ol as db,fl as dc,yl as dd,bl as de,vl as df,Sl as dg,El as dh,$l as di,Kr as dj,gc as dk,mc as dl,fc as dm,yc as dn,bc as dp,vc as dq,rl as dr,al as ds,sl as dt,ll as du,dl as dv,cl as dw,pl as dx,ul as dy,gl as dz,vo as e,ks as e$,pc as e0,hc as e1,lc as e2,nc as e3,oc as e4,Vl as e5,Zl as e6,ec as e7,tc as e8,Yl as e9,gr as eA,pr as eB,Yc as eC,Ko as eD,Xo as eE,Go as eF,So as eG,Ir as eH,Hn as eI,Bu as eJ,dp as eK,Wu as eL,Jr as eM,ys as eN,ma as eO,ha as eP,ga as eQ,fa as eR,Bs as eS,Rs as eT,Is as eU,_s as eV,As as eW,Ns as eX,Ps as eY,Ms as eZ,Ls as e_,ql as ea,Jl as eb,Fl as ec,zl as ed,Bl as ee,Hl as ef,jl as eg,Wl as eh,Gl as ei,Xl as ej,Kl as ek,Ql as el,xr as em,Yr as en,gg as eo,Lc as ep,Yo as eq,xo as er,Gi as es,pd as et,_c as eu,Bc as ev,mr as ew,tr as ex,nr as ey,fr as ez,mo as f,os as f$,dd as f0,_n as f1,dn as f2,An as f3,Nn as f4,Dn as f5,bn as f6,vn as f7,On as f8,un as f9,No as fA,vr as fB,Er as fC,Sr as fD,$r as fE,wr as fF,hi as fG,vi as fH,Ei as fI,Si as fJ,Oi as fK,Ni as fL,_i as fM,Pi as fN,Mi as fO,Ui as fP,zi as fQ,Bi as fR,Wo as fS,Hi as fT,ji as fU,to as fV,Yi as fW,ms as fX,Qs as fY,Ys as fZ,Xs as f_,Zn as fa,gn as fb,cn as fc,Ln as fd,Cn as fe,Gn as ff,Wn as fg,jn as fh,Rn as fi,Qn as fj,qn as fk,Vn as fl,mn as fm,ln as fn,In as fo,jr as fp,Hr as fq,Xr as fr,zo as fs,Bo as ft,Li as fu,Jo as fv,Qo as fw,rr as fx,jo as fy,cr as fz,go as g,rs as g0,Sa as g1,Ea as g2,Vi as g3,Tc as g4,ro as g5,io as g6,Ji as g7,Oc as g8,ad as g9,ii as gA,ai as gB,bp as gC,Vp as gD,Fp as gE,ti as gF,yo as gG,Vc as ga,Kc as gb,ed as gc,nd as gd,rd as ge,ld as gf,ud as gg,gd as gh,Md as gi,Gd as gj,Fd as gk,Pd as gl,Zu as gm,ep as gn,hu as go,Hg as gp,fh as gq,tp as gr,vh as gs,Sh as gt,oi as gu,eg as gv,ni as gw,_h as gx,Pu as gy,ri as gz,Qr as h,Ad as i,Nd as j,su as k,Oo as l,To as m,xn as n,Gp as o,Bp as p,zp as q,Gg as r,gh as s,nn as t,Bg as u,Do as v,wh as w,Ku as x,wn as y,Lu as z};
|