@odigos/ui-kit 0.0.291 → 0.0.292
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 +13 -0
- package/lib/chunks/{helpers-eTR126Dv.js → helpers-BGOJ3YRA.js} +1 -1
- package/lib/chunks/index-BIET8cd3.js +338 -0
- package/lib/chunks/{source-instrument-form-context-opFCr-VF.js → source-instrument-form-context-BmNrVjHW.js} +1 -1
- package/lib/chunks/{ui-components-Bvz84w4Q.js → ui-components-DLJJffgA.js} +411 -301
- package/lib/components/charts/bar-chart/index.d.ts +14 -0
- package/lib/components/charts/index.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/insights/findings/drawer/helpers.d.ts +3 -9
- package/lib/containers/insights/findings/helpers.d.ts +17 -0
- package/lib/containers/insights/insights-context.d.ts +0 -20
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/index.d.ts +8 -0
- package/lib/containers/insights/transactions/drawer/observations/data-drawer/index.d.ts +8 -0
- package/lib/containers.js +525 -537
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/index.d.ts +0 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/insights/index.d.ts +2 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-CWNa5Q-H.js +0 -351
- package/lib/snippets/code-modal/index.d.ts +0 -9
- package/lib/snippets/trace-modal/index.d.ts +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as r,useTheme as a,keyframes as o,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,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 w,SwiftLogo as $,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as A,NodejsLogo as N,GoLogo as k,JavaLogo as I,PyroscopeLogo as D,AwsXrayLogo as _,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as W,QuickwitLogo as X,GigapipeLogo as G,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 ie,LumigoLogo as re,LokiLogo as ae,LogzioLogo as oe,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,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 we,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ae,BonreeLogo as Ne,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as De,AxiomLogo as _e,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as nt,ExclamationCircleIcon as it,ISquareIcon as rt,AwsLogo as at,AwsSecretsManagerLogo as ot,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as yt,OpenTelemetryLogoStripped as bt,CodeIcon as vt,VIcon as wt,CopyIcon as $t,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as At,ArrowIcon as Nt,ListIcon as kt,XIcon as It,PlusIcon as Dt,TrashIcon as _t,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as jt,useEffect as Ht,useCallback as Wt,useMemo as Xt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as en}from"prism-react-renderer";import{persist as tn,createJSONStorage as nn}from"zustand/middleware";import{ErrorBoundary as rn}from"react-error-boundary";import{VList as an}from"virtua";const on=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 sn,ln,dn,cn,un,pn,hn,gn,mn,fn,yn,bn,vn,wn,$n,Sn,xn,Cn,En,Tn,On,An,Nn,kn,In,Dn,_n,Rn,Ln,Pn,Un,Mn,Fn,zn,Bn,jn,Hn,Wn,Xn,Gn,Vn,Kn,Yn,Jn;(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"})(sn||(sn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ln||(ln={})),(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.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(dn||(dn={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(cn||(cn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(un||(un={})),(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"})(pn||(pn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(hn||(hn={})),(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"})(gn||(gn={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(mn||(mn={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(fn||(fn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(yn||(yn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(bn||(bn={})),(e=>{e.Community="community",e.Onprem="onprem"})(vn||(vn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(wn||(wn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})($n||($n={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(Sn||(Sn={})),(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"})(xn||(xn={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Cn||(Cn={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(En||(En={})),(e=>{e.DataStream="DataStream"})(Tn||(Tn={})),(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"})(On||(On={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(An||(An={})),(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"})(Nn||(Nn={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(kn||(kn={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(In||(In={})),(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"})(Dn||(Dn={})),(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"})(_n||(_n={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Rn||(Rn={})),(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"})(Ln||(Ln={})),(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.OdigosProfileDiagnostic="odigos_profile_diagnostic",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"})(Pn||(Pn={})),(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"})(Un||(Un={})),(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"})(Mn||(Mn={})),(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"})(Fn||(Fn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(zn||(zn={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Bn||(Bn={})),(e=>{e.HeaderKeys="headerKeys"})(jn||(jn={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hn||(Hn={}));class qn{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 Qn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,i){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=i||""}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 Zn{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"})(Wn||(Wn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Xn||(Xn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Gn||(Gn={})),(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"})(Vn||(Vn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Kn||(Kn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Yn||(Yn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Jn||(Jn={}));const ei={[Yn.Logs]:Jn.Logs,[Yn.Metrics]:Jn.Metrics,[Yn.Traces]:Jn.Traces,[Yn.Profiles]:Jn.Profiles},ti={[Jn.Logs]:Yn.Logs,[Jn.Metrics]:Yn.Metrics,[Jn.Traces]:Yn.Traces,[Jn.Profiles]:Yn.Profiles};var ni,ii,ri,ai,oi,si,li,di,ci,ui,pi,hi,gi,mi,fi,yi,bi,vi,wi,$i,Si,xi,Ci,Ei;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(ni||(ni={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(ii||(ii={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(ri||(ri={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(ai||(ai={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(oi||(oi={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(si||(si={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(li||(li={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(di||(di={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ci||(ci={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(ui||(ui={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pi||(pi={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hi||(hi={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gi||(gi={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mi||(mi={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fi||(fi={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(yi||(yi={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bi||(bi={})),(e=>{e.Us="us",e.Bytes="bytes"})(vi||(vi={})),(e=>{e.Structural="structural",e.Metric="metric"})(wi||(wi={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($i||($i={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(Si||(Si={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(xi||(xi={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(Ci||(Ci={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Ei||(Ei={}));const Ti={[ln.Enrichment]:{TITLE:"Enrichment",ICON:c},[ln.Normalization]:{TITLE:"Normalization",ICON:d},[ln.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Oi={[sn.AddClusterInfo]:ln.Enrichment,[sn.K8sAttributes]:ln.Enrichment,[sn.ExtractAttribute]:ln.Enrichment,[sn.InferDbAttributes]:ln.Enrichment,[sn.DbQueryTemplatization]:ln.Normalization,[sn.URLTemplatization]:ln.Normalization,[sn.RenameAttributes]:ln.Normalization,[sn.PiiMasking]:ln.Privacy,[sn.DeleteAttributes]:ln.Privacy},Ai=e=>{const t=Oi[e];return t?Ti[t].ICON:u},Ni=[{type:sn.K8sAttributes,icon:Ai(sn.K8sAttributes),category:Oi[sn.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:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[wn.K8s]},{type:sn.AddClusterInfo,icon:Ai(sn.AddClusterInfo),category:Oi[sn.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:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[wn.K8s]},{type:sn.DeleteAttributes,icon:Ai(sn.DeleteAttributes),category:Oi[sn.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:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[wn.K8s]},{type:sn.RenameAttributes,icon:Ai(sn.RenameAttributes),category:Oi[sn.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:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[wn.K8s]},{type:sn.PiiMasking,icon:Ai(sn.PiiMasking),category:Oi[sn.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:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[wn.K8s]},{type:sn.URLTemplatization,icon:Ai(sn.URLTemplatization),category:Oi[sn.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes 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:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[wn.K8s]:on("v1.21.0")},supportedPlatforms:[wn.K8s,wn.Vm]},{type:sn.ExtractAttribute,icon:Ai(sn.ExtractAttribute),category:Oi[sn.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:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[wn.K8s]:on("v1.29.0")},supportedPlatforms:[wn.K8s]}],ki=on("v1.26"),Ii=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Di=(e,t,n)=>{const i=e.minVersion?.[t];return!i||on(n)>=i},_i=(e,t)=>Ni.filter(n=>Ii(n,e)&&Di(n,e,t)).map(n=>((e,t,n)=>t!==wn.K8s||on(n)>=ki?e:e.allowedSignals?.includes(Yn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Yn.Profiles)}:e)(n,e,t)),Ri=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Ai(e.type),category:e.category||Oi[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Li="Coming soon",Pi="We are working on this feature and it will be available soon.";var Ui;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Ui||(Ui={}));const Mi={[Ui.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Ui.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Ui.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Ui.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Ui.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Ui.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Fi="Save Changes",zi="Discard changes",Bi="Default Policy",ji="Overrides",Hi="No default policy yet",Wi="No overrides yet",Xi="Choose override scope",Gi="Global",Vi="Choose Override type",Ki="Select Service",Yi="Select Transaction",Ji="Service",qi="Transaction",Qi="Select service…",Zi="Select transaction…",er="Anomaly Detection Policies",tr="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",nr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",rr="Create override policy",ar="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",sr="Name",lr="Trigger when risk level is",dr="Customize signal weights (advanced)",cr="Base weight",ur="Risk points",pr="Dangerous sub-cases - added on top of the base when detected:",hr="Every detected signal adds its weight (points) to a 0–100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.",gr="Low",mr="Medium",fr="High",yr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,vr="Guardrails",wr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",Sr="No guardrails yet",xr="Create a guardrail to declare allowed service communication.",Cr="Inspect a service",Er="Edit guardrail",Tr="Namespace",Or="Service",Ar="Callers",Nr="Who may call this service (inbound) — any seen service",kr="Additional callers",Ir="Add any service name not yet seen",Dr="No other services seen",_r="Insights has not seen any other services to allow as callers",Rr="Callees",Lr="Internal services it may call (outbound) — any seen service",Pr="Additional callees",Ur="Add any service name not yet seen",Mr="No other services seen",Fr="Insights has not seen any other services to allow as callees",zr="checkout-service",Br="Egress",jr="Observed external destinations it may reach",Hr="Additional egress hosts",Wr="Add any host or host:port not yet observed",Xr="api.example.com:443",Gr="No egress detected",Vr="No egress found for this selection",Kr="Transactions",Yr="Operations this service may expose",Jr="No Transactions detected",qr="No transactions found for this selection",Qr="Adopt as enforce",Zr="Alert on violation",ea="Adopt as suggest",ta="Observe only",na="Select a guardrail",ia="Create guardrail",ra="Delete guardrail",aa="Enforce",oa="Suggest",sa="auto",la="allowed_callers",da="allowed_callees",ca="allowed_egress",ua="allowed_transactions",pa="auto_transaction_guardrail",ha="Learning Policies",ga="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",ma="Add a default policy to set the global learning settings.",fa="Add overrides to adjust learning for specific services.",ya="Add override policy",ba="Add override",va="Add selection",wa="Add condition",$a="Delete override",Sa="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xa="Select a policy",Ca="Combine",Ea="Currently:",Ta="Promotes when",Oa="Min matches",Aa="A policy with no conditions falls back to the count-only default.",Na="Select Deviation class",ka="Select deviation class…",Ia="Any",Da="All",_a="K of",Ra="Any (OR)",La="All (AND)",Pa="K of N",Ua="Stable for N observations",Ma="Stable for a duration",Fa="Min observations",za="Min duration",Ba="Minutes",ja="Hours",Ha="Days",Wa={[ri.D1_call_edges]:"D1 call edges",[ri.D2_egress]:"D2 egress",[ri.D3_latency]:"D3 latency",[ri.D4_args_returns]:"D4 args/returns",[ri.D5_libraries]:"D5 libraries",[ri.D6_attr_relations]:"D6 attr relations",[ri.D7_db_access]:"D7 db access",[ri.D8_payload_size]:"D8 payload size"},Xa={[gi.Any]:"Any",[gi.All]:"All",[gi.KOf]:_a},Ga=[{id:gi.Any,label:Ra},{id:gi.All,label:La},{id:gi.KOf,label:Pa}],Va=[{id:fi.StableObservations,label:Ua},{id:fi.StableDuration,label:Ma},{id:fi.MinObservations,label:Fa},{id:fi.MinDuration,label:za}],Ka=e=>e===fi.StableDuration||e===fi.MinDuration,Ya=e=>e===fi.StableObservations||e===fi.MinObservations,Ja="Learning examples",qa="Retention",Qa="Memory limits",Za="Database writeback",eo="Transaction guardrails",to="Transaction identity dimensions",no="Maximum example traces",io="Maximum number of example traces collected per transaction.",ro="traces",ao="Minimum sampling interval",oo="Minimum time between collected examples.",so="seconds",lo="Sample trace retention",co="Stored sample traces are deleted after this period.",uo="days",po="Default: 120 · Maximum: 120",ho="Maximum transactions in memory",go="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",mo="transactions",fo="Maximum members per baseline",yo="Limits the size of an individual baseline set, such as unique call edges or paths.",bo="members",vo="Flush interval",wo="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$o="Default: 15 · Maximum: 300",So="Auto-enable transaction guardrail when a service is promoted",xo="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",Co="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows. Good: http.response.status_code, rpc.grpc.status_code. Bad: user.id, URLs, request ids. Values come from the entry span only.",Eo="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",To="No dimensions configured — transactions use the entry span name only.",Oo="Add dimension",Ao="e.g. http.response.status_code",No="On",ko="Identity dimensions changed",Io="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Do="Reset all transactions",_o="Keep existing transactions",Ro="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Lo="Save settings",Po="System settings are not available.",Uo=5,Mo=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Fo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var zo,Bo,jo;(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"})(zo||(zo={})),(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"})(Bo||(Bo={})),(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"})(jo||(jo={}));const Ho=new Set(Object.values(jo)),Wo=(e,t)=>{if("string"!=typeof(n=t)||!Ho.has(n))return t;var n;switch(t){case jo.Primary:return e.v2.colors.white[500];case jo.Secondary:return e.v2.colors.silver[200];case jo.Tertiary:return e.v2.colors.black[500];case jo.Disable:return e.v2.colors.grey[400];case jo.Error:return e.v2.colors.red[500];case jo.Mandatory:return e.v2.colors.red[600];case jo.Link:return e.v2.colors.purple[400];case jo.Success:return e.v2.colors.green[400];default:return}},Xo=i.p`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as r,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,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 w,SwiftLogo as $,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as A,NodejsLogo as N,GoLogo as k,JavaLogo as I,PyroscopeLogo as D,AwsXrayLogo as _,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as X,QuickwitLogo as W,GigapipeLogo as G,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 ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,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 we,DatadogLogo as $e,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ae,BonreeLogo as Ne,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as De,AxiomLogo as _e,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as Xe,HeadersCollectionIcon as We,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as yt,OpenTelemetryLogoStripped as bt,CodeIcon as vt,VIcon as wt,CopyIcon as $t,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as At,ArrowIcon as Nt,ListIcon as kt,XIcon as It,PlusIcon as Dt,TrashIcon as _t,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as jt,useEffect as Ht,useCallback as Xt,useMemo as Wt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as ei}from"prism-react-renderer";import{persist as ti,createJSONStorage as ii}from"zustand/middleware";import{ErrorBoundary as ni}from"react-error-boundary";import{VList as ri}from"virtua";const oi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var ai,si,li,di,ci,ui,pi,hi,gi,mi,fi,yi,bi,vi,wi,$i,Si,xi,Ci,Ei,Ti,Oi,Ai,Ni,ki,Ii,Di,_i,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Xi,Wi,Gi,Vi,Ki,Yi;(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"})(ai||(ai={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(si||(si={})),(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.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(li||(li={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(di||(di={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ci||(ci={})),(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"})(ui||(ui={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pi||(pi={})),(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"})(hi||(hi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gi||(gi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mi||(mi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fi||(fi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(yi||(yi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vi||(vi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(wi||(wi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(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"})(Si||(Si={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xi||(xi={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ci||(Ci={})),(e=>{e.DataStream="DataStream"})(Ei||(Ei={})),(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"})(Ti||(Ti={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Oi||(Oi={})),(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"})(Ai||(Ai={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(ki||(ki={})),(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"})(Ii||(Ii={})),(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"})(Di||(Di={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_i||(_i={})),(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"})(Ri||(Ri={})),(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.OdigosProfileDiagnostic="odigos_profile_diagnostic",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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(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"})(Mi||(Mi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fi||(Fi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zi||(zi={})),(e=>{e.HeaderKeys="headerKeys"})(Bi||(Bi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(ji||(ji={}));class Ji{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 qi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class Qi{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"})(Hi||(Hi={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Xi||(Xi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wi||(Wi={})),(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"})(Gi||(Gi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vi||(Vi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Ki||(Ki={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yi||(Yi={}));const Zi={[Ki.Logs]:Yi.Logs,[Ki.Metrics]:Yi.Metrics,[Ki.Traces]:Yi.Traces,[Ki.Profiles]:Yi.Profiles},en={[Yi.Logs]:Ki.Logs,[Yi.Metrics]:Ki.Metrics,[Yi.Traces]:Ki.Traces,[Yi.Profiles]:Ki.Profiles};var tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,yn,bn,vn,wn,$n,Sn,xn,Cn,En;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(nn||(nn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(rn||(rn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(yn||(yn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(vn||(vn={})),(e=>{e.Structural="structural",e.Metric="metric"})(wn||(wn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(Sn||(Sn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(xn||(xn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(Cn||(Cn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(En||(En={}));const Tn={[si.Enrichment]:{TITLE:"Enrichment",ICON:c},[si.Normalization]:{TITLE:"Normalization",ICON:d},[si.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},On={[ai.AddClusterInfo]:si.Enrichment,[ai.K8sAttributes]:si.Enrichment,[ai.ExtractAttribute]:si.Enrichment,[ai.InferDbAttributes]:si.Enrichment,[ai.DbQueryTemplatization]:si.Normalization,[ai.URLTemplatization]:si.Normalization,[ai.RenameAttributes]:si.Normalization,[ai.PiiMasking]:si.Privacy,[ai.DeleteAttributes]:si.Privacy},An=e=>{const t=On[e];return t?Tn[t].ICON:u},Nn=[{type:ai.K8sAttributes,icon:An(ai.K8sAttributes),category:On[ai.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:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vi.K8s]},{type:ai.AddClusterInfo,icon:An(ai.AddClusterInfo),category:On[ai.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:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vi.K8s]},{type:ai.DeleteAttributes,icon:An(ai.DeleteAttributes),category:On[ai.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:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vi.K8s]},{type:ai.RenameAttributes,icon:An(ai.RenameAttributes),category:On[ai.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:[Ki.Traces,Ki.Metrics,Ki.Logs,Ki.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vi.K8s]},{type:ai.PiiMasking,icon:An(ai.PiiMasking),category:On[ai.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:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vi.K8s]},{type:ai.URLTemplatization,icon:An(ai.URLTemplatization),category:On[ai.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Templatizes 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:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vi.K8s]:oi("v1.21.0")},supportedPlatforms:[vi.K8s,vi.Vm]},{type:ai.ExtractAttribute,icon:An(ai.ExtractAttribute),category:On[ai.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:[Ki.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vi.K8s]:oi("v1.29.0")},supportedPlatforms:[vi.K8s]}],kn=oi("v1.26"),In=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Dn=(e,t,i)=>{const n=e.minVersion?.[t];return!n||oi(i)>=n},_n=(e,t)=>Nn.filter(i=>In(i,e)&&Dn(i,e,t)).map(i=>((e,t,i)=>t!==vi.K8s||oi(i)>=kn?e:e.allowedSignals?.includes(Ki.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Ki.Profiles)}:e)(i,e,t)),Rn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:An(e.type),category:e.category||On[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Ln="Coming soon",Pn="We are working on this feature and it will be available soon.";var Un;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Un||(Un={}));const Mn={[Un.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Un.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Un.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Un.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Un.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Un.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Fn="Save Changes",zn="Discard changes",Bn="Default Policy",jn="Overrides",Hn="No default policy yet",Xn="No overrides yet",Wn="Choose override scope",Gn="Global",Vn="Choose Override type",Kn="Select Service",Yn="Select Transaction",Jn="Service",qn="Transaction",Qn="Select service…",Zn="Select transaction…",er="Anomaly Detection Policies",tr="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",ir="Add a default policy to set the global detection settings.",nr="Add overrides to adjust detection sensitivity for specific services.",rr="Create override policy",or="Delete policy",ar="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",sr="Name",lr="Trigger when risk level is",dr="Customize signal weights (advanced)",cr="Base weight",ur="Risk points",pr="Dangerous sub-cases - added on top of the base when detected:",hr="Every detected signal adds its weight (points) to a 0–100 risk score; the policy fires when the total reaches the threshold above. Sub-cases add on top of the base. Set any weight to 0 to mute that signal for this scope.",gr="Low",mr="Medium",fr="High",yr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,vr="Guardrails",wr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",Sr="No guardrails yet",xr="Create a guardrail to declare allowed service communication.",Cr="Inspect a service",Er="Edit guardrail",Tr="Namespace",Or="Service",Ar="Callers",Nr="Who may call this service (inbound) — any seen service",kr="Additional callers",Ir="Add any service name not yet seen",Dr="No other services seen",_r="Insights has not seen any other services to allow as callers",Rr="Callees",Lr="Internal services it may call (outbound) — any seen service",Pr="Additional callees",Ur="Add any service name not yet seen",Mr="No other services seen",Fr="Insights has not seen any other services to allow as callees",zr="checkout-service",Br="Egress",jr="Observed external destinations it may reach",Hr="Additional egress hosts",Xr="Add any host or host:port not yet observed",Wr="api.example.com:443",Gr="No egress detected",Vr="No egress found for this selection",Kr="Transactions",Yr="Operations this service may expose",Jr="No Transactions detected",qr="No transactions found for this selection",Qr="Adopt as enforce",Zr="Alert on violation",eo="Adopt as suggest",to="Observe only",io="Select a guardrail",no="Create guardrail",ro="Delete guardrail",oo="Enforce",ao="Suggest",so="auto",lo="allowed_callers",co="allowed_callees",uo="allowed_egress",po="allowed_transactions",ho="auto_transaction_guardrail",go="Learning Policies",mo="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",fo="Add a default policy to set the global learning settings.",yo="Add overrides to adjust learning for specific services.",bo="Add override policy",vo="Add override",wo="Add selection",$o="Add condition",So="Delete override",xo="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",Co="Select a policy",Eo="Combine",To="Currently:",Oo="Promotes when",Ao="Min matches",No="A policy with no conditions falls back to the count-only default.",ko="Select Deviation class",Io="Select deviation class…",Do="Any",_o="All",Ro="K of",Lo="Any (OR)",Po="All (AND)",Uo="K of N",Mo="Stable for N observations",Fo="Stable for a duration",zo="Min observations",Bo="Min duration",jo="Minutes",Ho="Hours",Xo="Days",Wo={[rn.D1_call_edges]:"D1 call edges",[rn.D2_egress]:"D2 egress",[rn.D3_latency]:"D3 latency",[rn.D4_args_returns]:"D4 args/returns",[rn.D5_libraries]:"D5 libraries",[rn.D6_attr_relations]:"D6 attr relations",[rn.D7_db_access]:"D7 db access",[rn.D8_payload_size]:"D8 payload size"},Go={[gn.Any]:"Any",[gn.All]:"All",[gn.KOf]:Ro},Vo=[{id:gn.Any,label:Lo},{id:gn.All,label:Po},{id:gn.KOf,label:Uo}],Ko=[{id:fn.StableObservations,label:Mo},{id:fn.StableDuration,label:Fo},{id:fn.MinObservations,label:zo},{id:fn.MinDuration,label:Bo}],Yo=e=>e===fn.StableDuration||e===fn.MinDuration,Jo=e=>e===fn.StableObservations||e===fn.MinObservations,qo="Learning examples",Qo="Retention",Zo="Memory limits",ea="Database writeback",ta="Transaction guardrails",ia="Transaction identity dimensions",na="Maximum example traces",ra="Maximum number of example traces collected per transaction.",oa="traces",aa="Minimum sampling interval",sa="Minimum time between collected examples.",la="seconds",da="Sample trace retention",ca="Stored sample traces are deleted after this period.",ua="days",pa="Default: 120 · Maximum: 120",ha="Maximum transactions in memory",ga="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ma="transactions",fa="Maximum members per baseline",ya="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",va="Flush interval",wa="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",Sa="Auto-enable transaction guardrail when a service is promoted",xa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",Ca="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows. Good: http.response.status_code, rpc.grpc.status_code. Bad: user.id, URLs, request ids. Values come from the entry span only.",Ea="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Ta="No dimensions configured — transactions use the entry span name only.",Oa="Add dimension",Aa="e.g. http.response.status_code",Na="On",ka="Identity dimensions changed",Ia="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Da="Reset all transactions",_a="Keep existing transactions",Ra="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",La="Save settings",Pa="System settings are not available.",Ua=5,Ma=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Fa=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var za,Ba,ja;(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"})(za||(za={})),(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"})(Ba||(Ba={})),(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"})(ja||(ja={}));const Ha=new Set(Object.values(ja)),Xa=(e,t)=>{if("string"!=typeof(i=t)||!Ha.has(i))return t;var i;switch(t){case ja.Primary:return e.v2.colors.white[500];case ja.Secondary:return e.v2.colors.silver[200];case ja.Tertiary:return e.v2.colors.black[500];case ja.Disable:return e.v2.colors.grey[400];case ja.Error:return e.v2.colors.red[500];case ja.Mandatory:return e.v2.colors.red[600];case ja.Link:return e.v2.colors.purple[400];case ja.Success:return e.v2.colors.green[400];default:return}},Wa=n.p`
|
|
2
2
|
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>
|
|
3
|
+
color: ${({$color:e,theme:t})=>Xa(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
5
|
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
6
|
font-weight: ${({$weight:e})=>e};
|
|
7
7
|
text-align: ${({$align:e})=>e};
|
|
8
8
|
text-transform: ${({$transform:e})=>e};
|
|
9
|
-
line-height: ${({theme:e,$lineHeight:t,$size:
|
|
9
|
+
line-height: ${({theme:e,$lineHeight:t,$size:i})=>t||`${e.v2.text.size[i]+2}px`};
|
|
10
10
|
opacity: ${({$opacity:e})=>e};
|
|
11
11
|
|
|
12
12
|
${({$nowrap:e})=>e?r`
|
|
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,Go=zt(({children:n,variant:i=zo.P,color:r,size:a=Bo.S,weight:o=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof n?n.split("\n").map((n,i,r)=>e(Bt,{children:[n,i!==r.length-1&&t("br",{})]},`typography-${i}-${n}`)):n;return t(Xo,{ref:y,as:i,$color:r,$size:a,$weight:o,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});Go.displayName="Typography";const Vo="https://docs.odigos.io",Ko="default",Yo="this-cluster",Jo="This Cluster",qo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Qo={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."},Zo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",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:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",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_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",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",ADD_SOURCES:"Add Sources",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"},es={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"},ts=(e,t)=>e===Nn.Success?Zo.HEALTHY:e===Nn.Error?Zo.NOT_HEALTHY:Fo(t),ns=e=>{if(!e)return null;switch(e){case Fn.Irrelevant:return null;case Fn.Failure:case Fn.Error:return Nn.Error;case Fn.Notice:return Nn.Warning;case Fn.Pending:case Fn.Waiting:return Nn.Loading;case Fn.Unsupported:case Fn.Disabled:return Nn.Disabled;case Fn.Success:return Nn.Success;case Fn.Unknown:default:return Nn.Info}},is=(e,t,n="reason",i)=>{const r=ns(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Nn.Success?p:h),label:i||("reason"===n?Fo(e?.reasonEnum):ts(r,e?.reasonEnum)),tooltip:e?.message,textSize:Bo.XXXS,invertColors:!0,useSecondaryTone:!0}:null},rs=e=>e.charAt(0).toUpperCase()+e.slice(1);var as;(e=>{e.SIGNALS="SIGNALS"})(as||(as={}));const os=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[i,r,a]=e;if(i===as.SIGNALS)switch(r){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const o=n.find(e=>e.name===i||e.key===i);if(!o)return!1;const s=null==o.value?"":String(o.value);switch(r){case"===":case"==":return s===a;case"!==":case"!=":return s!==a;case">":return Number(s)>Number(a);case"<":return Number(s)<Number(a);case">=":return Number(s)>=Number(a);case"<=":return Number(s)<=Number(a);default:return!0}};function ss(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ls=e=>({status:e?Nn.Success:Nn.Unknown,label:e?"True":"False",invertColors:!0}),ds=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),cs=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)},us=e=>"string"==typeof e?{id:e,label:e}:e??{},ps=(e,t)=>e.label||e.displayName||t,hs=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const i=e.options?.find(e=>String(e.id??"")===n);return i?ps(i,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),i=e.options?.find(e=>String(e.id??"")===n);return i?ps(i,n):cs(t)},gs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=ds(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}},ms=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(...ms(e.segments))):t.push(...e.items)}),t},fs=(e,t,n={})=>{const i=[],r=n.signals||[],a=new Set(n.skipComponentTypes||[]),o=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(i.push({kind:"cells",id:`cells-${i.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||a.has(t.componentType))return;if(t.renderCondition?.length&&!os(t.renderCondition,r,o))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ss(t.componentProperties,{});switch(t.componentType){case On.Toggle:case On.Checkbox:return void s.push({id:u,title:c,badge:ls(!!p)});case On.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(us).find(t=>String(t.id??"")===e);return n?ps(n,e):e});return l(),void i.push({kind:"list",id:u,title:c,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 i=us(t),r=String(i.id??"");r&&s.push({id:`${u}-${n}-${r}`,title:ps(i,r),badge:ls(!0===e[r])})});const n=ds(p)?p:{},r=Array.isArray(h.options)?h.options:[];let a=[];return a=r.length?r.map(e=>{const t=us(e),i=String(t.id??"");return i&&n[i]?ps(t,i):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void i.push({kind:"list",id:u,title:c,items:a.length?a.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case On.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&ds(p)?p[e]:p,r=Array.isArray(n)&&n.length?n.map(e=>t&&ds(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void i.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case On.KeyValuePair:return l(),ds(p)&&Object.keys(p).length?void i.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void i.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const n=ds(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void i.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case On.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ds(p)?p[e]:p)?e&&ds(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,i=Array.isArray(n)?n.map(us):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:i,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,r)=>{const a=t.length>1?`${c} #${r+1}`:c,o=[],s=ds(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,i,r]=t,a=null==e?.[n]?"":String(e[n]);switch(i){case"=":case"==":case"===":return a===r;case"!=":case"!==":return a!==r;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&&o.push({id:`${u}-${r}-${e.keyName}`,title:e.label||rs(Fo(e.keyName))||e.keyName,label:hs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&o.push({id:`${u}-${r}-${e}`,title:e,label:cs(t)})}),i.push({kind:"group",id:`${u}-${r}`,title:a,items:o.length?o:[{id:`${u}-${r}-empty`,label:"-"}]})}):void i.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case On.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(gs).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((a,o)=>{const s=e.length>1?`${r} ${o+1}`:r,l=ds(a)?a:{},d=t.length?fs(l,t,n):[{kind:"cells",id:`${u}-${o}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${o}-${n}-${e}`,title:e,label:cs(t)}))}];i.push({kind:"group",id:`${u}-${o}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${o}-empty`,label:"-"}]})}):void i.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:cs(p)})}var g}),l(),i},ys=(e,t,n={})=>ms(fs(e,t,n)),bs=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,i])=>Array.isArray(i)?[e,t(i)]:"object"==typeof i&&null!==i?[e,n(i)]:[e,i]));return Object.entries(e).reduce((e,[i,r])=>{try{const a=JSON.parse(r);Array.isArray(a)?e[i]=JSON.stringify(t(a)):e[i]="object"==typeof a&&null!==a?JSON.stringify(n(a)):r}catch(a){"object"==typeof r&&null!==r?Array.isArray(r)?e[i]=JSON.stringify(t(r)):e[i]=JSON.stringify(n(r)):e[i]=r}return e},{})},vs=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),$s=(e,t,n)=>{const i=t.split(".");let r=e;for(let e=0;e<i.length-1;e++)i[e]in r&&"object"==typeof r[i[e]]||(r[i[e]]={}),r=r[i[e]];r[i[i.length-1]]=n},Ss=(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},xs=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Cs=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Es=(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=>ns(e.workloadOdigosHealthStatus?.status)===Nn.Error)),n},Ts=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ko&&!e.dataStreamNames?.length):[],Os=(e,t="",n={})=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i],a=t?`${t}.${i}`:i;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const i=`${a}[${t}]`;null!==e&&"object"==typeof e?Os(e,i,n):n[i]=e}):n[a]=r:Os(r,a,n)}return n},As=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]}`},Ns=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`}},ks=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const i=e[t%16];return t++,("1"===n?i:"0"===n?63&i|128:15&i|64).toString(16)})},Is=e=>e?e.reduce((e,t)=>{if(null!=t){const n=ns(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ds=e=>Array.isArray(e?.statuses)?Is(e.statuses):e?.conditions??[],_s=e=>e?Array.isArray(e)?Rs(e):Rs(Is(Object.values(e))):Rs([]),Rs=e=>{const t=e?.filter(({status:e})=>e===Nn.Error),n=e?.filter(({status:e})=>e===Nn.Warning),i=e?.filter(({status:e})=>e===Nn.Disabled),r=e?.filter(({status:e})=>e===Nn.Loading),a=t.length>0,o=n.length>0,s=i.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:o,disableds:i,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:a?Nn.Error:o?Nn.Warning:s?Nn.Info:void 0}},Ls=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ps=e=>({[xn.Java]:I,[xn.Go]:k,[xn.JavaScript]:N,[xn.Python]:A,[xn.DotNet]:O,[xn.CSharp]:T,[xn.CPlusPlus]:E,[xn.Php]:C,[xn.Ruby]:x,[xn.Rust]:S,[xn.Swift]:$,[xn.Elixir]:w,[xn.MySql]:v,[xn.Nginx]:b,[xn.Postgres]:y,[xn.Redis]:f,[xn.Kafka]:m,[xn.Ignored]:g,[xn.Unknown]:g,[xn.Processing]:g,[xn.NoContainers]:g,[xn.NoRunningPods]:g}[e]||g),Us=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xn.Unknown:xn.Unknown,Ms=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Fs=e=>e?.map(e=>Ps(Us(e)))||[],zs=e=>e?.map(e=>Ps(e))||[],Bs=e=>e.runtimeInfo?.detectedLanguages?.length?zs(e.runtimeInfo?.detectedLanguages):Fs(e.containers),js=(e,t)=>{const n={[Pn.Alauda]:Pe,[Pn.AlibabaCloud]:Le,[Pn.AppDynamics]:Re,[Pn.Axiom]:_e,[Pn.AzureBlob]:De,[Pn.AzureMonitor]:Ie,[Pn.BetterStack]:ke,[Pn.Bonree]:Ne,[Pn.Causely]:Ae,[Pn.Checkly]:Oe,[Pn.Chronosphere]:Te,[Pn.ClickHouse]:Ee,[Pn.CloudWatch]:Ce,[Pn.Coralogix]:xe,[Pn.Dash0]:Se,[Pn.Datadog]:$e,[Pn.Dynamic]:Y,[Pn.Dynatrace]:we,[Pn.ElasticApm]:ve,[Pn.ElasticSearch]:be,[Pn.GoogleCloud]:ye,[Pn.GoogleCloudOTLP]:ye,[Pn.GrafanaCloudLoki]:fe,[Pn.GrafanaCloudPrometheus]:fe,[Pn.GrafanaCloudTempo]:fe,[Pn.Greptime]:me,[Pn.Groundcover]:ge,[Pn.Honeycomb]:he,[Pn.HyperDX]:pe,[Pn.Instana]:ue,[Pn.Jaeger]:ce,[Pn.Kafka]:m,[Pn.Kloudmate]:de,[Pn.Last9]:le,[Pn.Lightstep]:se,[Pn.LogzIo]:oe,[Pn.Loki]:ae,[Pn.Lumigo]:re,[Pn.Middleware]:ie,[Pn.NewRelic]:ne,[Pn.Observe]:te,[Pn.Odigos]:ee,[Pn.OdigosProfileDiagnostic]:ee,[Pn.OneUptime]:Z,[Pn.OpenObserve]:Q,[Pn.Opsverse]:q,[Pn.Oracle]:J,[Pn.OTLP]:Y,[Pn.OTLPHttp]:Y,[Pn.Prometheus]:K,[Pn.Qryn]:V,[Pn.QrynOss]:G,[Pn.Quickwit]:X,[Pn.S3]:W,[Pn.Seq]:H,[Pn.Signalfx]:B,[Pn.Signoz]:j,[Pn.Splunk]:B,[Pn.SplunkSapm]:B,[Pn.SplunkOtlp]:B,[Pn.SumoLogic]:z,[Pn.TelemetryHub]:F,[Pn.Tempo]:M,[Pn.Tingyun]:U,[Pn.Traceloop]:P,[Pn.Uptrace]:L,[Pn.VictoriaMetrics]:R,[Pn.VictoriaMetricsCloud]:R,[Pn.XRay]:_,[Pn.Pyroscope]:D}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Hs=e=>({[En.Namespace]:je,[En.Source]:Be,[En.Destination]:ze,[En.Action]:u,[En.InstrumentationRule]:Fe,[En.SamplingRule]:Me,[En.Recommendation]:Ue}[e]),Ws=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Xs=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},Gs=e=>Xs(Ws(e)),Vs=(e,t,n)=>{const{extended:i,prioritizeDisplayName:r}=n||{};let a="",o="";switch(t){case En.InstrumentationRule:const t=e;a=t.type,o=t.ruleName;break;case En.Source:const n=e;a=n.id.name,o=n.serviceName||"";break;case En.Action:const i=e;a=i.type,o=i.name||"";break;case En.Destination:const r=e;a=r.destinationType.displayName,o=r.name;break;case En.Namespace:const s=e;a=s.name,o=s.name}return i?a+(o&&o!==a?` (${o})`:""):r&&o||a},Ks=(e,t)=>{if(t===En.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,i]=e.split("=");t[n]=i}),t}return e},Ys=e=>({[zn.CodeAttributes]:Ve,[zn.CustomInstrumentation]:Ge,[zn.HeadersCollection]:Xe,[zn.PayloadCollection]:We,[zn.NetworkMetrics]:He,[zn.UnknownType]:g}[e]||g),Js=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xn.Unknown,qs=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?xn.Processing:xn.NoRunningPods;const i=n?.filter(e=>Js(e)!==xn.Ignored);if(!i.length)return xn.NoContainers;const r=i.find(e=>Js(e)!==xn.Unknown);return r?Js(r):xn.Unknown},Qs=(e,t,n)=>(t===En.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},Zs=e=>({[Yn.Logs]:Ye,[Yn.Metrics]:He,[Yn.Traces]:Ke,[Yn.Profiles]:ee}[e]),el=(e,t)=>Object.values(Bo).reduce((n,i)=>Math.abs(t[i]-e)<Math.abs(t[n]-e)?i:n),tl=e=>e&&{[wn.K8s]:Ze,[wn.Vm]:Qe,[wn.Connector]:qe,[wn.AwsEcs]:Je}[e]||ee,nl=e=>e?{[wn.K8s]:"Kubernetes Cluster",[wn.Vm]:"Virtual Machine",[wn.Connector]:"Cloud Connector",[wn.AwsEcs]:"AWS ECS"}[e]:"Unknown",il=(e,t,n)=>{const i=e[t];return i?i.flatMap(e=>{const i=e[n],r=[];return void 0!==i&&(Array.isArray(i)?r.push(...i):r.push(i)),r.push(...il(e,t,n)),r}):[]},rl={"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"},al=e=>{if(!e)return"";if(rl[e])return rl[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ol=(e,t)=>{if(t===En.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},sl=(e,t,n)=>{switch(n=n??"500",t){case Nn.Default:return e.v2.colors.purple[n];case Nn.Info:return e.v2.colors.blue[n];case Nn.Error:return e.v2.colors.red[n];case Nn.Warning:return e.v2.colors.yellow[n];case Nn.Success:return e.v2.colors.green[n];case Nn.Loading:case Nn.Disabled:case Nn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},ll=e=>{switch(e){case Xn.Updating:case Gn.Pending:case Vn.ContainerCreating:case Kn.Waiting:return Nn.Info;case Xn.Healthy:case Gn.Succeeded:case Gn.Running:case Vn.Running:case Kn.Running:return Nn.Success;case Xn.Degraded:return Nn.Warning;case Xn.Failed:case Gn.Failed:case Vn.Error:case Vn.CrashLoopBackOff:case Vn.CreateContainerError:case Vn.CreateContainerConfigError:case Vn.ErrImagePull:case Vn.ErrImageNeverPull:case Vn.ImagePullBackOff:case Vn.InvalidImageName:case Vn.RegistryUnavailable:case Vn.NetworkNotReady:case Vn.OOMKilled:case Vn.ContainerCannotRun:case Kn.Terminated:case Vn.DeadlineExceeded:case Vn.StartError:return Nn.Error;case Xn.Down:case Vn.Completed:return Nn.Disabled;case Xn.Unknown:case Gn.Unknown:default:return Nn.Unknown}},dl=i.div`
|
|
41
|
+
`,Ga=zt(({children:i,variant:n=za.P,color:r,size:o=Ba.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof i?i.split("\n").map((i,n,r)=>e(Bt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Wa,{ref:y,as:n,$color:r,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});Ga.displayName="Typography";const Va="https://docs.odigos.io",Ka="default",Ya="this-cluster",Ja="This Cluster",qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Qa={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."},Za={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",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:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",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_CREDENTIALS_SHOW_ADVANCED:"Show advanced fields",CLOUD_CONNECTOR_CREDENTIALS_HIDE_ADVANCED:"Hide advanced fields",INSTRUMENTATION_INSTRUCTIONS_TITLE:"How to instrument this workload",INSTRUMENTATION_INSTRUCTIONS_MANUAL_SUBTITLE:"Odigos does not change this workload. Apply this in your own deployment definition and Odigos will pick it up.",INSTRUMENTATION_INSTRUCTIONS_AUTOMATIC_SUBTITLE:"What Odigos applies to this workload, shown so you can review or reproduce it.",INSTRUMENTATION_INSTRUCTIONS_STEPS_HEADING:"Follow these steps:",INSTRUMENTATION_INSTRUCTIONS_INPUTS_HEADING:"Values you still need to fill in",INSTRUMENTATION_INSTRUCTIONS_NOTES_HEADING:"Before you deploy",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",ADD_SOURCES:"Add Sources",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"},es={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"},ts=(e,t)=>e===Ai.Success?Za.HEALTHY:e===Ai.Error?Za.NOT_HEALTHY:Fa(t),is=e=>{if(!e)return null;switch(e){case Mi.Irrelevant:return null;case Mi.Failure:case Mi.Error:return Ai.Error;case Mi.Notice:return Ai.Warning;case Mi.Pending:case Mi.Waiting:return Ai.Loading;case Mi.Unsupported:case Mi.Disabled:return Ai.Disabled;case Mi.Success:return Ai.Success;case Mi.Unknown:default:return Ai.Info}},ns=(e,t,i="reason",n)=>{const r=is(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Ai.Success?p:h),label:n||("reason"===i?Fa(e?.reasonEnum):ts(r,e?.reasonEnum)),tooltip:e?.message,textSize:Ba.XXXS,invertColors:!0,useSecondaryTone:!0}:null},rs=e=>e.charAt(0).toUpperCase()+e.slice(1);var os;(e=>{e.SIGNALS="SIGNALS"})(os||(os={}));const as=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===os.SIGNALS)switch(r){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function ss(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ls=e=>({status:e?Ai.Success:Ai.Unknown,label:e?"True":"False",invertColors:!0}),ds=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),cs=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)},us=e=>"string"==typeof e?{id:e,label:e}:e??{},ps=(e,t)=>e.label||e.displayName||t,hs=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const i=t.map(t=>{const i=String(t??"");if(!i)return"";const n=e.options?.find(e=>String(e.id??"")===i);return n?ps(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?ps(n,i):cs(t)},gs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ds(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:i?JSON.stringify(i):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},ms=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(...ms(e.segments))):t.push(...e.items)}),t},fs=(e,t,i={})=>{const n=[],r=i.signals||[],o=new Set(i.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!as(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ss(t.componentProperties,{});switch(t.componentType){case Ti.Toggle:case Ti.Checkbox:return void s.push({id:u,title:c,badge:ls(!!p)});case Ti.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:[],i=e.map(e=>{const i=t.map(us).find(t=>String(t.id??"")===e);return i?ps(i,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.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,i)=>{const n=us(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:ps(n,r),badge:ls(!0===e[r])})});const i=ds(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=us(e),n=String(t.id??"");return n&&i[n]?ps(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ds(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ds(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Ti.KeyValuePair:return l(),ds(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const i=ds(e)?e:{};return{id:`${u}-${t}`,title:String(i.key??""),label:String(i.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Ti.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ds(p)?p[e]:p)?e&&ds(p)?p[e]:p:[],i=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},i=t.options??t.values,n=Array.isArray(i)?i.map(us):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,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,r)=>{const o=t.length>1?`${c} #${r+1}`:c,a=[],s=ds(e)?{...e}:{};null!=s.method&&""!==s.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),i.length?i.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[i,n,r]=t,o=null==e?.[i]?"":String(e[i]);switch(n){case"=":case"==":case"===":return o===r;case"!=":case"!==":return o!==r;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}-${r}-${e.keyName}`,title:e.label||rs(Fa(e.keyName))||e.keyName,label:hs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:cs(t)})}),n.push({kind:"group",id:`${u}-${r}`,title:o,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Ti.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(gs).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=ds(o)?o:{},d=t.length?fs(l,t,i):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],i)=>({id:`${u}-${a}-${i}-${e}`,title:e,label:cs(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:cs(p)})}var g}),l(),n},ys=(e,t,i={})=>ms(fs(e,t,i)),bs=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},vs=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),$s=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},Ss=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},xs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Cs=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Es=(e,t)=>{let i=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));i=i.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));i=i.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));i=i.filter(({runtimeInfo:t,containers:i})=>t?.detectedLanguages?.some(t=>e.has(t))||i?.some(t=>{const i=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!i&&e.has(i)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));i=i.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));i=i.filter(({instrumentationReport:t})=>{const i=t?.state||t?.progressStage;return!!i&&e.has(i)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));i=i.filter(t=>{const i=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(i)})}return t.onlyErrors&&(i=i.filter(e=>is(e.workloadOdigosHealthStatus?.status)===Ai.Error)),i},Ts=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ka&&!e.dataStreamNames?.length):[],Os=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Os(e,n,i):i[n]=e}):i[o]=r:Os(r,o,i)}return i},As=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]}`},Ns=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`}},ks=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},Is=e=>e?e.reduce((e,t)=>{if(null!=t){const i=is(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ds=e=>Array.isArray(e?.statuses)?Is(e.statuses):e?.conditions??[],_s=e=>e?Array.isArray(e)?Rs(e):Rs(Is(Object.values(e))):Rs([]),Rs=e=>{const t=e?.filter(({status:e})=>e===Ai.Error),i=e?.filter(({status:e})=>e===Ai.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),r=e?.filter(({status:e})=>e===Ai.Loading),o=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:o?Ai.Error:a?Ai.Warning:s?Ai.Info:void 0}},Ls=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ps=e=>({[Si.Java]:I,[Si.Go]:k,[Si.JavaScript]:N,[Si.Python]:A,[Si.DotNet]:O,[Si.CSharp]:T,[Si.CPlusPlus]:E,[Si.Php]:C,[Si.Ruby]:x,[Si.Rust]:S,[Si.Swift]:$,[Si.Elixir]:w,[Si.MySql]:v,[Si.Nginx]:b,[Si.Postgres]:y,[Si.Redis]:f,[Si.Kafka]:m,[Si.Ignored]:g,[Si.Unknown]:g,[Si.Processing]:g,[Si.NoContainers]:g,[Si.NoRunningPods]:g}[e]||g),Us=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown:Si.Unknown,Ms=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Fs=e=>e?.map(e=>Ps(Us(e)))||[],zs=e=>e?.map(e=>Ps(e))||[],Bs=e=>e.runtimeInfo?.detectedLanguages?.length?zs(e.runtimeInfo?.detectedLanguages):Fs(e.containers),js=(e,t)=>{const i={[Li.Alauda]:Pe,[Li.AlibabaCloud]:Le,[Li.AppDynamics]:Re,[Li.Axiom]:_e,[Li.AzureBlob]:De,[Li.AzureMonitor]:Ie,[Li.BetterStack]:ke,[Li.Bonree]:Ne,[Li.Causely]:Ae,[Li.Checkly]:Oe,[Li.Chronosphere]:Te,[Li.ClickHouse]:Ee,[Li.CloudWatch]:Ce,[Li.Coralogix]:xe,[Li.Dash0]:Se,[Li.Datadog]:$e,[Li.Dynamic]:Y,[Li.Dynatrace]:we,[Li.ElasticApm]:ve,[Li.ElasticSearch]:be,[Li.GoogleCloud]:ye,[Li.GoogleCloudOTLP]:ye,[Li.GrafanaCloudLoki]:fe,[Li.GrafanaCloudPrometheus]:fe,[Li.GrafanaCloudTempo]:fe,[Li.Greptime]:me,[Li.Groundcover]:ge,[Li.Honeycomb]:he,[Li.HyperDX]:pe,[Li.Instana]:ue,[Li.Jaeger]:ce,[Li.Kafka]:m,[Li.Kloudmate]:de,[Li.Last9]:le,[Li.Lightstep]:se,[Li.LogzIo]:ae,[Li.Loki]:oe,[Li.Lumigo]:re,[Li.Middleware]:ne,[Li.NewRelic]:ie,[Li.Observe]:te,[Li.Odigos]:ee,[Li.OdigosProfileDiagnostic]:ee,[Li.OneUptime]:Z,[Li.OpenObserve]:Q,[Li.Opsverse]:q,[Li.Oracle]:J,[Li.OTLP]:Y,[Li.OTLPHttp]:Y,[Li.Prometheus]:K,[Li.Qryn]:V,[Li.QrynOss]:G,[Li.Quickwit]:W,[Li.S3]:X,[Li.Seq]:H,[Li.Signalfx]:B,[Li.Signoz]:j,[Li.Splunk]:B,[Li.SplunkSapm]:B,[Li.SplunkOtlp]:B,[Li.SumoLogic]:z,[Li.TelemetryHub]:F,[Li.Tempo]:M,[Li.Tingyun]:U,[Li.Traceloop]:P,[Li.Uptrace]:L,[Li.VictoriaMetrics]:R,[Li.VictoriaMetricsCloud]:R,[Li.XRay]:_,[Li.Pyroscope]:D}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Hs=e=>({[Ci.Namespace]:je,[Ci.Source]:Be,[Ci.Destination]:ze,[Ci.Action]:u,[Ci.InstrumentationRule]:Fe,[Ci.SamplingRule]:Me,[Ci.Recommendation]:Ue}[e]),Xs=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,Ws=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},Gs=e=>Ws(Xs(e)),Vs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case Ci.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Ci.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case Ci.Action:const n=e;o=n.type,a=n.name||"";break;case Ci.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case Ci.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Ks=(e,t)=>{if(t===Ci.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Ys=e=>({[Fi.CodeAttributes]:Ve,[Fi.CustomInstrumentation]:Ge,[Fi.HeadersCollection]:We,[Fi.PayloadCollection]:Xe,[Fi.NetworkMetrics]:He,[Fi.UnknownType]:g}[e]||g),Js=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Si.Unknown,qs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?Si.Processing:Si.NoRunningPods;const n=i?.filter(e=>Js(e)!==Si.Ignored);if(!n.length)return Si.NoContainers;const r=n.find(e=>Js(e)!==Si.Unknown);return r?Js(r):Si.Unknown},Qs=(e,t,i)=>(t===Ci.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Zs=e=>({[Ki.Logs]:Ye,[Ki.Metrics]:He,[Ki.Traces]:Ke,[Ki.Profiles]:ee}[e]),el=(e,t)=>Object.values(Ba).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),tl=e=>e&&{[vi.K8s]:Ze,[vi.Vm]:Qe,[vi.Connector]:qe,[vi.AwsEcs]:Je}[e]||ee,il=e=>e?{[vi.K8s]:"Kubernetes Cluster",[vi.Vm]:"Virtual Machine",[vi.Connector]:"Cloud Connector",[vi.AwsEcs]:"AWS ECS"}[e]:"Unknown",nl=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...nl(e,t,i)),r}):[]},rl={"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"},ol=e=>{if(!e)return"";if(rl[e])return rl[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},al=(e,t)=>{if(t===Ci.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},sl=(e,t,i)=>{switch(i=i??"500",t){case Ai.Default:return e.v2.colors.purple[i];case Ai.Info:return e.v2.colors.blue[i];case Ai.Error:return e.v2.colors.red[i];case Ai.Warning:return e.v2.colors.yellow[i];case Ai.Success:return e.v2.colors.green[i];case Ai.Loading:case Ai.Disabled:case Ai.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},ll=e=>{switch(e){case Xi.Updating:case Wi.Pending:case Gi.ContainerCreating:case Vi.Waiting:return Ai.Info;case Xi.Healthy:case Wi.Succeeded:case Wi.Running:case Gi.Running:case Vi.Running:return Ai.Success;case Xi.Degraded:return Ai.Warning;case Xi.Failed:case Wi.Failed:case Gi.Error:case Gi.CrashLoopBackOff:case Gi.CreateContainerError:case Gi.CreateContainerConfigError:case Gi.ErrImagePull:case Gi.ErrImageNeverPull:case Gi.ImagePullBackOff:case Gi.InvalidImageName:case Gi.RegistryUnavailable:case Gi.NetworkNotReady:case Gi.OOMKilled:case Gi.ContainerCannotRun:case Vi.Terminated:case Gi.DeadlineExceeded:case Gi.StartError:return Ai.Error;case Xi.Down:case Gi.Completed:return Ai.Disabled;case Xi.Unknown:case Wi.Unknown:default:return Ai.Unknown}},dl=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,cl=
|
|
45
|
+
`,cl=n.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 i,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,ul=
|
|
59
|
+
`,ul=n(Ga)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,pl=({percentage:
|
|
64
|
+
`,pl=({percentage:i})=>e(dl,{children:[t(cl,{}),"number"==typeof i?t(ul,{size:Ba.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),hl={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 gl(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return hl[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ml(e){const t=gl(e);return`${t.value}${t.unit}`}const fl=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),yl=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=gl(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:ml(1.5),height:ml(4),borderRadius:ml(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${fl} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,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)`}})]})},bl=n.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 i,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,vl=({scale:e,icon:
|
|
72
|
+
`,vl=({scale:e,icon:i})=>{const n=o();return t(bl,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(bl,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(bl,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(bl,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(bl,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},wl=434,$l=635,Sl=n.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 i,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,xl=
|
|
82
|
+
`,xl=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,Cl=()=>e(Sl,{children:[t(xl,{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(xl,{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(xl,{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(xl,{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(xl,{children:t(ee,{size:112})})]}),El=
|
|
87
|
+
`,Cl=()=>e(Sl,{children:[t(xl,{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(xl,{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(xl,{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(xl,{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(xl,{children:t(ee,{size:112})})]}),El=n.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 i,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,Tl=({scale:e=1,icon:
|
|
95
|
+
`,Tl=({scale:e=1,icon:i})=>{const n=o();return t(El,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(El,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(El,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(El,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(El,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Ol=n.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 i,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,Al=
|
|
105
|
+
`,Al=n.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 i,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,Nl=
|
|
115
|
+
`,Nl=n.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,kl=
|
|
117
|
+
`,kl=n.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 i,{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
|
-
`,Il=
|
|
129
|
+
`,Il=n.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,19 +138,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{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
|
-
`,Dl=
|
|
141
|
+
`,Dl=n(Il)`
|
|
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
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
148
|
-
`,_l=
|
|
148
|
+
`,_l=n.div`
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
padding: 12px;
|
|
152
152
|
overflow-y: scroll;
|
|
153
|
-
`,Rl=
|
|
153
|
+
`,Rl=n.div`
|
|
154
154
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
155
155
|
top: 0;
|
|
156
156
|
left: 0;
|
|
@@ -163,37 +163,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
163
163
|
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
164
164
|
background: rgba(0, 0, 0, 0.6);
|
|
165
165
|
backdrop-filter: blur(2px);
|
|
166
|
-
`,Ll=
|
|
166
|
+
`,Ll=n.div`
|
|
167
167
|
width: 800px;
|
|
168
168
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
169
169
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
170
170
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
171
171
|
padding: 0 2px;
|
|
172
172
|
overflow-y: scroll;
|
|
173
|
-
`,Pl=
|
|
173
|
+
`,Pl=n(Il)`
|
|
174
174
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
175
|
width: 100%;
|
|
176
|
-
`,Ul=
|
|
176
|
+
`,Ul=n(kl)`
|
|
177
177
|
gap: 16px;
|
|
178
178
|
padding: 16px;
|
|
179
|
-
`,Ml=
|
|
179
|
+
`,Ml=n.div`
|
|
180
180
|
width: 100%;
|
|
181
181
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
182
182
|
overflow-y: auto;
|
|
183
|
-
`,Fl=
|
|
183
|
+
`,Fl=a`
|
|
184
184
|
0% {
|
|
185
185
|
background-position: 0% 50%;
|
|
186
186
|
}
|
|
187
187
|
100% {
|
|
188
188
|
background-position: 100% 50%;
|
|
189
189
|
}
|
|
190
|
-
`,zl=
|
|
190
|
+
`,zl=n(Ga)`
|
|
191
191
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
192
192
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
193
193
|
background-clip: text;
|
|
194
194
|
color: transparent;
|
|
195
195
|
animation: ${Fl} 1s reverse linear infinite;
|
|
196
|
-
`,Bl=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),i=Math.floor(n/60),r=n%60;return`${String(i).padStart(2,"0")}:${String(r).padStart(2,"0")}`},jl=({icon:n,title:i,titleColor:r,titleSize:o=Bo.S,subTitle:s,subTitleColor:l,subTitleSize:d=Bo.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=et})=>{const v=a(),[w,$]=jt(()=>c?Bl(c):"");Ht(()=>{if(!c)return;$(Bl(c));const e=setInterval(()=>$(Bl(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Il,{$gap:16,$alignItems:"center",children:[y?t(vl,{scale:1.7,icon:b}):h?t(pl,{percentage:f}):g?t(yl,{scale:m}):null,(i||s||c||n||u)&&e(Il,{$gap:8,$alignItems:"center",children:[e(kl,{$gap:4,children:[n&&t(n,{}),u?t(zl,{align:"center",size:o,$titleColor:S,$gradientColor:C,nowrap:!0,children:i||"Loading..."}):i?t(Go,{align:"center",size:o,color:S,children:i}):null]}),s?t(Go,{align:"center",size:d,color:x,children:s}):null,w?t(Go,{align:"center",size:d,color:S,children:w}):null]})]})},Hl=(e,t)=>({[Nn.Default]:n=>ee({fill:sl(t,e,"300"),...n}),[Nn.Info]:n=>rt({fill:sl(t,e,"400"),...n}),[Nn.Error]:n=>it({fill:sl(t,e,"500"),...n}),[Nn.Warning]:n=>nt({fill:sl(t,e,"500"),...n}),[Nn.Success]:n=>p({fill:sl(t,e,"500"),...n}),[Nn.Loading]:e=>jl({withSpinnerOld:!0,...e}),[Nn.Disabled]:n=>h({fill:sl(t,e,"400"),...n}),[Nn.Unknown]:n=>tt({fill:sl(t,e,"300"),...n})}[e]),Wl=e=>{switch(e){case Fn.Success:return Nn.Success;case Fn.Error:case Fn.Failure:return Nn.Error;case Fn.Notice:return Nn.Warning;case Fn.Unsupported:case Fn.Unknown:return Nn.Info;case Fn.Irrelevant:case Fn.Disabled:return Nn.Disabled;case Fn.Waiting:return Nn.Loading;case Fn.Pending:default:return Nn.Default}},Xl=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Gl={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:Ee,oracle:J,aws:at},Vl={sts:yt,dynamodb:ft,s3:W,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:ot,cloudwatch:Ce},Kl=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Gl[n.toLowerCase()];if(e)return e}const i=t["messaging.system"];if(i){const e=Gl[i.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Vl[e];if(t)return t}return at}const a=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Gl))if(a.includes(e))return t;return ze},Yl=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:i,region:r}=e;return{namespace:t,name:n,kind:i,region:r||void 0}},Jl=(e,t)=>{const n=[],i=JSON.parse(JSON.stringify(e));for(const e of i){const i=ss(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:i[e.name]})))}return n},ql=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Nn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Ql(e){if(!e||0===e.length)return null;const t=[],n=[],i=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",a=r.workloadKind??"",o=r.workloadNamespace??"",s=r.workloadLanguage??"";e||a?t.push({namespace:o,kind:a,name:e}):o&&n.push(o),s&&i.push(s)}return 0===t.length&&0===n.length&&0===i.length?null:{sources:t,namespaces:n,languages:i}}function Zl(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 ed(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ql(t??null)}}function td(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Zl(t??null)}}const nd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),id=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),rd=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ad=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},od=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,sd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,ld=e=>sd.test(e),dd=e=>e?.map(({status:e,type:t,reason:n,message:i})=>({status:e?.toLowerCase(),type:Fo(t),reason:n?Fo(n):"",message:i}))||[],cd=(e,t)=>{const n=ss(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}))},ud=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ti[e]):[],pd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ti[e]):[],hd=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},gd=e=>e.replace(/[^\d]/g,""),md=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},fd=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},yd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},bd={0:"",1:"OK",2:"ERROR"};class vd{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const n=this.buf[this.offset++];if(e|=BigInt(127&n)<<t,!(128&n))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new vd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const wd=e=>{if(!e||0===e.length)return;let t="";for(let n=0;n<e.length;n++)t+=e[n].toString(16).padStart(2,"0");return t},$d=e=>{let t="";for(;e.remaining>0;){const n=e.readTag();if(!n)break;switch(n.field){case 1:if(2!==n.wire){e.skip(n.wire);break}t=e.readString()??"";break;case 2:if(0!==n.wire){e.skip(n.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==n.wire){e.skip(n.wire);break}const i=e.readVarintBig();t=null===i?"":i.toString();break}case 4:{if(1!==n.wire){e.skip(n.wire);break}const i=e.readFixed64AsDoubleBits();t=null===i||Number.isNaN(i)?"":String(i);break}case 5:{if(2!==n.wire){e.skip(n.wire);break}const i=e.readMessage();if(!i)break;const r=[];for(;i.remaining>0;){const e=i.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=i.readMessage();e&&r.push($d(e))}else i.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==n.wire){e.skip(n.wire);break}const i=e.readMessage();if(!i)break;const r=[];for(;i.remaining>0;){const e=i.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=i.readMessage();if(!e)continue;const t=Sd(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else i.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==n.wire){e.skip(n.wire);break}const i=e.readBytes();if(!i)break;const r=wd(i.length>16?i.subarray(0,16):i)??"";t=i.length>16?`${r}…`:r;break}default:e.skip(n.wire)}}return t},Sd=e=>{const t={};for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire)t.key=e.readString()??void 0;else if(2===n.field&&2===n.wire){const n=e.readMessage();t.value=n?$d(n):void 0}else e.skip(n.wire)}return t},xd=(e,t)=>{const n=e.readMessage();if(!n)return;const i=Sd(n);void 0===i.key&&void 0===i.value||t.push(i)},Cd=e=>{const t={};for(;e.remaining>0;){const n=e.readTag();if(!n)break;2===n.field&&2===n.wire?t.message=e.readString()??void 0:3===n.field&&0===n.wire?t.code=e.readVarintNumber()??void 0:e.skip(n.wire)}return t},Ed=e=>{const t={attrs:[]};for(;e.remaining>0;){const n=e.readTag();if(!n)break;switch(n.field){case 1:1===n.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(n.wire);break;case 2:2===n.wire?t.name=e.readString()??void 0:e.skip(n.wire);break;case 3:2===n.wire?xd(e,t.attrs):e.skip(n.wire);break;default:e.skip(n.wire)}}return t},Td=(e,t,n)=>{const i={attrs:[],events:[],service:t,scope:n};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?i.traceId=wd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?i.spanId=wd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?i.parentSpanId=wd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?i.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?i.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?i.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?i.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?xd(e,i.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&i.events.push(Ed(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Cd(t);i.statusCode=e.code,i.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return i},Od=e=>{let t;for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const n=e.readMessage();if(!n)continue;const i=Sd(n);"service.name"===i.key&&i.value&&(t=i.value)}else e.skip(n.wire)}return t},Ad=e=>{let t,n;for(;e.remaining>0;){const i=e.readTag();if(!i)break;1===i.field&&2===i.wire?t=e.readString()??void 0:2===i.field&&2===i.wire?n=e.readString()??void 0:e.skip(i.wire)}if(t)return n?`${t}@${n}`:t},Nd=(e,t)=>{let n;const i=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(n=Ad(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&i.push(Td(r,t,n))}else e.skip(r.wire)}for(const e of i)!e.scope&&n&&(e.scope=n);return i},kd=e=>{let t;const n=[];for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const n=e.readMessage();n&&(t=Od(n))}else if(2===i.field&&2===i.wire){const i=e.readMessage();i&&n.push(...Nd(i,t))}else e.skip(i.wire)}for(const e of n)!e.service&&t&&(e.service=t);return n},Id=e=>({key:e.key??null,value:e.value??null}),Dd=e=>{if(!e.length)return[];const t=new Map;for(const n of e)n.spanId&&t.set(n.spanId,n);const n=new Map,i=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=n.get(e)??[];t.push(r),n.set(e,t)}else i.push(r)}i.sort((e,t)=>{const n=e.startUnixNano??0n,i=t.startUnixNano??0n;return n<i?-1:n>i?1:0});const r=(i[0]??e[0]).startUnixNano??0n,a=[],o=(e,t)=>{const i=e.startUnixNano??0n,s=e.endUnixNano??i,l=i>r?i-r:0n,d=s>i?s-i:1n,c=void 0!==e.statusCode?bd[e.statusCode]??null:null,u=(e.attrs??[]).map(Id);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,n=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(n)/1e6,attrs:(e.attrs??[]).map(Id)}});a.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?yd[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const i of n.get(e.spanId??"")??[])o(i,t+1)};for(const t of i.length?i:e)o(t,0);const s=new Set;return a.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},_d=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const n="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),i=new Uint8Array(n.length);for(let e=0;e<n.length;e++)i[e]=n.charCodeAt(e);return i}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const n=(e=>{const t=new vd(e),n=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&n.push(...kd(e))}else t.skip(e.wire)}return n})(t);return n.length?{spans:Dd(n),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Rd=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const i=(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!==i&&e.push({key:t,value:i}),e},[]);return{...e,fields:t}},Ld=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const i=e[n];if(Array.isArray(i)){const e=i.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Ld(e)))}else if("object"==typeof i&&null!==i){const e=Ld(i);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(i)||(t[n]=i)}),t},Pd=(e,t=2)=>JSON.stringify(e||{},null,t),Ud=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Md=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Fd=on("v1.33"),zd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Bd=(e,t)=>{if(e!==wn.K8s)return!1;const n=on(t);return n>0&&n<Fd},jd=on("v1.20"),Hd=(e,t)=>{if(e!==wn.K8s)return!0;const n=on(t);return!(n>0)||n>=jd},Wd=e=>e?zd.map(t=>e[t]??null):[],Xd={PID:"process.pid",VPID:"process.vpid"},Gd={[xn.Go]:"Go",[xn.Java]:"Java",[xn.JavaScript]:"Node.js",[xn.Python]:"Python",[xn.DotNet]:".NET",[xn.CSharp]:"C#",[xn.CPlusPlus]:"C++",[xn.Php]:"PHP",[xn.Ruby]:"Ruby",[xn.Rust]:"Rust",[xn.Swift]:"Swift",[xn.Elixir]:"Elixir",[xn.MySql]:"MySQL",[xn.Nginx]:"Nginx",[xn.Postgres]:"PostgreSQL",[xn.Redis]:"Redis",[xn.Kafka]:"Kafka",[xn.Ignored]:"Ignored",[xn.Unknown]:"Unknown",[xn.Processing]:"Processing",[xn.NoContainers]:"No Containers",[xn.NoRunningPods]:"No Running Pods"},Vd=[{id:xn.Go,label:Gd[xn.Go],icon:Ps(xn.Go)},{id:xn.Java,label:Gd[xn.Java],icon:Ps(xn.Java)},{id:xn.JavaScript,label:Gd[xn.JavaScript],icon:Ps(xn.JavaScript)},{id:xn.Python,label:Gd[xn.Python],icon:Ps(xn.Python)},{id:xn.Php,label:Gd[xn.Php],icon:Ps(xn.Php)},{id:xn.Ruby,label:Gd[xn.Ruby],icon:Ps(xn.Ruby)},{id:xn.Rust,label:Gd[xn.Rust],icon:Ps(xn.Rust)},{id:xn.DotNet,label:Gd[xn.DotNet],icon:Ps(xn.DotNet)},{id:xn.CSharp,label:Gd[xn.CSharp],icon:Ps(xn.CSharp)},{id:xn.CPlusPlus,label:Gd[xn.CPlusPlus],icon:Ps(xn.CPlusPlus)},{id:xn.Swift,label:Gd[xn.Swift],icon:Ps(xn.Swift)},{id:xn.Elixir,label:Gd[xn.Elixir],icon:Ps(xn.Elixir)}],Kd={id:Mn.OpentelemetryEbpfInstrumentation,label:Mn.OpentelemetryEbpfInstrumentation,icon:bt},Yd={[xn.Go]:{community:[{id:Mn.GolangCommunity,label:Mn.GolangCommunity,icon:Ps(xn.Go)},Kd],enterprise:[{id:Mn.GolangEnterprise,label:Mn.GolangEnterprise,icon:Ps(xn.Go)}]},[xn.JavaScript]:{community:[{id:Mn.NodejsCommunity,label:Mn.NodejsCommunity,icon:Ps(xn.JavaScript)},Kd],enterprise:[{id:Mn.NodejsEnterprise,label:Mn.NodejsEnterprise,icon:Ps(xn.JavaScript)}]},[xn.Python]:{community:[{id:Mn.PythonCommunity,label:Mn.PythonCommunity,icon:Ps(xn.Python)},Kd],enterprise:[{id:Mn.PythonEnterprise,label:Mn.PythonEnterprise,icon:Ps(xn.Python)}]},[xn.Java]:{community:[{id:Mn.JavaCommunity,label:Mn.JavaCommunity,icon:Ps(xn.Java)},Kd],enterprise:[{id:Mn.JavaEnterprise,label:Mn.JavaEnterprise,icon:Ps(xn.Java)},{id:Mn.JavaEbpfInstrumentations,label:Mn.JavaEbpfInstrumentations,icon:Ps(xn.Java)}]},[xn.DotNet]:{community:[{id:Mn.DotNetCommunity,label:Mn.DotNetCommunity,icon:Ps(xn.DotNet)},Kd],enterprise:[{id:Mn.DotNetEnterprise,label:Mn.DotNetEnterprise,icon:Ps(xn.DotNet)}]},[xn.Ruby]:{community:[{id:Mn.RubyCommunity,label:Mn.RubyCommunity,icon:Ps(xn.Ruby)},Kd],enterprise:[{id:Mn.RubyEnterprise,label:Mn.RubyEnterprise,icon:Ps(xn.Ruby)}]},[xn.Php]:{community:[{id:Mn.PhpCommunity,label:Mn.PhpCommunity,icon:Ps(xn.Php)},Kd],enterprise:[]},[xn.CSharp]:{community:[],enterprise:[{id:Mn.CPlusPlusEnterprise,label:Mn.CPlusPlusEnterprise,icon:Ps(xn.CSharp)}]},[xn.MySql]:{community:[],enterprise:[{id:Mn.MySqlEnterprise,label:Mn.MySqlEnterprise,icon:Ps(xn.MySql)}]},[xn.CPlusPlus]:{community:[Kd],enterprise:[]},[xn.Rust]:{community:[Kd],enterprise:[]},[xn.Swift]:{community:[Kd],enterprise:[]},[xn.Elixir]:{community:[Kd],enterprise:[]},[xn.Nginx]:{community:[Kd],enterprise:[]},[xn.Postgres]:{community:[Kd],enterprise:[]},[xn.Redis]:{community:[Kd],enterprise:[]},[xn.Kafka]:{community:[Kd],enterprise:[]},[xn.Ignored]:{community:[],enterprise:[]},[xn.Unknown]:{community:[Kd],enterprise:[]},[xn.Processing]:{community:[],enterprise:[]},[xn.NoContainers]:{community:[],enterprise:[]},[xn.NoRunningPods]:{community:[],enterprise:[]}},Jd="*",qd=e=>!!e?.includes(Jd),Qd=e=>e?.length?qd(e)?[Jd]:e:[],Zd=e=>{if(e?.length&&!qd(e))return e.filter(e=>e!==Jd)},ec=e=>e===Jd?"All languages":Gd[e]??e,tc=e=>e===Jd?vt:Ps(e),nc=on("v1.26"),ic=(e,t)=>{if(e!==wn.K8s)return!1;const n=on(t);return!(n>0)||n>=nc},rc=[zn.NetworkMetrics],ac=e=>!rc.includes(e),oc=[{type:zn.CodeAttributes,icon:Ys(zn.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:[xn.Go,xn.Python,xn.JavaScript]},{type:zn.CustomInstrumentation,icon:Ys(zn.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:[xn.Go,xn.Java,xn.Php]},{type:zn.HeadersCollection,icon:Ys(zn.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:[xn.Go,xn.Java,xn.JavaScript]},{type:zn.PayloadCollection,icon:Ys(zn.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:[xn.Go,xn.JavaScript]}],sc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Ys(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},lc="Recommendations",dc="Optimize your observability setup with actionable recommendations.",cc="Recommended",uc="Applied",pc="Dismissed",hc="Not applicable",gc={[Si.Recommended]:cc,[Si.Applied]:uc,[Si.Dismissed]:pc,[Si.NotApplicable]:hc},mc="Accept",fc="Dismiss",yc="Restore",bc="Docs",vc="Benefits",wc="Considerations",$c="Apply Recommendation",Sc="Apply via UI",xc="Apply via GitOps",Cc="Via UI",Ec="Via GitOps",Tc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Oc="There are 2 ways to apply this recommendation.",Ac="Odigos applies the selected change immediately.",Nc="Commit the configuration to your repository and let your GitOps controller apply it.",kc="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Ic="No recommendations",Dc="There are no recommendations for this cluster right now.",_c="This recommendation does not currently apply to your cluster.",Rc="Recommendation dismissed",Lc="Recommendation restored",Pc="Recommendation applied successfully",Uc="Failed to apply recommendation",Mc={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.'},Fc={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."},zc={[mn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[mn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[mn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Bc="Cancel",jc="Save",Hc="Edit rule",Wc="Edit auto rule",Xc="Create rule",Gc="Delete rule",Vc="Save",Kc="Create your first rule",Yc="No Rules Exist",Jc="No Results",qc=e=>`No rules match the search term "${e}"`,Qc="Rule name",Zc="Rule type",eu="Select the type of condition that makes a trace highly relevant.",tu="Rule Enabled",nu="Rule Disabled",iu="Enabled",ru="Disabled",au="Note",ou="HTTP route",su="Method",lu="Keep Percentage",du="Keep traces with duration larger than",cu="Keep traces with errors",uu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",pu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",hu="Custom percentage",gu="Disabled rule",mu="Sample",fu="Keep all",yu="Drop all",bu="Operation type",vu="HTTP route prefix",wu="Templated path",$u="Templated path prefix",Su="Kafka topic",xu="Custom duration (ms)",Cu="No preview available",Eu="Server address",Tu="Drop at most this percentage of matching traces",Ou="Unnamed rule",Au="Sampling Preview",Nu="Source Scope",ku="Unknown source",Iu="Operation",Du="Duration",_u="Errors",Ru="Keep Percentage",Lu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Pu="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.",Uu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Mu="Retain traces with errors from the selected services and operations.",Fu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",zu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Bu={highlyRelevant:Fu,noisy:zu,costReduction:void 0},ju="Type rule name",Hu="Add note here...",Wu="Type here",Xu="Search source name",Gu="e.g. collector.my.vendor.com",Vu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ku="Rule will apply to all sources in the cluster",Yu="If multiple source scopes are set, they must all match simultaneously.",Ju="All sources",qu="-",Qu="All",Zu="Sources",ep="Namespaces",tp="Languages",np="any of",ip="AND",rp="All operations",ap="HTTP server endpoint",op="HTTP client endpoint",sp="Kafka consumer",lp="Kafka producer",dp="Sampling Rules",cp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',up="Refresh",pp="Create rule",hp="Sampling docs",gp="75vw",mp="Delete rule?",fp="Are you sure you want to delete this sampling rule?",yp="Delete",bp="Cancel",vp="Kubernetes Health Probes",wp="Keep All Error Traces",$p="Drop Traces Cluster-Wide",Sp="A rule with the same matching conditions already exists.",xp="Create this rule as-is?",Cp="This rule still uses the default configuration.\nDo you want to create it anyway?",Ep="Rule preview",Tp="Continue editing",Op="Create 'Noisy Operation Kubernetes Health Probes' rule",Ap="Edit 'Noisy Operation Kubernetes Health Probes' rule",Np="Automatically detect and sample health probe traces across the cluster.",kp="Create 'Highly Relevant Operations' rule",Ip="Edit 'Highly Relevant Operations' rule",Dp="Automatically keep all error traces across the entire cluster.",_p="Create 'Cost Reduction' rule",Rp="Edit 'Cost Reduction' rule",Lp="Automatically drop a percentage of traces across the entire cluster.",Pp="Skip setup",Up="Start setup",Mp="Next",Fp="Go to Sampling",zp="Read more",Bp="Welcome to Sampling",jp="Cut costs without losing what matters",Hp="Odigos sampling works in three stages:",Wp="Filter noisy traffic",Xp="Remove non-actionable traces like health checks.",Gp="Guarantee highly relevance operations",Vp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Kp="Reduce cost",Yp="Sample routine traffic using percentages.",Jp="Sampling does not drop individual spans - it keeps or drops the entire trace.",qp="Filter noisy operations",Qp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Zp="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.",eh="Preset Rules",th="Kubernetes Health Probes",nh="Automatically ignore health checks",ih="You can review, adjust, and add additional custom rules later.",rh="Choose your sampling strategy",ah="Pick the approach that best fits your balance of cost vs data-completeness",oh="Keep List",sh="Budget Friendly",lh="Define which traces must be kept, while all others are sampled by default to minimize cost.",dh="Cost-oriented - keeps only what you explicitly select.",ch="Best for very large clusters with high volumes of traces and high costs.",uh="Higher risk of missing important traces without ongoing review.",ph="Drop List",hh="Safe Choice",gh="Define which traces must be aggressively dropped, while all others are kept by default.",mh="Preserves most data unless explicitly filtered.",fh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",yh="Advanced",bh="Maximum Flexibility",vh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",wh="'Keep List' profile",$h="Protect important traces",Sh="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:",xh="Traces with errors",Ch="Slow requests (duration above threshold)",Eh="Mission-Critical endpoints or services",Th="Services under test or evaluation",Oh="New deployments",Ah="You can review, adjust, and add rules once onboarding is complete.",Nh="Common Rules",kh="Preset Rules",Ih="Error collection - entire cluster",Dh="Keep all traces with errors",_h="Ambient sampling percentage",Rh="'Drop List' profile",Lh="Reduce high-volume traffic",Ph="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.",Uh="Advanced Configuration",Mh="Configure sampling rules",Fh="Advanced mode allows you to configure all sampling categories:",zh="Noise Filtering - remove non-actionable traces",Bh="Highly Relevance - guarantee important traces are kept",jh='Cost Control - drop traces for "Normal" operations',Hh="Rules can target:",Wh="Services",Xh="HTTP Endpoints",Gh="DB Operations",Vh="Errors",Kh="Latency and more...",Yh="Sampling configured successfully!",Jh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",qh="Odigos will now:",Qh="Filter noisy operations",Zh="Guarantee important traces",eg="Reduce cost using controlled sampling",tg="Recommended",ng={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."},ig={noisy:Op,highlyRelevant:kp,costReduction:_p},rg={noisy:Ap,highlyRelevant:Ip,costReduction:Rp},ag={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},og=[{id:Yn.Logs,value:"Logs"},{id:Yn.Metrics,value:"Metrics"},{id:Yn.Traces,value:"Traces"},{id:Yn.Profiles,value:"Profiles"}],sg=6048e5,lg="URL templatization",dg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",cg="Default templatization",ug="Custom and default URL templatization scopes across URL templatization actions.",pg="Default templatization is not enabled",hg="Automatically detect and templatize dynamic URL segments when no custom template matches.",gg="Enable for entire cluster",mg="Custom URL templates",fg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",yg="View by:",bg="Groups",vg="Tree",wg="List",$g="Create templating scope",Sg="Edit scoped templates",xg="Edit",Cg="Add template",Eg="Add templatization rules",Tg="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Og="Add templatization rule",Ag="Choose how to templatize dynamic URLs",Ng="Reduce route cardinality by replacing changing path segments with reusable placeholders.",kg="Before",Ig="After",Dg="/users/123/orders/456",_g="/users/{id}/orders/{orderId}",Rg="Automatic templatization",Lg="Recommended",Pg="Detect and templatize dynamic URL segments when no custom rule matches.",Ug="Applies to: Entire cluster",Mg="Reversible at any time",Fg="Enabled",zg="Need more control?",Bg="Create a custom rule for specific URL patterns.",jg="Create custom rule",Hg="Learn how it works",Wg="Docs",Xg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Gg="Default templatization is enabled — editor coming next.",Vg="746px",Kg="Add default templatization rule",Yg="Edit default templatization rule",Jg="Disable for a scope",qg="UI template rules",Qg="Source Scope",Zg="Scope",em="Choose which sources this template rule applies to.",tm="Sources where this template is tested and applied.",nm="This rule will apply to all sources in the cluster.",im="Default templatization",rm="Automatically templatize dynamic URL segments when no custom template matches.",am="Enable automatic URL templatization for this scope",om=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],sm="default templatization for this scope",lm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",dm="Disable",cm="Skip policy",um="Advanced",pm=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],hm=pm.join(" "),gm="Skip default templatization for all non-2xx responses",mm="Skip default templatization for specific HTTP status codes",fm="Example: 404, 401",ym="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",bm="This rule will take effect in the cluster immediately after it is added.",vm="This rule will take effect in the cluster immediately after it is saved.",wm="No template changes. Save will keep the current templates.";function $m(e,t){const n=[];return e>0&&n.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&n.push(1===t?"1 template will be removed":`${t} templates will be removed`),n.length?`On Save, ${n.join(" and ")}. Changes take effect immediately.`:wm}const Sm="Add rule",xm="Save",Cm="Cancel",Em="Cancel without saving",Tm="Delete",Om="templating scope";function Am(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Nm="Enter valid HTTP status codes between 100 and 599, separated by commas.",km="Create custom template",Im="Create new scoped template",Dm="Add URL templates",_m="UI template rules",Rm=e=>`To ${e}`,Lm=e=>`Applies to ${e} source${1===e?"":"s"}`,Pm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Um=e=>`Applies to ${e} language${1===e?"":"s"}`,Mm="Applies to entire cluster",Fm=e=>`Applies to ${e} scope${1===e?"":"s"}`,zm="Where should this rule apply?",Bm=zm,jm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Hm="Specific scope",Wm="Entire cluster",Xm="Apply the rule only where it is needed.",Gm="Apply to every source in this cluster.",Vm="Quick start",Km="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Ym="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Jm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",qm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",Qm="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",Zm="Add to existing template group",ef="Create new template group",tf="Add here",nf="Create New",rf="Existing templating scope",af="Templating scopes",of="Select where to add the new template",sf="A template group already uses this scope",lf="Choose where to add the new templates.",df="Add to existing template group",cf="Create a separate template group",uf="Use different settings or behavior for the same scope.",pf="View action settings",hf="Default settings",gf=e=>rf,mf=e=>1===e?"1 template":`${e} templates`,ff="Templating scope",yf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,bf="Template group will be added to the default action. Expand Select action to choose a different one.",vf="Select action",wf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",$f="Advanced settings",Sf="Default UI-managed action · Recommended",xf="Create a new action",Cf="Select action",Ef="Default UI-managed action",Tf="Add this template group to the default UI-managed action.",Of="Select action",Af="Choose an existing action or create a new one for this template group.",Nf="Search template group by type action name or scope (languages, namespaces, sources)",kf="Selected Template group:",If="URL templatization action",Df="Create new action",_f="__odigos_create_new_url_templatization_action__",Rf=Af,Lf="New action name",Pf="New action group",Uf="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",Mf="Create new template group",Ff="Next",zf="Back",Bf="Action name",jf="Action",Hf="UI template rules",Wf="__odigos_default_url_templatization_action__",Xf="UI-owned",Gf="Externally synced",Vf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Kf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Yf=Xf,Jf="Templates",qf="Other templates in this group",Qf="Additional templates that share the same source scope and Action as this rule.",Zf="e.g. /api/users/{id}",ey="Language",ty="Namespace",ny="Source",iy="AND",ry="Entire cluster",ay="Unset",oy="Enabled globally",sy="Default templating disabled",ly="Enabled",dy="Default templatization is unset. No default rules are configured on an enabled action.",cy="Default templatization is enabled globally.",uy="Default templatization is disabled for the entire cluster.";function py(e){return e<=0?cy:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const hy="Disabled for these scopes",gy="Disable for a scope",my="Delete",fy="disabled scope",yy="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",by="Automatic templatization",vy="Active",wy="Custom and default URL templatization scopes across URL templatization actions.",$y="Custom templates take precedence over automatic templatization.",Sy="Scope",xy="Status codes",Cy="Disabled",Ey="Entire cluster",Ty="All",Oy="None",Ay="Disabled",Ny="No disabled scope configured",ky="Add disabled",Iy="Disabled scopes",Dy="Advanced",_y=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Ry="Automatic templatization off for matching traffic.",Ly="Disable for a scope",Py="Scope",Uy="Effective behavior",My="Status",Fy="Automatic templatization off",zy="Covered by broader exception",By="Disabled",jy="Redundant",Hy="No disabled scope configured",Wy="Disable automatic templatization for specific scopes when needed.",Xy=(e,t)=>`${e} configured • ${t} effective`,Gy=e=>1===e?"1 scope":`${e} scopes`,Vy="Default templatization is enabled for all HTTP status codes.";function Ky(e){return e<=0?Vy:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Yy="HTTP status code policies",Jy="No skip policy configured",qy="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Qy="Add skip policy for a scope",Zy="Add skip policy for a scope",eb="Skip default templatization on HTTP errors",tb="Delete",nb="skip policy",ib="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",rb="Template details",ab="Template",ob="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",sb="Created via",lb="Action name",db="Kubernetes name",cb="Odigos Action (Kubernetes resource) where this template is managed.",ub="Try a URL",pb="/users/12/orders/345685335358",hb="Test URL",gb="Close",mb="Result",fb="Templated URL path",yb="Match found",bb="This URL matches the template.",vb="No match",wb="This URL doesn't match the template.",$b="Check the URL structure and parameter positions, then try again.",Sb=Ft()(tn(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:qo.DARK_MODE,storage:"undefined"!=typeof window?nn(()=>localStorage):void 0})),xb={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ko},Cb=Ft(e=>({...xb,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(xb)}));var Eb;(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"})(Eb||(Eb={}));const Tb=e=>`add-${Fo(e).replaceAll(" ","-").toLowerCase()}`,Ob=e=>`edit-${Fo(e).replaceAll(" ","-").toLowerCase()}`,Ab=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Nb=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),kb=Ft(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:Nb})),Ib=Ft((e,t)=>({notifications:[],addNotification:n=>{const i=new Date,r=`${i.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:i.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 Db;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Db||(Db={}));const _b=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Rb=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Lb=Ft((e,t)=>({progress:{},setProgress:(n,i)=>{const r=t(),a=_b();return"number"==typeof i.total&&(a.total=i.total),"number"==typeof i.current&&(a.current=i.current),Array.isArray(i.list)&&(a.list=i.list),e({progress:{...r.progress,[n]:Rb(a)}})},addProgress:(n,i,r)=>{const a=t(),o=_b(n,a.progress);return o.current+=i,r&&(o.list=o.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...a.progress,[n]:Rb(o)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Pb=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ub={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Mb=(e,t)=>e.destinationType.type!==t.destinationType.type,Fb=Ft(e=>({...Ub,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=>Mb(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=>Mb(e,t))})),clearStore:()=>e(()=>({...Ub}))})),zb=e=>{function t(){return void 0===e?{}:vs(e)}const[n,i]=jt(t()),[r,a]=jt({}),[o,s]=jt(t()),l=Wt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[i,r]of Object.entries(e)){const e=i;if(Array.isArray(r)){const i=t[e];Array.isArray(i)&&r.length===i.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,i[t])).length:e===i[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const i=l(r,t[e]);Object.keys(i).length>0&&(n[e]=i)}else r!==t[e]&&(n[e]=t[e])}for(const i of Object.keys(t))i in e||(n[i]=t[i]);return n},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Xt(()=>!d(o,n),[o,n]);Ht(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(i(r),s(r))},[e,n]);const u=Wt((e,t)=>ws("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?i(n=>({...n,[e]:t})):i(e=>{const n=vs(e);let i=n;for(let e=0;e<r.length-1;e++){const t=r[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[r[r.length-1]]=t,n}),a(e=>{const t=n,i=r[r.length-1],a=void 0!==e[t],o=i!==t&&void 0!==e[i];if(!a&&!o)return e;const s={...e};return a&&delete s[t],o&&delete s[i],s})}else n&&i({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?a(n=>({...n,[e]:t})):a(e=>{const i=vs(e);let r=i;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,i})}else n&&a({...n})},resetFormData:e=>{const n=e||t();i(n),s(n),a({})},getNestedValue:u}},Bb={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},jb=()=>{const{addNotification:e}=Ib(),{formData:t,formErrors:n,handleFormChange:i,handleErrorChange:r,resetFormData:a}=zb(Bb);return{formData:t,formErrors:n,handleFormChange:i,resetFormData:a,validateForm:n=>{const i={};let a=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":nd(t)&&(i[e]=Qo.FIELD_IS_REQUIRED)}}),t.type===sn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){i.fields=Qo.FIELD_IS_REQUIRED;break}}return a=!Object.values(i).length,!a&&n?.withAlert&&e({type:Nn.Warning,title:n.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,i),a},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:a,fields:o})=>{const s={...vs(Bb),type:e,signals:t,name:n,notes:r,disabled:a};Object.entries(o).forEach(([e,t])=>{if(t)switch(e){case dn.LabelsAttributes:case dn.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 dn.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(i=t,i?.length?i.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):i);break;case dn.CollectContainerAttributes:case dn.CollectReplicaSetAttributes:case dn.CollectWorkloadId:case dn.CollectClusterId:case dn.ClusterAttributes:case dn.OverwriteExistingValues:case dn.AttributeNamesToDelete:case dn.Renames:case dn.PiiCategories:case dn.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var n,i}),i(void 0,void 0,s)}}},Hb=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Wb=()=>{const e=Gt(null),[t,n]=jt(0),[i,r]=jt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:i}=e.current.getBoundingClientRect();n(t),r(i)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:i}},Xb="data-ignore-outside-click",Gb=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Xb))return!0;t=t.parentNode}return!1},Vb=(e,t)=>{const n=Gt(t);n.current=t,Ht(()=>{const t=t=>{const i=t.target;e.current&&!e.current.contains(i)&&(Gb(i)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Kb=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:i="local"}={})=>{const r=Gt(null),[a,o]=jt(!1),[s,l]=jt({top:0,left:0}),[d,c]=jt({edge:"top",align:"left"});return Vb(r,()=>{a&&(o(!1),n?.())}),{popupRef:r,popupOpen:a,setPopupOpen:o,popupPosition:s,arrowPlacement:d,handlePosition:(n,a)=>{if("local"===i)return void l({top:a,left:n});const{innerWidth:o,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/o,h=p<1/3?"left":p>2/3?"right":"center";c({edge:a<s/2?"top":"bottom",align:h});let g=a,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-d/2;const e=8;m=Math.max(e,Math.min(m,o-d-e))}else m>=o/2&&(m=n-d);l({top:g,left:m})}}},Yb=i.div`
|
|
196
|
+
`,Bl=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),r=i%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},jl=({icon:i,title:n,titleColor:r,titleSize:a=Ba.S,subTitle:s,subTitleColor:l,subTitleSize:d=Ba.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=et})=>{const v=o(),[w,$]=jt(()=>c?Bl(c):"");Ht(()=>{if(!c)return;$(Bl(c));const e=setInterval(()=>$(Bl(c)),1e3);return()=>clearInterval(e)},[c]);const S=r||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Il,{$gap:16,$alignItems:"center",children:[y?t(vl,{scale:1.7,icon:b}):h?t(pl,{percentage:f}):g?t(yl,{scale:m}):null,(n||s||c||i||u)&&e(Il,{$gap:8,$alignItems:"center",children:[e(kl,{$gap:4,children:[i&&t(i,{}),u?t(zl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Ga,{align:"center",size:a,color:S,children:n}):null]}),s?t(Ga,{align:"center",size:d,color:x,children:s}):null,w?t(Ga,{align:"center",size:d,color:S,children:w}):null]})]})},Hl=(e,t)=>({[Ai.Default]:i=>ee({fill:sl(t,e,"300"),...i}),[Ai.Info]:i=>rt({fill:sl(t,e,"400"),...i}),[Ai.Error]:i=>nt({fill:sl(t,e,"500"),...i}),[Ai.Warning]:i=>it({fill:sl(t,e,"500"),...i}),[Ai.Success]:i=>p({fill:sl(t,e,"500"),...i}),[Ai.Loading]:e=>jl({withSpinnerOld:!0,...e}),[Ai.Disabled]:i=>h({fill:sl(t,e,"400"),...i}),[Ai.Unknown]:i=>tt({fill:sl(t,e,"300"),...i})}[e]),Xl=e=>{switch(e){case Mi.Success:return Ai.Success;case Mi.Error:case Mi.Failure:return Ai.Error;case Mi.Notice:return Ai.Warning;case Mi.Unsupported:case Mi.Unknown:return Ai.Info;case Mi.Irrelevant:case Mi.Disabled:return Ai.Disabled;case Mi.Waiting:return Ai.Loading;case Mi.Pending:default:return Ai.Default}},Wl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Gl={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:Ee,oracle:J,aws:ot},Vl={sts:yt,dynamodb:ft,s3:X,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Kl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Gl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Gl[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Vl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Gl))if(o.includes(e))return t;return ze},Yl=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:i,kind:n,region:r}=e;return{namespace:t,name:i,kind:n,region:r||void 0}},Jl=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ss(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&i.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},ql=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ai.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function Ql(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function Zl(e){if(!e)return null;const t=[];for(const i of e.sources??[])t.push({workloadName:i.name||null,workloadKind:i.kind||null,workloadNamespace:i.namespace||null});for(const i of e.namespaces??[])t.push({workloadNamespace:i});for(const i of e.languages??[])t.push({workloadLanguage:i});return t.length?t:null}function ed(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:Ql(t??null)}}function td(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:Zl(t??null)}}const id=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),nd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),rd=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},od=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ad=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,sd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,ld=e=>sd.test(e),dd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:Fa(t),reason:i?Fa(i):"",message:n}))||[],cd=(e,t)=>{const i=ss(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},ud=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],pd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],hd=e=>{let t=e.replace(/[^\d.]/g,"");const i=t.indexOf(".");return-1!==i&&(t=t.slice(0,i+1)+t.slice(i+1).replace(/\./g,"")),t},gd=e=>e.replace(/[^\d]/g,""),md=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},fd=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},yd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},bd={0:"",1:"OK",2:"ERROR"};class vd{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const i=this.buf[this.offset++];if(e|=BigInt(127&i)<<t,!(128&i))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new vd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const wd=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},$d=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push($d(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=Sd(e);t.key&&r.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${r.join(", ")}}`;break}case 7:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readBytes();if(!n)break;const r=wd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Sd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?$d(i):void 0}else e.skip(i.wire)}return t},xd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Sd(i);void 0===n.key&&void 0===n.value||t.push(n)},Cd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;2===i.field&&2===i.wire?t.message=e.readString()??void 0:3===i.field&&0===i.wire?t.code=e.readVarintNumber()??void 0:e.skip(i.wire)}return t},Ed=e=>{const t={attrs:[]};for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:1===i.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(i.wire);break;case 2:2===i.wire?t.name=e.readString()??void 0:e.skip(i.wire);break;case 3:2===i.wire?xd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Td=(e,t,i)=>{const n={attrs:[],events:[],service:t,scope:i};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=wd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=wd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=wd(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?xd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Ed(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Cd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Od=e=>{let t;for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const i=e.readMessage();if(!i)continue;const n=Sd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Ad=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},Nd=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=Ad(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Td(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},kd=e=>{let t;const i=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const i=e.readMessage();i&&(t=Od(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Nd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Id=e=>({key:e.key??null,value:e.value??null}),Dd=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?bd[e.statusCode]??null:null,u=(e.attrs??[]).map(Id);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,i=t>r?t-r:0n;return{name:e.name??null,offsetMs:Number(i)/1e6,attrs:(e.attrs??[]).map(Id)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?yd[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of i.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},_d=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new vd(e),i=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&i.push(...kd(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Dd(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Rd=e=>{const t=e.fields.reduce((e,{key:t,value:i})=>{const n=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(i);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Ld=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Ld(e)))}else if("object"==typeof n&&null!==n){const e=Ld(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Pd=(e,t=2)=>JSON.stringify(e||{},null,t),Ud=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Md=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Fd=oi("v1.33"),zd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Bd=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return i>0&&i<Fd},jd=oi("v1.20"),Hd=(e,t)=>{if(e!==vi.K8s)return!0;const i=oi(t);return!(i>0)||i>=jd},Xd=e=>e?zd.map(t=>e[t]??null):[],Wd={PID:"process.pid",VPID:"process.vpid"},Gd={[Si.Go]:"Go",[Si.Java]:"Java",[Si.JavaScript]:"Node.js",[Si.Python]:"Python",[Si.DotNet]:".NET",[Si.CSharp]:"C#",[Si.CPlusPlus]:"C++",[Si.Php]:"PHP",[Si.Ruby]:"Ruby",[Si.Rust]:"Rust",[Si.Swift]:"Swift",[Si.Elixir]:"Elixir",[Si.MySql]:"MySQL",[Si.Nginx]:"Nginx",[Si.Postgres]:"PostgreSQL",[Si.Redis]:"Redis",[Si.Kafka]:"Kafka",[Si.Ignored]:"Ignored",[Si.Unknown]:"Unknown",[Si.Processing]:"Processing",[Si.NoContainers]:"No Containers",[Si.NoRunningPods]:"No Running Pods"},Vd=[{id:Si.Go,label:Gd[Si.Go],icon:Ps(Si.Go)},{id:Si.Java,label:Gd[Si.Java],icon:Ps(Si.Java)},{id:Si.JavaScript,label:Gd[Si.JavaScript],icon:Ps(Si.JavaScript)},{id:Si.Python,label:Gd[Si.Python],icon:Ps(Si.Python)},{id:Si.Php,label:Gd[Si.Php],icon:Ps(Si.Php)},{id:Si.Ruby,label:Gd[Si.Ruby],icon:Ps(Si.Ruby)},{id:Si.Rust,label:Gd[Si.Rust],icon:Ps(Si.Rust)},{id:Si.DotNet,label:Gd[Si.DotNet],icon:Ps(Si.DotNet)},{id:Si.CSharp,label:Gd[Si.CSharp],icon:Ps(Si.CSharp)},{id:Si.CPlusPlus,label:Gd[Si.CPlusPlus],icon:Ps(Si.CPlusPlus)},{id:Si.Swift,label:Gd[Si.Swift],icon:Ps(Si.Swift)},{id:Si.Elixir,label:Gd[Si.Elixir],icon:Ps(Si.Elixir)}],Kd={id:Ui.OpentelemetryEbpfInstrumentation,label:Ui.OpentelemetryEbpfInstrumentation,icon:bt},Yd={[Si.Go]:{community:[{id:Ui.GolangCommunity,label:Ui.GolangCommunity,icon:Ps(Si.Go)},Kd],enterprise:[{id:Ui.GolangEnterprise,label:Ui.GolangEnterprise,icon:Ps(Si.Go)}]},[Si.JavaScript]:{community:[{id:Ui.NodejsCommunity,label:Ui.NodejsCommunity,icon:Ps(Si.JavaScript)},Kd],enterprise:[{id:Ui.NodejsEnterprise,label:Ui.NodejsEnterprise,icon:Ps(Si.JavaScript)}]},[Si.Python]:{community:[{id:Ui.PythonCommunity,label:Ui.PythonCommunity,icon:Ps(Si.Python)},Kd],enterprise:[{id:Ui.PythonEnterprise,label:Ui.PythonEnterprise,icon:Ps(Si.Python)}]},[Si.Java]:{community:[{id:Ui.JavaCommunity,label:Ui.JavaCommunity,icon:Ps(Si.Java)},Kd],enterprise:[{id:Ui.JavaEnterprise,label:Ui.JavaEnterprise,icon:Ps(Si.Java)},{id:Ui.JavaEbpfInstrumentations,label:Ui.JavaEbpfInstrumentations,icon:Ps(Si.Java)}]},[Si.DotNet]:{community:[{id:Ui.DotNetCommunity,label:Ui.DotNetCommunity,icon:Ps(Si.DotNet)},Kd],enterprise:[{id:Ui.DotNetEnterprise,label:Ui.DotNetEnterprise,icon:Ps(Si.DotNet)}]},[Si.Ruby]:{community:[{id:Ui.RubyCommunity,label:Ui.RubyCommunity,icon:Ps(Si.Ruby)},Kd],enterprise:[{id:Ui.RubyEnterprise,label:Ui.RubyEnterprise,icon:Ps(Si.Ruby)}]},[Si.Php]:{community:[{id:Ui.PhpCommunity,label:Ui.PhpCommunity,icon:Ps(Si.Php)},Kd],enterprise:[]},[Si.CSharp]:{community:[],enterprise:[{id:Ui.CPlusPlusEnterprise,label:Ui.CPlusPlusEnterprise,icon:Ps(Si.CSharp)}]},[Si.MySql]:{community:[],enterprise:[{id:Ui.MySqlEnterprise,label:Ui.MySqlEnterprise,icon:Ps(Si.MySql)}]},[Si.CPlusPlus]:{community:[Kd],enterprise:[]},[Si.Rust]:{community:[Kd],enterprise:[]},[Si.Swift]:{community:[Kd],enterprise:[]},[Si.Elixir]:{community:[Kd],enterprise:[]},[Si.Nginx]:{community:[Kd],enterprise:[]},[Si.Postgres]:{community:[Kd],enterprise:[]},[Si.Redis]:{community:[Kd],enterprise:[]},[Si.Kafka]:{community:[Kd],enterprise:[]},[Si.Ignored]:{community:[],enterprise:[]},[Si.Unknown]:{community:[Kd],enterprise:[]},[Si.Processing]:{community:[],enterprise:[]},[Si.NoContainers]:{community:[],enterprise:[]},[Si.NoRunningPods]:{community:[],enterprise:[]}},Jd="*",qd=e=>!!e?.includes(Jd),Qd=e=>e?.length?qd(e)?[Jd]:e:[],Zd=e=>{if(e?.length&&!qd(e))return e.filter(e=>e!==Jd)},ec=e=>e===Jd?"All languages":Gd[e]??e,tc=e=>e===Jd?vt:Ps(e),ic=oi("v1.26"),nc=(e,t)=>{if(e!==vi.K8s)return!1;const i=oi(t);return!(i>0)||i>=ic},rc=[Fi.NetworkMetrics],oc=e=>!rc.includes(e),ac=[{type:Fi.CodeAttributes,icon:Ys(Fi.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:[Si.Go,Si.Python,Si.JavaScript]},{type:Fi.CustomInstrumentation,icon:Ys(Fi.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:[Si.Go,Si.Java,Si.Php]},{type:Fi.HeadersCollection,icon:Ys(Fi.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:[Si.Go,Si.Java,Si.JavaScript]},{type:Fi.PayloadCollection,icon:Ys(Fi.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:[Si.Go,Si.JavaScript]}],sc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Ys(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},lc="Recommendations",dc="Optimize your observability setup with actionable recommendations.",cc="Recommended",uc="Applied",pc="Dismissed",hc="Not applicable",gc={[Sn.Recommended]:cc,[Sn.Applied]:uc,[Sn.Dismissed]:pc,[Sn.NotApplicable]:hc},mc="Accept",fc="Dismiss",yc="Restore",bc="Docs",vc="Benefits",wc="Considerations",$c="Apply Recommendation",Sc="Apply via UI",xc="Apply via GitOps",Cc="Via UI",Ec="Via GitOps",Tc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Oc="There are 2 ways to apply this recommendation.",Ac="Odigos applies the selected change immediately.",Nc="Commit the configuration to your repository and let your GitOps controller apply it.",kc="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Ic="No recommendations",Dc="There are no recommendations for this cluster right now.",_c="This recommendation does not currently apply to your cluster.",Rc="Recommendation dismissed",Lc="Recommendation restored",Pc="Recommendation applied successfully",Uc="Failed to apply recommendation",Mc={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.'},Fc={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."},zc={[gi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Bc="Cancel",jc="Save",Hc="Edit rule",Xc="Edit auto rule",Wc="Create rule",Gc="Delete rule",Vc="Save",Kc="Create your first rule",Yc="No Rules Exist",Jc="No Results",qc=e=>`No rules match the search term "${e}"`,Qc="Rule name",Zc="Rule type",eu="Select the type of condition that makes a trace highly relevant.",tu="Rule Enabled",iu="Rule Disabled",nu="Enabled",ru="Disabled",ou="Note",au="HTTP route",su="Method",lu="Keep Percentage",du="Keep traces with duration larger than",cu="Keep traces with errors",uu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",pu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",hu="Custom percentage",gu="Disabled rule",mu="Sample",fu="Keep all",yu="Drop all",bu="Operation type",vu="HTTP route prefix",wu="Templated path",$u="Templated path prefix",Su="Kafka topic",xu="Custom duration (ms)",Cu="No preview available",Eu="Server address",Tu="Drop at most this percentage of matching traces",Ou="Unnamed rule",Au="Sampling Preview",Nu="Source Scope",ku="Unknown source",Iu="Operation",Du="Duration",_u="Errors",Ru="Keep Percentage",Lu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Pu="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.",Uu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Mu="Retain traces with errors from the selected services and operations.",Fu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",zu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Bu={highlyRelevant:Fu,noisy:zu,costReduction:void 0},ju="Type rule name",Hu="Add note here...",Xu="Type here",Wu="Search source name",Gu="e.g. collector.my.vendor.com",Vu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ku="Rule will apply to all sources in the cluster",Yu="If multiple source scopes are set, they must all match simultaneously.",Ju="All sources",qu="-",Qu="All",Zu="Sources",ep="Namespaces",tp="Languages",ip="any of",np="AND",rp="All operations",op="HTTP server endpoint",ap="HTTP client endpoint",sp="Kafka consumer",lp="Kafka producer",dp="Sampling Rules",cp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',up="Refresh",pp="Create rule",hp="Sampling docs",gp="75vw",mp="Delete rule?",fp="Are you sure you want to delete this sampling rule?",yp="Delete",bp="Cancel",vp="Kubernetes Health Probes",wp="Keep All Error Traces",$p="Drop Traces Cluster-Wide",Sp="A rule with the same matching conditions already exists.",xp="Create this rule as-is?",Cp="This rule still uses the default configuration.\nDo you want to create it anyway?",Ep="Rule preview",Tp="Continue editing",Op="Create 'Noisy Operation Kubernetes Health Probes' rule",Ap="Edit 'Noisy Operation Kubernetes Health Probes' rule",Np="Automatically detect and sample health probe traces across the cluster.",kp="Create 'Highly Relevant Operations' rule",Ip="Edit 'Highly Relevant Operations' rule",Dp="Automatically keep all error traces across the entire cluster.",_p="Create 'Cost Reduction' rule",Rp="Edit 'Cost Reduction' rule",Lp="Automatically drop a percentage of traces across the entire cluster.",Pp="Skip setup",Up="Start setup",Mp="Next",Fp="Go to Sampling",zp="Read more",Bp="Welcome to Sampling",jp="Cut costs without losing what matters",Hp="Odigos sampling works in three stages:",Xp="Filter noisy traffic",Wp="Remove non-actionable traces like health checks.",Gp="Guarantee highly relevance operations",Vp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Kp="Reduce cost",Yp="Sample routine traffic using percentages.",Jp="Sampling does not drop individual spans - it keeps or drops the entire trace.",qp="Filter noisy operations",Qp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Zp="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.",eh="Preset Rules",th="Kubernetes Health Probes",ih="Automatically ignore health checks",nh="You can review, adjust, and add additional custom rules later.",rh="Choose your sampling strategy",oh="Pick the approach that best fits your balance of cost vs data-completeness",ah="Keep List",sh="Budget Friendly",lh="Define which traces must be kept, while all others are sampled by default to minimize cost.",dh="Cost-oriented - keeps only what you explicitly select.",ch="Best for very large clusters with high volumes of traces and high costs.",uh="Higher risk of missing important traces without ongoing review.",ph="Drop List",hh="Safe Choice",gh="Define which traces must be aggressively dropped, while all others are kept by default.",mh="Preserves most data unless explicitly filtered.",fh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",yh="Advanced",bh="Maximum Flexibility",vh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",wh="'Keep List' profile",$h="Protect important traces",Sh="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:",xh="Traces with errors",Ch="Slow requests (duration above threshold)",Eh="Mission-Critical endpoints or services",Th="Services under test or evaluation",Oh="New deployments",Ah="You can review, adjust, and add rules once onboarding is complete.",Nh="Common Rules",kh="Preset Rules",Ih="Error collection - entire cluster",Dh="Keep all traces with errors",_h="Ambient sampling percentage",Rh="'Drop List' profile",Lh="Reduce high-volume traffic",Ph="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.",Uh="Advanced Configuration",Mh="Configure sampling rules",Fh="Advanced mode allows you to configure all sampling categories:",zh="Noise Filtering - remove non-actionable traces",Bh="Highly Relevance - guarantee important traces are kept",jh='Cost Control - drop traces for "Normal" operations',Hh="Rules can target:",Xh="Services",Wh="HTTP Endpoints",Gh="DB Operations",Vh="Errors",Kh="Latency and more...",Yh="Sampling configured successfully!",Jh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",qh="Odigos will now:",Qh="Filter noisy operations",Zh="Guarantee important traces",eg="Reduce cost using controlled sampling",tg="Recommended",ig={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."},ng={noisy:Op,highlyRelevant:kp,costReduction:_p},rg={noisy:Ap,highlyRelevant:Ip,costReduction:Rp},og={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ag=[{id:Ki.Logs,value:"Logs"},{id:Ki.Metrics,value:"Metrics"},{id:Ki.Traces,value:"Traces"},{id:Ki.Profiles,value:"Profiles"}],sg=6048e5,lg="URL templatization",dg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",cg="Default templatization",ug="Custom and default URL templatization scopes across URL templatization actions.",pg="Default templatization is not enabled",hg="Automatically detect and templatize dynamic URL segments when no custom template matches.",gg="Enable for entire cluster",mg="Custom URL templates",fg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",yg="View by:",bg="Groups",vg="Tree",wg="List",$g="Create templating scope",Sg="Edit scoped templates",xg="Edit",Cg="Add template",Eg="Add templatization rules",Tg="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Og="Add templatization rule",Ag="Choose how to templatize dynamic URLs",Ng="Reduce route cardinality by replacing changing path segments with reusable placeholders.",kg="Before",Ig="After",Dg="/users/123/orders/456",_g="/users/{id}/orders/{orderId}",Rg="Automatic templatization",Lg="Recommended",Pg="Detect and templatize dynamic URL segments when no custom rule matches.",Ug="Applies to: Entire cluster",Mg="Reversible at any time",Fg="Enabled",zg="Need more control?",Bg="Create a custom rule for specific URL patterns.",jg="Create custom rule",Hg="Learn how it works",Xg="Docs",Wg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Gg="Default templatization is enabled — editor coming next.",Vg="746px",Kg="Add default templatization rule",Yg="Edit default templatization rule",Jg="Disable for a scope",qg="UI template rules",Qg="Source Scope",Zg="Scope",em="Choose which sources this template rule applies to.",tm="Sources where this template is tested and applied.",im="This rule will apply to all sources in the cluster.",nm="Default templatization",rm="Automatically templatize dynamic URL segments when no custom template matches.",om="Enable automatic URL templatization for this scope",am=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],sm="default templatization for this scope",lm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",dm="Disable",cm="Skip policy",um="Advanced",pm=["On public-facing services, bots and scanners often probe random paths that return errors such as 404. Applying default templatization to those paths can create high-cardinality routes.","Custom templates still match first. Skip policy only affects the default heuristic when no custom rule matched.","Choose either all non-2xx responses or specific status codes — not both."],hm=pm.join(" "),gm="Skip default templatization for all non-2xx responses",mm="Skip default templatization for specific HTTP status codes",fm="Example: 404, 401",ym="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",bm="This rule will take effect in the cluster immediately after it is added.",vm="This rule will take effect in the cluster immediately after it is saved.",wm="No template changes. Save will keep the current templates.";function $m(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:wm}const Sm="Add rule",xm="Save",Cm="Cancel",Em="Cancel without saving",Tm="Delete",Om="templating scope";function Am(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Nm="Enter valid HTTP status codes between 100 and 599, separated by commas.",km="Create custom template",Im="Create new scoped template",Dm="Add URL templates",_m="UI template rules",Rm=e=>`To ${e}`,Lm=e=>`Applies to ${e} source${1===e?"":"s"}`,Pm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Um=e=>`Applies to ${e} language${1===e?"":"s"}`,Mm="Applies to entire cluster",Fm=e=>`Applies to ${e} scope${1===e?"":"s"}`,zm="Where should this rule apply?",Bm=zm,jm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Hm="Specific scope",Xm="Entire cluster",Wm="Apply the rule only where it is needed.",Gm="Apply to every source in this cluster.",Vm="Quick start",Km="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Ym="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Jm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",qm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",Qm="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",Zm="Add to existing template group",ef="Create new template group",tf="Add here",nf="Create New",rf="Existing templating scope",of="Templating scopes",af="Select where to add the new template",sf="A template group already uses this scope",lf="Choose where to add the new templates.",df="Add to existing template group",cf="Create a separate template group",uf="Use different settings or behavior for the same scope.",pf="View action settings",hf="Default settings",gf=e=>rf,mf=e=>1===e?"1 template":`${e} templates`,ff="Templating scope",yf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,bf="Template group will be added to the default action. Expand Select action to choose a different one.",vf="Select action",wf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",$f="Advanced settings",Sf="Default UI-managed action · Recommended",xf="Create a new action",Cf="Select action",Ef="Default UI-managed action",Tf="Add this template group to the default UI-managed action.",Of="Select action",Af="Choose an existing action or create a new one for this template group.",Nf="Search template group by type action name or scope (languages, namespaces, sources)",kf="Selected Template group:",If="URL templatization action",Df="Create new action",_f="__odigos_create_new_url_templatization_action__",Rf=Af,Lf="New action name",Pf="New action group",Uf="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",Mf="Create new template group",Ff="Next",zf="Back",Bf="Action name",jf="Action",Hf="UI template rules",Xf="__odigos_default_url_templatization_action__",Wf="UI-owned",Gf="Externally synced",Vf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Kf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Yf=Wf,Jf="Templates",qf="Other templates in this group",Qf="Additional templates that share the same source scope and Action as this rule.",Zf="e.g. /api/users/{id}",ey="Language",ty="Namespace",iy="Source",ny="AND",ry="Entire cluster",oy="Unset",ay="Enabled globally",sy="Default templating disabled",ly="Enabled",dy="Default templatization is unset. No default rules are configured on an enabled action.",cy="Default templatization is enabled globally.",uy="Default templatization is disabled for the entire cluster.";function py(e){return e<=0?cy:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const hy="Disabled for these scopes",gy="Disable for a scope",my="Delete",fy="disabled scope",yy="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",by="Automatic templatization",vy="Active",wy="Custom and default URL templatization scopes across URL templatization actions.",$y="Custom templates take precedence over automatic templatization.",Sy="Scope",xy="Status codes",Cy="Disabled",Ey="Entire cluster",Ty="All",Oy="None",Ay="Disabled",Ny="No disabled scope configured",ky="Add disabled",Iy="Disabled scopes",Dy="Advanced",_y=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Ry="Automatic templatization off for matching traffic.",Ly="Disable for a scope",Py="Scope",Uy="Effective behavior",My="Status",Fy="Automatic templatization off",zy="Covered by broader exception",By="Disabled",jy="Redundant",Hy="No disabled scope configured",Xy="Disable automatic templatization for specific scopes when needed.",Wy=(e,t)=>`${e} configured • ${t} effective`,Gy=e=>1===e?"1 scope":`${e} scopes`,Vy="Default templatization is enabled for all HTTP status codes.";function Ky(e){return e<=0?Vy:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Yy="HTTP status code policies",Jy="No skip policy configured",qy="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",Qy="Add skip policy for a scope",Zy="Add skip policy for a scope",eb="Skip default templatization on HTTP errors",tb="Delete",ib="skip policy",nb="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",rb="Template details",ob="Template",ab="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",sb="Created via",lb="Action name",db="Kubernetes name",cb="Odigos Action (Kubernetes resource) where this template is managed.",ub="Try a URL",pb="/users/12/orders/345685335358",hb="Test URL",gb="Close",mb="Result",fb="Templated URL path",yb="Match found",bb="This URL matches the template.",vb="No match",wb="This URL doesn't match the template.",$b="Check the URL structure and parameter positions, then try again.",Sb=Ft()(ti(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:qa.DARK_MODE,storage:"undefined"!=typeof window?ii(()=>localStorage):void 0})),xb={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ka},Cb=Ft(e=>({...xb,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(xb)}));var Eb;(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"})(Eb||(Eb={}));const Tb=e=>`add-${Fa(e).replaceAll(" ","-").toLowerCase()}`,Ob=e=>`edit-${Fa(e).replaceAll(" ","-").toLowerCase()}`,Ab=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Nb=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),kb=Ft(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:Nb})),Ib=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Db;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Db||(Db={}));const _b=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Rb=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Lb=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=_b();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...r.progress,[i]:Rb(o)}})},addProgress:(i,n,r)=>{const o=t(),a=_b(i,o.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...o.progress,[i]:Rb(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Pb=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ub={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Mb=(e,t)=>e.destinationType.type!==t.destinationType.type,Fb=Ft(e=>({...Ub,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=>Mb(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Mb(e,t))})),clearStore:()=>e(()=>({...Ub}))})),zb=e=>{function t(){return void 0===e?{}:vs(e)}const[i,n]=jt(t()),[r,o]=jt({}),[a,s]=jt(t()),l=Xt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Wt(()=>!d(a,i),[a,i]);Ht(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>ws("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=vs(e);let n=i;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,i}),o(e=>{const t=i,n=r[r.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?o(i=>({...i,[e]:t})):o(e=>{const n=vs(e);let r=n;for(let e=0;e<i.length-1;e++){const t=i[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[i[i.length-1]]=t,n})}else i&&o({...i})},resetFormData:e=>{const i=e||t();n(i),s(i),o({})},getNestedValue:u}},Bb={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},jb=()=>{const{addNotification:e}=Ib(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=zb(Bb);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:o,validateForm:i=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":id(t)&&(n[e]=Qa.FIELD_IS_REQUIRED)}}),t.type===ai.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Qa.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Ai.Warning,title:i.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...vs(Bb),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case li.LabelsAttributes:case li.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case li.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case li.CollectContainerAttributes:case li.CollectReplicaSetAttributes:case li.CollectWorkloadId:case li.CollectClusterId:case li.ClusterAttributes:case li.OverwriteExistingValues:case li.AttributeNamesToDelete:case li.Renames:case li.PiiCategories:case li.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Hb=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xb=()=>{const e=Gt(null),[t,i]=jt(0),[n,r]=jt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},Wb="data-ignore-outside-click",Gb=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Wb))return!0;t=t.parentNode}return!1},Vb=(e,t)=>{const i=Gt(t);i.current=t,Ht(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Gb(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Kb=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Gt(null),[o,a]=jt(!1),[s,l]=jt({top:0,left:0}),[d,c]=jt({edge:"top",align:"left"});return Vb(r,()=>{o&&(a(!1),i?.())}),{popupRef:r,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(i,o)=>{if("local"===n)return void l({top:o,left:i});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=i/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=i;if(g>=s/2&&(g+=-u),"center"===h){m=i-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=i-d);l({top:g,left:m})}}},Yb=n.div`
|
|
197
197
|
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
198
198
|
position: relative;
|
|
199
199
|
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
@@ -205,7 +205,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
205
205
|
text-overflow: ellipsis;
|
|
206
206
|
white-space: nowrap;
|
|
207
207
|
`}
|
|
208
|
-
`,Jb=
|
|
208
|
+
`,Jb=n.div`
|
|
209
209
|
position: fixed;
|
|
210
210
|
top: ${({$top:e})=>e}px;
|
|
211
211
|
left: ${({$left:e})=>e}px;
|
|
@@ -217,21 +217,21 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
217
217
|
min-width: 0;
|
|
218
218
|
|
|
219
219
|
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
220
|
-
`,qb=
|
|
220
|
+
`,qb=n.div`
|
|
221
221
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
222
222
|
border-radius: 4px;
|
|
223
223
|
padding: 8px;
|
|
224
224
|
max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
|
|
225
225
|
box-sizing: border-box;
|
|
226
226
|
min-width: 0;
|
|
227
|
-
`,Qb=
|
|
227
|
+
`,Qb=n.div`
|
|
228
228
|
display: flex;
|
|
229
229
|
flex-direction: column;
|
|
230
230
|
align-items: flex-start;
|
|
231
231
|
gap: 8px;
|
|
232
232
|
width: 100%;
|
|
233
233
|
min-width: 0;
|
|
234
|
-
`,Zb=
|
|
234
|
+
`,Zb=n.div`
|
|
235
235
|
display: flex;
|
|
236
236
|
width: 100%;
|
|
237
237
|
flex-shrink: 0;
|
|
@@ -241,7 +241,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
241
241
|
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
242
242
|
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
243
243
|
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
244
|
-
`,ev=
|
|
244
|
+
`,ev=n.div`
|
|
245
245
|
width: 0;
|
|
246
246
|
height: 0;
|
|
247
247
|
border-style: solid;
|
|
@@ -250,7 +250,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
250
250
|
flex-shrink: 0;
|
|
251
251
|
|
|
252
252
|
${({$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 `}
|
|
253
|
-
`,tv=({withIcon:
|
|
253
|
+
`,tv=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Wt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:w,popupPosition:$,arrowPlacement:S,handlePosition:x}=Kb({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),C=Wt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),E=e=>{const{type:t,clientX:i,clientY:n}=e;C?x($.left||i,$.top||n):x(i,n),w("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(Yb,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&qt.createPortal(e(Jb,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(Zb,{$align:S.align,children:t(ev,{$pointsUp:!0})}),t(qb,{$maxWidth:p,children:e(Qb,{children:[(!!r||!!a)&&e(kl,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Ga,{size:Ba.XS,children:a},"title")]}),f.map((e,i)=>t(Ga,{size:Ba.XXXS,children:e},i)),!!l&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(Zb,{$align:S.align,children:t(ev,{$pointsUp:!1})})]}),document.body)]})};var iv,nv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(iv||(iv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(nv||(nv={}));const rv=n.button`
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
justify-content: ${({$align:e})=>e};
|
|
@@ -260,14 +260,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
260
260
|
`}
|
|
261
261
|
border: none;
|
|
262
262
|
border-radius: 6px;
|
|
263
|
-
${({$size:e,$hasLabel:t})=>e===
|
|
263
|
+
${({$size:e,$hasLabel:t})=>e===nv.S?r`
|
|
264
264
|
height: 32px;
|
|
265
265
|
${t?r`
|
|
266
266
|
padding: 8px 16px;
|
|
267
267
|
`:r`
|
|
268
268
|
width: 32px;
|
|
269
269
|
`}
|
|
270
|
-
`:e===
|
|
270
|
+
`:e===nv.M?r`
|
|
271
271
|
height: 38px;
|
|
272
272
|
${t?r`
|
|
273
273
|
padding: 8px 18px;
|
|
@@ -292,7 +292,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
292
292
|
${({$withShadow:e})=>e?r`
|
|
293
293
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
294
294
|
`:""}
|
|
295
|
-
${({$variant:e,$isSelected:t})=>e===
|
|
295
|
+
${({$variant:e,$isSelected:t})=>e===iv.Primary?r`
|
|
296
296
|
background-color: ${({theme:e})=>t?e.v2.colors.purple[600]:e.v2.colors.purple[500]};
|
|
297
297
|
&:hover {
|
|
298
298
|
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
@@ -300,7 +300,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
300
300
|
&:active {
|
|
301
301
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
302
302
|
}
|
|
303
|
-
`:e===
|
|
303
|
+
`:e===iv.Secondary?r`
|
|
304
304
|
background-color: ${({theme:e})=>t?e.v2.colors.silver[600]:e.v2.colors.silver[750]};
|
|
305
305
|
&:hover {
|
|
306
306
|
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
@@ -308,7 +308,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
308
308
|
&:active {
|
|
309
309
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
310
310
|
}
|
|
311
|
-
`:e===
|
|
311
|
+
`:e===iv.Text?r`
|
|
312
312
|
background-color: ${({theme:e})=>t?e.v2.colors.grey[700]:"transparent"};
|
|
313
313
|
&:hover {
|
|
314
314
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
@@ -318,7 +318,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
318
318
|
}
|
|
319
319
|
`:""}
|
|
320
320
|
}
|
|
321
|
-
`,av=zt(({"data-id":i,label:r,tooltip:o,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=nv.Primary,size:u=iv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:y,textAlign:b="center",disabled:v,onClick:w,...$},S)=>{const x=a(),C=h||(u===iv.L?18:16),E=u===iv.L?Bo.S:Bo.XS,T=y||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,A]=jt(!1),N=!(!g&&!O),k=!(!v&&!N),I=Wt(async e=>{e.stopPropagation(),A(!0);try{await(w?.(e))}finally{A(!1)}},[w]);return t(rv,{ref:S,"data-id":i,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:b,...$,disabled:k,onClick:k?void 0:I,children:t(tv,{text:o,withIcon:!s,children:N?t(jl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(n,{children:[l&&t(Dl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Go,{size:E,weight:500,color:T,nowrap:!0,align:b,children:r}):null,d&&t(Dl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});av.displayName=av.name;const ov=({onDone:e}={})=>{const[n,i]=jt(!1),[r,a]=jt(-1),o=Wt(async(t,r)=>{if(!n){if(i(!0),void 0!==r&&a(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),a(-1)},1e3)}},[n,e]);return{CopyButton:Wt(({value:e,...i})=>t(av,{leftIcon:n?wt:$t,onClick:()=>o(e),variant:nv.Secondary,size:iv.S,...i}),[n]),isCopied:n,copiedIndex:r,clickCopy:o}},sv=e=>{const{addNotification:t}=Ib(),{formData:n,handleFormChange:i,formErrors:r,handleErrorChange:a,resetFormData:o}=zb(e);return{formData:n,formErrors:r,handleFormChange:i,resetFormData:o,validateForm:e=>{const i={};let r=!0;return n.name?id(n.name)?i.name=void 0:(r=!1,i.name=Qo.ILLEGAL_K8S_LABEL):(r=!1,i.name=Qo.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Nn.Warning,title:e.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,i),r},loadFormWithDrawerItem:({name:t})=>{const n={...vs(e),name:t};i(void 0,void 0,n)}}},lv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},dv=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:i}=Ib(),{formData:r,formErrors:a,handleFormChange:o,handleErrorChange:s,resetFormData:l}=zb(lv),[d,c]=jt([]),[u,p]=jt([]);return Ht(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:i,displayName:r,initialValue:a,renderCondition:o}=e;if(n===On.Dropdown){const e=ss(i,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:r,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:o,...e}}return{name:t,componentType:n,title:r,value:a,renderCondition:o,...ss(i,{})}})).map(e=>{if(n){const t="string"==typeof n?ss(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),Ht(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));o("fields",e)}},[u]),Ht(()=>{if(t&&0===ud(r.exportedSignals).length){const{logs:e,metrics:n,traces:i}=t;o("exportedSignals",{logs:e.supported,metrics:n.supported,traces:i.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:a,handleFormChange:o,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:i,required:r})=>{r&&!i&&(n=!1,t[e]=Qo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&i({type:Nn.Warning,title:e.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:i,fields:r})=>{const a={...vs(lv),type:e,name:t,disabled:n,exportedSignals:i,fields:Object.entries(ss(r,{})).map(([e,t])=>({key:e,value:t}))};return o(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},cv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Wn.HttpRequest]:null,[Wn.HttpResponse]:null,[Wn.DbQuery]:null,[Wn.Messaging]:null},codeAttributes:{[Bn.Column]:null,[Bn.FilePath]:null,[Bn.Function]:null,[Bn.LineNumber]:null,[Bn.Namespace]:null,[Bn.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hn.Java]:null,[Hn.Golang]:null,[Hn.Php]:null},networkMetrics:null},uv=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:i,resetFormData:r}=zb(cv);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:i,sourceScopes:r,payloadCollection:a,codeAttributes:o,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...vs(cv),ruleName:e,notes:t,disabled:i,sourceScopes:r??null,networkMetrics:d??null};a&&(c.payloadCollection={[Wn.HttpRequest]:a[Wn.HttpRequest]?{}:null,[Wn.HttpResponse]:a[Wn.HttpResponse]?{}:null,[Wn.DbQuery]:a[Wn.DbQuery]?{}:null,[Wn.Messaging]:a[Wn.Messaging]?{}:null}),o&&(c.codeAttributes={[Bn.Column]:o[Bn.Column]||null,[Bn.FilePath]:o[Bn.FilePath]||null,[Bn.Function]:o[Bn.Function]||null,[Bn.LineNumber]:o[Bn.LineNumber]||null,[Bn.Namespace]:o[Bn.Namespace]||null,[Bn.StackTrace]:o[Bn.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hn.Java]:l[Hn.Java]||null,[Hn.Golang]:l[Hn.Golang]||null,[Hn.Php]:l[Hn.Php]||null}),n(void 0,void 0,c)}}},pv=({active:e,key:t,withAltKey:n,withCtrlKey:i,withShiftKey:r,withMetaKey:a},o)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!i||i&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),o(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,i,r,a,o]),null),hv=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[i,r]=jt(!1),a=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return Vt(()=>{const t=e.current;if(!t)return;a(t);const n=new ResizeObserver(()=>a(t));return n.observe(t),()=>n.disconnect()},[t,...n]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&a(n)}),()=>{t=!0}},[t,...n]),i},gv=(e,{behavior:t="smooth",block:n="center",inline:i,delayMs:r=50}={})=>{const a=Gt(null);return Ht(()=>{if(!e)return;const o=window.setTimeout(()=>{a.current?.scrollIntoView({behavior:t,block:n,inline:i})},r);return()=>window.clearTimeout(o)},[e,t,n,i,r]),a},mv=({sectionNames:e,threshold:t=.4})=>{const[n,i]=jt(e[0]||""),[r,a]=jt(null),o=Gt({}),s=Gt(!1),l=Gt(!1),d=Wt((e,t)=>{o.current[e]=t},[]),c=Wt(e=>{a(e)},[]),u=Wt(e=>{l.current=!0,i(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=o.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]),Ht(()=>{const n=o.current,a=e.map(e=>n[e]).filter(Boolean);if(!a.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&&i(e);break}},{threshold:t,root:r});return a.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var fv,yv;(e=>{e.Left="left",e.Right="right"})(fv||(fv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const bv=({defaultOpen:e=!1,open:t,onOpenChange:n,alignX:i,alignY:r,withOffset:a=!0,fullWidth:o}={})=>{const s=void 0!==t,[l,d]=jt(e),c=s?t:l,u=Wt(e=>{s||d(e),n?.(e)},[s,n]),[p,h]=jt({x:i||fv.Left,y:r||yv.Bottom}),g=Gt(null),m=Gt(!1);Ht(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Gb(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,y]=jt({}),b=Wt((e,t)=>{const n=g.current?.getBoundingClientRect();if(!n)return;const i=a?8:0;y({top:t===yv.Bottom?a?n.bottom+i:n.top:void 0,bottom:t===yv.Top?a?window.innerHeight-n.top+i:window.innerHeight-n.bottom:void 0,left:e===fv.Left?n.left:void 0,right:e===fv.Right?window.innerWidth-n.right:void 0,width:o?n.width:void 0})},[a,o]),v=Wt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const n={x:i||(e.clientX>window.innerWidth/2?fv.Right:fv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.Bottom)};h(n),b(n.x,n.y)},[c,u,i,r,b]),w=Wt(e=>{e.stopPropagation()},[]);return Vt(()=>{c&&b(p.x,p.y)},[c,p.x,p.y,b]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:w}},vv=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?ss(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wv={otelServiceName:"",currentStreamName:""},$v=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:i,resetFormData:r}=zb(wv);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const i={...vs(wv),otelServiceName:e||t.name||""};n(void 0,void 0,i)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Sv=new Yt(Jt.locale),xv=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{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"}],Cv=(e,{units:t=2,style:n="long",suffix:i=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===n?"0s":i?"just now":"0 seconds";const a=[];for(const e of xv){if(a.length===t)break;const i=Math.floor(r/e.ms);if(!(i<=0&&0===a.length)){if(i<=0)break;r-=i*e.ms,a.push("short"===n?`${i}${e.short}`:`${i} ${1===i?e.long[0]:e.long[1]}`)}}const o="short"===n?a.join(""):a.join(" ");return i&&"long"===n?`${o} ago`:o},Ev=(e,t)=>Cv(6e4*Math.max(0,e),t),Tv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ov=()=>{const[e,t]=jt(0);return Ht(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Wt(e=>{try{return Sv.format(Tv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Wt((e,t)=>{try{const n=Tv(e);return Cv(Date.now()-n.getTime(),t)}catch(e){return"-"}},[e])}};var Av;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Av||(Av={}));const Nv=(e,t,n)=>{switch(t){case Av.Purple:return e.v2.colors.purple[n?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Av.Blue:return e.v2.colors.blue[n?"300":"1000"];case Av.Pink:return e.v2.colors.red[n?"300":"1000"];case Av.Green:return e.v2.colors.green[n?"300":"900"];case Av.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},kv=i.div`
|
|
321
|
+
`,ov=zt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=iv.Primary,size:u=nv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:y,textAlign:b="center",disabled:v,onClick:w,...$},S)=>{const x=o(),C=h||(u===nv.L?18:16),E=u===nv.L?Ba.S:Ba.XS,T=y||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,A]=jt(!1),N=!(!g&&!O),k=!(!v&&!N),I=Xt(async e=>{e.stopPropagation(),A(!0);try{await(w?.(e))}finally{A(!1)}},[w]);return t(rv,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:b,...$,disabled:k,onClick:k?void 0:I,children:t(tv,{text:a,withIcon:!s,children:N?t(jl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Dl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Ga,{size:E,weight:500,color:T,nowrap:!0,align:b,children:r}):null,d&&t(Dl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});ov.displayName=ov.name;const av=({onDone:e}={})=>{const[i,n]=jt(!1),[r,o]=jt(-1),a=Xt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Xt(({value:e,...n})=>t(ov,{leftIcon:i?wt:$t,onClick:()=>a(e),variant:iv.Secondary,size:nv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},sv=e=>{const{addNotification:t}=Ib(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=zb(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?nd(i.name)?n.name=void 0:(r=!1,n.name=Qa.ILLEGAL_K8S_LABEL):(r=!1,n.name=Qa.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Ai.Warning,title:e.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...vs(e),name:t};n(void 0,void 0,i)}}},lv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},dv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Ib(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=zb(lv),[d,c]=jt([]),[u,p]=jt([]);return Ht(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:r,initialValue:o,renderCondition:a}=e;if(i===Ti.Dropdown){const e=ss(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:i,title:r,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:r,value:o,renderCondition:a,...ss(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ss(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Ht(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Ht(()=>{if(t&&0===ud(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=Qa.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ai.Warning,title:e.alertTitle,message:Qa.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...vs(lv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ss(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},cv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Hi.HttpRequest]:null,[Hi.HttpResponse]:null,[Hi.DbQuery]:null,[Hi.Messaging]:null},codeAttributes:{[zi.Column]:null,[zi.FilePath]:null,[zi.Function]:null,[zi.LineNumber]:null,[zi.Namespace]:null,[zi.StackTrace]:null},headersCollection:null,customInstrumentations:{[ji.Java]:null,[ji.Golang]:null,[ji.Php]:null},networkMetrics:null},uv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zb(cv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...vs(cv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[Hi.HttpRequest]:o[Hi.HttpRequest]?{}:null,[Hi.HttpResponse]:o[Hi.HttpResponse]?{}:null,[Hi.DbQuery]:o[Hi.DbQuery]?{}:null,[Hi.Messaging]:o[Hi.Messaging]?{}:null}),a&&(c.codeAttributes={[zi.Column]:a[zi.Column]||null,[zi.FilePath]:a[zi.FilePath]||null,[zi.Function]:a[zi.Function]||null,[zi.LineNumber]:a[zi.LineNumber]||null,[zi.Namespace]:a[zi.Namespace]||null,[zi.StackTrace]:a[zi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[ji.Java]:l[ji.Java]||null,[ji.Golang]:l[ji.Golang]||null,[ji.Php]:l[ji.Php]||null}),i(void 0,void 0,c)}}},pv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,r,o,a]),null),hv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=jt(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const i=e.current;!t&&i&&o(i)}),()=>{t=!0}},[t,...i]),n},gv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Gt(null);return Ht(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:i,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,i,n,r]),o},mv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=jt(e[0]||""),[r,o]=jt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[i];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[i]),Ht(()=>{const i=a.current,o=e.map(e=>i[e]).filter(Boolean);if(!o.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:r});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:i,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var fv,yv;(e=>{e.Left="left",e.Right="right"})(fv||(fv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const bv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=jt(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=jt({x:n||fv.Left,y:r||yv.Bottom}),g=Gt(null),m=Gt(!1);Ht(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Gb(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,y]=jt({}),b=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;y({top:t===yv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===yv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===fv.Left?i.left:void 0,right:e===fv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?fv.Right:fv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.Bottom)};h(i),b(i.x,i.y)},[c,u,n,r,b]),w=Xt(e=>{e.stopPropagation()},[]);return Vt(()=>{c&&b(p.x,p.y)},[c,p.x,p.y,b]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:w}},vv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ss(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wv={otelServiceName:"",currentStreamName:""},$v=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=zb(wv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...vs(wv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Sv=new Yt(Jt.locale),xv=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{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"}],Cv=(e,{units:t=2,style:i="long",suffix:n=!0}={})=>{let r=Math.max(0,e);if(r<1e3)return"short"===i?"0s":n?"just now":"0 seconds";const o=[];for(const e of xv){if(o.length===t)break;const n=Math.floor(r/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;r-=n*e.ms,o.push("short"===i?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===i?o.join(""):o.join(" ");return n&&"long"===i?`${a} ago`:a},Ev=(e,t)=>Cv(6e4*Math.max(0,e),t),Tv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ov=()=>{const[e,t]=jt(0);return Ht(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return Sv.format(Tv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Tv(e);return Cv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Av;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Av||(Av={}));const Nv=(e,t,i)=>{switch(t){case Av.Purple:return e.v2.colors.purple[i?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Av.Blue:return e.v2.colors.blue[i?"300":"1000"];case Av.Pink:return e.v2.colors.red[i?"300":"1000"];case Av.Green:return e.v2.colors.green[i?"300":"900"];case Av.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},kv=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
@@ -333,11 +333,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
333
333
|
width: fit-content;
|
|
334
334
|
`}
|
|
335
335
|
|
|
336
|
-
${({$disabled:e,$variant:t,$withClick:
|
|
336
|
+
${({$disabled:e,$variant:t,$withClick:i})=>e?r`
|
|
337
337
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
338
338
|
`:r`
|
|
339
339
|
background-color: ${({theme:e})=>Nv(e,t)};
|
|
340
|
-
${
|
|
340
|
+
${i&&r`
|
|
341
341
|
cursor: pointer;
|
|
342
342
|
&:hover,
|
|
343
343
|
&:active {
|
|
@@ -345,7 +345,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
345
345
|
}
|
|
346
346
|
`}
|
|
347
347
|
`}
|
|
348
|
-
`,Iv=({variant:
|
|
348
|
+
`,Iv=({variant:i=Av.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d})=>{const c=o(),u=l?c.v2.colors.grey[400]:i===Av.Default?c.v2.colors.white[500]:Nv(c,i,!0),p=i===Av.Loader;return e(kv,{$variant:i,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,children:[r&&t(r,{fill:u,size:16}),p?t(jl,{withGradient:!0,title:n,titleSize:Ba.XXS}):t(Ga,{color:u,size:Ba.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},Dv=n.div`
|
|
349
349
|
display: flex;
|
|
350
350
|
align-items: center;
|
|
351
351
|
justify-content: center;
|
|
@@ -355,9 +355,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
355
355
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
356
356
|
border-radius: 100px;
|
|
357
357
|
background-color: ${({$backgroundColor:e})=>e};
|
|
358
|
-
`,_v=({label:
|
|
358
|
+
`,_v=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Ai.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=i?.toString(),y=Ai.Loading===s,b=s?[Ai.Disabled,Ai.Loading].includes(s)?sl(m,s,d?"400":"700"):[Ai.Unknown].includes(s)?sl(m,s,"600"):sl(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Ai.Unknown].includes(s)?b:[Ai.Disabled,Ai.Loading].includes(s)?m.v2.colors.grey[400]:[Ai.Error,Ai.Warning,Ai.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),w=p||(d&&![Ai.Unknown].includes(s)?[Ai.Disabled,Ai.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(tv,{text:a,fullWidth:g,children:e(Dv,{$backgroundColor:w,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(jl,{withGradient:!0,title:f,titleSize:c||Ba.XXS}):t(Ga,{color:v,size:c||Ba.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Rv=n.div`
|
|
359
359
|
position: relative;
|
|
360
|
-
`,Lv=
|
|
360
|
+
`,Lv=n.div`
|
|
361
361
|
position: fixed;
|
|
362
362
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
363
363
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -375,51 +375,51 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
375
375
|
border-radius: 6px;
|
|
376
376
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
377
377
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
378
|
-
`,Pv=({defaultOpen:
|
|
378
|
+
`,Pv=({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=bv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...y}=s??{};return e(Rv,{ref:h,onMouseDown:m,children:[t(ov,{label:"Open",variant:iv.Secondary,size:nv.S,...y,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Qt(t(Lv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Uv={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"},mint:{500:"#4CD1F2",1e3:"#062A31"},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",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},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"}},Mv={v2:Uv.v2,darkMode:!0,colors:{...Uv.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:Uv.font_family},Fv={v2:Uv.v2,darkMode:!1,colors:{...Uv.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:Uv.font_family},zv=e=>e?Mv:Fv,Bv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Uv,darkModeTheme:Mv,getTheme:zv,lightModeTheme:Fv},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const jv=({children:e})=>{const{darkMode:i}=Sb();return t(s,{theme:zv(i),children:e})},Hv={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"},Xv=Object.freeze(Object.defineProperty({__proto__:null,hex:Hv},Symbol.toStringTag,{value:"Module"})),Wv={in:{left:a`
|
|
379
379
|
from { transform: translateX(-100%); }
|
|
380
380
|
to { transform: translateX(0); }
|
|
381
|
-
`,right:
|
|
381
|
+
`,right:a`
|
|
382
382
|
from { transform: translateX(100%); }
|
|
383
383
|
to { transform: translateX(0); }
|
|
384
|
-
`,top:
|
|
384
|
+
`,top:a`
|
|
385
385
|
from { transform: translateY(-100%); }
|
|
386
386
|
to { transform: translateY(0); }
|
|
387
|
-
`,bottom:
|
|
387
|
+
`,bottom:a`
|
|
388
388
|
from { transform: translateY(100%); }
|
|
389
389
|
to { transform: translateY(0); }
|
|
390
|
-
`,center:
|
|
390
|
+
`,center:a`
|
|
391
391
|
from { transform: translate(-50%, 100%); }
|
|
392
392
|
to { transform: translate(-50%, -50%); }
|
|
393
|
-
`},out:{left:
|
|
393
|
+
`},out:{left:a`
|
|
394
394
|
from { transform: translateX(0); }
|
|
395
395
|
to { transform: translateX(-100%); }
|
|
396
|
-
`,right:
|
|
396
|
+
`,right:a`
|
|
397
397
|
from { transform: translateX(0); }
|
|
398
398
|
to { transform: translateX(100%); }
|
|
399
|
-
`,top:
|
|
399
|
+
`,top:a`
|
|
400
400
|
from { transform: translateY(0); }
|
|
401
401
|
to { transform: translateY(-100%); }
|
|
402
|
-
`,bottom:
|
|
402
|
+
`,bottom:a`
|
|
403
403
|
from { transform: translateY(0); }
|
|
404
404
|
to { transform: translateY(100%); }
|
|
405
|
-
`,center:
|
|
405
|
+
`,center:a`
|
|
406
406
|
from { transform: translate(-50%, -50%); }
|
|
407
407
|
to { transform: translate(-50%, 100%); }
|
|
408
|
-
`}},Gv={in:
|
|
408
|
+
`}},Gv={in:a`
|
|
409
409
|
from {
|
|
410
410
|
width: 0%;
|
|
411
411
|
}
|
|
412
412
|
to {
|
|
413
413
|
width: 100%;
|
|
414
414
|
}
|
|
415
|
-
`,out:
|
|
415
|
+
`,out:a`
|
|
416
416
|
from {
|
|
417
417
|
width: 100%;
|
|
418
418
|
}
|
|
419
419
|
to {
|
|
420
420
|
width: 0%;
|
|
421
421
|
}
|
|
422
|
-
`},Vv=
|
|
422
|
+
`},Vv=a`
|
|
423
423
|
0% {
|
|
424
424
|
transform: scale(1);
|
|
425
425
|
opacity: 1;
|
|
@@ -428,28 +428,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
428
428
|
transform: scale(2);
|
|
429
429
|
opacity: 0;
|
|
430
430
|
}
|
|
431
|
-
`,Kv=
|
|
431
|
+
`,Kv=a`
|
|
432
432
|
0% {
|
|
433
433
|
background-position: -500px 0;
|
|
434
434
|
}
|
|
435
435
|
100% {
|
|
436
436
|
background-position: 500px 0;
|
|
437
437
|
}
|
|
438
|
-
`,Yv={in:
|
|
438
|
+
`,Yv={in:a`
|
|
439
439
|
from {
|
|
440
440
|
opacity: 0;
|
|
441
441
|
}
|
|
442
442
|
to {
|
|
443
443
|
opacity: 1;
|
|
444
444
|
}
|
|
445
|
-
`,out:
|
|
445
|
+
`,out:a`
|
|
446
446
|
from {
|
|
447
447
|
opacity: 1;
|
|
448
448
|
}
|
|
449
449
|
to {
|
|
450
450
|
opacity: 0;
|
|
451
451
|
}
|
|
452
|
-
`},Jv=Object.freeze(Object.defineProperty({__proto__:null,fade:Yv,ping:Vv,progress:Gv,shimmer:Kv,slide:
|
|
452
|
+
`},Jv=Object.freeze(Object.defineProperty({__proto__:null,fade:Yv,ping:Vv,progress:Gv,shimmer:Kv,slide:Wv},Symbol.toStringTag,{value:"Module"}));var qv,Qv;(e=>{e.S="s",e.L="l"})(qv||(qv={})),(e=>{e.Filled="filled",e.Underline="underline"})(Qv||(Qv={}));const Zv=n.div`
|
|
453
453
|
display: flex;
|
|
454
454
|
align-items: center;
|
|
455
455
|
gap: 2px;
|
|
@@ -457,38 +457,38 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
457
457
|
border-radius: 6px;
|
|
458
458
|
border: none;
|
|
459
459
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
460
|
-
`,ew=
|
|
460
|
+
`,ew=n.button`
|
|
461
461
|
flex: 1;
|
|
462
462
|
display: flex;
|
|
463
463
|
align-items: center;
|
|
464
464
|
justify-content: center;
|
|
465
465
|
gap: ${({$size:e})=>e===qv.S?"4px":"8px"};
|
|
466
466
|
padding: ${({$size:e})=>e===qv.S?"4px 6px":"8px 12px"};
|
|
467
|
-
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:
|
|
467
|
+
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
468
468
|
border: 1px solid transparent;
|
|
469
469
|
|
|
470
|
-
${({$disabled:e,$isSelected:t,$selectedBgColor:
|
|
470
|
+
${({$disabled:e,$isSelected:t,$selectedBgColor:i,$selectedBorderColor:n,theme:o})=>e?r`
|
|
471
471
|
cursor: not-allowed;
|
|
472
|
-
background-color: ${t?(
|
|
472
|
+
background-color: ${t?(i||o.v2.colors.purple[900])+Hv["050"]:"transparent"};
|
|
473
473
|
`:t?r`
|
|
474
474
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
475
|
-
border: 1px solid ${
|
|
476
|
-
background-color: ${
|
|
475
|
+
border: 1px solid ${n||o.v2.colors.purple[400]};
|
|
476
|
+
background-color: ${i||o.v2.colors.purple[900]};
|
|
477
477
|
&:hover {
|
|
478
|
-
background-color: ${
|
|
478
|
+
background-color: ${i||o.v2.colors.purple[900]};
|
|
479
479
|
}
|
|
480
480
|
`:r`
|
|
481
481
|
cursor: pointer;
|
|
482
482
|
background-color: transparent;
|
|
483
483
|
&:hover {
|
|
484
|
-
background-color: ${
|
|
484
|
+
background-color: ${o.v2.colors.silver[600]};
|
|
485
485
|
}
|
|
486
486
|
`}
|
|
487
|
-
`,tw=
|
|
487
|
+
`,tw=n.div`
|
|
488
488
|
display: flex;
|
|
489
489
|
align-items: stretch;
|
|
490
490
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
-
`,
|
|
491
|
+
`,iw=n.button`
|
|
492
492
|
display: flex;
|
|
493
493
|
height: 34px;
|
|
494
494
|
padding: 8px 12px 8px 16px;
|
|
@@ -507,7 +507,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
507
507
|
&:hover {
|
|
508
508
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,nw=({"data-id":n,size:r=qv.S,variant:a=Qv.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===Qv.Underline,g=h?iw:ew;return t(h?tw:Zv,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:y,selectedTextColor:b,disabled:v},w)=>{const $=0===w,S=w===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?b||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===qv.S?Ba.XXS:Ba.XS,O=x?500:400,A=e(i,{children:[a&&t(a,{fill:E}),o&&t(Ga,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(_v,{...u})]});return t(g,{onClick:()=>!C&&d(n),$isFirstOption:$,$isLastOption:S,$isFirstAndLastOption:$&&S,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:y},children:m?t(tv,{text:m,withIcon:!0,children:A}):A},`segment-${w}-${o}-${n}`)})})},rw=n.div`
|
|
511
511
|
box-sizing: border-box !important;
|
|
512
512
|
width: ${({$width:e})=>e??"fit-content"};
|
|
513
513
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -522,8 +522,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
522
522
|
|
|
523
523
|
border: none;
|
|
524
524
|
border-radius: 6px;
|
|
525
|
-
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:
|
|
526
|
-
`,
|
|
525
|
+
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:i,$emphasizeBackgroundColor:n,theme:r})=>{const o=i??r.v2.colors.silver[800],a=n??r.v2.colors.silver[700];return e||t?a:o}};
|
|
526
|
+
`,ow=n.input`
|
|
527
527
|
min-width: 0;
|
|
528
528
|
flex: 1;
|
|
529
529
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -540,7 +540,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
540
540
|
overflow: hidden;
|
|
541
541
|
text-overflow: ellipsis;
|
|
542
542
|
white-space: nowrap;
|
|
543
|
-
`,
|
|
543
|
+
`,aw=({"data-id":i,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=jt(!1),[f,y]=jt(!1),[b,v]=jt(!1),w=g?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!c?.options?.length,S=Wt(()=>{if($)return c?.options.find(e=>e.value===c.selected)?.label},[$,c?.options,c?.selected]),x=Wt(()=>l||($&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,$,S]);return e(rw,{$width:d,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:w}),t(ow,{"data-id":i??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:w}),$&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(nw,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},sw=n.div`
|
|
544
544
|
display: flex;
|
|
545
545
|
align-items: center;
|
|
546
546
|
justify-content: center;
|
|
@@ -549,23 +549,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
549
549
|
padding: 8px;
|
|
550
550
|
border-radius: 100%;
|
|
551
551
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
552
|
-
`,lw=({icon:
|
|
552
|
+
`,lw=({icon:i=g,hideIcon:n=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Il,{$gap:12,$alignItems:"center",children:[e(Il,{$gap:4,$alignItems:"center",children:[!n&&t(sw,{children:t(i,{size:24,fill:d})}),t(Ga,{size:Ba.XXS,color:ja.Secondary,align:"center",children:r}),a&&t(Ga,{size:Ba.XXXS,color:ja.Disable,align:"center",children:a})]}),s&&t(ov,{variant:iv.Secondary,...s}),l]})},dw=n.span`
|
|
553
553
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
554
554
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
555
555
|
font-weight: 400;
|
|
556
556
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
557
|
-
`,cw=
|
|
557
|
+
`,cw=n.span`
|
|
558
558
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
559
559
|
font-size: 14px;
|
|
560
560
|
font-weight: 400;
|
|
561
561
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
562
|
-
`,uw=({label:
|
|
562
|
+
`,uw=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(kl,{$width:a,$justifyContent:"space-between",children:[i&&t(dw,{$smallAndDark:s,children:i}),e(kl,{$gap:4,children:[o&&t(_v,{...o,textSize:Ba.XXXS}),r&&t(cw,{children:"*"}),n&&t(tv,{text:n,withIcon:!0})]})]}):null,pw=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(kl,{$alignItems:"center",children:[l&&t(Il,{children:l}),t(Ga,{size:Ba.XXXS,weight:400,color:s,children:i||n||r})]}):null};var hw;(e=>{e.S="small",e.L="large"})(hw||(hw={}));const gw=n.div`
|
|
563
563
|
width: fit-content;
|
|
564
564
|
display: flex;
|
|
565
565
|
align-items: center;
|
|
566
566
|
gap: 8px;
|
|
567
567
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
568
|
-
`,mw=
|
|
568
|
+
`,mw=n.div`
|
|
569
569
|
width: ${({$size:e})=>e===hw.S?"16px":"20px"};
|
|
570
570
|
height: ${({$size:e})=>e===hw.S?"16px":"20px"};
|
|
571
571
|
display: flex;
|
|
@@ -574,16 +574,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
574
574
|
border-radius: 4px;
|
|
575
575
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
576
576
|
background-color: ${({$backgroundColor:e})=>e};
|
|
577
|
-
`,fw=({name:
|
|
577
|
+
`,fw=({name:i,label:n,tooltip:r,badge:a,size:s=hw.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,y]=jt(!1),b=d||c,v=s===hw.S?12:16,w=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(Il,{$gap:4,children:[e(kl,{$justifyContent:"space-between",children:[e(gw,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(mw,{$size:s,$borderColor:$,$backgroundColor:S,children:d?t(xt,{size:v,fill:w}):c?t(wt,{size:v,fill:w}):null}),n&&t(Ga,{size:s===hw.S?Ba.XXS:Ba.XS,nowrap:!0,children:n})]}),t(uw,{tooltip:r,badge:a})]}),t(pw,{errorMessage:p,warnMessage:h,helpMessage:g})]})},yw=n.div`
|
|
578
578
|
display: flex;
|
|
579
|
-
flex-direction: ${({$direction:e})=>e===
|
|
580
|
-
gap: ${({$direction:e})=>e===
|
|
581
|
-
`,bw=({direction:
|
|
579
|
+
flex-direction: ${({$direction:e})=>e===fi.Horizontal?"row":"column"};
|
|
580
|
+
gap: ${({$direction:e})=>e===fi.Horizontal?16:8}px;
|
|
581
|
+
`,bw=({direction:i=fi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===hw.S?Ba.XXS:Ba.XS,u=Wt(()=>s.every(e=>l[e.id]),[s,l]),p=Wt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(i=>{const n={...i};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(yw,{$direction:i,children:[n&&a?t(fw,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Ga,{size:c,children:n}):null,s.map(e=>t(fw,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},vw=n.div`
|
|
582
582
|
position: relative;
|
|
583
583
|
display: flex;
|
|
584
584
|
flex-direction: column;
|
|
585
585
|
gap: 4px;
|
|
586
|
-
`,ww=
|
|
586
|
+
`,ww=n.div`
|
|
587
587
|
position: fixed;
|
|
588
588
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
589
589
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -601,7 +601,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
601
601
|
border-radius: 6px;
|
|
602
602
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
603
603
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
604
|
-
`,$w=
|
|
604
|
+
`,$w=n.div`
|
|
605
605
|
display: flex;
|
|
606
606
|
flex-direction: column;
|
|
607
607
|
gap: 0;
|
|
@@ -609,7 +609,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
609
609
|
width: 100%;
|
|
610
610
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
611
611
|
overflow-y: auto;
|
|
612
|
-
`,Sw=
|
|
612
|
+
`,Sw=n.div`
|
|
613
613
|
display: flex;
|
|
614
614
|
align-items: center;
|
|
615
615
|
gap: 8px;
|
|
@@ -625,19 +625,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
625
625
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
626
626
|
}
|
|
627
627
|
`}
|
|
628
|
-
`,xw=
|
|
628
|
+
`,xw=n.div`
|
|
629
629
|
display: flex;
|
|
630
630
|
align-items: center;
|
|
631
631
|
gap: 8px;
|
|
632
632
|
flex: 1;
|
|
633
633
|
min-width: 0;
|
|
634
|
-
`,Cw=
|
|
634
|
+
`,Cw=n.div`
|
|
635
635
|
flex: 0 1 auto;
|
|
636
636
|
min-width: 0;
|
|
637
637
|
overflow: hidden;
|
|
638
638
|
text-overflow: ellipsis;
|
|
639
639
|
white-space: nowrap;
|
|
640
|
-
`,Ew=
|
|
640
|
+
`,Ew=n.span`
|
|
641
641
|
flex-shrink: 0;
|
|
642
642
|
width: 88px;
|
|
643
643
|
display: inline-flex;
|
|
@@ -646,14 +646,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
646
646
|
border-radius: 4px;
|
|
647
647
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
648
648
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
649
|
-
`,Tw=
|
|
649
|
+
`,Tw=n.div`
|
|
650
650
|
flex-shrink: 0;
|
|
651
651
|
display: inline-flex;
|
|
652
652
|
align-items: center;
|
|
653
653
|
gap: 4px;
|
|
654
|
-
`,Ow=({defaultOpen:
|
|
654
|
+
`,Ow=({defaultOpen:i,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:w})=>{const $=o(),S=!!f||!!y||!!w,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:A}=bv({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),N=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[k,I]=jt(""),D=Wt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:_,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=y??{};return e(vw,{ref:T,onMouseDown:A,children:[u&&t(uw,{label:u}),f&&t(ov,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),y&&t(ov,{variant:iv.Text,size:nv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof w?w({ChevronIcon:x?Ct:Et,handleClick:O}):w,x&&Qt(e(ww,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(aw,{value:k,onChange:I,width:"100%"}),b?t(jl,{withSpinner:!0,title:"Loading...",titleSize:Ba.XS}):D.length?t($w,{$maxHeight:m,children:D.map(i=>{if(!i)return null;const{id:n,label:r,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=i,c=d.includes(n);return e(Sw,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>N(n),title:l?`${r} — ${l}`:r,children:[a&&t(fw,{value:c,onChange:()=>N(n)}),o&&t(o,{size:14,fill:i.color||$.v2.colors.white[500]}),s&&t(Ew,{children:t(Ga,{size:Ba.XXS,nowrap:!0,color:ja.Secondary,children:s})}),e(xw,{children:[t(Cw,{children:t(Ga,{size:Ba.XS,nowrap:!0,color:i.color||ja.Primary,children:r})}),l&&e(Tw,{children:[t(je,{size:12,fill:$.v2.colors.silver[200]}),t(Ga,{size:Ba.XS,nowrap:!0,color:ja.Secondary,children:l})]})]})]},n)})}):t(Nl,{$padding:"6px 0",children:t(lw,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!D.length&&t(ov,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var Aw;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Aw||(Aw={}));const Nw=({onAnyClick:e,actions:i})=>t(kl,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case Aw.Button:return t(ov,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case Aw.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(Ow,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case Aw.PopupButton:return t(Pv,{buttonProps:{label:"Open",variant:iv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),kw=n(kl)`
|
|
655
655
|
min-width: 0;
|
|
656
|
-
`,Iw=
|
|
656
|
+
`,Iw=n.div`
|
|
657
657
|
display: flex;
|
|
658
658
|
flex-shrink: 0;
|
|
659
659
|
align-items: center;
|
|
@@ -661,11 +661,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
661
661
|
padding: 8px;
|
|
662
662
|
border-radius: 8px;
|
|
663
663
|
background-color: ${({theme:e})=>e.v2.colors.white[500]+Hv["004"]};
|
|
664
|
-
`,Dw=
|
|
664
|
+
`,Dw=n(Il)`
|
|
665
665
|
flex: 1;
|
|
666
666
|
min-width: 0;
|
|
667
667
|
overflow: hidden;
|
|
668
|
-
`,_w=({icon:
|
|
668
|
+
`,_w=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=Ba.S,titleColor:a=ja.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Ba.XXS,subTitleColor:u=ja.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:y,alignItems:b="center",children:v})=>{const{CopyButton:w}=av();return e(kw,{$gap:d?8:6,$alignItems:b,children:[i&&(n||d?t(Iw,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(Dw,{$gap:y,children:[r||m?e(kl,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Ga,{size:o,color:a,nowrap:!s,children:r}),l&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:l}),g&&r&&t(w,{value:r}),h&&t(tv,{text:h,withIcon:!0}),m&&t(_v,{...m})]}):null,d&&t(Ga,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(kl,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},Rw=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Gt(null),a=!!r.maxLines&&r.maxLines>0,s=hv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(tv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Ga,{ref:o,...r,children:e})})},Lw=n.section`
|
|
669
669
|
display: flex;
|
|
670
670
|
flex-direction: column;
|
|
671
671
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -693,38 +693,38 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
693
693
|
${({$overflow:e})=>e&&r`
|
|
694
694
|
overflow: ${e};
|
|
695
695
|
`}
|
|
696
|
-
`,Pw=
|
|
696
|
+
`,Pw=n(kl)`
|
|
697
697
|
width: 100%;
|
|
698
698
|
min-width: 0;
|
|
699
699
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
700
700
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
701
|
-
`,Uw=
|
|
701
|
+
`,Uw=n(kl)`
|
|
702
702
|
flex-shrink: 0;
|
|
703
|
-
`,Mw=
|
|
703
|
+
`,Mw=n.div`
|
|
704
704
|
display: flex;
|
|
705
705
|
align-items: flex-start;
|
|
706
706
|
flex-wrap: wrap;
|
|
707
707
|
width: 100%;
|
|
708
|
-
`,Fw=
|
|
708
|
+
`,Fw=n.div`
|
|
709
709
|
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
710
710
|
margin: 8px;
|
|
711
711
|
display: flex;
|
|
712
712
|
flex-direction: column;
|
|
713
713
|
gap: 4px;
|
|
714
714
|
min-width: 0;
|
|
715
|
-
`,zw=({item:
|
|
715
|
+
`,zw=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=av(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(Fw,{$cellsPerRow:n,children:[!!a&&t(tv,{text:s,children:t(Rw,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:a})}),e(kl,{$gap:4,children:[u&&t(_v,{...u}),p&&t(Iv,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(tv,{text:d,children:t(Rw,{size:Ba.XS,nowrap:!0,children:l})})]})]})},Bw=({bgTint:i="900",width:n,fullHeight:r=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:y,clickStylesRemainActive:b=!1})=>{const[v,w]=jt(d||!1),$=()=>w(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(Lw,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:y,$withClick:!!y,$clickStylesRemainActive:b,$overflow:a,children:[(s||x||E||l)&&e(Pw,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:e=>{l&&e.target.closest("section")&&$()},children:[s?t(_w,{...s}):t("div",{}),e(Uw,{$gap:12,children:[h,x&&S&&t(Nw,{actions:u}),E&&t(kl,{$gap:8,children:c.map((e,t)=>Kt(_v,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(kl,{$gap:2,children:[C&&t(Ow,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(ov,{variant:iv.Text,size:nv.S,leftIcon:v?Ct:Et,onClick:$})]})]})]}),S&&m?t(Mw,{children:m.map(e=>t(zw,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var jw;(e=>{e.S="small",e.M="medium"})(jw||(jw={}));const Hw=n(kl)`
|
|
716
716
|
flex: 1;
|
|
717
717
|
min-width: 0;
|
|
718
718
|
align-items: center;
|
|
719
|
-
`,
|
|
719
|
+
`,Xw=n.div`
|
|
720
720
|
flex-shrink: 1;
|
|
721
721
|
min-width: 0;
|
|
722
722
|
overflow: hidden;
|
|
723
|
-
`,
|
|
723
|
+
`,Ww=n.div`
|
|
724
724
|
display: flex;
|
|
725
725
|
flex-direction: column;
|
|
726
726
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
727
|
-
`,Gw=
|
|
727
|
+
`,Gw=n.div`
|
|
728
728
|
display: flex;
|
|
729
729
|
flex-direction: column;
|
|
730
730
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -733,9 +733,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
733
733
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
734
734
|
padding: ${({$padding:e})=>e}px;
|
|
735
735
|
border-radius: 16px;
|
|
736
|
-
background-color: ${({theme:e,$backgroundColor:t,$bordered:
|
|
736
|
+
background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
|
|
737
737
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
738
|
-
`,Vw=zt(({id:
|
|
738
|
+
`,Vw=zt(({id:i,size:n=jw.M,fullHeight:r=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===jw.S?4:16,y="number"==typeof h?h:n===jw.S?12:16,b=a??(o?t(_w,{...o}):null),v=l??(s?t(aw,{...s}):null),w=!!v||!!d,$=!!c&&c.length>0;return e(Gw,{ref:m,id:i,"data-section-name":i,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[b||w||$?e(kl,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[b||w?e(Hw,{$gap:f,children:[b?t(Xw,{children:b}):null,v,d]}):null,$&&t(Nw,{actions:c??[]})]}):null,t(Ww,{$fullHeight:r,children:u})]})});Vw.displayName="SectionCard";const Kw=n.div`
|
|
739
739
|
flex: 1;
|
|
740
740
|
align-self: stretch;
|
|
741
741
|
display: flex;
|
|
@@ -743,8 +743,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
743
743
|
gap: 8px;
|
|
744
744
|
padding: 16px;
|
|
745
745
|
border-radius: 12px;
|
|
746
|
-
background-color: ${({theme:e,$status:t})=>sl(e,t,t===
|
|
747
|
-
`,Yw=
|
|
746
|
+
background-color: ${({theme:e,$status:t})=>sl(e,t,t===Ai.Unknown?"750":"500")};
|
|
747
|
+
`,Yw=n.div`
|
|
748
748
|
display: flex;
|
|
749
749
|
align-items: center;
|
|
750
750
|
justify-content: center;
|
|
@@ -752,8 +752,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
752
752
|
height: fit-content;
|
|
753
753
|
padding: 8px;
|
|
754
754
|
border-radius: 12px;
|
|
755
|
-
background-color: ${({theme:e,$status:t})=>t===
|
|
756
|
-
`,Jw=({status:
|
|
755
|
+
background-color: ${({theme:e,$status:t})=>t===Ai.Unknown?sl(e,t,"800"):sl(e,t,"900")+Hv["015"]};
|
|
756
|
+
`,Jw=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Hl(i,s),d=[Ai.Default,Ai.Info,Ai.Disabled,Ai.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Kw,{$status:i,children:[t(Yw,{$status:i,children:t(l,{size:32,fill:d})}),e(Il,{$gap:2,$justifyContent:"center",children:[t(Ga,{size:Ba.M,weight:500,color:d,nowrap:!0,children:r}),t(Ga,{size:Ba.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},qw=n.div`
|
|
757
757
|
flex: 0.5;
|
|
758
758
|
display: flex;
|
|
759
759
|
flex-direction: column;
|
|
@@ -761,7 +761,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
761
761
|
padding: 12px;
|
|
762
762
|
border-radius: 12px;
|
|
763
763
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
764
|
-
`,Qw=["-","N/A","undefined","null","undefined/undefined","null/null"],Zw=({title:
|
|
764
|
+
`,Qw=["-","N/A","undefined","null","undefined/undefined","null/null"],Zw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(qw,{$bgTint:a,children:[t(tv,{text:n,children:t(Ga,{nowrap:!0,size:Ba.XXS,color:s.v2.colors.grey[150],children:i})}),t(kl,{$gap:32,children:r.map((n,r)=>e(Il,{$gap:2,children:[!n.isLoading||n.value&&!Qw.includes(n.value)?t(Ga,{nowrap:!0,size:n.label?Ba.M:Ba.L,children:n.value}):t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Ga,{nowrap:!0,size:Ba.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},e$=n.div`
|
|
765
765
|
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
766
766
|
|
|
767
767
|
display: flex;
|
|
@@ -774,43 +774,43 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
774
774
|
width: 100%;
|
|
775
775
|
box-sizing: border-box;
|
|
776
776
|
`}
|
|
777
|
-
cursor: ${({$clickable:e,$disabled:t,$hasSuffix:
|
|
777
|
+
cursor: ${({$clickable:e,$disabled:t,$hasSuffix:i,$readOnly:n})=>t?"not-allowed":n?"default":i?"text":e?"pointer":"inherit"};
|
|
778
778
|
|
|
779
779
|
border: 1px solid
|
|
780
|
-
${({theme:e,$disabled:t,$error:
|
|
780
|
+
${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
781
781
|
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
782
|
-
${({$disabled:e,$error:t,$readOnly:
|
|
782
|
+
${({$disabled:e,$error:t,$readOnly:i})=>!e&&!t&&!i&&r`
|
|
783
783
|
&:hover,
|
|
784
784
|
&:active,
|
|
785
785
|
&:focus-within {
|
|
786
786
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
787
787
|
}
|
|
788
788
|
`}
|
|
789
|
-
${({$disabled:e,$error:t,$hideFocusOutline:
|
|
789
|
+
${({$disabled:e,$error:t,$hideFocusOutline:i})=>!e&&!i&&r`
|
|
790
790
|
&:focus-within {
|
|
791
791
|
outline: 1px solid ${({theme:e})=>t?e.v2.colors.red[400]:e.v2.colors.purple[400]};
|
|
792
792
|
outline-offset: 1px;
|
|
793
793
|
}
|
|
794
794
|
`}
|
|
795
|
-
`,t$=
|
|
795
|
+
`,t$=n.div`
|
|
796
796
|
flex: 1;
|
|
797
797
|
min-width: 0;
|
|
798
798
|
display: flex;
|
|
799
799
|
align-items: center;
|
|
800
800
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
801
|
-
`,n
|
|
801
|
+
`,i$=n.span`
|
|
802
802
|
flex-shrink: 0;
|
|
803
803
|
width: 1px;
|
|
804
804
|
align-self: stretch;
|
|
805
|
-
background: ${({theme:e,$disabled:t,$error:
|
|
806
|
-
`,
|
|
805
|
+
background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
|
|
806
|
+
`,n$=n.span`
|
|
807
807
|
flex-shrink: 0;
|
|
808
808
|
display: flex;
|
|
809
809
|
align-items: center;
|
|
810
810
|
justify-content: flex-start;
|
|
811
811
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
812
812
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
813
|
-
`,r$=
|
|
813
|
+
`,r$=n.input`
|
|
814
814
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
815
815
|
width: ${({$width:e})=>e||"unset"};
|
|
816
816
|
|
|
@@ -848,12 +848,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
848
848
|
pointer-events: none;
|
|
849
849
|
user-select: none;
|
|
850
850
|
}
|
|
851
|
-
`,
|
|
851
|
+
`,o$=n.div`
|
|
852
852
|
display: flex;
|
|
853
853
|
align-items: center;
|
|
854
854
|
justify-content: center;
|
|
855
855
|
cursor: pointer;
|
|
856
|
-
`,
|
|
856
|
+
`,a$=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,hideFocusOutline:p=!1,errorMessage:h,warnMessage:g,helpMessage:m,type:f=Oi.Text,name:y,value:b,onChange:v,disabled:w,maxWidth:$,width:S,small:x=!1,onClick:C,...E})=>{const T=o(),O=f===Oi.Password,A=f===Oi.Number||f===Oi.Decimal,[N,k]=jt(!1),[I,D]=jt(null),_=e=>{e.stopPropagation();const t=e.target.value;if(f===Oi.Number||f===Oi.Decimal){const i=f===Oi.Number?gd(t):hd(t),n=null!=E.min?Number(E.min):void 0,r=null!=E.max?Number(E.max):void 0,o=f===Oi.Decimal&&i.endsWith(".");let a=i,s=!1;if(i&&!o){const e=parseFloat(i);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,D(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}v?.(e)},R=e=>{["Enter"].includes(e.key)||e.stopPropagation()},L=u||!!h||!!I,P=b?T.v2.colors.white[500]:w?T.v2.colors.grey[400]:T.v2.colors.silver[200],U=x?14:18,M=Gt(null),F=hv(M,{deps:[b]}),z=E.readOnly&&F&&null!=b&&""!==b?String(b):"",B=!!c&&!O;return e(Il,{$width:S,$gap:6,children:[t(uw,{label:n,tooltip:a,required:r,badge:s}),t(e$,{$small:x,$disabled:w,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!w,$hasSuffix:B,$hideFocusOutline:p,onClick:w||!C&&!B?void 0:e=>{w||(B&&!E.readOnly&&M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(t$,{$small:x,children:t(tv,{text:z,fullWidth:!0,keepAlive:!0,children:t(r$,{"data-id":y,type:A?Oi.Text:f,name:y,value:b,onChange:_,onKeyDown:R,disabled:w,$maxWidth:$,$width:"100%",$small:x,$tabular:A,...E,ref:M})})}),t(i$,{$disabled:w,$error:L}),t(n$,{$small:x,"aria-hidden":"true",children:t(Ga,{size:Ba.XXXS,color:w?ja.Disable:ja.Secondary,nowrap:!0,children:c})})]}):e(tv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(r$,{"data-id":y,type:N||A?Oi.Text:f,name:y,value:b,onChange:_,onKeyDown:R,disabled:w,$maxWidth:$,$width:S,$small:x,$tabular:A,...E,ref:M}),O?t(o$,{onClick:()=>k(e=>!e),children:t(N?Ot:At,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(pw,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},s$=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=jt(""),[c,u]=jt(!1),p=Wt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Wt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Wt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Xt(()=>{d(""),u(!0)},[]),y=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),b=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),w=c&&(o||m.length>0||l.length>0);return t(Ow,{open:w,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:yv.Bottom,children:t(a$,{name:i,leftIcon:St,placeholder:r,value:g,onChange:y,onFocus:f,disabled:a})})},l$=n.button`
|
|
857
857
|
width: 100%;
|
|
858
858
|
padding: 0;
|
|
859
859
|
padding-right: 12px;
|
|
@@ -874,7 +874,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
874
874
|
cursor: not-allowed;
|
|
875
875
|
opacity: 0.5;
|
|
876
876
|
}
|
|
877
|
-
`,d$=
|
|
877
|
+
`,d$=n.div`
|
|
878
878
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
879
879
|
height: 56px;
|
|
880
880
|
display: flex;
|
|
@@ -885,31 +885,141 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
885
885
|
`:r`
|
|
886
886
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
887
887
|
`}
|
|
888
|
-
`,c$=
|
|
888
|
+
`,c$=n.div`
|
|
889
889
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
890
890
|
display: flex;
|
|
891
891
|
justify-content: space-between;
|
|
892
892
|
align-items: center;
|
|
893
893
|
gap: 8px;
|
|
894
|
-
`,u$=({label:
|
|
894
|
+
`,u$=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=jt(!1);return e(l$,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(d$,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(c$,{$hasIcon:!!n,children:[r?t(jl,{withGradient:!0,titleSize:Ba.S}):t(Ga,{variant:za.Span,align:"center",children:i}),t(Nt,{rotate:90,size:24})]})]})},p$=({buttons:e})=>t(Il,{$gap:12,children:e.map((e,i)=>t(u$,{...e},`${e.label}-${i}`))}),h$=[1,.75,.5,.25,0],g$=n.div`
|
|
895
|
+
display: flex;
|
|
896
|
+
flex-direction: column;
|
|
897
|
+
gap: 32px;
|
|
898
|
+
width: 100%;
|
|
899
|
+
min-width: 0;
|
|
900
|
+
`,m$=n(kl)`
|
|
901
|
+
align-items: center;
|
|
902
|
+
gap: 4px;
|
|
903
|
+
`,f$=n.div`
|
|
904
|
+
display: flex;
|
|
905
|
+
align-items: flex-start;
|
|
906
|
+
gap: 4px;
|
|
907
|
+
width: 100%;
|
|
908
|
+
min-width: 0;
|
|
909
|
+
`,y$=n.div`
|
|
910
|
+
display: flex;
|
|
911
|
+
flex-direction: column;
|
|
912
|
+
justify-content: space-between;
|
|
913
|
+
align-items: flex-end;
|
|
914
|
+
flex-shrink: 0;
|
|
915
|
+
height: ${({$plotHeight:e})=>e}px;
|
|
916
|
+
padding-bottom: 0;
|
|
917
|
+
`,b$=n.div`
|
|
918
|
+
display: flex;
|
|
919
|
+
flex-direction: column;
|
|
920
|
+
flex: 1;
|
|
921
|
+
min-width: 0;
|
|
922
|
+
`,v$=n.div`
|
|
923
|
+
position: relative;
|
|
924
|
+
display: flex;
|
|
925
|
+
align-items: flex-end;
|
|
926
|
+
width: 100%;
|
|
927
|
+
height: ${({$height:e})=>e}px;
|
|
928
|
+
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
929
|
+
`,w$=n.div`
|
|
930
|
+
position: absolute;
|
|
931
|
+
inset: 0;
|
|
932
|
+
display: flex;
|
|
933
|
+
flex-direction: column;
|
|
934
|
+
justify-content: space-between;
|
|
935
|
+
pointer-events: none;
|
|
936
|
+
z-index: 0;
|
|
937
|
+
`,$$=n.div`
|
|
938
|
+
width: 100%;
|
|
939
|
+
height: 0;
|
|
940
|
+
border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
941
|
+
`,S$=n.div`
|
|
942
|
+
position: relative;
|
|
943
|
+
z-index: 1;
|
|
944
|
+
display: flex;
|
|
945
|
+
align-items: flex-end;
|
|
946
|
+
width: 100%;
|
|
947
|
+
height: 100%;
|
|
948
|
+
padding: 0 8px;
|
|
949
|
+
`,x$=n.div`
|
|
950
|
+
display: flex;
|
|
951
|
+
flex: 1;
|
|
952
|
+
align-items: flex-end;
|
|
953
|
+
justify-content: center;
|
|
954
|
+
height: 100%;
|
|
955
|
+
min-width: 0;
|
|
956
|
+
padding: 0 4px;
|
|
957
|
+
|
|
958
|
+
/* Tooltip wrapper must fill the slot so % bar height resolves against plot height. */
|
|
959
|
+
& > * {
|
|
960
|
+
display: flex;
|
|
961
|
+
align-items: flex-end;
|
|
962
|
+
width: 100%;
|
|
963
|
+
height: 100%;
|
|
964
|
+
max-width: 124px;
|
|
965
|
+
}
|
|
966
|
+
`,C$=n.div`
|
|
967
|
+
width: 100%;
|
|
968
|
+
height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
|
|
969
|
+
border-radius: 6px 6px 0 0;
|
|
970
|
+
background-color: ${({$color:e})=>e};
|
|
971
|
+
min-height: ${({$pct:e})=>e>0?"2px":"0"};
|
|
972
|
+
`,E$=n.div`
|
|
973
|
+
display: flex;
|
|
974
|
+
flex-direction: column;
|
|
975
|
+
gap: 4px;
|
|
976
|
+
width: 100%;
|
|
977
|
+
height: ${29}px;
|
|
978
|
+
padding: 0 8px;
|
|
979
|
+
`,T$=n.div`
|
|
980
|
+
display: flex;
|
|
981
|
+
height: 8px;
|
|
982
|
+
width: 100%;
|
|
983
|
+
`,O$=n.div`
|
|
984
|
+
display: flex;
|
|
985
|
+
flex: 1;
|
|
986
|
+
align-items: center;
|
|
987
|
+
justify-content: center;
|
|
988
|
+
min-width: 0;
|
|
989
|
+
`,A$=n.div`
|
|
990
|
+
width: 0;
|
|
991
|
+
height: 100%;
|
|
992
|
+
border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
993
|
+
`,N$=n.div`
|
|
994
|
+
display: flex;
|
|
995
|
+
width: 100%;
|
|
996
|
+
height: 17px;
|
|
997
|
+
`,k$=n.div`
|
|
998
|
+
display: flex;
|
|
999
|
+
flex: 1;
|
|
1000
|
+
align-items: center;
|
|
1001
|
+
justify-content: center;
|
|
1002
|
+
min-width: 0;
|
|
1003
|
+
overflow: hidden;
|
|
1004
|
+
`,I$=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Wt(()=>[s.v2.colors.purple[400],s.v2.colors.pink[500],s.v2.colors.red[500],s.v2.colors.orange[500],s.v2.colors.yellow[500],s.v2.colors.green[400],s.v2.colors.mint[500],s.v2.colors.blue[600]],[s]),d=Wt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Wt(()=>h$.map(e=>{return t=d*e,Number.isFinite(t)?Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:1}):"0";var t}),[d]);return e(g$,{children:[!!i&&e(m$,{children:[t(Ga,{size:Ba.S,weight:500,children:i}),!!n&&t(tv,{text:n,withIcon:!0})]}),e(f$,{children:[t(y$,{$plotHeight:a,children:c.map((e,i)=>t(Ga,{size:Ba.XXS,color:ja.Primary,nowrap:!0,children:e},h$[i]))}),e(b$,{children:[e(v$,{$height:a,children:[t(w$,{children:h$.map(e=>t($$,{},e))}),t(S$,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(x$,{children:t(tv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(C$,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(E$,{children:[t(T$,{children:r.map((e,i)=>t(O$,{children:t(A$,{})},`tick-${e.label}-${i}`))}),t(N$,{children:r.map((e,i)=>t(k$,{children:t(Ga,{size:Ba.XXS,color:ja.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var D$;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(D$||(D$={}));const _$=n.div`
|
|
895
1005
|
display: flex;
|
|
896
1006
|
align-items: flex-end;
|
|
897
1007
|
justify-content: space-between;
|
|
898
1008
|
gap: 24px;
|
|
899
1009
|
width: fit-content;
|
|
900
|
-
`,
|
|
1010
|
+
`,R$=n.div`
|
|
901
1011
|
position: relative;
|
|
902
1012
|
display: flex;
|
|
903
1013
|
flex-direction: column;
|
|
904
1014
|
align-items: center;
|
|
905
1015
|
width: ${({$width:e})=>e??150}px;
|
|
906
1016
|
flex-shrink: 0;
|
|
907
|
-
`,
|
|
1017
|
+
`,L$=n.svg`
|
|
908
1018
|
display: block;
|
|
909
1019
|
width: 100%;
|
|
910
1020
|
height: auto;
|
|
911
1021
|
overflow: visible;
|
|
912
|
-
`,
|
|
1022
|
+
`,P$=n(Il)`
|
|
913
1023
|
position: absolute;
|
|
914
1024
|
left: 0;
|
|
915
1025
|
right: 0;
|
|
@@ -917,14 +1027,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
917
1027
|
align-items: center;
|
|
918
1028
|
gap: 2px;
|
|
919
1029
|
pointer-events: none;
|
|
920
|
-
`,
|
|
1030
|
+
`,U$=n.span`
|
|
921
1031
|
display: inline-block;
|
|
922
1032
|
flex-shrink: 0;
|
|
923
1033
|
width: 9px;
|
|
924
1034
|
height: 9px;
|
|
925
1035
|
border-radius: 50%;
|
|
926
1036
|
background-color: ${({$color:e})=>e};
|
|
927
|
-
`,
|
|
1037
|
+
`,M$=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:""}},F$=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},z$=(e,t,i,n,r)=>{const o=F$(e,t,i,n),a=F$(e,t,i,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${o.x} ${o.y} A ${i} ${i} 0 ${l} ${s} ${a.x} ${a.y}`},B$=({variant:i=D$.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=M$(a),{number:g}=M$(s),{number:m,prefix:f,suffix:y}=M$(l),b=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),w=180-180*v,$=v>0?z$(60,60,55,180,w):null,S=v<1?z$(60,60,55,w,0):null,x=F$(60,60,55,180),C=F$(60,60,55,0),E=c??(i===D$.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(i===D$.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,A]=jt(null),N=e=>`${f}${e}${y}`,k=i===D$.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",D="primary"===O?N(m):"secondary"===O?N(k):"",_=()=>A("primary"),R=()=>A("secondary"),L=()=>A(null);var P;return e(_$,{children:[e(R$,{$width:n,children:[t(tv,{keepAlive:!0,fullWidth:!0,title:I,text:D,children:e(L$,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[$&&t("path",{d:$,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:_,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:R,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(P$,{children:[t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(Ga,{size:Ba.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(Il,{$gap:7,children:[e(kl,{$gap:8,$alignItems:"center",children:[t(U$,{$color:E}),t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:d})]}),e(kl,{$gap:8,$alignItems:"center",children:[t(U$,{$color:T}),t(Ga,{size:Ba.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},j$=n(kl)`
|
|
928
1038
|
width: 100%;
|
|
929
1039
|
padding: 8px 12px;
|
|
930
1040
|
border-radius: 6px;
|
|
@@ -933,26 +1043,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
933
1043
|
align-items: center;
|
|
934
1044
|
justify-content: space-between;
|
|
935
1045
|
gap: 12px;
|
|
936
|
-
`,
|
|
1046
|
+
`,H$=n.div`
|
|
937
1047
|
position: relative;
|
|
938
1048
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
939
1049
|
display: flex;
|
|
940
1050
|
align-items: center;
|
|
941
1051
|
gap: 4px;
|
|
942
|
-
`,
|
|
1052
|
+
`,X$=n.pre`
|
|
943
1053
|
flex: 1;
|
|
944
1054
|
margin: 0;
|
|
945
1055
|
padding: 0;
|
|
946
1056
|
font-size: 12px;
|
|
947
1057
|
color: #5ffb98; // TODO: add to theme
|
|
948
1058
|
overflow-x: auto;
|
|
949
|
-
`,
|
|
1059
|
+
`,W$=n.span`
|
|
950
1060
|
flex-shrink: 0;
|
|
951
1061
|
font-size: 14px;
|
|
952
1062
|
color: #5ffb98; // TODO: add to theme
|
|
953
|
-
`,
|
|
1063
|
+
`,G$=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=av({onDone:a}),l=Gt(null),[d,c]=jt(!1);return Ht(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),e(Il,{$gap:4,children:[n&&t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:n}),e(j$,{$bgTint:i,children:[e(H$,{$hideCopy:o,children:[t(X$,{ref:l,children:r}),d&&t(W$,{children:"..."})]}),!o&&t(s,{value:r})]})]})},V$=n(kl)`
|
|
954
1064
|
gap: 0;
|
|
955
|
-
`,
|
|
1065
|
+
`,K$=n.button`
|
|
956
1066
|
padding: 4px 8px;
|
|
957
1067
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
958
1068
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -964,20 +1074,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
964
1074
|
&:hover {
|
|
965
1075
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
966
1076
|
}
|
|
967
|
-
`,
|
|
1077
|
+
`,Y$=({isPrettyMode:i,setIsPrettyMode:n})=>e(V$,{children:[t(K$,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(K$,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),J$=n.table`
|
|
968
1078
|
border-collapse: collapse;
|
|
969
1079
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
970
|
-
`,
|
|
1080
|
+
`,q$=n.tbody``,Q$=n.tr`
|
|
971
1081
|
td:first-child {
|
|
972
1082
|
padding-left: 0 !important;
|
|
973
1083
|
}
|
|
974
1084
|
td:last-child {
|
|
975
1085
|
padding-right: 0 !important;
|
|
976
1086
|
}
|
|
977
|
-
`,
|
|
1087
|
+
`,Z$=n.td`
|
|
978
1088
|
vertical-align: top;
|
|
979
1089
|
padding: 4px 6px;
|
|
980
|
-
`,
|
|
1090
|
+
`,eS=n.span`
|
|
981
1091
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
982
1092
|
overflow-wrap: break-word;
|
|
983
1093
|
word-break: break-word;
|
|
@@ -985,7 +1095,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
985
1095
|
/* Fallback for older browsers */
|
|
986
1096
|
-ms-word-break: break-all;
|
|
987
1097
|
font-size: 12px;
|
|
988
|
-
`,
|
|
1098
|
+
`,tS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ei[n]:s?ei.palenight:ei.vsLight;let d="";if("json"===e){const e=ss(i,{}),t=Ld(e);d=Pd(r?Os(t):t)}else d=i;return a&&"json"===e?t(iS,{darkMode:s,str:d}):t(Zt,{theme:l||(s?ei.palenight:ei.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:i,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(eS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},iS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(Q$,{...i,children:[t(Z$,{}),t(Z$,{})]}));return t(Bt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(Zt,{theme:i?ei.palenight:ei.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(J$,{children:t(q$,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),d=i({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Bt,{children:[a(2,s),e(Q$,{...d,children:[t(Z$,{children:t(Ga,{nowrap:!0,children:l[0].content})}),t(Z$,{})]})]},`line-${s}`):2===l.length?t(Q$,{...d,children:l.map((i,o)=>{const{text:a,components:l}=((e,i)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,o]=e.split("=");switch(r){case"tooltip":return t(tv,{withIcon:!0,text:o},`${r}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${r}-${o}-${n}`);let e=Hl(o,i);return e||(e=Hl(Ai.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(Z$,{children:e(kl,{children:[t(kl,{children:l}),t(eS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},nS=n.div`
|
|
989
1099
|
display: flex;
|
|
990
1100
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
991
1101
|
gap: 8px;
|
|
@@ -994,14 +1104,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
994
1104
|
border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
|
|
995
1105
|
background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
|
|
996
1106
|
|
|
997
|
-
${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:
|
|
1107
|
+
${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:i})=>e&&r`
|
|
998
1108
|
cursor: pointer;
|
|
999
1109
|
transition: background 0.2s;
|
|
1000
1110
|
&:hover {
|
|
1001
|
-
background-color: ${t?"transparent":
|
|
1111
|
+
background-color: ${t?"transparent":i};
|
|
1002
1112
|
}
|
|
1003
1113
|
`}
|
|
1004
|
-
`,
|
|
1114
|
+
`,rS=n.div`
|
|
1005
1115
|
display: flex;
|
|
1006
1116
|
align-items: center;
|
|
1007
1117
|
justify-content: center;
|
|
@@ -1020,54 +1130,54 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1020
1130
|
transform: scale(1.2);
|
|
1021
1131
|
}
|
|
1022
1132
|
`}
|
|
1023
|
-
`,
|
|
1133
|
+
`,oS=n(Il)`
|
|
1024
1134
|
flex: 1;
|
|
1025
1135
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1026
1136
|
min-width: 0;
|
|
1027
|
-
`,
|
|
1137
|
+
`,aS=n(Il)`
|
|
1028
1138
|
align-self: stretch;
|
|
1029
1139
|
flex-shrink: 0;
|
|
1030
|
-
`,
|
|
1140
|
+
`,sS=n.div`
|
|
1031
1141
|
display: flex;
|
|
1032
1142
|
align-items: center;
|
|
1033
1143
|
justify-content: center;
|
|
1034
1144
|
flex-shrink: 0;
|
|
1035
1145
|
width: 24px;
|
|
1036
1146
|
height: 24px;
|
|
1037
|
-
`,
|
|
1147
|
+
`,lS=({status:i,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=o(),v=Hl(i,b),w=p?u?Ct:Et:void 0,$=i===Ai.Unknown,S=i===Ai.Disabled,x=i===Ai.Loading||d,C=[Ai.Error,Ai.Warning,Ai.Success].includes(i),E=sl(b,i,S?h?"400":"700":$?"600":h?"300":"500"),T=S?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:C?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!$?E:T,A=!h||$||S?"rgba(0, 0, 0, 0.13)":sl(b,i,"800"),N=S?b.v2.colors.grey[900]:h||$?b.v2.colors.silver[800]:E,k=S?b.v2.colors.grey[800]:h||$?b.v2.colors.silver[700]:sl(b,i,"600");return e(nS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:N,$hoverBackgroundColor:k,$slim:y,onClick:p,children:[!g&&t(rS,{$backgroundColor:A,$slim:y,children:x?t(jl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(oS,{$gap:4,$justifyContent:"center",$slim:y,children:[e(kl,{$gap:10,$alignItems:"center",children:[t(Ga,{size:y?Ba.XS:Ba.S,weight:500,color:O,children:n}),l&&t(_v,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:Ba.XXXS})]}),r&&t(Ga,{size:Ba.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(aS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(kl,{$gap:8,children:c.map(e=>t(ov,{...e,variant:iv.Secondary,size:nv.S},e["data-id"]??e.label))}),s]}),w&&t(sS,{children:t(w,{size:24,fill:T})})]})},dS=n.div`
|
|
1038
1148
|
display: flex;
|
|
1039
1149
|
flex-direction: column;
|
|
1040
1150
|
width: 100%;
|
|
1041
1151
|
border-radius: 12px;
|
|
1042
1152
|
overflow: hidden;
|
|
1043
|
-
`,
|
|
1153
|
+
`,cS=n.div`
|
|
1044
1154
|
display: flex;
|
|
1045
1155
|
flex-direction: column;
|
|
1046
1156
|
gap: 8px;
|
|
1047
1157
|
padding: 8px 12px 16px 12px;
|
|
1048
1158
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1049
|
-
`,
|
|
1159
|
+
`,uS=n.div`
|
|
1050
1160
|
display: flex;
|
|
1051
1161
|
align-items: center;
|
|
1052
1162
|
gap: 8px;
|
|
1053
|
-
`,
|
|
1163
|
+
`,pS=n.div`
|
|
1054
1164
|
display: flex;
|
|
1055
1165
|
align-items: center;
|
|
1056
1166
|
justify-content: center;
|
|
1057
1167
|
flex-shrink: 0;
|
|
1058
1168
|
width: 18px;
|
|
1059
1169
|
height: 18px;
|
|
1060
|
-
`,
|
|
1061
|
-
width: ${({$orientation:e,$thickness:t,$length:
|
|
1062
|
-
height: ${({$orientation:e,$thickness:t,$length:
|
|
1063
|
-
margin: ${({$orientation:e,$margin:t})=>t||(e===
|
|
1170
|
+
`,hS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=jt(!1),d=Xt(()=>l(e=>!e),[]),c=Wt(()=>dd(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Wt(()=>_s(c),[c]);Ht(()=>{l(p||g||m)},[p,g,m]);const y=Wt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),b=Wt(()=>p?Ai.Error:g?Ai.Warning:m?Ai.Info:Ai.Success,[p,g,m]),v=Wt(()=>n||(1===c.length?Fa(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:i,loading:n})=>e?"Something Failed":t||i?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[n,c,p,g,m,y]),w=Wt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),$=Wt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(dS,{children:[t(lS,{status:b,invertColors:!0,title:v,subTitle:w,badgeLabel:$,loading:y,isExtended:s,toggleExtended:d}),s&&t(cS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Ai.Loading,d=i===Ai.Disabled?Ai.Info:i,c=l?null:Hl(d,a),u=i===Ai.Error?sl(a,Ai.Error,"500"):i===Ai.Warning?sl(a,Ai.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(uS,{children:[t(pS,{children:l||!c?t(jl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Ga,{size:Ba.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},gS=n.div`
|
|
1171
|
+
width: ${({$orientation:e,$thickness:t,$length:i})=>e===fi.Vertical?`${t}px`:i||"100%"};
|
|
1172
|
+
height: ${({$orientation:e,$thickness:t,$length:i})=>e===fi.Horizontal?`${t}px`:i||"100%"};
|
|
1173
|
+
margin: ${({$orientation:e,$margin:t})=>t||(e===fi.Horizontal?"8px 0":"0 8px")};
|
|
1064
1174
|
background-color: ${({$type:e,theme:t})=>e?sl(t,e):t.v2.colors.silver[500]};
|
|
1065
1175
|
opacity: ${({$opacity:e})=>e||1};
|
|
1066
|
-
`,
|
|
1176
|
+
`,mS=({orientation:e=fi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(gS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var fS,yS,bS;(e=>{e.Default="default",e.SuccessError="successError"})(fS||(fS={})),(e=>{e.S="small",e.L="large"})(yS||(yS={})),(e=>{e.Left="left",e.Right="right"})(bS||(bS={}));const vS=n.div`
|
|
1067
1177
|
display: flex;
|
|
1068
1178
|
align-items: center;
|
|
1069
1179
|
gap: ${({$gap:e})=>e}px;
|
|
1070
|
-
`,
|
|
1180
|
+
`,wS=n.div`
|
|
1071
1181
|
position: relative;
|
|
1072
1182
|
display: flex;
|
|
1073
1183
|
align-items: center;
|
|
@@ -1078,11 +1188,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1078
1188
|
height: ${({$size:e})=>e}px;
|
|
1079
1189
|
padding: ${4}px;
|
|
1080
1190
|
border-radius: ${({$size:e})=>2*e}px;
|
|
1081
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:
|
|
1191
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case fS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case fS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1082
1192
|
|
|
1083
1193
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1084
1194
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1085
|
-
|
|
1195
|
+
`,$S=n.div`
|
|
1086
1196
|
position: absolute;
|
|
1087
1197
|
top: 50%;
|
|
1088
1198
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1092,11 +1202,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1092
1202
|
border-radius: 100%;
|
|
1093
1203
|
background-color: ${({$color:e})=>e};
|
|
1094
1204
|
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)"};
|
|
1095
|
-
`,
|
|
1205
|
+
`,SS=({variant:n=fS.Default,size:r=yS.L,name:a,label:s,labelAlign:l=bS.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=wt,offIcon:y=It,onBgColor:b,offBgColor:v,errorMessage:w,warnMessage:$,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=r===yS.S?10:16,T=d||x.v2.colors.silver[200],O=r===yS.S?Ba.XXXS:Ba.XS,A=r===yS.S?8:12;return e(Il,{$gap:4,children:[e(kl,{$justifyContent:"space-between",children:[e(vS,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:A,children:[s&&l===bS.Left&&t(Ga,{color:T,size:O,nowrap:!0,children:s}),e(wS,{$onBgColor:b,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t($S,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(y,{size:E,fill:C})]})]}),s&&l===bS.Right&&t(Ga,{color:T,size:O,nowrap:!0,children:s})]}),t(uw,{tooltip:c,badge:u})]}),t(pw,{errorMessage:w,warnMessage:$,helpMessage:S})]})},xS=n.div`
|
|
1096
1206
|
display: flex;
|
|
1097
|
-
flex-direction: ${({$direction:e})=>e===
|
|
1098
|
-
gap: ${({$direction:e})=>e===
|
|
1099
|
-
`,
|
|
1207
|
+
flex-direction: ${({$direction:e})=>e===fi.Horizontal?"row":"column"};
|
|
1208
|
+
gap: ${({$direction:e})=>e===fi.Horizontal?16:8}px;
|
|
1209
|
+
`,CS=({direction:i=fi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===yS.S?Ba.XS:Ba.S;return e(xS,{$direction:i,children:[n&&t(Ga,{size:d,children:n}),a.map(e=>t(SS,{...e,labelAlign:bS.Right,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return i?t[i]=n:a.forEach(e=>t[e.id]=n),t});var i,n},disabled:o,size:r},`${n}-toggle-${e.id}`))]})};var ES;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(ES||(ES={}));const TS=n.div`
|
|
1100
1210
|
width: ${({$size:e})=>1.5*e}px;
|
|
1101
1211
|
height: ${({$size:e})=>1.5*e}px;
|
|
1102
1212
|
display: flex;
|
|
@@ -1107,13 +1217,13 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1107
1217
|
&:hover {
|
|
1108
1218
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1109
1219
|
}
|
|
1110
|
-
`,
|
|
1220
|
+
`,OS=({"data-id":e,icon:i,size:n=ES.S,onClick:r,disabled:o})=>t(TS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),AS=n.div`
|
|
1111
1221
|
display: flex;
|
|
1112
1222
|
align-items: center;
|
|
1113
1223
|
justify-content: space-between;
|
|
1114
1224
|
width: 100%;
|
|
1115
1225
|
overflow: hidden;
|
|
1116
|
-
`,
|
|
1226
|
+
`,NS=n.div`
|
|
1117
1227
|
display: flex;
|
|
1118
1228
|
align-items: center;
|
|
1119
1229
|
gap: 16px;
|
|
@@ -1121,7 +1231,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1121
1231
|
min-width: 0;
|
|
1122
1232
|
flex: 1;
|
|
1123
1233
|
overflow: hidden;
|
|
1124
|
-
`,
|
|
1234
|
+
`,kS=n.div`
|
|
1125
1235
|
display: flex;
|
|
1126
1236
|
align-items: center;
|
|
1127
1237
|
justify-content: center;
|
|
@@ -1130,23 +1240,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1130
1240
|
height: 36px;
|
|
1131
1241
|
border-radius: 8px;
|
|
1132
1242
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1133
|
-
`,
|
|
1243
|
+
`,IS=n.img`
|
|
1134
1244
|
width: 24px;
|
|
1135
1245
|
height: 24px;
|
|
1136
|
-
`,
|
|
1246
|
+
`,DS=n.div`
|
|
1137
1247
|
display: flex;
|
|
1138
1248
|
align-items: center;
|
|
1139
1249
|
gap: 16px;
|
|
1140
1250
|
flex-shrink: 0;
|
|
1141
|
-
`,
|
|
1251
|
+
`,_S=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(AS,{children:[e(NS,{children:[i?t(kS,{children:t(i,{size:24})}):n?t(kS,{children:t(IS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Il,{$gap:6,children:[(r||o?.length)&&e(kl,{$gap:16,children:[r&&t(Ga,{size:Ba.S,weight:500,children:r}),o?.length&&t(kl,{$gap:4,children:o?.map((e,i)=>t(_v,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(kl,{$gap:16,children:[a&&t(Ga,{color:ja.Secondary,size:Ba.XXS,children:a}),s?.length&&t(kl,{$gap:4,children:s?.map((e,i)=>t(Iv,{...e},`${e.label}-${i}`))})]})]})]}),e(DS,{children:[l&&t(SS,{...l}),d?.length?t(Ow,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(OS,{"data-id":"drawer-close",icon:It,size:ES.M,onClick:c,disabled:u})]})]}),RS=n.div`
|
|
1142
1252
|
position: relative;
|
|
1143
1253
|
&.animated {
|
|
1144
1254
|
overflow: hidden;
|
|
1145
1255
|
padding-bottom: 1px;
|
|
1146
1256
|
border-radius: 8px;
|
|
1147
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1257
|
+
animation: ${({$isLeaving:e})=>e?Wv.out.bottom:Wv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1148
1258
|
}
|
|
1149
|
-
`,
|
|
1259
|
+
`,LS=n.div`
|
|
1150
1260
|
position: absolute;
|
|
1151
1261
|
bottom: -1px;
|
|
1152
1262
|
left: 0;
|
|
@@ -1154,9 +1264,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1154
1264
|
width: 100%;
|
|
1155
1265
|
height: 100%;
|
|
1156
1266
|
border-radius: 8px;
|
|
1157
|
-
background-color: ${({theme:e,$status:t})=>sl(e,t,t===
|
|
1267
|
+
background-color: ${({theme:e,$status:t})=>sl(e,t,t===Ai.Default?"300":t===Ai.Info?"400":"500")};
|
|
1158
1268
|
animation: ${Gv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1159
|
-
`,
|
|
1269
|
+
`,PS=n.div`
|
|
1160
1270
|
display: flex;
|
|
1161
1271
|
align-items: center;
|
|
1162
1272
|
gap: 10px;
|
|
@@ -1165,37 +1275,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1165
1275
|
`}
|
|
1166
1276
|
padding: 8px 12px 8px 8px;
|
|
1167
1277
|
border-radius: 8px;
|
|
1168
|
-
background-color: ${({theme:e,$status:t})=>sl(e,t,[
|
|
1169
|
-
`,
|
|
1278
|
+
background-color: ${({theme:e,$status:t})=>sl(e,t,[Ai.Info,Ai.Warning].includes(t)?"1000":"900")};
|
|
1279
|
+
`,US=n.div`
|
|
1170
1280
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1171
1281
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1172
1282
|
display: flex;
|
|
1173
1283
|
align-items: center;
|
|
1174
1284
|
justify-content: center;
|
|
1175
1285
|
border-radius: 6px;
|
|
1176
|
-
background-color: ${({theme:e,$status:t})=>sl(e,t,[
|
|
1177
|
-
`,
|
|
1286
|
+
background-color: ${({theme:e,$status:t})=>sl(e,t,[Ai.Info].includes(t)?"900":"800")};
|
|
1287
|
+
`,MS=n.div`
|
|
1178
1288
|
margin-left: auto;
|
|
1179
1289
|
display: flex;
|
|
1180
1290
|
align-items: center;
|
|
1181
1291
|
gap: 4px;
|
|
1182
|
-
`,
|
|
1292
|
+
`,FS=n.div`
|
|
1183
1293
|
margin-right: 8px;
|
|
1184
1294
|
cursor: pointer;
|
|
1185
1295
|
&:hover {
|
|
1186
1296
|
transform: scale(1.2);
|
|
1187
1297
|
}
|
|
1188
|
-
|
|
1298
|
+
`,zS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Hl(i,p),g=sl(p,i,i===Ai.Default?"300":i===Ai.Info?"400":"500"),[m,f]=jt(!1),y=Gt(null),b=Gt(null),v=c/10,w=c-v,$=e=>{d&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Ht(()=>{if(d)return y.current=setTimeout(()=>$({asSeen:!1}),w),()=>{y.current&&clearTimeout(y.current)}},[c]),e(RS,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*w;y.current=setTimeout(()=>$({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(PS,{$status:i,$fullWidth:a,children:[t("div",{children:t(US,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Ga,{color:g,size:Ba.XXXS,weight:400,children:n}),(r||d)&&e(MS,{children:[r&&t(FS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Ga,{color:g,size:Ba.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(OS,{"data-id":"note-close",icon:It,size:ES.XS,onClick:()=>$({asSeen:!0})})]})]}),d&&t(LS,{ref:b,$status:i,$duration:c})]})},BS=n.div`
|
|
1189
1299
|
display: flex;
|
|
1190
1300
|
align-items: center;
|
|
1191
1301
|
gap: 8px;
|
|
1192
1302
|
padding: 4px 12px;
|
|
1193
|
-
`,
|
|
1303
|
+
`,jS=n.div`
|
|
1194
1304
|
flex: 1;
|
|
1195
|
-
`,
|
|
1305
|
+
`,HS=n.div`
|
|
1196
1306
|
min-width: 150px;
|
|
1197
1307
|
width: fit-content;
|
|
1198
|
-
`,
|
|
1308
|
+
`,XS=({note:i,actions:n,children:r})=>r?t(BS,{children:r}):e(BS,{children:[i&&t(zS,{...i}),t(jS,{}),n?.map((e,i)=>t(HS,{children:t(ov,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),WS=n.div`
|
|
1199
1309
|
position: fixed;
|
|
1200
1310
|
top: 0;
|
|
1201
1311
|
bottom: 0;
|
|
@@ -1215,16 +1325,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1215
1325
|
overflow: hidden;
|
|
1216
1326
|
|
|
1217
1327
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1218
|
-
animation-name: ${
|
|
1328
|
+
animation-name: ${Wv.in[t]};
|
|
1219
1329
|
`}
|
|
1220
|
-
`,
|
|
1330
|
+
`,GS=n.div`
|
|
1221
1331
|
display: flex;
|
|
1222
1332
|
flex-direction: column;
|
|
1223
1333
|
gap: 12px;
|
|
1224
1334
|
|
|
1225
1335
|
height: calc(100% - ${56}px);
|
|
1226
1336
|
overflow-y: auto;
|
|
1227
|
-
`,
|
|
1337
|
+
`,VS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Hb(n),n?Qt(e(i,{children:[!r&&t(Rl,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(WS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(_S,{...d}),t(GS,{children:u}),c&&t(XS,{...c})]})]}),document.body):null),KS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Wt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Wt(()=>s.map(e=>e.label).join(", "),[s]);return t(Ow,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:fv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(a$,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:i,readOnly:!0,tabIndex:-1})})},YS=({error:i})=>{const n=o(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:i?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:i?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(ov,{variant:iv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},JS=({children:e})=>t(ni,{FallbackComponent:({error:e,...i})=>t(jv,{children:t(YS,{...i,error:e})}),children:e}),qS=n.header`
|
|
1228
1338
|
position: relative;
|
|
1229
1339
|
width: 100%;
|
|
1230
1340
|
padding: 12px 18px;
|
|
@@ -1232,12 +1342,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1232
1342
|
display: flex;
|
|
1233
1343
|
align-items: center;
|
|
1234
1344
|
justify-content: space-between;
|
|
1235
|
-
`,
|
|
1345
|
+
`,QS=n(kl)`
|
|
1236
1346
|
position: absolute;
|
|
1237
1347
|
left: 50%;
|
|
1238
1348
|
transform: translateX(-50%);
|
|
1239
1349
|
gap: 16px;
|
|
1240
|
-
`,
|
|
1350
|
+
`,ZS=({left:i=[],center:n=[],right:r=[]})=>e(qS,{children:[t(kl,{$gap:16,children:i}),t(QS,{children:n}),t(kl,{$gap:16,children:r})]}),ex=n.div`
|
|
1241
1351
|
display: flex;
|
|
1242
1352
|
align-items: center;
|
|
1243
1353
|
gap: 4px;
|
|
@@ -1252,7 +1362,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1252
1362
|
left: ${({$left:e})=>e||"unset"};
|
|
1253
1363
|
top: 50%;
|
|
1254
1364
|
transform: translateY(-50%);
|
|
1255
|
-
`,
|
|
1365
|
+
`,tx=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(ex,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(tv,{text:i||"",children:t(ov,{...n,variant:n.variant||iv.Secondary,size:nv.S})},n.id)})}):null,ix=n.div`
|
|
1256
1366
|
display: flex;
|
|
1257
1367
|
align-items: center;
|
|
1258
1368
|
justify-content: center;
|
|
@@ -1260,8 +1370,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1260
1370
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1261
1371
|
aspect-ratio: 1 / 1;
|
|
1262
1372
|
border-radius: 8px;
|
|
1263
|
-
background-color: ${({theme:e,$noBackground:t,$status:
|
|
1264
|
-
`,
|
|
1373
|
+
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?sl(e,i,i===Ai.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1374
|
+
`,nx=({icons:i,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=el(c,d.v2.text.size);if(i&&i.length>1){const n=i.slice(0,3),r=i.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(ix,{$size:s,$padding:l,$status:a,children:e(Il,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(kl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(kl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Ga,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(ix,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},rx=30,ox=n.div`
|
|
1265
1375
|
display: flex;
|
|
1266
1376
|
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1267
1377
|
gap: 8px;
|
|
@@ -1272,40 +1382,40 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1272
1382
|
&:hover {
|
|
1273
1383
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1274
1384
|
}
|
|
1275
|
-
`,
|
|
1385
|
+
`,ax=n(Ga)`
|
|
1276
1386
|
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1277
|
-
`,
|
|
1387
|
+
`,sx=n(Ga)`
|
|
1278
1388
|
flex: 1 1 auto;
|
|
1279
1389
|
min-width: 0;
|
|
1280
|
-
`,
|
|
1390
|
+
`,lx=n(kl)`
|
|
1281
1391
|
flex: 1 1 auto;
|
|
1282
1392
|
justify-content: flex-end;
|
|
1283
1393
|
min-width: 0;
|
|
1284
|
-
`,
|
|
1394
|
+
`,dx=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(ox,{$withHealthBadge:s,children:[t(ax,{size:Ba.XXS,color:ja.Secondary,$withHealthBadge:s,children:i}),n?t(sx,{size:Ba.XXS,color:ja.Primary,align:"right",children:n}):null,(r||s)&&e(lx,{children:[r?t(_v,{status:Ai.Info,label:Za.STANDARD,textSize:Ba.XXXS,invertColors:!0}):null,s?e(kl,{$gap:4,children:[a?t(sx,{size:Ba.XXXS,color:ja.Error,align:"right",children:a}):null,t(_v,{status:o?Ai.Success:Ai.Error,label:o?Za.HEALTHY:Za.NOT_HEALTHY,leftIcon:ee,textSize:Ba.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},cx=n.div`
|
|
1285
1395
|
width: 100%;
|
|
1286
1396
|
border-radius: 8px;
|
|
1287
1397
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1288
1398
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1289
|
-
`,
|
|
1399
|
+
`,ux=({values:i,setValues:n,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,autoFocusNewRows:m=!0,plain:f})=>{const y=o(),b=i.length<=1,v=g,w=g||b&&v,$=i.length?i:[""];return t(cx,{$plain:f,children:e(Il,{"data-id":r,$gap:6,children:[t(uw,{label:a,tooltip:s,required:d,badge:l}),t(Il,{$gap:8,children:$.map((r,o)=>{const a=o===$.length-1;return e(kl,{$gap:8,$alignItems:"center",children:[t(a$,{width:"100%",autoFocus:m&&id(r)&&!b&&a,value:r,onChange:e=>((e,t)=>{const r=[...i||[]];r[t]=e,n(r)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(ov,{leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:v,onClick:()=>(()=>{const e=i.length?vs(i):[vs("")];e.push(""),n(e)})()}),t(ov,{leftIcon:w?_t:()=>t(_t,{fill:y.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:w,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(pw,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var px;(e=>{e.S="small",e.L="large"})(px||(px={}));const hx=n.div`
|
|
1290
1400
|
width: fit-content;
|
|
1291
1401
|
display: flex;
|
|
1292
1402
|
align-items: center;
|
|
1293
1403
|
gap: 8px;
|
|
1294
1404
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1295
|
-
`,
|
|
1296
|
-
width: ${({$size:e})=>e===
|
|
1297
|
-
height: ${({$size:e})=>e===
|
|
1405
|
+
`,gx=n.div`
|
|
1406
|
+
width: ${({$size:e})=>e===px.S?"16px":"20px"};
|
|
1407
|
+
height: ${({$size:e})=>e===px.S?"16px":"20px"};
|
|
1298
1408
|
display: flex;
|
|
1299
1409
|
align-items: center;
|
|
1300
1410
|
justify-content: center;
|
|
1301
1411
|
border-radius: 100%;
|
|
1302
1412
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1303
1413
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1304
|
-
`,
|
|
1414
|
+
`,mx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=px.L})=>{const d=o(),[c,u]=jt(!1),p=r,h=l===px.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(hx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(gx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Ga,{size:l===px.S?Ba.XXS:Ba.XS,children:n})]})},fx=n.div`
|
|
1305
1415
|
display: flex;
|
|
1306
1416
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1307
1417
|
gap: ${({$gap:e})=>e}px;
|
|
1308
|
-
`,
|
|
1418
|
+
`,yx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(fx,{$flexDirection:n===fi.Horizontal?"row":"column",$gap:n===fi.Horizontal?16:8,children:[i&&t(Ga,{children:i}),a.map(e=>t(mx,{...e,value:s[e.id],onChange:t=>{return i=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:r,size:o},`${i}-radio-${e.id}`))]}),bx=({col:i,colIdx:n,row:r,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:w,max:$}=i,S=r[p];if(b&&!b(r))return null;const x=c?void 0:m||void 0,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",i=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(yx,{direction:fi.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:i,setValues:e=>{const t="function"==typeof e?e(i):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Ti.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=y?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(KS,{name:p,label:x,placeholder:C,options:y||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===o&&0===n&&id(S),c=t(a$,{name:p,label:x,placeholder:C,autoFocus:r,type:g,min:w,max:$,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:i.withRegexTester?"100%":void 0});return i.withRegexTester?e(kl,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(ov,{variant:iv.Secondary,size:nv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},vx=n.div`
|
|
1309
1419
|
width: 100%;
|
|
1310
1420
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1311
1421
|
border-radius: 8px;
|
|
@@ -1313,28 +1423,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1313
1423
|
display: flex;
|
|
1314
1424
|
flex-direction: column;
|
|
1315
1425
|
gap: 8px;
|
|
1316
|
-
`,
|
|
1426
|
+
`,wx=n.div`
|
|
1317
1427
|
flex: 1;
|
|
1318
1428
|
min-width: 0;
|
|
1319
|
-
|
|
1429
|
+
`,$x=n.div`
|
|
1320
1430
|
padding-top: 24px;
|
|
1321
|
-
`,
|
|
1431
|
+
`,Sx=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=i.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",w=n.length?n:[b(v)],$=(f?w[0]?.[f]:"")||v,S=(e,t,i)=>{r(w.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...w,b($)]),C=y.find(e=>e.id===$);return e(Il,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(uw,{label:s,tooltip:l,required:d}),m&&t(nw,{"data-id":`${a}-mode`,size:qv.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=>!c&&(e=>r([b(e)]))(String(e))}),e(Il,{$gap:8,$width:"100%",children:[w.map((n,o)=>{const s=o===w.length-1,l=f?{...n,[f]:$}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),y=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),E=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(y,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e(vx,{"data-id":`${a}-card-${o}`,children:[e(kl,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Il,{$gap:10,children:[T&&t(uw,{label:T}),m.map(e=>t(kl,{$gap:24,children:(e.options??[]).map(i=>t(mx,{size:px.L,label:i.label,value:String(n[e.keyName]??"")===String(i.id),disabled:c,onChange:t=>t&&S(o,e.keyName,i.id)},`${a}-card-${o}-${e.keyName}-${i.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(kl,{$gap:4,$alignItems:"center",children:[v&&t(ov,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:iv.Secondary,size:nv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(ov,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?_t:()=>t(_t,{fill:g.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:c,onClick:()=>(e=>{const t=w.filter((t,i)=>i!==e);r(t.length?t:[b($)])})(o)}),s&&t(ov,{"data-id":`${a}-card-${o}-add`,leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(kl,{$gap:8,$alignItems:"flex-start",$width:"100%",children:i.map((i,r)=>{const s=((e,t)=>{let{label:i,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(i=o.label??i,n=o.placeholder??n,r=o.helpMessage??r)}return{label:i,placeholder:n,helpMessage:r}})(i,n);return e(Bt,{children:["arrow"===i.separator&&r>0&&t($x,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(wx,{children:t(a$,{name:`${a}-card-${o}-${i.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:i.inputType,min:i.min,max:i.max,width:"100%",value:n[i.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,i.keyName,e.target.value)})})]},`${a}-card-${o}-${i.keyName}`)})},`${a}-card-${o}-row-${r}`))]},`${a}-card-${o}`)}),t(pw,{errorMessage:u})]})]})},xx=n.div`
|
|
1322
1432
|
width: 100%;
|
|
1323
1433
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1324
1434
|
border-radius: 8px;
|
|
1325
1435
|
padding: 4px 8px;
|
|
1326
|
-
`,
|
|
1436
|
+
`,Cx=n.table`
|
|
1327
1437
|
width: 100%;
|
|
1328
1438
|
border-collapse: separate;
|
|
1329
1439
|
border-spacing: 0 8px;
|
|
1330
|
-
`,
|
|
1440
|
+
`,Ex=n.td`
|
|
1331
1441
|
padding: 0 8px 0 0;
|
|
1332
1442
|
vertical-align: top;
|
|
1333
|
-
`,
|
|
1443
|
+
`,Tx=n.td`
|
|
1334
1444
|
width: 72px;
|
|
1335
1445
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1336
1446
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1337
|
-
`,
|
|
1447
|
+
`,Ox=({columns:i,values:n,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=o(),b=Wt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?vs(n):[vs(b)];o[i][e]=t,r(o)},w=n.length?n:[b];return t(xx,{children:e(Il,{"data-id":a,$gap:0,children:[t(uw,{label:s,tooltip:l,required:c,badge:d}),t(Cx,{children:t("tbody",{children:w.map((o,a)=>{const s=a===w.length-1,l=((e,t)=>{const i=t||e.length||1,n=[];let r=[];const o=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);r.push(e),r.length>=i&&o()}),o(),n})(i.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Bt,{children:[l.length>1&&a>0?t("tr",{children:t(Ex,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],$=m?22:0;return e("tr",{children:[l.map((i,n)=>{if(i.renderCondition&&!i.renderCondition(o))return null;const r=n===l.length-1,s=0===g&&r?c-l.length+1:1;return t(Ex,{colSpan:s>1?s:void 0,children:e(Il,{$gap:6,children:[m&&(i.label?t(uw,{label:i.label,tooltip:i.tooltip}):t(uw,{label:"\\u00A0"})),t(bx,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:w.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Tx,{$topOffset:$,$center:h,children:e(kl,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(ov,{leftIcon:Dt,variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(()=>{const e=n.length?vs(n):[vs(b)],t=vs(b),o=e[e.length-1];i.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=vs(o[e.keyName]))}),e.push(t),r(e)})()}),t(ov,{leftIcon:u?_t:()=>t(_t,{fill:y.v2.colors.red[500]}),variant:iv.Secondary,size:nv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push(vs(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(pw,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var Ax;(e=>{e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right"})(Ax||(Ax={}));const Nx=n.div`
|
|
1338
1448
|
display: flex;
|
|
1339
1449
|
align-items: center;
|
|
1340
1450
|
justify-content: space-between;
|
|
@@ -1348,32 +1458,32 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1348
1458
|
position: fixed;
|
|
1349
1459
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1350
1460
|
|
|
1351
|
-
${({$position:e})=>{switch(e){case
|
|
1461
|
+
${({$position:e})=>{switch(e){case Ax.BottomCenter:return r`
|
|
1352
1462
|
bottom: 0;
|
|
1353
1463
|
left: 50%;
|
|
1354
|
-
animation-name: ${
|
|
1355
|
-
`;case
|
|
1464
|
+
animation-name: ${Wv.in.center};
|
|
1465
|
+
`;case Ax.BottomRight:return r`
|
|
1356
1466
|
bottom: 0;
|
|
1357
1467
|
right: 0;
|
|
1358
|
-
animation-name: ${
|
|
1359
|
-
`;case
|
|
1468
|
+
animation-name: ${Wv.in.right};
|
|
1469
|
+
`;case Ax.BottomLeft:return r`
|
|
1360
1470
|
bottom: 0;
|
|
1361
1471
|
left: 0;
|
|
1362
|
-
animation-name: ${
|
|
1363
|
-
`;case
|
|
1472
|
+
animation-name: ${Wv.in.left};
|
|
1473
|
+
`;case Ax.TopCenter:return r`
|
|
1364
1474
|
top: 0;
|
|
1365
1475
|
left: 50%;
|
|
1366
|
-
animation-name: ${
|
|
1367
|
-
`;case
|
|
1476
|
+
animation-name: ${Wv.in.center};
|
|
1477
|
+
`;case Ax.TopRight:return r`
|
|
1368
1478
|
top: 0;
|
|
1369
1479
|
right: 0;
|
|
1370
|
-
animation-name: ${
|
|
1371
|
-
`;case
|
|
1480
|
+
animation-name: ${Wv.in.right};
|
|
1481
|
+
`;case Ax.TopLeft:return r`
|
|
1372
1482
|
top: 0;
|
|
1373
1483
|
left: 0;
|
|
1374
|
-
animation-name: ${
|
|
1484
|
+
animation-name: ${Wv.in.left};
|
|
1375
1485
|
`;default:return null}}}
|
|
1376
|
-
`,
|
|
1486
|
+
`,kx=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=Ax.BottomCenter})=>i?e(Nx,{$position:a,children:[r&&t(_w,{...r}),t(Nw,{onAnyClick:n,actions:o})]}):null,Ix=n.div`
|
|
1377
1487
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1378
1488
|
top: 50%;
|
|
1379
1489
|
left: 50%;
|
|
@@ -1394,7 +1504,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1394
1504
|
will-change: transform;
|
|
1395
1505
|
contain: layout paint;
|
|
1396
1506
|
|
|
1397
|
-
animation-name: ${({$closing:e})=>e?
|
|
1507
|
+
animation-name: ${({$closing:e})=>e?Wv.out.center:Wv.in.center};
|
|
1398
1508
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1399
1509
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1400
1510
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1403,7 +1513,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1403
1513
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1404
1514
|
don't compete with the slide-out. */
|
|
1405
1515
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1406
|
-
`,
|
|
1516
|
+
`,Dx=n(Rl)`
|
|
1407
1517
|
will-change: opacity;
|
|
1408
1518
|
animation-name: ${({$closing:e})=>e?Yv.out:Yv.in};
|
|
1409
1519
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1413,18 +1523,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1413
1523
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1414
1524
|
because the overlay is fading to 0. */
|
|
1415
1525
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1416
|
-
`,
|
|
1526
|
+
`,_x=n.div`
|
|
1417
1527
|
position: relative;
|
|
1418
|
-
`,
|
|
1528
|
+
`,Rx=n.div`
|
|
1419
1529
|
position: absolute;
|
|
1420
1530
|
top: 16px;
|
|
1421
1531
|
left: 16px;
|
|
1422
|
-
`,
|
|
1532
|
+
`,Lx=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=jt(n),[p,h]=jt(!1);if(Ht(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Hb(c),!c)return null;const g=e(i,{children:[!r&&t(Dx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Ix,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(_x,{children:[a&&t(Rx,{children:t(OS,{icon:e=>t(Nt,{rotate:-90,...e}),size:ES.L,onClick:a})}),d]})})]});return o?g:Qt(g,document.body)},Px=n.div`
|
|
1423
1533
|
position: relative;
|
|
1424
1534
|
width: ${64}px;
|
|
1425
1535
|
height: ${({$height:e})=>e};
|
|
1426
1536
|
flex-shrink: 0;
|
|
1427
|
-
`,
|
|
1537
|
+
`,Ux=n.aside`
|
|
1428
1538
|
position: absolute;
|
|
1429
1539
|
top: 0;
|
|
1430
1540
|
left: 0;
|
|
@@ -1444,7 +1554,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1444
1554
|
transition:
|
|
1445
1555
|
width 200ms ease,
|
|
1446
1556
|
padding 200ms ease;
|
|
1447
|
-
`,
|
|
1557
|
+
`,Mx=n.button`
|
|
1448
1558
|
display: flex;
|
|
1449
1559
|
align-items: center;
|
|
1450
1560
|
width: 100%;
|
|
@@ -1464,20 +1574,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1464
1574
|
&:active {
|
|
1465
1575
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1466
1576
|
}
|
|
1467
|
-
`,
|
|
1577
|
+
`,Fx=n.div`
|
|
1468
1578
|
width: ${40}px;
|
|
1469
1579
|
height: ${40}px;
|
|
1470
1580
|
display: flex;
|
|
1471
1581
|
align-items: center;
|
|
1472
1582
|
justify-content: center;
|
|
1473
1583
|
flex-shrink: 0;
|
|
1474
|
-
|
|
1584
|
+
`,zx=n.div`
|
|
1475
1585
|
flex: 1 1 0;
|
|
1476
1586
|
min-width: 0;
|
|
1477
1587
|
overflow: hidden;
|
|
1478
1588
|
padding-right: 12px;
|
|
1479
1589
|
pointer-events: none;
|
|
1480
|
-
`,
|
|
1590
|
+
`,Bx=({height:i,icons:n})=>{const r=o(),[a,s]=jt(!1);return t(Px,{$height:i,children:t(Ux,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(Mx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Fx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(zx,{children:t(Ga,{size:Ba.S,weight:500,color:ja.Primary,nowrap:!0,children:n})})]},i))})})},jx=n.div`
|
|
1481
1591
|
display: flex;
|
|
1482
1592
|
flex-direction: column;
|
|
1483
1593
|
gap: 16px;
|
|
@@ -1490,37 +1600,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1490
1600
|
background-color 0.15s ease,
|
|
1491
1601
|
border-color 0.15s ease;
|
|
1492
1602
|
|
|
1493
|
-
${({$selected:e,$disabled:t,theme:
|
|
1494
|
-
background-color: ${
|
|
1495
|
-
border-color: ${
|
|
1603
|
+
${({$selected:e,$disabled:t,theme:i})=>e?r`
|
|
1604
|
+
background-color: ${i.v2.colors.purple[900]};
|
|
1605
|
+
border-color: ${i.v2.colors.purple[500]};
|
|
1496
1606
|
`:r`
|
|
1497
|
-
background-color: ${
|
|
1607
|
+
background-color: ${i.v2.colors.silver[800]};
|
|
1498
1608
|
${!t&&r`
|
|
1499
1609
|
&:hover {
|
|
1500
|
-
background-color: ${
|
|
1610
|
+
background-color: ${i.v2.colors.silver[700]};
|
|
1501
1611
|
}
|
|
1502
1612
|
`}
|
|
1503
1613
|
`}
|
|
1504
|
-
`,
|
|
1614
|
+
`,Hx=n.div`
|
|
1505
1615
|
display: flex;
|
|
1506
1616
|
align-items: center;
|
|
1507
1617
|
gap: 16px;
|
|
1508
1618
|
width: 100%;
|
|
1509
|
-
`,
|
|
1619
|
+
`,Xx=n.div`
|
|
1510
1620
|
display: flex;
|
|
1511
1621
|
flex-direction: column;
|
|
1512
1622
|
gap: 4px;
|
|
1513
1623
|
flex: 1;
|
|
1514
1624
|
min-width: 0;
|
|
1515
|
-
`,
|
|
1625
|
+
`,Wx=n.div`
|
|
1516
1626
|
display: flex;
|
|
1517
1627
|
align-items: center;
|
|
1518
1628
|
gap: 8px;
|
|
1519
1629
|
flex-wrap: wrap;
|
|
1520
1630
|
min-width: 0;
|
|
1521
|
-
`,
|
|
1631
|
+
`,Gx=n.div`
|
|
1522
1632
|
width: 100%;
|
|
1523
|
-
`,
|
|
1633
|
+
`,Vx=({"data-id":i,title:n,badge:r,description:a,trailing:s,body:l,footerNote:d,checked:c,onChange:u,disabled:p})=>{const h=o(),g=i??`radio-card-${n}`,m=()=>{p||c||u(!0)};return e(jx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Hx,{children:[t(mx,{"data-id":`${g}-radio`,value:c,onChange:m,size:px.L,disabled:p}),e(Xx,{children:[e(Wx,{children:[t(Ga,{size:Ba.S,weight:500,lineHeight:"24px",color:ja.Primary,children:n}),r]}),a&&("string"==typeof a?t(Ga,{size:Ba.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:ja.Secondary,children:a}):a)]}),s]}),l&&t(Gx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(Gx,{onClick:e=>e.stopPropagation(),children:d})]})},Kx=n.div`
|
|
1524
1634
|
width: 100%;
|
|
1525
1635
|
height: 100%;
|
|
1526
1636
|
|
|
@@ -1528,7 +1638,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1528
1638
|
animation: none !important;
|
|
1529
1639
|
transition: none !important;
|
|
1530
1640
|
}
|
|
1531
|
-
`,
|
|
1641
|
+
`,Yx=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=Wt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Ht(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ri,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Kx,{children:p}):p},Jx=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],qx=Jx[1].value,Qx=Jx[Jx.length-1].value,Zx=e=>({label:e?Jx.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:iv.Secondary,size:nv.S}),eC=n.input`
|
|
1532
1642
|
width: 100px;
|
|
1533
1643
|
padding: 2px 12px;
|
|
1534
1644
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1558,7 +1668,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1558
1668
|
opacity: 0.4;
|
|
1559
1669
|
}
|
|
1560
1670
|
`}
|
|
1561
|
-
`,
|
|
1671
|
+
`,tC=()=>(new Date).toISOString().split("T")[0],iC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},nC=({options:i=Jx,maxAllowedValue:n=Qx,defaultValue:r=qx,onApply:o,onClose:a})=>{const[s]=jt(tC),[l,d]=jt(r),[c,u]=jt(()=>iC(s,r)),[p,h]=jt(void 0),g=Wt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Wt(()=>i.map(({label:e,value:i})=>t(ov,{label:e,variant:iv.Text,size:nv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(iC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Il,{$gap:24,children:[e(Il,{children:[m,t(mS,{}),e(Il,{$gap:12,$padding:"0 12px",children:[t(Ga,{size:Ba.XXS,color:ja.Secondary,nowrap:!0,children:"Custom range"}),e(kl,{$gap:18,$justifyContent:"space-between",children:[t(Ga,{size:Ba.XXS,nowrap:!0,children:"From"}),t(eC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(kl,{$gap:18,$justifyContent:"space-between",children:[t(Ga,{size:Ba.XXS,nowrap:!0,children:"To"}),t(eC,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const i=new Date(e).getTime(),n=new Date(t).getTime(),r=Math.floor((n-i)/1e3/60/60);return r<0?Math.abs(r):r})(s,t));var t}})]}),p&&t(pw,{errorMessage:p}),e(Ga,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(ov,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},rC=n.div`
|
|
1562
1672
|
display: flex;
|
|
1563
1673
|
flex-direction: column;
|
|
1564
1674
|
gap: 16px;
|
|
@@ -1567,63 +1677,63 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1567
1677
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1568
1678
|
width: 100%;
|
|
1569
1679
|
height: 100%;
|
|
1570
|
-
`,
|
|
1680
|
+
`,oC=n.div`
|
|
1571
1681
|
display: flex;
|
|
1572
1682
|
align-items: center;
|
|
1573
1683
|
gap: 16px;
|
|
1574
|
-
`,
|
|
1684
|
+
`,aC=n.div`
|
|
1575
1685
|
width: 50px;
|
|
1576
1686
|
height: 50px;
|
|
1577
1687
|
border-radius: 8px;
|
|
1578
1688
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1579
1689
|
background-size: 200% 100%;
|
|
1580
1690
|
animation: ${Kv} 10s infinite linear;
|
|
1581
|
-
`,
|
|
1691
|
+
`,sC=n(Il)`
|
|
1582
1692
|
flex: 1;
|
|
1583
1693
|
gap: 12px;
|
|
1584
|
-
`,
|
|
1694
|
+
`,lC=n.div`
|
|
1585
1695
|
width: ${({$width:e})=>e};
|
|
1586
1696
|
height: 16px;
|
|
1587
1697
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1588
1698
|
background-size: 200% 100%;
|
|
1589
1699
|
animation: ${Kv} 1.5s infinite linear;
|
|
1590
1700
|
border-radius: 4px;
|
|
1591
|
-
`,
|
|
1592
|
-
${({$maxHeight:e,$fitContent:t,$virtualize:
|
|
1701
|
+
`,dC=({size:i=5,maxWidth:n,maxHeight:r})=>t(rC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(oC,{children:[t(aC,{}),e(sC,{children:[t(lC,{$width:"80%"}),t(lC,{$width:"100%"})]})]},n))}),cC=({currentStep:i,data:n,gap:r=12})=>t(Il,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(kl,{$gap:8,children:[r||n.forceDoneBadge?t(_v,{status:Ai.Success,label:"",leftIcon:wt}):t(_v,{status:Ai.Default,label:n.step.toString()}),t(Ga,{size:o?Ba.M:Ba.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var uC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(uC||(uC={}));const pC=n.div`
|
|
1702
|
+
${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow: hidden;\n `:t&&e?`\n flex: 0 0 auto;\n height: fit-content;\n max-height: ${e};\n overflow: auto;\n `:t?"\n flex: 0 0 auto;\n height: fit-content;\n overflow: auto;\n ":e?`\n height: ${e};\n flex: 0 0 auto;\n overflow: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow: hidden;\n "}
|
|
1593
1703
|
width: 100%;
|
|
1594
1704
|
display: flex;
|
|
1595
1705
|
flex-direction: column;
|
|
1596
|
-
`,
|
|
1706
|
+
`,hC=n.div`
|
|
1597
1707
|
width: 100%;
|
|
1598
1708
|
flex: 1;
|
|
1599
1709
|
min-height: 0;
|
|
1600
1710
|
display: flex;
|
|
1601
1711
|
flex-direction: column;
|
|
1602
|
-
`,
|
|
1712
|
+
`,gC=n.div`
|
|
1603
1713
|
flex-shrink: 0;
|
|
1604
1714
|
position: relative;
|
|
1605
1715
|
z-index: 2;
|
|
1606
|
-
`,
|
|
1716
|
+
`,mC=n.div`
|
|
1607
1717
|
flex: 1;
|
|
1608
1718
|
min-height: 0;
|
|
1609
1719
|
overflow: hidden;
|
|
1610
|
-
`,
|
|
1720
|
+
`,fC=n.div`
|
|
1611
1721
|
position: relative;
|
|
1612
1722
|
display: flex;
|
|
1613
1723
|
width: 100%;
|
|
1614
|
-
`,
|
|
1724
|
+
`,yC=n.div`
|
|
1615
1725
|
display: flex;
|
|
1616
1726
|
flex-direction: column;
|
|
1617
1727
|
flex-shrink: 0;
|
|
1618
1728
|
width: 100%;
|
|
1619
|
-
`,
|
|
1729
|
+
`,bC=n.div`
|
|
1620
1730
|
width: 100%;
|
|
1621
1731
|
flex-shrink: 0;
|
|
1622
1732
|
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1623
|
-
`,
|
|
1733
|
+
`,vC=n.div`
|
|
1624
1734
|
position: relative;
|
|
1625
1735
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1626
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:
|
|
1736
|
+
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:i})=>null!=i?`0 0 ${i}px`:e??(t?"0 0 auto":1)};
|
|
1627
1737
|
|
|
1628
1738
|
/* See the matching rule on Td below for the full explanation. The header
|
|
1629
1739
|
* needs the same flex-grow override so its column shares any empty row
|
|
@@ -1639,15 +1749,15 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1639
1749
|
|
|
1640
1750
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1641
1751
|
background-color: ${t};
|
|
1642
|
-
`;switch(e){case
|
|
1752
|
+
`;switch(e){case uC.Data:return r`
|
|
1643
1753
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1644
|
-
`;case
|
|
1754
|
+
`;case uC.DataSecondary:return r`
|
|
1645
1755
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1646
1756
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1647
|
-
`;case
|
|
1757
|
+
`;case uC.Pretty:return r`
|
|
1648
1758
|
background-color: transparent;
|
|
1649
1759
|
`;default:return""}}}
|
|
1650
|
-
`,
|
|
1760
|
+
`,wC=n.div`
|
|
1651
1761
|
position: absolute;
|
|
1652
1762
|
top: 50%;
|
|
1653
1763
|
right: 0;
|
|
@@ -1655,9 +1765,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1655
1765
|
width: 1px;
|
|
1656
1766
|
height: 18px;
|
|
1657
1767
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1658
|
-
|
|
1768
|
+
`,$C=n.div`
|
|
1659
1769
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1660
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:
|
|
1770
|
+
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:i})=>null!=i?`0 0 ${i}px`:e??(t?"0 0 auto":1)};
|
|
1661
1771
|
|
|
1662
1772
|
/* Always let text columns grow into empty row space, even when the caller
|
|
1663
1773
|
* wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
|
|
@@ -1690,20 +1800,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1690
1800
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1691
1801
|
box-sizing: border-box;
|
|
1692
1802
|
|
|
1693
|
-
${({$variant:e,$index:t,$selected:
|
|
1694
|
-
border-bottom: ${({theme:e})=>
|
|
1695
|
-
border-radius: ${
|
|
1696
|
-
background-color: ${({theme:e})=>
|
|
1697
|
-
`;case
|
|
1698
|
-
border-bottom: ${({theme:e})=>
|
|
1699
|
-
border-radius: ${
|
|
1700
|
-
background-color: ${({theme:e})=>
|
|
1701
|
-
`;case
|
|
1803
|
+
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case uC.Data:return r`
|
|
1804
|
+
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1805
|
+
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1806
|
+
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1807
|
+
`;case uC.DataSecondary:return r`
|
|
1808
|
+
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1809
|
+
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1810
|
+
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:"number"==typeof t&&t%2==0?e.v2.colors.silver[800]:e.v2.colors.silver[900]};
|
|
1811
|
+
`;case uC.Pretty:return r`
|
|
1702
1812
|
border: none;
|
|
1703
1813
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1704
|
-
background-color: ${({theme:e})=>
|
|
1814
|
+
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1705
1815
|
`;default:return""}}}
|
|
1706
|
-
`,
|
|
1816
|
+
`,SC=n.div`
|
|
1707
1817
|
position: absolute;
|
|
1708
1818
|
top: 0;
|
|
1709
1819
|
left: 0;
|
|
@@ -1712,18 +1822,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1712
1822
|
height: 0;
|
|
1713
1823
|
overflow: hidden;
|
|
1714
1824
|
white-space: nowrap;
|
|
1715
|
-
`,
|
|
1825
|
+
`,xC=n.div`
|
|
1716
1826
|
display: inline-flex;
|
|
1717
1827
|
align-items: center;
|
|
1718
1828
|
padding: 18px 24px;
|
|
1719
1829
|
box-sizing: border-box;
|
|
1720
1830
|
white-space: nowrap;
|
|
1721
|
-
`,
|
|
1831
|
+
`,CC=n.div`
|
|
1722
1832
|
display: inline-flex;
|
|
1723
1833
|
align-items: center;
|
|
1724
1834
|
gap: 4px;
|
|
1725
1835
|
white-space: nowrap;
|
|
1726
|
-
`,
|
|
1836
|
+
`,EC=n.div`
|
|
1727
1837
|
width: 100%;
|
|
1728
1838
|
height: 100%;
|
|
1729
1839
|
display: flex;
|
|
@@ -1731,7 +1841,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1731
1841
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1732
1842
|
gap: 4px;
|
|
1733
1843
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1734
|
-
`,
|
|
1844
|
+
`,TC=({variant:n,columns:r,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y})=>{const[b,v]=jt(!1),{cells:w,onClick:$,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:A}=o,N=o.id??String(a),k=null!=A,I=k&&m===N,D=null!=g&&o.id===g,_=c(o),R=a===s-1,L=k||!!$,P=()=>{k&&f?.(N),$?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:D,$withClick:L,onClick:P,$hovered:L&&b,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}),M=I&&null!=A?"function"==typeof A?A({maxHeight:y}):A:null,F=e(i,{children:[h&&t($C,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(tv,{text:O,children:t(fw,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(fw,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,withTooltip:o,textAlign:s,flex:c,minWidth:g},m)=>{const f=w.find(e=>e.key===i),y=0===m&&!h,v=m===r.length-1,$=0===m,S=!!_.length&&(!!u&&v||!!p&&y||!u&&!p&&v),x="right"===s?"flex-end":"center"===s?"center":"flex-start",C=f?.component?f.component():o?t(Ga,{size:Ba.XS,align:s,nowrap:!0,children:f?.rawValue||"-"}):t(Rw,{size:Ba.XS,align:s,nowrap:!0,fullWidth:!1,children:f?.rawValue||"-"}),E=e(kl,{$width:"100%",$gap:k&&$?8:0,$justifyContent:x,children:[k&&$?t(I?Et:Ut,{}):null,C]});return e($C,{$variant:n,$index:a,$flex:c,$minWidth:g,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(y,v),children:[o?t(tv,{text:f?.rawValue?.toString()||"",ellipsis:!0,children:E}):E,S?t(tx,{isOpen:b,actions:_,positionRight:u,positionLeft:p}):null]},`row-${a}-cell-${m}`)})]});return k?e(yC,{"data-table-row-index":a,children:[t(fC,{children:F}),null!=M&&e(i,{children:[t(bC,{$maxHeight:y,children:M}),!R&&t(mS,{margin:"0"})]})]}):t(fC,{"data-table-row-index":a,children:F})},OC=({variant:e,columns:n,rows:r,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y})=>{const b=Wt(()=>r.map((i,p)=>t(TC,{variant:e,columns:n,row:i,rowIdx:p,rowCount:r.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:y},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,y,e]);return g?t(Yx,{gap:e===uC.Pretty?8:0,elements:b,scrollToIndex:p,scrollSignal:h}):t(i,{children:b})},AC=({columnKey:e,sortDirection:i,sortByKey:n,onSort:r})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=i===yi.Ascending?0:180;return t(ov,{variant:iv.Text,size:nv.S,leftIcon:()=>t(Nt,{fill:s,rotate:l}),onClick:()=>r(e)})},NC=({columnKey:e,filters:i,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=o(),l=i[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Wt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(Ow,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},kC=({variant:i,backgroundColor:n,columns:r,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(fC,{children:[h&&t(vC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(fw,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:w,flex:$,minWidth:S,textAlign:x},C)=>{const E=0===C&&!h,T=C===r.length-1,O=!(!y&&!f),A=O?t(Ga,{size:Ba.XS,align:x,nowrap:!0,children:m}):t(Rw,{size:Ba.XS,align:x,nowrap:!0,fullWidth:!1,children:m});return e(vC,{$variant:i,$backgroundColor:n,$flex:$,$minWidth:S,$isFirst:E,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(EC,{$textAlign:x,children:[O?t(tv,{text:y||m,children:A}):A,!b&&t(AC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(NC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:w})]}),!T&&i===uC.Data&&t(wC,{})]},`column-${g}`)})]}),IC=()=>{},DC={},_C=[],RC=e=>[],LC=({variant:i,maxHeight:n,fitContent:r=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:y,scrollSignal:b,expandedRowId:v,onExpandedRowIdChange:w})=>{const[$,S]=jt(yi.Ascending),[x,C]=jt(""),[E,T]=jt({}),[O,A]=jt(null),N=m??E,k=void 0!==v,I=k?v:O,D=Xt(e=>{C(e),S(e=>e===yi.Ascending?yi.Descending:yi.Ascending)},[]),_=Xt((e,t)=>{const i={...N,[e]:t};f&&f(i),void 0===m&&T(i)},[N,f,m]),R=Wt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i?""!==i.rawValue&&null!=i.rawValue?i.rawValue:i.component?.({})?.props?.children?.toString()||"":""},t=/^-?\d+(\.\d+)?$/,i=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e){const i=e.trim();return t.test(i)?Number(i):e}return String(e??"")};return(x?[...c].sort((t,n)=>{const r=i(e(t,x)),o=i(e(n,x));return($===yi.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:String(e).localeCompare(String(t)))(r,o)}):c).filter(t=>{for(const[i,n]of Object.entries(N)){if(!n.length)continue;const r=d.find(e=>e.key===i)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1;continue}const o=String(e(t,i)??"");if(!n.map(String).includes(o))return!1}return!0})},[c,x,$,N,d]),L=Wt(()=>null==y?-1:R.findIndex(e=>e.id===y),[R,y]),{partiallySelected:P,allSelected:U}=Wt(()=>{const e=R.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)}},[R]),M=Wt(()=>{const e=new Set;for(const t of d)null!=t.flex&&e.add(t.key);const t=new Set;for(const i of c)for(const n of i.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,d]),F=Gt(null),[z,B]=jt({}),j=Wt(()=>0===M.size?[]:d.filter(e=>M.has(e.key)).map(i=>{const n=[e(CC,{children:[t(Ga,{size:Ba.XS,align:i.textAlign,children:i.label}),!i.noSort&&t(AC,{columnKey:i.key,sortDirection:yi.Ascending,sortByKey:"",onSort:IC}),!i.noFilter&&t(NC,{columnKey:i.key,filters:DC,onFilter:IC,rowsUnfiltered:_C,filterOverride:i.filterOverride})]},`mw-${i.key}-header`)];return c.forEach((e,r)=>{const o=e.cells.find(e=>e.key===i.key);o&&n.push(o.component?t(o.component,{},`mw-${i.key}-${r}`):t(Ga,{size:Ba.XS,children:o.rawValue||"-"},`mw-${i.key}-${r}`))}),{key:i.key,nodes:n}}),[d,c,M]);Vt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[i]||n>e[i])&&(e[i]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[j,M]);const H=Gt(null),[X,W]=jt(0),G=R.some(e=>null!=e.expandedContent);Vt(()=>{if(!G)return void W(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;W(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,R.length]);const V=Xt(e=>{const t=I===e?null:e;k||A(t),w?.(t)},[I,k,w]),K=G&&X>0?`${X}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(pC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(SC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(xC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(hC,{$variant:i,children:[!a&&t(gC,{children:t(kC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:$,sortByKey:x,onSort:D,filters:N,onFilter:_,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?G&&!r?t(mC,{ref:H,children:t(OC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||RC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:y,scrollToIndex:L,scrollSignal:b,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(OC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||RC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:y,scrollToIndex:L,scrollSignal:b,useVirtua:J,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Dl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(dC,{size:3,maxHeight:n}):t(lw,{...l})})]})]})},PC=n.div`
|
|
1735
1845
|
padding: 6px 12px;
|
|
1736
1846
|
|
|
1737
1847
|
display: flex;
|
|
@@ -1740,7 +1850,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1740
1850
|
gap: 8px;
|
|
1741
1851
|
border-radius: 6px;
|
|
1742
1852
|
|
|
1743
|
-
border: 1px solid ${({theme:e,$disabled:t,$error:
|
|
1853
|
+
border: 1px solid ${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
1744
1854
|
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1745
1855
|
${({$disabled:e,$error:t})=>!e&&!t&&r`
|
|
1746
1856
|
&:hover,
|
|
@@ -1749,7 +1859,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1749
1859
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1750
1860
|
}
|
|
1751
1861
|
`}
|
|
1752
|
-
`,
|
|
1862
|
+
`,UC=n.textarea`
|
|
1753
1863
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1754
1864
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1755
1865
|
flex: 1;
|
|
@@ -1774,19 +1884,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1774
1884
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1775
1885
|
}
|
|
1776
1886
|
}
|
|
1777
|
-
`,
|
|
1887
|
+
`,MC=({label:i,required:n,tooltip:r,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Gt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Il,{$gap:6,children:[t(uw,{label:i,tooltip:r,required:n,badge:o}),t(PC,{$disabled:p,$error:!!a,children:t(UC,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(pw,{errorMessage:a,warnMessage:s,helpMessage:l})]})},FC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],zC=n.div`
|
|
1778
1888
|
flex: 1;
|
|
1779
1889
|
min-width: 0;
|
|
1780
|
-
`,
|
|
1890
|
+
`,BC=n.div`
|
|
1781
1891
|
flex: 0 0 auto;
|
|
1782
1892
|
min-width: 140px;
|
|
1783
|
-
`,
|
|
1893
|
+
`,jC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=FC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Wt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:w}=Wt(()=>((e,t,i)=>{if(null==e||""===e)return{num:"",unit:i};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(r);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:i}:{num:"",unit:i}})(d,u,b),[d,u,b]),$=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Il,{$width:y,$gap:6,children:[t(uw,{label:n,tooltip:r,required:s,badge:o}),e(kl,{$gap:8,$alignItems:"center",children:[t(zC,{children:t(a$,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>$(gd(e.target.value),w)})}),t(BC,{children:t(KS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[w],setValues:e=>$(v,e[0]||w)})})]}),t(pw,{errorMessage:h,warnMessage:g,helpMessage:m})]})},HC=n.div`
|
|
1784
1894
|
display: flex;
|
|
1785
1895
|
flex-direction: column;
|
|
1786
1896
|
min-width: 0;
|
|
1787
1897
|
width: 100%;
|
|
1788
1898
|
flex: 1;
|
|
1789
|
-
`,
|
|
1899
|
+
`,XC=n.div`
|
|
1790
1900
|
display: flex;
|
|
1791
1901
|
flex-wrap: wrap;
|
|
1792
1902
|
align-items: center;
|
|
@@ -1803,19 +1913,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1803
1913
|
border-top-left-radius: 12px;
|
|
1804
1914
|
border-top-right-radius: 12px;
|
|
1805
1915
|
`;default:return r``}}}
|
|
1806
|
-
`,
|
|
1916
|
+
`,WC=n.div`
|
|
1807
1917
|
display: flex;
|
|
1808
1918
|
align-items: center;
|
|
1809
1919
|
gap: 4px;
|
|
1810
1920
|
min-width: 0;
|
|
1811
|
-
`,
|
|
1921
|
+
`,GC=n.div`
|
|
1812
1922
|
display: flex;
|
|
1813
1923
|
align-items: center;
|
|
1814
1924
|
justify-content: center;
|
|
1815
1925
|
padding: 4px;
|
|
1816
1926
|
border-radius: 4px;
|
|
1817
1927
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1818
|
-
`,
|
|
1928
|
+
`,VC=n.div`
|
|
1819
1929
|
display: flex;
|
|
1820
1930
|
flex-direction: column;
|
|
1821
1931
|
width: 100%;
|
|
@@ -1843,7 +1953,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1843
1953
|
border-bottom-left-radius: 8px;
|
|
1844
1954
|
border-bottom-right-radius: 8px;
|
|
1845
1955
|
`;default:return r``}}}
|
|
1846
|
-
`,
|
|
1956
|
+
`,KC=r`
|
|
1847
1957
|
${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
|
|
1848
1958
|
background-color: ${e.v2.colors.yellow[1e3]};
|
|
1849
1959
|
border-left: 2px solid ${e.v2.colors.yellow[500]};
|
|
@@ -1858,10 +1968,10 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1858
1968
|
border-left: 2px solid transparent;
|
|
1859
1969
|
`}}}
|
|
1860
1970
|
|
|
1861
|
-
${({$selected:e,$variant:t,theme:
|
|
1862
|
-
border-left-color: ${
|
|
1971
|
+
${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
|
|
1972
|
+
border-left-color: ${i.v2.colors.silver[500]};
|
|
1863
1973
|
`}
|
|
1864
|
-
`,
|
|
1974
|
+
`,YC=n.button`
|
|
1865
1975
|
display: flex;
|
|
1866
1976
|
flex-direction: column;
|
|
1867
1977
|
align-items: stretch;
|
|
@@ -1875,12 +1985,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1875
1985
|
color: inherit;
|
|
1876
1986
|
font: inherit;
|
|
1877
1987
|
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
1878
|
-
${
|
|
1988
|
+
${KC}
|
|
1879
1989
|
|
|
1880
1990
|
&:last-child {
|
|
1881
1991
|
box-shadow: none;
|
|
1882
1992
|
}
|
|
1883
|
-
`,
|
|
1993
|
+
`,JC=n.div`
|
|
1884
1994
|
display: flex;
|
|
1885
1995
|
align-items: center;
|
|
1886
1996
|
gap: 8px;
|
|
@@ -1889,16 +1999,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1889
1999
|
padding: 0 8px;
|
|
1890
2000
|
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
1891
2001
|
box-sizing: border-box;
|
|
1892
|
-
`,
|
|
2002
|
+
`,qC=n(Ga)`
|
|
1893
2003
|
flex-shrink: 0;
|
|
1894
2004
|
min-width: 10px;
|
|
1895
|
-
`,
|
|
2005
|
+
`,QC=n.div`
|
|
1896
2006
|
display: flex;
|
|
1897
2007
|
flex: 1;
|
|
1898
2008
|
align-items: center;
|
|
1899
2009
|
gap: 4px;
|
|
1900
2010
|
min-width: 0;
|
|
1901
|
-
`,
|
|
2011
|
+
`,ZC=n.div`
|
|
1902
2012
|
display: flex;
|
|
1903
2013
|
flex-shrink: 0;
|
|
1904
2014
|
align-items: center;
|
|
@@ -1908,22 +2018,22 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1908
2018
|
overflow: hidden;
|
|
1909
2019
|
border-radius: 4px;
|
|
1910
2020
|
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
1911
|
-
`,
|
|
2021
|
+
`,eE=n(Ga)`
|
|
1912
2022
|
width: 100%;
|
|
1913
2023
|
overflow: hidden;
|
|
1914
2024
|
font-family: ${({theme:e})=>e.font_family.code};
|
|
1915
2025
|
line-height: 16px;
|
|
1916
2026
|
text-overflow: ellipsis;
|
|
1917
2027
|
white-space: nowrap;
|
|
1918
|
-
`,
|
|
2028
|
+
`,tE=n.div`
|
|
1919
2029
|
display: flex;
|
|
1920
2030
|
flex: 1;
|
|
1921
2031
|
align-items: center;
|
|
1922
2032
|
gap: 8px;
|
|
1923
2033
|
min-width: 0;
|
|
1924
|
-
`,
|
|
2034
|
+
`,iE=n(Ga)`
|
|
1925
2035
|
flex-shrink: 0;
|
|
1926
|
-
`,
|
|
2036
|
+
`,nE=n.div`
|
|
1927
2037
|
display: flex;
|
|
1928
2038
|
flex-shrink: 0;
|
|
1929
2039
|
align-items: center;
|
|
@@ -1942,18 +2052,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1942
2052
|
background-color: ${e.v2.colors.green[900]};
|
|
1943
2053
|
color: ${e.v2.colors.green[300]};
|
|
1944
2054
|
`}}}
|
|
1945
|
-
`,
|
|
2055
|
+
`,rE=n.div`
|
|
1946
2056
|
display: flex;
|
|
1947
2057
|
flex: 1;
|
|
1948
2058
|
align-items: center;
|
|
1949
2059
|
gap: 4px;
|
|
1950
2060
|
min-width: 0;
|
|
1951
|
-
`,
|
|
2061
|
+
`,oE=n.div`
|
|
1952
2062
|
display: flex;
|
|
1953
2063
|
flex-direction: column;
|
|
1954
2064
|
width: 100%;
|
|
1955
2065
|
box-sizing: border-box;
|
|
1956
|
-
`,
|
|
2066
|
+
`,aE=n.div`
|
|
1957
2067
|
display: flex;
|
|
1958
2068
|
align-items: center;
|
|
1959
2069
|
width: 100%;
|
|
@@ -1962,20 +2072,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{css as
|
|
|
1962
2072
|
box-sizing: border-box;
|
|
1963
2073
|
background-color: ${({theme:e})=>e.v2.colors.green[900]};
|
|
1964
2074
|
border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
|
|
1965
|
-
`,
|
|
2075
|
+
`,sE=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},lE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(oE,{children:e(Il,{$gap:0,children:[i.scopePlaceholder?t(aE,{children:t(Dt,{size:12,fill:n.v2.colors.green[500]})}):r?t(dx,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(aE,{children:t(Dt,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(dx,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},dE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Xt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(YC,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(JC,{$depth:d,children:t(rE,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(YC,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(JC,{$depth:d,children:[t(qC,{size:Ba.XXXS,color:ja.Disable,nowrap:!0,children:i.index??""}),e(QC,{children:[i.service?t(ZC,{title:i.service,children:t(eE,{size:Ba.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(tE,{children:[t(Ga,{size:Ba.XXXS,color:n||"default"!==s?ja.Primary:ja.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(nE,{$tone:p,children:[t(Ga,{size:Ba.XXXS,color:sE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:sE(a,p)}):null]}):null]}),i.durationLabel?t(iE,{size:Ba.XXXS,color:h??ja.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(lE,{row:i}):null]})},cE=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Wt(()=>new Set(l??[]),[l]),h=Xt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(HC,{children:[g&&e(XC,{$corner:c??"both",children:[(n||i)&&e(WC,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Ga,{size:Ba.XS,color:ja.Primary,nowrap:!0,children:i})]}),r?.label?t(_v,{label:r.label,backgroundColor:m,textColor:f,textSize:Ba.XXXS}):null,a?.map(e=>t(GC,{children:t(Ga,{size:Ba.XXXS,color:ja.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(VC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(dE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(kl,{$justifyContent:"center",style:{padding:16},children:t(Ga,{size:Ba.XXXS,color:ja.Secondary,children:"No spans"})})})]})},uE=n.div`
|
|
1966
2076
|
min-width: 500px;
|
|
1967
|
-
`,
|
|
2077
|
+
`,pE=n.div`
|
|
1968
2078
|
display: flex;
|
|
1969
2079
|
flex-direction: column;
|
|
1970
2080
|
align-items: center;
|
|
1971
2081
|
gap: 16px;
|
|
1972
2082
|
padding: 24px;
|
|
1973
2083
|
width: 100%;
|
|
1974
|
-
`,
|
|
2084
|
+
`,hE=n.div`
|
|
1975
2085
|
display: flex;
|
|
1976
2086
|
justify-content: center;
|
|
1977
2087
|
gap: 16px;
|
|
1978
2088
|
padding: 16px 24px;
|
|
1979
2089
|
width: 100%;
|
|
1980
2090
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1981
|
-
`,
|
|
2091
|
+
`,gE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Lx,{isOpen:o,onClose:a,...c,children:e(uE,{children:[e(pE,{children:[i&&t(i,{}),t(Ga,{size:Ba.M,weight:500,color:ja.Primary,children:n}),t(Il,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Ga,{size:Ba.XS,weight:400,color:ja.Secondary,children:e},e))}),d]}),(s||l)&&e(hE,{children:[s&&t(ov,{"data-id":"deny",...s}),l&&t(ov,{"data-id":"approve",...l})]})]})});export{s$ as $,Aw as A,ov as B,Dl as C,VS as D,Bw as E,Il as F,zS as G,Ku as H,Ox as I,Zu as J,Iv as K,ep as L,tp as M,lw as N,Yu as O,vi as P,Si as Q,_w as R,Ai as S,tv as T,ku as U,vl as V,gE as W,Ps as X,Vw as Y,Lu as Z,nw as _,Nw as a,vs as a$,Wu as a0,hw as a1,ip as a2,np as a3,Nu as a4,as as a5,mS as a6,Sx as a7,qv as a8,Xc as a9,Ow as aA,su as aB,Su as aC,op as aD,bu as aE,qu as aF,ap as aG,rp as aH,sp as aI,lp as aJ,Bu as aK,lu as aL,uu as aM,pu as aN,mu as aO,yu as aP,fu as aQ,Ou as aR,Qc as aS,Zc as aT,ou as aU,ju as aV,Hu as aW,Vu as aX,og as aY,eu as aZ,Au as a_,Cu as aa,Fi as ab,ji as ac,Ji as ad,qi as ae,Qi as af,Bi as ag,Hi as ah,zi as ai,Fa as aj,_u as ak,cu as al,Du as am,du as an,Uu as ao,xu as ap,Iu as aq,Pu as ar,Gu as as,Eu as at,mx as au,Xu as av,wu as aw,au as ax,$u as ay,vu as az,bi as b,dC as b$,ag as b0,Yx as b1,jl as b2,aw as b3,av as b4,ks as b5,tS as b6,Ib as b7,Qa as b8,al as b9,Ki as bA,ud as bB,Av as bC,gr as bD,mr as bE,fr as bF,yr as bG,br as bH,un as bI,lo as bJ,co as bK,uo as bL,po as bM,ho as bN,an as bO,rn as bP,Ro as bQ,fn as bR,Yo as bS,gn as bT,Wo as bU,Ma as bV,Ua as bW,ac as bX,Pi as bY,Hv as bZ,Nl as b_,xi as ba,Ci as bb,Cb as bc,Lb as bd,Fb as be,Db as bf,Ks as bg,Ya as bh,Rn as bi,tn as bj,Xs as bk,Uc as bl,Pc as bm,Rc as bn,Lc as bo,td as bp,sc as bq,ed as br,zb as bs,Nn as bt,li as bu,ai as bv,id as bw,nd as bx,Un as by,pd as bz,Mc as c,Ho as c$,Tn as c0,_v as c1,di as c2,Fc as c3,gi as c4,zc as c5,px as c6,Rw as c7,Va as c8,Rd as c9,zr as cA,Ir as cB,kr as cC,Fr as cD,Mr as cE,Lr as cF,Rr as cG,Ur as cH,Pr as cI,Vr as cJ,Gr as cK,jr as cL,Br as cM,Wr as cN,Xr as cO,Hr as cP,qr as cQ,Jr as cR,Yr as cS,Kr as cT,kx as cU,ro as cV,zn as cW,Fn as cX,no as cY,Ax as cZ,jo as c_,nc as ca,Qd as cb,Zd as cc,tc as cd,ec as ce,wp as cf,Tu as cg,Ru as ch,$p as ci,zu as cj,vp as ck,nu as cl,ru as cm,hu as cn,Er as co,Cr as cp,Tr as cq,Or as cr,Qr as cs,Zr as ct,eo as cu,to as cv,_r as cw,Dr as cx,Nr as cy,Ar as cz,uw as d,_a as d$,Xo as d0,Vo as d1,Jn as d2,qn as d3,Gn as d4,Go as d5,To as d6,Eo as d7,fv as d8,Ao as d9,ua as dA,pa as dB,ca as dC,da as dD,Zo as dE,ma as dF,ga as dG,ha as dH,ba as dI,ya as dJ,fa as dK,ea as dL,$a as dM,wa as dN,va as dO,ta as dP,xa as dQ,Sa as dR,ia as dS,Ca as dT,Ta as dU,Na as dV,Aa as dW,Oa as dX,Ea as dY,La as dZ,Da as d_,Ko as da,Oo as db,$o as dc,or as dd,No as de,Wn as df,xo as dg,ko as dh,Io as di,Vn as dj,Kn as dk,Yn as dl,Qn as dm,Zn as dn,wo as dp,Pa as dq,Ra as dr,qo as ds,oa as dt,ra as du,na as dv,la as dw,sa as dx,aa as dy,Qo as dz,Ga as e,uC as e$,Ia as e0,ka as e1,sn as e2,hr as e3,cr as e4,pr as e5,ur as e6,sr as e7,lr as e8,dr as e9,Mi as eA,is as eB,Wd as eC,dx as eD,Us as eE,G$ as eF,Ab as eG,Yl as eH,Kl as eI,Bs as eJ,nx as eK,Ob as eL,ol as eM,As as eN,Xl as eO,Vb as eP,Yd as eQ,Vd as eR,ld as eS,sl as eT,Hl as eU,Ms as eV,ki as eW,Bd as eX,Xd as eY,Qv as eZ,LC as e_,ar as ea,rr as eb,_n as ec,si as ed,OS as ee,ES as ef,Mn as eg,js as eh,oc as ei,za as ej,Ja as ek,mi as el,Vx as em,Is as en,lS as eo,fs as ep,hS as eq,An as er,cd as es,Cs as et,Jl as eu,Ys as ev,Ov as ew,Hd as ex,gv as ey,ns as ez,ja as f,df as f$,gu as f0,Wc as f1,tl as f2,Fs as f3,Sn as f4,xn as f5,Cn as f6,xc as f7,Nc as f8,Sc as f9,Tp as fA,Cp as fB,xp as fC,Ep as fD,Dp as fE,Ip as fF,Lp as fG,Rp as fH,Np as fI,Ap as fJ,jc as fK,gp as fL,Hf as fM,Df as fN,_f as fO,xf as fP,Cf as fQ,zm as fR,Wm as fS,Hm as fT,Gm as fU,Xm as fV,Vm as fW,em as fX,Zg as fY,lf as fZ,sf as f_,Ac as fa,kc as fb,$c as fc,Tc as fd,mc as fe,fc as ff,Oc as fg,Cc as fh,Ec as fi,_c as fj,gc as fk,vc as fl,wc as fm,bc as fn,yc as fo,dc as fp,lc as fq,Dc as fr,Ic as fs,Bc as ft,Vc as fu,Hc as fv,Gc as fw,ig as fx,rg as fy,ng as fz,Ba as g,ym as g$,mf as g0,Lg as g1,uf as g2,cf as g3,Lf as g4,Pf as g5,Sf as g6,$f as g7,Tf as g8,Ef as g9,Om as gA,Am as gB,ub as gC,pb as gD,fb as gE,vb as gF,Nm as gG,Sm as gH,vm as gI,bm as gJ,eb as gK,qg as gL,Jg as gM,Zy as gN,Yg as gO,Kg as gP,rm as gQ,nm as gR,sy as gS,am as gT,fS as gU,om as gV,um as gW,cm as gX,pm as gY,gm as gZ,mm as g_,Af as ga,Of as gb,jf as gc,Vf as gd,Kf as ge,Wf as gf,Gf as gg,Mm as gh,Fm as gi,Lm as gj,Pm as gk,Um as gl,_m as gm,Dm as gn,km as go,Rm as gp,Tm as gq,zf as gr,Em as gs,xm as gt,Cm as gu,Ff as gv,Vg as gw,Qm as gx,Jf as gy,Zf as gz,kl as h,gh as h$,fm as h0,dm as h1,lm as h2,sm as h3,gb as h4,xg as h5,rb as h6,ab as h7,ob as h8,tm as h9,Qh as hA,Zh as hB,eg as hC,Fp as hD,Bp as hE,jp as hF,Hp as hG,Wp as hH,Xp as hI,Vp as hJ,Gp as hK,Yp as hL,Kp as hM,Jp as hN,Pp as hO,Up as hP,rh as hQ,oh as hR,uh as hS,dh as hT,ch as hU,sh as hV,lh as hW,ah as hX,mh as hY,fh as hZ,hh as h_,sb as ha,lb as hb,db as hc,cb as hd,If as he,Sg as hf,Qf as hg,qf as hh,pv as hi,rd as hj,yv as hk,Lx as hl,Eb as hm,tg as hn,Mp as ho,qp as hp,Qp as hq,Zp as hr,eh as hs,ih as ht,th as hu,nh as hv,Tl as hw,Yh as hx,Jh as hy,qh as hz,nv as i,Xn as i$,ph as i0,bh as i1,vh as i2,yh as i3,zp as i4,zh as i5,Bh as i6,jh as i7,Fh as i8,Xh as i9,il as iA,Ol as iB,Zw as iC,cn as iD,dn as iE,ln as iF,hn as iG,pn as iH,mn as iI,Ev as iJ,qx as iK,nC as iL,Zx as iM,Ns as iN,cE as iO,_d as iP,Pn as iQ,Ln as iR,I$ as iS,on as iT,tr as iU,wr as iV,mo as iW,fo as iX,Hn as iY,Bn as iZ,yo as i_,Wh as ia,Gh as ib,Vh as ic,Kh as id,Hh as ie,Uh as ig,Mh as ih,Ah as ii,Rh as ij,Lh as ik,Ph as il,kh as im,Dh as io,Ih as ip,wh as iq,$h as ir,Sh as is,xh as it,Ch as iu,Eh as iv,Th as iw,Oh as ix,Nh as iy,_h as iz,iv as j,Iy as j$,bo as j0,jn as j1,Co as j2,go as j3,ir as j4,nr as j5,er as j6,oo as j7,ao as j8,so as j9,Ss as jA,Ka as jB,ll as jC,Xi as jD,Jw as jE,Jc as jF,Kc as jG,Yc as jH,qc as jI,Qu as jJ,Sp as jK,hp as jL,up as jM,pp as jN,cp as jO,dp as jP,yp as jQ,bp as jR,fp as jS,mp as jT,mv as jU,ry as jV,ey as jW,ty as jX,ny as jY,iy as jZ,gy as j_,xr as ja,Sr as jb,$r as jc,io as jd,vr as je,B$ as jf,D$ as jg,bn as jh,Al as ji,cC as jj,kb as jk,Ts as jl,qa as jm,Gd as jn,vv as jo,Tb as jp,Pb as jq,Gs as jr,Ds as js,_s as jt,Vs as ju,Ws as jv,Hs as jw,Xb as jx,Es as jy,xs as jz,pw as k,Ri as k$,py as k0,my as k1,yy as k2,fy as k3,Qy as k4,Yy as k5,Ky as k6,tb as k7,nb as k8,ib as k9,Dg as kA,_g as kB,Wg as kC,Xg as kD,Og as kE,dg as kF,lg as kG,_i as kH,pi as kI,Ii as kJ,Li as kK,wn as kL,vn as kM,yn as kN,nn as kO,wi as kP,$i as kQ,Ni as kR,hi as kS,En as kT,fi as kU,ui as kV,Ui as kW,Ei as kX,Vi as kY,Gi as kZ,Wi as k_,by as ka,vy as kb,wy as kc,Dy as kd,_y as ke,Rg as kf,Pg as kg,Ug as kh,Mg as ki,Fg as kj,mg as kk,yg as kl,bg as km,vg as kn,wg as ko,yf as kp,$g as kq,of as kr,zg as ks,Bg as kt,jg as ku,Ag as kv,Ng as kw,kg as kx,Ig as ky,Hg as kz,es as l,hc as l$,$n as l0,en as l1,Zi as l2,Yi as l3,yi as l4,ci as l5,Di as l6,$l as l7,wl as l8,Cl as l9,$s as lA,Ud as lB,Md as lC,On as lD,Jd as lE,Ju as lF,vo as lG,So as lH,_p as lI,kp as lJ,Op as lK,Mu as lL,Fu as lM,Bo as lN,zo as lO,Fo as lP,Mo as lQ,_o as lR,Po as lS,Do as lT,Lo as lU,Uo as lV,iu as lW,tu as lX,Kd as lY,uc as lZ,pc as l_,ys as la,rs as lb,bs as lc,hd as ld,Os as le,Ls as lf,ws as lg,zs as lh,ts as li,qs as lj,Qs as lk,Zs as ll,el as lm,nl as ln,Wl as lo,ql as lp,Ql as lq,Zl as lr,od as ls,ad as lt,dd as lu,gd as lv,md as lw,fd as lx,Ld as ly,Pd as lz,Za as m,wm as m$,cc as m0,sg as m1,Bf as m2,Zm as m3,ef as m4,tf as m5,vf as m6,wf as m7,ky as m8,Ny as m9,ug as mA,hf as mB,ly as mC,ay as mD,uy as mE,cy as mF,dy as mG,oy as mH,hm as mI,qm as mJ,Ym as mK,Jm as mL,Km as mM,zy as mN,Fy as mO,Ly as mP,Uy as mQ,Py as mR,My as mS,Gy as mT,Xy as mU,Hy as mV,By as mW,jy as mX,Ry as mY,Wy as mZ,rf as m_,Ay as ma,$y as mb,Cy as mc,Oy as md,Sy as me,Ey as mf,xy as mg,Ty as mh,Yf as mi,Cg as mj,Mf as mk,gg as ml,hb as mm,Bm as mn,jm as mo,nf as mp,Rf as mq,Im as mr,Tg as ms,Eg as mt,fg as mu,Xf as mv,Gg as mw,hy as mx,hg as my,pg as mz,Ti as n,gf as n0,yb as n1,bb as n2,Uf as n3,bf as n4,im as n5,$b as n6,wb as n7,mb as n8,Nf as n9,$v as nA,jv as nB,Jv as nC,Xv as nD,Bv as nE,u$ as nF,p$ as nG,bw as nH,FC as nI,JS as nJ,ZS as nK,tx as nL,rx as nM,Ll as nN,Bx as nO,Rl as nP,Pv as nQ,yx as nR,jw as nS,Pl as nT,Ul as nU,Ml as nV,Y$ as nW,CS as nX,_l as nY,Xa as nZ,cg as na,Qg as nb,kf as nc,af as nd,qy as ne,Jy as nf,Vy as ng,ff as nh,pf as ni,$m as nj,In as nk,Dn as nl,Jo as nm,qd as nn,Sb as no,Wb as np,Cv as nq,Gb as nr,jb as ns,bv as nt,Hb as nu,sv as nv,dv as nw,uv as nx,hv as ny,Kb as nz,SS as o,bS as p,yS as q,jC as r,fw as s,oi as t,KS as u,MC as v,ss as w,ux as x,a$ as y,Oi as z};
|