@odigos/ui-kit 0.0.298 → 0.0.299
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-DIbaWh5d.js → helpers-lW-r7stw.js} +1 -1
- package/lib/chunks/{index-BbgCENJM.js → index-DH7pdkVR.js} +2 -2
- package/lib/chunks/{source-instrument-form-context-Be_f9jmB.js → source-instrument-form-context-D3jXhnvh.js} +1 -1
- package/lib/chunks/{ui-components-mqa1Nv5H.js → ui-components-BnY4B3Vq.js} +267 -267
- package/lib/components.js +1 -1
- package/lib/constants/url-templatization/index.d.ts +39 -2
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/recommendations-drawer/helpers.d.ts +1 -3
- package/lib/containers/_drawers/recommendations-drawer/recommendation-card.d.ts +2 -3
- package/lib/containers/_drawers/recommendations-drawer/remediation-actions.d.ts +2 -3
- package/lib/containers/_drawers/recommendations-drawer/remediation-methods.d.ts +2 -3
- package/lib/containers/url-templatization/automatic-templatization-examples.d.ts +2 -0
- package/lib/containers.js +529 -538
- package/lib/contexts/odigos-api/hooks/use-recommendations-api.d.ts +2 -2
- package/lib/contexts/odigos-api/types.d.ts +3 -3
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/sampling-rule-form-sections/source-scope.d.ts +2 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/recommendations.d.ts +9 -3
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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 b,NginxLogo as y,MysqlLogo as v,BrowserLogo as $,ElixirLogo as w,SwiftLogo as S,RustLogo as x,RubyLogo as C,PhpLogo as E,CPlusPlusLogo as T,CSharpLogo as O,DotnetLogo as N,PythonLogo as A,NodejsLogo as k,GoLogo as I,JavaLogo as _,PyroscopeLogo as D,AwsXrayLogo as R,VictoriaMetricsLogo as L,UptraceLogo as P,TraceloopLogo as U,TingyunLogo as M,TempoLogo as F,TelemetryHubLogo as z,SumoLogicLogo as B,SplunkLogo as j,SignozLogo as H,SeqLogo as W,AwsS3Logo as X,QuickwitLogo as G,GigapipeLogo as V,QrynLogo as K,PrometheusLogo as Y,OpenTelemetryLogo as J,OracleLogo as q,OpsVerseLogo as Q,OpenObserveLogo as Z,OneUptimeLogo as ee,OdigosLogo as te,ObserveLogo as ie,NewRelicLogo as ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ae,LogzioLogo as se,LightstepLogo as le,Last9Logo as de,KloudmateLogo as ce,JaegerLogo as ue,InstanaLogo as pe,HyperDxLogo as he,HoneycombLogo as ge,GroundcoverLogo as me,GreptimeLogo as fe,GrafanaLogo as be,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as ve,ElasticApmLogo as $e,DynatraceLogo as we,DatadogLogo as Se,Dash0Logo as xe,CoralogixLogo as Ce,AwsCloudwatchLogo as Ee,ClickhouseLogo as Te,ChronosphereLogo as Oe,ChecklyLogo as Ne,CauselyLogo as Ae,BonreeLogo as ke,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as De,AxiomLogo as Re,AppDynamicsLogo as Le,AlibabaCloudLogo as Pe,AlaudaLogo as Ue,RecommendationsIcon as Me,SamplingIcon as Fe,InstrumentationRuleIcon as ze,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as He,MetricsIcon as We,PayloadCollectionIcon as Xe,HeadersCollectionIcon as Ge,CustomInstrumentationIcon as Ve,CodeAttributesIcon as Ke,TracesIcon as Ye,LogsIcon as Je,EcsLogo as qe,CloudConnectorIcon as Qe,VmLogo as Ze,K8sLogo as et,DotsHorizontalIcon as tt,QuestionCircleIcon as it,ExclamationTriangleIcon as nt,ExclamationCircleIcon as rt,ISquareIcon as ot,AwsLogo as at,AwsSecretsManagerLogo as st,AwsStepFunctionsLogo as lt,AwsEventBridgeLogo as dt,AwsBedrockLogo as ct,AwsApiGatewayLogo as ut,AwsEc2Logo as pt,AwsKinesisLogo as ht,AwsLambdaLogo as gt,AwsSnsLogo as mt,AwsSqsLogo as ft,AwsDynamoDbLogo as bt,AwsStsLogo as yt,OpenTelemetryLogoStripped as vt,CodeIcon as $t,VIcon as wt,CopyIcon as St,SearchIcon as xt,MinusIcon as Ct,ChevronUpIcon as Et,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as kt,ListIcon as It,XIcon as _t,ExpandIcon as Dt,PlusIcon as Rt,TrashIcon as Lt,DotIcon as Pt,ArrowRightIcon as Ut,ClockIcon as Mt,ChevronRightIcon as Ft,FilterIcon as zt}from"../icons.js";import{create as Bt}from"zustand";import jt,{forwardRef as Ht,Fragment as Wt,useState as Xt,useEffect as Gt,useCallback as Vt,useMemo as Kt,useRef as Yt,useLayoutEffect as Jt,createElement as qt}from"react";import Qt from"javascript-time-ago";import Zt from"javascript-time-ago/locale/en";import ei,{createPortal as ti}from"react-dom";import{Highlight as ii,themes as ni}from"prism-react-renderer";import{ErrorBoundary as ri}from"react-error-boundary";import{VList as oi}from"virtua";const ai=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 si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,_i,Di,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki,Yi,Ji;(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"})(si||(si={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(li||(li={})),(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"})(di||(di={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(hi||(hi={})),(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"})(gi||(gi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(mi||(mi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(fi||(fi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(bi||(bi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(yi||(yi={})),(e=>{e.Community="community",e.Onprem="onprem"})(vi||(vi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})($i||($i={})),(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"})(Si||(Si={})),(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.Browser="browser",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"})(xi||(xi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Ci||(Ci={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ei||(Ei={})),(e=>{e.DataStream="DataStream"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ni||(Ni={})),(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"})(ki||(ki={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ii||(Ii={})),(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"})(_i||(_i={})),(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"})(Ri||(Ri={})),(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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(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.BrowserCommunity="browser-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"})(Mi||(Mi={})),(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"})(Fi||(Fi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(zi||(zi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Bi||(Bi={})),(e=>{e.HeaderKeys="headerKeys"})(ji||(ji={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hi||(Hi={}));class qi{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 Zi{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"})(Wi||(Wi={})),(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"})(Gi||(Gi={})),(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"})(Vi||(Vi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Ki||(Ki={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Yi||(Yi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ji||(Ji={}));const en={[Yi.Logs]:Ji.Logs,[Yi.Metrics]:Ji.Metrics,[Yi.Traces]:Ji.Traces,[Yi.Profiles]:Ji.Profiles},tn={[Ji.Logs]:Yi.Logs,[Ji.Metrics]:Yi.Metrics,[Ji.Traces]:Yi.Traces,[Ji.Profiles]:Yi.Profiles};var nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn,En,Tn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(nn||(nn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(rn||(rn={})),(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"})(on||(on={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(an||(an={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(sn||(sn={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(ln||(ln={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(dn||(dn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(un||(un={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(hn||(hn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(gn||(gn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(mn||(mn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(fn||(fn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(bn||(bn={})),(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"})(vn||(vn={})),(e=>{e.Us="us",e.Bytes="bytes"})($n||($n={})),(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"})(Sn||(Sn={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(xn||(xn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Cn||(Cn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(En||(En={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Tn||(Tn={}));const On={[li.Enrichment]:{TITLE:"Enrichment",ICON:c},[li.Normalization]:{TITLE:"Normalization",ICON:d},[li.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Nn={[si.AddClusterInfo]:li.Enrichment,[si.K8sAttributes]:li.Enrichment,[si.ExtractAttribute]:li.Enrichment,[si.InferDbAttributes]:li.Enrichment,[si.DbQueryTemplatization]:li.Normalization,[si.URLTemplatization]:li.Normalization,[si.RenameAttributes]:li.Normalization,[si.PiiMasking]:li.Privacy,[si.DeleteAttributes]:li.Privacy},An=e=>{const t=Nn[e];return t?On[t].ICON:u},kn=[{type:si.K8sAttributes,icon:An(si.K8sAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[$i.K8s]},{type:si.AddClusterInfo,icon:An(si.AddClusterInfo),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[$i.K8s]},{type:si.DeleteAttributes,icon:An(si.DeleteAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[$i.K8s]},{type:si.RenameAttributes,icon:An(si.RenameAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[$i.K8s]},{type:si.PiiMasking,icon:An(si.PiiMasking),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[$i.K8s]},{type:si.URLTemplatization,icon:An(si.URLTemplatization),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[$i.K8s]:ai("v1.21.0")},supportedPlatforms:[$i.K8s,$i.Vm]},{type:si.ExtractAttribute,icon:An(si.ExtractAttribute),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[$i.K8s]:ai("v1.29.0")},supportedPlatforms:[$i.K8s]}],In=ai("v1.26"),_n=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),Dn=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ai(i)>=n},Rn=(e,t)=>kn.filter(i=>_n(i,e)&&Dn(i,e,t)).map(i=>((e,t,i)=>t!==$i.K8s||ai(i)>=In?e:e.allowedSignals?.includes(Yi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Yi.Profiles)}:e)(i,e,t)),Ln=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:An(e.type),category:e.category||Nn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Pn="Coming soon",Un="We are working on this feature and it will be available soon.";var Mn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Mn||(Mn={}));const Fn={[Mn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Mn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Mn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Mn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Mn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Mn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},zn="Save Changes",Bn="Discard changes",jn="Default Policy",Hn="Overrides",Wn="No default policy yet",Xn="No overrides yet",Gn="Choose override scope",Vn="Global",Kn="Choose Override type",Yn="Select Service",Jn="Select Transaction",qn="Service",Qn="Transaction",Zn="Select service…",er="Select transaction…",tr="Anomaly Detection Policies",ir="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.",rr="Add overrides to adjust detection sensitivity for specific services.",or="Create override policy",ar="Delete policy",sr="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",lr="Name",dr="Trigger when risk level is",cr="Customize signal weights (advanced)",ur="Base weight",pr="Risk points",hr="Dangerous sub-cases - added on top of the base when detected:",gr="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.",mr="Low",fr="Medium",br="High",yr="Critical",vr=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,$r="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.",Sr="Created Guardrails",xr="No guardrails yet",Cr="Create a guardrail to declare allowed service communication.",Er="Inspect a service",Tr="Edit guardrail",Or="Namespace",Nr="Service",Ar="Callers",kr="Who may call this service (inbound) — any seen service",Ir="Additional callers",_r="Add any service name not yet seen",Dr="No other services seen",Rr="Insights has not seen any other services to allow as callers",Lr="Callees",Pr="Internal services it may call (outbound) — any seen service",Ur="Additional callees",Mr="Add any service name not yet seen",Fr="No other services seen",zr="Insights has not seen any other services to allow as callees",Br="checkout-service",jr="Egress",Hr="Observed external destinations it may reach",Wr="Additional egress hosts",Xr="Add any host or host:port not yet observed",Gr="api.example.com:443",Vr="No egress detected",Kr="No egress found for this selection",Yr="Transactions",Jr="Operations this service may expose",qr="No Transactions detected",Qr="No transactions found for this selection",Zr="Adopt as enforce",eo="Alert on violation",to="Adopt as suggest",io="Observe only",no="Select a guardrail",ro="Create guardrail",oo="Delete guardrail",ao="Enforce",so="Suggest",lo="auto",co="allowed_callers",uo="allowed_callees",po="allowed_egress",ho="allowed_transactions",go="auto_transaction_guardrail",mo="Learning Policies",fo="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",bo="Add a default policy to set the global learning settings.",yo="Add overrides to adjust learning for specific services.",vo="Add override policy",$o="Add override",wo="Add selection",So="Add condition",xo="Delete override",Co="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",Eo="Select a policy",To="Combine",Oo="Currently:",No="Promotes when",Ao="Min matches",ko="A policy with no conditions falls back to the count-only default.",Io="Select Deviation class",_o="Select deviation class…",Do="Any",Ro="All",Lo="K of",Po="Any (OR)",Uo="All (AND)",Mo="K of N",Fo="Stable for N observations",zo="Stable for a duration",Bo="Min observations",jo="Min duration",Ho="Minutes",Wo="Hours",Xo="Days",Go={[on.D1_call_edges]:"D1 call edges",[on.D2_egress]:"D2 egress",[on.D3_latency]:"D3 latency",[on.D4_args_returns]:"D4 args/returns",[on.D5_libraries]:"D5 libraries",[on.D6_attr_relations]:"D6 attr relations",[on.D7_db_access]:"D7 db access",[on.D8_payload_size]:"D8 payload size"},Vo={[mn.Any]:"Any",[mn.All]:"All",[mn.KOf]:Lo},Ko=[{id:mn.Any,label:Po},{id:mn.All,label:Uo},{id:mn.KOf,label:Mo}],Yo=[{id:bn.StableObservations,label:Fo},{id:bn.StableDuration,label:zo},{id:bn.MinObservations,label:Bo},{id:bn.MinDuration,label:jo}],Jo=e=>e===bn.StableDuration||e===bn.MinDuration,qo=e=>e===bn.StableObservations||e===bn.MinObservations,Qo="Learning examples",Zo="Retention",ea="Memory limits",ta="Database writeback",ia="Transaction guardrails",na="Transaction identity dimensions",ra="Maximum example traces",oa="Maximum number of example traces collected per transaction.",aa="traces",sa="Minimum sampling interval",la="Minimum time between collected examples.",da="seconds",ca="Sample trace retention",ua="Stored sample traces are deleted after this period.",pa="days",ha="Default: 120 · Maximum: 120",ga="Maximum transactions in memory",ma="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",fa="transactions",ba="Maximum members per baseline",ya="Limits the size of an individual baseline set, such as unique call edges or paths.",va="members",$a="Flush interval",wa="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",Sa="Default: 15 · Maximum: 300",xa="Auto-enable transaction guardrail when a service is promoted",Ca="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail.",Ea="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ta=["http.response.status_code","rpc.grpc.status_code"],Oa=["user.id","URLs","request ids"],Na="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Aa="No dimensions configured - transactions use the entry span name only.",ka="Add dimension",Ia="e.g. http.response.status_code",_a="On",Da="Identity dimensions changed",Ra="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.",La="Reset all transactions",Pa="Keep existing transactions",Ua="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Ma="Save settings",Fa="System settings are not available.",za=5,Ba=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],ja=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ha,Wa,Xa;(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"})(Ha||(Ha={})),(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"})(Wa||(Wa={})),(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"})(Xa||(Xa={}));const Ga=new Set(Object.values(Xa)),Va=(e,t)=>{if("string"!=typeof(i=t)||!Ga.has(i))return t;var i;switch(t){case Xa.Primary:return e.v2.colors.white[500];case Xa.Secondary:return e.v2.colors.silver[200];case Xa.Tertiary:return e.v2.colors.black[500];case Xa.Disable:return e.v2.colors.grey[400];case Xa.Error:return e.v2.colors.red[500];case Xa.Mandatory:return e.v2.colors.red[600];case Xa.Link:return e.v2.colors.purple[400];case Xa.Success:return e.v2.colors.green[400];default:return}},Ka=n.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 b,NginxLogo as y,MysqlLogo as v,BrowserLogo as $,ElixirLogo as w,SwiftLogo as S,RustLogo as x,RubyLogo as C,PhpLogo as E,CPlusPlusLogo as T,CSharpLogo as O,DotnetLogo as N,PythonLogo as A,NodejsLogo as k,GoLogo as I,JavaLogo as D,PyroscopeLogo as _,AwsXrayLogo as R,VictoriaMetricsLogo as L,UptraceLogo as P,TraceloopLogo as U,TingyunLogo as M,TempoLogo as F,TelemetryHubLogo as z,SumoLogicLogo as B,SplunkLogo as j,SignozLogo as H,SeqLogo as W,AwsS3Logo as X,QuickwitLogo as G,GigapipeLogo as V,QrynLogo as K,PrometheusLogo as Y,OpenTelemetryLogo as J,OracleLogo as q,OpsVerseLogo as Q,OpenObserveLogo as Z,OneUptimeLogo as ee,OdigosLogo as te,ObserveLogo as ie,NewRelicLogo as ne,MiddlewareLogo as re,LumigoLogo as oe,LokiLogo as ae,LogzioLogo as se,LightstepLogo as le,Last9Logo as de,KloudmateLogo as ce,JaegerLogo as ue,InstanaLogo as pe,HyperDxLogo as he,HoneycombLogo as ge,GroundcoverLogo as me,GreptimeLogo as fe,GrafanaLogo as be,GoogleCloudPlatformLogo as ye,ElasticSearchLogo as ve,ElasticApmLogo as $e,DynatraceLogo as we,DatadogLogo as Se,Dash0Logo as xe,CoralogixLogo as Ce,AwsCloudwatchLogo as Ee,ClickhouseLogo as Te,ChronosphereLogo as Oe,ChecklyLogo as Ne,CauselyLogo as Ae,BonreeLogo as ke,BetterStackLogo as Ie,AzureMonitorLogo as De,AzureBlobLogo as _e,AxiomLogo as Re,AppDynamicsLogo as Le,AlibabaCloudLogo as Pe,AlaudaLogo as Ue,RecommendationsIcon as Me,SamplingIcon as Fe,InstrumentationRuleIcon as ze,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as He,MetricsIcon as We,PayloadCollectionIcon as Xe,HeadersCollectionIcon as Ge,CustomInstrumentationIcon as Ve,CodeAttributesIcon as Ke,TracesIcon as Ye,LogsIcon as Je,EcsLogo as qe,CloudConnectorIcon as Qe,VmLogo as Ze,K8sLogo as et,DotsHorizontalIcon as tt,QuestionCircleIcon as it,ExclamationTriangleIcon as nt,ExclamationCircleIcon as rt,ISquareIcon as ot,AwsLogo as at,AwsSecretsManagerLogo as st,AwsStepFunctionsLogo as lt,AwsEventBridgeLogo as dt,AwsBedrockLogo as ct,AwsApiGatewayLogo as ut,AwsEc2Logo as pt,AwsKinesisLogo as ht,AwsLambdaLogo as gt,AwsSnsLogo as mt,AwsSqsLogo as ft,AwsDynamoDbLogo as bt,AwsStsLogo as yt,OpenTelemetryLogoStripped as vt,CodeIcon as $t,VIcon as wt,CopyIcon as St,SearchIcon as xt,MinusIcon as Ct,ChevronUpIcon as Et,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as kt,ListIcon as It,XIcon as Dt,ExpandIcon as _t,PlusIcon as Rt,TrashIcon as Lt,DotIcon as Pt,ArrowRightIcon as Ut,ClockIcon as Mt,ChevronRightIcon as Ft,FilterIcon as zt}from"../icons.js";import{create as Bt}from"zustand";import jt,{forwardRef as Ht,Fragment as Wt,useState as Xt,useEffect as Gt,useCallback as Vt,useMemo as Kt,useRef as Yt,useLayoutEffect as Jt,createElement as qt}from"react";import Qt from"javascript-time-ago";import Zt from"javascript-time-ago/locale/en";import ei,{createPortal as ti}from"react-dom";import{Highlight as ii,themes as ni}from"prism-react-renderer";import{ErrorBoundary as ri}from"react-error-boundary";import{VList as oi}from"virtua";const ai=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 si,li,di,ci,ui,pi,hi,gi,mi,fi,bi,yi,vi,$i,wi,Si,xi,Ci,Ei,Ti,Oi,Ni,Ai,ki,Ii,Di,_i,Ri,Li,Pi,Ui,Mi,Fi,zi,Bi,ji,Hi,Wi,Xi,Gi,Vi,Ki,Yi,Ji;(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"})(si||(si={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(li||(li={})),(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"})(di||(di={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(hi||(hi={})),(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"})(gi||(gi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(mi||(mi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(fi||(fi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(bi||(bi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(yi||(yi={})),(e=>{e.Community="community",e.Onprem="onprem"})(vi||(vi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})($i||($i={})),(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"})(Si||(Si={})),(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.Browser="browser",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"})(xi||(xi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Ci||(Ci={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Ei||(Ei={})),(e=>{e.DataStream="DataStream"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ni||(Ni={})),(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"})(ki||(ki={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ii||(Ii={})),(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"})(Di||(Di={})),(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"})(_i||(_i={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Ri||(Ri={})),(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"})(Li||(Li={})),(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"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(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.BrowserCommunity="browser-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"})(Mi||(Mi={})),(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"})(Fi||(Fi={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(zi||(zi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Bi||(Bi={})),(e=>{e.HeaderKeys="headerKeys"})(ji||(ji={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hi||(Hi={}));class qi{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 Zi{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"})(Wi||(Wi={})),(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"})(Gi||(Gi={})),(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"})(Vi||(Vi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Ki||(Ki={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Yi||(Yi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ji||(Ji={}));const en={[Yi.Logs]:Ji.Logs,[Yi.Metrics]:Ji.Metrics,[Yi.Traces]:Ji.Traces,[Yi.Profiles]:Ji.Profiles},tn={[Ji.Logs]:Yi.Logs,[Ji.Metrics]:Yi.Metrics,[Ji.Traces]:Yi.Traces,[Ji.Profiles]:Yi.Profiles};var nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn,En,Tn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(nn||(nn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(rn||(rn={})),(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"})(on||(on={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(an||(an={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(sn||(sn={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(ln||(ln={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(dn||(dn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(un||(un={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(hn||(hn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(gn||(gn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(mn||(mn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(fn||(fn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(bn||(bn={})),(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"})(vn||(vn={})),(e=>{e.Us="us",e.Bytes="bytes"})($n||($n={})),(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"})(Sn||(Sn={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(xn||(xn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Cn||(Cn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(En||(En={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Tn||(Tn={}));const On={[li.Enrichment]:{TITLE:"Enrichment",ICON:c},[li.Normalization]:{TITLE:"Normalization",ICON:d},[li.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Nn={[si.AddClusterInfo]:li.Enrichment,[si.K8sAttributes]:li.Enrichment,[si.ExtractAttribute]:li.Enrichment,[si.InferDbAttributes]:li.Enrichment,[si.DbQueryTemplatization]:li.Normalization,[si.URLTemplatization]:li.Normalization,[si.RenameAttributes]:li.Normalization,[si.PiiMasking]:li.Privacy,[si.DeleteAttributes]:li.Privacy},An=e=>{const t=Nn[e];return t?On[t].ICON:u},kn=[{type:si.K8sAttributes,icon:An(si.K8sAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[$i.K8s]},{type:si.AddClusterInfo,icon:An(si.AddClusterInfo),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[$i.K8s]},{type:si.DeleteAttributes,icon:An(si.DeleteAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[$i.K8s]},{type:si.RenameAttributes,icon:An(si.RenameAttributes),category:Nn[si.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:[Yi.Traces,Yi.Metrics,Yi.Logs,Yi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[$i.K8s]},{type:si.PiiMasking,icon:An(si.PiiMasking),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[$i.K8s]},{type:si.URLTemplatization,icon:An(si.URLTemplatization),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[$i.K8s]:ai("v1.21.0")},supportedPlatforms:[$i.K8s,$i.Vm]},{type:si.ExtractAttribute,icon:An(si.ExtractAttribute),category:Nn[si.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:[Yi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[$i.K8s]:ai("v1.29.0")},supportedPlatforms:[$i.K8s]}],In=ai("v1.26"),Dn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),_n=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ai(i)>=n},Rn=(e,t)=>kn.filter(i=>Dn(i,e)&&_n(i,e,t)).map(i=>((e,t,i)=>t!==$i.K8s||ai(i)>=In?e:e.allowedSignals?.includes(Yi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Yi.Profiles)}:e)(i,e,t)),Ln=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:An(e.type),category:e.category||Nn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Pn="Coming soon",Un="We are working on this feature and it will be available soon.";var Mn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Mn||(Mn={}));const Fn={[Mn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Mn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Mn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Mn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Mn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Mn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},zn="Save Changes",Bn="Discard changes",jn="Default Policy",Hn="Overrides",Wn="No default policy yet",Xn="No overrides yet",Gn="Choose override scope",Vn="Global",Kn="Choose Override type",Yn="Select Service",Jn="Select Transaction",qn="Service",Qn="Transaction",Zn="Select service…",er="Select transaction…",tr="Anomaly Detection Policies",ir="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.",rr="Add overrides to adjust detection sensitivity for specific services.",or="Create override policy",ar="Delete policy",sr="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",lr="Name",dr="Trigger when risk level is",cr="Customize signal weights (advanced)",ur="Base weight",pr="Risk points",hr="Dangerous sub-cases - added on top of the base when detected:",gr="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.",mr="Low",fr="Medium",br="High",yr="Critical",vr=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,$r="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.",Sr="Created Guardrails",xr="No guardrails yet",Cr="Create a guardrail to declare allowed service communication.",Er="Inspect a service",Tr="Edit guardrail",Or="Namespace",Nr="Service",Ar="Callers",kr="Who may call this service (inbound) — any seen service",Ir="Additional callers",Dr="Add any service name not yet seen",_r="No other services seen",Rr="Insights has not seen any other services to allow as callers",Lr="Callees",Pr="Internal services it may call (outbound) — any seen service",Ur="Additional callees",Mr="Add any service name not yet seen",Fr="No other services seen",zr="Insights has not seen any other services to allow as callees",Br="checkout-service",jr="Egress",Hr="Observed external destinations it may reach",Wr="Additional egress hosts",Xr="Add any host or host:port not yet observed",Gr="api.example.com:443",Vr="No egress detected",Kr="No egress found for this selection",Yr="Transactions",Jr="Operations this service may expose",qr="No Transactions detected",Qr="No transactions found for this selection",Zr="Adopt as enforce",eo="Alert on violation",to="Adopt as suggest",io="Observe only",no="Select a guardrail",ro="Create guardrail",oo="Delete guardrail",ao="Enforce",so="Suggest",lo="auto",co="allowed_callers",uo="allowed_callees",po="allowed_egress",ho="allowed_transactions",go="auto_transaction_guardrail",mo="Learning Policies",fo="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",bo="Add a default policy to set the global learning settings.",yo="Add overrides to adjust learning for specific services.",vo="Add override policy",$o="Add override",wo="Add selection",So="Add condition",xo="Delete override",Co="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",Eo="Select a policy",To="Combine",Oo="Currently:",No="Promotes when",Ao="Min matches",ko="A policy with no conditions falls back to the count-only default.",Io="Select Deviation class",Do="Select deviation class…",_o="Any",Ro="All",Lo="K of",Po="Any (OR)",Uo="All (AND)",Mo="K of N",Fo="Stable for N observations",zo="Stable for a duration",Bo="Min observations",jo="Min duration",Ho="Minutes",Wo="Hours",Xo="Days",Go={[on.D1_call_edges]:"D1 call edges",[on.D2_egress]:"D2 egress",[on.D3_latency]:"D3 latency",[on.D4_args_returns]:"D4 args/returns",[on.D5_libraries]:"D5 libraries",[on.D6_attr_relations]:"D6 attr relations",[on.D7_db_access]:"D7 db access",[on.D8_payload_size]:"D8 payload size"},Vo={[mn.Any]:"Any",[mn.All]:"All",[mn.KOf]:Lo},Ko=[{id:mn.Any,label:Po},{id:mn.All,label:Uo},{id:mn.KOf,label:Mo}],Yo=[{id:bn.StableObservations,label:Fo},{id:bn.StableDuration,label:zo},{id:bn.MinObservations,label:Bo},{id:bn.MinDuration,label:jo}],Jo=e=>e===bn.StableDuration||e===bn.MinDuration,qo=e=>e===bn.StableObservations||e===bn.MinObservations,Qo="Learning examples",Zo="Retention",ea="Memory limits",ta="Database writeback",ia="Transaction guardrails",na="Transaction identity dimensions",ra="Maximum example traces",oa="Maximum number of example traces collected per transaction.",aa="traces",sa="Minimum sampling interval",la="Minimum time between collected examples.",da="seconds",ca="Sample trace retention",ua="Stored sample traces are deleted after this period.",pa="days",ha="Default: 120 · Maximum: 120",ga="Maximum transactions in memory",ma="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",fa="transactions",ba="Maximum members per baseline",ya="Limits the size of an individual baseline set, such as unique call edges or paths.",va="members",$a="Flush interval",wa="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",Sa="Default: 15 · Maximum: 300",xa="Auto-enable transaction guardrail when a service is promoted",Ca="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail.",Ea="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ta=["http.response.status_code","rpc.grpc.status_code"],Oa=["user.id","URLs","request ids"],Na="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Aa="No dimensions configured - transactions use the entry span name only.",ka="Add dimension",Ia="e.g. http.response.status_code",Da="On",_a="Identity dimensions changed",Ra="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.",La="Reset all transactions",Pa="Keep existing transactions",Ua="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Ma="Save settings",Fa="System settings are not available.",za=5,Ba=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],ja=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ha,Wa,Xa;(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"})(Ha||(Ha={})),(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"})(Wa||(Wa={})),(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"})(Xa||(Xa={}));const Ga=new Set(Object.values(Xa)),Va=(e,t)=>{if("string"!=typeof(i=t)||!Ga.has(i))return t;var i;switch(t){case Xa.Primary:return e.v2.colors.white[500];case Xa.Secondary:return e.v2.colors.silver[200];case Xa.Tertiary:return e.v2.colors.black[500];case Xa.Disable:return e.v2.colors.grey[400];case Xa.Error:return e.v2.colors.red[500];case Xa.Mandatory:return e.v2.colors.red[600];case Xa.Link:return e.v2.colors.purple[400];case Xa.Success:return e.v2.colors.green[400];default:return}},Ka=n.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>Va(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e,$fontFamily:t="primary"})=>e.font_family[t]};
|
|
@@ -38,7 +38,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,Ya=Ht(({children:i,variant:n=Ha.P,color:r,size:o=Wa.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(Wt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ka,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Ya.displayName="Typography";const Ja="https://docs.odigos.io",qa="default",Qa="this-cluster",Za="This Cluster",es={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},ts={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."},is={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"},ns={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"},rs=(e,t)=>e===Ai.Success?is.HEALTHY:e===Ai.Error?is.NOT_HEALTHY:ja(t),os=e=>{if(!e)return null;switch(e){case Fi.Irrelevant:return null;case Fi.Failure:case Fi.Error:return Ai.Error;case Fi.Notice:return Ai.Warning;case Fi.Pending:case Fi.Waiting:return Ai.Loading;case Fi.Unsupported:case Fi.Disabled:return Ai.Disabled;case Fi.Success:return Ai.Success;case Fi.Unknown:default:return Ai.Info}},as=(e,t,i="reason",n)=>{const r=os(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Ai.Success?p:h),label:n||("reason"===i?ja(e?.reasonEnum):rs(r,e?.reasonEnum)),tooltip:e?.message,textSize:Wa.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ss=e=>e.charAt(0).toUpperCase()+e.slice(1);var ls;(e=>{e.SIGNALS="SIGNALS"})(ls||(ls={}));const ds=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===ls.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 cs(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const us=e=>({status:e?Ai.Success:Ai.Unknown,label:e?"True":"False",invertColors:!0}),ps=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),hs=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)},gs=e=>"string"==typeof e?{id:e,label:e}:e??{},ms=(e,t)=>e.label||e.displayName||t,fs=(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?ms(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?ms(n,i):hs(t)},bs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ps(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}},ys=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(...ys(e.segments))):t.push(...e.items)}),t},vs=(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&&!ds(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=cs(t.componentProperties,{});switch(t.componentType){case Oi.Toggle:case Oi.Checkbox:return void s.push({id:u,title:c,badge:us(!!p)});case Oi.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(gs).find(t=>String(t.id??"")===e);return i?ms(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=gs(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:ms(n,r),badge:us(!0===e[r])})});const i=ps(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=gs(e),n=String(t.id??"");return n&&i[n]?ms(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 Oi.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ps(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ps(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 Oi.KeyValuePair:return l(),ps(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=ps(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 Oi.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ps(p)?p[e]:p)?e&&ps(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(gs):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=ps(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||ss(ja(e.keyName))||e.keyName,label:fs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:hs(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 Oi.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(bs).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=ps(o)?o:{},d=t.length?vs(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:hs(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:hs(p)})}var g}),l(),n},$s=(e,t,i={})=>ys(vs(e,t,i)),ws=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},{})},Ss=e=>JSON.parse(JSON.stringify(e)),xs=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Cs=(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},Es=(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},Ts=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ns=(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=>os(e.workloadOdigosHealthStatus?.status)===Ai.Error)),i},As=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===qa&&!e.dataStreamNames?.length):[],ks=(e,t,i)=>{if(!t)return;const n=e.filter(e=>e.serviceName===t||e.id.name===t);if(n.length){if(i){const e=n.find(e=>e.id.namespace===i);if(e)return e}return n[0]}},Is=(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?Is(e,n,i):i[n]=e}):i[o]=r:Is(r,o,i)}return i},_s=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]}`},Ds=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`}},Rs=()=>{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)})},Ls=e=>e?e.reduce((e,t)=>{if(null!=t){const i=os(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ps=e=>Array.isArray(e?.statuses)?Ls(e.statuses):e?.conditions??[],Us=e=>e?Array.isArray(e)?Ms(e):Ms(Ls(Object.values(e))):Ms([]),Ms=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}},Fs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zs=e=>({[xi.Java]:_,[xi.Go]:I,[xi.JavaScript]:k,[xi.Python]:A,[xi.DotNet]:N,[xi.CSharp]:O,[xi.CPlusPlus]:T,[xi.Php]:E,[xi.Ruby]:C,[xi.Rust]:x,[xi.Swift]:S,[xi.Elixir]:w,[xi.Browser]:$,[xi.MySql]:v,[xi.Nginx]:y,[xi.Postgres]:b,[xi.Redis]:f,[xi.Kafka]:m,[xi.Ignored]:g,[xi.Unknown]:g,[xi.Processing]:g,[xi.NoContainers]:g,[xi.NoRunningPods]:g}[e]||g),Bs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xi.Unknown:xi.Unknown,js=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Hs=e=>e?.map(e=>zs(Bs(e)))||[],Ws=e=>e?.map(e=>zs(e))||[],Xs=e=>e.runtimeInfo?.detectedLanguages?.length?Ws(e.runtimeInfo?.detectedLanguages):Hs(e.containers),Gs=(e,t)=>{const i={[Pi.Alauda]:Ue,[Pi.AlibabaCloud]:Pe,[Pi.AppDynamics]:Le,[Pi.Axiom]:Re,[Pi.AzureBlob]:De,[Pi.AzureMonitor]:_e,[Pi.BetterStack]:Ie,[Pi.Bonree]:ke,[Pi.Causely]:Ae,[Pi.Checkly]:Ne,[Pi.Chronosphere]:Oe,[Pi.ClickHouse]:Te,[Pi.CloudWatch]:Ee,[Pi.Coralogix]:Ce,[Pi.Dash0]:xe,[Pi.Datadog]:Se,[Pi.Dynamic]:J,[Pi.Dynatrace]:we,[Pi.ElasticApm]:$e,[Pi.ElasticSearch]:ve,[Pi.GoogleCloud]:ye,[Pi.GoogleCloudOTLP]:ye,[Pi.GrafanaCloudLoki]:be,[Pi.GrafanaCloudPrometheus]:be,[Pi.GrafanaCloudTempo]:be,[Pi.Greptime]:fe,[Pi.Groundcover]:me,[Pi.Honeycomb]:ge,[Pi.HyperDX]:he,[Pi.Instana]:pe,[Pi.Jaeger]:ue,[Pi.Kafka]:m,[Pi.Kloudmate]:ce,[Pi.Last9]:de,[Pi.Lightstep]:le,[Pi.LogzIo]:se,[Pi.Loki]:ae,[Pi.Lumigo]:oe,[Pi.Middleware]:re,[Pi.NewRelic]:ne,[Pi.Observe]:ie,[Pi.Odigos]:te,[Pi.OdigosProfileDiagnostic]:te,[Pi.OneUptime]:ee,[Pi.OpenObserve]:Z,[Pi.Opsverse]:Q,[Pi.Oracle]:q,[Pi.OTLP]:J,[Pi.OTLPHttp]:J,[Pi.Prometheus]:Y,[Pi.Qryn]:K,[Pi.QrynOss]:V,[Pi.Quickwit]:G,[Pi.S3]:X,[Pi.Seq]:W,[Pi.Signalfx]:j,[Pi.Signoz]:H,[Pi.Splunk]:j,[Pi.SplunkSapm]:j,[Pi.SplunkOtlp]:j,[Pi.SumoLogic]:B,[Pi.TelemetryHub]:z,[Pi.Tempo]:F,[Pi.Tingyun]:M,[Pi.Traceloop]:U,[Pi.Uptrace]:P,[Pi.VictoriaMetrics]:L,[Pi.VictoriaMetricsCloud]:L,[Pi.XRay]:R,[Pi.Pyroscope]:D}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Vs=e=>({[Ei.Namespace]:He,[Ei.Source]:je,[Ei.Destination]:Be,[Ei.Action]:u,[Ei.InstrumentationRule]:ze,[Ei.SamplingRule]:Fe,[Ei.Recommendation]:Me}[e]),Ks=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,Ys=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},Js=e=>Ys(Ks(e)),qs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case Ei.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Ei.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case Ei.Action:const n=e;o=n.type,a=n.name||"";break;case Ei.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case Ei.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Qs=(e,t)=>{if(t===Ei.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Zs=e=>({[zi.CodeAttributes]:Ke,[zi.CustomInstrumentation]:Ve,[zi.HeadersCollection]:Ge,[zi.PayloadCollection]:Xe,[zi.NetworkMetrics]:We,[zi.UnknownType]:g}[e]||g),el=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xi.Unknown,tl=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?xi.Processing:xi.NoRunningPods;const n=i?.filter(e=>el(e)!==xi.Ignored);if(!n.length)return xi.NoContainers;const r=n.find(e=>el(e)!==xi.Unknown);return r?el(r):xi.Unknown},il=(e,t,i)=>(t===Ei.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},nl=e=>({[Yi.Logs]:Je,[Yi.Metrics]:We,[Yi.Traces]:Ye,[Yi.Profiles]:te}[e]),rl=(e,t)=>Object.values(Wa).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),ol=e=>e&&{[$i.K8s]:et,[$i.Vm]:Ze,[$i.Connector]:Qe,[$i.AwsEcs]:qe}[e]||te,al=e=>e?{[$i.K8s]:"Kubernetes Cluster",[$i.Vm]:"Virtual Machine",[$i.Connector]:"Cloud Connector",[$i.AwsEcs]:"AWS ECS"}[e]:"Unknown",sl=(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(...sl(e,t,i)),r}):[]},ll={"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"},dl=e=>{if(!e)return"";if(ll[e])return ll[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},cl=(e,t)=>{if(t===Ei.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},ul=(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]}},pl=e=>{switch(e){case Xi.Updating:case Gi.Pending:case Vi.ContainerCreating:case Ki.Waiting:return Ai.Info;case Xi.Healthy:case Gi.Succeeded:case Gi.Running:case Vi.Running:case Ki.Running:return Ai.Success;case Xi.Degraded:return Ai.Warning;case Xi.Failed:case Gi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case Ki.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Ai.Error;case Xi.Down:case Vi.Completed:return Ai.Disabled;case Xi.Unknown:case Gi.Unknown:default:return Ai.Unknown}},hl=n.div`
|
|
41
|
+
`,Ya=Ht(({children:i,variant:n=Ha.P,color:r,size:o=Wa.S,fontFamily:a,weight:s=400,opacity:l=1,align:d="left",lineHeight:c,transform:u,nowrap:p,underline:h,onClick:g,disabled:m,maxLines:f,...b},y)=>{const v="string"==typeof i?i.split("\n").map((i,n,r)=>e(Wt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ka,{ref:y,as:n,$color:r,$size:o,$fontFamily:a,$weight:s,$opacity:l,$align:d,$lineHeight:c,$transform:u,$nowrap:p,$underline:h,$maxLines:f,$withClick:!!g&&!m,onClick:m?void 0:g,...b,children:v})});Ya.displayName="Typography";const Ja="https://docs.odigos.io",qa="default",Qa="this-cluster",Za="This Cluster",es={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},ts={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."},is={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"},ns={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"},rs=(e,t)=>e===Ai.Success?is.HEALTHY:e===Ai.Error?is.NOT_HEALTHY:ja(t),os=e=>{if(!e)return null;switch(e){case Fi.Irrelevant:return null;case Fi.Failure:case Fi.Error:return Ai.Error;case Fi.Notice:return Ai.Warning;case Fi.Pending:case Fi.Waiting:return Ai.Loading;case Fi.Unsupported:case Fi.Disabled:return Ai.Disabled;case Fi.Success:return Ai.Success;case Fi.Unknown:default:return Ai.Info}},as=(e,t,i="reason",n)=>{const r=os(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Ai.Success?p:h),label:n||("reason"===i?ja(e?.reasonEnum):rs(r,e?.reasonEnum)),tooltip:e?.message,textSize:Wa.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ss=e=>e.charAt(0).toUpperCase()+e.slice(1);var ls;(e=>{e.SIGNALS="SIGNALS"})(ls||(ls={}));const ds=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===ls.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 cs(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const us=e=>({status:e?Ai.Success:Ai.Unknown,label:e?"True":"False",invertColors:!0}),ps=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),hs=e=>null==e||""===e?"":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e:Array.isArray(e)?e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean).join(", "):JSON.stringify(e),gs=e=>null!=e&&""!==e&&(Array.isArray(e)?e.length>0:!ps(e)||Object.keys(e).length>0),ms=e=>"string"==typeof e?{id:e,label:e}:e??{},fs=(e,t)=>e.label||e.displayName||t,bs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ps(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}},ys=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(...ys(e.segments))):t.push(...e.items)}),t},vs=(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&&!ds(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=cs(t.componentProperties,{});switch(t.componentType){case Oi.Toggle:case Oi.Checkbox:if(null==p||""===p)return;return void s.push({id:u,title:c,badge:us(!!p)});case Oi.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(ms).find(t=>String(t.id??"")===e);return i?fs(i,e):e});if(!i.length)return;return l(),void n.push({kind:"list",id:u,title:c,items:i.map((e,t)=>({id:`${u}-${t}`,label:e}))})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,i)=>{const n=ms(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:fs(n,r),badge:us(!0===e[r])})});const i=ps(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];if(o=r.length?r.map(e=>{const t=ms(e),n=String(t.id??"");return n&&i[n]?fs(t,n):null}).filter(Boolean):Object.entries(i).filter(([,e])=>!!e).map(([e])=>e),!o.length)return;return l(),void n.push({kind:"list",id:u,title:c,items:o.map((e,t)=>({id:`${u}-${t}`,label:e}))})}case Oi.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ps(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ps(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];if(!r.length)return;return l(),void n.push({kind:"list",id:u,title:c,items:r.map((e,t)=>({id:`${u}-${t}`,label:e}))})}case Oi.KeyValuePair:if(ps(p)&&Object.keys(p).length){const e=Object.entries(p).filter(([,e])=>gs(e)).map(([e,t],i)=>({id:`${u}-${i}`,title:e,label:String(t??"")}));if(!e.length)return;return l(),void n.push({kind:"pairs",id:u,title:c,items:e})}if(Array.isArray(p)&&p.length){const e=p.map((e,t)=>{const i=ps(e)?e:{},n=String(i.key??""),r=String(i.value??"");return n||r?{id:`${u}-${t}`,title:n,label:r}:null}).filter(Boolean);if(!e.length)return;return l(),void n.push({kind:"pairs",id:u,title:c,items:e})}return;case Oi.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ps(p)?p[e]:p)?e&&ps(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(ms):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):[]);if(!t.length)return;let r=!1;return void t.forEach((e,o)=>{const a=t.length>1?`${c} #${o+1}`:c,s=[],d=ps(e)?{...e}:{};null!=d.method&&""!==d.method||!i.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(d.method=String(d.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}})(d,e.renderCondition))return;let t=d[e.keyName];if((null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=d.from&&""!==d.from&&(t=[d.from]),null==t||""===t||Array.isArray(t)&&!t.length)return;if("segment"===e.componentType)return;const i=((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?fs(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?fs(n,i):hs(t)})(e,t);i&&s.push({id:`${u}-${o}-${e.keyName}`,title:e.label||ss(ja(e.keyName))||e.keyName,label:i})}):Object.entries(d).forEach(([e,t])=>{if(null==t||""===t||"method"===e)return;const i=hs(t);i&&s.push({id:`${u}-${o}-${e}`,title:e,label:i})}),s.length&&(r||(l(),r=!0),n.push({kind:"group",id:`${u}-${o}`,title:a,items:s}))})}case Oi.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(bs).filter(Boolean),r=h.itemLabel||c;if(!e.length)return;let o=!1;return void e.forEach((a,s)=>{const d=e.length>1?`${r} ${s+1}`:r,c=ps(a)?a:{},p=t.length?vs(c,t,i):(()=>{const e=Object.entries(c).filter(([,e])=>gs(e)).map(([e,t],i)=>{const n=hs(t);return n?{id:`${u}-${s}-${i}-${e}`,title:e,label:n}:null}).filter(Boolean);return e.length?[{kind:"cells",id:`${u}-${s}-raw`,items:e}]:[]})();p.length&&(o||(l(),o=!0),n.push({kind:"group",id:`${u}-${s}`,title:d,segments:p}))})}default:{const e=hs(p);if(!e)return;s.push({id:u,title:c,label:e})}}var g}),l(),n},$s=(e,t,i={})=>ys(vs(e,t,i)),ws=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},{})},Ss=e=>JSON.parse(JSON.stringify(e)),xs=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Cs=(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},Es=(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},Ts=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ns=(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=>os(e.workloadOdigosHealthStatus?.status)===Ai.Error)),i},As=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===qa&&!e.dataStreamNames?.length):[],ks=(e,t,i)=>{if(!t)return;const n=e.filter(e=>e.serviceName===t||e.id.name===t);if(n.length){if(i){const e=n.find(e=>e.id.namespace===i);if(e)return e}return n[0]}},Is=(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?Is(e,n,i):i[n]=e}):i[o]=r:Is(r,o,i)}return i},Ds=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]}`},_s=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`}},Rs=()=>{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)})},Ls=e=>e?e.reduce((e,t)=>{if(null!=t){const i=os(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ps=e=>Array.isArray(e?.statuses)?Ls(e.statuses):e?.conditions??[],Us=e=>e?Array.isArray(e)?Ms(e):Ms(Ls(Object.values(e))):Ms([]),Ms=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}},Fs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zs=e=>({[xi.Java]:D,[xi.Go]:I,[xi.JavaScript]:k,[xi.Python]:A,[xi.DotNet]:N,[xi.CSharp]:O,[xi.CPlusPlus]:T,[xi.Php]:E,[xi.Ruby]:C,[xi.Rust]:x,[xi.Swift]:S,[xi.Elixir]:w,[xi.Browser]:$,[xi.MySql]:v,[xi.Nginx]:y,[xi.Postgres]:b,[xi.Redis]:f,[xi.Kafka]:m,[xi.Ignored]:g,[xi.Unknown]:g,[xi.Processing]:g,[xi.NoContainers]:g,[xi.NoRunningPods]:g}[e]||g),Bs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xi.Unknown:xi.Unknown,js=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Hs=e=>e?.map(e=>zs(Bs(e)))||[],Ws=e=>e?.map(e=>zs(e))||[],Xs=e=>e.runtimeInfo?.detectedLanguages?.length?Ws(e.runtimeInfo?.detectedLanguages):Hs(e.containers),Gs=(e,t)=>{const i={[Pi.Alauda]:Ue,[Pi.AlibabaCloud]:Pe,[Pi.AppDynamics]:Le,[Pi.Axiom]:Re,[Pi.AzureBlob]:_e,[Pi.AzureMonitor]:De,[Pi.BetterStack]:Ie,[Pi.Bonree]:ke,[Pi.Causely]:Ae,[Pi.Checkly]:Ne,[Pi.Chronosphere]:Oe,[Pi.ClickHouse]:Te,[Pi.CloudWatch]:Ee,[Pi.Coralogix]:Ce,[Pi.Dash0]:xe,[Pi.Datadog]:Se,[Pi.Dynamic]:J,[Pi.Dynatrace]:we,[Pi.ElasticApm]:$e,[Pi.ElasticSearch]:ve,[Pi.GoogleCloud]:ye,[Pi.GoogleCloudOTLP]:ye,[Pi.GrafanaCloudLoki]:be,[Pi.GrafanaCloudPrometheus]:be,[Pi.GrafanaCloudTempo]:be,[Pi.Greptime]:fe,[Pi.Groundcover]:me,[Pi.Honeycomb]:ge,[Pi.HyperDX]:he,[Pi.Instana]:pe,[Pi.Jaeger]:ue,[Pi.Kafka]:m,[Pi.Kloudmate]:ce,[Pi.Last9]:de,[Pi.Lightstep]:le,[Pi.LogzIo]:se,[Pi.Loki]:ae,[Pi.Lumigo]:oe,[Pi.Middleware]:re,[Pi.NewRelic]:ne,[Pi.Observe]:ie,[Pi.Odigos]:te,[Pi.OdigosProfileDiagnostic]:te,[Pi.OneUptime]:ee,[Pi.OpenObserve]:Z,[Pi.Opsverse]:Q,[Pi.Oracle]:q,[Pi.OTLP]:J,[Pi.OTLPHttp]:J,[Pi.Prometheus]:Y,[Pi.Qryn]:K,[Pi.QrynOss]:V,[Pi.Quickwit]:G,[Pi.S3]:X,[Pi.Seq]:W,[Pi.Signalfx]:j,[Pi.Signoz]:H,[Pi.Splunk]:j,[Pi.SplunkSapm]:j,[Pi.SplunkOtlp]:j,[Pi.SumoLogic]:B,[Pi.TelemetryHub]:z,[Pi.Tempo]:F,[Pi.Tingyun]:M,[Pi.Traceloop]:U,[Pi.Uptrace]:P,[Pi.VictoriaMetrics]:L,[Pi.VictoriaMetricsCloud]:L,[Pi.XRay]:R,[Pi.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Vs=e=>({[Ei.Namespace]:He,[Ei.Source]:je,[Ei.Destination]:Be,[Ei.Action]:u,[Ei.InstrumentationRule]:ze,[Ei.SamplingRule]:Fe,[Ei.Recommendation]:Me}[e]),Ks=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,Ys=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},Js=e=>Ys(Ks(e)),qs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case Ei.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Ei.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case Ei.Action:const n=e;o=n.type,a=n.name||"";break;case Ei.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case Ei.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Qs=(e,t)=>{if(t===Ei.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Zs=e=>({[zi.CodeAttributes]:Ke,[zi.CustomInstrumentation]:Ve,[zi.HeadersCollection]:Ge,[zi.PayloadCollection]:Xe,[zi.NetworkMetrics]:We,[zi.UnknownType]:g}[e]||g),el=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??xi.Unknown,tl=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?xi.Processing:xi.NoRunningPods;const n=i?.filter(e=>el(e)!==xi.Ignored);if(!n.length)return xi.NoContainers;const r=n.find(e=>el(e)!==xi.Unknown);return r?el(r):xi.Unknown},il=(e,t,i)=>(t===Ei.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},nl=e=>({[Yi.Logs]:Je,[Yi.Metrics]:We,[Yi.Traces]:Ye,[Yi.Profiles]:te}[e]),rl=(e,t)=>Object.values(Wa).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),ol=e=>e&&{[$i.K8s]:et,[$i.Vm]:Ze,[$i.Connector]:Qe,[$i.AwsEcs]:qe}[e]||te,al=e=>e?{[$i.K8s]:"Kubernetes Cluster",[$i.Vm]:"Virtual Machine",[$i.Connector]:"Cloud Connector",[$i.AwsEcs]:"AWS ECS"}[e]:"Unknown",sl=(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(...sl(e,t,i)),r}):[]},ll={"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"},dl=e=>{if(!e)return"";if(ll[e])return ll[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},cl=(e,t)=>{if(t===Ei.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},ul=(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]}},pl=e=>{switch(e){case Xi.Updating:case Gi.Pending:case Vi.ContainerCreating:case Ki.Waiting:return Ai.Info;case Xi.Healthy:case Gi.Succeeded:case Gi.Running:case Vi.Running:case Ki.Running:return Ai.Success;case Xi.Degraded:return Ai.Warning;case Xi.Failed:case Gi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case Ki.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Ai.Error;case Xi.Down:case Vi.Completed:return Ai.Disabled;case Xi.Unknown:case Gi.Unknown:default:return Ai.Unknown}},hl=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,Dl=n.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,7 +112,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,_l=n.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
117
|
`,Rl=n.div`
|
|
118
118
|
display: flex;
|
|
@@ -193,7 +193,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
193
193
|
background-clip: text;
|
|
194
194
|
color: transparent;
|
|
195
195
|
animation: ${Hl} 1s reverse linear infinite;
|
|
196
|
-
`,Xl=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")}`},Gl=({icon:i,title:n,titleColor:r,titleSize:a=Wa.S,subTitle:s,subTitleColor:l,subTitleSize:d=Wa.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=tt})=>{const v=o(),[$,w]=Xt(()=>c?Xl(c):"");Gt(()=>{if(!c)return;w(Xl(c));const e=setInterval(()=>w(Xl(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(Ll,{$gap:16,$alignItems:"center",children:[b?t(xl,{scale:1.7,icon:y}):h?t(fl,{percentage:f}):g?t(wl,{scale:m}):null,(n||s||c||i||u)&&e(Ll,{$gap:8,$alignItems:"center",children:[e(Rl,{$gap:4,children:[i&&t(i,{}),u?t(Wl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Ya,{align:"center",size:a,color:S,children:n}):null]}),s?t(Ya,{align:"center",size:d,color:x,children:s}):null,$?t(Ya,{align:"center",size:d,color:S,children:$}):null]})]})},Vl=(e,t)=>({[Ai.Default]:i=>te({fill:ul(t,e,"300"),...i}),[Ai.Info]:i=>ot({fill:ul(t,e,"400"),...i}),[Ai.Error]:i=>rt({fill:ul(t,e,"500"),...i}),[Ai.Warning]:i=>nt({fill:ul(t,e,"500"),...i}),[Ai.Success]:i=>p({fill:ul(t,e,"500"),...i}),[Ai.Loading]:e=>Gl({withSpinnerOld:!0,...e}),[Ai.Disabled]:i=>h({fill:ul(t,e,"400"),...i}),[Ai.Unknown]:i=>it({fill:ul(t,e,"300"),...i})}[e]),Kl=e=>{switch(e){case Fi.Success:return Ai.Success;case Fi.Error:case Fi.Failure:return Ai.Error;case Fi.Notice:return Ai.Warning;case Fi.Unsupported:case Fi.Unknown:return Ai.Info;case Fi.Irrelevant:case Fi.Disabled:return Ai.Disabled;case Fi.Waiting:return Ai.Loading;case Fi.Pending:default:return Ai.Default}},Yl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Jl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ve,clickhouse:Te,oracle:q,aws:at},ql={sts:yt,dynamodb:bt,s3:X,sqs:ft,sns:mt,lambda:gt,kinesis:ht,ec2:pt,apigateway:ut,apigatewayv2:ut,bedrock:ct,bedrockruntime:ct,eventbridge:dt,sfn:lt,stepfunctions:lt,secretsmanager:st,cloudwatch:Ee},Ql=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Jl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Jl[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=ql[e];if(t)return t}return at}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Jl))if(o.includes(e))return t;return Be},Zl=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}},ed=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=cs(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},td=(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 id(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 nd(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 rd(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:id(t??null)}}function od(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:nd(t??null)}}const ad=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),sd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ld=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},dd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},cd=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ud=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,pd=e=>ud.test(e),hd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:ja(t),reason:i?ja(i):"",message:n}))||[],gd=(e,t)=>{const i=cs(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}))},md=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>tn[e]):[],fd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>tn[e]):[],bd=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},yd=e=>e.replace(/[^\d]/g,""),vd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},$d=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},wd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},Sd={0:"",1:"OK",2:"ERROR"};class xd{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 xd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Cd=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},Ed=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(Ed(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=Td(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=Cd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Td=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?Ed(i):void 0}else e.skip(i.wire)}return t},Od=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Td(i);void 0===n.key&&void 0===n.value||t.push(n)},Nd=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},Ad=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?Od(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},kd=(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=Cd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=Cd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=Cd(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?Od(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Ad(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Nd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Id=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=Td(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},_d=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},Dd=(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=_d(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(kd(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Rd=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=Id(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Dd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Ld=e=>({key:e.key??null,value:e.value??null}),Pd=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?Sd[e.statusCode]??null:null,u=(e.attrs??[]).map(Ld);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(Ld)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?wd[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)})},Ud=(e,t)=>{if(null==t||""===t)return{error:null};try{const i=(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}})(t);if(!i||0===i.length)return{error:"Invalid base64 rawOtlp"};const n=(e=>{const t=new xd(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(...Rd(e))}else t.skip(e.wire)}return i})(i);return n.length?{traceId:e,spans:Pd(n),error:null}:{error:"No spans found in OTLP payload"}}catch(e){return{error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Md=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}},Fd=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=>Fd(e)))}else if("object"==typeof n&&null!==n){const e=Fd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},zd=(e,t=2)=>JSON.stringify(e||{},null,t),Bd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),jd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Hd=ai("v1.33"),Wd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Xd=(e,t)=>{if(e!==$i.K8s)return!1;const i=ai(t);return i>0&&i<Hd},Gd=ai("v1.20"),Vd=(e,t)=>{if(e!==$i.K8s)return!0;const i=ai(t);return!(i>0)||i>=Gd},Kd=e=>e?Wd.map(t=>e[t]??null):[],Yd={PID:"process.pid",VPID:"process.vpid"},Jd={[xi.Go]:"Go",[xi.Java]:"Java",[xi.JavaScript]:"Node.js",[xi.Python]:"Python",[xi.DotNet]:".NET",[xi.CSharp]:"C#",[xi.CPlusPlus]:"C++",[xi.Php]:"PHP",[xi.Ruby]:"Ruby",[xi.Rust]:"Rust",[xi.Swift]:"Swift",[xi.Elixir]:"Elixir",[xi.Browser]:"Browser",[xi.MySql]:"MySQL",[xi.Nginx]:"Nginx",[xi.Postgres]:"PostgreSQL",[xi.Redis]:"Redis",[xi.Kafka]:"Kafka",[xi.Ignored]:"Ignored",[xi.Unknown]:"Unknown",[xi.Processing]:"Processing",[xi.NoContainers]:"No Containers",[xi.NoRunningPods]:"No Running Pods"},qd=[{id:xi.Go,label:Jd[xi.Go],icon:zs(xi.Go)},{id:xi.Java,label:Jd[xi.Java],icon:zs(xi.Java)},{id:xi.JavaScript,label:Jd[xi.JavaScript],icon:zs(xi.JavaScript)},{id:xi.Python,label:Jd[xi.Python],icon:zs(xi.Python)},{id:xi.Php,label:Jd[xi.Php],icon:zs(xi.Php)},{id:xi.Ruby,label:Jd[xi.Ruby],icon:zs(xi.Ruby)},{id:xi.Rust,label:Jd[xi.Rust],icon:zs(xi.Rust)},{id:xi.DotNet,label:Jd[xi.DotNet],icon:zs(xi.DotNet)},{id:xi.CSharp,label:Jd[xi.CSharp],icon:zs(xi.CSharp)},{id:xi.CPlusPlus,label:Jd[xi.CPlusPlus],icon:zs(xi.CPlusPlus)},{id:xi.Swift,label:Jd[xi.Swift],icon:zs(xi.Swift)},{id:xi.Elixir,label:Jd[xi.Elixir],icon:zs(xi.Elixir)},{id:xi.Browser,label:Jd[xi.Browser],icon:zs(xi.Browser)},{id:xi.MySql,label:Jd[xi.MySql],icon:zs(xi.MySql)},{id:xi.Nginx,label:Jd[xi.Nginx],icon:zs(xi.Nginx)},{id:xi.Postgres,label:Jd[xi.Postgres],icon:zs(xi.Postgres)},{id:xi.Redis,label:Jd[xi.Redis],icon:zs(xi.Redis)},{id:xi.Kafka,label:Jd[xi.Kafka],icon:zs(xi.Kafka)}],Qd={id:Mi.OpentelemetryEbpfInstrumentation,label:Mi.OpentelemetryEbpfInstrumentation,icon:vt},Zd={id:Mi.BrowserCommunity,label:Mi.BrowserCommunity,icon:zs(xi.Browser)},ec={[xi.Go]:{community:[{id:Mi.GolangCommunity,label:Mi.GolangCommunity,icon:zs(xi.Go)},Qd,Zd],enterprise:[{id:Mi.GolangEnterprise,label:Mi.GolangEnterprise,icon:zs(xi.Go)}]},[xi.JavaScript]:{community:[{id:Mi.NodejsCommunity,label:Mi.NodejsCommunity,icon:zs(xi.JavaScript)},Qd,Zd],enterprise:[{id:Mi.NodejsEnterprise,label:Mi.NodejsEnterprise,icon:zs(xi.JavaScript)}]},[xi.Python]:{community:[{id:Mi.PythonCommunity,label:Mi.PythonCommunity,icon:zs(xi.Python)},Qd,Zd],enterprise:[{id:Mi.PythonEnterprise,label:Mi.PythonEnterprise,icon:zs(xi.Python)}]},[xi.Java]:{community:[{id:Mi.JavaCommunity,label:Mi.JavaCommunity,icon:zs(xi.Java)},Qd,Zd],enterprise:[{id:Mi.JavaEnterprise,label:Mi.JavaEnterprise,icon:zs(xi.Java)},{id:Mi.JavaEbpfInstrumentations,label:Mi.JavaEbpfInstrumentations,icon:zs(xi.Java)}]},[xi.DotNet]:{community:[{id:Mi.DotNetCommunity,label:Mi.DotNetCommunity,icon:zs(xi.DotNet)},Qd,Zd],enterprise:[{id:Mi.DotNetEnterprise,label:Mi.DotNetEnterprise,icon:zs(xi.DotNet)}]},[xi.Ruby]:{community:[{id:Mi.RubyCommunity,label:Mi.RubyCommunity,icon:zs(xi.Ruby)},Qd,Zd],enterprise:[{id:Mi.RubyEnterprise,label:Mi.RubyEnterprise,icon:zs(xi.Ruby)}]},[xi.Php]:{community:[{id:Mi.PhpCommunity,label:Mi.PhpCommunity,icon:zs(xi.Php)},Qd,Zd],enterprise:[]},[xi.CSharp]:{community:[Zd],enterprise:[{id:Mi.CPlusPlusEnterprise,label:Mi.CPlusPlusEnterprise,icon:zs(xi.CSharp)}]},[xi.CPlusPlus]:{community:[Qd,Zd],enterprise:[]},[xi.Browser]:{community:[Zd],enterprise:[]},[xi.MySql]:{community:[],enterprise:[{id:Mi.MySqlEnterprise,label:Mi.MySqlEnterprise,icon:zs(xi.MySql)}]},[xi.Rust]:{community:[Qd,Zd],enterprise:[]},[xi.Swift]:{community:[Qd,Zd],enterprise:[]},[xi.Elixir]:{community:[Qd,Zd],enterprise:[]},[xi.Nginx]:{community:[Qd,Zd],enterprise:[]},[xi.Postgres]:{community:[Qd],enterprise:[]},[xi.Redis]:{community:[Qd],enterprise:[]},[xi.Kafka]:{community:[Qd],enterprise:[]},[xi.Ignored]:{community:[],enterprise:[]},[xi.Unknown]:{community:[Qd,Zd],enterprise:[]},[xi.Processing]:{community:[],enterprise:[]},[xi.NoContainers]:{community:[],enterprise:[]},[xi.NoRunningPods]:{community:[],enterprise:[]}},tc="*",ic=e=>!!e?.includes(tc),nc=e=>e?.length?ic(e)?[tc]:e:[],rc=e=>{if(e?.length&&!ic(e))return e.filter(e=>e!==tc)},oc=e=>e===tc?"All languages":Jd[e]??e,ac=e=>e===tc?$t:zs(e),sc=ai("v1.26"),lc=(e,t)=>{if(e!==$i.K8s)return!1;const i=ai(t);return!(i>0)||i>=sc},dc=[zi.NetworkMetrics],cc=e=>!dc.includes(e),uc=[{type:zi.CodeAttributes,icon:Zs(zi.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:[xi.Go,xi.Python,xi.JavaScript]},{type:zi.CustomInstrumentation,icon:Zs(zi.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:[xi.Go,xi.Java,xi.Php]},{type:zi.HeadersCollection,icon:Zs(zi.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:[xi.Go,xi.Java,xi.JavaScript]},{type:zi.PayloadCollection,icon:Zs(zi.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:[xi.Go,xi.JavaScript]}],pc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Zs(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},hc="Recommendations",gc="Optimize your observability setup with actionable recommendations.",mc="Recommended",fc="Applied",bc="Dismissed",yc="Not applicable",vc={[xn.Recommended]:mc,[xn.Applied]:fc,[xn.Dismissed]:bc,[xn.NotApplicable]:yc},$c="Accept",wc="Dismiss",Sc="Restore",xc="Docs",Cc="Benefits",Ec="Considerations",Tc="Apply Recommendation",Oc="Apply via UI",Nc="Apply via GitOps",Ac="Via UI",kc="Via GitOps",Ic="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",_c="There are 2 ways to apply this recommendation.",Dc="Odigos applies the selected change immediately.",Rc="Commit the configuration to your repository and let your GitOps controller apply it.",Lc="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Pc="No recommendations",Uc="There are no recommendations for this cluster right now.",Mc="This recommendation does not currently apply to your cluster.",Fc="Recommendation dismissed",zc="Recommendation restored",Bc="Recommendation applied successfully",jc="Failed to apply recommendation",Hc={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.'},Wc={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."},Xc={[mi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[mi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[mi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Gc="Cancel",Vc="Save",Kc="Edit rule",Yc="Edit auto rule",Jc="Create rule",qc="Delete rule",Qc="Save",Zc="Create your first rule",eu="No Rules Exist",tu="No Results",iu=e=>`No rules match the search term "${e}"`,nu="Rule name",ru="Rule type",ou="Select the type of condition that makes a trace highly relevant.",au="Rule Enabled",su="Rule Disabled",lu="Enabled",du="Disabled",cu="Note",uu="HTTP route",pu="Method",hu="Keep Percentage",gu="Keep traces with duration larger than",mu="Keep traces with errors",fu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",bu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",yu="Custom percentage",vu="Disabled rule",$u="Sample",wu="Keep all",Su="Drop all",xu="Operation type",Cu="HTTP route prefix",Eu="Templated path",Tu="Templated path prefix",Ou="Kafka topic",Nu="Custom duration (ms)",Au="No preview available",ku="Server address",Iu="Drop at most this percentage of matching traces",_u="Unnamed rule",Du="Sampling Preview",Ru="Source Scope",Lu="Unknown source",Pu="Operation",Uu="Duration",Mu="Errors",Fu="Keep Percentage",zu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Bu="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.",ju="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Hu="Retain traces with errors from the selected services and operations.",Wu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Xu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Gu={highlyRelevant:Wu,noisy:Xu,costReduction:void 0},Vu="Type rule name",Ku="Add note here...",Yu="Type here",Ju="Search source name",qu="e.g. collector.my.vendor.com",Qu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Zu="Rule will apply to all sources in the cluster",ep="If multiple source scopes are set, they must all match simultaneously.",tp="All sources",ip="-",np="All",rp="Sources",op="Namespaces",ap="Languages",sp="any of",lp="AND",dp="All operations",cp="HTTP server endpoint",up="HTTP client endpoint",pp="Kafka consumer",hp="Kafka producer",gp="Sampling Rules",mp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',fp="Refresh",bp="Create rule",yp="Sampling docs",vp="75vw",$p="Delete rule?",wp="Are you sure you want to delete this sampling rule?",Sp="Delete",xp="Cancel",Cp="Kubernetes Health Probes",Ep="Keep All Error Traces",Tp="Drop Traces Cluster-Wide",Op="A rule with the same matching conditions already exists.",Np="Create this rule as-is?",Ap="This rule still uses the default configuration.\nDo you want to create it anyway?",kp="Rule preview",Ip="Continue editing",_p="Create 'Noisy Operation Kubernetes Health Probes' rule",Dp="Edit 'Noisy Operation Kubernetes Health Probes' rule",Rp="Automatically detect and sample health probe traces across the cluster.",Lp="Create 'Highly Relevant Operations' rule",Pp="Edit 'Highly Relevant Operations' rule",Up="Automatically keep all error traces across the entire cluster.",Mp="Create 'Cost Reduction' rule",Fp="Edit 'Cost Reduction' rule",zp="Automatically drop a percentage of traces across the entire cluster.",Bp="Skip setup",jp="Start setup",Hp="Next",Wp="Go to Sampling",Xp="Read more",Gp="Welcome to Sampling",Vp="Cut costs without losing what matters",Kp="Odigos sampling works in three stages:",Yp="Filter noisy traffic",Jp="Remove non-actionable traces like health checks.",qp="Guarantee highly relevance operations",Qp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Zp="Reduce cost",eh="Sample routine traffic using percentages.",th="Sampling does not drop individual spans - it keeps or drops the entire trace.",ih="Filter noisy operations",nh="Cut traces with little or no observability value (health-checks, metric scarping, etc)",rh="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.",oh="Preset Rules",ah="Kubernetes Health Probes",sh="Automatically ignore health checks",lh="You can review, adjust, and add additional custom rules later.",dh="Choose your sampling strategy",ch="Pick the approach that best fits your balance of cost vs data-completeness",uh="Keep List",ph="Budget Friendly",hh="Define which traces must be kept, while all others are sampled by default to minimize cost.",gh="Cost-oriented - keeps only what you explicitly select.",mh="Best for very large clusters with high volumes of traces and high costs.",fh="Higher risk of missing important traces without ongoing review.",bh="Drop List",yh="Safe Choice",vh="Define which traces must be aggressively dropped, while all others are kept by default.",$h="Preserves most data unless explicitly filtered.",wh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Sh="Advanced",xh="Maximum Flexibility",Ch="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Eh="'Keep List' profile",Th="Protect important traces",Oh="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:",Nh="Traces with errors",Ah="Slow requests (duration above threshold)",kh="Mission-Critical endpoints or services",Ih="Services under test or evaluation",_h="New deployments",Dh="You can review, adjust, and add rules once onboarding is complete.",Rh="Common Rules",Lh="Preset Rules",Ph="Error collection - entire cluster",Uh="Keep all traces with errors",Mh="Ambient sampling percentage",Fh="'Drop List' profile",zh="Reduce high-volume traffic",Bh="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.",jh="Advanced Configuration",Hh="Configure sampling rules",Wh="Advanced mode allows you to configure all sampling categories:",Xh="Noise Filtering - remove non-actionable traces",Gh="Highly Relevance - guarantee important traces are kept",Vh='Cost Control - drop traces for "Normal" operations',Kh="Rules can target:",Yh="Services",Jh="HTTP Endpoints",qh="DB Operations",Qh="Errors",Zh="Latency and more...",eg="Sampling configured successfully!",tg="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",ig="Odigos will now:",ng="Filter noisy operations",rg="Guarantee important traces",og="Reduce cost using controlled sampling",ag="Recommended",sg={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."},lg={noisy:_p,highlyRelevant:Lp,costReduction:Mp},dg={noisy:Dp,highlyRelevant:Pp,costReduction:Fp},cg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ug=[{id:Yi.Logs,value:"Logs"},{id:Yi.Metrics,value:"Metrics"},{id:Yi.Traces,value:"Traces"},{id:Yi.Profiles,value:"Profiles"}],pg=6048e5,hg="URL templatization",gg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",mg="Default templatization",fg="Custom and default URL templatization scopes across URL templatization actions.",bg="Default templatization is not enabled",yg="Automatically detect and templatize dynamic URL segments when no custom template matches.",vg="Enable for entire cluster",$g="Custom URL templates",wg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",Sg="View by:",xg="Groups",Cg="Tree",Eg="List",Tg="Create templating scope",Og="Edit scoped templates",Ng="Edit",Ag="Add template",kg="Add templatization rules",Ig="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",_g="Add templatization rule",Dg="Choose how to templatize dynamic URLs",Rg="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Lg="Before",Pg="After",Ug="/users/123/orders/456",Mg="/users/{id}/orders/{orderId}",Fg="Automatic templatization",zg="Recommended",Bg="Detect and templatize dynamic URL segments when no custom rule matches.",jg="Applies to: Entire cluster",Hg="Reversible at any time",Wg="Enabled",Xg="Need more control?",Gg="Create a custom rule for specific URL patterns.",Vg="Create custom rule",Kg="Learn how it works",Yg="Docs",Jg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",qg="Default templatization is enabled — editor coming next.",Qg="746px",Zg="Add default templatization rule",em="Edit default templatization rule",tm="Disable for a scope",im="UI template rules",nm="Source Scope",rm="Scope",om="Choose which sources this template rule applies to.",am="Sources where this template is tested and applied.",sm="This rule will apply to all sources in the cluster.",lm="Default templatization",dm="Automatically templatize dynamic URL segments when no custom template matches.",cm="Enable automatic URL templatization for this scope",um=["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."],pm="default templatization for this scope",hm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",gm="Disable",mm="Skip policy",fm="Advanced",bm=["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."],ym=bm.join(" "),vm="Skip default templatization for all non-2xx responses",$m="Skip default templatization for specific HTTP status codes",wm="Example: 404, 401",Sm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",xm="This rule will take effect in the cluster immediately after it is added.",Cm="This rule will take effect in the cluster immediately after it is saved.",Em="No template changes. Save will keep the current templates.";function Tm(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.`:Em}const Om="Add rule",Nm="Save",Am="Cancel",km="Cancel without saving",Im="Delete",_m="templating scope";function Dm(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 Rm="Enter valid HTTP status codes between 100 and 599, separated by commas.",Lm="Create custom template",Pm="Create new scoped template",Um="Add URL templates",Mm="UI template rules",Fm=e=>`To ${e}`,zm=e=>`Applies to ${e} source${1===e?"":"s"}`,Bm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,jm=e=>`Applies to ${e} language${1===e?"":"s"}`,Hm="Applies to entire cluster",Wm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Xm="Where should this rule apply?",Gm=Xm,Vm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Km="Specific scope",Ym="Entire cluster",Jm="Apply the rule only where it is needed.",qm="Apply to every source in this cluster.",Qm="Quick start",Zm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",ef="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",tf="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",nf="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.",rf="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.",of="Add to existing template group",af="Create new template group",sf="Add here",lf="Create New",df="Existing templating scope",cf="Templating scopes",uf="Select where to add the new template",pf="A template group already uses this scope",hf="Choose where to add the new templates.",gf="Add to existing template group",mf="Create a separate template group",ff="Use different settings or behavior for the same scope.",bf="View action settings",yf="Default settings",vf=e=>df,$f=e=>1===e?"1 template":`${e} templates`,wf="Templating scope",Sf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,xf="Template group will be added to the default action. Expand Select action to choose a different one.",Cf="Select action",Ef="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Tf="Advanced settings",Of="Default UI-managed action · Recommended",Nf="Create a new action",Af="Select action",kf="Default UI-managed action",If="Add this template group to the default UI-managed action.",_f="Select action",Df="Choose an existing action or create a new one for this template group.",Rf="Search template group by type action name or scope (languages, namespaces, sources)",Lf="Selected Template group:",Pf="URL templatization action",Uf="Create new action",Mf="__odigos_create_new_url_templatization_action__",Ff=Df,zf="New action name",Bf="New action group",jf="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.",Hf="Create new template group",Wf="Next",Xf="Back",Gf="Action name",Vf="Action",Kf="UI template rules",Yf="__odigos_default_url_templatization_action__",Jf="UI-owned",qf="Externally synced",Qf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Zf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],eb=Jf,tb="Templates",ib="Other templates in this group",nb="Additional templates that share the same source scope and Action as this rule.",rb="e.g. /api/users/{id}",ob="Language",ab="Namespace",sb="Source",lb="AND",db="Entire cluster",cb="Unset",ub="Enabled globally",pb="Default templating disabled",hb="Enabled",gb="Default templatization is unset. No default rules are configured on an enabled action.",mb="Default templatization is enabled globally.",fb="Default templatization is disabled for the entire cluster.";function bb(e){return e<=0?mb:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const yb="Disabled for these scopes",vb="Disable for a scope",$b="Delete",wb="disabled scope",Sb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",xb="Automatic templatization",Cb="Active",Eb="Custom and default URL templatization scopes across URL templatization actions.",Tb="Custom templates take precedence over automatic templatization.",Ob="Scope",Nb="Status codes",Ab="Disabled",kb="Entire cluster",Ib="All",_b="None",Db="Disabled",Rb="No disabled scope configured",Lb="Add disabled",Pb="Disabled scopes",Ub="Advanced",Mb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Fb="Automatic templatization off for matching traffic.",zb="Disable for a scope",Bb="Scope",jb="Effective behavior",Hb="Status",Wb="Automatic templatization off",Xb="Covered by broader exception",Gb="Disabled",Vb="Redundant",Kb="No disabled scope configured",Yb="Disable automatic templatization for specific scopes when needed.",Jb=(e,t)=>`${e} configured • ${t} effective`,qb=e=>1===e?"1 scope":`${e} scopes`,Qb="Default templatization is enabled for all HTTP status codes.";function Zb(e){return e<=0?Qb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const ey="HTTP status code policies",ty="No skip policy configured",iy="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",ny="Add skip policy for a scope",ry="Add skip policy for a scope",oy="Skip default templatization on HTTP errors",ay="Delete",sy="skip policy",ly="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",dy="Template details",cy="Template",uy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",py="Created via",hy="Action name",gy="Kubernetes name",my="Odigos Action (Kubernetes resource) where this template is managed.",fy="Try a URL",by="/users/12/orders/345685335358",yy="Test URL",vy="Close",$y="Result",wy="Templated URL path",Sy="Match found",xy="This URL matches the template.",Cy="No match",Ey="This URL doesn't match the template.",Ty="Check the URL structure and parameter positions, then try again.",Oy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:qa},Ny=Bt(e=>({...Oy,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(Oy)}));var Ay;(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"})(Ay||(Ay={}));const ky=e=>`add-${ja(e).replaceAll(" ","-").toLowerCase()}`,Iy=e=>`edit-${ja(e).replaceAll(" ","-").toLowerCase()}`,_y=Bt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Dy=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Ry=Bt(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:Dy})),Ly=Bt((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 Py;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Py||(Py={}));const Uy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),My=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Fy=Bt((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Uy();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]:My(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Uy(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]:My(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),zy=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),By={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},jy=(e,t)=>e.destinationType.type!==t.destinationType.type,Hy=Bt(e=>({...By,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=>jy(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=>jy(e,t))})),clearStore:()=>e(()=>({...By}))})),Wy=e=>{function t(){return void 0===e?{}:Ss(e)}const[i,n]=Xt(t()),[r,o]=Xt({}),[a,s]=Xt(t()),l=Vt((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=Kt(()=>!d(a,i),[a,i]);Gt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Vt((e,t)=>xs("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=Ss(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=Ss(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}},Xy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Gy=()=>{const{addNotification:e}=Ly(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=Wy(Xy);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":ad(t)&&(n[e]=ts.FIELD_IS_REQUIRED)}}),t.type===si.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=ts.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Ai.Warning,title:i.alertTitle,message:ts.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={...Ss(Xy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case di.LabelsAttributes:case di.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 di.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 di.CollectContainerAttributes:case di.CollectReplicaSetAttributes:case di.CollectWorkloadId:case di.CollectClusterId:case di.ClusterAttributes:case di.OverwriteExistingValues:case di.AttributeNamesToDelete:case di.Renames:case di.PiiCategories:case di.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Vy=e=>{Gt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Ky=()=>{const e=Yt(null),[t,i]=Xt(0),[n,r]=Xt(0);return Gt(()=>{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}},Yy="data-ignore-outside-click",Jy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Yy))return!0;t=t.parentNode}return!1},qy=(e,t)=>{const i=Yt(t);i.current=t,Gt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Jy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Qy=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Yt(null),[o,a]=Xt(!1),[s,l]=Xt({top:0,left:0}),[d,c]=Xt({edge:"top",align:"left"});return qy(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})}}},Zy=n.div`
|
|
196
|
+
`,Xl=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")}`},Gl=({icon:i,title:n,titleColor:r,titleSize:a=Wa.S,subTitle:s,subTitleColor:l,subTitleSize:d=Wa.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=tt})=>{const v=o(),[$,w]=Xt(()=>c?Xl(c):"");Gt(()=>{if(!c)return;w(Xl(c));const e=setInterval(()=>w(Xl(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(Ll,{$gap:16,$alignItems:"center",children:[b?t(xl,{scale:1.7,icon:y}):h?t(fl,{percentage:f}):g?t(wl,{scale:m}):null,(n||s||c||i||u)&&e(Ll,{$gap:8,$alignItems:"center",children:[e(Rl,{$gap:4,children:[i&&t(i,{}),u?t(Wl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Ya,{align:"center",size:a,color:S,children:n}):null]}),s?t(Ya,{align:"center",size:d,color:x,children:s}):null,$?t(Ya,{align:"center",size:d,color:S,children:$}):null]})]})},Vl=(e,t)=>({[Ai.Default]:i=>te({fill:ul(t,e,"300"),...i}),[Ai.Info]:i=>ot({fill:ul(t,e,"400"),...i}),[Ai.Error]:i=>rt({fill:ul(t,e,"500"),...i}),[Ai.Warning]:i=>nt({fill:ul(t,e,"500"),...i}),[Ai.Success]:i=>p({fill:ul(t,e,"500"),...i}),[Ai.Loading]:e=>Gl({withSpinnerOld:!0,...e}),[Ai.Disabled]:i=>h({fill:ul(t,e,"400"),...i}),[Ai.Unknown]:i=>it({fill:ul(t,e,"300"),...i})}[e]),Kl=e=>{switch(e){case Fi.Success:return Ai.Success;case Fi.Error:case Fi.Failure:return Ai.Error;case Fi.Notice:return Ai.Warning;case Fi.Unsupported:case Fi.Unknown:return Ai.Info;case Fi.Irrelevant:case Fi.Disabled:return Ai.Disabled;case Fi.Waiting:return Ai.Loading;case Fi.Pending:default:return Ai.Default}},Yl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Jl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ve,clickhouse:Te,oracle:q,aws:at},ql={sts:yt,dynamodb:bt,s3:X,sqs:ft,sns:mt,lambda:gt,kinesis:ht,ec2:pt,apigateway:ut,apigatewayv2:ut,bedrock:ct,bedrockruntime:ct,eventbridge:dt,sfn:lt,stepfunctions:lt,secretsmanager:st,cloudwatch:Ee},Ql=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Jl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Jl[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=ql[e];if(t)return t}return at}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Jl))if(o.includes(e))return t;return Be},Zl=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}},ed=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=cs(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},td=(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 id(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 nd(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 rd(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:id(t??null)}}function od(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:nd(t??null)}}const ad=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),sd=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ld=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},dd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},cd=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ud=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,pd=e=>ud.test(e),hd=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:ja(t),reason:i?ja(i):"",message:n}))||[],gd=(e,t)=>{const i=cs(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}))},md=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>tn[e]):[],fd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>tn[e]):[],bd=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},yd=e=>e.replace(/[^\d]/g,""),vd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},$d=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},wd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},Sd={0:"",1:"OK",2:"ERROR"};class xd{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 xd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Cd=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},Ed=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(Ed(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=Td(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=Cd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Td=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?Ed(i):void 0}else e.skip(i.wire)}return t},Od=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Td(i);void 0===n.key&&void 0===n.value||t.push(n)},Nd=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},Ad=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?Od(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},kd=(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=Cd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=Cd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=Cd(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?Od(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Ad(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Nd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Id=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=Td(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Dd=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},_d=(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=Dd(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(kd(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Rd=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=Id(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(..._d(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Ld=e=>({key:e.key??null,value:e.value??null}),Pd=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?Sd[e.statusCode]??null:null,u=(e.attrs??[]).map(Ld);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(Ld)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?wd[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)})},Ud=(e,t)=>{if(null==t||""===t)return{error:null};try{const i=(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}})(t);if(!i||0===i.length)return{error:"Invalid base64 rawOtlp"};const n=(e=>{const t=new xd(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(...Rd(e))}else t.skip(e.wire)}return i})(i);return n.length?{traceId:e,spans:Pd(n),error:null}:{error:"No spans found in OTLP payload"}}catch(e){return{error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Md=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}},Fd=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=>Fd(e)))}else if("object"==typeof n&&null!==n){const e=Fd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},zd=(e,t=2)=>JSON.stringify(e||{},null,t),Bd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),jd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Hd=ai("v1.33"),Wd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Xd=(e,t)=>{if(e!==$i.K8s)return!1;const i=ai(t);return i>0&&i<Hd},Gd=ai("v1.20"),Vd=(e,t)=>{if(e!==$i.K8s)return!0;const i=ai(t);return!(i>0)||i>=Gd},Kd=e=>e?Wd.map(t=>e[t]??null):[],Yd={PID:"process.pid",VPID:"process.vpid"},Jd={[xi.Go]:"Go",[xi.Java]:"Java",[xi.JavaScript]:"Node.js",[xi.Python]:"Python",[xi.DotNet]:".NET",[xi.CSharp]:"C#",[xi.CPlusPlus]:"C++",[xi.Php]:"PHP",[xi.Ruby]:"Ruby",[xi.Rust]:"Rust",[xi.Swift]:"Swift",[xi.Elixir]:"Elixir",[xi.Browser]:"Browser",[xi.MySql]:"MySQL",[xi.Nginx]:"Nginx",[xi.Postgres]:"PostgreSQL",[xi.Redis]:"Redis",[xi.Kafka]:"Kafka",[xi.Ignored]:"Ignored",[xi.Unknown]:"Unknown",[xi.Processing]:"Processing",[xi.NoContainers]:"No Containers",[xi.NoRunningPods]:"No Running Pods"},qd=[{id:xi.Go,label:Jd[xi.Go],icon:zs(xi.Go)},{id:xi.Java,label:Jd[xi.Java],icon:zs(xi.Java)},{id:xi.JavaScript,label:Jd[xi.JavaScript],icon:zs(xi.JavaScript)},{id:xi.Python,label:Jd[xi.Python],icon:zs(xi.Python)},{id:xi.Php,label:Jd[xi.Php],icon:zs(xi.Php)},{id:xi.Ruby,label:Jd[xi.Ruby],icon:zs(xi.Ruby)},{id:xi.Rust,label:Jd[xi.Rust],icon:zs(xi.Rust)},{id:xi.DotNet,label:Jd[xi.DotNet],icon:zs(xi.DotNet)},{id:xi.CSharp,label:Jd[xi.CSharp],icon:zs(xi.CSharp)},{id:xi.CPlusPlus,label:Jd[xi.CPlusPlus],icon:zs(xi.CPlusPlus)},{id:xi.Swift,label:Jd[xi.Swift],icon:zs(xi.Swift)},{id:xi.Elixir,label:Jd[xi.Elixir],icon:zs(xi.Elixir)},{id:xi.Browser,label:Jd[xi.Browser],icon:zs(xi.Browser)},{id:xi.MySql,label:Jd[xi.MySql],icon:zs(xi.MySql)},{id:xi.Nginx,label:Jd[xi.Nginx],icon:zs(xi.Nginx)},{id:xi.Postgres,label:Jd[xi.Postgres],icon:zs(xi.Postgres)},{id:xi.Redis,label:Jd[xi.Redis],icon:zs(xi.Redis)},{id:xi.Kafka,label:Jd[xi.Kafka],icon:zs(xi.Kafka)}],Qd={id:Mi.OpentelemetryEbpfInstrumentation,label:Mi.OpentelemetryEbpfInstrumentation,icon:vt},Zd={id:Mi.BrowserCommunity,label:Mi.BrowserCommunity,icon:zs(xi.Browser)},ec={[xi.Go]:{community:[{id:Mi.GolangCommunity,label:Mi.GolangCommunity,icon:zs(xi.Go)},Qd,Zd],enterprise:[{id:Mi.GolangEnterprise,label:Mi.GolangEnterprise,icon:zs(xi.Go)}]},[xi.JavaScript]:{community:[{id:Mi.NodejsCommunity,label:Mi.NodejsCommunity,icon:zs(xi.JavaScript)},Qd,Zd],enterprise:[{id:Mi.NodejsEnterprise,label:Mi.NodejsEnterprise,icon:zs(xi.JavaScript)}]},[xi.Python]:{community:[{id:Mi.PythonCommunity,label:Mi.PythonCommunity,icon:zs(xi.Python)},Qd,Zd],enterprise:[{id:Mi.PythonEnterprise,label:Mi.PythonEnterprise,icon:zs(xi.Python)}]},[xi.Java]:{community:[{id:Mi.JavaCommunity,label:Mi.JavaCommunity,icon:zs(xi.Java)},Qd,Zd],enterprise:[{id:Mi.JavaEnterprise,label:Mi.JavaEnterprise,icon:zs(xi.Java)},{id:Mi.JavaEbpfInstrumentations,label:Mi.JavaEbpfInstrumentations,icon:zs(xi.Java)}]},[xi.DotNet]:{community:[{id:Mi.DotNetCommunity,label:Mi.DotNetCommunity,icon:zs(xi.DotNet)},Qd,Zd],enterprise:[{id:Mi.DotNetEnterprise,label:Mi.DotNetEnterprise,icon:zs(xi.DotNet)}]},[xi.Ruby]:{community:[{id:Mi.RubyCommunity,label:Mi.RubyCommunity,icon:zs(xi.Ruby)},Qd,Zd],enterprise:[{id:Mi.RubyEnterprise,label:Mi.RubyEnterprise,icon:zs(xi.Ruby)}]},[xi.Php]:{community:[{id:Mi.PhpCommunity,label:Mi.PhpCommunity,icon:zs(xi.Php)},Qd,Zd],enterprise:[]},[xi.CSharp]:{community:[Zd],enterprise:[{id:Mi.CPlusPlusEnterprise,label:Mi.CPlusPlusEnterprise,icon:zs(xi.CSharp)}]},[xi.CPlusPlus]:{community:[Qd,Zd],enterprise:[]},[xi.Browser]:{community:[Zd],enterprise:[]},[xi.MySql]:{community:[],enterprise:[{id:Mi.MySqlEnterprise,label:Mi.MySqlEnterprise,icon:zs(xi.MySql)}]},[xi.Rust]:{community:[Qd,Zd],enterprise:[]},[xi.Swift]:{community:[Qd,Zd],enterprise:[]},[xi.Elixir]:{community:[Qd,Zd],enterprise:[]},[xi.Nginx]:{community:[Qd,Zd],enterprise:[]},[xi.Postgres]:{community:[Qd],enterprise:[]},[xi.Redis]:{community:[Qd],enterprise:[]},[xi.Kafka]:{community:[Qd],enterprise:[]},[xi.Ignored]:{community:[],enterprise:[]},[xi.Unknown]:{community:[Qd,Zd],enterprise:[]},[xi.Processing]:{community:[],enterprise:[]},[xi.NoContainers]:{community:[],enterprise:[]},[xi.NoRunningPods]:{community:[],enterprise:[]}},tc="*",ic=e=>!!e?.includes(tc),nc=e=>e?.length?ic(e)?[tc]:e:[],rc=e=>{if(e?.length&&!ic(e))return e.filter(e=>e!==tc)},oc=e=>e===tc?"All languages":Jd[e]??e,ac=e=>e===tc?$t:zs(e),sc=ai("v1.26"),lc=(e,t)=>{if(e!==$i.K8s)return!1;const i=ai(t);return!(i>0)||i>=sc},dc=[zi.NetworkMetrics],cc=e=>!dc.includes(e),uc=[{type:zi.CodeAttributes,icon:Zs(zi.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:[xi.Go,xi.Python,xi.JavaScript]},{type:zi.CustomInstrumentation,icon:Zs(zi.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:[xi.Go,xi.Java,xi.Php]},{type:zi.HeadersCollection,icon:Zs(zi.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:[xi.Go,xi.Java,xi.JavaScript]},{type:zi.PayloadCollection,icon:Zs(zi.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:[xi.Go,xi.JavaScript]}],pc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Zs(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},hc="Recommendations",gc="Optimize your observability setup with actionable recommendations.",mc="Recommended",fc="Applied",bc="Dismissed",yc="Not applicable",vc={[xn.Recommended]:mc,[xn.Applied]:fc,[xn.Dismissed]:bc,[xn.NotApplicable]:yc},$c="Accept",wc="Dismiss",Sc="Restore",xc="Docs",Cc="Benefits",Ec="Considerations",Tc="Apply Recommendation",Oc="Apply via UI",Nc="Apply via GitOps",Ac="Via UI",kc="Via GitOps",Ic="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Dc="There are 2 ways to apply this recommendation.",_c="Odigos applies the selected change immediately.",Rc="Commit the configuration to your repository and let your GitOps controller apply it.",Lc="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Pc="No recommendations",Uc="There are no recommendations for this cluster right now.",Mc="This recommendation does not currently apply to your cluster.",Fc="Recommendation dismissed",zc="Recommendation restored",Bc="Recommendation applied successfully",jc="Failed to apply recommendation",Hc={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.'},Wc={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."},Xc={[mi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[mi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[mi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Gc="Cancel",Vc="Save",Kc="Edit rule",Yc="Edit auto rule",Jc="Create rule",qc="Delete rule",Qc="Save",Zc="Create your first rule",eu="No Rules Exist",tu="No Results",iu=e=>`No rules match the search term "${e}"`,nu="Rule name",ru="Rule type",ou="Select the type of condition that makes a trace highly relevant.",au="Rule Enabled",su="Rule Disabled",lu="Enabled",du="Disabled",cu="Note",uu="HTTP route",pu="Method",hu="Keep Percentage",gu="Keep traces with duration larger than",mu="Keep traces with errors",fu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",bu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",yu="Custom percentage",vu="Disabled rule",$u="Sample",wu="Keep all",Su="Drop all",xu="Operation type",Cu="HTTP route prefix",Eu="Templated path",Tu="Templated path prefix",Ou="Kafka topic",Nu="Custom duration (ms)",Au="No preview available",ku="Server address",Iu="Drop at most this percentage of matching traces",Du="Unnamed rule",_u="Sampling Preview",Ru="Source Scope",Lu="Unknown source",Pu="Operation",Uu="Duration",Mu="Errors",Fu="Keep Percentage",zu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Bu="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.",ju="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Hu="Retain traces with errors from the selected services and operations.",Wu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Xu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Gu={highlyRelevant:Wu,noisy:Xu,costReduction:void 0},Vu="Type rule name",Ku="Add note here...",Yu="Type here",Ju="Search source name",qu="e.g. collector.my.vendor.com",Qu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Zu="Rule will apply to all sources in the cluster",ep="If multiple source scopes are set, they must all match simultaneously.",tp="All sources",ip="-",np="All",rp="Sources",op="Namespaces",ap="Languages",sp="any of",lp="AND",dp="All operations",cp="HTTP server endpoint",up="HTTP client endpoint",pp="Kafka consumer",hp="Kafka producer",gp="Sampling Rules",mp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',fp="Refresh",bp="Create rule",yp="Sampling docs",vp="75vw",$p="Delete rule?",wp="Are you sure you want to delete this sampling rule?",Sp="Delete",xp="Cancel",Cp="Kubernetes Health Probes",Ep="Keep All Error Traces",Tp="Drop Traces Cluster-Wide",Op="A rule with the same matching conditions already exists.",Np="Create this rule as-is?",Ap="This rule still uses the default configuration.\nDo you want to create it anyway?",kp="Rule preview",Ip="Continue editing",Dp="Create 'Noisy Operation Kubernetes Health Probes' rule",_p="Edit 'Noisy Operation Kubernetes Health Probes' rule",Rp="Automatically detect and sample health probe traces across the cluster.",Lp="Create 'Highly Relevant Operations' rule",Pp="Edit 'Highly Relevant Operations' rule",Up="Automatically keep all error traces across the entire cluster.",Mp="Create 'Cost Reduction' rule",Fp="Edit 'Cost Reduction' rule",zp="Automatically drop a percentage of traces across the entire cluster.",Bp="Skip setup",jp="Start setup",Hp="Next",Wp="Go to Sampling",Xp="Read more",Gp="Welcome to Sampling",Vp="Cut costs without losing what matters",Kp="Odigos sampling works in three stages:",Yp="Filter noisy traffic",Jp="Remove non-actionable traces like health checks.",qp="Guarantee highly relevance operations",Qp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Zp="Reduce cost",eh="Sample routine traffic using percentages.",th="Sampling does not drop individual spans - it keeps or drops the entire trace.",ih="Filter noisy operations",nh="Cut traces with little or no observability value (health-checks, metric scarping, etc)",rh="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.",oh="Preset Rules",ah="Kubernetes Health Probes",sh="Automatically ignore health checks",lh="You can review, adjust, and add additional custom rules later.",dh="Choose your sampling strategy",ch="Pick the approach that best fits your balance of cost vs data-completeness",uh="Keep List",ph="Budget Friendly",hh="Define which traces must be kept, while all others are sampled by default to minimize cost.",gh="Cost-oriented - keeps only what you explicitly select.",mh="Best for very large clusters with high volumes of traces and high costs.",fh="Higher risk of missing important traces without ongoing review.",bh="Drop List",yh="Safe Choice",vh="Define which traces must be aggressively dropped, while all others are kept by default.",$h="Preserves most data unless explicitly filtered.",wh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Sh="Advanced",xh="Maximum Flexibility",Ch="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Eh="'Keep List' profile",Th="Protect important traces",Oh="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:",Nh="Traces with errors",Ah="Slow requests (duration above threshold)",kh="Mission-Critical endpoints or services",Ih="Services under test or evaluation",Dh="New deployments",_h="You can review, adjust, and add rules once onboarding is complete.",Rh="Common Rules",Lh="Preset Rules",Ph="Error collection - entire cluster",Uh="Keep all traces with errors",Mh="Ambient sampling percentage",Fh="'Drop List' profile",zh="Reduce high-volume traffic",Bh="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.",jh="Advanced Configuration",Hh="Configure sampling rules",Wh="Advanced mode allows you to configure all sampling categories:",Xh="Noise Filtering - remove non-actionable traces",Gh="Highly Relevance - guarantee important traces are kept",Vh='Cost Control - drop traces for "Normal" operations',Kh="Rules can target:",Yh="Services",Jh="HTTP Endpoints",qh="DB Operations",Qh="Errors",Zh="Latency and more...",eg="Sampling configured successfully!",tg="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",ig="Odigos will now:",ng="Filter noisy operations",rg="Guarantee important traces",og="Reduce cost using controlled sampling",ag="Recommended",sg={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."},lg={noisy:Dp,highlyRelevant:Lp,costReduction:Mp},dg={noisy:_p,highlyRelevant:Pp,costReduction:Fp},cg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ug=[{id:Yi.Logs,value:"Logs"},{id:Yi.Metrics,value:"Metrics"},{id:Yi.Traces,value:"Traces"},{id:Yi.Profiles,value:"Profiles"}],pg=6048e5,hg="URL templatization",gg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",mg="Default templatization",fg="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",bg="Default templatization is not enabled",yg="Automatically detect and templatize dynamic URL segments when no custom template matches.",vg="Enable for entire cluster",$g="Custom URL templates",wg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",Sg="View by:",xg="Groups",Cg="Tree",Eg="List",Tg="Create templating scope",Og="Edit scoped templates",Ng="Edit",Ag="Add template",kg="Add templatization rules",Ig="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Dg="Add templatization rule",_g="Choose how to templatize dynamic URLs",Rg="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Lg="Before",Pg="After",Ug="/users/123/orders/456",Mg="/users/{id}/orders/{orderId}",Fg="Automatic templatization",zg="Recommended",Bg="Detect and templatize dynamic URL segments when no custom rule matches.",jg="Applies to: Entire cluster",Hg="Reversible at any time",Wg="Enabled",Xg="Need more control?",Gg="Create a custom rule for specific URL patterns.",Vg="Create custom rule",Kg="Learn how it works",Yg="Docs",Jg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",qg="Default templatization is enabled — editor coming next.",Qg="746px",Zg="Add default templatization rule",em="Edit default templatization rule",tm="Disable for a scope",im="UI template rules",nm="Source Scope",rm="Scope",om="Choose which sources this template rule applies to.",am="Sources where this template is tested and applied.",sm="This rule will apply to all sources in the cluster.",lm="Default templatization",dm="Automatically templatize dynamic URL segments when no custom template matches.",cm="Enable automatic URL templatization for this scope",um=["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."],pm="default templatization for this scope",hm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",gm="Disable",mm="Skip policy",fm="Advanced",bm=["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."],ym=bm.join(" "),vm="Skip default templatization for all non-2xx responses",$m="Skip default templatization for specific HTTP status codes",wm="Example: 404, 401",Sm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",xm="This rule will take effect in the cluster immediately after it is added.",Cm="This rule will take effect in the cluster immediately after it is saved.",Em="No template changes. Save will keep the current templates.";function Tm(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.`:Em}const Om="Add rule",Nm="Save",Am="Cancel",km="Cancel without saving",Im="Delete",Dm="templating scope";function _m(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 Rm="Enter valid HTTP status codes between 100 and 599, separated by commas.",Lm="Create custom template",Pm="Create new scoped template",Um="Add URL templates",Mm="UI template rules",Fm=e=>`To ${e}`,zm=e=>`Applies to ${e} source${1===e?"":"s"}`,Bm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,jm=e=>`Applies to ${e} language${1===e?"":"s"}`,Hm="Applies to entire cluster",Wm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Xm="Where should this rule apply?",Gm=Xm,Vm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Km="Specific scope",Ym="Entire cluster",Jm="Apply the rule only where it is needed.",qm="Apply to every source in this cluster.",Qm="Quick start",Zm="Best performance",ef="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",tf="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",nf="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",rf="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.",of="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.",af="Add to existing template group",sf="Create new template group",lf="Add here",df="Create New",cf="Existing templating scope",uf="Templating scopes",pf="Select where to add the new template",hf="A template group already uses this scope",gf="Choose where to add the new templates.",mf="Add to existing template group",ff="Create a separate template group",bf="Use different settings or behavior for the same scope.",yf="View action settings",vf="Default settings",$f=e=>cf,wf=e=>1===e?"1 template":`${e} templates`,Sf="Templating scope",xf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,Cf="Template group will be added to the default action. Expand Select action to choose a different one.",Ef="Select action",Tf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",Of="Advanced settings",Nf="Choose which Odigos action the new custom template will be added to.",Af="Default UI-managed action · Recommended",kf="Create a new action",If="Select action",Df="Default UI-managed action",_f="Add this template group to the default UI-managed action.",Rf="Select action",Lf="Choose an existing action or create a new one for this template group.",Pf="Search template group by type action name or scope (languages, namespaces, sources)",Uf="Selected Template group:",Mf="URL templatization action",Ff="Create new action",zf="__odigos_create_new_url_templatization_action__",Bf=Lf,jf="New action name",Hf="New action group",Wf="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.",Xf="Create new template group",Gf="Next",Vf="Back",Kf="Action name",Yf="Action",Jf="UI template rules",qf="__odigos_default_url_templatization_action__",Qf="UI-owned",Zf="Externally synced",eb=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],tb=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],ib=Qf,nb="Templates",rb="Other templates in this group",ob="Additional templates that share the same source scope and Action as this rule.",ab="e.g. /api/users/{id}",sb="Language",lb="Namespace",db="Source",cb="AND",ub="Entire cluster",pb="Unset",hb="Enabled globally",gb="Default templating disabled",mb="Enabled",fb="Default templatization is unset. No default rules are configured on an enabled action.",bb="Default templatization is enabled globally.",yb="Default templatization is disabled for the entire cluster.";function vb(e){return e<=0?bb:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const $b="Disabled for these scopes",wb="Disable for a scope",Sb="Delete",xb="disabled scope",Cb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",Eb="Automatic templatization",Tb="Active",Ob="Heuristic detection that catches many dynamic segments — numbers, UUIDs, and similar patterns — when no custom rule matches.",Nb="Examples",Ab="Templatized",kb="Not templatized",Ib="Use a custom template when paths like these need placeholders.",Db=[{before:"/users/1234",after:"/users/{id}",label:"Numbers"},{before:"/orders/123e4567-e89b-12d3-a456-426614174000",after:"/orders/{id}",label:"UUIDs"},{before:"/assets/6f2a9cdeab34f01e",after:"/assets/{id}",label:"Hex IDs"},{before:"/events/2023-10-01T12:00:00+0000",after:"/events/{date}",label:"Dates"},{before:"/users/foo@bar.io",after:"/users/{email}",label:"Emails"}],_b=[{path:"/user/john",reason:"Static names"},{path:"/user/s111222",reason:"Short alphanumeric IDs"},{path:"/users/123456_789",reason:"Mixed digit patterns"}],Rb="Custom templates take precedence over automatic templatization.",Lb="Scope",Pb="Status codes",Ub="Disabled",Mb="Entire cluster",Fb="All",zb="None",Bb="Disabled",jb="No disabled scope configured",Hb="Add disabled",Wb="Disabled scopes",Xb="Advanced",Gb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Vb="Automatic templatization off for matching traffic.",Kb="Disable for a scope",Yb="Scope",Jb="Effective behavior",qb="Status",Qb="Automatic templatization off",Zb="Covered by broader exception",ey="Disabled",ty="Redundant",iy="No disabled scope configured",ny="Disable automatic templatization for specific scopes when needed.",ry=(e,t)=>`${e} configured • ${t} effective`,oy=e=>1===e?"1 scope":`${e} scopes`,ay="Default templatization is enabled for all HTTP status codes.";function sy(e){return e<=0?ay:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const ly="HTTP status code policies",dy="No skip policy configured",cy="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",uy="Add skip policy for a scope",py="Add skip policy for a scope",hy="Skip default templatization on HTTP errors",gy="Delete",my="skip policy",fy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",by="Template details",yy="Template",vy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",$y="Created via",wy="Action name",Sy="Kubernetes name",xy="Odigos Action (Kubernetes resource) where this template is managed.",Cy="Try a URL",Ey="/users/12/orders/345685335358",Ty="Test URL",Oy="Close",Ny="Result",Ay="Templated URL path",ky="Match found",Iy="This URL matches the template.",Dy="No match",_y="This URL doesn't match the template.",Ry="Check the URL structure and parameter positions, then try again.",Ly={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:qa},Py=Bt(e=>({...Ly,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(Ly)}));var Uy;(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"})(Uy||(Uy={}));const My=e=>`add-${ja(e).replaceAll(" ","-").toLowerCase()}`,Fy=e=>`edit-${ja(e).replaceAll(" ","-").toLowerCase()}`,zy=Bt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),By=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),jy=Bt(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:By})),Hy=Bt((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 Wy;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Wy||(Wy={}));const Xy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Gy=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Vy=Bt((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Xy();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]:Gy(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Xy(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]:Gy(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ky=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Yy={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Jy=(e,t)=>e.destinationType.type!==t.destinationType.type,qy=Bt(e=>({...Yy,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=>Jy(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=>Jy(e,t))})),clearStore:()=>e(()=>({...Yy}))})),Qy=e=>{function t(){return void 0===e?{}:Ss(e)}const[i,n]=Xt(t()),[r,o]=Xt({}),[a,s]=Xt(t()),l=Vt((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=Kt(()=>!d(a,i),[a,i]);Gt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Vt((e,t)=>xs("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=Ss(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=Ss(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}},Zy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},ev=()=>{const{addNotification:e}=Hy(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=Qy(Zy);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":ad(t)&&(n[e]=ts.FIELD_IS_REQUIRED)}}),t.type===si.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=ts.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Ai.Warning,title:i.alertTitle,message:ts.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={...Ss(Zy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case di.LabelsAttributes:case di.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 di.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 di.CollectContainerAttributes:case di.CollectReplicaSetAttributes:case di.CollectWorkloadId:case di.CollectClusterId:case di.ClusterAttributes:case di.OverwriteExistingValues:case di.AttributeNamesToDelete:case di.Renames:case di.PiiCategories:case di.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},tv=e=>{Gt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},iv=()=>{const e=Yt(null),[t,i]=Xt(0),[n,r]=Xt(0);return Gt(()=>{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}},nv="data-ignore-outside-click",rv=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(nv))return!0;t=t.parentNode}return!1},ov=(e,t)=>{const i=Yt(t);i.current=t,Gt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(rv(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},av=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Yt(null),[o,a]=Xt(!1),[s,l]=Xt({top:0,left:0}),[d,c]=Xt({edge:"top",align:"left"});return ov(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})}}},sv=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 i}from"react/jsx-runtime";import n,{css as
|
|
|
205
205
|
text-overflow: ellipsis;
|
|
206
206
|
white-space: nowrap;
|
|
207
207
|
`}
|
|
208
|
-
`,
|
|
208
|
+
`,lv=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 i}from"react/jsx-runtime";import n,{css as
|
|
|
217
217
|
min-width: 0;
|
|
218
218
|
|
|
219
219
|
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
220
|
-
`,
|
|
220
|
+
`,dv=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
|
-
`,
|
|
227
|
+
`,cv=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
|
-
`,
|
|
234
|
+
`,uv=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 i}from"react/jsx-runtime";import n,{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
|
-
`,
|
|
244
|
+
`,pv=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 i}from"react/jsx-runtime";import n,{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
|
-
`,
|
|
253
|
+
`,hv=({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=Kt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:w,arrowPlacement:S,handlePosition:x}=av({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),C=Kt(()=>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(w.left||i,w.top||n):x(i,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(i,{children:d});const T=v&&f.length>0;return e(sv,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(it,{fill:m.v2.colors.white[500]}),T&&ei.createPortal(e(lv,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(uv,{$align:S.align,children:t(pv,{$pointsUp:!0})}),t(dv,{$maxWidth:p,children:e(cv,{children:[(!!r||!!a)&&e(Rl,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Ya,{size:Wa.XS,children:a},"title")]}),f.map((e,i)=>t(Ya,{size:Wa.XXXS,children:e},i)),!!l&&t(Ya,{size:Wa.XXXS,color:Xa.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(uv,{$align:S.align,children:t(pv,{$pointsUp:!1})})]}),document.body)]})};var gv,mv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(gv||(gv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(mv||(mv={}));const fv=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 i}from"react/jsx-runtime";import n,{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===mv.S?r`
|
|
264
264
|
height: 24px;
|
|
265
265
|
${t?r`
|
|
266
266
|
padding: 8px 12px;
|
|
267
267
|
`:r`
|
|
268
268
|
width: 24px;
|
|
269
269
|
`}
|
|
270
|
-
`:e===
|
|
270
|
+
`:e===mv.M?r`
|
|
271
271
|
height: 32px;
|
|
272
272
|
${t?r`
|
|
273
273
|
padding: 8px 18px;
|
|
@@ -292,7 +292,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{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===gv.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 i}from"react/jsx-runtime";import n,{css as
|
|
|
300
300
|
&:active {
|
|
301
301
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
302
302
|
}
|
|
303
|
-
`:e===
|
|
303
|
+
`:e===gv.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 i}from"react/jsx-runtime";import n,{css as
|
|
|
308
308
|
&:active {
|
|
309
309
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
310
310
|
}
|
|
311
|
-
`:e===
|
|
311
|
+
`:e===gv.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,13 +318,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
318
318
|
}
|
|
319
319
|
`:""}
|
|
320
320
|
}
|
|
321
|
-
`,dv=Ht(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=av.Primary,size:u=sv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===sv.L?24:u===sv.M?20:16),E=u===sv.L?Wa.S:Wa.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Xt(!1),A=!(!g&&!O),k=!(!v&&!A),I=Vt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(lv,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:y,...w,disabled:k,onClick:k?void 0:I,children:t(ov,{text:a,withIcon:!s,fullWidth:!!r,children:A?t(Gl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Pl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Ya,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Pl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});dv.displayName=dv.name;const cv=({onDone:e}={})=>{const[i,n]=Xt(!1),[r,o]=Xt(-1),a=Vt(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:Vt(({value:e,...n})=>t(dv,{leftIcon:i?wt:St,onClick:()=>a(e),variant:av.Secondary,size:sv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},uv=e=>{const{addNotification:t}=Ly(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=Wy(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?sd(i.name)?n.name=void 0:(r=!1,n.name=ts.ILLEGAL_K8S_LABEL):(r=!1,n.name=ts.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Ai.Warning,title:e.alertTitle,message:ts.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...Ss(e),name:t};n(void 0,void 0,i)}}},pv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},hv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Ly(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Wy(pv),[d,c]=Xt([]),[u,p]=Xt([]);return Gt(()=>{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===Oi.Dropdown){const e=cs(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,...cs(n,{})}})).map(e=>{if(i){const t="string"==typeof i?cs(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Gt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Gt(()=>{if(t&&0===md(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]=ts.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ai.Warning,title:e.alertTitle,message:ts.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={...Ss(pv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(cs(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},gv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Gt(()=>{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),mv=e=>{const{onChange:t}=e??{},[i,n]=Xt(!1),r=Vt(()=>n(e=>!e),[]),o=Vt(()=>n(!1),[]);return Vy(i),gv({active:i,key:"Escape"},o),Gt(()=>(t?.(i),()=>{i&&t?.(!1)}),[i,t]),{isFullscreen:i,toggle:r,exit:o}},fv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Wi.HttpRequest]:null,[Wi.HttpResponse]:null,[Wi.DbQuery]:null,[Wi.Messaging]:null},codeAttributes:{[Bi.Column]:null,[Bi.FilePath]:null,[Bi.Function]:null,[Bi.LineNumber]:null,[Bi.Namespace]:null,[Bi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hi.Java]:null,[Hi.Golang]:null,[Hi.Php]:null},networkMetrics:null},bv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Wy(fv);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={...Ss(fv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[Wi.HttpRequest]:o[Wi.HttpRequest]?{}:null,[Wi.HttpResponse]:o[Wi.HttpResponse]?{}:null,[Wi.DbQuery]:o[Wi.DbQuery]?{}:null,[Wi.Messaging]:o[Wi.Messaging]?{}:null}),a&&(c.codeAttributes={[Bi.Column]:a[Bi.Column]||null,[Bi.FilePath]:a[Bi.FilePath]||null,[Bi.Function]:a[Bi.Function]||null,[Bi.LineNumber]:a[Bi.LineNumber]||null,[Bi.Namespace]:a[Bi.Namespace]||null,[Bi.StackTrace]:a[Bi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hi.Java]:l[Hi.Java]||null,[Hi.Golang]:l[Hi.Golang]||null,[Hi.Php]:l[Hi.Php]||null}),i(void 0,void 0,c)}}},yv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Xt(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Jt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Gt(()=>{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},vv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Yt(null);return Gt(()=>{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},$v=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Xt(e[0]||""),[r,o]=Xt(null),a=Yt({}),s=Yt(!1),l=Yt(!1),d=Vt((e,t)=>{a.current[e]=t},[]),c=Vt(e=>{o(e)},[]),u=Vt(e=>{l.current=!0,n(e)},[]);return Gt(()=>{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]),Gt(()=>{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 wv,Sv;(e=>{e.Left="left",e.Right="right"})(wv||(wv={})),(e=>{e.Top="top",e.Bottom="bottom"})(Sv||(Sv={}));const xv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Xt(e),c=s?t:l,u=Vt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Xt({x:n||wv.Left,y:r||Sv.Bottom}),g=Yt(null),m=Yt(!1);Gt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Jy(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,b]=Xt({}),y=Vt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===Sv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===Sv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===wv.Left?i.left:void 0,right:e===wv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Vt(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?wv.Right:wv.Left),y:r||(e.clientY>window.innerHeight/2?Sv.Top:Sv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Vt(e=>{e.stopPropagation()},[]);return Jt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},Cv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?cs(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Ev={otelServiceName:"",currentStreamName:""},Tv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Wy(Ev);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...Ss(Ev),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Qt.addDefaultLocale(Zt)}catch(e){}const Ov=new Qt(Zt.locale),Nv=[{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"}],Av=(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 Nv){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},kv=(e,t)=>Av(6e4*Math.max(0,e),t),Iv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),_v=()=>{const[e,t]=Xt(0);return Gt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Vt(e=>{try{return Ov.format(Iv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Vt((e,t)=>{try{const i=Iv(e);return Av(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Dv,Rv;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Red="red",e.Green="green",e.Loader="loader"})(Dv||(Dv={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(Rv||(Rv={}));const Lv=(e,t,i)=>{switch(t){case Dv.Purple:return e.v2.colors.purple[i?"300":"900"];case Dv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Dv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Dv.Pink:return e.v2.colors.pink[i?"500":"1000"];case Dv.Red:return e.v2.colors.red[i?"300":"900"];case Dv.Green:return e.v2.colors.green[i?"300":"900"];case Dv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Pv=n.div`
|
|
321
|
+
`,bv=Ht(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=gv.Primary,size:u=mv.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===mv.L?24:u===mv.M?20:16),E=u===mv.L?Wa.S:Wa.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Xt(!1),A=!(!g&&!O),k=!(!v&&!A),I=Vt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(fv,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!r,$isSelected:p,$align:y,...w,disabled:k,onClick:k?void 0:I,children:t(hv,{text:a,withIcon:!s,fullWidth:!!r,children:A?t(Gl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Pl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Ya,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Pl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});bv.displayName=bv.name;const yv=({onDone:e}={})=>{const[i,n]=Xt(!1),[r,o]=Xt(-1),a=Vt(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:Vt(({value:e,...n})=>t(bv,{leftIcon:i?wt:St,onClick:()=>a(e),variant:gv.Secondary,size:mv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},vv=e=>{const{addNotification:t}=Hy(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=Qy(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?sd(i.name)?n.name=void 0:(r=!1,n.name=ts.ILLEGAL_K8S_LABEL):(r=!1,n.name=ts.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Ai.Warning,title:e.alertTitle,message:ts.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...Ss(e),name:t};n(void 0,void 0,i)}}},$v={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},wv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Hy(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Qy($v),[d,c]=Xt([]),[u,p]=Xt([]);return Gt(()=>{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===Oi.Dropdown){const e=cs(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,...cs(n,{})}})).map(e=>{if(i){const t="string"==typeof i?cs(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Gt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Gt(()=>{if(t&&0===md(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]=ts.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ai.Warning,title:e.alertTitle,message:ts.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={...Ss($v),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(cs(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},Sv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Gt(()=>{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),xv=e=>{const{onChange:t}=e??{},[i,n]=Xt(!1),r=Vt(()=>n(e=>!e),[]),o=Vt(()=>n(!1),[]);return tv(i),Sv({active:i,key:"Escape"},o),Gt(()=>(t?.(i),()=>{i&&t?.(!1)}),[i,t]),{isFullscreen:i,toggle:r,exit:o}},Cv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Wi.HttpRequest]:null,[Wi.HttpResponse]:null,[Wi.DbQuery]:null,[Wi.Messaging]:null},codeAttributes:{[Bi.Column]:null,[Bi.FilePath]:null,[Bi.Function]:null,[Bi.LineNumber]:null,[Bi.Namespace]:null,[Bi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hi.Java]:null,[Hi.Golang]:null,[Hi.Php]:null},networkMetrics:null},Ev=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Qy(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={...Ss(Cv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[Wi.HttpRequest]:o[Wi.HttpRequest]?{}:null,[Wi.HttpResponse]:o[Wi.HttpResponse]?{}:null,[Wi.DbQuery]:o[Wi.DbQuery]?{}:null,[Wi.Messaging]:o[Wi.Messaging]?{}:null}),a&&(c.codeAttributes={[Bi.Column]:a[Bi.Column]||null,[Bi.FilePath]:a[Bi.FilePath]||null,[Bi.Function]:a[Bi.Function]||null,[Bi.LineNumber]:a[Bi.LineNumber]||null,[Bi.Namespace]:a[Bi.Namespace]||null,[Bi.StackTrace]:a[Bi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hi.Java]:l[Hi.Java]||null,[Hi.Golang]:l[Hi.Golang]||null,[Hi.Php]:l[Hi.Php]||null}),i(void 0,void 0,c)}}},Tv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Xt(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Jt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Gt(()=>{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},Ov=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Yt(null);return Gt(()=>{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},Nv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Xt(e[0]||""),[r,o]=Xt(null),a=Yt({}),s=Yt(!1),l=Yt(!1),d=Vt((e,t)=>{a.current[e]=t},[]),c=Vt(e=>{o(e)},[]),u=Vt(e=>{l.current=!0,n(e)},[]);return Gt(()=>{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]),Gt(()=>{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 Av,kv;(e=>{e.Left="left",e.Right="right"})(Av||(Av={})),(e=>{e.Top="top",e.Bottom="bottom"})(kv||(kv={}));const Iv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Xt(e),c=s?t:l,u=Vt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Xt({x:n||Av.Left,y:r||kv.Bottom}),g=Yt(null),m=Yt(!1);Gt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||rv(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,b]=Xt({}),y=Vt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===kv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===kv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===Av.Left?i.left:void 0,right:e===Av.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Vt(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?Av.Right:Av.Left),y:r||(e.clientY>window.innerHeight/2?kv.Top:kv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Vt(e=>{e.stopPropagation()},[]);return Jt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},Dv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?cs(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),_v={otelServiceName:"",currentStreamName:""},Rv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=Qy(_v);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...Ss(_v),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Qt.addDefaultLocale(Zt)}catch(e){}const Lv=new Qt(Zt.locale),Pv=[{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"}],Uv=(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 Pv){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},Mv=(e,t)=>Uv(6e4*Math.max(0,e),t),Fv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),zv=()=>{const[e,t]=Xt(0);return Gt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Vt(e=>{try{return Lv.format(Fv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Vt((e,t)=>{try{const i=Fv(e);return Uv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Bv,jv;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Red="red",e.Green="green",e.Loader="loader"})(Bv||(Bv={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(jv||(jv={}));const Hv=(e,t,i)=>{switch(t){case Bv.Purple:return e.v2.colors.purple[i?"300":"900"];case Bv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Bv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Bv.Pink:return e.v2.colors.pink[i?"500":"1000"];case Bv.Red:return e.v2.colors.red[i?"300":"900"];case Bv.Green:return e.v2.colors.green[i?"300":"900"];case Bv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Wv=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
325
|
-
gap: ${({$size:e})=>e===
|
|
326
|
-
padding: ${({$size:e})=>e===
|
|
327
|
-
border-radius: ${({$size:e})=>e===
|
|
325
|
+
gap: ${({$size:e})=>e===jv.Small?2:e===jv.Medium?4:8}px;
|
|
326
|
+
padding: ${({$size:e})=>e===jv.Small?"2px 4px":e===jv.Medium?"4px 6px":"4px 8px"};
|
|
327
|
+
border-radius: ${({$size:e})=>e===jv.Small?4:6}px;
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
|
|
330
330
|
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
@@ -337,16 +337,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
337
337
|
${({$disabled:e,$variant:t,$withClick:i})=>e?r`
|
|
338
338
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
339
339
|
`:r`
|
|
340
|
-
background-color: ${({theme:e})=>
|
|
340
|
+
background-color: ${({theme:e})=>Hv(e,t)};
|
|
341
341
|
${i&&r`
|
|
342
342
|
cursor: pointer;
|
|
343
343
|
&:hover,
|
|
344
344
|
&:active {
|
|
345
|
-
border: 1px solid ${({theme:e})=>
|
|
345
|
+
border: 1px solid ${({theme:e})=>Hv(e,t,!0)};
|
|
346
346
|
}
|
|
347
347
|
`}
|
|
348
348
|
`}
|
|
349
|
-
`,
|
|
349
|
+
`,Xv=({variant:i=Bv.Default,size:n=jv.Medium,label:r,leftIcon:a,rightIcon:s,onClick:l,disabled:d,flex:c,minWidth:u})=>{const p=o(),h=d?p.v2.colors.grey[400]:i===Bv.Default?p.v2.colors.white[500]:Hv(p,i,!0),g=n===jv.Small?Wa.XXXS:n===jv.Medium?Wa.XXS:Wa.S,m=n===jv.Small?10:n===jv.Medium?12:16,f=i===Bv.Loader;return e(Wv,{$variant:i,$size:n,$disabled:d,$withClick:!!l,onClick:()=>!d&&l?.(),$flex:c,$minWidth:u,children:[a&&t(a,{fill:h,size:m}),f?t(Gl,{withGradient:!0,title:r,titleSize:g}):t(Ya,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Gv=n.div`
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
352
352
|
justify-content: center;
|
|
@@ -356,9 +356,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
356
356
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
357
357
|
border-radius: 100px;
|
|
358
358
|
background-color: ${({$backgroundColor:e})=>e};
|
|
359
|
-
`,
|
|
359
|
+
`,Vv=({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(),b=Ai.Loading===s,y=s?[Ai.Disabled,Ai.Loading].includes(s)?ul(m,s,d?"400":"700"):[Ai.Unknown].includes(s)?ul(m,s,"600"):ul(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Ai.Unknown].includes(s)?y:[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]),$=p||(d&&![Ai.Unknown].includes(s)?[Ai.Disabled,Ai.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(hv,{text:a,fullWidth:g,children:e(Gv,{$backgroundColor:$,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(Gl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Gl,{withGradient:!0,title:f,titleSize:c||Wa.XXS}):t(Ya,{color:v,size:c||Wa.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Kv=n.div`
|
|
360
360
|
position: relative;
|
|
361
|
-
`,
|
|
361
|
+
`,Yv=n.div`
|
|
362
362
|
position: fixed;
|
|
363
363
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
364
364
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -376,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
376
376
|
border-radius: 6px;
|
|
377
377
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
378
378
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
379
|
-
`,
|
|
379
|
+
`,Jv=({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}=Iv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Kv,{ref:h,onMouseDown:m,children:[t(bv,{label:"Open",variant:gv.Secondary,size:mv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&ti(t(Yv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},qv={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,fullscreen:2e3,tooltip:2100}},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"}},Qv={v2:qv.v2,darkMode:!0,colors:{...qv.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:qv.font_family},Zv={v2:qv.v2,darkMode:!1,colors:{...qv.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:qv.font_family},e$=e=>e?Qv:Zv,t$=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:qv,darkModeTheme:Qv,getTheme:e$,lightModeTheme:Zv},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 i$=({children:e})=>t(s,{theme:e$(!0),children:e}),n$={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"},r$=Object.freeze(Object.defineProperty({__proto__:null,hex:n$},Symbol.toStringTag,{value:"Module"})),o$={in:{left:a`
|
|
380
380
|
from { transform: translateX(-100%); }
|
|
381
381
|
to { transform: translateX(0); }
|
|
382
382
|
`,right:a`
|
|
@@ -406,7 +406,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
406
406
|
`,center:a`
|
|
407
407
|
from { transform: translate(-50%, -50%); }
|
|
408
408
|
to { transform: translate(-50%, 100%); }
|
|
409
|
-
`}},
|
|
409
|
+
`}},a$={in:a`
|
|
410
410
|
from {
|
|
411
411
|
width: 0%;
|
|
412
412
|
}
|
|
@@ -420,7 +420,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
420
420
|
to {
|
|
421
421
|
width: 0%;
|
|
422
422
|
}
|
|
423
|
-
`},
|
|
423
|
+
`},s$=a`
|
|
424
424
|
0% {
|
|
425
425
|
transform: scale(1);
|
|
426
426
|
opacity: 1;
|
|
@@ -429,14 +429,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
429
429
|
transform: scale(2);
|
|
430
430
|
opacity: 0;
|
|
431
431
|
}
|
|
432
|
-
`,
|
|
432
|
+
`,l$=a`
|
|
433
433
|
0% {
|
|
434
434
|
background-position: -500px 0;
|
|
435
435
|
}
|
|
436
436
|
100% {
|
|
437
437
|
background-position: 500px 0;
|
|
438
438
|
}
|
|
439
|
-
`,
|
|
439
|
+
`,d$={in:a`
|
|
440
440
|
from {
|
|
441
441
|
opacity: 0;
|
|
442
442
|
}
|
|
@@ -450,7 +450,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
450
450
|
to {
|
|
451
451
|
opacity: 0;
|
|
452
452
|
}
|
|
453
|
-
`},
|
|
453
|
+
`},c$=Object.freeze(Object.defineProperty({__proto__:null,fade:d$,ping:s$,progress:a$,shimmer:l$,slide:o$},Symbol.toStringTag,{value:"Module"}));var u$,p$;(e=>{e.S="s",e.L="l"})(u$||(u$={})),(e=>{e.Filled="filled",e.Underline="underline"})(p$||(p$={}));const h$=n.div`
|
|
454
454
|
display: flex;
|
|
455
455
|
align-items: center;
|
|
456
456
|
gap: 2px;
|
|
@@ -458,19 +458,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
458
458
|
border-radius: 6px;
|
|
459
459
|
border: none;
|
|
460
460
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
461
|
-
`,
|
|
461
|
+
`,g$=n.button`
|
|
462
462
|
flex: 1;
|
|
463
463
|
display: flex;
|
|
464
464
|
align-items: center;
|
|
465
465
|
justify-content: center;
|
|
466
|
-
gap: ${({$size:e})=>e===
|
|
467
|
-
padding: ${({$size:e})=>e===
|
|
466
|
+
gap: ${({$size:e})=>e===u$.S?"4px":"8px"};
|
|
467
|
+
padding: ${({$size:e})=>e===u$.S?"4px 6px":"8px 12px"};
|
|
468
468
|
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
469
469
|
border: 1px solid transparent;
|
|
470
470
|
|
|
471
471
|
${({$disabled:e,$isSelected:t,$selectedBgColor:i,$selectedBorderColor:n,theme:o})=>e?r`
|
|
472
472
|
cursor: not-allowed;
|
|
473
|
-
background-color: ${t?(i||o.v2.colors.purple[900])+
|
|
473
|
+
background-color: ${t?(i||o.v2.colors.purple[900])+n$["050"]:"transparent"};
|
|
474
474
|
`:t?r`
|
|
475
475
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
476
476
|
border: 1px solid ${n||o.v2.colors.purple[400]};
|
|
@@ -485,11 +485,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
485
485
|
background-color: ${o.v2.colors.silver[600]};
|
|
486
486
|
}
|
|
487
487
|
`}
|
|
488
|
-
`,
|
|
488
|
+
`,m$=n.div`
|
|
489
489
|
display: flex;
|
|
490
490
|
align-items: stretch;
|
|
491
491
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
492
|
-
`,
|
|
492
|
+
`,f$=n.button`
|
|
493
493
|
display: flex;
|
|
494
494
|
height: 34px;
|
|
495
495
|
padding: 8px 12px 8px 16px;
|
|
@@ -508,7 +508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
508
508
|
&:hover {
|
|
509
509
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
510
510
|
}
|
|
511
|
-
`,
|
|
511
|
+
`,b$=({"data-id":n,size:r=u$.S,variant:a=p$.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===p$.Underline,g=h?f$:g$;return t(h?m$:h$,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:b,selectedTextColor:y,disabled:v},$)=>{const w=0===$,S=$===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===u$.S?Wa.XXS:Wa.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:E}),o&&t(Ya,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Vv,{...u})]});return t(g,{onClick:e=>{C||(e.preventDefault(),d(n))},$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,disabled:C,$disabled:C,$isSelected:x,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(hv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},y$=n.div`
|
|
512
512
|
box-sizing: border-box !important;
|
|
513
513
|
width: ${({$width:e})=>e??"fit-content"};
|
|
514
514
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -524,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
524
524
|
border: none;
|
|
525
525
|
border-radius: 6px;
|
|
526
526
|
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}};
|
|
527
|
-
`,
|
|
527
|
+
`,v$=n.input`
|
|
528
528
|
min-width: 0;
|
|
529
529
|
flex: 1;
|
|
530
530
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -541,7 +541,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
541
541
|
overflow: hidden;
|
|
542
542
|
text-overflow: ellipsis;
|
|
543
543
|
white-space: nowrap;
|
|
544
|
-
|
|
544
|
+
`,$$=({"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]=Xt(!1),[f,b]=Xt(!1),[y,v]=Xt(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Kt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Kt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(y$,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(xt,{size:18,fill:$}),t(v$,{"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(b$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},w$=n.div`
|
|
545
545
|
display: flex;
|
|
546
546
|
align-items: center;
|
|
547
547
|
justify-content: center;
|
|
@@ -550,41 +550,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
550
550
|
padding: 8px;
|
|
551
551
|
border-radius: 100%;
|
|
552
552
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
553
|
-
`,
|
|
553
|
+
`,S$=({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(Ll,{$gap:12,$alignItems:"center",children:[e(Ll,{$gap:4,$alignItems:"center",children:[!n&&t(w$,{children:t(i,{size:24,fill:d})}),t(Ya,{size:Wa.XXS,color:Xa.Secondary,align:"center",children:r}),a&&t(Ya,{size:Wa.XXXS,color:Xa.Disable,align:"center",children:a})]}),s&&t(bv,{variant:gv.Secondary,...s}),l]})},x$=n.span`
|
|
554
554
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
555
555
|
font-size: ${({$small:e})=>e?"12px":"14px"};
|
|
556
556
|
font-weight: 400;
|
|
557
557
|
color: ${({theme:e})=>e.v2.colors.silver[200]};
|
|
558
|
-
`,
|
|
558
|
+
`,C$=n.span`
|
|
559
559
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
560
560
|
font-size: 14px;
|
|
561
561
|
font-weight: 400;
|
|
562
562
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
563
|
-
`,
|
|
563
|
+
`,E$=({label:i,tooltip:n,required:r,badge:o,width:a,small:s})=>i||n||r?e(Rl,{$width:a,$justifyContent:"space-between",children:[i&&t(x$,{$small:s,children:i}),e(Rl,{$gap:4,children:[o&&t(Vv,{...o,textSize:Wa.XXXS}),r&&t(C$,{children:"*"}),n&&t(hv,{text:n,withIcon:!0})]})]}):null,T$=({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(ot,{size:12,fill:s});return i||n||r?e(Rl,{$alignItems:"center",children:[l&&t(Ll,{children:l}),t(Ya,{size:Wa.XXXS,weight:400,color:s,children:i||n||r})]}):null};var O$;(e=>{e.S="small",e.L="large"})(O$||(O$={}));const N$=n.div`
|
|
564
564
|
width: fit-content;
|
|
565
565
|
display: flex;
|
|
566
566
|
align-items: center;
|
|
567
567
|
gap: 8px;
|
|
568
568
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
569
|
-
`,
|
|
570
|
-
width: ${({$size:e})=>e===
|
|
571
|
-
height: ${({$size:e})=>e===
|
|
569
|
+
`,A$=n.div`
|
|
570
|
+
width: ${({$size:e})=>e===O$.S?"16px":"20px"};
|
|
571
|
+
height: ${({$size:e})=>e===O$.S?"16px":"20px"};
|
|
572
572
|
display: flex;
|
|
573
573
|
align-items: center;
|
|
574
574
|
justify-content: center;
|
|
575
575
|
border-radius: 4px;
|
|
576
576
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
577
577
|
background-color: ${({$backgroundColor:e})=>e};
|
|
578
|
-
`,
|
|
578
|
+
`,k$=({name:i,label:n,tooltip:r,badge:a,size:s=O$.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Xt(!1),y=d||c,v=s===O$.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],w=y?"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]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Ll,{$gap:4,children:[e(Rl,{$justifyContent:"space-between",children:[e(N$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(A$,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(Ct,{size:v,fill:$}):c?t(wt,{size:v,fill:$}):null}),n&&t(Ya,{size:s===O$.S?Wa.XXS:Wa.XS,nowrap:!0,children:n})]}),t(E$,{tooltip:r,badge:a})]}),t(T$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},I$=n.div`
|
|
579
579
|
display: flex;
|
|
580
580
|
flex-direction: ${({$direction:e})=>e===bi.Horizontal?"row":"column"};
|
|
581
581
|
gap: ${({$direction:e})=>e===bi.Horizontal?16:8}px;
|
|
582
|
-
`,
|
|
582
|
+
`,D$=({direction:i=bi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===O$.S?Wa.XXS:Wa.XS,u=Kt(()=>s.every(e=>l[e.id]),[s,l]),p=Kt(()=>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(I$,{$direction:i,children:[n&&a?t(k$,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Ya,{size:c,children:n}):null,s.map(e=>t(k$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},_$=n.div`
|
|
583
583
|
position: relative;
|
|
584
584
|
display: flex;
|
|
585
585
|
flex-direction: column;
|
|
586
586
|
gap: 4px;
|
|
587
|
-
`,
|
|
587
|
+
`,R$=n.div`
|
|
588
588
|
position: fixed;
|
|
589
589
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
590
590
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -602,7 +602,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
602
602
|
border-radius: 6px;
|
|
603
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
604
604
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
605
|
-
`,
|
|
605
|
+
`,L$=n.div`
|
|
606
606
|
display: flex;
|
|
607
607
|
flex-direction: column;
|
|
608
608
|
gap: 0;
|
|
@@ -610,7 +610,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
610
610
|
width: 100%;
|
|
611
611
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
612
612
|
overflow-y: auto;
|
|
613
|
-
`,
|
|
613
|
+
`,P$=n.div`
|
|
614
614
|
display: flex;
|
|
615
615
|
align-items: center;
|
|
616
616
|
gap: 8px;
|
|
@@ -626,19 +626,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
626
626
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
627
627
|
}
|
|
628
628
|
`}
|
|
629
|
-
`,
|
|
629
|
+
`,U$=n.div`
|
|
630
630
|
display: flex;
|
|
631
631
|
align-items: center;
|
|
632
632
|
gap: 8px;
|
|
633
633
|
flex: 1;
|
|
634
634
|
min-width: 0;
|
|
635
|
-
`,
|
|
635
|
+
`,M$=n.div`
|
|
636
636
|
flex: 0 1 auto;
|
|
637
637
|
min-width: 0;
|
|
638
638
|
overflow: hidden;
|
|
639
639
|
text-overflow: ellipsis;
|
|
640
640
|
white-space: nowrap;
|
|
641
|
-
`,
|
|
641
|
+
`,F$=n.span`
|
|
642
642
|
flex-shrink: 0;
|
|
643
643
|
width: 88px;
|
|
644
644
|
display: inline-flex;
|
|
@@ -647,26 +647,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
647
647
|
border-radius: 4px;
|
|
648
648
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
649
649
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
650
|
-
`,
|
|
650
|
+
`,z$=n.div`
|
|
651
651
|
flex-shrink: 0;
|
|
652
652
|
display: inline-flex;
|
|
653
653
|
align-items: center;
|
|
654
654
|
gap: 4px;
|
|
655
|
-
`,
|
|
655
|
+
`,B$=({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:b,isLoading:y,emptyMessage:v,children:$})=>{const w=o(),S=!!f||!!b||!!$,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=Iv({defaultOpen:i??!S,open:n,onOpenChange:r,alignX:a,alignY:s,withOffset:S,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[k,I]=Xt(""),D=Kt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:_,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(_$,{ref:T,onMouseDown:N,children:[u&&t(E$,{label:u}),f&&t(bv,{...L,fullWidth:g,rightIcon:x?Et:Tt,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(bv,{variant:gv.Text,size:mv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Et:Tt,handleClick:O}):$,x&&ti(e(R$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t($$,{value:k,onChange:I,width:"100%"}),y?t(Gl,{withSpinner:!0,title:"Loading...",titleSize:Wa.XS}):D.length?t(L$,{$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(P$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(k$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(F$,{children:t(Ya,{size:Wa.XXS,nowrap:!0,color:Xa.Secondary,children:s})}),e(U$,{children:[t(M$,{children:t(Ya,{size:Wa.XS,nowrap:!0,color:i.color||Xa.Primary,children:r})}),l&&e(z$,{children:[t(He,{size:12,fill:w.v2.colors.silver[200]}),t(Ya,{size:Wa.XS,nowrap:!0,color:Xa.Secondary,children:l})]})]})]},n)})}):t(_l,{$padding:"6px 0",children:t(S$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!D.length&&t(bv,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var j$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(j$||(j$={}));const H$=({onAnyClick:e,actions:i})=>t(Rl,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case j$.Button:return t(bv,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case j$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(B$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case j$.PopupButton:return t(Jv,{buttonProps:{label:"Open",variant:gv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),W$=n(Rl)`
|
|
656
656
|
min-width: 0;
|
|
657
|
-
`,
|
|
657
|
+
`,X$=n.div`
|
|
658
658
|
display: flex;
|
|
659
659
|
flex-shrink: 0;
|
|
660
660
|
align-items: center;
|
|
661
661
|
justify-content: center;
|
|
662
662
|
padding: 8px;
|
|
663
663
|
border-radius: 8px;
|
|
664
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
665
|
-
`,
|
|
664
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+n$["004"]};
|
|
665
|
+
`,G$=n(Ll)`
|
|
666
666
|
flex: 1;
|
|
667
667
|
min-width: 0;
|
|
668
668
|
overflow: hidden;
|
|
669
|
-
`,
|
|
669
|
+
`,V$=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=Wa.S,titleColor:a=Xa.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Wa.XXS,subTitleColor:u=Xa.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=yv();return e(W$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(X$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(G$,{$gap:b,children:[r||m?e(Rl,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Ya,{size:o,color:a,nowrap:!s,children:r}),l&&t(Ya,{size:Wa.XXXS,color:Xa.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(hv,{text:h,withIcon:!0}),m&&t(Vv,{...m})]}):null,d&&t(Ya,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(Rl,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},K$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Yt(null),a=!!r.maxLines&&r.maxLines>0,s=Tv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(hv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Ya,{ref:o,...r,children:e})})},Y$=n.section`
|
|
670
670
|
display: flex;
|
|
671
671
|
flex-direction: column;
|
|
672
672
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -694,41 +694,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
694
694
|
${({$overflow:e})=>e&&r`
|
|
695
695
|
overflow: ${e};
|
|
696
696
|
`}
|
|
697
|
-
`,
|
|
697
|
+
`,J$=n(Rl)`
|
|
698
698
|
width: 100%;
|
|
699
699
|
min-width: 0;
|
|
700
700
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
701
701
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
702
|
-
`,
|
|
702
|
+
`,q$=n(Rl)`
|
|
703
703
|
flex-shrink: 0;
|
|
704
|
-
`,
|
|
704
|
+
`,Q$=n.div`
|
|
705
705
|
display: flex;
|
|
706
706
|
align-items: flex-start;
|
|
707
707
|
flex-wrap: wrap;
|
|
708
708
|
width: 100%;
|
|
709
|
-
`,
|
|
709
|
+
`,Z$=n.div`
|
|
710
710
|
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
711
711
|
margin: 8px;
|
|
712
712
|
display: flex;
|
|
713
713
|
flex-direction: column;
|
|
714
714
|
gap: 4px;
|
|
715
715
|
min-width: 0;
|
|
716
|
-
`,
|
|
716
|
+
`,ew=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=yv(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,button:u,badge:p,tag:h}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(Z$,{$cellsPerRow:n,children:[!!a&&t(hv,{text:s,children:t(K$,{size:Wa.XXXS,color:Xa.Secondary,nowrap:!0,children:a})}),e(Rl,{$gap:4,children:[p&&t(Vv,{...p}),h&&t(Xv,{...h}),u&&t(bv,{variant:gv.Primary,size:mv.S,...u}),c&&t(r,{value:l||p?.label?.toString()||h?.label?.toString()||""}),l&&t(hv,{text:d,children:t(K$,{size:Wa.XS,nowrap:!0,children:l})})]})]})},tw=({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:b,clickStylesRemainActive:y=!1})=>{const[v,$]=Xt(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(Y$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(J$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(V$,{...s}):t("div",{}),e(q$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(H$,{actions:u}),E&&t(Rl,{$gap:8,children:c.map((e,t)=>qt(Vv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(Rl,{$gap:2,children:[C&&t(B$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(bv,{variant:gv.Text,size:mv.S,leftIcon:v?Et:Tt,onClick:w})]})]})]}),S&&m?t(Q$,{children:m.map(e=>t(ew,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var iw;(e=>{e.S="small",e.M="medium"})(iw||(iw={}));const nw=n(Rl)`
|
|
717
717
|
flex: 1;
|
|
718
718
|
min-width: 0;
|
|
719
719
|
align-items: center;
|
|
720
|
-
`,
|
|
720
|
+
`,rw=n.div`
|
|
721
721
|
flex-shrink: 1;
|
|
722
722
|
min-width: 0;
|
|
723
723
|
/* Clip static rich titles for ellipsis; leave custom titles unclipped so
|
|
724
724
|
dropdowns/popovers (e.g. DataStreamSelect) can escape the header row. */
|
|
725
725
|
overflow: ${({$clip:e})=>e?"hidden":"visible"};
|
|
726
|
-
`,
|
|
726
|
+
`,ow=n.div`
|
|
727
727
|
display: flex;
|
|
728
728
|
flex-direction: column;
|
|
729
729
|
gap: 12px;
|
|
730
730
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
731
|
-
`,
|
|
731
|
+
`,aw=n.div`
|
|
732
732
|
display: flex;
|
|
733
733
|
flex-direction: column;
|
|
734
734
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -739,7 +739,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
739
739
|
border-radius: 16px;
|
|
740
740
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
|
|
741
741
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
742
|
-
`,
|
|
742
|
+
`,sw=Ht(({id:i,size:n=iw.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===iw.S?4:16,b="number"==typeof h?h:n===iw.S?12:16,y=a??(o?t(V$,{...o}):null),v=l??(s?t($$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(aw,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(Rl,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(nw,{$gap:f,children:[y?t(rw,{$clip:!a,children:y}):null,v,d]}):null,w&&t(H$,{actions:c??[]})]}):null,t(ow,{$fullHeight:r,children:u})]})});sw.displayName="SectionCard";const lw=n.div`
|
|
743
743
|
flex: 1;
|
|
744
744
|
align-self: stretch;
|
|
745
745
|
display: flex;
|
|
@@ -748,7 +748,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
748
748
|
padding: 16px;
|
|
749
749
|
border-radius: 12px;
|
|
750
750
|
background-color: ${({theme:e,$status:t})=>ul(e,t,t===Ai.Unknown?"750":"500")};
|
|
751
|
-
`,
|
|
751
|
+
`,dw=n.div`
|
|
752
752
|
display: flex;
|
|
753
753
|
align-items: center;
|
|
754
754
|
justify-content: center;
|
|
@@ -756,8 +756,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
756
756
|
height: fit-content;
|
|
757
757
|
padding: 8px;
|
|
758
758
|
border-radius: 12px;
|
|
759
|
-
background-color: ${({theme:e,$status:t})=>t===Ai.Unknown?ul(e,t,"800"):ul(e,t,"900")+
|
|
760
|
-
`,
|
|
759
|
+
background-color: ${({theme:e,$status:t})=>t===Ai.Unknown?ul(e,t,"800"):ul(e,t,"900")+n$["015"]};
|
|
760
|
+
`,cw=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Vl(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(lw,{$status:i,children:[t(dw,{$status:i,children:t(l,{size:32,fill:d})}),e(Ll,{$gap:2,$justifyContent:"center",children:[t(Ya,{size:Wa.M,weight:500,color:d,nowrap:!0,children:r}),t(Ya,{size:Wa.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},uw=n.div`
|
|
761
761
|
flex: 0.5;
|
|
762
762
|
display: flex;
|
|
763
763
|
flex-direction: column;
|
|
@@ -765,7 +765,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
765
765
|
padding: 12px;
|
|
766
766
|
border-radius: 12px;
|
|
767
767
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
768
|
-
`,
|
|
768
|
+
`,pw=["-","N/A","undefined","null","undefined/undefined","null/null"],hw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(uw,{$bgTint:a,children:[t(hv,{text:n,children:t(Ya,{nowrap:!0,size:Wa.XXS,color:s.v2.colors.grey[150],children:i})}),t(Rl,{$gap:32,children:r.map((n,r)=>e(Ll,{$gap:2,children:[!n.isLoading||n.value&&!pw.includes(n.value)?t(Ya,{nowrap:!0,size:n.label?Wa.M:Wa.L,children:n.value}):t(Gl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Ya,{nowrap:!0,size:Wa.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},gw=n.div`
|
|
769
769
|
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
770
770
|
|
|
771
771
|
display: flex;
|
|
@@ -795,25 +795,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
795
795
|
outline-offset: 1px;
|
|
796
796
|
}
|
|
797
797
|
`}
|
|
798
|
-
`,
|
|
798
|
+
`,mw=n.div`
|
|
799
799
|
flex: 1;
|
|
800
800
|
min-width: 0;
|
|
801
801
|
display: flex;
|
|
802
802
|
align-items: center;
|
|
803
803
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
804
|
-
`,
|
|
804
|
+
`,fw=n.span`
|
|
805
805
|
flex-shrink: 0;
|
|
806
806
|
width: 1px;
|
|
807
807
|
align-self: stretch;
|
|
808
808
|
background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
|
|
809
|
-
`,
|
|
809
|
+
`,bw=n.span`
|
|
810
810
|
flex-shrink: 0;
|
|
811
811
|
display: flex;
|
|
812
812
|
align-items: center;
|
|
813
813
|
justify-content: flex-start;
|
|
814
814
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
815
815
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
816
|
-
`,
|
|
816
|
+
`,yw=n.input`
|
|
817
817
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
818
818
|
width: ${({$width:e})=>e||"unset"};
|
|
819
819
|
|
|
@@ -851,12 +851,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
851
851
|
pointer-events: none;
|
|
852
852
|
user-select: none;
|
|
853
853
|
}
|
|
854
|
-
`,
|
|
854
|
+
`,vw=n.div`
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
857
857
|
justify-content: center;
|
|
858
858
|
cursor: ${({$notClickable:e})=>e?"default":"pointer"};
|
|
859
|
-
|
|
859
|
+
`,$w=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,leftIconClick:d,rightIcon:c,rightIconClick:u,suffix:p,hasError:h,hideFocusOutline:g=!1,errorMessage:m,warnMessage:f,helpMessage:b,type:y=Ni.Text,name:v,value:$,onChange:w,disabled:S,maxWidth:x,width:C,small:E=!1,onClick:T,...O})=>{const N=o(),A=y===Ni.Password,k=y===Ni.Number||y===Ni.Decimal,[I,D]=Xt(!1),[_,R]=Xt(null),L=e=>{e.stopPropagation();const t=e.target.value;if(y===Ni.Number||y===Ni.Decimal){const i=y===Ni.Number?yd(t):bd(t),n=null!=O.min?Number(O.min):void 0,r=null!=O.max?Number(O.max):void 0,o=y===Ni.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,R(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)}w?.(e)},P=e=>{["Enter"].includes(e.key)||e.stopPropagation()},U=h||!!m||!!_,M=$?N.v2.colors.white[500]:S?N.v2.colors.grey[400]:N.v2.colors.silver[200],F=E?14:18,z=Yt(null),B=Tv(z,{deps:[$]}),j=O.readOnly&&B&&null!=$&&""!==$?String($):"",H=!!p&&!A;return e(Ll,{$width:C,$gap:E?2:6,children:[t(E$,{label:n,tooltip:a,required:r,badge:s,small:E}),t(gw,{$small:E,$disabled:S,$readOnly:!!O.readOnly,$error:U,$clickable:!!T&&!S,$hasSuffix:H,$hideFocusOutline:g,onClick:S?void 0:e=>{S||(O.readOnly||z.current?.focus(),T?.(e))},children:H?e(i,{children:[t(mw,{$small:E,children:t(hv,{text:j,fullWidth:!0,keepAlive:!0,children:t(yw,{"data-id":v,type:k?Ni.Text:y,name:v,value:$,onChange:L,onKeyDown:P,disabled:S,$maxWidth:x,$width:"100%",$small:E,$tabular:k,...O,ref:z})})}),t(fw,{$disabled:S,$error:U}),t(bw,{$small:E,"aria-hidden":"true",children:t(Ya,{size:Wa.XXXS,color:S?Xa.Disable:Xa.Secondary,nowrap:!0,children:p})})]}):e(hv,{text:j,fullWidth:!0,keepAlive:!0,children:[l?t(vw,{$notClickable:!d,onClick:d,children:t(l,{size:F,fill:M})}):null,t(yw,{"data-id":v,type:I||k?Ni.Text:y,name:v,value:$,onChange:L,onKeyDown:P,disabled:S,$maxWidth:x,$width:C,$small:E,$tabular:k,...O,ref:z}),A?t(vw,{onClick:()=>D(e=>!e),children:t(I?Nt:At,{size:F,fill:M})}):c?t(vw,{$notClickable:!u,onClick:u,children:t(c,{size:F,fill:M})}):null]})}),t(T$,{errorMessage:_||m,warnMessage:f,helpMessage:b})]})},ww=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Xt(""),[c,u]=Xt(!1),p=Kt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Kt(()=>{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=Kt(()=>{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=Vt(()=>{d(""),u(!0)},[]),b=Vt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Vt(e=>{u(e),e||d("")},[]),v=Vt(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]),$=c&&(o||m.length>0||l.length>0);return t(B$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:kv.Bottom,children:t($w,{name:i,leftIcon:xt,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},Sw=n.button`
|
|
860
860
|
width: 100%;
|
|
861
861
|
padding: 0;
|
|
862
862
|
padding-right: 12px;
|
|
@@ -877,7 +877,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
877
877
|
cursor: not-allowed;
|
|
878
878
|
opacity: 0.5;
|
|
879
879
|
}
|
|
880
|
-
`,
|
|
880
|
+
`,xw=n.div`
|
|
881
881
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
882
882
|
height: 56px;
|
|
883
883
|
display: flex;
|
|
@@ -888,28 +888,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
888
888
|
`:r`
|
|
889
889
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
890
890
|
`}
|
|
891
|
-
`,
|
|
891
|
+
`,Cw=n.div`
|
|
892
892
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
893
893
|
display: flex;
|
|
894
894
|
justify-content: space-between;
|
|
895
895
|
align-items: center;
|
|
896
896
|
gap: 8px;
|
|
897
|
-
`,
|
|
897
|
+
`,Ew=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Xt(!1);return e(Sw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(xw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(Cw,{$hasIcon:!!n,children:[r?t(Gl,{withGradient:!0,titleSize:Wa.S}):t(Ya,{variant:Ha.Span,align:"center",children:i}),t(kt,{rotate:90,size:24})]})]})},Tw=({buttons:e})=>t(Ll,{$gap:12,children:e.map((e,i)=>t(Ew,{...e},`${e.label}-${i}`))}),Ow=[1,.75,.5,.25,0],Nw=n.div`
|
|
898
898
|
display: flex;
|
|
899
899
|
flex-direction: column;
|
|
900
900
|
gap: 32px;
|
|
901
901
|
width: 100%;
|
|
902
902
|
min-width: 0;
|
|
903
|
-
`,
|
|
903
|
+
`,Aw=n(Rl)`
|
|
904
904
|
align-items: center;
|
|
905
905
|
gap: 4px;
|
|
906
|
-
`,
|
|
906
|
+
`,kw=n.div`
|
|
907
907
|
display: flex;
|
|
908
908
|
align-items: flex-start;
|
|
909
909
|
gap: 4px;
|
|
910
910
|
width: 100%;
|
|
911
911
|
min-width: 0;
|
|
912
|
-
`,
|
|
912
|
+
`,Iw=n.div`
|
|
913
913
|
display: flex;
|
|
914
914
|
flex-direction: column;
|
|
915
915
|
justify-content: space-between;
|
|
@@ -917,19 +917,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
917
917
|
flex-shrink: 0;
|
|
918
918
|
height: ${({$plotHeight:e})=>e}px;
|
|
919
919
|
padding-bottom: 0;
|
|
920
|
-
`,
|
|
920
|
+
`,Dw=n.div`
|
|
921
921
|
display: flex;
|
|
922
922
|
flex-direction: column;
|
|
923
923
|
flex: 1;
|
|
924
924
|
min-width: 0;
|
|
925
|
-
`,
|
|
925
|
+
`,_w=n.div`
|
|
926
926
|
position: relative;
|
|
927
927
|
display: flex;
|
|
928
928
|
align-items: flex-end;
|
|
929
929
|
width: 100%;
|
|
930
930
|
height: ${({$height:e})=>e}px;
|
|
931
931
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
932
|
-
`,
|
|
932
|
+
`,Rw=n.div`
|
|
933
933
|
position: absolute;
|
|
934
934
|
inset: 0;
|
|
935
935
|
display: flex;
|
|
@@ -937,11 +937,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
937
937
|
justify-content: space-between;
|
|
938
938
|
pointer-events: none;
|
|
939
939
|
z-index: 0;
|
|
940
|
-
`,
|
|
940
|
+
`,Lw=n.div`
|
|
941
941
|
width: 100%;
|
|
942
942
|
height: 0;
|
|
943
943
|
border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
944
|
-
`,
|
|
944
|
+
`,Pw=n.div`
|
|
945
945
|
position: relative;
|
|
946
946
|
z-index: 1;
|
|
947
947
|
display: flex;
|
|
@@ -949,7 +949,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
949
949
|
width: 100%;
|
|
950
950
|
height: 100%;
|
|
951
951
|
padding: 0 8px;
|
|
952
|
-
`,
|
|
952
|
+
`,Uw=n.div`
|
|
953
953
|
display: flex;
|
|
954
954
|
flex: 1;
|
|
955
955
|
align-items: flex-end;
|
|
@@ -966,63 +966,63 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
966
966
|
height: 100%;
|
|
967
967
|
max-width: 124px;
|
|
968
968
|
}
|
|
969
|
-
`,
|
|
969
|
+
`,Mw=n.div`
|
|
970
970
|
width: 100%;
|
|
971
971
|
height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
|
|
972
972
|
border-radius: 6px 6px 0 0;
|
|
973
973
|
background-color: ${({$color:e})=>e};
|
|
974
974
|
min-height: ${({$pct:e})=>e>0?"2px":"0"};
|
|
975
|
-
`,
|
|
975
|
+
`,Fw=n.div`
|
|
976
976
|
display: flex;
|
|
977
977
|
flex-direction: column;
|
|
978
978
|
gap: 4px;
|
|
979
979
|
width: 100%;
|
|
980
980
|
height: ${29}px;
|
|
981
981
|
padding: 0 8px;
|
|
982
|
-
`,
|
|
982
|
+
`,zw=n.div`
|
|
983
983
|
display: flex;
|
|
984
984
|
height: 8px;
|
|
985
985
|
width: 100%;
|
|
986
|
-
`,
|
|
986
|
+
`,Bw=n.div`
|
|
987
987
|
display: flex;
|
|
988
988
|
flex: 1;
|
|
989
989
|
align-items: center;
|
|
990
990
|
justify-content: center;
|
|
991
991
|
min-width: 0;
|
|
992
|
-
`,
|
|
992
|
+
`,jw=n.div`
|
|
993
993
|
width: 0;
|
|
994
994
|
height: 100%;
|
|
995
995
|
border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
996
|
-
`,
|
|
996
|
+
`,Hw=n.div`
|
|
997
997
|
display: flex;
|
|
998
998
|
width: 100%;
|
|
999
999
|
height: 17px;
|
|
1000
|
-
`,
|
|
1000
|
+
`,Ww=n.div`
|
|
1001
1001
|
display: flex;
|
|
1002
1002
|
flex: 1;
|
|
1003
1003
|
align-items: center;
|
|
1004
1004
|
justify-content: center;
|
|
1005
1005
|
min-width: 0;
|
|
1006
1006
|
overflow: hidden;
|
|
1007
|
-
`,
|
|
1007
|
+
`,Xw=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Kt(()=>[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=Kt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Kt(()=>Ow.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(Nw,{children:[!!i&&e(Aw,{children:[t(Ya,{size:Wa.S,weight:500,children:i}),!!n&&t(hv,{text:n,withIcon:!0})]}),e(kw,{children:[t(Iw,{$plotHeight:a,children:c.map((e,i)=>t(Ya,{size:Wa.XXS,color:Xa.Primary,nowrap:!0,children:e},Ow[i]))}),e(Dw,{children:[e(_w,{$height:a,children:[t(Rw,{children:Ow.map(e=>t(Lw,{},e))}),t(Pw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Uw,{children:t(hv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Mw,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Fw,{children:[t(zw,{children:r.map((e,i)=>t(Bw,{children:t(jw,{})},`tick-${e.label}-${i}`))}),t(Hw,{children:r.map((e,i)=>t(Ww,{children:t(Ya,{size:Wa.XXS,color:Xa.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Gw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Gw||(Gw={}));const Vw=n.div`
|
|
1008
1008
|
display: flex;
|
|
1009
1009
|
align-items: flex-end;
|
|
1010
1010
|
justify-content: space-between;
|
|
1011
1011
|
gap: 24px;
|
|
1012
1012
|
width: fit-content;
|
|
1013
|
-
`,
|
|
1013
|
+
`,Kw=n.div`
|
|
1014
1014
|
position: relative;
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
flex-direction: column;
|
|
1017
1017
|
align-items: center;
|
|
1018
1018
|
width: ${({$width:e})=>e??150}px;
|
|
1019
1019
|
flex-shrink: 0;
|
|
1020
|
-
`,
|
|
1020
|
+
`,Yw=n.svg`
|
|
1021
1021
|
display: block;
|
|
1022
1022
|
width: 100%;
|
|
1023
1023
|
height: auto;
|
|
1024
1024
|
overflow: visible;
|
|
1025
|
-
`,
|
|
1025
|
+
`,Jw=n(Ll)`
|
|
1026
1026
|
position: absolute;
|
|
1027
1027
|
left: 0;
|
|
1028
1028
|
right: 0;
|
|
@@ -1030,14 +1030,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1030
1030
|
align-items: center;
|
|
1031
1031
|
gap: 2px;
|
|
1032
1032
|
pointer-events: none;
|
|
1033
|
-
`,
|
|
1033
|
+
`,qw=n.span`
|
|
1034
1034
|
display: inline-block;
|
|
1035
1035
|
flex-shrink: 0;
|
|
1036
1036
|
width: 9px;
|
|
1037
1037
|
height: 9px;
|
|
1038
1038
|
border-radius: 50%;
|
|
1039
1039
|
background-color: ${({$color:e})=>e};
|
|
1040
|
-
`,
|
|
1040
|
+
`,Qw=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:""}},Zw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},eS=(e,t,i,n,r)=>{const o=Zw(e,t,i,n),a=Zw(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}`},tS=({variant:i=Gw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Qw(a),{number:g}=Qw(s),{number:m,prefix:f,suffix:b}=Qw(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,w=v>0?eS(60,60,55,180,$):null,S=v<1?eS(60,60,55,$,0):null,x=Zw(60,60,55,180),C=Zw(60,60,55,0),E=c??(i===Gw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Gw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Xt(null),A=e=>`${f}${e}${b}`,k=i===Gw.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",D="primary"===O?A(m):"secondary"===O?A(k):"",_=()=>N("primary"),R=()=>N("secondary"),L=()=>N(null);var P;return e(Vw,{children:[e(Kw,{$width:n,children:[t(hv,{keepAlive:!0,fullWidth:!0,title:I,text:D,children:e(Yw,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[w&&t("path",{d:w,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(Jw,{children:[t(Ya,{size:Wa.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Ya,{size:Wa.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Ll,{$gap:7,children:[e(Rl,{$gap:8,$alignItems:"center",children:[t(qw,{$color:E}),t(Ya,{size:Wa.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(Rl,{$gap:8,$alignItems:"center",children:[t(qw,{$color:T}),t(Ya,{size:Wa.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},iS=n(Rl)`
|
|
1041
1041
|
width: 100%;
|
|
1042
1042
|
padding: 8px 12px;
|
|
1043
1043
|
border-radius: 6px;
|
|
@@ -1046,26 +1046,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1046
1046
|
align-items: center;
|
|
1047
1047
|
justify-content: space-between;
|
|
1048
1048
|
gap: 12px;
|
|
1049
|
-
`,
|
|
1049
|
+
`,nS=n.div`
|
|
1050
1050
|
position: relative;
|
|
1051
1051
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1052
1052
|
display: flex;
|
|
1053
1053
|
align-items: center;
|
|
1054
1054
|
gap: 4px;
|
|
1055
|
-
`,
|
|
1055
|
+
`,rS=n.pre`
|
|
1056
1056
|
flex: 1;
|
|
1057
1057
|
margin: 0;
|
|
1058
1058
|
padding: 0;
|
|
1059
1059
|
font-size: 12px;
|
|
1060
1060
|
color: #5ffb98; // TODO: add to theme
|
|
1061
1061
|
overflow-x: auto;
|
|
1062
|
-
`,
|
|
1062
|
+
`,oS=n.span`
|
|
1063
1063
|
flex-shrink: 0;
|
|
1064
1064
|
font-size: 14px;
|
|
1065
1065
|
color: #5ffb98; // TODO: add to theme
|
|
1066
|
-
`,
|
|
1066
|
+
`,aS=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=yv({onDone:a}),l=Yt(null),[d,c]=Xt(!1);return Gt(()=>{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(Ll,{$gap:4,children:[n&&t(Ya,{size:Wa.XXXS,color:Xa.Secondary,children:n}),e(iS,{$bgTint:i,children:[e(nS,{$hideCopy:o,children:[t(rS,{ref:l,children:r}),d&&t(oS,{children:"..."})]}),!o&&t(s,{value:r})]})]})},sS=n(Rl)`
|
|
1067
1067
|
gap: 0;
|
|
1068
|
-
`,
|
|
1068
|
+
`,lS=n.button`
|
|
1069
1069
|
padding: 4px 8px;
|
|
1070
1070
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
1071
1071
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -1077,20 +1077,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1077
1077
|
&:hover {
|
|
1078
1078
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1079
1079
|
}
|
|
1080
|
-
`,
|
|
1080
|
+
`,dS=({isPrettyMode:i,setIsPrettyMode:n})=>e(sS,{children:[t(lS,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(It,{})}),t(lS,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t($t,{})})]}),cS=n.table`
|
|
1081
1081
|
border-collapse: collapse;
|
|
1082
1082
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1083
|
-
`,
|
|
1083
|
+
`,uS=n.tbody``,pS=n.tr`
|
|
1084
1084
|
td:first-child {
|
|
1085
1085
|
padding-left: 0 !important;
|
|
1086
1086
|
}
|
|
1087
1087
|
td:last-child {
|
|
1088
1088
|
padding-right: 0 !important;
|
|
1089
1089
|
}
|
|
1090
|
-
`,
|
|
1090
|
+
`,hS=n.td`
|
|
1091
1091
|
vertical-align: top;
|
|
1092
1092
|
padding: 4px 6px;
|
|
1093
|
-
`,
|
|
1093
|
+
`,gS=n.span`
|
|
1094
1094
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
1095
1095
|
overflow-wrap: break-word;
|
|
1096
1096
|
word-break: break-word;
|
|
@@ -1098,7 +1098,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1098
1098
|
/* Fallback for older browsers */
|
|
1099
1099
|
-ms-word-break: break-all;
|
|
1100
1100
|
font-size: 12px;
|
|
1101
|
-
`,
|
|
1101
|
+
`,mS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ni[n]:s?ni.palenight:ni.vsLight;let d="";if("json"===e){const e=cs(i,{}),t=Fd(e);d=zd(r?Is(t):t)}else d=i;return a&&"json"===e?t(fS,{darkMode:s,str:d}):t(ii,{theme:l||(s?ni.palenight:ni.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(gS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},fS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(pS,{...i,children:[t(hS,{}),t(hS,{})]}));return t(Wt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(ii,{theme:i?ni.palenight:ni.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(cS,{children:t(uS,{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(Wt,{children:[a(2,s),e(pS,{...d,children:[t(hS,{children:t(Ya,{nowrap:!0,children:l[0].content})}),t(hS,{})]})]},`line-${s}`):2===l.length?t(pS,{...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(hv,{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=Vl(o,i);return e||(e=Vl(Ai.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(hS,{children:e(Rl,{children:[t(Rl,{children:l}),t(gS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},bS=n.div`
|
|
1102
1102
|
display: flex;
|
|
1103
1103
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1104
1104
|
gap: 8px;
|
|
@@ -1114,7 +1114,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1114
1114
|
background-color: ${t?"transparent":i};
|
|
1115
1115
|
}
|
|
1116
1116
|
`}
|
|
1117
|
-
`,
|
|
1117
|
+
`,yS=n.div`
|
|
1118
1118
|
display: flex;
|
|
1119
1119
|
align-items: center;
|
|
1120
1120
|
justify-content: center;
|
|
@@ -1133,54 +1133,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1133
1133
|
transform: scale(1.2);
|
|
1134
1134
|
}
|
|
1135
1135
|
`}
|
|
1136
|
-
`,
|
|
1136
|
+
`,vS=n(Ll)`
|
|
1137
1137
|
flex: 1;
|
|
1138
1138
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1139
1139
|
min-width: 0;
|
|
1140
|
-
|
|
1140
|
+
`,$S=n(Ll)`
|
|
1141
1141
|
align-self: stretch;
|
|
1142
1142
|
flex-shrink: 0;
|
|
1143
|
-
`,
|
|
1143
|
+
`,wS=n.div`
|
|
1144
1144
|
display: flex;
|
|
1145
1145
|
align-items: center;
|
|
1146
1146
|
justify-content: center;
|
|
1147
1147
|
flex-shrink: 0;
|
|
1148
1148
|
width: 24px;
|
|
1149
1149
|
height: 24px;
|
|
1150
|
-
`,
|
|
1150
|
+
`,SS=({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:b=!1})=>{const y=o(),v=Vl(i,y),$=p?u?Et:Tt:void 0,w=i===Ai.Unknown,S=i===Ai.Disabled,x=i===Ai.Loading||d,C=[Ai.Error,Ai.Warning,Ai.Success].includes(i),E=ul(y,i,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:C?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?E:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":ul(y,i,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:E,k=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:ul(y,i,"600");return e(bS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(yS,{$backgroundColor:N,$slim:b,children:x?t(Gl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(vS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(Rl,{$gap:10,$alignItems:"center",children:[t(Ya,{size:b?Wa.XS:Wa.S,weight:500,color:O,children:n}),l&&t(Vv,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Wa.XXXS})]}),r&&t(Ya,{size:Wa.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e($S,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(Rl,{$gap:8,children:c.map(e=>t(bv,{...e,variant:gv.Secondary,size:mv.S},e["data-id"]??e.label))}),s]}),$&&t(wS,{children:t($,{size:24,fill:T})})]})},xS=n.div`
|
|
1151
1151
|
display: flex;
|
|
1152
1152
|
flex-direction: column;
|
|
1153
1153
|
width: 100%;
|
|
1154
1154
|
border-radius: 12px;
|
|
1155
1155
|
overflow: hidden;
|
|
1156
|
-
`,
|
|
1156
|
+
`,CS=n.div`
|
|
1157
1157
|
display: flex;
|
|
1158
1158
|
flex-direction: column;
|
|
1159
1159
|
gap: 8px;
|
|
1160
1160
|
padding: 8px 12px 16px 12px;
|
|
1161
1161
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1162
|
-
`,
|
|
1162
|
+
`,ES=n.div`
|
|
1163
1163
|
display: flex;
|
|
1164
1164
|
align-items: center;
|
|
1165
1165
|
gap: 8px;
|
|
1166
|
-
`,
|
|
1166
|
+
`,TS=n.div`
|
|
1167
1167
|
display: flex;
|
|
1168
1168
|
align-items: center;
|
|
1169
1169
|
justify-content: center;
|
|
1170
1170
|
flex-shrink: 0;
|
|
1171
1171
|
width: 18px;
|
|
1172
1172
|
height: 18px;
|
|
1173
|
-
`,
|
|
1173
|
+
`,OS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Xt(!1),d=Vt(()=>l(e=>!e),[]),c=Kt(()=>hd(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Kt(()=>Us(c),[c]);Gt(()=>{l(p||g||m)},[p,g,m]);const b=Kt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Kt(()=>p?Ai.Error:g?Ai.Warning:m?Ai.Info:Ai.Success,[p,g,m]),v=Kt(()=>n||(1===c.length?ja(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:b}),[n,c,p,g,m,b]),$=Kt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Kt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(xS,{children:[t(SS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,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:Vl(d,a),u=i===Ai.Error?ul(a,Ai.Error,"500"):i===Ai.Warning?ul(a,Ai.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(ES,{children:[t(TS,{children:l||!c?t(Gl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Ya,{size:Wa.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},NS=n.div`
|
|
1174
1174
|
width: ${({$orientation:e,$thickness:t,$length:i})=>e===bi.Vertical?`${t}px`:i||"100%"};
|
|
1175
1175
|
height: ${({$orientation:e,$thickness:t,$length:i})=>e===bi.Horizontal?`${t}px`:i||"100%"};
|
|
1176
1176
|
margin: ${({$orientation:e,$margin:t})=>t||(e===bi.Horizontal?"8px 0":"0 8px")};
|
|
1177
1177
|
background-color: ${({$type:e,theme:t})=>e?ul(t,e):t.v2.colors.silver[500]};
|
|
1178
1178
|
opacity: ${({$opacity:e})=>e||1};
|
|
1179
|
-
`,
|
|
1179
|
+
`,AS=({orientation:e=bi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(NS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var kS,IS,DS;(e=>{e.Default="default",e.SuccessError="successError"})(kS||(kS={})),(e=>{e.S="small",e.L="large"})(IS||(IS={})),(e=>{e.Left="left",e.Right="right"})(DS||(DS={}));const _S=n.div`
|
|
1180
1180
|
display: flex;
|
|
1181
1181
|
align-items: center;
|
|
1182
1182
|
gap: ${({$gap:e})=>e}px;
|
|
1183
|
-
`,
|
|
1183
|
+
`,RS=n.div`
|
|
1184
1184
|
position: relative;
|
|
1185
1185
|
display: flex;
|
|
1186
1186
|
align-items: center;
|
|
@@ -1191,11 +1191,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1191
1191
|
height: ${({$size:e})=>e}px;
|
|
1192
1192
|
padding: ${4}px;
|
|
1193
1193
|
border-radius: ${({$size:e})=>2*e}px;
|
|
1194
|
-
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
|
|
1194
|
+
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 kS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case kS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1195
1195
|
|
|
1196
1196
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1197
1197
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1198
|
-
`,
|
|
1198
|
+
`,LS=n.div`
|
|
1199
1199
|
position: absolute;
|
|
1200
1200
|
top: 50%;
|
|
1201
1201
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1205,11 +1205,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1205
1205
|
border-radius: 100%;
|
|
1206
1206
|
background-color: ${({$color:e})=>e};
|
|
1207
1207
|
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)"};
|
|
1208
|
-
`,
|
|
1208
|
+
`,PS=({variant:n=kS.Default,size:r=IS.L,name:a,label:s,labelAlign:l=DS.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=wt,offIcon:b=Dt,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=r===IS.S?10:16,T=d||x.v2.colors.silver[200],O=r===IS.S?Wa.XXXS:Wa.XS,N=r===IS.S?8:12;return e(Ll,{$gap:4,children:[e(Rl,{$justifyContent:"space-between",children:[e(_S,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===DS.Left&&t(Ya,{color:T,size:O,nowrap:!0,children:s}),e(RS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(LS,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(i,{children:[t(f,{size:E,fill:C}),t(b,{size:E,fill:C})]})]}),s&&l===DS.Right&&t(Ya,{color:T,size:O,nowrap:!0,children:s})]}),t(E$,{tooltip:c,badge:u})]}),t(T$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},US=n.div`
|
|
1209
1209
|
display: flex;
|
|
1210
1210
|
flex-direction: ${({$direction:e})=>e===bi.Horizontal?"row":"column"};
|
|
1211
1211
|
gap: ${({$direction:e})=>e===bi.Horizontal?16:8}px;
|
|
1212
|
-
`,
|
|
1212
|
+
`,MS=({direction:i=bi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===IS.S?Wa.XS:Wa.S;return e(US,{$direction:i,children:[n&&t(Ya,{size:d,children:n}),a.map(e=>t(PS,{...e,labelAlign:DS.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 FS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(FS||(FS={}));const zS=n.div`
|
|
1213
1213
|
width: ${({$size:e})=>1.5*e}px;
|
|
1214
1214
|
height: ${({$size:e})=>1.5*e}px;
|
|
1215
1215
|
display: flex;
|
|
@@ -1220,13 +1220,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1220
1220
|
&:hover {
|
|
1221
1221
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1222
1222
|
}
|
|
1223
|
-
`,
|
|
1223
|
+
`,BS=({"data-id":e,icon:i,size:n=FS.S,onClick:r,disabled:o})=>t(zS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),jS=n.div`
|
|
1224
1224
|
display: flex;
|
|
1225
1225
|
align-items: center;
|
|
1226
1226
|
justify-content: space-between;
|
|
1227
1227
|
width: 100%;
|
|
1228
1228
|
overflow: hidden;
|
|
1229
|
-
`,
|
|
1229
|
+
`,HS=n.div`
|
|
1230
1230
|
display: flex;
|
|
1231
1231
|
align-items: center;
|
|
1232
1232
|
gap: 16px;
|
|
@@ -1234,7 +1234,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1234
1234
|
min-width: 0;
|
|
1235
1235
|
flex: 1;
|
|
1236
1236
|
overflow: hidden;
|
|
1237
|
-
`,
|
|
1237
|
+
`,WS=n.div`
|
|
1238
1238
|
display: flex;
|
|
1239
1239
|
align-items: center;
|
|
1240
1240
|
justify-content: center;
|
|
@@ -1243,23 +1243,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1243
1243
|
height: 36px;
|
|
1244
1244
|
border-radius: 8px;
|
|
1245
1245
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1246
|
-
`,
|
|
1246
|
+
`,XS=n.img`
|
|
1247
1247
|
width: 24px;
|
|
1248
1248
|
height: 24px;
|
|
1249
|
-
`,
|
|
1249
|
+
`,GS=n.div`
|
|
1250
1250
|
display: flex;
|
|
1251
1251
|
align-items: center;
|
|
1252
1252
|
gap: 16px;
|
|
1253
1253
|
flex-shrink: 0;
|
|
1254
|
-
`,
|
|
1254
|
+
`,VS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(jS,{children:[e(HS,{children:[i?t(WS,{children:t(i,{size:24})}):n?t(WS,{children:t(XS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Ll,{$gap:6,children:[(r||o?.length)&&e(Rl,{$gap:16,children:[r&&t(Ya,{size:Wa.S,weight:500,children:r}),o?.length&&t(Rl,{$gap:4,children:o?.map((e,i)=>t(Vv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(Rl,{$gap:16,children:[a&&t(Ya,{color:Xa.Secondary,size:Wa.XXS,children:a}),s?.length&&t(Rl,{$gap:4,children:s?.map((e,i)=>t(Xv,{...e},`${e.label}-${i}`))})]})]})]}),e(GS,{children:[l&&t(PS,{...l}),d?.length?t(B$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},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(BS,{"data-id":"drawer-close",icon:Dt,size:FS.M,onClick:c,disabled:u})]})]}),KS=n.div`
|
|
1255
1255
|
position: relative;
|
|
1256
1256
|
&.animated {
|
|
1257
1257
|
overflow: hidden;
|
|
1258
1258
|
padding-bottom: 1px;
|
|
1259
1259
|
border-radius: 8px;
|
|
1260
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1260
|
+
animation: ${({$isLeaving:e})=>e?o$.out.bottom:o$.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1261
1261
|
}
|
|
1262
|
-
`,
|
|
1262
|
+
`,YS=n.div`
|
|
1263
1263
|
position: absolute;
|
|
1264
1264
|
bottom: -1px;
|
|
1265
1265
|
left: 0;
|
|
@@ -1268,8 +1268,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1268
1268
|
height: 100%;
|
|
1269
1269
|
border-radius: 8px;
|
|
1270
1270
|
background-color: ${({theme:e,$status:t})=>ul(e,t,t===Ai.Default?"300":t===Ai.Info?"400":"500")};
|
|
1271
|
-
animation: ${
|
|
1272
|
-
`,
|
|
1271
|
+
animation: ${a$.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1272
|
+
`,JS=n.div`
|
|
1273
1273
|
display: flex;
|
|
1274
1274
|
align-items: center;
|
|
1275
1275
|
gap: 10px;
|
|
@@ -1279,7 +1279,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1279
1279
|
padding: 8px 12px 8px 8px;
|
|
1280
1280
|
border-radius: 8px;
|
|
1281
1281
|
background-color: ${({theme:e,$status:t})=>ul(e,t,[Ai.Info,Ai.Warning].includes(t)?"1000":"900")};
|
|
1282
|
-
`,
|
|
1282
|
+
`,qS=n.div`
|
|
1283
1283
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1284
1284
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1285
1285
|
display: flex;
|
|
@@ -1287,28 +1287,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1287
1287
|
justify-content: center;
|
|
1288
1288
|
border-radius: 6px;
|
|
1289
1289
|
background-color: ${({theme:e,$status:t})=>ul(e,t,[Ai.Info].includes(t)?"900":"800")};
|
|
1290
|
-
`,
|
|
1290
|
+
`,QS=n.div`
|
|
1291
1291
|
margin-left: auto;
|
|
1292
1292
|
display: flex;
|
|
1293
1293
|
align-items: center;
|
|
1294
1294
|
gap: 4px;
|
|
1295
|
-
`,
|
|
1295
|
+
`,ZS=n.div`
|
|
1296
1296
|
margin-right: 8px;
|
|
1297
1297
|
cursor: pointer;
|
|
1298
1298
|
&:hover {
|
|
1299
1299
|
transform: scale(1.2);
|
|
1300
1300
|
}
|
|
1301
|
-
`,
|
|
1301
|
+
`,ex=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Vl(i,p),g=ul(p,i,i===Ai.Default?"300":i===Ai.Info?"400":"500"),[m,f]=Xt(!1),b=Yt(null),y=Yt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Gt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(KS,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(b.current&&clearTimeout(b.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;b.current=setTimeout(()=>w({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(JS,{$status:i,$fullWidth:a,children:[t("div",{children:t(qS,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Ya,{color:g,size:Wa.XXXS,weight:400,children:n}),(r||d)&&e(QS,{children:[r&&t(ZS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Ya,{color:g,size:Wa.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(BS,{"data-id":"note-close",icon:Dt,size:FS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(YS,{ref:y,$status:i,$duration:c})]})},tx=n.div`
|
|
1302
1302
|
display: flex;
|
|
1303
1303
|
align-items: center;
|
|
1304
1304
|
gap: 8px;
|
|
1305
1305
|
padding: 4px 12px;
|
|
1306
|
-
`,
|
|
1306
|
+
`,ix=n.div`
|
|
1307
1307
|
flex: 1;
|
|
1308
|
-
`,
|
|
1308
|
+
`,nx=n.div`
|
|
1309
1309
|
min-width: 150px;
|
|
1310
1310
|
width: fit-content;
|
|
1311
|
-
`,
|
|
1311
|
+
`,rx=({note:i,actions:n,children:r})=>r?t(tx,{children:r}):e(tx,{children:[i&&t(ex,{...i}),t(ix,{}),n?.map((e,i)=>t(nx,{children:t(bv,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),ox=n.div`
|
|
1312
1312
|
position: fixed;
|
|
1313
1313
|
top: 0;
|
|
1314
1314
|
bottom: 0;
|
|
@@ -1328,16 +1328,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1328
1328
|
overflow: hidden;
|
|
1329
1329
|
|
|
1330
1330
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1331
|
-
animation-name: ${
|
|
1331
|
+
animation-name: ${o$.in[t]};
|
|
1332
1332
|
`}
|
|
1333
|
-
`,
|
|
1333
|
+
`,ax=n.div`
|
|
1334
1334
|
display: flex;
|
|
1335
1335
|
flex-direction: column;
|
|
1336
1336
|
gap: 12px;
|
|
1337
1337
|
|
|
1338
1338
|
height: calc(100% - ${56}px);
|
|
1339
1339
|
overflow-y: auto;
|
|
1340
|
-
`,
|
|
1340
|
+
`,sx=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(tv(n),n?ti(e(i,{children:[!r&&t(Ml,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(ox,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(VS,{...d}),t(ax,{children:u}),c&&t(rx,{...c})]})]}),document.body):null),lx=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Kt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Kt(()=>s.map(e=>e.label).join(", "),[s]);return t(B$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:Av.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t($w,{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})})},dx=({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(bv,{variant:gv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},cx=({children:e})=>t(ri,{FallbackComponent:({error:e,...i})=>t(i$,{children:t(dx,{...i,error:e})}),children:e}),ux=n.div`
|
|
1341
1341
|
position: fixed;
|
|
1342
1342
|
inset: 0;
|
|
1343
1343
|
z-index: ${({theme:e})=>e.v2.zIndex.fullscreen};
|
|
@@ -1345,12 +1345,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1345
1345
|
flex-direction: column;
|
|
1346
1346
|
padding: 16px;
|
|
1347
1347
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1348
|
-
`,
|
|
1348
|
+
`,px=n.div`
|
|
1349
1349
|
width: 100%;
|
|
1350
1350
|
height: ${({$height:e})=>e};
|
|
1351
|
-
`,
|
|
1351
|
+
`,hx=({isFullscreen:n,spacerHeight:r,children:o})=>{return n?e(i,{children:[null!=r&&t(px,{$height:(a=r,"number"==typeof a?`${a}px`:a)}),ti(t(ux,{children:o}),document.body)]}):t(i,{children:o});var a},gx=n.div`
|
|
1352
1352
|
/* Positioning is supplied by the caller via className/style when needed. */
|
|
1353
|
-
`,
|
|
1353
|
+
`,mx=({isFullscreen:e,onToggle:i,style:n,className:r})=>t(gx,{className:r,style:n,children:t(bv,{variant:gv.Secondary,size:mv.S,iconSize:24,leftIcon:e?Dt:_t,tooltip:e?"Exit fullscreen (Esc)":"Fullscreen",hideTooltipIcon:!0,onClick:i})}),fx=n.header`
|
|
1354
1354
|
position: relative;
|
|
1355
1355
|
width: 100%;
|
|
1356
1356
|
padding: 12px 18px;
|
|
@@ -1358,12 +1358,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1358
1358
|
display: flex;
|
|
1359
1359
|
align-items: center;
|
|
1360
1360
|
justify-content: space-between;
|
|
1361
|
-
`,
|
|
1361
|
+
`,bx=n(Rl)`
|
|
1362
1362
|
position: absolute;
|
|
1363
1363
|
left: 50%;
|
|
1364
1364
|
transform: translateX(-50%);
|
|
1365
1365
|
gap: 16px;
|
|
1366
|
-
`,
|
|
1366
|
+
`,yx=({left:i=[],center:n=[],right:r=[]})=>e(fx,{children:[t(Rl,{$gap:16,children:i}),t(bx,{children:n}),t(Rl,{$gap:16,children:r})]}),vx=n.div`
|
|
1367
1367
|
display: flex;
|
|
1368
1368
|
align-items: center;
|
|
1369
1369
|
gap: 4px;
|
|
@@ -1379,7 +1379,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1379
1379
|
left: ${({$left:e})=>e||"unset"};
|
|
1380
1380
|
top: 50%;
|
|
1381
1381
|
transform: translateY(-50%);
|
|
1382
|
-
|
|
1382
|
+
`,$x=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(vx,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(hv,{text:i||"",children:t(bv,{...n,variant:n.variant||gv.Secondary,size:mv.S})},n.id)})}):null,wx=n.div`
|
|
1383
1383
|
display: flex;
|
|
1384
1384
|
align-items: center;
|
|
1385
1385
|
justify-content: center;
|
|
@@ -1388,14 +1388,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1388
1388
|
aspect-ratio: 1 / 1;
|
|
1389
1389
|
border-radius: 8px;
|
|
1390
1390
|
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?ul(e,i,i===Ai.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1391
|
-
`,
|
|
1391
|
+
`,Sx=({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=rl(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(wx,{$size:s,$padding:l,$status:a,children:e(Ll,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Rl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(Rl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Ya,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(wx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},xx=n.div`
|
|
1392
1392
|
position: relative;
|
|
1393
1393
|
display: flex;
|
|
1394
1394
|
align-items: center;
|
|
1395
1395
|
justify-content: center;
|
|
1396
1396
|
width: 12px;
|
|
1397
1397
|
height: 12px;
|
|
1398
|
-
`,
|
|
1398
|
+
`,Cx=n.div`
|
|
1399
1399
|
position: absolute;
|
|
1400
1400
|
width: 6px;
|
|
1401
1401
|
height: 6px;
|
|
@@ -1408,9 +1408,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1408
1408
|
inset: 0;
|
|
1409
1409
|
border-radius: 100%;
|
|
1410
1410
|
background-color: ${({theme:e,$color:t=e.v2.colors.purple[500]})=>t};
|
|
1411
|
-
animation: ${
|
|
1411
|
+
animation: ${s$} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1412
1412
|
}
|
|
1413
|
-
`,
|
|
1413
|
+
`,Ex=({color:e,tooltip:i})=>{const n=o(),r=e||n.v2.colors.purple[500];return t(hv,{text:i??void 0,children:t(xx,{children:t(Cx,{$color:r})})})},Tx=30,Ox=n.div`
|
|
1414
1414
|
display: flex;
|
|
1415
1415
|
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1416
1416
|
gap: 8px;
|
|
@@ -1421,46 +1421,46 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1421
1421
|
&:hover {
|
|
1422
1422
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1423
1423
|
}
|
|
1424
|
-
|
|
1424
|
+
`,Nx=n.div`
|
|
1425
1425
|
display: flex;
|
|
1426
1426
|
align-items: center;
|
|
1427
1427
|
gap: 4px;
|
|
1428
1428
|
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1429
1429
|
min-width: 0;
|
|
1430
|
-
`,
|
|
1430
|
+
`,Ax=n(Ya)`
|
|
1431
1431
|
min-width: 0;
|
|
1432
|
-
`,
|
|
1432
|
+
`,kx=n(Ya)`
|
|
1433
1433
|
flex: 1 1 auto;
|
|
1434
1434
|
min-width: 0;
|
|
1435
|
-
`,
|
|
1435
|
+
`,Ix=n(Rl)`
|
|
1436
1436
|
flex: 1 1 auto;
|
|
1437
1437
|
justify-content: flex-end;
|
|
1438
1438
|
min-width: 0;
|
|
1439
|
-
`,
|
|
1439
|
+
`,Dx=({label:i,value:n,labelPingColor:r,labelPingTooltip:o,isStandardLibrary:a,healthy:s,message:l})=>{const d="boolean"==typeof s;return e(Ox,{$withHealthBadge:d,children:[e(Nx,{$withHealthBadge:d,children:[r||o?t(Ex,{color:r,tooltip:o}):null,t(Ax,{size:Wa.XXS,color:Xa.Secondary,children:i})]}),n?t(kx,{size:Wa.XXS,color:Xa.Primary,align:"right",children:n}):null,(a||d)&&e(Ix,{children:[a?t(Vv,{status:Ai.Info,label:is.STANDARD,textSize:Wa.XXXS,invertColors:!0}):null,d?e(Rl,{$gap:4,children:[l?t(kx,{size:Wa.XXXS,color:Xa.Error,align:"right",children:l}):null,t(Vv,{status:s?Ai.Success:Ai.Error,label:s?is.HEALTHY:is.NOT_HEALTHY,leftIcon:te,textSize:Wa.XXXS,invertColors:!0,tooltip:l??void 0})]}):null]})]})},_x=n.div`
|
|
1440
1440
|
width: 100%;
|
|
1441
1441
|
border-radius: 8px;
|
|
1442
1442
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1443
1443
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1444
|
-
`,
|
|
1444
|
+
`,Rx=({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 b=o(),y=i.length<=1,v=g,$=g||y&&v,w=i.length?i:[""];return t(_x,{$plain:f,children:e(Ll,{"data-id":r,$gap:6,children:[t(E$,{label:a,tooltip:s,required:d,badge:l}),t(Ll,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(Rl,{$gap:8,$alignItems:"center",children:[t($w,{width:"100%",autoFocus:m&&ad(r)&&!y&&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(bv,{leftIcon:Rt,variant:gv.Secondary,size:mv.S,disabled:v,onClick:()=>(()=>{const e=i.length?Ss(i):[Ss("")];e.push(""),n(e)})()}),t(bv,{leftIcon:$?Lt:()=>t(Lt,{fill:b.v2.colors.red[500]}),variant:gv.Secondary,size:mv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(T$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var Lx;(e=>{e.S="small",e.L="large"})(Lx||(Lx={}));const Px=n.div`
|
|
1445
1445
|
width: fit-content;
|
|
1446
1446
|
display: flex;
|
|
1447
1447
|
align-items: center;
|
|
1448
1448
|
gap: 8px;
|
|
1449
1449
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1450
|
-
`,
|
|
1451
|
-
width: ${({$size:e})=>e===
|
|
1452
|
-
height: ${({$size:e})=>e===
|
|
1450
|
+
`,Ux=n.div`
|
|
1451
|
+
width: ${({$size:e})=>e===Lx.S?"16px":"20px"};
|
|
1452
|
+
height: ${({$size:e})=>e===Lx.S?"16px":"20px"};
|
|
1453
1453
|
display: flex;
|
|
1454
1454
|
align-items: center;
|
|
1455
1455
|
justify-content: center;
|
|
1456
1456
|
border-radius: 100%;
|
|
1457
1457
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1458
1458
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1459
|
-
`,
|
|
1459
|
+
`,Mx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=Lx.L})=>{const d=o(),[c,u]=Xt(!1),p=r,h=l===Lx.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(Px,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Ux,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Pt,{size:h,fill:g}):null}),n&&t(Ya,{size:l===Lx.S?Wa.XXS:Wa.XS,children:n})]})},Fx=n.div`
|
|
1460
1460
|
display: flex;
|
|
1461
1461
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1462
1462
|
gap: ${({$gap:e})=>e}px;
|
|
1463
|
-
`,
|
|
1463
|
+
`,zx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(Fx,{$flexDirection:n===bi.Horizontal?"row":"column",$gap:n===bi.Horizontal?16:8,children:[i&&t(Ya,{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:b,renderCondition:y,helpMessage:v,min:$,max:w}=i,S=r[p];if(y&&!y(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((b||[]).map(t=>[t.id,t.id===e]));return t(zx,{direction:bi.Horizontal,options:(b||[]).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 Oi.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,i=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=b?.filter(e=>i.includes(e.id)).map(e=>e.id)||[];return t(lx,{name:p,label:x,placeholder:C,options:b||[],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&&ad(S),c=t($w,{name:p,label:x,placeholder:C,autoFocus:r,type:g,min:$,max:w,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(Rl,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(bv,{variant:gv.Secondary,size:mv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},jx=n.div`
|
|
1464
1464
|
width: 100%;
|
|
1465
1465
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1466
1466
|
border-radius: 8px;
|
|
@@ -1468,28 +1468,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1468
1468
|
display: flex;
|
|
1469
1469
|
flex-direction: column;
|
|
1470
1470
|
gap: 8px;
|
|
1471
|
-
`,
|
|
1471
|
+
`,Hx=n.div`
|
|
1472
1472
|
flex: 1;
|
|
1473
1473
|
min-width: 0;
|
|
1474
|
-
`,
|
|
1474
|
+
`,Wx=n.div`
|
|
1475
1475
|
padding-top: 24px;
|
|
1476
|
-
`,
|
|
1476
|
+
`,Xx=({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,b=m?.options??[],y=e=>{const t={};return i.forEach(({keyName:e,defaultValue:i})=>t[e]=i??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],w=(f?$[0]?.[f]:"")||v,S=(e,t,i)=>{r($.map((n,r)=>r===e?{...n,[t]:i}:n))},x=()=>r([...$,y(w)]),C=b.find(e=>e.id===w);return e(Ll,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(E$,{label:s,tooltip:l,required:d}),m&&t(b$,{"data-id":`${a}-mode`,size:u$.S,fullWidth:!0,options:b.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:w,setSelected:e=>!c&&(e=>r([y(e)]))(String(e))}),e(Ll,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:w}:n,d=i.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),b=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})(b,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e(jx,{"data-id":`${a}-card-${o}`,children:[e(Rl,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Ll,{$gap:10,children:[T&&t(E$,{label:T}),m.map(e=>t(Rl,{$gap:24,children:(e.options??[]).map(i=>t(Mx,{size:Lx.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(Rl,{$gap:4,$alignItems:"center",children:[v&&t(bv,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:gv.Secondary,size:mv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(bv,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Lt:()=>t(Lt,{fill:g.v2.colors.red[500]}),variant:gv.Secondary,size:mv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(bv,{"data-id":`${a}-card-${o}-add`,leftIcon:Rt,variant:gv.Secondary,size:mv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(Rl,{$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(Wt,{children:["arrow"===i.separator&&r>0&&t(Wx,{children:t(Ut,{size:24,fill:g.v2.colors.silver[200]})}),t(Hx,{children:t($w,{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(T$,{errorMessage:u})]})]})},Gx=n.div`
|
|
1477
1477
|
width: 100%;
|
|
1478
1478
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1479
1479
|
border-radius: 8px;
|
|
1480
1480
|
padding: 4px 8px;
|
|
1481
|
-
`,
|
|
1481
|
+
`,Vx=n.table`
|
|
1482
1482
|
width: 100%;
|
|
1483
1483
|
border-collapse: separate;
|
|
1484
1484
|
border-spacing: 0 8px;
|
|
1485
|
-
`,
|
|
1485
|
+
`,Kx=n.td`
|
|
1486
1486
|
padding: 0 8px 0 0;
|
|
1487
1487
|
vertical-align: top;
|
|
1488
|
-
`,
|
|
1488
|
+
`,Yx=n.td`
|
|
1489
1489
|
width: 72px;
|
|
1490
1490
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1491
1491
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1492
|
-
`,
|
|
1492
|
+
`,Jx=({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 b=o(),y=Kt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?Ss(n):[Ss(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(Gx,{children:e(Ll,{"data-id":a,$gap:0,children:[t(E$,{label:s,tooltip:l,required:c,badge:d}),t(Vx,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.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(Wt,{children:[l.length>1&&a>0?t("tr",{children:t(Kx,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],w=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(Kx,{colSpan:s>1?s:void 0,children:e(Ll,{$gap:6,children:[m&&(i.label?t(E$,{label:i.label,tooltip:i.tooltip}):t(E$,{label:"\\u00A0"})),t(Bx,{col:i,colIdx:n,row:o,rowIdx:a,rowsLength:$.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Yx,{$topOffset:w,$center:h,children:e(Rl,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(bv,{leftIcon:Rt,variant:gv.Secondary,size:mv.S,disabled:u,onClick:()=>(()=>{const e=n.length?Ss(n):[Ss(y)],t=Ss(y),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]=Ss(o[e.keyName]))}),e.push(t),r(e)})()}),t(bv,{leftIcon:u?Lt:()=>t(Lt,{fill:b.v2.colors.red[500]}),variant:gv.Secondary,size:mv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push(Ss(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(T$,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var qx;(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"})(qx||(qx={}));const Qx=n.div`
|
|
1493
1493
|
display: flex;
|
|
1494
1494
|
align-items: center;
|
|
1495
1495
|
justify-content: space-between;
|
|
@@ -1497,38 +1497,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1497
1497
|
|
|
1498
1498
|
padding: 18px 16px;
|
|
1499
1499
|
border-radius: 18px;
|
|
1500
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1500
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+n$["095"]};
|
|
1501
1501
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1502
1502
|
|
|
1503
1503
|
position: fixed;
|
|
1504
1504
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1505
1505
|
|
|
1506
|
-
${({$position:e})=>{switch(e){case
|
|
1506
|
+
${({$position:e})=>{switch(e){case qx.BottomCenter:return r`
|
|
1507
1507
|
bottom: 0;
|
|
1508
1508
|
left: 50%;
|
|
1509
|
-
animation-name: ${
|
|
1510
|
-
`;case
|
|
1509
|
+
animation-name: ${o$.in.center};
|
|
1510
|
+
`;case qx.BottomRight:return r`
|
|
1511
1511
|
bottom: 0;
|
|
1512
1512
|
right: 0;
|
|
1513
|
-
animation-name: ${
|
|
1514
|
-
`;case
|
|
1513
|
+
animation-name: ${o$.in.right};
|
|
1514
|
+
`;case qx.BottomLeft:return r`
|
|
1515
1515
|
bottom: 0;
|
|
1516
1516
|
left: 0;
|
|
1517
|
-
animation-name: ${
|
|
1518
|
-
`;case
|
|
1517
|
+
animation-name: ${o$.in.left};
|
|
1518
|
+
`;case qx.TopCenter:return r`
|
|
1519
1519
|
top: 0;
|
|
1520
1520
|
left: 50%;
|
|
1521
|
-
animation-name: ${
|
|
1522
|
-
`;case
|
|
1521
|
+
animation-name: ${o$.in.center};
|
|
1522
|
+
`;case qx.TopRight:return r`
|
|
1523
1523
|
top: 0;
|
|
1524
1524
|
right: 0;
|
|
1525
|
-
animation-name: ${
|
|
1526
|
-
`;case
|
|
1525
|
+
animation-name: ${o$.in.right};
|
|
1526
|
+
`;case qx.TopLeft:return r`
|
|
1527
1527
|
top: 0;
|
|
1528
1528
|
left: 0;
|
|
1529
|
-
animation-name: ${
|
|
1529
|
+
animation-name: ${o$.in.left};
|
|
1530
1530
|
`;default:return null}}}
|
|
1531
|
-
`,
|
|
1531
|
+
`,Zx=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=qx.BottomCenter})=>i?e(Qx,{$position:a,children:[r&&t(V$,{...r}),t(H$,{onAnyClick:n,actions:o})]}):null,eC=n.div`
|
|
1532
1532
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1533
1533
|
top: 50%;
|
|
1534
1534
|
left: 50%;
|
|
@@ -1549,7 +1549,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1549
1549
|
will-change: transform;
|
|
1550
1550
|
contain: layout paint;
|
|
1551
1551
|
|
|
1552
|
-
animation-name: ${({$closing:e})=>e?
|
|
1552
|
+
animation-name: ${({$closing:e})=>e?o$.out.center:o$.in.center};
|
|
1553
1553
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1554
1554
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1555
1555
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1558,9 +1558,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1558
1558
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1559
1559
|
don't compete with the slide-out. */
|
|
1560
1560
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1561
|
-
`,
|
|
1561
|
+
`,tC=n(Ml)`
|
|
1562
1562
|
will-change: opacity;
|
|
1563
|
-
animation-name: ${({$closing:e})=>e?
|
|
1563
|
+
animation-name: ${({$closing:e})=>e?d$.out:d$.in};
|
|
1564
1564
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1565
1565
|
|
|
1566
1566
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1568,18 +1568,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1568
1568
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1569
1569
|
because the overlay is fading to 0. */
|
|
1570
1570
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1571
|
-
`,
|
|
1571
|
+
`,iC=n.div`
|
|
1572
1572
|
position: relative;
|
|
1573
|
-
`,
|
|
1573
|
+
`,nC=n.div`
|
|
1574
1574
|
position: absolute;
|
|
1575
1575
|
top: 16px;
|
|
1576
1576
|
left: 16px;
|
|
1577
|
-
`,
|
|
1577
|
+
`,rC=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Xt(n),[p,h]=Xt(!1);if(Gt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),tv(c),!c)return null;const g=e(i,{children:[!r&&t(tC,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(eC,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(iC,{children:[a&&t(nC,{children:t(BS,{icon:e=>t(kt,{rotate:-90,...e}),size:FS.L,onClick:a})}),d]})})]});return o?g:ti(g,document.body)},oC=n.div`
|
|
1578
1578
|
position: relative;
|
|
1579
1579
|
width: ${64}px;
|
|
1580
1580
|
height: ${({$height:e})=>e};
|
|
1581
1581
|
flex-shrink: 0;
|
|
1582
|
-
`,
|
|
1582
|
+
`,aC=n.aside`
|
|
1583
1583
|
position: absolute;
|
|
1584
1584
|
top: 0;
|
|
1585
1585
|
left: 0;
|
|
@@ -1599,7 +1599,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1599
1599
|
transition:
|
|
1600
1600
|
width 200ms ease,
|
|
1601
1601
|
padding 200ms ease;
|
|
1602
|
-
`,
|
|
1602
|
+
`,sC=n.button`
|
|
1603
1603
|
display: flex;
|
|
1604
1604
|
align-items: center;
|
|
1605
1605
|
width: 100%;
|
|
@@ -1619,20 +1619,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1619
1619
|
&:active {
|
|
1620
1620
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1621
1621
|
}
|
|
1622
|
-
`,
|
|
1622
|
+
`,lC=n.div`
|
|
1623
1623
|
width: ${40}px;
|
|
1624
1624
|
height: ${40}px;
|
|
1625
1625
|
display: flex;
|
|
1626
1626
|
align-items: center;
|
|
1627
1627
|
justify-content: center;
|
|
1628
1628
|
flex-shrink: 0;
|
|
1629
|
-
`,
|
|
1629
|
+
`,dC=n.div`
|
|
1630
1630
|
flex: 1 1 0;
|
|
1631
1631
|
min-width: 0;
|
|
1632
1632
|
overflow: hidden;
|
|
1633
1633
|
padding-right: 12px;
|
|
1634
1634
|
pointer-events: none;
|
|
1635
|
-
`,
|
|
1635
|
+
`,cC=({height:i,icons:n})=>{const r=o(),[a,s]=Xt(!1);return t(oC,{$height:i,children:t(aC,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(sC,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(lC,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(dC,{children:t(Ya,{size:Wa.S,weight:500,color:Xa.Primary,nowrap:!0,children:n})})]},i))})})},uC=n.div`
|
|
1636
1636
|
display: flex;
|
|
1637
1637
|
flex-direction: column;
|
|
1638
1638
|
gap: 16px;
|
|
@@ -1656,26 +1656,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1656
1656
|
}
|
|
1657
1657
|
`}
|
|
1658
1658
|
`}
|
|
1659
|
-
`,
|
|
1659
|
+
`,pC=n.div`
|
|
1660
1660
|
display: flex;
|
|
1661
1661
|
align-items: center;
|
|
1662
1662
|
gap: 16px;
|
|
1663
1663
|
width: 100%;
|
|
1664
|
-
`,
|
|
1664
|
+
`,hC=n.div`
|
|
1665
1665
|
display: flex;
|
|
1666
1666
|
flex-direction: column;
|
|
1667
1667
|
gap: 4px;
|
|
1668
1668
|
flex: 1;
|
|
1669
1669
|
min-width: 0;
|
|
1670
|
-
`,
|
|
1670
|
+
`,gC=n.div`
|
|
1671
1671
|
display: flex;
|
|
1672
1672
|
align-items: center;
|
|
1673
1673
|
gap: 8px;
|
|
1674
1674
|
flex-wrap: wrap;
|
|
1675
1675
|
min-width: 0;
|
|
1676
|
-
`,
|
|
1676
|
+
`,mC=n.div`
|
|
1677
1677
|
width: 100%;
|
|
1678
|
-
`,
|
|
1678
|
+
`,fC=({"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(uC,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(pC,{children:[t(Mx,{"data-id":`${g}-radio`,value:c,onChange:m,size:Lx.L,disabled:p}),e(hC,{children:[e(gC,{children:[t(Ya,{size:Wa.S,weight:500,lineHeight:"24px",color:Xa.Primary,children:n}),r]}),a&&("string"==typeof a?t(Ya,{size:Wa.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Xa.Secondary,children:a}):a)]}),s]}),l&&t(mC,{onClick:e=>e.stopPropagation(),children:l}),d&&t(mC,{onClick:e=>e.stopPropagation(),children:d})]})},bC=n.div`
|
|
1679
1679
|
width: 100%;
|
|
1680
1680
|
height: 100%;
|
|
1681
1681
|
|
|
@@ -1683,7 +1683,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1683
1683
|
animation: none !important;
|
|
1684
1684
|
transition: none !important;
|
|
1685
1685
|
}
|
|
1686
|
-
`,
|
|
1686
|
+
`,yC=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Yt(null),c=Kt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Vt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Gt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(oi,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(bC,{children:p}):p},vC=[{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}],$C=vC[1].value,wC=vC[vC.length-1].value,SC=e=>({label:e?vC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Mt,variant:gv.Secondary,size:mv.S}),xC=n.input`
|
|
1687
1687
|
width: 100px;
|
|
1688
1688
|
padding: 2px 12px;
|
|
1689
1689
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1713,7 +1713,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1713
1713
|
opacity: 0.4;
|
|
1714
1714
|
}
|
|
1715
1715
|
`}
|
|
1716
|
-
`,
|
|
1716
|
+
`,CC=()=>(new Date).toISOString().split("T")[0],EC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},TC=({options:i=vC,maxAllowedValue:n=wC,defaultValue:r=$C,onApply:o,onClose:a})=>{const[s]=Xt(CC),[l,d]=Xt(r),[c,u]=Xt(()=>EC(s,r)),[p,h]=Xt(void 0),g=Kt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Kt(()=>i.map(({label:e,value:i})=>t(bv,{label:e,variant:gv.Text,size:mv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(EC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Ll,{$gap:24,children:[e(Ll,{children:[m,t(AS,{}),e(Ll,{$gap:12,$padding:"0 12px",children:[t(Ya,{size:Wa.XXS,color:Xa.Secondary,nowrap:!0,children:"Custom range"}),e(Rl,{$gap:18,$justifyContent:"space-between",children:[t(Ya,{size:Wa.XXS,nowrap:!0,children:"From"}),t(xC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(Rl,{$gap:18,$justifyContent:"space-between",children:[t(Ya,{size:Wa.XXS,nowrap:!0,children:"To"}),t(xC,{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(T$,{errorMessage:p}),e(Ya,{size:Wa.XXXS,color:Xa.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(bv,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},OC=n.div`
|
|
1717
1717
|
display: flex;
|
|
1718
1718
|
flex-direction: column;
|
|
1719
1719
|
gap: 16px;
|
|
@@ -1722,62 +1722,62 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1722
1722
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1723
1723
|
width: 100%;
|
|
1724
1724
|
height: 100%;
|
|
1725
|
-
|
|
1725
|
+
`,NC=n.div`
|
|
1726
1726
|
display: flex;
|
|
1727
1727
|
align-items: center;
|
|
1728
1728
|
gap: 16px;
|
|
1729
|
-
`,
|
|
1729
|
+
`,AC=n.div`
|
|
1730
1730
|
width: 50px;
|
|
1731
1731
|
height: 50px;
|
|
1732
1732
|
border-radius: 8px;
|
|
1733
1733
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1734
1734
|
background-size: 200% 100%;
|
|
1735
|
-
animation: ${
|
|
1736
|
-
`,
|
|
1735
|
+
animation: ${l$} 10s infinite linear;
|
|
1736
|
+
`,kC=n(Ll)`
|
|
1737
1737
|
flex: 1;
|
|
1738
1738
|
gap: 12px;
|
|
1739
|
-
`,
|
|
1739
|
+
`,IC=n.div`
|
|
1740
1740
|
width: ${({$width:e})=>e};
|
|
1741
1741
|
height: 16px;
|
|
1742
1742
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1743
1743
|
background-size: 200% 100%;
|
|
1744
|
-
animation: ${
|
|
1744
|
+
animation: ${l$} 1.5s infinite linear;
|
|
1745
1745
|
border-radius: 4px;
|
|
1746
|
-
`,
|
|
1746
|
+
`,DC=({size:i=5,maxWidth:n,maxHeight:r})=>t(OC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(NC,{children:[t(AC,{}),e(kC,{children:[t(IC,{$width:"80%"}),t(IC,{$width:"100%"})]})]},n))}),_C=({currentStep:i,data:n,gap:r=12})=>t(Ll,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(Rl,{$gap:8,children:[r||n.forceDoneBadge?t(Vv,{status:Ai.Success,label:"",leftIcon:wt}):t(Vv,{status:Ai.Default,label:n.step.toString()}),t(Ya,{size:o?Wa.M:Wa.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var RC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(RC||(RC={}));const LC=n.div`
|
|
1747
1747
|
${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow-x: auto;\n overflow-y: 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-x: auto;\n overflow-y: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n "}
|
|
1748
1748
|
width: 100%;
|
|
1749
1749
|
display: flex;
|
|
1750
1750
|
flex-direction: column;
|
|
1751
|
-
`,
|
|
1751
|
+
`,PC=n.div`
|
|
1752
1752
|
width: 100%;
|
|
1753
1753
|
flex: 1;
|
|
1754
1754
|
min-height: 0;
|
|
1755
1755
|
display: flex;
|
|
1756
1756
|
flex-direction: column;
|
|
1757
|
-
`,
|
|
1757
|
+
`,UC=n.div`
|
|
1758
1758
|
flex-shrink: 0;
|
|
1759
1759
|
position: relative;
|
|
1760
1760
|
z-index: 2;
|
|
1761
|
-
`,
|
|
1761
|
+
`,MC=n.div`
|
|
1762
1762
|
flex: 1;
|
|
1763
1763
|
min-height: 0;
|
|
1764
1764
|
overflow: hidden;
|
|
1765
|
-
`,
|
|
1765
|
+
`,FC=n.div`
|
|
1766
1766
|
position: relative;
|
|
1767
1767
|
display: flex;
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
min-width: 100%;
|
|
1770
|
-
`,
|
|
1770
|
+
`,zC=n.div`
|
|
1771
1771
|
display: flex;
|
|
1772
1772
|
flex-direction: column;
|
|
1773
1773
|
flex-shrink: 0;
|
|
1774
1774
|
width: 100%;
|
|
1775
1775
|
min-width: 100%;
|
|
1776
|
-
`,
|
|
1776
|
+
`,BC=n.div`
|
|
1777
1777
|
width: 100%;
|
|
1778
1778
|
flex-shrink: 0;
|
|
1779
1779
|
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1780
|
-
`,
|
|
1780
|
+
`,jC=n.div`
|
|
1781
1781
|
position: relative;
|
|
1782
1782
|
/* Measured columns: pin to content width. Last column omits max so it can
|
|
1783
1783
|
* stretch past the measured minimum (LAST_COLUMN_STRETCH). Flex (non-measured)
|
|
@@ -1798,15 +1798,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1798
1798
|
|
|
1799
1799
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1800
1800
|
background-color: ${t};
|
|
1801
|
-
`;switch(e){case
|
|
1801
|
+
`;switch(e){case RC.Data:return r`
|
|
1802
1802
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1803
|
-
`;case
|
|
1803
|
+
`;case RC.DataSecondary:return r`
|
|
1804
1804
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1805
1805
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1806
|
-
`;case
|
|
1806
|
+
`;case RC.Pretty:return r`
|
|
1807
1807
|
background-color: transparent;
|
|
1808
1808
|
`;default:return""}}}
|
|
1809
|
-
`,
|
|
1809
|
+
`,HC=n.div`
|
|
1810
1810
|
position: absolute;
|
|
1811
1811
|
top: 50%;
|
|
1812
1812
|
right: 0;
|
|
@@ -1814,7 +1814,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1814
1814
|
width: 1px;
|
|
1815
1815
|
height: 18px;
|
|
1816
1816
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1817
|
-
`,
|
|
1817
|
+
`,WC=n.div`
|
|
1818
1818
|
/* See Th — measured content width; last stretches; flex columns shrink. */
|
|
1819
1819
|
min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
|
|
1820
1820
|
max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
|
|
@@ -1836,20 +1836,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1836
1836
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1837
1837
|
box-sizing: border-box;
|
|
1838
1838
|
|
|
1839
|
-
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case
|
|
1839
|
+
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case RC.Data:return r`
|
|
1840
1840
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1841
1841
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1842
1842
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1843
|
-
`;case
|
|
1843
|
+
`;case RC.DataSecondary:return r`
|
|
1844
1844
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1845
1845
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1846
1846
|
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]};
|
|
1847
|
-
`;case
|
|
1847
|
+
`;case RC.Pretty:return r`
|
|
1848
1848
|
border: none;
|
|
1849
1849
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1850
1850
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1851
1851
|
`;default:return""}}}
|
|
1852
|
-
`,
|
|
1852
|
+
`,XC=n.div`
|
|
1853
1853
|
/* Off-screen — must not contribute to Container scrollWidth. */
|
|
1854
1854
|
position: fixed;
|
|
1855
1855
|
top: 0;
|
|
@@ -1862,24 +1862,24 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1862
1862
|
align-items: flex-start;
|
|
1863
1863
|
width: max-content;
|
|
1864
1864
|
white-space: nowrap;
|
|
1865
|
-
`,
|
|
1865
|
+
`,GC=n.div`
|
|
1866
1866
|
display: inline-flex;
|
|
1867
1867
|
align-items: center;
|
|
1868
1868
|
padding: 18px 24px;
|
|
1869
1869
|
border: 1px solid transparent;
|
|
1870
1870
|
box-sizing: border-box;
|
|
1871
1871
|
white-space: nowrap;
|
|
1872
|
-
`,
|
|
1872
|
+
`,VC=n.div`
|
|
1873
1873
|
display: inline-flex;
|
|
1874
1874
|
align-items: center;
|
|
1875
1875
|
gap: 4px;
|
|
1876
1876
|
white-space: nowrap;
|
|
1877
|
-
`,
|
|
1877
|
+
`,KC=n.div`
|
|
1878
1878
|
display: inline-flex;
|
|
1879
1879
|
align-items: center;
|
|
1880
1880
|
flex-shrink: 0;
|
|
1881
1881
|
gap: 4px;
|
|
1882
|
-
`,
|
|
1882
|
+
`,YC=n.div`
|
|
1883
1883
|
width: 100%;
|
|
1884
1884
|
height: 100%;
|
|
1885
1885
|
display: flex;
|
|
@@ -1888,7 +1888,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1888
1888
|
gap: 4px;
|
|
1889
1889
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1890
1890
|
min-width: 0;
|
|
1891
|
-
`,
|
|
1891
|
+
`,JC=({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:b})=>{const[y,v]=Xt(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),k=null!=N,I=k&&m===A,D=null!=g&&o.id===g,_=c(o),R=a===s-1,L=k||!!w,P=()=>{k&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:R&&!I,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:D,$withClick:L,onClick:P,$hovered:L&&y}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=_.length>0?t($x,{isOpen:y,actions:_,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(WC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(hv,{text:O,children:t(k$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(k$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),r.map(({key:i,textAlign:o},s)=>{const c=$.find(e=>e.key===i),u=0===s&&!h,p=s===r.length-1,g=0===s,m="right"===o?"flex-end":"center"===o?"center":"flex-start",f=l.has(i),b=c?.component?c.component():t(K$,{size:Wa.XXS,align:o,nowrap:!0,fullWidth:!f,children:c?.rawValue||"-"}),y=e(Rl,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,style:{minWidth:0},children:[k&&g?t(I?Tt:Ft,{}):null,b]});return t(WC,{$variant:n,$index:a,$autoWidth:l.has(i),$resolvedWidth:d[i],...U(u,p),children:y},`row-${a}-cell-${s}`)})]}),B={onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)};return k?e(zC,{"data-table-row-index":a,children:[e(FC,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(BC,{$maxHeight:b,children:M}),!R&&t(AS,{margin:"0"})]})]}):e(FC,{"data-table-row-index":a,...B,children:[z,F]})},qC=({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:b})=>{const y=Kt(()=>r.map((i,p)=>t(JC,{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:b},`row-${p}`)),[r,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(yC,{gap:e===RC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},QC=({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(bv,{variant:gv.Text,size:mv.S,leftIcon:()=>t(kt,{fill:s,rotate:l}),onClick:()=>r(e)})},ZC=({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=Kt(()=>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(B$,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(zt,{fill:l,...e})}})},eE=({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(jC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(k$,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,tooltip:f,noSort:b,noFilter:y,filterOverride:v,textAlign:$},w)=>{const S=0===w&&!h,x=w===r.length-1,C=f?t(Ya,{size:Wa.XS,align:$,nowrap:!0,children:m}):t(K$,{size:Wa.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(jC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(YC,{$textAlign:$,children:[f?t(hv,{text:f,children:C}):C,(!b||!y)&&e(KC,{children:[!b&&t(QC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(ZC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===RC.Data&&t(HC,{})]},`column-${g}`)})]}),tE=()=>{},iE={},nE=[],rE=e=>[],oE=({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:b,scrollSignal:y,expandedRowId:v,onExpandedRowIdChange:$})=>{const[w,S]=Xt(yi.Ascending),[x,C]=Xt(""),[E,T]=Xt({}),[O,N]=Xt(null),A=m??E,k=void 0!==v,I=k?v:O,D=Vt(e=>{C(e),S(e=>e===yi.Ascending?yi.Descending:yi.Ascending)},[]),_=Vt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),R=Kt(()=>{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(w===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(A)){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,w,A,d]),L=Kt(()=>null==b?-1:R.findIndex(e=>e.id===b),[R,b]),P=!!g&&R.some(e=>!e.hideCheckbox),{partiallySelected:U,allSelected:M}=Kt(()=>{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]),F=Kt(()=>{const e=new Set,t=d[d.length-1]?.key;for(const i of d)i.key!==t&&!1!==i.autoWidth&&e.add(i.key);return e},[d]),z=Yt(null),[B,j]=Xt({}),H=Kt(()=>{if(0===F.size)return[];const i=d[0]?.key,n=c.some(e=>null!=e.expandedContent);return d.filter(e=>F.has(e.key)).map(r=>{const o=[e(VC,{children:[t(Ya,{size:Wa.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(KC,{children:[!r.noSort&&t(QC,{columnKey:r.key,sortDirection:yi.Ascending,sortByKey:"",onSort:tE}),!r.noFilter&&t(ZC,{columnKey:r.key,filters:iE,onFilter:tE,rowsUnfiltered:nE,filterOverride:r.filterOverride})]})]},`mw-${r.key}-header`)],a=n&&r.key===i;return c.forEach((i,n)=>{const s=i.cells.find(e=>e.key===r.key);if(!s)return;const l=s.component?s.component():t(Ya,{size:Wa.XS,children:s.rawValue||"-"});o.push(a?e(Rl,{$gap:8,children:[t(Ft,{}),l]},`mw-${r.key}-${n}`):t(jt.Fragment,{children:l},`mw-${r.key}-${n}`))}),{key:r.key,nodes:o}})},[d,c,F]);Jt(()=>{if(!z.current||0===F.size)return void j(e=>0===Object.keys(e).length?e:{});const e={};z.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||n>e[i])&&(e[i]=n)}),j(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[H,F]);const W=Yt(null),[X,G]=Xt(0),V=R.some(e=>null!=e.expandedContent);Jt(()=>{if(!V)return void G(0);const e=W.current;if(!e)return;const t=()=>{const t=e.clientHeight;G(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[V,R.length]);const K=Vt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),Y=V&&X>0?`${X}px`:void 0,J=r&&null!=n&&R.length>=100,q=!r||J;return e(LC,{$maxHeight:n,$fitContent:r,$virtualize:J,children:[H.length>0&&t(XC,{ref:z,"aria-hidden":!0,children:H.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(GC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(PC,{$variant:i,children:[!a&&t(UC,{children:t(eE,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:F,resolvedColumnWidths:B,sortDirection:w,sortByKey:x,onSort:D,filters:A,onFilter:_,withCheckboxes:P,partiallySelected:U,allSelected:M,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?q?t(MC,{ref:V?W:void 0,children:t(qC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:F,resolvedColumnWidths:B,getRowActions:u||rE,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:P,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:K,expandedMaxHeight:Y})}):t(qC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:F,resolvedColumnWidths:B,getRowActions:u||rE,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:P,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!1,expandedRowId:I,onToggleExpand:K,expandedMaxHeight:Y}):t(Pl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(DC,{size:3,maxHeight:n}):t(S$,{...l})})]})]})},aE=n.div`
|
|
1892
1892
|
padding: 6px 12px;
|
|
1893
1893
|
|
|
1894
1894
|
display: flex;
|
|
@@ -1906,7 +1906,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1906
1906
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1907
1907
|
}
|
|
1908
1908
|
`}
|
|
1909
|
-
`,
|
|
1909
|
+
`,sE=n.textarea`
|
|
1910
1910
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1911
1911
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1912
1912
|
flex: 1;
|
|
@@ -1931,19 +1931,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1931
1931
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
`,
|
|
1934
|
+
`,lE=({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=Yt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Ll,{$gap:6,children:[t(E$,{label:i,tooltip:r,required:n,badge:o}),t(aE,{$disabled:p,$error:!!a,children:t(sE,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(T$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},dE=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],cE=n.div`
|
|
1935
1935
|
flex: 1;
|
|
1936
1936
|
min-width: 0;
|
|
1937
|
-
`,
|
|
1937
|
+
`,uE=n.div`
|
|
1938
1938
|
flex: 0 0 auto;
|
|
1939
1939
|
min-width: 140px;
|
|
1940
|
-
`,
|
|
1940
|
+
`,pE=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=dE,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Kt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Kt(()=>((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,y),[d,u,y]),w=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Ll,{$width:b,$gap:6,children:[t(E$,{label:n,tooltip:r,required:s,badge:o}),e(Rl,{$gap:8,$alignItems:"center",children:[t(cE,{children:t($w,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(yd(e.target.value),$)})}),t(uE,{children:t(lx,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(T$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},hE=n.div`
|
|
1941
1941
|
display: flex;
|
|
1942
1942
|
flex-direction: column;
|
|
1943
1943
|
min-width: 0;
|
|
1944
1944
|
width: 100%;
|
|
1945
1945
|
flex: 1;
|
|
1946
|
-
`,
|
|
1946
|
+
`,gE=n.div`
|
|
1947
1947
|
width: 100%;
|
|
1948
1948
|
padding: 8px;
|
|
1949
1949
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
@@ -1956,19 +1956,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1956
1956
|
border-top-left-radius: 12px;
|
|
1957
1957
|
border-top-right-radius: 12px;
|
|
1958
1958
|
`;default:return r``}}}
|
|
1959
|
-
`,
|
|
1959
|
+
`,mE=n.div`
|
|
1960
1960
|
display: flex;
|
|
1961
1961
|
align-items: center;
|
|
1962
1962
|
gap: 4px;
|
|
1963
1963
|
min-width: 0;
|
|
1964
|
-
`,
|
|
1964
|
+
`,fE=n.div`
|
|
1965
1965
|
display: flex;
|
|
1966
1966
|
align-items: center;
|
|
1967
1967
|
justify-content: center;
|
|
1968
1968
|
padding: 4px;
|
|
1969
1969
|
border-radius: 4px;
|
|
1970
1970
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1971
|
-
`,
|
|
1971
|
+
`,bE=n.div`
|
|
1972
1972
|
display: flex;
|
|
1973
1973
|
flex-direction: column;
|
|
1974
1974
|
width: 100%;
|
|
@@ -1996,7 +1996,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1996
1996
|
border-bottom-left-radius: 8px;
|
|
1997
1997
|
border-bottom-right-radius: 8px;
|
|
1998
1998
|
`;default:return r``}}}
|
|
1999
|
-
`,
|
|
1999
|
+
`,yE=r`
|
|
2000
2000
|
${({theme:e,$variant:t})=>{switch(t){case"new":case"removed":return r`
|
|
2001
2001
|
background-color: ${e.v2.colors.red[900]};
|
|
2002
2002
|
border-left: 2px solid ${e.v2.colors.red[500]};
|
|
@@ -2011,7 +2011,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2011
2011
|
${({$selected:e,$variant:t,theme:i})=>e&&("default"===t||"timing"===t)&&r`
|
|
2012
2012
|
border-left-color: ${i.v2.colors.silver[500]};
|
|
2013
2013
|
`}
|
|
2014
|
-
`,
|
|
2014
|
+
`,vE=n.button`
|
|
2015
2015
|
display: flex;
|
|
2016
2016
|
flex-direction: column;
|
|
2017
2017
|
align-items: stretch;
|
|
@@ -2025,12 +2025,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2025
2025
|
color: inherit;
|
|
2026
2026
|
font: inherit;
|
|
2027
2027
|
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
2028
|
-
${
|
|
2028
|
+
${yE}
|
|
2029
2029
|
|
|
2030
2030
|
&:last-child {
|
|
2031
2031
|
box-shadow: none;
|
|
2032
2032
|
}
|
|
2033
|
-
|
|
2033
|
+
`,$E=n.div`
|
|
2034
2034
|
display: flex;
|
|
2035
2035
|
align-items: center;
|
|
2036
2036
|
gap: 8px;
|
|
@@ -2039,16 +2039,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2039
2039
|
padding: 0 8px;
|
|
2040
2040
|
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
2041
2041
|
box-sizing: border-box;
|
|
2042
|
-
`,
|
|
2042
|
+
`,wE=n(Ya)`
|
|
2043
2043
|
flex-shrink: 0;
|
|
2044
2044
|
min-width: 10px;
|
|
2045
|
-
`,
|
|
2045
|
+
`,SE=n.div`
|
|
2046
2046
|
display: flex;
|
|
2047
2047
|
flex: 1;
|
|
2048
2048
|
align-items: center;
|
|
2049
2049
|
gap: 4px;
|
|
2050
2050
|
min-width: 0;
|
|
2051
|
-
`,
|
|
2051
|
+
`,xE=n.div`
|
|
2052
2052
|
display: flex;
|
|
2053
2053
|
flex-shrink: 0;
|
|
2054
2054
|
align-items: center;
|
|
@@ -2058,22 +2058,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2058
2058
|
overflow: hidden;
|
|
2059
2059
|
border-radius: 4px;
|
|
2060
2060
|
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
2061
|
-
`,
|
|
2061
|
+
`,CE=n(Ya)`
|
|
2062
2062
|
width: 100%;
|
|
2063
2063
|
overflow: hidden;
|
|
2064
2064
|
font-family: ${({theme:e})=>e.font_family.code};
|
|
2065
2065
|
line-height: 16px;
|
|
2066
2066
|
text-overflow: ellipsis;
|
|
2067
2067
|
white-space: nowrap;
|
|
2068
|
-
`,
|
|
2068
|
+
`,EE=n.div`
|
|
2069
2069
|
display: flex;
|
|
2070
2070
|
flex: 1;
|
|
2071
2071
|
align-items: center;
|
|
2072
2072
|
gap: 8px;
|
|
2073
2073
|
min-width: 0;
|
|
2074
|
-
`,
|
|
2074
|
+
`,TE=n(Ya)`
|
|
2075
2075
|
flex-shrink: 0;
|
|
2076
|
-
`,
|
|
2076
|
+
`,OE=n.div`
|
|
2077
2077
|
display: flex;
|
|
2078
2078
|
flex-shrink: 0;
|
|
2079
2079
|
align-items: center;
|
|
@@ -2095,18 +2095,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2095
2095
|
background-color: ${e.v2.colors.blue[900]};
|
|
2096
2096
|
color: ${e.v2.colors.blue[200]};
|
|
2097
2097
|
`}}}
|
|
2098
|
-
|
|
2098
|
+
`,NE=n.div`
|
|
2099
2099
|
display: flex;
|
|
2100
2100
|
flex: 1;
|
|
2101
2101
|
align-items: center;
|
|
2102
2102
|
gap: 4px;
|
|
2103
2103
|
min-width: 0;
|
|
2104
|
-
`,
|
|
2104
|
+
`,AE=n.div`
|
|
2105
2105
|
display: flex;
|
|
2106
2106
|
flex-direction: column;
|
|
2107
2107
|
width: 100%;
|
|
2108
2108
|
box-sizing: border-box;
|
|
2109
|
-
`,
|
|
2109
|
+
`,kE=r`
|
|
2110
2110
|
${({theme:e,$diff:t})=>{switch(t){case"added":return r`
|
|
2111
2111
|
background-color: ${e.v2.colors.green[900]};
|
|
2112
2112
|
border-left-color: ${e.v2.colors.green[500]};
|
|
@@ -2114,7 +2114,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2114
2114
|
background-color: ${e.v2.colors.red[900]};
|
|
2115
2115
|
border-left-color: ${e.v2.colors.red[500]};
|
|
2116
2116
|
`;default:return r``}}}
|
|
2117
|
-
`,
|
|
2117
|
+
`,IE=n.div`
|
|
2118
2118
|
display: flex;
|
|
2119
2119
|
width: 100%;
|
|
2120
2120
|
min-width: 0;
|
|
@@ -2134,8 +2134,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2134
2134
|
text-overflow: ellipsis;
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
|
-
${
|
|
2138
|
-
`,
|
|
2137
|
+
${kE}
|
|
2138
|
+
`,DE=n.div`
|
|
2139
2139
|
display: flex;
|
|
2140
2140
|
align-items: center;
|
|
2141
2141
|
width: 100%;
|
|
@@ -2143,21 +2143,21 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2143
2143
|
padding: 0 8px;
|
|
2144
2144
|
box-sizing: border-box;
|
|
2145
2145
|
border-left: 2px solid transparent;
|
|
2146
|
-
${
|
|
2147
|
-
`,
|
|
2146
|
+
${kE}
|
|
2147
|
+
`,_E=e=>"placeholder"===e||"removed"===e,RE=(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];case"info":return e.v2.colors.blue[200]}},LE={danger:0,warning:1,info:2,success:3},PE=(e,t)=>{switch(t){case"added":return e.v2.colors.green[500];case"removed":return e.v2.colors.red[500];case"changed":return e.v2.colors.blue[300]}},UE=({diff:e})=>{const i=o(),n="added"===e?Rt:"removed"===e?Ct:void 0;return t(DE,{$diff:e,children:n&&e?t(n,{size:12,fill:PE(i,e)}):null})},ME=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(AE,{children:e(Ll,{$gap:0,children:[i.scopePlaceholder?t(UE,{diff:"added"}):r?t(IE,{title:i.scope??void 0,children:t(Dx,{label:"Scope Attribute",value:i.scope})}):null,a.map((e,i)=>e.placeholder?t(UE,{diff:e.diff},`attr-placeholder-${i}`):t(IE,{$diff:e.diff,title:`${e.key??""}: ${e.value??""}`,children:t(Dx,{label:e.key??"",value:e.value,labelPingColor:"changed"===e.diff?PE(n,e.diff):void 0,labelPingTooltip:"changed"===e.diff?"This attribute has a value that changed since the baseline trace.":void 0})},`${e.key}-${i}`))]})}):null},FE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l=!_E(s),d=i.depth??0,c=Vt(()=>{l&&r(i.id)},[l,r,i.id]);if(_E(s)){const e=i.badges?.[0]?.icon??void 0,n="removed"===s?a.v2.colors.red[500]:a.v2.colors.green[500];return t(vE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t($E,{$depth:d,children:t(NE,{children:e?t(e,{size:12,fill:n}):null})})})}const u=(i.badges??[]).filter(e=>!!e?.label).map(e=>({...e,tone:e.tone??("new"===s?"danger":"warning")})).sort((e,t)=>LE[e.tone]-LE[t.tone]),p="timing"===s?a.v2.colors.yellow[500]:void 0;return e(vE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e($E,{$depth:d,children:[t(wE,{size:Wa.XXXS,color:Xa.Disable,nowrap:!0,children:i.index??""}),e(SE,{children:[i.service?t(xE,{title:i.service,children:t(CE,{size:Wa.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(EE,{children:[t(Ya,{size:Wa.XXXS,color:n||"default"!==s?Xa.Primary:Xa.Secondary,nowrap:!0,children:i.name??""}),u.map((i,n)=>{const r=i.icon??void 0;return e(OE,{$tone:i.tone,children:[t(Ya,{size:Wa.XXXS,color:RE(a,i.tone),nowrap:!0,children:i.label}),r?t(r,{size:12,fill:RE(a,i.tone)}):null]},`${i.label}-${n}`)})]}),i.durationLabel?t(TE,{size:Wa.XXXS,color:p??Xa.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(ME,{row:i}):null]})},zE=({traceId:i,title:n,titleIcon:r,headerBadge:a,meta:s,rows:l,expandedRowIds:d,onToggleRow:c,corner:u="both"})=>{const p=o(),{clickCopy:h,isCopied:g}=yv(),m=Kt(()=>new Set(d??[]),[d]),f=Vt(e=>{c?.(e)},[c]),b=!!(r||n||a?.label||s?.length),y="success"===a?.tone?p.v2.colors.green[500]:"danger"===a?.tone?p.v2.colors.red[800]:p.v2.colors.silver[700],v="success"===a?.tone?p.v2.colors.black[500]:"danger"===a?.tone?p.v2.colors.white[500]:p.v2.colors.silver[200];return e(hE,{children:[b&&t(gE,{$corner:u??"both",children:e(Ll,{$gap:8,children:[e(Rl,{$gap:10,$wrap:"wrap",children:[(r||n)&&e(mE,{children:[r&&t(r,{size:16,fill:p.v2.colors.white[500]}),n&&t(Ya,{size:Wa.XS,color:Xa.Primary,nowrap:!0,children:n})]}),a?.label?t(Vv,{label:a.label,backgroundColor:y,textColor:v,textSize:Wa.XXXS}):null,s?.map(e=>t(fE,{children:t(Ya,{size:Wa.XXXS,color:Xa.Secondary,nowrap:!0,children:e.label})},e.label))]}),!!i&&t($w,{label:"Trace ID",value:i,readOnly:!0,small:!0,leftIcon:g?wt:St,leftIconClick:()=>h(i)})]})}),t(bE,{$hasHeader:b,$corner:u??"both",children:l?.length?l.map(e=>t(FE,{row:e,expanded:m.has(e.id),onToggle:f},e.id)):t(Rl,{$justifyContent:"center",style:{padding:16},children:t(Ya,{size:Wa.XXXS,color:Xa.Secondary,children:"No spans"})})})]})},BE=n.div`
|
|
2148
2148
|
min-width: 500px;
|
|
2149
|
-
`,
|
|
2149
|
+
`,jE=n.div`
|
|
2150
2150
|
display: flex;
|
|
2151
2151
|
flex-direction: column;
|
|
2152
2152
|
align-items: center;
|
|
2153
2153
|
gap: 16px;
|
|
2154
2154
|
padding: 24px;
|
|
2155
2155
|
width: 100%;
|
|
2156
|
-
`,
|
|
2156
|
+
`,HE=n.div`
|
|
2157
2157
|
display: flex;
|
|
2158
2158
|
justify-content: center;
|
|
2159
2159
|
gap: 16px;
|
|
2160
2160
|
padding: 16px 24px;
|
|
2161
2161
|
width: 100%;
|
|
2162
2162
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2163
|
-
`,
|
|
2163
|
+
`,WE=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(rC,{isOpen:o,onClose:a,...c,children:e(BE,{children:[e(jE,{children:[i&&t(i,{}),t(Ya,{size:Wa.M,weight:500,color:Xa.Primary,children:n}),t(Ll,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Ya,{size:Wa.XS,weight:400,color:Xa.Secondary,children:e},e))}),d]}),(s||l)&&e(HE,{children:[s&&t(bv,{"data-id":"deny",...s}),l&&t(bv,{"data-id":"approve",...l})]})]})});export{zs as $,j$ as A,bv as B,Pl as C,sx as D,cs as E,Ll as F,Rx as G,$w as H,Jx as I,Ni as J,tw as K,ex as L,Zu as M,S$ as N,rp as O,$i as P,Xv as Q,V$ as R,Ai as S,hv as T,Lu as U,xl as V,WE as W,op as X,ap as Y,ep as Z,xi as _,H$ as a,Qu as a$,sw as a0,zu as a1,b$ as a2,ww as a3,Ju as a4,O$ as a5,sp as a6,lp as a7,Ru as a8,ds as a9,Eu as aA,uu as aB,Tu as aC,Cu as aD,B$ as aE,pu as aF,Ou as aG,cp as aH,xu as aI,ip as aJ,up as aK,dp as aL,pp as aM,hp as aN,Gu as aO,hu as aP,fu as aQ,bu as aR,$u as aS,Su as aT,wu as aU,Du as aV,nu as aW,ru as aX,cu as aY,Vu as aZ,Ku as a_,AS as aa,Xx as ab,u$ as ac,Yc as ad,Au as ae,zi as af,Hi as ag,qi as ah,Qi as ai,Zi as aj,ji as ak,Wi as al,Bi as am,ja as an,Mu as ao,mu as ap,Uu as aq,gu as ar,ju as as,Nu as at,Pu as au,Bu as av,qu as aw,ku as ax,Mx as ay,Yu as az,vi as b,uc as b$,cg as b0,ou as b1,_u as b2,Ss as b3,ug as b4,yC as b5,Gl as b6,$$ as b7,yv as b8,Rs as b9,ad as bA,sd as bB,Mn as bC,fd as bD,Yi as bE,md as bF,Bv as bG,mr as bH,fr as bI,br as bJ,yr as bK,vr as bL,pn as bM,co as bN,uo as bO,po as bP,ho as bQ,go as bR,sn as bS,on as bT,Lo as bU,bn as bV,Jo as bW,mn as bX,Go as bY,Ba as bZ,za as b_,mS as ba,Hy as bb,ts as bc,cl as bd,Ci as be,Ei as bf,Py as bg,Vy as bh,qy as bi,Wy as bj,Qs as bk,Qa as bl,Ln as bm,nn as bn,Ks as bo,jc as bp,Bc as bq,Fc as br,zc as bs,od as bt,pc as bu,rd as bv,Qy as bw,kn as bx,di as by,si as bz,Hc as c,zn as c$,Ui as c0,n$ as c1,_l as c2,DC as c3,On as c4,Vv as c5,ci as c6,Wc as c7,mi as c8,Xc as c9,Rr as cA,_r as cB,kr as cC,Ar as cD,Br as cE,Dr as cF,Ir as cG,zr as cH,Fr as cI,Pr as cJ,Lr as cK,Mr as cL,Ur as cM,Kr as cN,Vr as cO,Hr as cP,jr as cQ,Gr as cR,Xr as cS,Wr as cT,Qr as cU,qr as cV,Jr as cW,Yr as cX,Zx as cY,oo as cZ,Bn as c_,Lx as ca,K$ as cb,Ja as cc,Md as cd,lc as ce,nc as cf,rc as cg,ac as ch,oc as ci,Ep as cj,Iu as ck,Fu as cl,Tp as cm,Xu as cn,Cp as co,lu as cp,du as cq,yu as cr,Tr as cs,Er as ct,Or as cu,Nr as cv,Zr as cw,eo as cx,to as cy,io as cz,E$ as d,Aa as d$,ro as d0,qx as d1,Ho as d2,Wo as d3,Xo as d4,Ko as d5,qn as d6,Qn as d7,Vn as d8,Vo as d9,da as dA,la as dB,sa as dC,Zo as dD,pa as dE,ha as dF,ua as dG,ca as dH,ea as dI,fa as dJ,ma as dK,ga as dL,va as dM,ya as dN,ba as dO,ta as dP,Sa as dQ,wa as dR,$a as dS,ia as dT,Ca as dU,xa as dV,na as dW,Ea as dX,jv as dY,Ta as dZ,Oa as d_,Oo as da,To as db,Av as dc,Ao as dd,Yo as de,No as df,So as dg,ar as dh,ko as di,Gn as dj,Co as dk,Io as dl,Do as dm,Kn as dn,Yn as dp,Jn as dq,Zn as dr,er as ds,wo as dt,Fa as du,Ua as dv,Qo as dw,aa as dx,oa as dy,ra as dz,Ya as e,Vl as e$,Da as e0,Ia as e1,ka as e2,Na as e3,Ma as e4,La as e5,Pa as e6,Ra as e7,_a as e8,ln as e9,Os as eA,ed as eB,Zs as eC,zv as eD,Vd as eE,Ov as eF,as as eG,Fi as eH,os as eI,Yd as eJ,Dx as eK,Bs as eL,aS as eM,zy as eN,Zl as eO,Ql as eP,Xs as eQ,Sx as eR,Fy as eS,dl as eT,Ds as eU,Kl as eV,ov as eW,ec as eX,qd as eY,pd as eZ,ul as e_,gr as ea,ur as eb,hr as ec,pr as ed,lr as ee,dr as ef,cr as eg,sr as eh,or as ei,Rn as ej,li as ek,BS as el,FS as em,Fn as en,Gs as eo,cc as ep,Ha as eq,Za as er,fi as es,fC as et,Ls as eu,SS as ev,vs as ew,OS as ex,An as ey,gd as ez,Xa as f,qm as f$,js as f0,Ii as f1,Xd as f2,Kd as f3,p$ as f4,oE as f5,RC as f6,vu as f7,Jc as f8,ol as f9,Qc as fA,Kc as fB,qc as fC,sg as fD,dg as fE,lg as fF,Ip as fG,Ap as fH,Np as fI,kp as fJ,Up as fK,Pp as fL,zp as fM,Fp as fN,Rp as fO,_p as fP,Vc as fQ,vp as fR,Jf as fS,Ff as fT,zf as fU,kf as fV,If as fW,Xm as fX,Jm as fY,Km as fZ,Zm as f_,Hs as fa,xn as fb,Nc as fc,Rc as fd,Cn as fe,Oc as ff,_c as fg,Lc as fh,Tc as fi,Ic as fj,$c as fk,wc as fl,Dc as fm,Ac as fn,kc as fo,Mc as fp,vc as fq,Cc as fr,Ec as fs,xc as ft,Sc as fu,gc as fv,hc as fw,Uc as fx,Pc as fy,Gc as fz,Wa as g,um as g$,Ym as g0,Qm as g1,om as g2,rm as g3,gf as g4,hf as g5,mf as g6,wf as g7,zg as g8,bf as g9,km as gA,Nm as gB,Am as gC,Gf as gD,Qg as gE,of as gF,nb as gG,ab as gH,Dm as gI,_m as gJ,Cy as gK,Ey as gL,Ay as gM,Dy as gN,Rm as gO,Om as gP,Cm as gQ,xm as gR,hy as gS,im as gT,tm as gU,py as gV,em as gW,Zg as gX,dm as gY,lm as gZ,gb as g_,ff as ga,jf as gb,Hf as gc,Af as gd,Nf as ge,Of as gf,_f as gg,Df as gh,Lf as gi,Rf as gj,Yf as gk,eb as gl,tb as gm,Qf as gn,Zf as go,Hm as gp,Wm as gq,zm as gr,Bm as gs,jm as gt,Mm as gu,Um as gv,Lm as gw,Fm as gx,Im as gy,Vf as gz,Rl as h,gh as h$,kS as h0,cm as h1,fm as h2,mm as h3,bm as h4,vm as h5,$m as h6,Sm as h7,wm as h8,gm as h9,oh as hA,sh as hB,ah as hC,lh as hD,kl as hE,eg as hF,tg as hG,ig as hH,ng as hI,rg as hJ,og as hK,Wp as hL,Gp as hM,Vp as hN,Kp as hO,Jp as hP,Yp as hQ,Qp as hR,qp as hS,eh as hT,Zp as hU,th as hV,Bp as hW,jp as hX,dh as hY,ch as hZ,fh as h_,hm as ha,pm as hb,Oy as hc,Ng as hd,by as he,vy as hf,yy as hg,am as hh,$y as hi,wy as hj,Sy as hk,xy as hl,Mf as hm,Og as hn,ob as ho,rb as hp,Sv as hq,ld as hr,kv as hs,rC as ht,Uy as hu,ag as hv,Hp as hw,ih as hx,nh as hy,rh as hz,mv as i,Xw as i$,mh as i0,ph as i1,hh as i2,uh as i3,$h as i4,wh as i5,yh as i6,vh as i7,bh as i8,xh as i9,Oh as iA,Nh as iB,Ah as iC,kh as iD,Ih as iE,Dh as iF,Rh as iG,Mh as iH,al as iI,Il as iJ,hw as iK,ks as iL,un as iM,cn as iN,dn as iO,gn as iP,hn as iQ,fn as iR,Mv as iS,$C as iT,TC as iU,SC as iV,_s as iW,zE as iX,Ud as iY,Un as iZ,Pn as i_,Ch as ia,Sh as ib,Xp as ic,Xh as id,Gh as ie,Vh as ig,Wh as ih,Yh as ii,Jh as ij,qh as ik,Qh as il,Zh as im,Kh as io,jh as ip,Hh as iq,_h as ir,Fh as is,zh as it,Bh as iu,Lh as iv,Uh as iw,Ph as ix,Eh as iy,Th as iz,gv as j,wp as j$,an as j0,ir as j1,wr as j2,fo as j3,bo as j4,Wn as j5,jn as j6,yo as j7,Xn as j8,vo as j9,Js as jA,Ps as jB,Us as jC,qs as jD,Ys as jE,Vs as jF,iv as jG,Ns as jH,Ts as jI,Es as jJ,qa as jK,pl as jL,Xi as jM,cw as jN,tu as jO,Zc as jP,eu as jQ,iu as jR,np as jS,Op as jT,yp as jU,fp as jV,bp as jW,mp as jX,gp as jY,Sp as jZ,xp as j_,Hn as ja,Eo as jb,mo as jc,nr as jd,rr as je,tr as jf,ao as jg,so as jh,lo as ji,Cr as jj,xr as jk,Sr as jl,no as jm,$r as jn,tS as jo,Gw as jp,vn as jq,Dl as jr,_C as js,jy as jt,As as ju,es as jv,Jd as jw,Dv as jx,My as jy,Ky as jz,T$ as k,$n as k$,$p as k0,Nv as k1,Db as k2,_b as k3,Ab as k4,kb as k5,Ib as k6,Nb as k7,ub as k8,sb as k9,Sg as kA,xg as kB,Cg as kC,Eg as kD,xf as kE,Tg as kF,uf as kG,Xg as kH,Gg as kI,Vg as kJ,_g as kK,Rg as kL,Lg as kM,Pg as kN,Kg as kO,Ug as kP,Mg as kQ,Jg as kR,Yg as kS,Dg as kT,gg as kU,hg as kV,Ri as kW,hi as kX,Di as kY,Pi as kZ,wn as k_,lb as ka,cb as kb,db as kc,wb as kd,Wb as ke,vb as kf,Sb as kg,Cb as kh,xb as ki,uy as kj,ly as kk,sy as kl,gy as km,fy as kn,my as ko,Eb as kp,Tb as kq,Ob as kr,Xb as ks,Gb as kt,Fg as ku,Bg as kv,jg as kw,Hg as kx,Wg as ky,$g as kz,hx as l,Dp as l$,yn as l0,rn as l1,wi as l2,Si as l3,ki as l4,gi as l5,Tn as l6,bi as l7,pi as l8,Mi as l9,il as lA,nl as lB,rl as lC,sl as lD,Yl as lE,td as lF,id as lG,nd as lH,dd as lI,cd as lJ,hd as lK,yd as lL,vd as lM,$d as lN,Fd as lO,zd as lP,Cs as lQ,Bd as lR,jd as lS,Nn as lT,tc as lU,tp as lV,Zd as lW,$o as lX,xo as lY,Mp as lZ,Lp as l_,Ti as la,Ki as lb,Vi as lc,Gi as ld,Li as le,En as lf,Sn as lg,tn as lh,en as li,Ji as lj,yi as lk,ui as ll,_i as lm,El as ln,Cl as lo,Nl as lp,$s as lq,ss as lr,ws as ls,bd as lt,Is as lu,Fs as lv,xs as lw,Ws as lx,rs as ly,tl as lz,mx as m,tf as m$,Hu as m0,Wu as m1,jo as m2,Bo as m3,zo as m4,Fo as m5,Ro as m6,Uo as m7,_o as m8,Po as m9,Ag as mA,Xf as mB,vg as mC,Ty as mD,Gm as mE,Vm as mF,df as mG,Bf as mH,Pm as mI,Ig as mJ,kg as mK,wg as mL,qf as mM,qg as mN,$b as mO,yg as mP,bg as mQ,fg as mR,vf as mS,mb as mT,hb as mU,yb as mV,bb as mW,fb as mX,pb as mY,ym as mZ,rf as m_,Mo as ma,su as mb,au as mc,Qd as md,fc as me,bc as mf,yc as mg,mc as mh,pg as mi,Kf as mj,af as mk,sf as ml,lf as mm,Ef as mn,Tf as mo,Hb as mp,jb as mq,Bb as mr,Rb as ms,Ub as mt,zb as mu,Lb as mv,Mb as mw,Pb as mx,Fb as my,ib as mz,Ex as n,$x as n$,nf as n0,ef as n1,Zb as n2,Qb as n3,Kb as n4,Jb as n5,Yb as n6,qb as n7,oy as n8,ny as n9,Tm as nA,Dn as nB,_n as nC,qo as nD,ic as nE,nv as nF,Uv as nG,rv as nH,ev as nI,Iv as nJ,tv as nK,vv as nL,wv as nM,Ev as nN,Tv as nO,av as nP,Rv as nQ,i$ as nR,c$ as nS,r$ as nT,t$ as nU,Ew as nV,Tw as nW,D$ as nX,dE as nY,cx as nZ,yx as n_,iy as na,ey as nb,ty as nc,Vb as nd,ry as ne,cf as nf,Em as ng,$f as nh,ky as ni,Iy as nj,Wf as nk,Cf as nl,sm as nm,Ry as nn,_y as no,Ny as np,Pf as nq,mg as nr,nm as ns,Uf as nt,pf as nu,cy as nv,dy as nw,ay as nx,Sf as ny,yf as nz,ns as o,Tx as o0,Fl as o1,cC as o2,Ml as o3,Jv as o4,zx as o5,iw as o6,zl as o7,Bl as o8,jl as o9,dS as oa,MS as ob,Ul as oc,Va as od,is as p,Oi as q,PS as r,DS as s,ai as t,xv as u,IS as v,pE as w,k$ as x,lx as y,lE as z};
|