@odigos/ui-kit 0.0.280 → 0.0.282
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 +15 -0
- package/lib/chunks/{helpers-BCQhqBdU.js → helpers-CAVGqyMb.js} +1 -1
- package/lib/chunks/index-Cy3rRes8.js +257 -0
- package/lib/chunks/source-instrument-form-context-DSXDMVmM.js +5 -0
- package/lib/chunks/{ui-components-D1sa0AJ8.js → ui-components-Dcg3x769.js} +228 -223
- package/lib/components/segment/index.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/setup-artifacts.d.ts +12 -2
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/create-role-section.d.ts +3 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/methods.d.ts +0 -28
- package/lib/containers/_drawers/edit-action-drawer/helpers.d.ts +3 -2
- package/lib/containers/_drawers/edit-rule-drawer/helpers.d.ts +3 -2
- package/lib/containers.js +227 -245
- package/lib/contexts.js +1 -1
- package/lib/functions/build-catalog-fields-data-card/index.d.ts +42 -2
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/render-catalog-field-segments/index.d.ts +8 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/enable-disable-segment/index.d.ts +7 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/palettes/index.d.ts +1 -0
- package/lib/theme.js +1 -1
- package/lib/types/cloud-connectors/index.d.ts +5 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +2 -2
- package/lib/chunks/index-CAqgZyIB.js +0 -257
- package/lib/chunks/source-instrument-form-context-Cng6X7Mt.js +0 -5
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/enter-arn-section.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as o,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,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as E,SwiftLogo as S,RustLogo as $,RubyLogo as C,PhpLogo as x,CPlusPlusLogo as w,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as _,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as k,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as M,TempoLogo as U,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as W,QuickwitLogo as G,GigapipeLogo as X,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as Ee,DatadogLogo as Se,Dash0Logo as $e,CoralogixLogo as Ce,AwsCloudwatchLogo as xe,ClickhouseLogo as we,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as ke,AlibabaCloudLogo as Le,AlaudaLogo as Pe,SamplingIcon as Me,InstrumentationRuleIcon as Ue,DestinationIcon as Fe,SourceIcon as ze,NamespacesIcon as Be,PayloadCollectionIcon as He,HeadersCollectionIcon as je,CustomInstrumentationIcon as We,CodeAttributesIcon 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 rt,AwsLogo as ot,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 rn,on,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"})(rn||(rn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(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"})(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,r){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=r||""}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 er={[on.Enrichment]:{TITLE:"Enrichment",ICON:d},[on.Normalization]:{TITLE:"Normalization",ICON:c},[on.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},tr={[rn.AddClusterInfo]:on.Enrichment,[rn.K8sAttributes]:on.Enrichment,[rn.ExtractAttribute]:on.Enrichment,[rn.InferDbAttributes]:on.Enrichment,[rn.DbQueryTemplatization]:on.Normalization,[rn.URLTemplatization]:on.Normalization,[rn.RenameAttributes]:on.Normalization,[rn.PiiMasking]:on.Privacy,[rn.DeleteAttributes]:on.Privacy},nr=e=>{const t=tr[e];return t?er[t].ICON:u},rr=[{type:rn.K8sAttributes,icon:nr(rn.K8sAttributes),category:tr[rn.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:rn.AddClusterInfo,icon:nr(rn.AddClusterInfo),category:tr[rn.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:rn.DeleteAttributes,icon:nr(rn.DeleteAttributes),category:tr[rn.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:rn.RenameAttributes,icon:nr(rn.RenameAttributes),category:tr[rn.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:rn.PiiMasking,icon:nr(rn.PiiMasking),category:tr[rn.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:rn.URLTemplatization,icon:nr(rn.URLTemplatization),category:tr[rn.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:rn.ExtractAttribute,icon:nr(rn.ExtractAttribute),category:tr[rn.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]}],or=nn("v1.26"),ir=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),ar=(e,t,n)=>{const r=e.minVersion?.[t];return!r||nn(n)>=r},sr=(e,t)=>rr.filter(n=>ir(n,e)&&ar(n,e,t)).map(n=>((e,t,n)=>t!==yn.K8s||nn(n)>=or?e:e.allowedSignals?.includes(Xn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Xn.Profiles)}:e)(n,e,t)),lr=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:nr(e.type),category:e.category||tr[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var cr;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(cr||(cr={}));const dr={[cr.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[cr.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[cr.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[cr.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[cr.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[cr.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ur=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var pr,hr,gr;(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"})(pr||(pr={})),(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"})(hr||(hr={})),(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"})(gr||(gr={}));const mr=new Set(Object.values(gr)),fr=(e,t)=>{if("string"!=typeof(n=t)||!mr.has(n))return t;var n;switch(t){case gr.Primary:return e.v2.colors.white[500];case gr.Secondary:return e.v2.colors.silver[200];case gr.Tertiary:return e.v2.colors.black[500];case gr.Disable:return e.v2.colors.grey[400];case gr.Error:return e.v2.colors.red[500];case gr.Mandatory:return e.v2.colors.red[600];case gr.Link:return e.v2.colors.purple[400];case gr.Success:return e.v2.colors.green[400];default:return}},yr=r.p`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as o,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,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as y,NginxLogo as b,MysqlLogo as v,ElixirLogo as E,SwiftLogo as $,RustLogo as S,RubyLogo as C,PhpLogo as x,CPlusPlusLogo as w,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as _,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as k,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as M,TempoLogo as F,TelemetryHubLogo as U,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as W,QuickwitLogo as G,GigapipeLogo as X,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ie,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as ce,JaegerLogo as de,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as Ee,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as Ce,AwsCloudwatchLogo as xe,ClickhouseLogo as we,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as ke,AlibabaCloudLogo as Le,AlaudaLogo as Pe,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as Ue,SourceIcon as ze,NamespacesIcon as Be,PayloadCollectionIcon as He,HeadersCollectionIcon as je,CustomInstrumentationIcon as We,CodeAttributesIcon 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 rt,AwsLogo as ot,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 Ft,useState as Ut,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 rn,on,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,Fn,Un,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"})(rn||(rn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(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"})(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"})($n||($n={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(Sn||(Sn={})),(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"})(Fn||(Fn={})),(e=>{e.HeaderKeys="headerKeys"})(Un||(Un={})),(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,r){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=r||""}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 er={[on.Enrichment]:{TITLE:"Enrichment",ICON:d},[on.Normalization]:{TITLE:"Normalization",ICON:c},[on.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},tr={[rn.AddClusterInfo]:on.Enrichment,[rn.K8sAttributes]:on.Enrichment,[rn.ExtractAttribute]:on.Enrichment,[rn.InferDbAttributes]:on.Enrichment,[rn.DbQueryTemplatization]:on.Normalization,[rn.URLTemplatization]:on.Normalization,[rn.RenameAttributes]:on.Normalization,[rn.PiiMasking]:on.Privacy,[rn.DeleteAttributes]:on.Privacy},nr=e=>{const t=tr[e];return t?er[t].ICON:u},rr=[{type:rn.K8sAttributes,icon:nr(rn.K8sAttributes),category:tr[rn.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:rn.AddClusterInfo,icon:nr(rn.AddClusterInfo),category:tr[rn.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:rn.DeleteAttributes,icon:nr(rn.DeleteAttributes),category:tr[rn.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:rn.RenameAttributes,icon:nr(rn.RenameAttributes),category:tr[rn.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:rn.PiiMasking,icon:nr(rn.PiiMasking),category:tr[rn.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:rn.URLTemplatization,icon:nr(rn.URLTemplatization),category:tr[rn.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:rn.ExtractAttribute,icon:nr(rn.ExtractAttribute),category:tr[rn.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]}],or=nn("v1.26"),ir=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),ar=(e,t,n)=>{const r=e.minVersion?.[t];return!r||nn(n)>=r},sr=(e,t)=>rr.filter(n=>ir(n,e)&&ar(n,e,t)).map(n=>((e,t,n)=>t!==yn.K8s||nn(n)>=or?e:e.allowedSignals?.includes(Xn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Xn.Profiles)}:e)(n,e,t)),lr=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:nr(e.type),category:e.category||tr[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var cr;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(cr||(cr={}));const dr={[cr.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[cr.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[cr.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[cr.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[cr.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[cr.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},ur=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var pr,hr,gr;(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"})(pr||(pr={})),(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"})(hr||(hr={})),(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"})(gr||(gr={}));const mr=new Set(Object.values(gr)),fr=(e,t)=>{if("string"!=typeof(n=t)||!mr.has(n))return t;var n;switch(t){case gr.Primary:return e.v2.colors.white[500];case gr.Secondary:return e.v2.colors.silver[200];case gr.Tertiary:return e.v2.colors.black[500];case gr.Disable:return e.v2.colors.grey[400];case gr.Error:return e.v2.colors.red[500];case gr.Mandatory:return e.v2.colors.red[600];case gr.Link:return e.v2.colors.purple[400];case gr.Success:return e.v2.colors.green[400];default:return}},yr=r.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>fr(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,br=Mt(({children:n,variant:r=pr.P,color:o,size:i=hr.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,r,o)=>e(Ut,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$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})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",Sr="this-cluster",$r="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={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 start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",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."},wr={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",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"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",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",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"},Tr={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"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=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}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var Ir;(e=>{e.SIGNALS="SIGNALS"})(Ir||(Ir={}));const _r=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===Ir.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){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 Rr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Dr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),kr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Lr=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),Pr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t,n={})=>{const r=[],o=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&&!_r(t.renderCondition,o,a))return;const s=t.displayName||t.name,l=`${t.name}-${n}`,c=e[t.name],d=Rr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void r.push({id:l,title:s,badge:Dr(!!c)});case xn.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void r.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 o=Pr(t),i=String(o.id??"");i&&r.push({id:`${l}-${n}-${i}`,title:Mr(o,i),badge:Dr(!0===e[i])})});const n=kr(c)?c:{},o=Array.isArray(d.options)?d.options:[];if(o.length){const e=o.map(e=>{const t=Pr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean);return void r.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(n).filter(([,e])=>!!e).map(([e])=>e);return void r.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case xn.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,n=e&&kr(c)?c[e]:c;if(Array.isArray(n)&&n.length){const e=n.map(e=>t&&kr(e)?String(e[t]??""):String(e??""));return void r.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void r.push({id:l,title:s,label:"-"})}case xn.KeyValuePair:return kr(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],n)=>{r.push({id:`${l}-${n}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const n=kr(e)?e:{};r.push({id:`${l}-${t}`,title:String(n.key??""),label:String(n.value??"")})}):void r.push({id:l,title:s,label:"-"});case xn.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&kr(c)?c[e]:c)?e&&kr(c)?c[e]:c:[],n=Array.isArray(d.columns)?d.columns:[],o=e=>{const t=n.find(t=>kr(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&&r.push({id:`${l}-${n}-${e}`,title:`${i}${o(e)}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}case xn.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,n)=>{const o=e.length>1?`${s} #${n+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&r.push({id:`${l}-${n}-${e}`,title:`${o}${e}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}default:r.push({id:l,title:s,label:Lr(c)})}}),r},Fr=e=>e.charAt(0).toUpperCase()+e.slice(1),zr=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,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Br=e=>JSON.parse(JSON.stringify(e)),Hr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),jr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Wr=(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},Gr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Xr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Vr=(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)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Kr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],Yr=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?Yr(e,r,n):n[r]=e}):n[i]=o:Yr(o,i,n)}return n},Jr=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]}`},qr=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`}},Qr=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},Zr=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],eo=e=>Array.isArray(e?.statuses)?Zr(e.statuses):e?.conditions??[],to=e=>e?Array.isArray(e)?no(e):no(Zr(Object.values(e))):no([]),no=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},ro=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},oo=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:$,[En.Swift]:S,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),io=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,ao=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,so=e=>e?.map(e=>oo(io(e)))||[],lo=e=>e?.map(e=>oo(e))||[],co=e=>e.runtimeInfo?.detectedLanguages?.length?lo(e.runtimeInfo?.detectedLanguages):so(e.containers),uo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:$e,[Dn.Datadog]:Se,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:F,[Dn.Tempo]:U,[Dn.Tingyun]:M,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},po=e=>({[$n.Namespace]:Be,[$n.Source]:ze,[$n.Destination]:Fe,[$n.Action]:u,[$n.InstrumentationRule]:Ue,[$n.SamplingRule]:Me}[e]),ho=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,go=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},mo=e=>go(ho(e)),fo=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=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 r=e;i=r.type,a=r.name||"";break;case $n.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case $n.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},yo=(e,t)=>{if(t===$n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},bo=e=>({[Mn.CodeAttributes]:Ge,[Mn.CustomInstrumentation]:We,[Mn.HeadersCollection]:je,[Mn.PayloadCollection]:He,[Mn.UnknownType]:g}[e]||g),vo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,Eo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>vo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>vo(e)!==En.Unknown);return o?vo(o):En.Unknown},So=(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},$o=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),Co=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),xo=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,wo=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",To=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(...To(e,t,n)),o}):[]},Oo={"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"},No=e=>{if(!e)return"";if(Oo[e])return Oo[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Ao=(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},Io=(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]}},_o=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}},Ro=r.div`
|
|
41
|
+
`,br=Mt(({children:n,variant:r=pr.P,color:o,size:i=hr.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,r,o)=>e(Ft,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$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})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",$r="this-cluster",Sr="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={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 start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",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."},wr={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",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"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",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",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"},Tr={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"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=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}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Ir=e=>e.charAt(0).toUpperCase()+e.slice(1);var _r;(e=>{e.SIGNALS="SIGNALS"})(_r||(_r={}));const Rr=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===_r.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){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 Dr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const kr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Pr=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},Mr=e=>"string"==typeof e?{id:e,label:e}:e??{},Fr=(e,t)=>e.label||e.displayName||t,Ur=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const r=e.options?.find(e=>String(e.id??"")===n);return r?Fr(r,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),r=e.options?.find(e=>String(e.id??"")===n);return r?Fr(r,n):Pr(t)},zr=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Lr(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Br=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...Br(e.segments))):t.push(...e.items)}),t},Hr=(e,t,n={})=>{const r=[],o=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(r.push({kind:"cells",id:`cells-${r.length}`,items:s}),s=[])};return t.forEach((t,c)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Rr(t.renderCondition,o,a))return;const d=t.displayName||t.name,u=`${t.name}-${c}`,p=e[t.name],h=Dr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void s.push({id:u,title:d,badge:kr(!!p)});case xn.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],n=e.map(e=>{const n=t.map(Mr).find(t=>String(t.id??"")===e);return n?Fr(n,e):e});return l(),void r.push({kind:"list",id:u,title:d,items:n.length?n.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,n)=>{const r=Mr(t),o=String(r.id??"");o&&s.push({id:`${u}-${n}-${o}`,title:Fr(r,o),badge:kr(!0===e[o])})});const n=Lr(p)?p:{},o=Array.isArray(h.options)?h.options:[];let i=[];return i=o.length?o.map(e=>{const t=Mr(e),r=String(t.id??"");return r&&n[r]?Fr(t,r):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void r.push({kind:"list",id:u,title:d,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Lr(p)?p[e]:p,o=Array.isArray(n)&&n.length?n.map(e=>t&&Lr(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void r.push({kind:"list",id:u,title:d,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.KeyValuePair:return l(),Lr(p)&&Object.keys(p).length?void r.push({kind:"pairs",id:u,title:d,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void r.push({kind:"pairs",id:u,title:d,items:p.map((e,t)=>{const n=Lr(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void r.push({kind:"pairs",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]});case xn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Lr(p)?p[e]:p)?e&&Lr(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,r=Array.isArray(n)?n.map(Mr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:r,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,o)=>{const i=t.length>1?`${d} #${o+1}`:d,a=[],s=Lr(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,r,o]=t,i=null==e?.[n]?"":String(e[n]);switch(r){case"=":case"==":case"===":return i===o;case"!=":case"!==":return i!==o;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${o}-${e.keyName}`,title:e.label||Ir(ur(e.keyName))||e.keyName,label:Ur(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${o}-${e}`,title:e,label:Pr(t)})}),r.push({kind:"group",id:`${u}-${o}`,title:i,items:a.length?a:[{id:`${u}-${o}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}case xn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(zr).filter(Boolean),o=h.itemLabel||d;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${o} ${a+1}`:o,l=Lr(i)?i:{},c=t.length?Hr(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Pr(t)}))}];r.push({kind:"group",id:`${u}-${a}`,title:s,segments:c.length?c:void 0,items:c.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:d,label:Pr(p)})}var g}),l(),r},jr=(e,t,n={})=>Br(Hr(e,t,n)),Wr=e=>e.map(e=>"cells"===e.kind?t(Yu,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):"list"===e.kind||"pairs"===e.kind?t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id):t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:e.items?.length?2:void 0,items:e.items,children:e.segments?.length?Wr(e.segments):null},e.id)),Gr=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,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Xr=e=>JSON.parse(JSON.stringify(e)),Vr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Kr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Yr=(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},Jr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},qr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Qr=(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)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Zr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],eo=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?eo(e,r,n):n[r]=e}):n[i]=o:eo(o,i,n)}return n},to=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]}`},no=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`}},ro=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},oo=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],io=e=>Array.isArray(e?.statuses)?oo(e.statuses):e?.conditions??[],ao=e=>e?Array.isArray(e)?so(e):so(oo(Object.values(e))):so([]),so=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},co=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:S,[En.Swift]:$,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,po=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,ho=e=>e?.map(e=>co(uo(e)))||[],go=e=>e?.map(e=>co(e))||[],mo=e=>e.runtimeInfo?.detectedLanguages?.length?go(e.runtimeInfo?.detectedLanguages):ho(e.containers),fo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:Se,[Dn.Datadog]:$e,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:U,[Dn.Tempo]:F,[Dn.Tingyun]:M,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},yo=e=>({[Sn.Namespace]:Be,[Sn.Source]:ze,[Sn.Destination]:Ue,[Sn.Action]:u,[Sn.InstrumentationRule]:Fe,[Sn.SamplingRule]:Me}[e]),bo=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,vo=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},Eo=e=>vo(bo(e)),$o=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case Sn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Sn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Sn.Action:const r=e;i=r.type,a=r.name||"";break;case Sn.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Sn.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},So=(e,t)=>{if(t===Sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},Co=e=>({[Mn.CodeAttributes]:Ge,[Mn.CustomInstrumentation]:We,[Mn.HeadersCollection]:je,[Mn.PayloadCollection]:He,[Mn.UnknownType]:g}[e]||g),xo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,wo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>xo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>xo(e)!==En.Unknown);return o?xo(o):En.Unknown},To=(e,t,n)=>(t===Sn.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},Oo=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),No=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),Ao=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,Io=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",_o=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(..._o(e,t,n)),o}):[]},Ro={"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"},Do=e=>{if(!e)return"";if(Ro[e])return Ro[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ko=(e,t)=>{if(t===Sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Lo=(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]}},Po=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}},Mo=r.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,Fo=r.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 r,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Uo=r(br)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,zo=({percentage:n})=>e(Mo,{children:[t(Fo,{}),"number"==typeof n?t(Uo,{size:hr.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),Bo={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 Ho(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 r=(e.match(/[^0-9]*$/)||"").toString();return Bo[r]?{value:t,unit:r}:{value:t,unit:"px"}}function jo(e){const t=Ho(e);return`${t.value}${t.unit}`}const Wo=(()=>{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,r=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(r,0),e})(),Go=({loading:n=!0,color:r,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=r||d.text.secondary;if(!n)return null;const{value:p}=Ho(2),h=p+4.2,g=h/2+h/5.5,m=4*h*o,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:jo(1.5),height:jo(4),borderRadius:jo(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Wo} ${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)`}})]})},Xo=r.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 r,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,
|
|
72
|
+
`,Vo=({scale:e,icon:n})=>{const r=i();return t(Xo,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(Xo,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(Xo,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(Xo,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(Xo,{$size:23*e,$color:"#50F6E8",children:t(n,{size:16*e,fill:r.v2.colors.black[500]})})})})})})},Ko=434,Yo=635,Jo=r.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 r,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,
|
|
82
|
+
`,qo=r.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Qo=()=>e(Jo,{children:[t(qo,{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(qo,{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(qo,{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(qo,{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(qo,{children:t(ee,{size:112})})]}),Zo=r.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 r,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,ei=({scale:e=1,icon:n})=>{const r=i();return t(Zo,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Zo,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Zo,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Zo,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Zo,{$size:39*e,$color:r.v2.colors.purple[500],children:t(n,{size:32*e,fill:r.v2.colors.white[500]})})})})})})},ti=r.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 r,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,ni=r.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 r,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,ri=r.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,oi=r.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 r,{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
|
+
`,ii=r.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 r,{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
|
+
`,ai=r(ii)`
|
|
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
|
+
`,si=r.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
padding: 12px;
|
|
151
151
|
overflow-y: scroll;
|
|
152
|
-
`,
|
|
152
|
+
`,li=r.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 r,{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
|
+
`,ci=r.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
|
+
`,di=r(ii)`
|
|
173
173
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
174
174
|
width: 100%;
|
|
175
|
-
`,
|
|
175
|
+
`,ui=r(oi)`
|
|
176
176
|
gap: 16px;
|
|
177
177
|
padding: 16px;
|
|
178
|
-
`,
|
|
178
|
+
`,pi=r.div`
|
|
179
179
|
width: 100%;
|
|
180
180
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
181
181
|
overflow-y: auto;
|
|
182
|
-
`,
|
|
182
|
+
`,hi=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
|
+
`,gi=r(br)`
|
|
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
|
-
`,di=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},ui=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.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?di(d):"");zt(()=>{if(!d)return;S(di(d));const e=setInterval(()=>S(di(d)),1e3);return()=>clearInterval(e)},[d]);const $=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ei,{$gap:16,$alignItems:"center",children:[y?t(Ho,{scale:1.7,icon:b}):h?t(Lo,{percentage:f}):g?t(zo,{scale:m}):null,(r||s||d||n||u)&&e(ei,{$gap:8,$alignItems:"center",children:[e(Zo,{$gap:4,children:[n&&t(n,{}),u?t(ci,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:$,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:$,children:E}):null]})]})},pi=(e,t)=>({[Tn.Default]:n=>ee({fill:Io(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Io(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Io(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Io(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Io(t,e,"500"),...n}),[Tn.Loading]:e=>ui({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Io(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Io(t,e,"300"),...n})}[e]),hi=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}},gi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},mi={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},fi={sts:ft,dynamodb:mt,s3:W,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:xe},yi=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=mi[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=mi[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=fi[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(mi))if(i.includes(e))return t;return Fe},bi=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:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},vi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Rr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},Ei=(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 Si(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function $i(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 Ci(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Si(t??null)}}function xi(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:$i(t??null)}}const wi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ti=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Oi=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Ni=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ai=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ii=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,_i=e=>Ii.test(e),Ri=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Di=(e,t)=>{const n=Rr(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}))},ki=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],Li=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Pi=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},Mi=e=>e.replace(/[^\d]/g,""),Ui=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Fi=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},zi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(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!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Bi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Bi(e)))}else if("object"==typeof r&&null!==r){const e=Bi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Hi=(e,t=2)=>JSON.stringify(e||{},null,t),ji=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Wi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Gi=nn("v1.33"),Xi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Vi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Gi},Ki=nn("v1.20"),Yi=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Ki},Ji=e=>e?Xi.map(t=>e[t]??null):[],qi={PID:"process.pid",VPID:"process.vpid"},Qi={[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"},Zi=[{id:En.Go,label:Qi[En.Go],icon:oo(En.Go)},{id:En.Java,label:Qi[En.Java],icon:oo(En.Java)},{id:En.JavaScript,label:Qi[En.JavaScript],icon:oo(En.JavaScript)},{id:En.Python,label:Qi[En.Python],icon:oo(En.Python)},{id:En.Php,label:Qi[En.Php],icon:oo(En.Php)},{id:En.Ruby,label:Qi[En.Ruby],icon:oo(En.Ruby)},{id:En.Rust,label:Qi[En.Rust],icon:oo(En.Rust)},{id:En.DotNet,label:Qi[En.DotNet],icon:oo(En.DotNet)},{id:En.CSharp,label:Qi[En.CSharp],icon:oo(En.CSharp)},{id:En.CPlusPlus,label:Qi[En.CPlusPlus],icon:oo(En.CPlusPlus)},{id:En.Swift,label:Qi[En.Swift],icon:oo(En.Swift)},{id:En.Elixir,label:Qi[En.Elixir],icon:oo(En.Elixir)}],ea={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},ta={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:oo(En.Go)},ea],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:oo(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:oo(En.JavaScript)},ea],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:oo(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:oo(En.Python)},ea],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:oo(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:oo(En.Java)},ea],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:oo(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:oo(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:oo(En.DotNet)},ea],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:oo(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:oo(En.Ruby)},ea],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:oo(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:oo(En.Php)},ea],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:oo(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:oo(En.MySql)}]},[En.CPlusPlus]:{community:[ea],enterprise:[]},[En.Rust]:{community:[ea],enterprise:[]},[En.Swift]:{community:[ea],enterprise:[]},[En.Elixir]:{community:[ea],enterprise:[]},[En.Nginx]:{community:[ea],enterprise:[]},[En.Postgres]:{community:[ea],enterprise:[]},[En.Redis]:{community:[ea],enterprise:[]},[En.Kafka]:{community:[ea],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ea],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},na="*",ra=e=>!!e?.includes(na),oa=e=>e?.length?ra(e)?[na]:e:[],ia=e=>{if(e?.length&&!ra(e))return e.filter(e=>e!==na)},aa=e=>e===na?"All languages":Qi[e]??e,sa=e=>e===na?bt:oo(e),la=nn("v1.26"),ca=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=la},da=[{type:Mn.CodeAttributes,icon:bo(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:bo(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:bo(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:bo(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]}],ua=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:bo(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},pa={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.'},ha={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."},ga={[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."}},ma="Cancel",fa="Save",ya="Edit rule",ba="Edit auto rule",va="Create rule",Ea="Delete rule",Sa="Save",$a="Create your first rule",Ca="No Rules Exist",xa="No Results",wa=e=>`No rules match the search term "${e}"`,Ta="Rule name",Oa="Rule type",Na="Select the type of condition that makes a trace highly relevant.",Aa="Rule Enabled",Ia="Rule Disabled",_a="Enabled",Ra="Disabled",Da="Note",ka="HTTP route",La="Method",Pa="Keep Percentage",Ma="Keep traces with duration larger than",Ua="Keep traces with errors",Fa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",za="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ba="Custom percentage",Ha="Disabled rule",ja="Sample",Wa="Keep all",Ga="Drop all",Xa="Operation type",Va="HTTP route prefix",Ka="Templated path",Ya="Templated path prefix",Ja="Kafka topic",qa="Custom duration (ms)",Qa="No preview available",Za="Server address",es="Drop at most this percentage of matching traces",ts="Unnamed rule",ns="Sampling Preview",rs="Source Scope",os="Unknown source",is="Operation",as="Duration",ss="Errors",ls="Keep Percentage",cs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ds="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.",us="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ps="Retain traces with errors from the selected services and operations.",hs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",gs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ms={highlyRelevant:hs,noisy:gs,costReduction:void 0},fs="Type rule name",ys="Add note here...",bs="Type here",vs="Search source name",Es="e.g. collector.my.vendor.com",Ss="Optional notes (not used by the system). Add any context or details for this sampling rule.",$s="Rule will apply to all sources in the cluster",Cs="If multiple source scopes are set, they must all match simultaneously.",xs="All sources",ws="-",Ts="All",Os="Sources",Ns="Namespaces",As="Languages",Is="any of",_s="AND",Rs="All operations",Ds="HTTP server endpoint",ks="HTTP client endpoint",Ls="Kafka consumer",Ps="Kafka producer",Ms="Sampling Rules",Us='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Fs="Refresh",zs="Create rule",Bs="Sampling docs",Hs="75vw",js="Delete rule?",Ws="Are you sure you want to delete this sampling rule?",Gs="Delete",Xs="Cancel",Vs="Kubernetes Health Probes",Ks="Keep All Error Traces",Ys="Drop Traces Cluster-Wide",Js="A rule with the same matching conditions already exists.",qs="Create this rule as-is?",Qs="This rule still uses the default configuration.\nDo you want to create it anyway?",Zs="Rule preview",el="Continue editing",tl="Create 'Noisy Operation Kubernetes Health Probes' rule",nl="Edit 'Noisy Operation Kubernetes Health Probes' rule",rl="Automatically detect and sample health probe traces across the cluster.",ol="Create 'Highly Relevant Operations' rule",il="Edit 'Highly Relevant Operations' rule",al="Automatically keep all error traces across the entire cluster.",sl="Create 'Cost Reduction' rule",ll="Edit 'Cost Reduction' rule",cl="Automatically drop a percentage of traces across the entire cluster.",dl="Skip setup",ul="Start setup",pl="Next",hl="Go to Sampling",gl="Read more",ml="Welcome to Sampling",fl="Cut costs without losing what matters",yl="Odigos sampling works in three stages:",bl="Filter noisy traffic",vl="Remove non-actionable traces like health checks.",El="Guarantee highly relevance operations",Sl="Keep traces with errors, high latency, or mission-critical endpoints/services.",$l="Reduce cost",Cl="Sample routine traffic using percentages.",xl="Sampling does not drop individual spans - it keeps or drops the entire trace.",wl="Filter noisy operations",Tl="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Ol="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.",Nl="Preset Rules",Al="Kubernetes Health Probes",Il="Automatically ignore health checks",_l="You can review, adjust, and add additional custom rules later.",Rl="Choose your sampling strategy",Dl="Pick the approach that best fits your balance of cost vs data-completeness",kl="Keep List",Ll="Budget Friendly",Pl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Ml="Cost-oriented - keeps only what you explicitly select.",Ul="Best for very large clusters with high volumes of traces and high costs.",Fl="Higher risk of missing important traces without ongoing review.",zl="Drop List",Bl="Safe Choice",Hl="Define which traces must be aggressively dropped, while all others are kept by default.",jl="Preserves most data unless explicitly filtered.",Wl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Gl="Advanced",Xl="Maximum Flexibility",Vl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Kl="'Keep List' profile",Yl="Protect important traces",Jl="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:",ql="Traces with errors",Ql="Slow requests (duration above threshold)",Zl="Mission-Critical endpoints or services",ec="Services under test or evaluation",tc="New deployments",nc="You can review, adjust, and add rules once onboarding is complete.",rc="Common Rules",oc="Preset Rules",ic="Error collection - entire cluster",ac="Keep all traces with errors",sc="Ambient sampling percentage",lc="'Drop List' profile",cc="Reduce high-volume traffic",dc="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.",uc="Advanced Configuration",pc="Configure sampling rules",hc="Advanced mode allows you to configure all sampling categories:",gc="Noise Filtering - remove non-actionable traces",mc="Highly Relevance - guarantee important traces are kept",fc='Cost Control - drop traces for "Normal" operations',yc="Rules can target:",bc="Services",vc="HTTP Endpoints",Ec="DB Operations",Sc="Errors",$c="Latency and more...",Cc="Sampling configured successfully!",xc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",wc="Odigos will now:",Tc="Filter noisy operations",Oc="Guarantee important traces",Nc="Reduce cost using controlled sampling",Ac="Recommended",Ic={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:tl,highlyRelevant:ol,costReduction:sl},Rc={noisy:nl,highlyRelevant:il,costReduction:ll},Dc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},kc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],Lc=6048e5,Pc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Mc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},Uc=Pt(e=>({...Mc,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(Mc)}));var Fc;(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"})(Fc||(Fc={}));const zc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Bc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Hc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),jc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Wc=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}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:jc})),Gc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.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:o,time:r.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 Xc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Xc||(Xc={}));const Vc=(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),Yc=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Vc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Kc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Vc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Kc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Jc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),qc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Qc=(e,t)=>e.destinationType.type!==t.destinationType.type,Zc=Pt(e=>({...qc,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=>Qc(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=>Qc(e,t))})),clearStore:()=>e(()=>({...qc}))})),ed=e=>{function t(){return void 0===e?{}:Br(e)}const[n,r]=Ft(t()),[o,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Hr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Br(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Br(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},td={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},nd=()=>{const{addNotification:e}=Gc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=ed(td);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":wi(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Br(td),type:e,signals:t,name:n,notes:o,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}),r(void 0,void 0,s)}}},rd=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},od=()=>{const e=jt(null),[t,n]=Ft(0),[r,o]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var id;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(id||(id={}));const ad=r.div`
|
|
194
|
+
animation: ${hi} 1s reverse linear infinite;
|
|
195
|
+
`,mi=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},fi=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.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,$]=Ut(()=>d?mi(d):"");zt(()=>{if(!d)return;$(mi(d));const e=setInterval(()=>$(mi(d)),1e3);return()=>clearInterval(e)},[d]);const S=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ii,{$gap:16,$alignItems:"center",children:[y?t(Vo,{scale:1.7,icon:b}):h?t(zo,{percentage:f}):g?t(Go,{scale:m}):null,(r||s||d||n||u)&&e(ii,{$gap:8,$alignItems:"center",children:[e(oi,{$gap:4,children:[n&&t(n,{}),u?t(gi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:S,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:S,children:E}):null]})]})},yi=(e,t)=>({[Tn.Default]:n=>ee({fill:Lo(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Lo(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Lo(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Lo(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Lo(t,e,"500"),...n}),[Tn.Loading]:e=>fi({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Lo(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Lo(t,e,"300"),...n})}[e]),bi=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}},vi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Ei={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},$i={sts:ft,dynamodb:mt,s3:W,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:xe},Si=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Ei[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=Ei[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=$i[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Ei))if(i.includes(e))return t;return Ue},Ci=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:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},xi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Dr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},wi=(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 Ti(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function Oi(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 Ni(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ti(t??null)}}function Ai(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Oi(t??null)}}const Ii=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),_i=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ri=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Di=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ki=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Li=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,Pi=e=>Li.test(e),Mi=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Fi=(e,t)=>{const n=Dr(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}))},Ui=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],zi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Bi=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},Hi=e=>e.replace(/[^\d]/g,""),ji=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Wi=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},Gi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(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!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Xi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Xi(e)))}else if("object"==typeof r&&null!==r){const e=Xi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Vi=(e,t=2)=>JSON.stringify(e||{},null,t),Ki=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Yi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Ji=nn("v1.33"),qi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Qi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Ji},Zi=nn("v1.20"),ea=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Zi},ta=e=>e?qi.map(t=>e[t]??null):[],na={PID:"process.pid",VPID:"process.vpid"},ra={[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"},oa=[{id:En.Go,label:ra[En.Go],icon:co(En.Go)},{id:En.Java,label:ra[En.Java],icon:co(En.Java)},{id:En.JavaScript,label:ra[En.JavaScript],icon:co(En.JavaScript)},{id:En.Python,label:ra[En.Python],icon:co(En.Python)},{id:En.Php,label:ra[En.Php],icon:co(En.Php)},{id:En.Ruby,label:ra[En.Ruby],icon:co(En.Ruby)},{id:En.Rust,label:ra[En.Rust],icon:co(En.Rust)},{id:En.DotNet,label:ra[En.DotNet],icon:co(En.DotNet)},{id:En.CSharp,label:ra[En.CSharp],icon:co(En.CSharp)},{id:En.CPlusPlus,label:ra[En.CPlusPlus],icon:co(En.CPlusPlus)},{id:En.Swift,label:ra[En.Swift],icon:co(En.Swift)},{id:En.Elixir,label:ra[En.Elixir],icon:co(En.Elixir)}],ia={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},aa={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:co(En.Go)},ia],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:co(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:co(En.JavaScript)},ia],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:co(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:co(En.Python)},ia],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:co(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:co(En.Java)},ia],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:co(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:co(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:co(En.DotNet)},ia],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:co(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:co(En.Ruby)},ia],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:co(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:co(En.Php)},ia],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:co(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:co(En.MySql)}]},[En.CPlusPlus]:{community:[ia],enterprise:[]},[En.Rust]:{community:[ia],enterprise:[]},[En.Swift]:{community:[ia],enterprise:[]},[En.Elixir]:{community:[ia],enterprise:[]},[En.Nginx]:{community:[ia],enterprise:[]},[En.Postgres]:{community:[ia],enterprise:[]},[En.Redis]:{community:[ia],enterprise:[]},[En.Kafka]:{community:[ia],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ia],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},sa="*",la=e=>!!e?.includes(sa),ca=e=>e?.length?la(e)?[sa]:e:[],da=e=>{if(e?.length&&!la(e))return e.filter(e=>e!==sa)},ua=e=>e===sa?"All languages":ra[e]??e,pa=e=>e===sa?bt:co(e),ha=nn("v1.26"),ga=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=ha},ma=[{type:Mn.CodeAttributes,icon:Co(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:Co(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:Co(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:Co(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]}],fa=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Co(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},ya={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.'},ba={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."},va={[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."}},Ea="Cancel",$a="Save",Sa="Edit rule",Ca="Edit auto rule",xa="Create rule",wa="Delete rule",Ta="Save",Oa="Create your first rule",Na="No Rules Exist",Aa="No Results",Ia=e=>`No rules match the search term "${e}"`,_a="Rule name",Ra="Rule type",Da="Select the type of condition that makes a trace highly relevant.",ka="Rule Enabled",La="Rule Disabled",Pa="Enabled",Ma="Disabled",Fa="Note",Ua="HTTP route",za="Method",Ba="Keep Percentage",Ha="Keep traces with duration larger than",ja="Keep traces with errors",Wa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Ga="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Xa="Custom percentage",Va="Disabled rule",Ka="Sample",Ya="Keep all",Ja="Drop all",qa="Operation type",Qa="HTTP route prefix",Za="Templated path",es="Templated path prefix",ts="Kafka topic",ns="Custom duration (ms)",rs="No preview available",os="Server address",is="Drop at most this percentage of matching traces",as="Unnamed rule",ss="Sampling Preview",ls="Source Scope",cs="Unknown source",ds="Operation",us="Duration",ps="Errors",hs="Keep Percentage",gs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ms="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.",fs="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ys="Retain traces with errors from the selected services and operations.",bs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",vs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Es={highlyRelevant:bs,noisy:vs,costReduction:void 0},$s="Type rule name",Ss="Add note here...",Cs="Type here",xs="Search source name",ws="e.g. collector.my.vendor.com",Ts="Optional notes (not used by the system). Add any context or details for this sampling rule.",Os="Rule will apply to all sources in the cluster",Ns="If multiple source scopes are set, they must all match simultaneously.",As="All sources",Is="-",_s="All",Rs="Sources",Ds="Namespaces",ks="Languages",Ls="any of",Ps="AND",Ms="All operations",Fs="HTTP server endpoint",Us="HTTP client endpoint",zs="Kafka consumer",Bs="Kafka producer",Hs="Sampling Rules",js='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",Gs="Create rule",Xs="Sampling docs",Vs="75vw",Ks="Delete rule?",Ys="Are you sure you want to delete this sampling rule?",Js="Delete",qs="Cancel",Qs="Kubernetes Health Probes",Zs="Keep All Error Traces",el="Drop Traces Cluster-Wide",tl="A rule with the same matching conditions already exists.",nl="Create this rule as-is?",rl="This rule still uses the default configuration.\nDo you want to create it anyway?",ol="Rule preview",il="Continue editing",al="Create 'Noisy Operation Kubernetes Health Probes' rule",sl="Edit 'Noisy Operation Kubernetes Health Probes' rule",ll="Automatically detect and sample health probe traces across the cluster.",cl="Create 'Highly Relevant Operations' rule",dl="Edit 'Highly Relevant Operations' rule",ul="Automatically keep all error traces across the entire cluster.",pl="Create 'Cost Reduction' rule",hl="Edit 'Cost Reduction' rule",gl="Automatically drop a percentage of traces across the entire cluster.",ml="Skip setup",fl="Start setup",yl="Next",bl="Go to Sampling",vl="Read more",El="Welcome to Sampling",$l="Cut costs without losing what matters",Sl="Odigos sampling works in three stages:",Cl="Filter noisy traffic",xl="Remove non-actionable traces like health checks.",wl="Guarantee highly relevance operations",Tl="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ol="Reduce cost",Nl="Sample routine traffic using percentages.",Al="Sampling does not drop individual spans - it keeps or drops the entire trace.",Il="Filter noisy operations",_l="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Rl="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.",Dl="Preset Rules",kl="Kubernetes Health Probes",Ll="Automatically ignore health checks",Pl="You can review, adjust, and add additional custom rules later.",Ml="Choose your sampling strategy",Fl="Pick the approach that best fits your balance of cost vs data-completeness",Ul="Keep List",zl="Budget Friendly",Bl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Hl="Cost-oriented - keeps only what you explicitly select.",jl="Best for very large clusters with high volumes of traces and high costs.",Wl="Higher risk of missing important traces without ongoing review.",Gl="Drop List",Xl="Safe Choice",Vl="Define which traces must be aggressively dropped, while all others are kept by default.",Kl="Preserves most data unless explicitly filtered.",Yl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Jl="Advanced",ql="Maximum Flexibility",Ql="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Zl="'Keep List' profile",ec="Protect important traces",tc="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:",nc="Traces with errors",rc="Slow requests (duration above threshold)",oc="Mission-Critical endpoints or services",ic="Services under test or evaluation",ac="New deployments",sc="You can review, adjust, and add rules once onboarding is complete.",lc="Common Rules",cc="Preset Rules",dc="Error collection - entire cluster",uc="Keep all traces with errors",pc="Ambient sampling percentage",hc="'Drop List' profile",gc="Reduce high-volume traffic",mc="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.",fc="Advanced Configuration",yc="Configure sampling rules",bc="Advanced mode allows you to configure all sampling categories:",vc="Noise Filtering - remove non-actionable traces",Ec="Highly Relevance - guarantee important traces are kept",$c='Cost Control - drop traces for "Normal" operations',Sc="Rules can target:",Cc="Services",xc="HTTP Endpoints",wc="DB Operations",Tc="Errors",Oc="Latency and more...",Nc="Sampling configured successfully!",Ac="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ic="Odigos will now:",_c="Filter noisy operations",Rc="Guarantee important traces",Dc="Reduce cost using controlled sampling",kc="Recommended",Lc={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."},Pc={noisy:al,highlyRelevant:cl,costReduction:pl},Mc={noisy:sl,highlyRelevant:dl,costReduction:hl},Fc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Uc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],zc=6048e5,Bc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Hc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},jc=Pt(e=>({...Hc,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(Hc)}));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 Gc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Xc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Vc=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:[],enabledStatuses:[],onlyErrors:!1}),Yc=Pt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),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}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Kc})),Jc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.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:o,time:r.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 qc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(qc||(qc={}));const Qc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Zc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ed=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Qc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Zc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Qc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Zc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),td=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nd={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},rd=(e,t)=>e.destinationType.type!==t.destinationType.type,od=Pt(e=>({...nd,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=>rd(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=>rd(e,t))})),clearStore:()=>e(()=>({...nd}))})),id=e=>{function t(){return void 0===e?{}:Xr(e)}const[n,r]=Ut(t()),[o,i]=Ut({}),[a,s]=Ut(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Vr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Xr(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Xr(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},ad={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},sd=()=>{const{addNotification:e}=Jc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=id(ad);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Ii(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Xr(ad),type:e,signals:t,name:n,notes:o,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.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(r=t,r?.length?r.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):r);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:s.fields||(s.fields={}),s.fields[e]=t}var n,r}),r(void 0,void 0,s)}}},ld=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},cd=()=>{const e=jt(null),[t,n]=Ut(0),[r,o]=Ut(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var dd;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(dd||(dd={}));const ud=r.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 r,{css as
|
|
|
203
203
|
&:hover {
|
|
204
204
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`,pd=({"data-id":e,icon:n,size:r=dd.S,onClick:o,disabled:i})=>t(ud,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),hd=({onDone:e}={})=>{const[n,r]=Ut(!1),[o,i]=Ut(-1),a=Bt(async(t,o)=>{if(!n){if(r(!0),void 0!==o&&i(o),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(()=>{r(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:r})=>t(pd,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},gd=e=>{const{addNotification:t}=Jc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=id(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?_i(n.name)?r.name=void 0:(o=!1,r.name=xr.ILLEGAL_K8S_LABEL):(o=!1,r.name=xr.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),o},loadFormWithDrawerItem:({name:t})=>{const n={...Xr(e),name:t};r(void 0,void 0,n)}}},md={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},fd=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Jc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=id(md),[c,d]=Ut([]),[u,p]=Ut([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:r,displayName:o,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Dr(r,{}),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:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:o,value:i,renderCondition:a,...Dr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Dr(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===Ui(o.exportedSignals).length){const{logs:e,metrics:n,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:r.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:r,required:o})=>{o&&!r&&(n=!1,t[e]=xr.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&r({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:r,fields:o})=>{const i={...Xr(md),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Dr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},yd={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Fn.Column]:null,[Fn.FilePath]:null,[Fn.Function]:null,[Fn.LineNumber]:null,[Fn.Namespace]:null,[Fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},bd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=id(yd);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,sourceScopes:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:c})=>{const d={...Xr(yd),ruleName:e,notes:t,disabled:r,sourceScopes:o??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={[Fn.Column]:a[Fn.Column]||null,[Fn.FilePath]:a[Fn.FilePath]||null,[Fn.Function]:a[Fn.Function]||null,[Fn.LineNumber]:a[Fn.LineNumber]||null,[Fn.Namespace]:a[Fn.Namespace]||null,[Fn.StackTrace]:a[Fn.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)}}},vd=({active:e,key:t,withAltKey:n,withCtrlKey:r,withShiftKey:o,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,r,o,i,a]),null),Ed="data-ignore-outside-click",$d=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const r=t.target;e.current&&!e.current.contains(r)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Ed))return!0;t=t.parentNode}return!1})(r)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Sd=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[r,o]=Ut(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;o(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]),r},Cd=(e,{behavior:t="smooth",block:n="center",inline:r,delayMs:o=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:r})},o);return()=>window.clearTimeout(a)},[e,t,n,r,o]),i},xd=({sectionNames:e,threshold:t=.4})=>{const[n,r]=Ut(e[0]||""),[o,i]=Ut(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,r(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&&r(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},wd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:r="local"}={})=>{const o=jt(null),[i,a]=Ut(!1),[s,l]=Ut({top:0,left:0}),[c,d]=Ut({edge:"top",align:"left"});return $d(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===r)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,u=o.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})}}},Td=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Dr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Od={otelServiceName:"",currentStreamName:""},Nd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=id(Od);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const r={...Xr(Od),otelServiceName:e||t.name||""};n(void 0,void 0,r)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const Ad=new Xt(Vt.locale),Id=[{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"}],_d=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Rd=()=>{const[e,t]=Ut(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return Ad.format(_d(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:r=!0}={})=>{try{const o=_d(e);let i=Math.max(0,Date.now()-o.getTime());if(i<1e3)return"short"===n?"0s":r?"just now":"0 seconds";const a=[];for(const e of Id){if(a.length===t)break;const r=Math.floor(i/e.ms);if(!(r<=0&&0===a.length)){if(r<=0)break;i-=r*e.ms,a.push("short"===n?`${r}${e.short}`:`${r} ${1===r?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return r&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},Dd=r.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 r,{css as
|
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
`}
|
|
218
|
-
`,
|
|
218
|
+
`,kd=r.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 r,{css as
|
|
|
227
227
|
min-width: 0;
|
|
228
228
|
|
|
229
229
|
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
230
|
-
`,
|
|
230
|
+
`,Ld=r.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
|
+
`,Pd=r.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
|
+
`,Md=r.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 r,{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
|
+
`,Fd=r.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 r,{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
|
+
`,Ud=({withIcon:r,titleIcon:o,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:$,arrowPlacement:S,handlePosition:C}=wd({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,r]=e.split('"');return{original:e,href:n,label:r.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:r}=e;x?C($.left||n,$.top||r):C(n,r),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e(Dd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,r&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(kd,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===S.edge&&t(Md,{$align:S.align,children:t(Fd,{$pointsUp:!0})}),t(Ld,{$maxWidth:p,children:e(Pd,{children:[(!!o||!!a)&&e(oi,{$gap:4,style:{alignItems:"center"},children:[o&&t(o,{size:16},"icon"),a&&t(br,{size:hr.XS,children:a},"title")]}),f.map((e,n)=>t(br,{size:hr.XXXS,children:e},n)),!!l&&t(br,{size:hr.XXXS,color:gr.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Md,{$align:S.align,children:t(Fd,{$pointsUp:!1})})]}),document.body)]})},zd=r.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 r,{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
|
+
`,Bd=({label:n,leftIcon:r,rightIcon:o,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)?Lo(m,s,c?"400":"700"):[Tn.Unknown].includes(s)?Lo(m,s,"600"):Lo(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(Ud,{text:a,fullWidth:g,children:e(zd,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&r?r?t(r,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(fi,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(fi,{withGradient:!0,title:f,titleSize:d||hr.XXS}):t(br,{color:v,size:d||hr.XXS,nowrap:!0,children:f}):null,o&&t(o,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var Hd,jd;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Hd||(Hd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(jd||(jd={}));const Wd=r.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 r,{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===jd.S?o`
|
|
284
284
|
height: 32px;
|
|
285
285
|
${t?o`
|
|
286
286
|
padding: 8px 16px;
|
|
287
287
|
`:o`
|
|
288
288
|
width: 32px;
|
|
289
289
|
`}
|
|
290
|
-
`:e===
|
|
290
|
+
`:e===jd.M?o`
|
|
291
291
|
height: 38px;
|
|
292
292
|
${t?o`
|
|
293
293
|
padding: 8px 18px;
|
|
@@ -312,7 +312,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
312
312
|
${({$withShadow:e})=>e?o`
|
|
313
313
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
314
314
|
`:""}
|
|
315
|
-
${({$variant:e})=>e===
|
|
315
|
+
${({$variant:e})=>e===Hd.Primary?o`
|
|
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 r,{css as
|
|
|
320
320
|
&:active {
|
|
321
321
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
322
322
|
}
|
|
323
|
-
`:e===
|
|
323
|
+
`:e===Hd.Secondary?o`
|
|
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 r,{css as
|
|
|
328
328
|
&:active {
|
|
329
329
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
330
330
|
}
|
|
331
|
-
`:e===
|
|
331
|
+
`:e===Hd.Text?o`
|
|
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 r,{css as
|
|
|
338
338
|
}
|
|
339
339
|
`:""}
|
|
340
340
|
}
|
|
341
|
-
`,
|
|
341
|
+
`,Gd=Mt(({"data-id":r,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Hd.Primary,size:u=jd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const $=i(),S=p||(u===jd.L?18:16),C=u===jd.L?hr.S:hr.XS,x=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[w,T]=Ut(!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(Wd,{ref:E,"data-id":r,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!o,...v,disabled:N,onClick:N?void 0:A,children:t(Ud,{text:a,withIcon:!s,children:O?t(fi,o?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ai,{$width:"fit-content",children:t(l,{size:S,fill:x})}),o?t(br,{size:C,weight:500,color:x,nowrap:!0,children:o}):null,c&&t(ai,{$width:"fit-content",children:t(c,{size:S,fill:x})})]})})})});Gd.displayName=Gd.name;const Xd={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",1e3:"#0C2F2C"},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"}},Vd={v2:Xd.v2,darkMode:!0,colors:{...Xd.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:Xd.font_family},Kd={v2:Xd.v2,darkMode:!1,colors:{...Xd.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:Xd.font_family},Yd=e=>e?Vd:Kd,Jd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Xd,darkModeTheme:Vd,getTheme:Yd,lightModeTheme:Kd},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 qd=({children:e})=>{const{darkMode:n}=Bc();return t(s,{theme:Yd(n),children:e})},Qd={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"},Zd=Object.freeze(Object.defineProperty({__proto__:null,hex:Qd},Symbol.toStringTag,{value:"Module"})),eu={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 r,{css as
|
|
|
368
368
|
`,center:a`
|
|
369
369
|
from { transform: translate(-50%, -50%); }
|
|
370
370
|
to { transform: translate(-50%, 100%); }
|
|
371
|
-
`}},
|
|
371
|
+
`}},tu={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 r,{css as
|
|
|
382
382
|
to {
|
|
383
383
|
width: 0%;
|
|
384
384
|
}
|
|
385
|
-
`},
|
|
385
|
+
`},nu=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 r,{css as
|
|
|
391
391
|
transform: scale(2);
|
|
392
392
|
opacity: 0;
|
|
393
393
|
}
|
|
394
|
-
`,
|
|
394
|
+
`,ru=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
|
+
`,ou={in:a`
|
|
402
402
|
from {
|
|
403
403
|
opacity: 0;
|
|
404
404
|
}
|
|
@@ -412,41 +412,46 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
412
412
|
to {
|
|
413
413
|
opacity: 0;
|
|
414
414
|
}
|
|
415
|
-
`},
|
|
415
|
+
`},iu=Object.freeze(Object.defineProperty({__proto__:null,fade:ou,ping:nu,progress:tu,shimmer:ru,slide:eu},Symbol.toStringTag,{value:"Module"}));var au,su;(e=>{e.S="s",e.L="l"})(au||(au={})),(e=>{e.Filled="filled",e.Underline="underline"})(su||(su={}));const lu=r.div`
|
|
416
416
|
display: flex;
|
|
417
417
|
align-items: center;
|
|
418
418
|
gap: 2px;
|
|
419
|
-
padding: 3px;
|
|
420
|
-
border-radius: 8px;
|
|
421
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
422
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
423
419
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
424
|
-
|
|
420
|
+
border-radius: 6px;
|
|
421
|
+
border: none;
|
|
422
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
423
|
+
`,cu=r.button`
|
|
425
424
|
flex: 1;
|
|
426
425
|
display: flex;
|
|
427
426
|
align-items: center;
|
|
428
427
|
justify-content: center;
|
|
429
|
-
gap: 8px;
|
|
430
|
-
padding: ${({$size:e})=>e===
|
|
431
|
-
border-radius: 6px;
|
|
432
|
-
border: 1px solid
|
|
433
|
-
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
428
|
+
gap: ${({$size:e})=>e===au.S?"4px":"8px"};
|
|
429
|
+
padding: ${({$size:e})=>e===au.S?"4px 6px":"8px 12px"};
|
|
430
|
+
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:n})=>n?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
431
|
+
border: 1px solid transparent;
|
|
434
432
|
|
|
435
|
-
${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:
|
|
433
|
+
${({$disabled:e,$isSelected:t,$selectedBgColor:n,$selectedBorderColor:r,theme:i})=>e?o`
|
|
436
434
|
cursor: not-allowed;
|
|
437
|
-
background-color: ${t?(n||
|
|
438
|
-
`:o`
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
435
|
+
background-color: ${t?(n||i.v2.colors.purple[900])+Qd["050"]:"transparent"};
|
|
436
|
+
`:t?o`
|
|
437
|
+
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
438
|
+
border: 1px solid ${r||i.v2.colors.purple[400]};
|
|
439
|
+
background-color: ${n||i.v2.colors.purple[900]};
|
|
440
|
+
&:hover {
|
|
441
|
+
background-color: ${n||i.v2.colors.purple[900]};
|
|
442
|
+
}
|
|
443
|
+
`:o`
|
|
444
|
+
cursor: pointer;
|
|
445
|
+
background-color: transparent;
|
|
446
|
+
&:hover {
|
|
447
|
+
background-color: ${i.v2.colors.silver[600]};
|
|
448
|
+
}
|
|
449
|
+
`}
|
|
450
|
+
`,du=r.div`
|
|
446
451
|
display: flex;
|
|
447
452
|
align-items: stretch;
|
|
448
453
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
449
|
-
`,
|
|
454
|
+
`,uu=r.button`
|
|
450
455
|
display: flex;
|
|
451
456
|
height: 34px;
|
|
452
457
|
padding: 8px 12px 8px 16px;
|
|
@@ -465,7 +470,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
465
470
|
&:hover {
|
|
466
471
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
467
472
|
}
|
|
468
|
-
`,
|
|
473
|
+
`,pu=({"data-id":r,size:o=au.S,variant:a=su.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===su.Underline,g=h?uu:cu;return t(h?du:lu,{"data-id":r,$fullWidth:u,children:s.map(({value:r,label:i,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:y,selectedTextColor:b,disabled:v},E)=>{const $=0===E,S=E===s.length-1,C=l===r,x=v||d,w=x?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:C?b||p.v2.colors.white[500]:p.v2.colors.grey[300],T=o===au.S?hr.XXS:hr.XS,O=C?500:400,N=e(n,{children:[a&&t(a,{fill:w}),i&&t(br,{size:T,weight:O,color:w,nowrap:!0,children:i}),u&&t(Bd,{...u})]});return t(g,{onClick:()=>!x&&c(r),$isFirstOption:$,$isLastOption:S,$isFirstAndLastOption:$&&S,$disabled:x,$isSelected:C,$size:o,...!h&&{$selectedBgColor:f,$selectedBorderColor:y},children:m?t(Ud,{text:m,withIcon:!0,children:N}):N},`segment-${E}-${i}-${r}`)})})},hu=r.div`
|
|
469
474
|
box-sizing: border-box !important;
|
|
470
475
|
width: ${({$width:e})=>e??"fit-content"};
|
|
471
476
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -479,7 +484,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
479
484
|
border: none;
|
|
480
485
|
border-radius: 6px;
|
|
481
486
|
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:r,theme:o})=>{const i=n??o.v2.colors.silver[800],a=r??o.v2.colors.silver[700];return e||t?a:i}};
|
|
482
|
-
`,
|
|
487
|
+
`,gu=r.input`
|
|
483
488
|
min-width: 0;
|
|
484
489
|
flex: 1;
|
|
485
490
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -496,7 +501,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
496
501
|
overflow: hidden;
|
|
497
502
|
text-overflow: ellipsis;
|
|
498
503
|
white-space: nowrap;
|
|
499
|
-
`,
|
|
504
|
+
`,mu=({"data-id":n,value:r,onChange:o,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ut(!1),[f,y]=Ut(!1),[b,v]=Ut(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,S=Ht(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),C=Ht(()=>l||($&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,$,S]);return e(hu,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t($t,{size:18,fill:E}),t(gu,{"data-id":n??"search",name:"search",type:"text",placeholder:C,value:r,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),$&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(pu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},fu=r.div`
|
|
500
505
|
display: flex;
|
|
501
506
|
align-items: center;
|
|
502
507
|
justify-content: center;
|
|
@@ -505,41 +510,41 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
505
510
|
padding: 8px;
|
|
506
511
|
border-radius: 100%;
|
|
507
512
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
508
|
-
`,
|
|
513
|
+
`,yu=({icon:n=St,hideIcon:r=!1,title:o="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(ii,{$gap:12,$alignItems:"center",children:[!r&&t(fu,{children:t(n,{size:32,fill:c})}),e(ii,{$gap:4,$alignItems:"center",children:[t(br,{size:hr.S,align:"center",children:o}),a&&t(br,{size:hr.XXS,align:"center",color:c,children:a})]}),s&&t(Gd,{variant:Hd.Secondary,...s}),l]})},bu=r.span`
|
|
509
514
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
510
515
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
511
516
|
font-weight: 400;
|
|
512
517
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
513
|
-
`,
|
|
518
|
+
`,vu=r.span`
|
|
514
519
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
515
520
|
font-size: 14px;
|
|
516
521
|
font-weight: 400;
|
|
517
522
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
518
|
-
`,
|
|
523
|
+
`,Eu=({label:n,tooltip:r,required:o,badge:i,width:a,smallAndDark:s})=>n||r||o?e(oi,{$width:a,$justifyContent:"space-between",children:[n&&t(bu,{$smallAndDark:s,children:n}),e(oi,{$gap:4,children:[i&&t(Bd,{...i,textSize:hr.XXXS}),o&&t(vu,{children:"*"}),r&&t(Ud,{text:r,withIcon:!0})]})]}):null,$u=({errorMessage:n,warnMessage:r,helpMessage:o})=>{const a=i(),s=n?a.v2.colors.red[500]:r?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return n||r||o?e(oi,{$alignItems:"center",children:[l&&t(ii,{children:l}),t(br,{size:hr.XXXS,weight:400,color:s,children:n||r||o})]}):null};var Su;(e=>{e.S="small",e.L="large"})(Su||(Su={}));const Cu=r.div`
|
|
519
524
|
width: fit-content;
|
|
520
525
|
display: flex;
|
|
521
526
|
align-items: center;
|
|
522
527
|
gap: 8px;
|
|
523
528
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
524
|
-
`,
|
|
525
|
-
width: ${({$size:e})=>e===
|
|
526
|
-
height: ${({$size:e})=>e===
|
|
529
|
+
`,xu=r.div`
|
|
530
|
+
width: ${({$size:e})=>e===Su.S?"16px":"20px"};
|
|
531
|
+
height: ${({$size:e})=>e===Su.S?"16px":"20px"};
|
|
527
532
|
display: flex;
|
|
528
533
|
align-items: center;
|
|
529
534
|
justify-content: center;
|
|
530
535
|
border-radius: 4px;
|
|
531
536
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
532
537
|
background-color: ${({$backgroundColor:e})=>e};
|
|
533
|
-
`,
|
|
538
|
+
`,wu=({name:n,label:r,tooltip:o,badge:a,size:s=Su.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ut(!1),b=c||d,v=s===Su.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(ii,{$gap:4,children:[e(oi,{$justifyContent:"space-between",children:[e(Cu,{"data-id":n||"checkbox"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(xu,{$size:s,$borderColor:$,$backgroundColor:S,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),r&&t(br,{size:s===Su.S?hr.XXS:hr.XS,nowrap:!0,children:r})]}),t(Eu,{tooltip:o,badge:a})]}),t($u,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Tu=r.div`
|
|
534
539
|
display: flex;
|
|
535
540
|
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
536
541
|
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
537
|
-
|
|
542
|
+
`,Ou=({direction:n=gn.Vertical,title:r,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===Su.S?hr.XXS:hr.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 r={...n};return e?r[e]=t:s.forEach(e=>r[e.id]=t),r})};return e(Tu,{$direction:n,children:[r&&a?t(wu,{label:r,partiallyChecked:p,value:u,onChange:e=>h("",e),size:o}):r&&!a?t(br,{size:d,children:r}):null,s.map(e=>t(wu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:o},`${r}-checkbox-${e.id}`))]})};var Nu,Au;(e=>{e.Left="left",e.Right="right"})(Nu||(Nu={})),(e=>{e.Top="top",e.Bottom="bottom"})(Au||(Au={}));const Iu=r.div`
|
|
538
543
|
position: relative;
|
|
539
544
|
display: flex;
|
|
540
545
|
flex-direction: column;
|
|
541
546
|
gap: 4px;
|
|
542
|
-
`,
|
|
547
|
+
`,_u=r.div`
|
|
543
548
|
position: fixed;
|
|
544
549
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
545
550
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -557,7 +562,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
557
562
|
border-radius: 6px;
|
|
558
563
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
559
564
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
560
|
-
`,
|
|
565
|
+
`,Ru=r.div`
|
|
561
566
|
display: flex;
|
|
562
567
|
flex-direction: column;
|
|
563
568
|
gap: 0;
|
|
@@ -565,7 +570,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
565
570
|
width: 100%;
|
|
566
571
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
567
572
|
overflow-y: auto;
|
|
568
|
-
`,
|
|
573
|
+
`,Du=r.div`
|
|
569
574
|
display: flex;
|
|
570
575
|
align-items: center;
|
|
571
576
|
gap: 8px;
|
|
@@ -581,19 +586,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
581
586
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
582
587
|
}
|
|
583
588
|
`}
|
|
584
|
-
`,
|
|
589
|
+
`,ku=r.div`
|
|
585
590
|
display: flex;
|
|
586
591
|
align-items: center;
|
|
587
592
|
gap: 8px;
|
|
588
593
|
flex: 1;
|
|
589
594
|
min-width: 0;
|
|
590
|
-
`,
|
|
595
|
+
`,Lu=r.div`
|
|
591
596
|
flex: 0 1 auto;
|
|
592
597
|
min-width: 0;
|
|
593
598
|
overflow: hidden;
|
|
594
599
|
text-overflow: ellipsis;
|
|
595
600
|
white-space: nowrap;
|
|
596
|
-
`,
|
|
601
|
+
`,Pu=r.span`
|
|
597
602
|
flex-shrink: 0;
|
|
598
603
|
width: 88px;
|
|
599
604
|
display: inline-flex;
|
|
@@ -602,19 +607,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
602
607
|
border-radius: 4px;
|
|
603
608
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
604
609
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
605
|
-
`,
|
|
610
|
+
`,Mu=r.div`
|
|
606
611
|
flex-shrink: 0;
|
|
607
612
|
display: inline-flex;
|
|
608
613
|
align-items: center;
|
|
609
614
|
gap: 4px;
|
|
610
|
-
`,
|
|
615
|
+
`,Fu=({defaultOpen:n,open:r,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const $=i(),S=void 0!==r,C=!!f||!!y||!!E,[x,w]=Ut(n??!C),T=S?r:x,O=Bt(e=>{S||w(e),o?.(e)},[S,o]),[N,A]=Ut({x:a||Nu.Left,y:s||Au.Bottom}),I=jt(null);$d(I,()=>O(!1));const[_,R]=Ut({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const r=C?8:0;R({top:t===Au.Bottom?C?n.bottom+r:n.top:void 0,bottom:t===Au.Top?C?window.innerHeight-n.top+r:window.innerHeight-n.bottom:void 0,left:e===Nu.Left?n.left:void 0,right:e===Nu.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?Nu.Right:Nu.Left),y:s||(e.clientY>window.innerHeight/2?Au.Top:Au.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]=Ut(""),F=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(Iu,{ref:I,children:[u&&t(Eu,{label:u}),f&&t(Gd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(Gd,{variant:Hd.Text,size:jd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(_u,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(mu,{value:P,onChange:M,width:"100%"}),b?t(fi,{withSpinner:!0,title:"Loading...",titleSize:hr.XS}):F.length?t(Ru,{$maxHeight:m,children:F.map(n=>{if(!n)return null;const{id:r,label:o,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(r);return e(Du,{"data-id":`option-${r}`,$selected:d&&!a,onClick:()=>L(r),title:l?`${o} — ${l}`:o,children:[a&&t(wu,{value:d,onChange:()=>L(r)}),i&&t(i,{size:14,fill:n.color||$.v2.colors.white[500]}),s&&t(Pu,{children:t(br,{size:hr.XXS,nowrap:!0,color:gr.Secondary,children:s})}),e(ku,{children:[t(Lu,{children:t(br,{size:hr.XS,nowrap:!0,color:n.color||gr.Primary,children:o})}),l&&e(Mu,{children:[t(Be,{size:12,fill:$.v2.colors.silver[200]}),t(br,{size:hr.XS,nowrap:!0,color:gr.Secondary,children:l})]})]})]},r)})}):t(ri,{$padding:"6px 0",children:t(yu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!F.length&&t(Gd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var Uu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(Uu||(Uu={}));const zu=({onAnyClick:e,actions:n})=>t(oi,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case Uu.Button:return t(Gd,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case Uu.ButtonDropData:return t(Fu,{...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}})}),Bu=r.div`
|
|
611
616
|
display: flex;
|
|
612
617
|
align-items: center;
|
|
613
618
|
justify-content: center;
|
|
614
619
|
padding: 8px;
|
|
615
620
|
border-radius: 8px;
|
|
616
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
617
|
-
`,
|
|
621
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+Qd["004"]};
|
|
622
|
+
`,Hu=({icon:n,iconWithWrapper:r=!1,title:o,titleSize:i=hr.S,titleColor:a=gr.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=hr.XXS,subTitleColor:d=gr.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=hd();return e(oi,{$gap:l?8:6,$alignItems:"center",children:[n&&(r||l?t(Bu,{children:t(n,{size:24})}):t(n,{size:24})),o||g||l?e(ii,{children:[o||g?e(oi,{$gap:6,$alignItems:"center",children:[o&&t(br,{size:i,color:a,nowrap:!s,children:o}),h&&o&&t(y,{value:o,size:dd.XS}),p&&t(Ud,{text:p,withIcon:!0}),g&&t(Bd,{...g})]}):null,l&&t(br,{size:c,color:d,nowrap:!u,children:l})]}):null,t(oi,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},ju=({children:e,fullText:n,fullWidth:r=!0,...o})=>{const i=jt(null),a=!!o.maxLines&&o.maxLines>0,s=Sd(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(Ud,{text:s,fullWidth:r,ellipsis:!a,keepAlive:!0,children:t(br,{ref:i,...o,children:e})})},Wu=r.section`
|
|
618
623
|
display: flex;
|
|
619
624
|
flex-direction: column;
|
|
620
625
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -624,22 +629,22 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
624
629
|
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
625
630
|
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
626
631
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
627
|
-
`,
|
|
632
|
+
`,Gu=r(oi)`
|
|
628
633
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
629
634
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
630
|
-
`,
|
|
635
|
+
`,Xu=r.div`
|
|
631
636
|
display: flex;
|
|
632
637
|
align-items: flex-end;
|
|
633
638
|
flex-wrap: wrap;
|
|
634
639
|
width: 100%;
|
|
635
|
-
`,
|
|
640
|
+
`,Vu=r.div`
|
|
636
641
|
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
637
642
|
margin: 8px;
|
|
638
643
|
display: flex;
|
|
639
644
|
flex-direction: column;
|
|
640
645
|
gap: 4px;
|
|
641
646
|
min-width: 0;
|
|
642
|
-
`,
|
|
647
|
+
`,Ku=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=hd(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Vu,{$cellsPerRow:r,children:[!!a&&t(Ud,{text:s,children:t(ju,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(oi,{$gap:4,children:[u&&t(Bd,{...u}),l&&t(Ud,{text:c,children:t(ju,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:dd.XS})]})]})},Yu=({bgTint:n="900",width:r,fullHeight:o=!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]=Ut(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,$=!!u.length,S=!!c.length;return e(Wu,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(Gu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Hu,{...a}):t("div",{}),e(oi,{$gap:12,children:[p,E&&v&&t(zu,{actions:d}),S&&t(oi,{$gap:8,children:c.map((e,t)=>Gt(Bd,{...e,key:e.key||`${e.label}-${t}`}))}),($||s)&&e(oi,{$gap:2,children:[$&&t(Fu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(Gd,{variant:Hd.Text,size:jd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Xu,{children:g.map(e=>t(Ku,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Ju;(e=>{e.S="small",e.M="medium"})(Ju||(Ju={}));const qu=r.div`
|
|
643
648
|
display: flex;
|
|
644
649
|
flex-direction: column;
|
|
645
650
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -650,7 +655,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
650
655
|
border-radius: 16px;
|
|
651
656
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
652
657
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
653
|
-
`,
|
|
658
|
+
`,Qu=Mt(({id:n,size:r=Ju.M,fullHeight:o=!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=r===Ju.S?4:16,y="number"==typeof h?h:r===Ju.S?12:16,b=a??(i?t(Hu,{...i}):null),v=l??(s?t(mu,{...s}):null),E=!!b||!!v,$=!!d&&d.length>0;return e(qu,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:o,$backgroundColor:p,$bordered:g,children:[E||$?e(oi,{$gap:f,$justifyContent:"space-between",children:[E?e(oi,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,$&&t(zu,{actions:d??[]})]}):null,u]})});Qu.displayName="SectionCard";const Zu=r.div`
|
|
654
659
|
flex: 1;
|
|
655
660
|
align-self: stretch;
|
|
656
661
|
display: flex;
|
|
@@ -658,8 +663,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
658
663
|
gap: 8px;
|
|
659
664
|
padding: 16px;
|
|
660
665
|
border-radius: 12px;
|
|
661
|
-
background-color: ${({theme:e,$status:t})=>
|
|
662
|
-
`,
|
|
666
|
+
background-color: ${({theme:e,$status:t})=>Lo(e,t,t===Tn.Unknown?"750":"500")};
|
|
667
|
+
`,ep=r.div`
|
|
663
668
|
display: flex;
|
|
664
669
|
align-items: center;
|
|
665
670
|
justify-content: center;
|
|
@@ -667,8 +672,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
667
672
|
height: fit-content;
|
|
668
673
|
padding: 8px;
|
|
669
674
|
border-radius: 12px;
|
|
670
|
-
background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?
|
|
671
|
-
`,
|
|
675
|
+
background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?Lo(e,t,"800"):Lo(e,t,"900")+Qd["015"]};
|
|
676
|
+
`,tp=({status:n,icon:r,title:o,description:a})=>{const s=i(),l=r??yi(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(Zu,{$status:n,children:[t(ep,{$status:n,children:t(l,{size:32,fill:c})}),e(ii,{$gap:2,$justifyContent:"center",children:[t(br,{size:hr.M,weight:500,color:c,nowrap:!0,children:o}),t(br,{size:hr.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},np=r.div`
|
|
672
677
|
flex: 0.5;
|
|
673
678
|
display: flex;
|
|
674
679
|
flex-direction: column;
|
|
@@ -676,7 +681,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
676
681
|
padding: 12px;
|
|
677
682
|
border-radius: 12px;
|
|
678
683
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
679
|
-
`,
|
|
684
|
+
`,rp=["-","N/A","undefined","null","undefined/undefined","null/null"],op=({title:n,cells:r})=>{const o=i();return e(np,{children:[t(br,{size:hr.XXS,color:o.v2.colors.grey[150],children:n}),t(oi,{$gap:32,children:r.map((r,o)=>e(ii,{$gap:2,children:[!r.isLoading||r.value&&!rp.includes(r.value)?t(br,{size:r.label?hr.M:hr.L,children:r.value}):t(fi,{withSpinnerOld:!0,scaleSpinnerOld:.9}),r.label&&t(br,{size:hr.XXS,children:r.label})]},`${n}-${o}-${r.label}-${r.value}`))})]})},ip=r.div`
|
|
680
685
|
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
681
686
|
|
|
682
687
|
display: flex;
|
|
@@ -695,7 +700,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
695
700
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
696
701
|
}
|
|
697
702
|
`}
|
|
698
|
-
`,
|
|
703
|
+
`,ap=r.input`
|
|
699
704
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
700
705
|
width: ${({$width:e})=>e||"unset"};
|
|
701
706
|
|
|
@@ -727,12 +732,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
727
732
|
pointer-events: none;
|
|
728
733
|
user-select: none;
|
|
729
734
|
}
|
|
730
|
-
`,
|
|
735
|
+
`,sp=r.div`
|
|
731
736
|
display: flex;
|
|
732
737
|
align-items: center;
|
|
733
738
|
justify-content: center;
|
|
734
739
|
cursor: pointer;
|
|
735
|
-
`,
|
|
740
|
+
`,lp=({label:n,required:r,tooltip:o,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]=Ut(!1),[O,N]=Ut(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=Sd(R,{deps:[m]}),k=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(ii,{$width:v,$gap:6,children:[t(Eu,{label:n,tooltip:o,required:r,badge:a}),t(ip,{$small:E,$disabled:y,$error:A,$clickable:!!$&&!y,onClick:y?void 0:$,children:e(Ud,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(ap,{"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?Hi(t):Bi(t),r=null!=S.min?Number(S.min):void 0,o=null!=S.max?Number(S.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=o&&e>o?(a=String(o),s=!0):null!=r&&e<r&&(a=String(r),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=r&&null!=o?`between ${r} and ${o}`:null!=o?`at most ${o}`:`at least ${r}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...S,ref:R}),x?t(sp,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t($u,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},cp=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ut(""),[d,u]=Ut(!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?r.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?r.find(t=>t.id===e.value)?.label??"":""},[s,e,r,p]),g=d?l:h,m=Ht(()=>{const e=s?r.map(e=>({...e,withCheckbox:!0})):r;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,r,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=r.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,r]),E=d&&(i||m.length>0||l.length>0);return t(Fu,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:Au.Bottom,children:t(lp,{name:n,leftIcon:$t,placeholder:o,value:g,onChange:y,onFocus:f,disabled:a})})},dp=r.button`
|
|
736
741
|
width: 100%;
|
|
737
742
|
padding: 0;
|
|
738
743
|
padding-right: 12px;
|
|
@@ -753,7 +758,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
753
758
|
cursor: not-allowed;
|
|
754
759
|
opacity: 0.5;
|
|
755
760
|
}
|
|
756
|
-
`,
|
|
761
|
+
`,up=r.div`
|
|
757
762
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
758
763
|
height: 56px;
|
|
759
764
|
display: flex;
|
|
@@ -764,31 +769,31 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
764
769
|
`:o`
|
|
765
770
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
766
771
|
`}
|
|
767
|
-
`,
|
|
772
|
+
`,pp=r.div`
|
|
768
773
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
769
774
|
display: flex;
|
|
770
775
|
justify-content: space-between;
|
|
771
776
|
align-items: center;
|
|
772
777
|
gap: 8px;
|
|
773
|
-
`,
|
|
778
|
+
`,hp=({label:n,icon:r,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ut(!1);return e(dp,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(up,{$hovered:s,$hasIcon:!!r,children:r&&t(r,{size:36})}),e(pp,{$hasIcon:!!r,children:[o?t(fi,{withGradient:!0,titleSize:hr.S}):t(br,{variant:pr.Span,align:"center",children:n}),t(At,{rotate:90,size:24})]})]})},gp=({buttons:e})=>t(ii,{$gap:12,children:e.map((e,n)=>t(hp,{...e},`${e.label}-${n}`))});var mp;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(mp||(mp={}));const fp=r.div`
|
|
774
779
|
display: flex;
|
|
775
780
|
align-items: flex-end;
|
|
776
781
|
justify-content: space-between;
|
|
777
782
|
gap: 24px;
|
|
778
783
|
width: fit-content;
|
|
779
|
-
`,
|
|
784
|
+
`,yp=r.div`
|
|
780
785
|
position: relative;
|
|
781
786
|
display: flex;
|
|
782
787
|
flex-direction: column;
|
|
783
788
|
align-items: center;
|
|
784
789
|
width: ${({$width:e})=>e??150}px;
|
|
785
790
|
flex-shrink: 0;
|
|
786
|
-
`,
|
|
791
|
+
`,bp=r.svg`
|
|
787
792
|
display: block;
|
|
788
793
|
width: 100%;
|
|
789
794
|
height: auto;
|
|
790
795
|
overflow: visible;
|
|
791
|
-
`,
|
|
796
|
+
`,vp=r(ii)`
|
|
792
797
|
position: absolute;
|
|
793
798
|
left: 0;
|
|
794
799
|
right: 0;
|
|
@@ -796,14 +801,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
796
801
|
align-items: center;
|
|
797
802
|
gap: 2px;
|
|
798
803
|
pointer-events: none;
|
|
799
|
-
`,
|
|
804
|
+
`,Ep=r.span`
|
|
800
805
|
display: inline-block;
|
|
801
806
|
flex-shrink: 0;
|
|
802
807
|
width: 9px;
|
|
803
808
|
height: 9px;
|
|
804
809
|
border-radius: 50%;
|
|
805
810
|
background-color: ${({$color:e})=>e};
|
|
806
|
-
|
|
811
|
+
`,$p=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:""}},Sp=(e,t,n,r)=>{const o=r*Math.PI/180;return{x:e+n*Math.cos(o),y:t-n*Math.sin(o)}},Cp=(e,t,n,r,o)=>{const i=Sp(e,t,n,r),a=Sp(e,t,n,o),s=r>o?1:0,l=Math.abs(r-o)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},xp=({variant:n=mp.CurrentOfMax,gaugeWidth:r,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=$p(a),{number:g}=$p(s),{number:m,prefix:f,suffix:y}=$p(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,$=v>0?Cp(60,60,55,180,E):null,S=v<1?Cp(60,60,55,E,0):null,C=Sp(60,60,55,180),x=Sp(60,60,55,0),w=d??(n===mp.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===mp.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ut(null),A=e=>`${f}${e}${y}`,I=n===mp.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(fp,{children:[e(yp,{$width:r,children:[t(Ud,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(bp,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${m} of ${g}`,children:[$&&t("path",{d:$,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),o&&e(vp,{children:[t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],align:"center",children:o}),t(br,{size:hr.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(ii,{$gap:7,children:[e(oi,{$gap:8,$alignItems:"center",children:[t(Ep,{$color:w}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(oi,{$gap:8,$alignItems:"center",children:[t(Ep,{$color:T}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},wp=r(oi)`
|
|
807
812
|
width: 100%;
|
|
808
813
|
padding: 8px 12px;
|
|
809
814
|
border-radius: 6px;
|
|
@@ -812,26 +817,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
812
817
|
align-items: center;
|
|
813
818
|
justify-content: space-between;
|
|
814
819
|
gap: 12px;
|
|
815
|
-
`,
|
|
820
|
+
`,Tp=r.div`
|
|
816
821
|
position: relative;
|
|
817
822
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
818
823
|
display: flex;
|
|
819
824
|
align-items: center;
|
|
820
825
|
gap: 4px;
|
|
821
|
-
|
|
826
|
+
`,Op=r.pre`
|
|
822
827
|
flex: 1;
|
|
823
828
|
margin: 0;
|
|
824
829
|
padding: 0;
|
|
825
830
|
font-size: 12px;
|
|
826
831
|
color: #5ffb98; // TODO: add to theme
|
|
827
832
|
overflow-x: auto;
|
|
828
|
-
`,
|
|
833
|
+
`,Np=r.span`
|
|
829
834
|
flex-shrink: 0;
|
|
830
835
|
font-size: 14px;
|
|
831
836
|
color: #5ffb98; // TODO: add to theme
|
|
832
|
-
`,
|
|
837
|
+
`,Ap=({bgTint:n,label:r,value:o,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=hd({onDone:a}),l=jt(null),[c,d]=Ut(!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()}},[o]),e(ii,{$gap:4,children:[r&&t(br,{size:hr.XXXS,color:gr.Secondary,children:r}),e(wp,{$bgTint:n,children:[e(Tp,{$hideCopy:i,children:[t(Op,{ref:l,children:o}),c&&t(Np,{children:"..."})]}),!i&&t(s,{value:o,size:dd.XS})]})]})},Ip=r(oi)`
|
|
833
838
|
gap: 0;
|
|
834
|
-
`,
|
|
839
|
+
`,_p=r.button`
|
|
835
840
|
padding: 4px 8px;
|
|
836
841
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
837
842
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -843,20 +848,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
843
848
|
&:hover {
|
|
844
849
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
845
850
|
}
|
|
846
|
-
`,
|
|
851
|
+
`,Rp=({isPrettyMode:n,setIsPrettyMode:r})=>e(Ip,{children:[t(_p,{$position:"left",$selected:n,onClick:()=>r(!0),children:t(It,{})}),t(_p,{$position:"right",$selected:!n,onClick:()=>r(!1),children:t(bt,{})})]}),Dp=r.table`
|
|
847
852
|
border-collapse: collapse;
|
|
848
853
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
849
|
-
`,
|
|
854
|
+
`,kp=r.tbody``,Lp=r.tr`
|
|
850
855
|
td:first-child {
|
|
851
856
|
padding-left: 0 !important;
|
|
852
857
|
}
|
|
853
858
|
td:last-child {
|
|
854
859
|
padding-right: 0 !important;
|
|
855
860
|
}
|
|
856
|
-
`,
|
|
861
|
+
`,Pp=r.td`
|
|
857
862
|
vertical-align: top;
|
|
858
863
|
padding: 4px 6px;
|
|
859
|
-
`,
|
|
864
|
+
`,Mp=r.span`
|
|
860
865
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
861
866
|
overflow-wrap: break-word;
|
|
862
867
|
word-break: break-word;
|
|
@@ -864,7 +869,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
864
869
|
/* Fallback for older browsers */
|
|
865
870
|
-ms-word-break: break-all;
|
|
866
871
|
font-size: 12px;
|
|
867
|
-
`,
|
|
872
|
+
`,Fp=({language:e,code:n,theme:r,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=r?qt[r]:s?qt.palenight:qt.vsLight;let c="";if("json"===e){const e=Dr(n,{}),t=Xi(e);c=Vi(o?eo(t):t)}else c=n;return a&&"json"===e?t(Up,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:n,tokens:r})=>t("pre",{children:r.map((r,o)=>t("div",{...e({line:r}),children:r.map((e,r)=>t(Mp,{...n({token:e})},`line-${o}-token-${r}`))},`line-${o}`))})})},Up=({darkMode:n,str:r})=>{const o=i(),a=(n,r)=>{const i=new Array(n).fill(n=>e(Lp,{...n,children:[t(Pp,{}),t(Pp,{})]}));return t(Ft,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${r}-${n}`))})};return t(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:r,children:({getLineProps:n,getTokenProps:r,tokens:i})=>t(Dp,{children:t(kp,{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],r=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(r.split("@")[0])&&(n[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:r}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Ft,{children:[a(2,s),e(Lp,{...c,children:[t(Pp,{children:t(br,{nowrap:!0,children:l[0].content})}),t(Pp,{})]})]},`line-${s}`):2===l.length?t(Lp,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[r,...o]=e.split("@");return{text:r,components:o?.map((e,r)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return t(Ud,{withIcon:!0,text:i},`${o}-${i}-${r}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${o}-${i}-${r}`);let e=yi(i,n);return e||(e=yi(Tn.Warning,n)),t(e,{},`${o}-${i}-${r}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,o),c=0===i;return t(Pp,{children:e(oi,{children:[t(oi,{children:l}),t(Mp,{$noWrap:c,...r({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},zp=r.div`
|
|
868
873
|
display: flex;
|
|
869
874
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
870
875
|
gap: 8px;
|
|
@@ -880,7 +885,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
880
885
|
background-color: ${t?"transparent":n};
|
|
881
886
|
}
|
|
882
887
|
`}
|
|
883
|
-
`,
|
|
888
|
+
`,Bp=r.div`
|
|
884
889
|
display: flex;
|
|
885
890
|
align-items: center;
|
|
886
891
|
justify-content: center;
|
|
@@ -899,54 +904,54 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
899
904
|
transform: scale(1.2);
|
|
900
905
|
}
|
|
901
906
|
`}
|
|
902
|
-
`,
|
|
907
|
+
`,Hp=r(ii)`
|
|
903
908
|
flex: 1;
|
|
904
909
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
905
910
|
min-width: 0;
|
|
906
|
-
`,
|
|
911
|
+
`,jp=r(ii)`
|
|
907
912
|
align-self: stretch;
|
|
908
913
|
flex-shrink: 0;
|
|
909
|
-
`,
|
|
914
|
+
`,Wp=r.div`
|
|
910
915
|
display: flex;
|
|
911
916
|
align-items: center;
|
|
912
917
|
justify-content: center;
|
|
913
918
|
flex-shrink: 0;
|
|
914
919
|
width: 24px;
|
|
915
920
|
height: 24px;
|
|
916
|
-
`,
|
|
921
|
+
`,Gp=({status:n,title:r,subTitle:o,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=yi(n,b),E=p?u?xt:wt:void 0,$=n===Tn.Unknown,S=n===Tn.Disabled,C=n===Tn.Loading||c,x=[Tn.Error,Tn.Warning,Tn.Success].includes(n),w=Lo(b,n,S?h?"400":"700":$?"600":h?"300":"500"),T=S?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!$?w:T,N=!h||$||S?"rgba(0, 0, 0, 0.13)":Lo(b,n,"800"),A=S?b.v2.colors.grey[900]:h||$?b.v2.colors.silver[800]:w,I=S?b.v2.colors.grey[800]:h||$?b.v2.colors.silver[700]:Lo(b,n,"600");return e(zp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(Bp,{$backgroundColor:N,$slim:y,children:C?t(fi,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(Hp,{$gap:4,$justifyContent:"center",$slim:y,children:[e(oi,{$gap:10,$alignItems:"center",children:[t(br,{size:y?hr.XS:hr.S,weight:500,color:O,children:r}),l&&t(Bd,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:hr.XXXS})]}),o&&t(br,{size:hr.XXXS,color:T,children:o}),a]}),(!!d?.length||s)&&e(jp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(oi,{$gap:8,children:d.map(e=>t(Gd,{...e,variant:Hd.Secondary,size:jd.S},e["data-id"]??e.label))}),s]}),E&&t(Wp,{children:t(E,{size:24,fill:T})})]})},Xp=r.div`
|
|
917
922
|
display: flex;
|
|
918
923
|
flex-direction: column;
|
|
919
924
|
width: 100%;
|
|
920
925
|
border-radius: 12px;
|
|
921
926
|
overflow: hidden;
|
|
922
|
-
`,
|
|
927
|
+
`,Vp=r.div`
|
|
923
928
|
display: flex;
|
|
924
929
|
flex-direction: column;
|
|
925
930
|
gap: 8px;
|
|
926
931
|
padding: 8px 12px 16px 12px;
|
|
927
932
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
928
|
-
`,
|
|
933
|
+
`,Kp=r.div`
|
|
929
934
|
display: flex;
|
|
930
935
|
align-items: center;
|
|
931
936
|
gap: 8px;
|
|
932
|
-
`,
|
|
937
|
+
`,Yp=r.div`
|
|
933
938
|
display: flex;
|
|
934
939
|
align-items: center;
|
|
935
940
|
justify-content: center;
|
|
936
941
|
flex-shrink: 0;
|
|
937
942
|
width: 18px;
|
|
938
943
|
height: 18px;
|
|
939
|
-
`,
|
|
944
|
+
`,Jp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ut(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Mi(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>ao(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(()=>r||(1===d.length?ur(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:r})=>e?"Something Failed":t||n?"Something isn't right":r?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[r,d,p,g,m,y]),E=Ht(()=>o||1===d.length&&d[0].message||void 0,[o,d]),$=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Xp,{children:[t(Gp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&t(Vp,{children:d.map(({status:n,type:r,reason:o,message:i},s)=>{const l=n===Tn.Loading,c=n===Tn.Disabled?Tn.Info:n,d=l?null:yi(c,a),u=n===Tn.Error?Lo(a,Tn.Error,"500"):n===Tn.Warning?Lo(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[r,i||o].filter(Boolean).join(" - ");return e(Kp,{children:[t(Yp,{children:l||!d?t(fi,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(br,{size:hr.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},qp=r.div`
|
|
940
945
|
width: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Vertical?`${t}px`:n||"100%"};
|
|
941
946
|
height: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Horizontal?`${t}px`:n||"100%"};
|
|
942
947
|
margin: ${({$orientation:e,$margin:t})=>t||(e===gn.Horizontal?"8px 0":"0 8px")};
|
|
943
|
-
background-color: ${({$type:e,theme:t})=>(e?
|
|
948
|
+
background-color: ${({$type:e,theme:t})=>(e?Lo(t,e):t.v2.colors.grey[400])+Qd["050"]};
|
|
944
949
|
opacity: ${({$opacity:e})=>e||1};
|
|
945
|
-
`,
|
|
950
|
+
`,Qp=({orientation:e=gn.Horizontal,type:n,thickness:r=1,length:o,margin:i,opacity:a})=>t(qp,{$orientation:e,$type:n,$thickness:r,$length:o,$margin:i,$opacity:a});var Zp,eh,th;(e=>{e.Default="default",e.SuccessError="successError"})(Zp||(Zp={})),(e=>{e.S="small",e.L="large"})(eh||(eh={})),(e=>{e.Left="left",e.Right="right"})(th||(th={}));const nh=r.div`
|
|
946
951
|
display: flex;
|
|
947
952
|
align-items: center;
|
|
948
953
|
gap: ${({$gap:e})=>e}px;
|
|
949
|
-
`,
|
|
954
|
+
`,rh=r.div`
|
|
950
955
|
position: relative;
|
|
951
956
|
display: flex;
|
|
952
957
|
align-items: center;
|
|
@@ -957,11 +962,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
957
962
|
height: ${({$size:e})=>e}px;
|
|
958
963
|
padding: ${4}px;
|
|
959
964
|
border-radius: ${({$size:e})=>2*e}px;
|
|
960
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:r,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(n&&!o)return n;switch(r){case
|
|
965
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:r,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(n&&!o)return n;switch(r){case Zp.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Zp.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
961
966
|
|
|
962
967
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
963
968
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
964
|
-
`,
|
|
969
|
+
`,oh=r.div`
|
|
965
970
|
position: absolute;
|
|
966
971
|
top: 50%;
|
|
967
972
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -971,17 +976,17 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
971
976
|
border-radius: 100%;
|
|
972
977
|
background-color: ${({$color:e})=>e};
|
|
973
978
|
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
|
-
`,
|
|
979
|
+
`,ih=({variant:r=Zp.Default,size:o=eh.L,name:a,label:s,labelAlign:l=th.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=St,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:$,helpMessage:S})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=o===eh.S?10:16,T=c||C.v2.colors.silver[200],O=o===eh.S?hr.XXXS:hr.XS,N=o===eh.S?8:12;return e(ii,{$gap:4,children:[e(oi,{$justifyContent:"space-between",children:[e(nh,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===th.Left&&t(br,{color:T,size:O,nowrap:!0,children:s}),e(rh,{$onBgColor:b,$offBgColor:v,$variant:r,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(oh,{$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===th.Right&&t(br,{color:T,size:O,nowrap:!0,children:s})]}),t(Eu,{tooltip:d,badge:u})]}),t($u,{errorMessage:E,warnMessage:$,helpMessage:S})]})},ah=r.div`
|
|
975
980
|
display: flex;
|
|
976
981
|
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
977
982
|
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
978
|
-
`,
|
|
983
|
+
`,sh=({direction:n=gn.Vertical,title:r,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===eh.S?hr.XS:hr.S;return e(ah,{$direction:n,children:[r&&t(br,{size:c,children:r}),a.map(e=>t(ih,{...e,labelAlign:th.Right,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return n?t[n]=r:a.forEach(e=>t[e.id]=r),t});var n,r},disabled:i,size:o},`${r}-toggle-${e.id}`))]})},lh=r.div`
|
|
979
984
|
display: flex;
|
|
980
985
|
align-items: center;
|
|
981
986
|
justify-content: space-between;
|
|
982
987
|
width: 100%;
|
|
983
988
|
overflow: hidden;
|
|
984
|
-
`,
|
|
989
|
+
`,ch=r.div`
|
|
985
990
|
display: flex;
|
|
986
991
|
align-items: center;
|
|
987
992
|
gap: 16px;
|
|
@@ -989,7 +994,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
989
994
|
min-width: 0;
|
|
990
995
|
flex: 1;
|
|
991
996
|
overflow: hidden;
|
|
992
|
-
`,
|
|
997
|
+
`,dh=r.div`
|
|
993
998
|
display: flex;
|
|
994
999
|
align-items: center;
|
|
995
1000
|
justify-content: center;
|
|
@@ -998,23 +1003,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
998
1003
|
height: 36px;
|
|
999
1004
|
border-radius: 8px;
|
|
1000
1005
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1001
|
-
`,
|
|
1006
|
+
`,uh=r.img`
|
|
1002
1007
|
width: 24px;
|
|
1003
1008
|
height: 24px;
|
|
1004
|
-
`,
|
|
1009
|
+
`,ph=r.div`
|
|
1005
1010
|
display: flex;
|
|
1006
1011
|
align-items: center;
|
|
1007
1012
|
gap: 16px;
|
|
1008
1013
|
flex-shrink: 0;
|
|
1009
|
-
`,
|
|
1014
|
+
`,hh=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(lh,{children:[e(ch,{children:[n?t(dh,{children:t(n,{size:24})}):r?t(dh,{children:t(uh,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(ii,{$gap:6,children:[(o||i?.length)&&e(oi,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(oi,{$gap:4,children:i?.map((e,n)=>t(Bd,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(ph,{children:[s&&t(ih,{...s}),l?.length?t(Fu,{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(pd,{"data-id":"drawer-close",icon:St,size:dd.M,onClick:c,disabled:d})]})]}),gh=r.div`
|
|
1010
1015
|
position: relative;
|
|
1011
1016
|
&.animated {
|
|
1012
1017
|
overflow: hidden;
|
|
1013
1018
|
padding-bottom: 1px;
|
|
1014
1019
|
border-radius: 8px;
|
|
1015
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1020
|
+
animation: ${({$isLeaving:e})=>e?eu.out.bottom:eu.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1016
1021
|
}
|
|
1017
|
-
`,
|
|
1022
|
+
`,mh=r.div`
|
|
1018
1023
|
position: absolute;
|
|
1019
1024
|
bottom: -1px;
|
|
1020
1025
|
left: 0;
|
|
@@ -1022,9 +1027,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1022
1027
|
width: 100%;
|
|
1023
1028
|
height: 100%;
|
|
1024
1029
|
border-radius: 8px;
|
|
1025
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1026
|
-
animation: ${
|
|
1027
|
-
`,
|
|
1030
|
+
background-color: ${({theme:e,$status:t})=>Lo(e,t,t===Tn.Default?"300":t===Tn.Info?"400":"500")};
|
|
1031
|
+
animation: ${tu.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1032
|
+
`,fh=r.div`
|
|
1028
1033
|
display: flex;
|
|
1029
1034
|
align-items: center;
|
|
1030
1035
|
gap: 10px;
|
|
@@ -1033,37 +1038,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1033
1038
|
`}
|
|
1034
1039
|
padding: 8px 12px 8px 8px;
|
|
1035
1040
|
border-radius: 8px;
|
|
1036
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1037
|
-
`,
|
|
1041
|
+
background-color: ${({theme:e,$status:t})=>Lo(e,t,[Tn.Info,Tn.Warning].includes(t)?"1000":"900")};
|
|
1042
|
+
`,yh=r.div`
|
|
1038
1043
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1039
1044
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1040
1045
|
display: flex;
|
|
1041
1046
|
align-items: center;
|
|
1042
1047
|
justify-content: center;
|
|
1043
1048
|
border-radius: 6px;
|
|
1044
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1045
|
-
`,
|
|
1049
|
+
background-color: ${({theme:e,$status:t})=>Lo(e,t,[Tn.Info].includes(t)?"900":"800")};
|
|
1050
|
+
`,bh=r.div`
|
|
1046
1051
|
margin-left: auto;
|
|
1047
1052
|
display: flex;
|
|
1048
1053
|
align-items: center;
|
|
1049
1054
|
gap: 4px;
|
|
1050
|
-
`,
|
|
1055
|
+
`,vh=r.div`
|
|
1051
1056
|
margin-right: 8px;
|
|
1052
1057
|
cursor: pointer;
|
|
1053
1058
|
&:hover {
|
|
1054
1059
|
transform: scale(1.2);
|
|
1055
1060
|
}
|
|
1056
|
-
`,
|
|
1061
|
+
`,Eh=({status:n,message:r,action:o,fullWidth:a,maxWidth:s,smallIcon:l,onClose:c,duration:d=5e3,zIndex:u})=>{const p=i(),h=yi(n,p),g=Lo(p,n,n===Tn.Default?"300":n===Tn.Info?"400":"500"),[m,f]=Ut(!1),y=jt(null),b=jt(null),v=d/10,E=d-v,$=e=>{c&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>c({asSeen:e?.asSeen}),v))};return zt(()=>{if(c)return y.current=setTimeout(()=>$({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[d]),e(gh,{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(()=>$({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(fh,{$status:n,$fullWidth:a,children:[t("div",{children:t(yh,{$status:n,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(br,{color:g,size:hr.XXXS,weight:400,children:r}),(o||c)&&e(bh,{children:[o&&t(vh,{"data-id":o["data-id"],onClick:o.onClick,children:t(br,{color:g,size:hr.XXS,weight:500,underline:!0,nowrap:!0,children:o.label})}),c&&t(pd,{"data-id":"note-close",icon:St,size:dd.XS,onClick:()=>$({asSeen:!0})})]})]}),c&&t(mh,{ref:b,$status:n,$duration:d})]})},$h=r.div`
|
|
1057
1062
|
display: flex;
|
|
1058
1063
|
align-items: center;
|
|
1059
1064
|
gap: 8px;
|
|
1060
1065
|
padding: 4px 12px;
|
|
1061
|
-
`,
|
|
1066
|
+
`,Sh=r.div`
|
|
1062
1067
|
flex: 1;
|
|
1063
|
-
`,
|
|
1068
|
+
`,Ch=r.div`
|
|
1064
1069
|
min-width: 150px;
|
|
1065
1070
|
width: fit-content;
|
|
1066
|
-
`,
|
|
1071
|
+
`,xh=({note:n,actions:r,children:o})=>o?t($h,{children:o}):e($h,{children:[n&&t(Eh,{...n}),t(Sh,{}),r?.map((e,n)=>t(Ch,{children:t(Gd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),wh=r.div`
|
|
1067
1072
|
position: fixed;
|
|
1068
1073
|
top: 0;
|
|
1069
1074
|
bottom: 0;
|
|
@@ -1083,16 +1088,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1083
1088
|
overflow: hidden;
|
|
1084
1089
|
|
|
1085
1090
|
${({$disableAnimation:e,$position:t})=>!e&&o`
|
|
1086
|
-
animation-name: ${
|
|
1091
|
+
animation-name: ${eu.in[t]};
|
|
1087
1092
|
`}
|
|
1088
|
-
`,
|
|
1093
|
+
`,Th=r.div`
|
|
1089
1094
|
display: flex;
|
|
1090
1095
|
flex-direction: column;
|
|
1091
1096
|
gap: 12px;
|
|
1092
1097
|
|
|
1093
1098
|
height: calc(100% - ${56}px);
|
|
1094
1099
|
overflow-y: auto;
|
|
1095
|
-
|
|
1100
|
+
`,Oh=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(ld(r),r?Yt(e(n,{children:[!o&&t(li,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(wh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(hh,{...c}),t(Th,{children:u}),d&&t(xh,{...d})]})]}),document.body):null),Nh=({options:e,values:n,setValues:r,withMultiSelect:o,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(Fu,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:Nu.Left,items:e,selectedIds:n,setSelectedIds:r,children:({ChevronIcon:e,handleClick:n})=>t(lp,{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})})},Ah=({error:n})=>{const r=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:r.text.error,fontFamily:r.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:r.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:r.text.secondary,fontSize:"14px"}};return e("div",{style:o.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:o.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:o.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:o.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),t(Gd,{variant:Hd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Ih=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(qd,{children:t(Ah,{...n,error:e})}),children:e}),_h=r.header`
|
|
1096
1101
|
position: relative;
|
|
1097
1102
|
width: 100%;
|
|
1098
1103
|
padding: 12px 18px;
|
|
@@ -1100,12 +1105,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1100
1105
|
display: flex;
|
|
1101
1106
|
align-items: center;
|
|
1102
1107
|
justify-content: space-between;
|
|
1103
|
-
`,
|
|
1108
|
+
`,Rh=r(oi)`
|
|
1104
1109
|
position: absolute;
|
|
1105
1110
|
left: 50%;
|
|
1106
1111
|
transform: translateX(-50%);
|
|
1107
1112
|
gap: 16px;
|
|
1108
|
-
`,
|
|
1113
|
+
`,Dh=({left:n=[],center:r=[],right:o=[]})=>e(_h,{children:[t(oi,{$gap:16,children:n}),t(Rh,{children:r}),t(oi,{$gap:16,children:o})]}),kh=r.div`
|
|
1109
1114
|
display: flex;
|
|
1110
1115
|
align-items: center;
|
|
1111
1116
|
gap: 2px;
|
|
@@ -1120,7 +1125,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1120
1125
|
left: ${({$left:e})=>e||"unset"};
|
|
1121
1126
|
top: 50%;
|
|
1122
1127
|
transform: translateY(-50%);
|
|
1123
|
-
`,
|
|
1128
|
+
`,Lh=({isOpen:e,actions:n,positionRight:r,positionLeft:o})=>e?t(kh,{$right:r,$left:o,children:n.map(e=>{if(!e)return null;const{tooltip:n,...r}=e;return t(Ud,{text:n||"",children:t(Gd,{...r,variant:Hd.Secondary,size:jd.S})},r.id)})}):null,Ph=r.div`
|
|
1124
1129
|
display: flex;
|
|
1125
1130
|
align-items: center;
|
|
1126
1131
|
justify-content: center;
|
|
@@ -1128,32 +1133,32 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1128
1133
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1129
1134
|
aspect-ratio: 1 / 1;
|
|
1130
1135
|
border-radius: 8px;
|
|
1131
|
-
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?
|
|
1132
|
-
`,
|
|
1136
|
+
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?Lo(e,n,n===Tn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1137
|
+
`,Mh=({icons:n,icon:r,iconSrc:o,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=No(d,c.v2.text.size);if(n&&n.length>1){const r=n.slice(0,3),o=n.length-r.length,i=r.slice(0,2),c=r.slice(2),u=c.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(Ph,{$size:s,$padding:l,$status:a,children:e(ii,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(oi,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(oi,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,n)=>t(e,{size:d},`bottom-${n}`)),o>0&&t(br,{size:p,weight:500,children:`+${o}`})]})]})})})}const h=n?.[0]||r;return t("div",{style:{width:"fit-content"},children:t(Ph,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:o,alt:"",width:u,height:u})})})},Fh=r.div`
|
|
1133
1138
|
width: 100%;
|
|
1134
1139
|
border-radius: 8px;
|
|
1135
1140
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1136
1141
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1137
|
-
`,
|
|
1142
|
+
`,Uh=({values:n,setValues:r,name:o,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(Fh,{$plain:m,children:e(ii,{"data-id":o,$gap:6,children:[t(Eu,{label:a,tooltip:s,required:c,badge:l}),t(ii,{$gap:8,children:E.map((o,i)=>{const a=i===E.length-1;return e(oi,{$gap:8,$alignItems:"center",children:[t(lp,{width:"100%",autoFocus:Ii(o)&&!y&&a,value:o,onChange:e=>((e,t)=>{const o=[...n||[]];o[t]=e,r(o)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&t(Gd,{leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:b,onClick:()=>(()=>{const e=n.length?Xr(n):[Xr("")];e.push(""),r(e)})()}),t(Gd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),r(t)})(i)})]},`input-list-${i}`)})}),t($u,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var zh;(e=>{e.S="small",e.L="large"})(zh||(zh={}));const Bh=r.div`
|
|
1138
1143
|
width: fit-content;
|
|
1139
1144
|
display: flex;
|
|
1140
1145
|
align-items: center;
|
|
1141
1146
|
gap: 8px;
|
|
1142
1147
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1143
|
-
`,
|
|
1144
|
-
width: ${({$size:e})=>e===
|
|
1145
|
-
height: ${({$size:e})=>e===
|
|
1148
|
+
`,Hh=r.div`
|
|
1149
|
+
width: ${({$size:e})=>e===zh.S?"16px":"20px"};
|
|
1150
|
+
height: ${({$size:e})=>e===zh.S?"16px":"20px"};
|
|
1146
1151
|
display: flex;
|
|
1147
1152
|
align-items: center;
|
|
1148
1153
|
justify-content: center;
|
|
1149
1154
|
border-radius: 100%;
|
|
1150
1155
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1151
1156
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1152
|
-
`,
|
|
1157
|
+
`,jh=({"data-id":n,label:r,value:o,onChange:a,disabled:s,size:l=zh.L})=>{const c=i(),[d,u]=Ut(!1),p=o,h=l===zh.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(Bh,{"data-id":n??"radio"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Hh,{$size:l,$borderColor:m,$backgroundColor:f,children:o?t(Dt,{size:h,fill:g}):null}),r&&t(br,{size:l===zh.S?hr.XXS:hr.XS,children:r})]})},Wh=r.div`
|
|
1153
1158
|
display: flex;
|
|
1154
1159
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1155
1160
|
gap: ${({$gap:e})=>e}px;
|
|
1156
|
-
`,
|
|
1161
|
+
`,Gh=({label:n,direction:r,disabled:o,size:i,options:a,values:s,setValues:l})=>e(Wh,{$flexDirection:r===gn.Horizontal?"row":"column",$gap:r===gn.Horizontal?16:8,children:[n&&t(br,{children:n}),a.map(e=>t(jh,{...e,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=r,t});var n,r},disabled:o,size:i},`${n}-radio-${e.id}`))]}),Xh=({col:n,colIdx:r,row:o,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:$}=n,S=o[p];if(b&&!b(o))return null;const C=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(Gh,{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,r=Object.keys(t).find(e=>t[e])??"";s(p,r,i)},disabled:c},p)}case xn.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,n=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],r=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(Nh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:r,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const o=a>1&&0===i&&0===r&&Ii(S),d=t(lp,{name:p,label:C,placeholder:x,autoFocus:o,type:g,min:E,max:$,value:S,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(oi,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(Gd,{variant:Hd.Secondary,size:jd.S,label:"Test",disabled:c||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):d}},Vh=r.div`
|
|
1157
1162
|
width: 100%;
|
|
1158
1163
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1159
1164
|
border-radius: 8px;
|
|
@@ -1161,28 +1166,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1161
1166
|
display: flex;
|
|
1162
1167
|
flex-direction: column;
|
|
1163
1168
|
gap: 8px;
|
|
1164
|
-
`,
|
|
1169
|
+
`,Kh=r.div`
|
|
1165
1170
|
flex: 1;
|
|
1166
1171
|
min-width: 0;
|
|
1167
|
-
`,
|
|
1172
|
+
`,Yh=r.div`
|
|
1168
1173
|
padding-top: 24px;
|
|
1169
|
-
`,
|
|
1174
|
+
`,Jh=({columns:n,values:r,setValues:o,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=r.length?r:[b(v)],$=(f?E[0]?.[f]:"")||v,S=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b($)]),x=y.find(e=>e.id===$);return e(ii,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(Eu,{label:s,tooltip:l,required:c}),m&&t(pu,{"data-id":`${a}-mode`,size:au.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:$,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(ii,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:$}:r,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,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Vh,{"data-id":`${a}-card-${i}`,children:[e(oi,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(ii,{$gap:10,children:[T&&t(Eu,{label:T}),m.map(e=>t(oi,{$gap:24,children:(e.options??[]).map(n=>t(jh,{size:zh.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&S(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(oi,{$gap:4,$alignItems:"center",children:[v&&t(Gd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Hd.Secondary,size:jd.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(Gd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b($)])})(i)}),s&&t(Gd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(oi,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,o)=>{const s=((e,t)=>{let{label:n,placeholder:r,helpMessage:o}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,r=i.placeholder??r,o=i.helpMessage??o)}return{label:n,placeholder:r,helpMessage:o}})(n,r);return e(Ft,{children:["arrow"===n.separator&&o>0&&t(Yh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(Kh,{children:t(lp,{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:r[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>S(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${o}`))]},`${a}-card-${i}`)}),t($u,{errorMessage:u})]})]})},qh=r.div`
|
|
1170
1175
|
width: 100%;
|
|
1171
1176
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1172
1177
|
border-radius: 8px;
|
|
1173
1178
|
padding: 4px 8px;
|
|
1174
|
-
`,
|
|
1179
|
+
`,Qh=r.table`
|
|
1175
1180
|
width: 100%;
|
|
1176
1181
|
border-collapse: separate;
|
|
1177
1182
|
border-spacing: 0 8px;
|
|
1178
|
-
`,
|
|
1183
|
+
`,Zh=r.td`
|
|
1179
1184
|
padding: 0 8px 0 0;
|
|
1180
1185
|
vertical-align: top;
|
|
1181
|
-
`,
|
|
1186
|
+
`,eg=r.td`
|
|
1182
1187
|
width: 72px;
|
|
1183
1188
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1184
1189
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1185
|
-
`,
|
|
1190
|
+
`,tg=({columns:n,values:r,setValues:o,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=r.length?Xr(r):[Xr(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(qh,{children:e(ii,{"data-id":a,$gap:0,children:[t(Eu,{label:s,tooltip:l,required:d,badge:c}),t(Qh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(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(Ft,{children:[l.length>1&&a>0?t("tr",{children:t(Zh,{colSpan:d+1})}):null,l.map((l,g)=>{const m=c[g],$=m?22:0;return e("tr",{children:[l.map((n,r)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const o=r===l.length-1,s=0===g&&o?d-l.length+1:1;return t(Zh,{colSpan:s>1?s:void 0,children:e(ii,{$gap:6,children:[m&&(n.label?t(Eu,{label:n.label,tooltip:n.tooltip}):t(Eu,{label:"\\u00A0"})),t(Xh,{col:n,colIdx:r,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${r}`)}),0===g&&t(eg,{$topOffset:$,$center:h,children:e(oi,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Gd,{leftIcon:_t,variant:Hd.Secondary,size:jd.S,disabled:u,onClick:()=>(()=>{const e=r.length?Xr(r):[Xr(b)],t=Xr(b),i=e[e.length-1];n.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=i?.[e.keyName]&&""!==i[e.keyName]&&(t[e.keyName]=Xr(i[e.keyName]))}),e.push(t),o(e)})()}),t(Gd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:Hd.Secondary,size:jd.S,disabled:u,onClick:()=>(e=>{const t=r.filter((t,n)=>n!==e);t.length||t.push(Xr(b)),o(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t($u,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},ng=r.div`
|
|
1186
1191
|
display: flex;
|
|
1187
1192
|
align-items: center;
|
|
1188
1193
|
justify-content: space-between;
|
|
@@ -1190,15 +1195,15 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1190
1195
|
|
|
1191
1196
|
padding: 18px 16px;
|
|
1192
1197
|
border-radius: 18px;
|
|
1193
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1198
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Qd["095"]};
|
|
1194
1199
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1195
1200
|
|
|
1196
1201
|
position: fixed;
|
|
1197
1202
|
bottom: 0;
|
|
1198
1203
|
left: 50%;
|
|
1199
1204
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1200
|
-
animation-name: ${
|
|
1201
|
-
`,
|
|
1205
|
+
animation-name: ${eu.in.center};
|
|
1206
|
+
`,rg=({isOpen:n,onClose:r,richTitle:o,actions:i})=>n?e(ng,{children:[t(Hu,{...o}),t(zu,{onAnyClick:r,actions:i})]}):null,og=r.div`
|
|
1202
1207
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1203
1208
|
top: 50%;
|
|
1204
1209
|
left: 50%;
|
|
@@ -1219,7 +1224,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1219
1224
|
will-change: transform;
|
|
1220
1225
|
contain: layout paint;
|
|
1221
1226
|
|
|
1222
|
-
animation-name: ${({$closing:e})=>e?
|
|
1227
|
+
animation-name: ${({$closing:e})=>e?eu.out.center:eu.in.center};
|
|
1223
1228
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1224
1229
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1225
1230
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1228,9 +1233,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1228
1233
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1229
1234
|
don't compete with the slide-out. */
|
|
1230
1235
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1231
|
-
`,
|
|
1236
|
+
`,ig=r(li)`
|
|
1232
1237
|
will-change: opacity;
|
|
1233
|
-
animation-name: ${({$closing:e})=>e?
|
|
1238
|
+
animation-name: ${({$closing:e})=>e?ou.out:ou.in};
|
|
1234
1239
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1235
1240
|
|
|
1236
1241
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1238,18 +1243,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1238
1243
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1239
1244
|
because the overlay is fading to 0. */
|
|
1240
1245
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1241
|
-
`,
|
|
1246
|
+
`,ag=r.div`
|
|
1242
1247
|
position: relative;
|
|
1243
|
-
`,
|
|
1248
|
+
`,sg=r.div`
|
|
1244
1249
|
position: absolute;
|
|
1245
1250
|
top: 16px;
|
|
1246
1251
|
left: 16px;
|
|
1247
|
-
`,
|
|
1252
|
+
`,lg=({isOpen:r,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ut(r),[p,h]=Ut(!1);if(zt(()=>{r?(u(!0),h(!1)):d&&h(!0)},[r]),ld(d),!d)return null;const g=e(n,{children:[!o&&t(ig,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(og,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(ag,{children:[a&&t(sg,{children:t(pd,{icon:e=>t(At,{rotate:-90,...e}),size:dd.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},cg=r.div`
|
|
1248
1253
|
position: relative;
|
|
1249
1254
|
width: ${64}px;
|
|
1250
1255
|
height: ${({$height:e})=>e};
|
|
1251
1256
|
flex-shrink: 0;
|
|
1252
|
-
`,
|
|
1257
|
+
`,dg=r.aside`
|
|
1253
1258
|
position: absolute;
|
|
1254
1259
|
top: 0;
|
|
1255
1260
|
left: 0;
|
|
@@ -1269,7 +1274,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1269
1274
|
transition:
|
|
1270
1275
|
width 200ms ease,
|
|
1271
1276
|
padding 200ms ease;
|
|
1272
|
-
`,
|
|
1277
|
+
`,ug=r.button`
|
|
1273
1278
|
display: flex;
|
|
1274
1279
|
align-items: center;
|
|
1275
1280
|
width: 100%;
|
|
@@ -1289,20 +1294,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1289
1294
|
&:active {
|
|
1290
1295
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1291
1296
|
}
|
|
1292
|
-
`,
|
|
1297
|
+
`,pg=r.div`
|
|
1293
1298
|
width: ${40}px;
|
|
1294
1299
|
height: ${40}px;
|
|
1295
1300
|
display: flex;
|
|
1296
1301
|
align-items: center;
|
|
1297
1302
|
justify-content: center;
|
|
1298
1303
|
flex-shrink: 0;
|
|
1299
|
-
`,
|
|
1304
|
+
`,hg=r.div`
|
|
1300
1305
|
flex: 1 1 0;
|
|
1301
1306
|
min-width: 0;
|
|
1302
1307
|
overflow: hidden;
|
|
1303
1308
|
padding-right: 12px;
|
|
1304
1309
|
pointer-events: none;
|
|
1305
|
-
`,
|
|
1310
|
+
`,gg=({height:n,icons:r})=>{const o=i(),[a,s]=Ut(!1);return t(cg,{$height:n,children:t(dg,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:r.map(({id:n,label:r,selected:i,icon:s,onClick:l})=>e(ug,{$selected:i,onClick:l,"aria-label":r,title:a?void 0:r,children:[t(pg,{children:t(s,{size:24,fill:o.v2.colors.white[500]})}),a&&t(hg,{children:t(br,{size:hr.S,weight:500,color:gr.Primary,nowrap:!0,children:r})})]},n))})})},mg=r.div`
|
|
1306
1311
|
display: flex;
|
|
1307
1312
|
flex-direction: column;
|
|
1308
1313
|
gap: 16px;
|
|
@@ -1326,20 +1331,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1326
1331
|
}
|
|
1327
1332
|
`}
|
|
1328
1333
|
`}
|
|
1329
|
-
`,
|
|
1334
|
+
`,fg=r.div`
|
|
1330
1335
|
display: flex;
|
|
1331
1336
|
align-items: center;
|
|
1332
1337
|
gap: 16px;
|
|
1333
1338
|
width: 100%;
|
|
1334
|
-
`,
|
|
1339
|
+
`,yg=r.div`
|
|
1335
1340
|
display: flex;
|
|
1336
1341
|
flex-direction: column;
|
|
1337
1342
|
gap: 4px;
|
|
1338
1343
|
flex: 1;
|
|
1339
1344
|
min-width: 0;
|
|
1340
|
-
`,
|
|
1345
|
+
`,bg=r.div`
|
|
1341
1346
|
width: 100%;
|
|
1342
|
-
`,
|
|
1347
|
+
`,vg=({"data-id":n,title:r,description:o,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=n??`radio-card-${r}`,h=()=>{d||c(!0)};return e(mg,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(fg,{children:[t(jh,{"data-id":`${p}-radio`,value:l,onChange:h,size:zh.L,disabled:d}),e(yg,{children:[t(br,{size:hr.S,weight:500,lineHeight:"24px",color:gr.Primary,children:r}),o&&t(br,{size:hr.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:gr.Secondary,children:o})]})]}),a&&t(bg,{children:a}),s&&t(bg,{children:s})]})},Eg=r.div`
|
|
1343
1348
|
width: 100%;
|
|
1344
1349
|
height: 100%;
|
|
1345
1350
|
|
|
@@ -1347,7 +1352,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1347
1352
|
animation: none !important;
|
|
1348
1353
|
transition: none !important;
|
|
1349
1354
|
}
|
|
1350
|
-
|
|
1355
|
+
`,$g=({width:e="100%",height:n="100%",gap:r=0,elements:o,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ht(()=>r?o.map((e,n)=>t("div",{style:{paddingBottom:r},children:e},`scroll-y-item-${n}`)):o,[o,r]),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(Eg,{children:p}):p},Sg=r.div`
|
|
1351
1356
|
display: flex;
|
|
1352
1357
|
flex-direction: column;
|
|
1353
1358
|
gap: 16px;
|
|
@@ -1356,47 +1361,47 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1356
1361
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1357
1362
|
width: 100%;
|
|
1358
1363
|
height: 100%;
|
|
1359
|
-
`,
|
|
1364
|
+
`,Cg=r.div`
|
|
1360
1365
|
display: flex;
|
|
1361
1366
|
align-items: center;
|
|
1362
1367
|
gap: 16px;
|
|
1363
|
-
`,
|
|
1368
|
+
`,xg=r.div`
|
|
1364
1369
|
width: 50px;
|
|
1365
1370
|
height: 50px;
|
|
1366
1371
|
border-radius: 8px;
|
|
1367
1372
|
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
1373
|
background-size: 200% 100%;
|
|
1369
|
-
animation: ${
|
|
1370
|
-
`,
|
|
1374
|
+
animation: ${ru} 10s infinite linear;
|
|
1375
|
+
`,wg=r(ii)`
|
|
1371
1376
|
flex: 1;
|
|
1372
1377
|
gap: 12px;
|
|
1373
|
-
`,
|
|
1378
|
+
`,Tg=r.div`
|
|
1374
1379
|
width: ${({$width:e})=>e};
|
|
1375
1380
|
height: 16px;
|
|
1376
1381
|
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
1382
|
background-size: 200% 100%;
|
|
1378
|
-
animation: ${
|
|
1383
|
+
animation: ${ru} 1.5s infinite linear;
|
|
1379
1384
|
border-radius: 4px;
|
|
1380
|
-
|
|
1385
|
+
`,Og=({size:n=5,maxWidth:r,maxHeight:o})=>t(Sg,{$maxWidth:r,$maxHeight:o,children:[...Array(n)].map((n,r)=>e(Cg,{children:[t(xg,{}),e(wg,{children:[t(Tg,{$width:"80%"}),t(Tg,{$width:"100%"})]})]},r))}),Ng=({currentStep:n,data:r,gap:o=12})=>t(ii,{$gap:o,children:r.map(r=>{const o=r.step<n,i=r.step===n;return e(oi,{$gap:8,children:[o||r.forceDoneBadge?t(Bd,{status:Tn.Success,label:"",leftIcon:vt}):t(Bd,{status:Tn.Default,label:r.step.toString()}),t(br,{size:i?hr.M:hr.XS,weight:i?500:400,opacity:i?1:.7,children:r.label})]},`stepper-item-${r.step}`)})});var Ag;(e=>{e.Data="data",e.Pretty="pretty"})(Ag||(Ag={}));const Ig=r.div`
|
|
1381
1386
|
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1382
1387
|
width: 100%;
|
|
1383
1388
|
display: flex;
|
|
1384
1389
|
flex-direction: column;
|
|
1385
1390
|
overflow: hidden;
|
|
1386
|
-
`,
|
|
1391
|
+
`,_g=r.div`
|
|
1387
1392
|
width: 100%;
|
|
1388
1393
|
flex: 1;
|
|
1389
1394
|
display: flex;
|
|
1390
1395
|
flex-direction: column;
|
|
1391
|
-
`,
|
|
1396
|
+
`,Rg=r.div`
|
|
1392
1397
|
flex-shrink: 0;
|
|
1393
1398
|
position: relative;
|
|
1394
1399
|
z-index: 2;
|
|
1395
|
-
`,
|
|
1400
|
+
`,Dg=r.div`
|
|
1396
1401
|
position: relative;
|
|
1397
1402
|
display: flex;
|
|
1398
1403
|
width: 100%;
|
|
1399
|
-
`,
|
|
1404
|
+
`,kg=r.div`
|
|
1400
1405
|
position: relative;
|
|
1401
1406
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1402
1407
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
@@ -1415,12 +1420,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1415
1420
|
|
|
1416
1421
|
${({$variant:e,$backgroundColor:t})=>{if(t)return o`
|
|
1417
1422
|
background-color: ${t};
|
|
1418
|
-
`;switch(e){case
|
|
1423
|
+
`;switch(e){case Ag.Data:return o`
|
|
1419
1424
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1420
|
-
`;case
|
|
1425
|
+
`;case Ag.Pretty:return o`
|
|
1421
1426
|
background-color: transparent;
|
|
1422
1427
|
`;default:return""}}}
|
|
1423
|
-
`,
|
|
1428
|
+
`,Lg=r.div`
|
|
1424
1429
|
position: absolute;
|
|
1425
1430
|
top: 50%;
|
|
1426
1431
|
right: 0;
|
|
@@ -1428,7 +1433,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1428
1433
|
width: 1px;
|
|
1429
1434
|
height: 18px;
|
|
1430
1435
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1431
|
-
`,
|
|
1436
|
+
`,Pg=r.div`
|
|
1432
1437
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1433
1438
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1434
1439
|
|
|
@@ -1463,16 +1468,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1463
1468
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1464
1469
|
box-sizing: border-box;
|
|
1465
1470
|
|
|
1466
|
-
${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case
|
|
1471
|
+
${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case Ag.Data:return o`
|
|
1467
1472
|
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1468
1473
|
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1469
1474
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1470
|
-
`;case
|
|
1475
|
+
`;case Ag.Pretty:return o`
|
|
1471
1476
|
border: none;
|
|
1472
1477
|
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1473
1478
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1474
1479
|
`;default:return""}}}
|
|
1475
|
-
`,
|
|
1480
|
+
`,Mg=r.div`
|
|
1476
1481
|
position: absolute;
|
|
1477
1482
|
top: 0;
|
|
1478
1483
|
left: 0;
|
|
@@ -1481,18 +1486,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1481
1486
|
height: 0;
|
|
1482
1487
|
overflow: hidden;
|
|
1483
1488
|
white-space: nowrap;
|
|
1484
|
-
`,
|
|
1489
|
+
`,Fg=r.div`
|
|
1485
1490
|
display: inline-flex;
|
|
1486
1491
|
align-items: center;
|
|
1487
1492
|
padding: 18px 24px;
|
|
1488
1493
|
box-sizing: border-box;
|
|
1489
1494
|
white-space: nowrap;
|
|
1490
|
-
`,
|
|
1495
|
+
`,Ug=r.div`
|
|
1491
1496
|
display: inline-flex;
|
|
1492
1497
|
align-items: center;
|
|
1493
1498
|
gap: 4px;
|
|
1494
1499
|
white-space: nowrap;
|
|
1495
|
-
`,
|
|
1500
|
+
`,zg=r.div`
|
|
1496
1501
|
width: 100%;
|
|
1497
1502
|
height: 100%;
|
|
1498
1503
|
display: flex;
|
|
@@ -1500,7 +1505,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1500
1505
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1501
1506
|
gap: 4px;
|
|
1502
1507
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1503
|
-
`,
|
|
1508
|
+
`,Bg=({variant:n,columns:r,rows:o,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ut(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:$,checkboxDisabled:S,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===o.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(Dg,{children:[d&&t(Pg,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!$&&(C?t(Ud,{text:C,children:t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()})}):t(wu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),r.map(({key:o,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===o),b=0===m&&!d,v=m===r.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),$="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(ju,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(oi,{$width:"100%",$justifyContent:$,children:S});return e(Pg,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(Ud,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(Lh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[o,g,u,s,l,c,d,r,i,a]);return t($g,{gap:n===Ag.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Hg=({columnKey:e,sortDirection:n,sortByKey:r,onSort:o})=>{const a=i(),s=r===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(Gd,{variant:Hd.Text,size:jd.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},jg=({columnKey:e,filters:n,onFilter:r,rowsUnfiltered:o,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(o.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})),[o,e,a]);return t(Fu,{items:c,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>r(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Wg=({variant:n,backgroundColor:r,columns:o,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(Dg,{children:[h&&t(kg,{$variant:n,$backgroundColor:r,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(wu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),o.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:$,minWidth:S,textAlign:C},x)=>{const w=0===x&&!h,T=x===o.length-1,O=!(!y&&!f),N=O?t(br,{size:hr.XS,align:C,nowrap:!0,children:m}):t(ju,{size:hr.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(kg,{$variant:n,$backgroundColor:r,$flex:$,$minWidth:S,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(zg,{$textAlign:C,children:[O?t(Ud,{text:y||m,children:N}):N,!b&&t(Hg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(jg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===Ag.Data&&t(Lg,{})]},`column-${g}`)})]}),Gg=()=>{},Xg={},Vg=[],Kg=({variant:n,maxHeight:r,headerBackgroundColor:o,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]=Ut(mn.Ascending),[E,$]=Ut(""),[S,C]=Ut({}),x=g??S,w=Bt(e=>{$(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 r=e(t,E),o=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)))(r,o)}):c).filter(t=>{for(const[n,r]of Object.entries(x)){if(!r.length)continue;const o=l.find(e=>e.key===n)?.filterOverride;if(o){if(!o.filterRow(t,r))return!1}else if(!r.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 r of n.cells)r.component&&!e.has(r.key)&&t.add(r.key);return t},[c,l]),R=jt(null),[D,k]=Ut({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const r=[e(Ug,{children:[t(br,{size:hr.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Hg,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:Gg}),!n.noFilter&&t(jg,{columnKey:n.key,filters:Xg,onFilter:Gg,rowsUnfiltered:Vg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((e,o)=>{const i=e.cells.find(e=>e.key===n.key);i&&r.push(i.component?t(i.component,{},`mw-${n.key}-${o}`):t(br,{size:hr.XS,children:i.rawValue||"-"},`mw-${n.key}-${o}`))}),{key:n.key,nodes:r}}),[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 r=Math.ceil(t.getBoundingClientRect().width);(!e[n]||r>e[n])&&(e[n]=r)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(Ig,{$maxHeight:r,children:[L.length>0&&t(Mg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,r)=>t(Fg,{"data-mw-key":e,children:n},`mw-${e}-${r}`)))}),e(_g,{$variant:n,children:[!i&&t(Rg,{children:t(Wg,{variant:n,backgroundColor:o,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(Bg,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ai,{$height:r,children:a?t(Og,{size:3,maxHeight:r}):t(yu,{...s})})]})]})};var Yg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Yg||(Yg={}));const Jg=(e,t,n)=>{switch(t){case Yg.Purple:return e.v2.colors.purple[n?"300":"900"];case Yg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Yg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Yg.Pink:return e.v2.colors.red[n?"300":"1000"];case Yg.Green:return e.v2.colors.green[n?"300":"900"];case Yg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},qg=r.div`
|
|
1504
1509
|
display: flex;
|
|
1505
1510
|
align-items: center;
|
|
1506
1511
|
justify-content: center;
|
|
@@ -1519,16 +1524,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1519
1524
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1520
1525
|
cursor: not-allowed;
|
|
1521
1526
|
`:o`
|
|
1522
|
-
background-color: ${({theme:e})=>
|
|
1527
|
+
background-color: ${({theme:e})=>Jg(e,t)};
|
|
1523
1528
|
${n&&o`
|
|
1524
1529
|
cursor: pointer;
|
|
1525
1530
|
&:hover,
|
|
1526
1531
|
&:active {
|
|
1527
|
-
border: 1px solid ${({theme:e})=>
|
|
1532
|
+
border: 1px solid ${({theme:e})=>Jg(e,t,!0)};
|
|
1528
1533
|
}
|
|
1529
1534
|
`}
|
|
1530
1535
|
`}
|
|
1531
|
-
`,
|
|
1536
|
+
`,Qg=({variant:n=Yg.Default,label:r,leftIcon:o,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Yg.Default?d.v2.colors.white[500]:Jg(d,n,!0),p=n===Yg.Loader;return e(qg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[o&&t(o,{fill:u,size:16}),p?t(fi,{withGradient:!0,title:r,titleSize:hr.XXS}):t(br,{color:u,size:hr.XXS,nowrap:!0,children:r}),a&&t(a,{fill:u,size:16})]})},Zg=r.div`
|
|
1532
1537
|
padding: 6px 12px;
|
|
1533
1538
|
|
|
1534
1539
|
display: flex;
|
|
@@ -1546,7 +1551,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1546
1551
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1547
1552
|
}
|
|
1548
1553
|
`}
|
|
1549
|
-
`,
|
|
1554
|
+
`,em=r.textarea`
|
|
1550
1555
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1551
1556
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1552
1557
|
flex: 1;
|
|
@@ -1571,26 +1576,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1571
1576
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1572
1577
|
}
|
|
1573
1578
|
}
|
|
1574
|
-
`,
|
|
1579
|
+
`,tm=({label:n,required:r,tooltip:o,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(ii,{$gap:6,children:[t(Eu,{label:n,tooltip:o,required:r,badge:i}),t(Zg,{$disabled:p,$error:!!a,children:t(em,{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($u,{errorMessage:a,warnMessage:s,helpMessage:l})]})},nm=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],rm=r.div`
|
|
1575
1580
|
flex: 1;
|
|
1576
1581
|
min-width: 0;
|
|
1577
|
-
`,
|
|
1582
|
+
`,om=r.div`
|
|
1578
1583
|
flex: 0 0 auto;
|
|
1579
1584
|
min-width: 140px;
|
|
1580
|
-
`,
|
|
1585
|
+
`,im=({name:n,label:r,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=nm,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 r=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),o=new RegExp(`^\\s*(\\d+)\\s*(${r.join("|")})\\s*$`,"i"),i=String(e).match(o);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]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(ii,{$width:y,$gap:6,children:[t(Eu,{label:r,tooltip:o,required:s,badge:i}),e(oi,{$gap:8,$alignItems:"center",children:[t(rm,{children:t(lp,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>$(Hi(e.target.value),E)})}),t(om,{children:t(Nh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>$(v,e[0]||E)})})]}),t($u,{errorMessage:h,warnMessage:g,helpMessage:m})]})},am=r.div`
|
|
1581
1586
|
min-width: 500px;
|
|
1582
|
-
`,
|
|
1587
|
+
`,sm=r.div`
|
|
1583
1588
|
display: flex;
|
|
1584
1589
|
flex-direction: column;
|
|
1585
1590
|
align-items: center;
|
|
1586
1591
|
gap: 16px;
|
|
1587
1592
|
padding: 24px;
|
|
1588
1593
|
width: 100%;
|
|
1589
|
-
`,
|
|
1594
|
+
`,lm=r.div`
|
|
1590
1595
|
display: flex;
|
|
1591
1596
|
justify-content: center;
|
|
1592
1597
|
gap: 16px;
|
|
1593
1598
|
padding: 16px 24px;
|
|
1594
1599
|
width: 100%;
|
|
1595
1600
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1596
|
-
`,
|
|
1601
|
+
`,cm=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(lg,{isOpen:i,onClose:a,...d,children:e(am,{children:[e(sm,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(ii,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>t(br,{size:hr.XS,weight:400,color:gr.Secondary,children:e},e))}),c]}),(s||l)&&e(lm,{children:[s&&t(Gd,{"data-id":"deny",...s}),l&&t(Gd,{"data-id":"approve",...l})]})]})});export{Su as $,Uu as A,Gd as B,wu as C,Oh as D,Os as E,ii as F,Rs as G,Qg as H,tg as I,Ds as J,ks as K,Ns as L,En as M,Eh as N,co as O,yn as P,Qu as Q,Hu as R,Tn as S,Ud as T,cs as U,Vo as V,cm as W,gs as X,pu as Y,cp as Z,xs as _,zu as a,$g as a$,Ls as a0,Ps as a1,ls as a2,Rr as a3,Qp as a4,Jh as a5,au as a6,Ca as a7,rs as a8,Mn as a9,ts as aA,Fs as aB,qa as aC,Is as aD,Us as aE,Ms as aF,zs as aG,Bs as aH,Es as aI,Ba as aJ,Wa as aK,Ga as aL,Ka as aM,Ja as aN,Ya as aO,as as aP,_a as aQ,Ra as aR,Fa as aS,$s as aT,Ss as aU,Ts as aV,Fc as aW,Da as aX,ss as aY,Xr as aZ,Uc as a_,zn as aa,Kn as ab,Yn as ac,Jn as ad,Un as ae,Bn as af,Fn as ag,ur as ah,ps as ai,ja as aj,us as ak,Ha as al,fs as am,ns as an,ds as ao,ms as ap,ws as aq,os as ar,jh as as,Cs as at,Za as au,Ua as av,es as aw,Qa as ax,Fu as ay,za as az,fn as b,pd as b$,ai as b0,yu as b1,fi as b2,mu as b3,hd as b4,ro as b5,Fp as b6,Jc as b7,xr as b8,ko as b9,Og as bA,er as bB,Bd as bC,sn as bD,ba as bE,pn as bF,va as bG,zh as bH,ju as bI,vr as bJ,Gi as bK,ga as bL,ca as bM,da as bN,pa as bO,ua as bP,Zs as bQ,is as bR,hs as bS,el as bT,vs as bU,Qs as bV,Pa as bW,Ma as bX,Xa as bY,sr as bZ,on as b_,$n as ba,Sn as bb,jc as bc,ed as bd,od as be,qc as bf,So as bg,lr as bh,bo as bi,Ai as bj,fa as bk,Ni as bl,id as bm,rr as bn,an as bo,rn as bp,Ii as bq,_i as br,cr as bs,zi as bt,Xn as bu,Ui as bv,ma as bw,kn as bx,Qd as by,ri as bz,ya as c,nl as c$,dd as c0,dr as c1,fo as c2,pr as c3,Sr as c4,$r as c5,hn as c6,vg as c7,oo as c8,Gp as c9,bi as cA,$d as cB,aa as cC,oa as cD,Pi as cE,Lo as cF,yi as cG,po as cH,Qi as cI,ta as cJ,su as cK,Kg as cL,Ag as cM,rg as cN,Va as cO,xa as cP,Ao as cQ,ho as cR,Ea as cS,Ta as cT,Sa as cU,wa as cV,Lc as cW,Mc as cX,Pc as cY,il as cZ,rl as c_,Hr as ca,Jp as cb,Wr as cc,nr as cd,Fi as ce,qr as cf,xi as cg,Co as ch,Rd as ci,ea as cj,Cd as ck,Ar as cl,Pn as cm,Nr as cn,na as co,uo as cp,Yg as cq,Ap as cr,Vc as cs,Ci as ct,Si as cu,mo as cv,Mh as cw,Xc as cx,Do as cy,to as cz,Eu as d,Ec as d$,ol as d0,ul as d1,dl as d2,gl as d3,hl as d4,ll as d5,sl as d6,$a as d7,Vs as d8,vd as d9,xl as dA,Cl as dB,Tl as dC,wl as dD,Nl as dE,Ol as dF,Al as dG,ml as dH,fl as dI,Ml as dJ,Fl as dK,Wl as dL,Hl as dM,jl as dN,zl as dO,Bl as dP,Ul as dQ,Kl as dR,Yl as dS,Xl as dT,Vl as dU,Gl as dV,ql as dW,Ql as dX,Jl as dY,vl as dZ,vc as d_,Ri as da,Au as db,Nu as dc,lg as dd,Wc as de,kc as df,yl as dg,Il as dh,_l as di,Rl as dj,Dl as dk,Ll as dl,kl as dm,Pl as dn,ei as dp,Nc as dq,Ac as dr,Ic as ds,_c as dt,Rc as du,Dc as dv,bl as dw,El as dx,$l as dy,Sl as dz,br as e,js as e$,$c as e0,bc as e1,Cc as e2,xc as e3,wc as e4,Tc as e5,Oc as e6,Sc as e7,fc as e8,yc as e9,td as eA,Eo as eB,io as eC,ao as eD,$o as eE,vo as eF,yo as eG,cd as eH,Qr as eI,Jr as eJ,Yr as eK,Er as eL,Po as eM,Hn as eN,tp as eO,xp as eP,op as eQ,ni as eR,_s as eS,Aa as eT,Oa as eU,Na as eV,Ia as eW,tl as eX,Xs as eY,Ws as eZ,Gs as e_,sc as ea,hc as eb,gc as ec,mc as ed,cc as ee,uc as ef,dc as eg,Zl as eh,ec as ei,tc as ej,nc as ek,rc as el,oc as em,ic as en,ac as eo,lc as ep,pc as eq,Io as er,ti as es,Ng as et,Yc as eu,Zr as ev,Cr as ew,ra as ex,Td as ey,Gc as ez,gr as f,tr as f$,Hs as f0,Js as f1,qs as f2,Ys as f3,Ks as f4,xd as f5,_n as f6,dn as f7,An as f8,Nn as f9,Bi as fA,eo as fB,no as fC,lo as fD,Vr as fE,go as fF,Or as fG,wo as fH,To as fI,Oo as fJ,No as fK,_o as fL,vi as fM,wi as fN,Ti as fO,Oi as fP,Di as fQ,ki as fR,Mi as fS,Hi as fT,ji as fU,Wi as fV,Xi as fW,Vi as fX,Kr as fY,Ki as fZ,Yi as f_,Dn as fa,bn as fb,vn as fc,On as fd,un as fe,Zn as ff,gn as fg,cn as fh,Ln as fi,Cn as fj,Gn as fk,Wn as fl,jn as fm,Rn as fn,Qn as fo,qn as fp,Vn as fq,mn as fr,ln as fs,In as ft,Yo as fu,Ko as fv,Qo as fw,jr as fx,Ir as fy,Gr as fz,hr as g,sa as g0,As as g1,pl as g2,cl as g3,al as g4,ys as g5,bs as g6,La as g7,ka as g8,ia as g9,ci as gA,gg as gB,li as gC,Gh as gD,Ju as gE,di as gF,ui as gG,pi as gH,Rp as gI,sh as gJ,Zp as gK,si as gL,fr as gM,zc as ga,ir as gb,ar as gc,la as gd,Bc as ge,Ed as gf,sd as gg,ld as gh,gd as gi,fd as gj,bd as gk,Sd as gl,wd as gm,Nd as gn,qd as go,iu as gp,Zd as gq,Jd as gr,hp as gs,gp as gt,Ou as gu,nm as gv,Ih as gw,mp as gx,Dh as gy,Lh as gz,oi as h,jd as i,Hd as j,$u as k,Tr as l,wr as m,xn as n,ih as o,th as p,eh as q,im as r,Nh as s,nn as t,tm as u,Dr as v,Uh as w,lp as x,wn as y,Yu as z};
|