@odigos/ui-kit 0.0.293 → 0.0.295
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 +26 -0
- package/lib/chunks/{helpers-DbT32OSr.js → helpers-CVRjhvw4.js} +1 -1
- package/lib/chunks/index-B13xWqwt.js +342 -0
- package/lib/chunks/{source-instrument-form-context-CmMX5vdq.js → source-instrument-form-context-CgGshOFa.js} +1 -1
- package/lib/chunks/{ui-components-Bhz7WgBl.js → ui-components-DwtaxXwl.js} +333 -331
- package/lib/components/table/styled.d.ts +2 -4
- package/lib/components/table/types.d.ts +8 -3
- package/lib/components/tag/index.d.ts +8 -0
- package/lib/components.js +1 -1
- package/lib/constants/insights/system.d.ts +3 -1
- package/lib/constants.js +1 -1
- package/lib/containers/insights/findings/helpers.d.ts +2 -0
- package/lib/containers/insights/service-with-language-icons.d.ts +12 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/helpers.d.ts +2 -6
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/index.d.ts +2 -2
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/map.d.ts +2 -3
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/types.d.ts +4 -4
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/index.d.ts +1 -1
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/libraries/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/libraries/types.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/helpers.d.ts +17 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/map.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/node.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/outbound-peers-view/types.d.ts +25 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/helpers.d.ts +16 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/map.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/node.d.ts +6 -0
- package/lib/containers/insights/transactions/drawer/baselines/data-drawer/service-call-edges-view/types.d.ts +23 -0
- package/lib/containers/service-map/helpers/types.d.ts +2 -1
- package/lib/containers/service-map/react-flow/edges/animated-traffic-edge.d.ts +5 -1
- package/lib/containers/service-map/react-flow/edges/self-loop-edge.d.ts +6 -0
- package/lib/containers/service-map/service-map-context.d.ts +3 -0
- package/lib/containers.js +573 -557
- package/lib/contexts.js +1 -1
- package/lib/functions/find-source-by-service/index.d.ts +3 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useCopy.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/common/self-loop-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/blast-radius/index.d.ts +0 -1
- package/lib/snippets/graph-flow/animated-edge.d.ts +12 -0
- package/lib/snippets/graph-flow/auto-fit-view.d.ts +14 -0
- package/lib/snippets/graph-flow/elk-layout.d.ts +6 -0
- package/lib/snippets/graph-flow/get-edge-path.d.ts +14 -0
- package/lib/snippets/graph-flow/graph-flow.d.ts +9 -0
- package/lib/snippets/graph-flow/index.d.ts +5 -0
- package/lib/snippets/graph-flow/types.d.ts +61 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +14 -14
- package/lib/chunks/index-MwonXqI1.js +0 -338
- package/lib/snippets/blast-radius/animated-edge.d.ts +0 -10
- /package/lib/containers/insights/transactions/drawer/baselines/data-drawer/{db-access → db-access-view}/node.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
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,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as D,AwsXrayLogo as _,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as W,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as De,AxiomLogo as _e,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as kt,XIcon as It,PlusIcon as Dt,TrashIcon as _t,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Wt,useCallback as Xt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=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 oi,ai,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;(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"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(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"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(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"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(e=>{e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(e=>{e.DataStream="DataStream"})(Ci||(Ci={})),(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"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ai||(Ai={})),(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"})(ki||(ki={})),(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"})(Ii||(Ii={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Di||(Di={})),(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"})(_i||(_i={})),(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"})(Ri||(Ri={})),(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"})(Li||(Li={})),(e=>{e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{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 Ji{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wi||(Wi={})),(e=>{e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"})(Xi||(Xi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(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"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},Dn=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),_n=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Wn="Choose override scope",Xn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="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.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",Dr="Insights has not seen any other services to allow as callers",_r="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Wr="api.example.com:443",Xr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",Do="All",_o="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Wo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Xo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:_o},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",xa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows. Good: http.response.status_code, rpc.grpc.status_code. Bad: user.id, URLs, request ids. Values come from the entry span only.",Ca="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Ea="No dimensions configured — transactions use the entry span name only.",Ta="Add dimension",Oa="e.g. http.response.status_code",Na="On",Aa="Identity dimensions changed",ka="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.",Ia="Reset all transactions",Da="Keep existing transactions",_a="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Ra="Save settings",La="System settings are not available.",Pa=5,Ua=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],Ma=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Fa,za,Ba;(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"})(Fa||(Fa={})),(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"})(za||(za={})),(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"})(Ba||(Ba={}));const ja=new Set(Object.values(Ba)),Ha=(e,t)=>{if("string"!=typeof(i=t)||!ja.has(i))return t;var i;switch(t){case Ba.Primary:return e.v2.colors.white[500];case Ba.Secondary:return e.v2.colors.silver[200];case Ba.Tertiary:return e.v2.colors.black[500];case Ba.Disable:return e.v2.colors.grey[400];case Ba.Error:return e.v2.colors.red[500];case Ba.Mandatory:return e.v2.colors.red[600];case Ba.Link:return e.v2.colors.purple[400];case Ba.Success:return e.v2.colors.green[400];default:return}},Wa=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,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as k,JavaLogo as I,PyroscopeLogo as _,AwsXrayLogo as D,VictoriaMetricsLogo as R,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as j,SeqLogo as H,AwsS3Logo as W,QuickwitLogo as X,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as ie,MiddlewareLogo as ne,LumigoLogo as re,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as ke,AzureMonitorLogo as Ie,AzureBlobLogo as _e,AxiomLogo as De,AppDynamicsLogo as Re,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as je,MetricsIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as Xe,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as it,ExclamationCircleIcon as nt,ISquareIcon as rt,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,MinusIcon as xt,ChevronUpIcon as Ct,ChevronDownIcon as Et,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as At,ListIcon as kt,XIcon as It,PlusIcon as _t,TrashIcon as Dt,DotIcon as Rt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import zt,{forwardRef as Bt,Fragment as jt,useState as Ht,useEffect as Wt,useCallback as Xt,useMemo as Gt,useRef as Vt,useLayoutEffect as Kt,createElement as Yt}from"react";import Jt from"javascript-time-ago";import qt from"javascript-time-ago/locale/en";import Qt,{createPortal as Zt}from"react-dom";import{Highlight as ei,themes as ti}from"prism-react-renderer";import{ErrorBoundary as ii}from"react-error-boundary";import{VList as ni}from"virtua";const ri=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 oi,ai,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;(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"})(oi||(oi={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(ai||(ai={})),(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"})(si||(si={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(li||(li={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(di||(di={})),(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"})(ci||(ci={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(ui||(ui={})),(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"})(pi||(pi={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hi||(hi={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gi||(gi={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mi||(mi={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fi||(fi={})),(e=>{e.Community="community",e.Onprem="onprem"})(bi||(bi={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(yi||(yi={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vi||(vi={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})($i||($i={})),(e=>{e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"})(wi||(wi={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Si||(Si={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(xi||(xi={})),(e=>{e.DataStream="DataStream"})(Ci||(Ci={})),(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"})(Ei||(Ei={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Ti||(Ti={})),(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"})(Oi||(Oi={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ni||(Ni={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ai||(Ai={})),(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"})(ki||(ki={})),(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"})(Ii||(Ii={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_i||(_i={})),(e=>{e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"})(Di||(Di={})),(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"})(Ri||(Ri={})),(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"})(Li||(Li={})),(e=>{e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"})(Pi||(Pi={})),(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"})(Ui||(Ui={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Mi||(Mi={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fi||(Fi={})),(e=>{e.HeaderKeys="headerKeys"})(zi||(zi={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bi||(Bi={}));class Yi{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 Ji{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class qi{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(ji||(ji={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Hi||(Hi={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wi||(Wi={})),(e=>{e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"})(Xi||(Xi={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Gi||(Gi={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vi||(Vi={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Ki||(Ki={}));const Qi={[Vi.Logs]:Ki.Logs,[Vi.Metrics]:Ki.Metrics,[Vi.Traces]:Ki.Traces,[Vi.Profiles]:Ki.Profiles},Zi={[Ki.Logs]:Vi.Logs,[Ki.Metrics]:Vi.Metrics,[Ki.Traces]:Vi.Traces,[Ki.Profiles]:Vi.Profiles};var en,tn,nn,rn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(en||(en={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(tn||(tn={})),(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"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(rn||(rn={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(on||(on={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(an||(an={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(sn||(sn={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(ln||(ln={})),(e=>{e.Open="open",e.Accepted="accepted",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(cn||(cn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(pn||(pn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(hn||(hn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(gn||(gn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(mn||(mn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(fn||(fn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(bn||(bn={})),(e=>{e.Us="us",e.Bytes="bytes"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Cn||(Cn={}));const En={[ai.Enrichment]:{TITLE:"Enrichment",ICON:c},[ai.Normalization]:{TITLE:"Normalization",ICON:d},[ai.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[oi.AddClusterInfo]:ai.Enrichment,[oi.K8sAttributes]:ai.Enrichment,[oi.ExtractAttribute]:ai.Enrichment,[oi.InferDbAttributes]:ai.Enrichment,[oi.DbQueryTemplatization]:ai.Normalization,[oi.URLTemplatization]:ai.Normalization,[oi.RenameAttributes]:ai.Normalization,[oi.PiiMasking]:ai.Privacy,[oi.DeleteAttributes]:ai.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:oi.K8sAttributes,icon:On(oi.K8sAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[yi.K8s]},{type:oi.AddClusterInfo,icon:On(oi.AddClusterInfo),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[yi.K8s]},{type:oi.DeleteAttributes,icon:On(oi.DeleteAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[yi.K8s]},{type:oi.RenameAttributes,icon:On(oi.RenameAttributes),category:Tn[oi.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:[Vi.Traces,Vi.Metrics,Vi.Logs,Vi.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[yi.K8s]},{type:oi.PiiMasking,icon:On(oi.PiiMasking),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[yi.K8s]},{type:oi.URLTemplatization,icon:On(oi.URLTemplatization),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[yi.K8s]:ri("v1.21.0")},supportedPlatforms:[yi.K8s,yi.Vm]},{type:oi.ExtractAttribute,icon:On(oi.ExtractAttribute),category:Tn[oi.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:[Vi.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[yi.K8s]:ri("v1.29.0")},supportedPlatforms:[yi.K8s]}],An=ri("v1.26"),kn=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),In=(e,t,i)=>{const n=e.minVersion?.[t];return!n||ri(i)>=n},_n=(e,t)=>Nn.filter(i=>kn(i,e)&&In(i,e,t)).map(i=>((e,t,i)=>t!==yi.K8s||ri(i)>=An?e:e.allowedSignals?.includes(Vi.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vi.Profiles)}:e)(i,e,t)),Dn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]},Rn="Coming soon",Ln="We are working on this feature and it will be available soon.";var Pn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Pn||(Pn={}));const Un={[Pn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Pn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Pn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Pn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Pn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Pn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Mn="Save Changes",Fn="Discard changes",zn="Default Policy",Bn="Overrides",jn="No default policy yet",Hn="No overrides yet",Wn="Choose override scope",Xn="Global",Gn="Choose Override type",Vn="Select Service",Kn="Select Transaction",Yn="Service",Jn="Transaction",qn="Select service…",Qn="Select transaction…",Zn="Anomaly Detection Policies",er="Configure when Odigos should create findings based on runtime risk signals.\nUse service overrides to adjust detection sensitivity for specific services.",tr="Add a default policy to set the global detection settings.",ir="Add overrides to adjust detection sensitivity for specific services.",nr="Create override policy",rr="Delete policy",or="Select where this policy should override the global detection settings.\nYou can apply it to a specific service or transaction.",ar="Name",sr="Trigger when risk level is",lr="Customize signal weights (advanced)",dr="Base weight",cr="Risk points",ur="Dangerous sub-cases - added on top of the base when detected:",pr="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.",hr="Low",gr="Medium",mr="High",fr="Critical",br=(e,t)=>`Fire when risk score ≥ ${e} · ${t} signal weight override(s)`,yr="Guardrails",vr="Guardrails are rules you declare about how a service may communicate. A broken guardrail is a Policy violation.\nAllow any seen service as a caller/callee, define egress destinations freely, and curate allowed transactions.",$r="Created Guardrails",wr="No guardrails yet",Sr="Create a guardrail to declare allowed service communication.",xr="Inspect a service",Cr="Edit guardrail",Er="Namespace",Tr="Service",Or="Callers",Nr="Who may call this service (inbound) — any seen service",Ar="Additional callers",kr="Add any service name not yet seen",Ir="No other services seen",_r="Insights has not seen any other services to allow as callers",Dr="Callees",Rr="Internal services it may call (outbound) — any seen service",Lr="Additional callees",Pr="Add any service name not yet seen",Ur="No other services seen",Mr="Insights has not seen any other services to allow as callees",Fr="checkout-service",zr="Egress",Br="Observed external destinations it may reach",jr="Additional egress hosts",Hr="Add any host or host:port not yet observed",Wr="api.example.com:443",Xr="No egress detected",Gr="No egress found for this selection",Vr="Transactions",Kr="Operations this service may expose",Yr="No Transactions detected",Jr="No transactions found for this selection",qr="Adopt as enforce",Qr="Alert on violation",Zr="Adopt as suggest",eo="Observe only",to="Select a guardrail",io="Create guardrail",no="Delete guardrail",ro="Enforce",oo="Suggest",ao="auto",so="allowed_callers",lo="allowed_callees",co="allowed_egress",uo="allowed_transactions",po="auto_transaction_guardrail",ho="Learning Policies",go="Configure when a class stops learning and how baselines are finalized.\nUse service overrides to adjust learning for specific services or transactions.",mo="Add a default policy to set the global learning settings.",fo="Add overrides to adjust learning for specific services.",bo="Add override policy",yo="Add override",vo="Add selection",$o="Add condition",wo="Delete override",So="Select where this policy should override the global learning settings.\nYou can apply it to a specific service or transaction.",xo="Select a policy",Co="Combine",Eo="Currently:",To="Promotes when",Oo="Min matches",No="A policy with no conditions falls back to the count-only default.",Ao="Select Deviation class",ko="Select deviation class…",Io="Any",_o="All",Do="K of",Ro="Any (OR)",Lo="All (AND)",Po="K of N",Uo="Stable for N observations",Mo="Stable for a duration",Fo="Min observations",zo="Min duration",Bo="Minutes",jo="Hours",Ho="Days",Wo={[nn.D1_call_edges]:"D1 call edges",[nn.D2_egress]:"D2 egress",[nn.D3_latency]:"D3 latency",[nn.D4_args_returns]:"D4 args/returns",[nn.D5_libraries]:"D5 libraries",[nn.D6_attr_relations]:"D6 attr relations",[nn.D7_db_access]:"D7 db access",[nn.D8_payload_size]:"D8 payload size"},Xo={[hn.Any]:"Any",[hn.All]:"All",[hn.KOf]:Do},Go=[{id:hn.Any,label:Ro},{id:hn.All,label:Lo},{id:hn.KOf,label:Po}],Vo=[{id:mn.StableObservations,label:Uo},{id:mn.StableDuration,label:Mo},{id:mn.MinObservations,label:Fo},{id:mn.MinDuration,label:zo}],Ko=e=>e===mn.StableDuration||e===mn.MinDuration,Yo=e=>e===mn.StableObservations||e===mn.MinObservations,Jo="Learning examples",qo="Retention",Qo="Memory limits",Zo="Database writeback",ea="Transaction guardrails",ta="Transaction identity dimensions",ia="Maximum example traces",na="Maximum number of example traces collected per transaction.",ra="traces",oa="Minimum sampling interval",aa="Minimum time between collected examples.",sa="seconds",la="Sample trace retention",da="Stored sample traces are deleted after this period.",ca="days",ua="Default: 120 · Maximum: 120",pa="Maximum transactions in memory",ha="Least-recently used baselines are unloaded when this limit is reached and loaded again if traffic returns.",ga="transactions",ma="Maximum members per baseline",fa="Limits the size of an individual baseline set, such as unique call edges or paths.",ba="members",ya="Flush interval",va="How often pending learning data and occurrence counts are written to ClickHouse. Changes apply without a restart.",$a="Default: 15 · Maximum: 300",wa="Auto-enable transaction guardrail when a service is promoted",Sa="When a service finishes promoting (every transaction leaves learning), automatically create an enforced allowed_transactions guardrail. Applies only from that moment forward — services already promoted are not backfilled; enable their guardrail from the by-service transactions menu.",xa="Low-cardinality only. Each enabled dimension multiplies transaction count, resident memory, and baseline rows.",Ca=["http.response.status_code","rpc.grpc.status_code"],Ea=["user.id","URLs","request ids"],Ta="Up to 5 enabled at once. Changing dimensions creates new transaction identities.",Oa="No dimensions configured — transactions use the entry span name only.",Na="Add dimension",Aa="e.g. http.response.status_code",ka="On",Ia="Identity dimensions changed",_a="New traffic will mint new transaction identities. Existing transactions stop receiving volume and become stale.\nReset deletes every transaction and related baselines/samples/findings, then relearns from new traffic. Keep only saves the new dimension config.",Da="Reset all transactions",Ra="Keep existing transactions",La="Anomaly and guardrail evidence each keep a single write-once sample; occurrences are counted separately.",Pa="Save settings",Ua="System settings are not available.",Ma=5,Fa=[{key:"http.response.status_code",enabled:!0},{key:"rpc.grpc.status_code",enabled:!0}],za=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Ba,ja,Ha;(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"})(Ba||(Ba={})),(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"})(ja||(ja={})),(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"})(Ha||(Ha={}));const Wa=new Set(Object.values(Ha)),Xa=(e,t)=>{if("string"!=typeof(i=t)||!Wa.has(i))return t;var i;switch(t){case Ha.Primary:return e.v2.colors.white[500];case Ha.Secondary:return e.v2.colors.silver[200];case Ha.Tertiary:return e.v2.colors.black[500];case Ha.Disable:return e.v2.colors.grey[400];case Ha.Error:return e.v2.colors.red[500];case Ha.Mandatory:return e.v2.colors.red[600];case Ha.Link:return e.v2.colors.purple[400];case Ha.Success:return e.v2.colors.green[400];default:return}},Ga=n.p`
|
|
2
2
|
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>
|
|
3
|
+
color: ${({$color:e,theme:t})=>Xa(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e,$fontFamily:t="primary"})=>e.font_family[t]};
|
|
5
5
|
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
6
|
font-weight: ${({$weight:e})=>e};
|
|
@@ -38,11 +38,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,Xa=Bt(({children:i,variant:n=Fa.P,color:r,size:o=za.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(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Wa,{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})});Xa.displayName="Typography";const Ga="https://docs.odigos.io",Va="default",Ka="this-cluster",Ya="This Cluster",Ja={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},qa={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:"Invalid version format, must start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},Qa={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"},Za={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"},es=(e,t)=>e===Oi.Success?Qa.HEALTHY:e===Oi.Error?Qa.NOT_HEALTHY:Ma(t),ts=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},is=(e,t,i="reason",n)=>{const r=ts(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?Ma(e?.reasonEnum):es(r,e?.reasonEnum)),tooltip:e?.message,textSize:za.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ns=e=>e.charAt(0).toUpperCase()+e.slice(1);var rs;(e=>{e.SIGNALS="SIGNALS"})(rs||(rs={}));const os=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===rs.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 as(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ss=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),ls=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ds=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)},cs=e=>"string"==typeof e?{id:e,label:e}:e??{},us=(e,t)=>e.label||e.displayName||t,ps=(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?us(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?us(n,i):ds(t)},hs=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=ls(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}},gs=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(...gs(e.segments))):t.push(...e.items)}),t},ms=(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&&!os(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=as(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ss(!!p)});case Ei.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(cs).find(t=>String(t.id??"")===e);return i?us(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=cs(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:us(n,r),badge:ss(!0===e[r])})});const i=ls(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=cs(e),n=String(t.id??"");return n&&i[n]?us(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 Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&ls(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&ls(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 Ei.KeyValuePair:return l(),ls(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=ls(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 Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ls(p)?p[e]:p)?e&&ls(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(cs):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=ls(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||ns(Ma(e.keyName))||e.keyName,label:ps(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:ds(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 Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(hs).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=ls(o)?o:{},d=t.length?ms(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:ds(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:ds(p)})}var g}),l(),n},fs=(e,t,i={})=>gs(ms(e,t,i)),bs=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const o=JSON.parse(r);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(i(o)):r}catch(o){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(i(r)):e[n]=r}return e},{})},ys=e=>JSON.parse(JSON.stringify(e)),vs=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),$s=(e,t,i)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=i},ws=(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},Ss=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},xs=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Cs=(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=>ts(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Va&&!e.dataStreamNames?.length):[],Ts=(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?Ts(e,n,i):i[n]=e}):i[o]=r:Ts(r,o,i)}return i},Os=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Ns=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},As=()=>{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)})},ks=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ts(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Is=e=>Array.isArray(e?.statuses)?ks(e.statuses):e?.conditions??[],Ds=e=>e?Array.isArray(e)?_s(e):_s(ks(Object.values(e))):_s([]),_s=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.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?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Rs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ls=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Ps=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,Us=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Ms=e=>e?.map(e=>Ls(Ps(e)))||[],Fs=e=>e?.map(e=>Ls(e))||[],zs=e=>e.runtimeInfo?.detectedLanguages?.length?Fs(e.runtimeInfo?.detectedLanguages):Ms(e.containers),Bs=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:_e,[Ri.AzureBlob]:De,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:X,[Ri.S3]:W,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:_,[Ri.Pyroscope]:D}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},js=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Hs=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Ws=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},Xs=e=>Ws(Hs(e)),Gs=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Vs=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},Ks=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:Xe,[Mi.PayloadCollection]:We,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),Ys=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Js=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>Ys(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>Ys(e)!==wi.Unknown);return r?Ys(r):wi.Unknown},qs=(e,t,i)=>(t===xi.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},Qs=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),Zs=(e,t)=>Object.values(za).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),el=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,tl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",il=(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(...il(e,t,i)),r}):[]},nl={"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"},rl=e=>{if(!e)return"";if(nl[e])return nl[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ol=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},al=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},sl=e=>{switch(e){case Hi.Updating:case Wi.Pending:case Xi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Wi.Succeeded:case Wi.Running:case Xi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Wi.Failed:case Xi.Error:case Xi.CrashLoopBackOff:case Xi.CreateContainerError:case Xi.CreateContainerConfigError:case Xi.ErrImagePull:case Xi.ErrImageNeverPull:case Xi.ImagePullBackOff:case Xi.InvalidImageName:case Xi.RegistryUnavailable:case Xi.NetworkNotReady:case Xi.OOMKilled:case Xi.ContainerCannotRun:case Gi.Terminated:case Xi.DeadlineExceeded:case Xi.StartError:return Oi.Error;case Hi.Down:case Xi.Completed:return Oi.Disabled;case Hi.Unknown:case Wi.Unknown:default:return Oi.Unknown}},ll=n.div`
|
|
41
|
+
`,Va=Bt(({children:i,variant:n=Ba.P,color:r,size:o=ja.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(jt,{children:[i,n!==r.length-1&&t("br",{})]},`typography-${n}-${i}`)):i;return t(Ga,{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})});Va.displayName="Typography";const Ka="https://docs.odigos.io",Ya="default",Ja="this-cluster",qa="This Cluster",Qa={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS"},Za={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."},es={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"},ts={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"},is=(e,t)=>e===Oi.Success?es.HEALTHY:e===Oi.Error?es.NOT_HEALTHY:za(t),ns=e=>{if(!e)return null;switch(e){case Ui.Irrelevant:return null;case Ui.Failure:case Ui.Error:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Pending:case Ui.Waiting:return Oi.Loading;case Ui.Unsupported:case Ui.Disabled:return Oi.Disabled;case Ui.Success:return Oi.Success;case Ui.Unknown:default:return Oi.Info}},rs=(e,t,i="reason",n)=>{const r=ns(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Oi.Success?p:h),label:n||("reason"===i?za(e?.reasonEnum):is(r,e?.reasonEnum)),tooltip:e?.message,textSize:ja.XXXS,invertColors:!0,useSecondaryTone:!0}:null},os=e=>e.charAt(0).toUpperCase()+e.slice(1);var as;(e=>{e.SIGNALS="SIGNALS"})(as||(as={}));const ss=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,o]=e;if(n===as.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 ls(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ds=e=>({status:e?Oi.Success:Oi.Unknown,label:e?"True":"False",invertColors:!0}),cs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),us=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)},ps=e=>"string"==typeof e?{id:e,label:e}:e??{},hs=(e,t)=>e.label||e.displayName||t,gs=(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?hs(n,i):i}).filter(Boolean);return i.join(", ")}const i=String(t),n=e.options?.find(e=>String(e.id??"")===i);return n?hs(n,i):us(t)},ms=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const i=cs(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}},fs=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(...fs(e.segments))):t.push(...e.items)}),t},bs=(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&&!ss(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ls(t.componentProperties,{});switch(t.componentType){case Ei.Toggle:case Ei.Checkbox:return void s.push({id:u,title:c,badge:ds(!!p)});case Ei.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(ps).find(t=>String(t.id??"")===e);return i?hs(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=ps(t),r=String(n.id??"");r&&s.push({id:`${u}-${i}-${r}`,title:hs(n,r),badge:ds(!0===e[r])})});const i=cs(p)?p:{},r=Array.isArray(h.options)?h.options:[];let o=[];return o=r.length?r.map(e=>{const t=ps(e),n=String(t.id??"");return n&&i[n]?hs(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 Ei.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,i=e&&cs(p)?p[e]:p,r=Array.isArray(i)&&i.length?i.map(e=>t&&cs(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 Ei.KeyValuePair:return l(),cs(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=cs(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 Ei.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&cs(p)?p[e]:p)?e&&cs(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(ps):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=cs(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||os(za(e.keyName))||e.keyName,label:gs(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:us(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 Ei.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ms).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=cs(o)?o:{},d=t.length?bs(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:us(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:us(p)})}var g}),l(),n},ys=(e,t,i={})=>fs(bs(e,t,i)),vs=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},{})},$s=e=>JSON.parse(JSON.stringify(e)),ws=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Ss=(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},xs=(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},Cs=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},Es=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ts=(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=>ns(e.workloadOdigosHealthStatus?.status)===Oi.Error)),i},Os=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ya&&!e.dataStreamNames?.length):[],Ns=(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]}},As=(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?As(e,n,i):i[n]=e}):i[o]=r:As(r,o,i)}return i},ks=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]}`},Is=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`}},_s=()=>{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)})},Ds=e=>e?e.reduce((e,t)=>{if(null!=t){const i=ns(t.status);i&&e.push({status:i,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Rs=e=>Array.isArray(e?.statuses)?Ds(e.statuses):e?.conditions??[],Ls=e=>e?Array.isArray(e)?Ps(e):Ps(Ds(Object.values(e))):Ps([]),Ps=e=>{const t=e?.filter(({status:e})=>e===Oi.Error),i=e?.filter(({status:e})=>e===Oi.Warning),n=e?.filter(({status:e})=>e===Oi.Disabled),r=e?.filter(({status:e})=>e===Oi.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?Oi.Error:a?Oi.Warning:s?Oi.Info:void 0}},Us=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Ms=e=>({[wi.Java]:I,[wi.Go]:k,[wi.JavaScript]:A,[wi.Python]:N,[wi.DotNet]:O,[wi.CSharp]:T,[wi.CPlusPlus]:E,[wi.Php]:C,[wi.Ruby]:x,[wi.Rust]:S,[wi.Swift]:w,[wi.Elixir]:$,[wi.MySql]:v,[wi.Nginx]:y,[wi.Postgres]:b,[wi.Redis]:f,[wi.Kafka]:m,[wi.Ignored]:g,[wi.Unknown]:g,[wi.Processing]:g,[wi.NoContainers]:g,[wi.NoRunningPods]:g}[e]||g),Fs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown:wi.Unknown,zs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Bs=e=>e?.map(e=>Ms(Fs(e)))||[],js=e=>e?.map(e=>Ms(e))||[],Hs=e=>e.runtimeInfo?.detectedLanguages?.length?js(e.runtimeInfo?.detectedLanguages):Bs(e.containers),Ws=(e,t)=>{const i={[Ri.Alauda]:Pe,[Ri.AlibabaCloud]:Le,[Ri.AppDynamics]:Re,[Ri.Axiom]:De,[Ri.AzureBlob]:_e,[Ri.AzureMonitor]:Ie,[Ri.BetterStack]:ke,[Ri.Bonree]:Ae,[Ri.Causely]:Ne,[Ri.Checkly]:Oe,[Ri.Chronosphere]:Te,[Ri.ClickHouse]:Ee,[Ri.CloudWatch]:Ce,[Ri.Coralogix]:xe,[Ri.Dash0]:Se,[Ri.Datadog]:we,[Ri.Dynamic]:Y,[Ri.Dynatrace]:$e,[Ri.ElasticApm]:ve,[Ri.ElasticSearch]:ye,[Ri.GoogleCloud]:be,[Ri.GoogleCloudOTLP]:be,[Ri.GrafanaCloudLoki]:fe,[Ri.GrafanaCloudPrometheus]:fe,[Ri.GrafanaCloudTempo]:fe,[Ri.Greptime]:me,[Ri.Groundcover]:ge,[Ri.Honeycomb]:he,[Ri.HyperDX]:pe,[Ri.Instana]:ue,[Ri.Jaeger]:ce,[Ri.Kafka]:m,[Ri.Kloudmate]:de,[Ri.Last9]:le,[Ri.Lightstep]:se,[Ri.LogzIo]:ae,[Ri.Loki]:oe,[Ri.Lumigo]:re,[Ri.Middleware]:ne,[Ri.NewRelic]:ie,[Ri.Observe]:te,[Ri.Odigos]:ee,[Ri.OdigosProfileDiagnostic]:ee,[Ri.OneUptime]:Z,[Ri.OpenObserve]:Q,[Ri.Opsverse]:q,[Ri.Oracle]:J,[Ri.OTLP]:Y,[Ri.OTLPHttp]:Y,[Ri.Prometheus]:K,[Ri.Qryn]:V,[Ri.QrynOss]:G,[Ri.Quickwit]:X,[Ri.S3]:W,[Ri.Seq]:H,[Ri.Signalfx]:B,[Ri.Signoz]:j,[Ri.Splunk]:B,[Ri.SplunkSapm]:B,[Ri.SplunkOtlp]:B,[Ri.SumoLogic]:z,[Ri.TelemetryHub]:F,[Ri.Tempo]:M,[Ri.Tingyun]:U,[Ri.Traceloop]:P,[Ri.Uptrace]:L,[Ri.VictoriaMetrics]:R,[Ri.VictoriaMetricsCloud]:R,[Ri.XRay]:D,[Ri.Pyroscope]:_}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xs=e=>({[xi.Namespace]:je,[xi.Source]:Be,[xi.Destination]:ze,[xi.Action]:u,[xi.InstrumentationRule]:Fe,[xi.SamplingRule]:Me,[xi.Recommendation]:Ue}[e]),Gs=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,Vs=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},Ks=e=>Vs(Gs(e)),Ys=(e,t,i)=>{const{extended:n,prioritizeDisplayName:r}=i||{};let o="",a="";switch(t){case xi.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case xi.Source:const i=e;o=i.id.name,a=i.serviceName||"";break;case xi.Action:const n=e;o=n.type,a=n.name||"";break;case xi.Destination:const r=e;o=r.destinationType.displayName,a=r.name;break;case xi.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):r&&a||o},Js=(e,t)=>{if(t===xi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},qs=e=>({[Mi.CodeAttributes]:Ve,[Mi.CustomInstrumentation]:Ge,[Mi.HeadersCollection]:Xe,[Mi.PayloadCollection]:We,[Mi.NetworkMetrics]:He,[Mi.UnknownType]:g}[e]||g),Qs=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wi.Unknown,Zs=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>Qs(e)!==wi.Ignored);if(!n.length)return wi.NoContainers;const r=n.find(e=>Qs(e)!==wi.Unknown);return r?Qs(r):wi.Unknown},el=(e,t,i)=>(t===xi.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},tl=e=>({[Vi.Logs]:Ye,[Vi.Metrics]:He,[Vi.Traces]:Ke,[Vi.Profiles]:ee}[e]),il=(e,t)=>Object.values(ja).reduce((i,n)=>Math.abs(t[n]-e)<Math.abs(t[i]-e)?n:i),nl=e=>e&&{[yi.K8s]:Ze,[yi.Vm]:Qe,[yi.Connector]:qe,[yi.AwsEcs]:Je}[e]||ee,rl=e=>e?{[yi.K8s]:"Kubernetes Cluster",[yi.Vm]:"Virtual Machine",[yi.Connector]:"Cloud Connector",[yi.AwsEcs]:"AWS ECS"}[e]:"Unknown",ol=(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(...ol(e,t,i)),r}):[]},al={"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"},sl=e=>{if(!e)return"";if(al[e])return al[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ll=(e,t)=>{if(t===xi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},dl=(e,t,i)=>{switch(i=i??"500",t){case Oi.Default:return e.v2.colors.purple[i];case Oi.Info:return e.v2.colors.blue[i];case Oi.Error:return e.v2.colors.red[i];case Oi.Warning:return e.v2.colors.yellow[i];case Oi.Success:return e.v2.colors.green[i];case Oi.Loading:case Oi.Disabled:case Oi.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},cl=e=>{switch(e){case Hi.Updating:case Wi.Pending:case Xi.ContainerCreating:case Gi.Waiting:return Oi.Info;case Hi.Healthy:case Wi.Succeeded:case Wi.Running:case Xi.Running:case Gi.Running:return Oi.Success;case Hi.Degraded:return Oi.Warning;case Hi.Failed:case Wi.Failed:case Xi.Error:case Xi.CrashLoopBackOff:case Xi.CreateContainerError:case Xi.CreateContainerConfigError:case Xi.ErrImagePull:case Xi.ErrImageNeverPull:case Xi.ImagePullBackOff:case Xi.InvalidImageName:case Xi.RegistryUnavailable:case Xi.NetworkNotReady:case Xi.OOMKilled:case Xi.ContainerCannotRun:case Gi.Terminated:case Xi.DeadlineExceeded:case Xi.StartError:return Oi.Error;case Hi.Down:case Xi.Completed:return Oi.Disabled;case Hi.Unknown:case Wi.Unknown:default:return Oi.Unknown}},ul=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,pl=n.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -56,12 +56,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,hl=n(Va)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,gl=({percentage:i})=>e(ul,{children:[t(pl,{}),"number"==typeof i?t(hl,{size:ja.M,weight:500,nowrap:!0,children:`${i}%`}):null]}),ml={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function fl(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return ml[n]?{value:t,unit:n}:{value:t,unit:"px"}}function bl(e){const t=fl(e);return`${t.value}${t.unit}`}const yl=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),vl=({loading:i=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!i)return null;const{value:p}=fl(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},b=(e,t)=>({position:"absolute",width:bl(1.5),height:bl(4),borderRadius:bl(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${yl} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},$l=n.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -69,7 +69,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,
|
|
72
|
+
`,wl=({scale:e,icon:i})=>{const n=o();return t($l,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t($l,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t($l,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t($l,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t($l,{$size:23*e,$color:"#50F6E8",children:t(i,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},Sl=434,xl=635,Cl=n.div`
|
|
73
73
|
width: ${434}px;
|
|
74
74
|
height: ${635}px;
|
|
75
75
|
display: flex;
|
|
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,
|
|
82
|
+
`,El=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Tl=()=>e(Cl,{children:[t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(El,{children:t(ee,{size:112})})]}),Ol=n.div`
|
|
88
88
|
width: ${({$size:e})=>e}px;
|
|
89
89
|
height: ${({$size:e})=>e}px;
|
|
90
90
|
border-radius: 100%;
|
|
@@ -92,7 +92,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Nl=({scale:e=1,icon:i})=>{const n=o();return t(Ol,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Ol,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Ol,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Ol,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Ol,{$size:39*e,$color:n.v2.colors.purple[500],children:t(i,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Al=n.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as 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
|
+
`,kl=n.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,9 +112,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,Il=n.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,_l=n.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -126,7 +126,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
126
126
|
margin: ${({$margin:e="unset"})=>e};
|
|
127
127
|
padding: ${({$padding:e="unset"})=>e};
|
|
128
128
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,
|
|
129
|
+
`,Dl=n.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,19 +138,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
138
138
|
margin: ${({$margin:e="unset"})=>e};
|
|
139
139
|
padding: ${({$padding:e="unset"})=>e};
|
|
140
140
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,
|
|
141
|
+
`,Rl=n(Dl)`
|
|
142
142
|
width: ${({$width:e})=>e||"100%"};
|
|
143
143
|
height: ${({$height:e})=>e||"unset"};
|
|
144
144
|
padding: ${({$padding:e})=>e||"unset"};
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
147
147
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
148
|
-
`,
|
|
148
|
+
`,Ll=n.div`
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
padding: 12px;
|
|
152
152
|
overflow-y: scroll;
|
|
153
|
-
`,
|
|
153
|
+
`,Pl=n.div`
|
|
154
154
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
155
155
|
top: 0;
|
|
156
156
|
left: 0;
|
|
@@ -163,37 +163,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
163
163
|
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
164
164
|
background: rgba(0, 0, 0, 0.6);
|
|
165
165
|
backdrop-filter: blur(2px);
|
|
166
|
-
`,
|
|
166
|
+
`,Ul=n.div`
|
|
167
167
|
width: 800px;
|
|
168
168
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
169
169
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
170
170
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
171
171
|
padding: 0 2px;
|
|
172
172
|
overflow-y: scroll;
|
|
173
|
-
`,
|
|
173
|
+
`,Ml=n(Dl)`
|
|
174
174
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
175
|
width: 100%;
|
|
176
|
-
`,
|
|
176
|
+
`,Fl=n(_l)`
|
|
177
177
|
gap: 16px;
|
|
178
178
|
padding: 16px;
|
|
179
|
-
`,
|
|
179
|
+
`,zl=n.div`
|
|
180
180
|
width: 100%;
|
|
181
181
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
182
182
|
overflow-y: auto;
|
|
183
|
-
`,
|
|
183
|
+
`,Bl=a`
|
|
184
184
|
0% {
|
|
185
185
|
background-position: 0% 50%;
|
|
186
186
|
}
|
|
187
187
|
100% {
|
|
188
188
|
background-position: 100% 50%;
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,jl=n(Va)`
|
|
191
191
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
192
192
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
193
193
|
background-clip: text;
|
|
194
194
|
color: transparent;
|
|
195
|
-
animation: ${
|
|
196
|
-
`,zl=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")}`},Bl=({icon:i,title:n,titleColor:r,titleSize:a=za.S,subTitle:s,subTitleColor:l,subTitleSize:d=za.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=Ht(()=>c?zl(c):"");Wt(()=>{if(!c)return;w(zl(c));const e=setInterval(()=>w(zl(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(kl,{$gap:16,$alignItems:"center",children:[b?t(yl,{scale:1.7,icon:y}):h?t(ul,{percentage:f}):g?t(fl,{scale:m}):null,(n||s||c||i||u)&&e(kl,{$gap:8,$alignItems:"center",children:[e(Al,{$gap:4,children:[i&&t(i,{}),u?t(Fl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Xa,{align:"center",size:a,color:S,children:n}):null]}),s?t(Xa,{align:"center",size:d,color:x,children:s}):null,$?t(Xa,{align:"center",size:d,color:S,children:$}):null]})]})},jl=(e,t)=>({[Oi.Default]:i=>ee({fill:al(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:al(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:al(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:al(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:al(t,e,"500"),...i}),[Oi.Loading]:e=>Bl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:al(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:al(t,e,"300"),...i})}[e]),Hl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Wl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Xl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Gl={sts:bt,dynamodb:ft,s3:W,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Vl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Xl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Xl[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=Gl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xl))if(o.includes(e))return t;return ze},Kl=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}},Yl=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=as(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},Jl=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Oi.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function ql(e){if(!e||0===e.length)return null;const t=[],i=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",o=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&i.push(a),s&&n.push(s)}return 0===t.length&&0===i.length&&0===n.length?null:{sources:t,namespaces:i,languages:n}}function Ql(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 Zl(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:ql(t??null)}}function ed(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:Ql(t??null)}}const td=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),id=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),nd=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},rd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},od=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ad=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,sd=e=>ad.test(e),ld=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:Ma(t),reason:i?Ma(i):"",message:n}))||[],dd=(e,t)=>{const i=as(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}))},cd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],ud=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],pd=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},hd=e=>e.replace(/[^\d]/g,""),gd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},md=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},fd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},bd={0:"",1:"OK",2:"ERROR"};class yd{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 yd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const vd=e=>{if(!e||0===e.length)return;let t="";for(let i=0;i<e.length;i++)t+=e[i].toString(16).padStart(2,"0");return t},$d=e=>{let t="";for(;e.remaining>0;){const i=e.readTag();if(!i)break;switch(i.field){case 1:if(2!==i.wire){e.skip(i.wire);break}t=e.readString()??"";break;case 2:if(0!==i.wire){e.skip(i.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==i.wire){e.skip(i.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==i.wire){e.skip(i.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&r.push($d(e))}else n.skip(e.wire)}t=`[${r.join(", ")}]`;break}case 6:{if(2!==i.wire){e.skip(i.wire);break}const n=e.readMessage();if(!n)break;const r=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=wd(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=vd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},wd=e=>{const t={};for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire)t.key=e.readString()??void 0;else if(2===i.field&&2===i.wire){const i=e.readMessage();t.value=i?$d(i):void 0}else e.skip(i.wire)}return t},Sd=(e,t)=>{const i=e.readMessage();if(!i)return;const n=wd(i);void 0===n.key&&void 0===n.value||t.push(n)},xd=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},Cd=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?Sd(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Ed=(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=vd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=vd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=vd(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?Sd(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Cd(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=xd(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Td=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=wd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},Od=e=>{let t,i;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?i=e.readString()??void 0:e.skip(n.wire)}if(t)return i?`${t}@${i}`:t},Nd=(e,t)=>{let i;const n=[];for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const t=e.readMessage();t&&(i=Od(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Ed(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},Ad=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=Td(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Nd(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},kd=e=>({key:e.key??null,value:e.value??null}),Id=e=>{if(!e.length)return[];const t=new Map;for(const i of e)i.spanId&&t.set(i.spanId,i);const i=new Map,n=[];for(const r of e){const e=r.parentSpanId;if(e&&t.has(e)){const t=i.get(e)??[];t.push(r),i.set(e,t)}else n.push(r)}n.sort((e,t)=>{const i=e.startUnixNano??0n,n=t.startUnixNano??0n;return i<n?-1:i>n?1:0});const r=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>r?n-r:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?bd[e.statusCode]??null:null,u=(e.attrs??[]).map(kd);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(kd)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?fd[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)})},Dd=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new yd(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(...Ad(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Id(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},_d=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}},Rd=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=>Rd(e)))}else if("object"==typeof n&&null!==n){const e=Rd(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Ld=(e,t=2)=>JSON.stringify(e||{},null,t),Pd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ud=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Md=ri("v1.33"),Fd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],zd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<Md},Bd=ri("v1.20"),jd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Bd},Hd=e=>e?Fd.map(t=>e[t]??null):[],Wd={PID:"process.pid",VPID:"process.vpid"},Xd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Gd=[{id:wi.Go,label:Xd[wi.Go],icon:Ls(wi.Go)},{id:wi.Java,label:Xd[wi.Java],icon:Ls(wi.Java)},{id:wi.JavaScript,label:Xd[wi.JavaScript],icon:Ls(wi.JavaScript)},{id:wi.Python,label:Xd[wi.Python],icon:Ls(wi.Python)},{id:wi.Php,label:Xd[wi.Php],icon:Ls(wi.Php)},{id:wi.Ruby,label:Xd[wi.Ruby],icon:Ls(wi.Ruby)},{id:wi.Rust,label:Xd[wi.Rust],icon:Ls(wi.Rust)},{id:wi.DotNet,label:Xd[wi.DotNet],icon:Ls(wi.DotNet)},{id:wi.CSharp,label:Xd[wi.CSharp],icon:Ls(wi.CSharp)},{id:wi.CPlusPlus,label:Xd[wi.CPlusPlus],icon:Ls(wi.CPlusPlus)},{id:wi.Swift,label:Xd[wi.Swift],icon:Ls(wi.Swift)},{id:wi.Elixir,label:Xd[wi.Elixir],icon:Ls(wi.Elixir)}],Vd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},Kd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Ls(wi.Go)},Vd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Ls(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Ls(wi.JavaScript)},Vd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Ls(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Ls(wi.Python)},Vd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Ls(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Ls(wi.Java)},Vd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Ls(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Ls(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Ls(wi.DotNet)},Vd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Ls(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Ls(wi.Ruby)},Vd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Ls(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Ls(wi.Php)},Vd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Ls(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Ls(wi.MySql)}]},[wi.CPlusPlus]:{community:[Vd],enterprise:[]},[wi.Rust]:{community:[Vd],enterprise:[]},[wi.Swift]:{community:[Vd],enterprise:[]},[wi.Elixir]:{community:[Vd],enterprise:[]},[wi.Nginx]:{community:[Vd],enterprise:[]},[wi.Postgres]:{community:[Vd],enterprise:[]},[wi.Redis]:{community:[Vd],enterprise:[]},[wi.Kafka]:{community:[Vd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Vd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Yd="*",Jd=e=>!!e?.includes(Yd),qd=e=>e?.length?Jd(e)?[Yd]:e:[],Qd=e=>{if(e?.length&&!Jd(e))return e.filter(e=>e!==Yd)},Zd=e=>e===Yd?"All languages":Xd[e]??e,ec=e=>e===Yd?vt:Ls(e),tc=ri("v1.26"),ic=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=tc},nc=[Mi.NetworkMetrics],rc=e=>!nc.includes(e),oc=[{type:Mi.CodeAttributes,icon:Ks(Mi.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:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:Ks(Mi.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:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:Ks(Mi.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:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:Ks(Mi.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:[wi.Go,wi.JavaScript]}],ac=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Ks(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},sc="Recommendations",lc="Optimize your observability setup with actionable recommendations.",dc="Recommended",cc="Applied",uc="Dismissed",pc="Not applicable",hc={[wn.Recommended]:dc,[wn.Applied]:cc,[wn.Dismissed]:uc,[wn.NotApplicable]:pc},gc="Accept",mc="Dismiss",fc="Restore",bc="Docs",yc="Benefits",vc="Considerations",$c="Apply Recommendation",wc="Apply via UI",Sc="Apply via GitOps",xc="Via UI",Cc="Via GitOps",Ec="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Tc="There are 2 ways to apply this recommendation.",Oc="Odigos applies the selected change immediately.",Nc="Commit the configuration to your repository and let your GitOps controller apply it.",Ac="UI changes apply only to this cluster and will not carry over if you re-install odigos.",kc="No recommendations",Ic="There are no recommendations for this cluster right now.",Dc="This recommendation does not currently apply to your cluster.",_c="Recommendation dismissed",Rc="Recommendation restored",Lc="Recommendation applied successfully",Pc="Failed to apply recommendation",Uc={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.'},Mc={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."},Fc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},zc="Cancel",Bc="Save",jc="Edit rule",Hc="Edit auto rule",Wc="Create rule",Xc="Delete rule",Gc="Save",Vc="Create your first rule",Kc="No Rules Exist",Yc="No Results",Jc=e=>`No rules match the search term "${e}"`,qc="Rule name",Qc="Rule type",Zc="Select the type of condition that makes a trace highly relevant.",eu="Rule Enabled",tu="Rule Disabled",iu="Enabled",nu="Disabled",ru="Note",ou="HTTP route",au="Method",su="Keep Percentage",lu="Keep traces with duration larger than",du="Keep traces with errors",cu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",uu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",pu="Custom percentage",hu="Disabled rule",gu="Sample",mu="Keep all",fu="Drop all",bu="Operation type",yu="HTTP route prefix",vu="Templated path",$u="Templated path prefix",wu="Kafka topic",Su="Custom duration (ms)",xu="No preview available",Cu="Server address",Eu="Drop at most this percentage of matching traces",Tu="Unnamed rule",Ou="Sampling Preview",Nu="Source Scope",Au="Unknown source",ku="Operation",Iu="Duration",Du="Errors",_u="Keep Percentage",Ru="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Lu="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.",Pu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Uu="Retain traces with errors from the selected services and operations.",Mu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Fu="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",zu={highlyRelevant:Mu,noisy:Fu,costReduction:void 0},Bu="Type rule name",ju="Add note here...",Hu="Type here",Wu="Search source name",Xu="e.g. collector.my.vendor.com",Gu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Vu="Rule will apply to all sources in the cluster",Ku="If multiple source scopes are set, they must all match simultaneously.",Yu="All sources",Ju="-",qu="All",Qu="Sources",Zu="Namespaces",ep="Languages",tp="any of",ip="AND",np="All operations",rp="HTTP server endpoint",op="HTTP client endpoint",ap="Kafka consumer",sp="Kafka producer",lp="Sampling Rules",dp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',cp="Refresh",up="Create rule",pp="Sampling docs",hp="75vw",gp="Delete rule?",mp="Are you sure you want to delete this sampling rule?",fp="Delete",bp="Cancel",yp="Kubernetes Health Probes",vp="Keep All Error Traces",$p="Drop Traces Cluster-Wide",wp="A rule with the same matching conditions already exists.",Sp="Create this rule as-is?",xp="This rule still uses the default configuration.\nDo you want to create it anyway?",Cp="Rule preview",Ep="Continue editing",Tp="Create 'Noisy Operation Kubernetes Health Probes' rule",Op="Edit 'Noisy Operation Kubernetes Health Probes' rule",Np="Automatically detect and sample health probe traces across the cluster.",Ap="Create 'Highly Relevant Operations' rule",kp="Edit 'Highly Relevant Operations' rule",Ip="Automatically keep all error traces across the entire cluster.",Dp="Create 'Cost Reduction' rule",_p="Edit 'Cost Reduction' rule",Rp="Automatically drop a percentage of traces across the entire cluster.",Lp="Skip setup",Pp="Start setup",Up="Next",Mp="Go to Sampling",Fp="Read more",zp="Welcome to Sampling",Bp="Cut costs without losing what matters",jp="Odigos sampling works in three stages:",Hp="Filter noisy traffic",Wp="Remove non-actionable traces like health checks.",Xp="Guarantee highly relevance operations",Gp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Vp="Reduce cost",Kp="Sample routine traffic using percentages.",Yp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Jp="Filter noisy operations",qp="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Qp="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.",Zp="Preset Rules",eh="Kubernetes Health Probes",th="Automatically ignore health checks",ih="You can review, adjust, and add additional custom rules later.",nh="Choose your sampling strategy",rh="Pick the approach that best fits your balance of cost vs data-completeness",oh="Keep List",ah="Budget Friendly",sh="Define which traces must be kept, while all others are sampled by default to minimize cost.",lh="Cost-oriented - keeps only what you explicitly select.",dh="Best for very large clusters with high volumes of traces and high costs.",ch="Higher risk of missing important traces without ongoing review.",uh="Drop List",ph="Safe Choice",hh="Define which traces must be aggressively dropped, while all others are kept by default.",gh="Preserves most data unless explicitly filtered.",mh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",fh="Advanced",bh="Maximum Flexibility",yh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",vh="'Keep List' profile",$h="Protect important traces",wh="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:",Sh="Traces with errors",xh="Slow requests (duration above threshold)",Ch="Mission-Critical endpoints or services",Eh="Services under test or evaluation",Th="New deployments",Oh="You can review, adjust, and add rules once onboarding is complete.",Nh="Common Rules",Ah="Preset Rules",kh="Error collection - entire cluster",Ih="Keep all traces with errors",Dh="Ambient sampling percentage",_h="'Drop List' profile",Rh="Reduce high-volume traffic",Lh="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.",Ph="Advanced Configuration",Uh="Configure sampling rules",Mh="Advanced mode allows you to configure all sampling categories:",Fh="Noise Filtering - remove non-actionable traces",zh="Highly Relevance - guarantee important traces are kept",Bh='Cost Control - drop traces for "Normal" operations',jh="Rules can target:",Hh="Services",Wh="HTTP Endpoints",Xh="DB Operations",Gh="Errors",Vh="Latency and more...",Kh="Sampling configured successfully!",Yh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Jh="Odigos will now:",qh="Filter noisy operations",Qh="Guarantee important traces",Zh="Reduce cost using controlled sampling",eg="Recommended",tg={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},ig={noisy:Tp,highlyRelevant:Ap,costReduction:Dp},ng={noisy:Op,highlyRelevant:kp,costReduction:_p},rg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},og=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],ag=6048e5,sg="URL templatization",lg="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",dg="Default templatization",cg="Custom and default URL templatization scopes across URL templatization actions.",ug="Default templatization is not enabled",pg="Automatically detect and templatize dynamic URL segments when no custom template matches.",hg="Enable for entire cluster",gg="Custom URL templates",mg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",fg="View by:",bg="Groups",yg="Tree",vg="List",$g="Create templating scope",wg="Edit scoped templates",Sg="Edit",xg="Add template",Cg="Add templatization rules",Eg="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Tg="Add templatization rule",Og="Choose how to templatize dynamic URLs",Ng="Reduce route cardinality by replacing changing path segments with reusable placeholders.",Ag="Before",kg="After",Ig="/users/123/orders/456",Dg="/users/{id}/orders/{orderId}",_g="Automatic templatization",Rg="Recommended",Lg="Detect and templatize dynamic URL segments when no custom rule matches.",Pg="Applies to: Entire cluster",Ug="Reversible at any time",Mg="Enabled",Fg="Need more control?",zg="Create a custom rule for specific URL patterns.",Bg="Create custom rule",jg="Learn how it works",Hg="Docs",Wg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Xg="Default templatization is enabled — editor coming next.",Gg="746px",Vg="Add default templatization rule",Kg="Edit default templatization rule",Yg="Disable for a scope",Jg="UI template rules",qg="Source Scope",Qg="Scope",Zg="Choose which sources this template rule applies to.",em="Sources where this template is tested and applied.",tm="This rule will apply to all sources in the cluster.",im="Default templatization",nm="Automatically templatize dynamic URL segments when no custom template matches.",rm="Enable automatic URL templatization for this scope",om=["This disables only the default (heuristic) templatization for the selected scope. Custom templates are still checked and applied when they match.","Sources that are not disabled by any rule continue to use all default heuristic templatization rules."],am="default templatization for this scope",sm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",lm="Disable",dm="Skip policy",cm="Advanced",um=["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."],pm=um.join(" "),hm="Skip default templatization for all non-2xx responses",gm="Skip default templatization for specific HTTP status codes",mm="Example: 404, 401",fm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",bm="This rule will take effect in the cluster immediately after it is added.",ym="This rule will take effect in the cluster immediately after it is saved.",vm="No template changes. Save will keep the current templates.";function $m(e,t){const i=[];return e>0&&i.push(1===e?"1 template will be added":`${e} templates will be added`),t>0&&i.push(1===t?"1 template will be removed":`${t} templates will be removed`),i.length?`On Save, ${i.join(" and ")}. Changes take effect immediately.`:vm}const wm="Add rule",Sm="Save",xm="Cancel",Cm="Cancel without saving",Em="Delete",Tm="templating scope";function Om(e){return e<=0?"Are you sure you want to delete this templating scope? This cannot be undone.":`Are you sure? This templating scope has ${1===e?"1 template":`${e} templates`}. They will be deleted permanently.`}const Nm="Enter valid HTTP status codes between 100 and 599, separated by commas.",Am="Create custom template",km="Create new scoped template",Im="Add URL templates",Dm="UI template rules",_m=e=>`To ${e}`,Rm=e=>`Applies to ${e} source${1===e?"":"s"}`,Lm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Pm=e=>`Applies to ${e} language${1===e?"":"s"}`,Um="Applies to entire cluster",Mm=e=>`Applies to ${e} scope${1===e?"":"s"}`,Fm="Where should this rule apply?",zm=Fm,Bm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",jm="Specific scope",Hm="Entire cluster",Wm="Apply the rule only where it is needed.",Xm="Apply to every source in this cluster.",Gm="Quick start",Vm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",Km="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Ym="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Jm="Simplest setup, but less efficient. This template is evaluated against every request in the cluster. Prefer a specific scope when you know where it should apply.",qm="Simplest setup, but less efficient. These templates are evaluated against every request in the cluster. Prefer a specific scope when you know where they should apply.",Qm="Add to existing template group",Zm="Create new template group",ef="Add here",tf="Create New",nf="Existing templating scope",rf="Templating scopes",of="Select where to add the new template",af="A template group already uses this scope",sf="Choose where to add the new templates.",lf="Add to existing template group",df="Create a separate template group",cf="Use different settings or behavior for the same scope.",uf="View action settings",pf="Default settings",hf=e=>nf,gf=e=>1===e?"1 template":`${e} templates`,mf="Templating scope",ff=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,bf="Template group will be added to the default action. Expand Select action to choose a different one.",yf="Select action",vf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",$f="Advanced settings",wf="Default UI-managed action · Recommended",Sf="Create a new action",xf="Select action",Cf="Default UI-managed action",Ef="Add this template group to the default UI-managed action.",Tf="Select action",Of="Choose an existing action or create a new one for this template group.",Nf="Search template group by type action name or scope (languages, namespaces, sources)",Af="Selected Template group:",kf="URL templatization action",If="Create new action",Df="__odigos_create_new_url_templatization_action__",_f=Of,Rf="New action name",Lf="New action group",Pf="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.",Uf="Create new template group",Mf="Next",Ff="Back",zf="Action name",Bf="Action",jf="UI template rules",Hf="__odigos_default_url_templatization_action__",Wf="UI-owned",Xf="Externally synced",Gf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Vf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],Kf=Wf,Yf="Templates",Jf="Other templates in this group",qf="Additional templates that share the same source scope and Action as this rule.",Qf="e.g. /api/users/{id}",Zf="Language",eb="Namespace",tb="Source",ib="AND",nb="Entire cluster",rb="Unset",ob="Enabled globally",ab="Default templating disabled",sb="Enabled",lb="Default templatization is unset. No default rules are configured on an enabled action.",db="Default templatization is enabled globally.",cb="Default templatization is disabled for the entire cluster.";function ub(e){return e<=0?db:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const pb="Disabled for these scopes",hb="Disable for a scope",gb="Delete",mb="disabled scope",fb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",bb="Automatic templatization",yb="Active",vb="Custom and default URL templatization scopes across URL templatization actions.",$b="Custom templates take precedence over automatic templatization.",wb="Scope",Sb="Status codes",xb="Disabled",Cb="Entire cluster",Eb="All",Tb="None",Ob="Disabled",Nb="No disabled scope configured",Ab="Add disabled",kb="Disabled scopes",Ib="Advanced",Db=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,_b="Automatic templatization off for matching traffic.",Rb="Disable for a scope",Lb="Scope",Pb="Effective behavior",Ub="Status",Mb="Automatic templatization off",Fb="Covered by broader exception",zb="Disabled",Bb="Redundant",jb="No disabled scope configured",Hb="Disable automatic templatization for specific scopes when needed.",Wb=(e,t)=>`${e} configured • ${t} effective`,Xb=e=>1===e?"1 scope":`${e} scopes`,Gb="Default templatization is enabled for all HTTP status codes.";function Vb(e){return e<=0?Gb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const Kb="HTTP status code policies",Yb="No skip policy configured",Jb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",qb="Add skip policy for a scope",Qb="Add skip policy for a scope",Zb="Skip default templatization on HTTP errors",ey="Delete",ty="skip policy",iy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",ny="Template details",ry="Template",oy="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",ay="Created via",sy="Action name",ly="Kubernetes name",dy="Odigos Action (Kubernetes resource) where this template is managed.",cy="Try a URL",uy="/users/12/orders/345685335358",py="Test URL",hy="Close",gy="Result",my="Templated URL path",fy="Match found",by="This URL matches the template.",yy="No match",vy="This URL doesn't match the template.",$y="Check the URL structure and parameter positions, then try again.",wy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Va},Sy=Ft(e=>({...wy,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(wy)}));var xy;(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"})(xy||(xy={}));const Cy=e=>`add-${Ma(e).replaceAll(" ","-").toLowerCase()}`,Ey=e=>`edit-${Ma(e).replaceAll(" ","-").toLowerCase()}`,Ty=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Oy=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Ny=Ft(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Oy})),Ay=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var ky;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(ky||(ky={}));const Iy=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Dy=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),_y=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Iy();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]:Dy(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Iy(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]:Dy(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ry=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ly={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Py=(e,t)=>e.destinationType.type!==t.destinationType.type,Uy=Ft(e=>({...Ly,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=>Py(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=>Py(e,t))})),clearStore:()=>e(()=>({...Ly}))})),My=e=>{function t(){return void 0===e?{}:ys(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(t()),l=Xt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Gt(()=>!d(a,i),[a,i]);Wt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>vs("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=ys(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=ys(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}},Fy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},zy=()=>{const{addNotification:e}=Ay(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=My(Fy);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":td(t)&&(n[e]=qa.FIELD_IS_REQUIRED)}}),t.type===oi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=qa.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Oi.Warning,title:i.alertTitle,message:qa.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:r,disabled:o,fields:a})=>{const s={...ys(Fy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.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 si.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 si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},By=e=>{Wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},jy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Wt(()=>{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}},Hy="data-ignore-outside-click",Wy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Hy))return!0;t=t.parentNode}return!1},Xy=(e,t)=>{const i=Vt(t);i.current=t,Wt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Wy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Gy=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Xy(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})}}},Vy=n.div`
|
|
195
|
+
animation: ${Bl} 1s reverse linear infinite;
|
|
196
|
+
`,Hl=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")}`},Wl=({icon:i,title:n,titleColor:r,titleSize:a=ja.S,subTitle:s,subTitleColor:l,subTitleSize:d=ja.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=Ht(()=>c?Hl(c):"");Wt(()=>{if(!c)return;w(Hl(c));const e=setInterval(()=>w(Hl(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(Dl,{$gap:16,$alignItems:"center",children:[b?t(wl,{scale:1.7,icon:y}):h?t(gl,{percentage:f}):g?t(vl,{scale:m}):null,(n||s||c||i||u)&&e(Dl,{$gap:8,$alignItems:"center",children:[e(_l,{$gap:4,children:[i&&t(i,{}),u?t(jl,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(Va,{align:"center",size:a,color:S,children:n}):null]}),s?t(Va,{align:"center",size:d,color:x,children:s}):null,$?t(Va,{align:"center",size:d,color:S,children:$}):null]})]})},Xl=(e,t)=>({[Oi.Default]:i=>ee({fill:dl(t,e,"300"),...i}),[Oi.Info]:i=>rt({fill:dl(t,e,"400"),...i}),[Oi.Error]:i=>nt({fill:dl(t,e,"500"),...i}),[Oi.Warning]:i=>it({fill:dl(t,e,"500"),...i}),[Oi.Success]:i=>p({fill:dl(t,e,"500"),...i}),[Oi.Loading]:e=>Wl({withSpinnerOld:!0,...e}),[Oi.Disabled]:i=>h({fill:dl(t,e,"400"),...i}),[Oi.Unknown]:i=>tt({fill:dl(t,e,"300"),...i})}[e]),Gl=e=>{switch(e){case Ui.Success:return Oi.Success;case Ui.Error:case Ui.Failure:return Oi.Error;case Ui.Notice:return Oi.Warning;case Ui.Unsupported:case Ui.Unknown:return Oi.Info;case Ui.Irrelevant:case Ui.Disabled:return Oi.Disabled;case Ui.Waiting:return Oi.Loading;case Ui.Pending:default:return Oi.Default}},Vl=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Kl={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Yl={sts:bt,dynamodb:ft,s3:W,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Jl=e=>{const t=e.attributes,i=t["db.system"];if(i){const e=Kl[i.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Kl[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=Yl[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Kl))if(o.includes(e))return t;return ze},ql=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}},Ql=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ls(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},Zl=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Oi.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1};function ed(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 td(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 id(e){const{sourcesScopes:t,...i}=e;return{...i,sourceScopes:ed(t??null)}}function nd(e){const{sourceScopes:t,...i}=e;return{...i,sourcesScopes:td(t??null)}}const rd=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),od=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ad=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},sd=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ld=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,dd=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,cd=e=>dd.test(e),ud=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e?.toLowerCase(),type:za(t),reason:i?za(i):"",message:n}))||[],pd=(e,t)=>{const i=ls(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}))},hd=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zi[e]):[],gd=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zi[e]):[],md=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},fd=e=>e.replace(/[^\d]/g,""),bd=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},yd=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},vd={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},$d={0:"",1:"OK",2:"ERROR"};class wd{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 wd(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const Sd=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},xd=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(xd(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=Cd(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=Sd(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${r}…`:r;break}default:e.skip(i.wire)}}return t},Cd=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?xd(i):void 0}else e.skip(i.wire)}return t},Ed=(e,t)=>{const i=e.readMessage();if(!i)return;const n=Cd(i);void 0===n.key&&void 0===n.value||t.push(n)},Td=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},Od=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?Ed(e,t.attrs):e.skip(i.wire);break;default:e.skip(i.wire)}}return t},Nd=(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=Sd(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=Sd(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=Sd(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?Ed(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(Od(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Td(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ad=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=Cd(i);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(i.wire)}return t},kd=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},Id=(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=kd(t))}else if(2===r.field&&2===r.wire){const r=e.readMessage();r&&n.push(Nd(r,t,i))}else e.skip(r.wire)}for(const e of n)!e.scope&&i&&(e.scope=i);return n},_d=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=Ad(i))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&i.push(...Id(n,t))}else e.skip(n.wire)}for(const e of i)!e.service&&t&&(e.service=t);return i},Dd=e=>({key:e.key??null,value:e.value??null}),Rd=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?$d[e.statusCode]??null:null,u=(e.attrs??[]).map(Dd);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(Dd)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?vd[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)})},Ld=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const i="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const i=(e=>{const t=new wd(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(..._d(e))}else t.skip(e.wire)}return i})(t);return i.length?{spans:Rd(i),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Pd=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}},Ud=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=>Ud(e)))}else if("object"==typeof n&&null!==n){const e=Ud(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},Md=(e,t=2)=>JSON.stringify(e||{},null,t),Fd=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),zd=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),Bd=ri("v1.33"),jd=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Hd=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return i>0&&i<Bd},Wd=ri("v1.20"),Xd=(e,t)=>{if(e!==yi.K8s)return!0;const i=ri(t);return!(i>0)||i>=Wd},Gd=e=>e?jd.map(t=>e[t]??null):[],Vd={PID:"process.pid",VPID:"process.vpid"},Kd={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Yd=[{id:wi.Go,label:Kd[wi.Go],icon:Ms(wi.Go)},{id:wi.Java,label:Kd[wi.Java],icon:Ms(wi.Java)},{id:wi.JavaScript,label:Kd[wi.JavaScript],icon:Ms(wi.JavaScript)},{id:wi.Python,label:Kd[wi.Python],icon:Ms(wi.Python)},{id:wi.Php,label:Kd[wi.Php],icon:Ms(wi.Php)},{id:wi.Ruby,label:Kd[wi.Ruby],icon:Ms(wi.Ruby)},{id:wi.Rust,label:Kd[wi.Rust],icon:Ms(wi.Rust)},{id:wi.DotNet,label:Kd[wi.DotNet],icon:Ms(wi.DotNet)},{id:wi.CSharp,label:Kd[wi.CSharp],icon:Ms(wi.CSharp)},{id:wi.CPlusPlus,label:Kd[wi.CPlusPlus],icon:Ms(wi.CPlusPlus)},{id:wi.Swift,label:Kd[wi.Swift],icon:Ms(wi.Swift)},{id:wi.Elixir,label:Kd[wi.Elixir],icon:Ms(wi.Elixir)}],Jd={id:Pi.OpentelemetryEbpfInstrumentation,label:Pi.OpentelemetryEbpfInstrumentation,icon:yt},qd={[wi.Go]:{community:[{id:Pi.GolangCommunity,label:Pi.GolangCommunity,icon:Ms(wi.Go)},Jd],enterprise:[{id:Pi.GolangEnterprise,label:Pi.GolangEnterprise,icon:Ms(wi.Go)}]},[wi.JavaScript]:{community:[{id:Pi.NodejsCommunity,label:Pi.NodejsCommunity,icon:Ms(wi.JavaScript)},Jd],enterprise:[{id:Pi.NodejsEnterprise,label:Pi.NodejsEnterprise,icon:Ms(wi.JavaScript)}]},[wi.Python]:{community:[{id:Pi.PythonCommunity,label:Pi.PythonCommunity,icon:Ms(wi.Python)},Jd],enterprise:[{id:Pi.PythonEnterprise,label:Pi.PythonEnterprise,icon:Ms(wi.Python)}]},[wi.Java]:{community:[{id:Pi.JavaCommunity,label:Pi.JavaCommunity,icon:Ms(wi.Java)},Jd],enterprise:[{id:Pi.JavaEnterprise,label:Pi.JavaEnterprise,icon:Ms(wi.Java)},{id:Pi.JavaEbpfInstrumentations,label:Pi.JavaEbpfInstrumentations,icon:Ms(wi.Java)}]},[wi.DotNet]:{community:[{id:Pi.DotNetCommunity,label:Pi.DotNetCommunity,icon:Ms(wi.DotNet)},Jd],enterprise:[{id:Pi.DotNetEnterprise,label:Pi.DotNetEnterprise,icon:Ms(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Pi.RubyCommunity,label:Pi.RubyCommunity,icon:Ms(wi.Ruby)},Jd],enterprise:[{id:Pi.RubyEnterprise,label:Pi.RubyEnterprise,icon:Ms(wi.Ruby)}]},[wi.Php]:{community:[{id:Pi.PhpCommunity,label:Pi.PhpCommunity,icon:Ms(wi.Php)},Jd],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Pi.CPlusPlusEnterprise,label:Pi.CPlusPlusEnterprise,icon:Ms(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Pi.MySqlEnterprise,label:Pi.MySqlEnterprise,icon:Ms(wi.MySql)}]},[wi.CPlusPlus]:{community:[Jd],enterprise:[]},[wi.Rust]:{community:[Jd],enterprise:[]},[wi.Swift]:{community:[Jd],enterprise:[]},[wi.Elixir]:{community:[Jd],enterprise:[]},[wi.Nginx]:{community:[Jd],enterprise:[]},[wi.Postgres]:{community:[Jd],enterprise:[]},[wi.Redis]:{community:[Jd],enterprise:[]},[wi.Kafka]:{community:[Jd],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[Jd],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Qd="*",Zd=e=>!!e?.includes(Qd),ec=e=>e?.length?Zd(e)?[Qd]:e:[],tc=e=>{if(e?.length&&!Zd(e))return e.filter(e=>e!==Qd)},ic=e=>e===Qd?"All languages":Kd[e]??e,nc=e=>e===Qd?vt:Ms(e),rc=ri("v1.26"),oc=(e,t)=>{if(e!==yi.K8s)return!1;const i=ri(t);return!(i>0)||i>=rc},ac=[Mi.NetworkMetrics],sc=e=>!ac.includes(e),lc=[{type:Mi.CodeAttributes,icon:qs(Mi.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:[wi.Go,wi.Python,wi.JavaScript]},{type:Mi.CustomInstrumentation,icon:qs(Mi.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:[wi.Go,wi.Java,wi.Php]},{type:Mi.HeadersCollection,icon:qs(Mi.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:[wi.Go,wi.Java,wi.JavaScript]},{type:Mi.PayloadCollection,icon:qs(Mi.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:[wi.Go,wi.JavaScript]}],dc=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:qs(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},cc="Recommendations",uc="Optimize your observability setup with actionable recommendations.",pc="Recommended",hc="Applied",gc="Dismissed",mc="Not applicable",fc={[wn.Recommended]:pc,[wn.Applied]:hc,[wn.Dismissed]:gc,[wn.NotApplicable]:mc},bc="Accept",yc="Dismiss",vc="Restore",$c="Docs",wc="Benefits",Sc="Considerations",xc="Apply Recommendation",Cc="Apply via UI",Ec="Apply via GitOps",Tc="Via UI",Oc="Via GitOps",Nc="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Ac="There are 2 ways to apply this recommendation.",kc="Odigos applies the selected change immediately.",Ic="Commit the configuration to your repository and let your GitOps controller apply it.",_c="UI changes apply only to this cluster and will not carry over if you re-install odigos.",Dc="No recommendations",Rc="There are no recommendations for this cluster right now.",Lc="This recommendation does not currently apply to your cluster.",Pc="Recommendation dismissed",Uc="Recommendation restored",Mc="Recommendation applied successfully",Fc="Failed to apply recommendation",zc={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.'},Bc={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."},jc={[hi.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hi.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hi.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Hc="Cancel",Wc="Save",Xc="Edit rule",Gc="Edit auto rule",Vc="Create rule",Kc="Delete rule",Yc="Save",Jc="Create your first rule",qc="No Rules Exist",Qc="No Results",Zc=e=>`No rules match the search term "${e}"`,eu="Rule name",tu="Rule type",iu="Select the type of condition that makes a trace highly relevant.",nu="Rule Enabled",ru="Rule Disabled",ou="Enabled",au="Disabled",su="Note",lu="HTTP route",du="Method",cu="Keep Percentage",uu="Keep traces with duration larger than",pu="Keep traces with errors",hu="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",gu="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",mu="Custom percentage",fu="Disabled rule",bu="Sample",yu="Keep all",vu="Drop all",$u="Operation type",wu="HTTP route prefix",Su="Templated path",xu="Templated path prefix",Cu="Kafka topic",Eu="Custom duration (ms)",Tu="No preview available",Ou="Server address",Nu="Drop at most this percentage of matching traces",Au="Unnamed rule",ku="Sampling Preview",Iu="Source Scope",_u="Unknown source",Du="Operation",Ru="Duration",Lu="Errors",Pu="Keep Percentage",Uu="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Mu="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.",Fu="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",zu="Retain traces with errors from the selected services and operations.",Bu="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",ju="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Hu={highlyRelevant:Bu,noisy:ju,costReduction:void 0},Wu="Type rule name",Xu="Add note here...",Gu="Type here",Vu="Search source name",Ku="e.g. collector.my.vendor.com",Yu="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ju="Rule will apply to all sources in the cluster",qu="If multiple source scopes are set, they must all match simultaneously.",Qu="All sources",Zu="-",ep="All",tp="Sources",ip="Namespaces",np="Languages",rp="any of",op="AND",ap="All operations",sp="HTTP server endpoint",lp="HTTP client endpoint",dp="Kafka consumer",cp="Kafka producer",up="Sampling Rules",pp='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',hp="Refresh",gp="Create rule",mp="Sampling docs",fp="75vw",bp="Delete rule?",yp="Are you sure you want to delete this sampling rule?",vp="Delete",$p="Cancel",wp="Kubernetes Health Probes",Sp="Keep All Error Traces",xp="Drop Traces Cluster-Wide",Cp="A rule with the same matching conditions already exists.",Ep="Create this rule as-is?",Tp="This rule still uses the default configuration.\nDo you want to create it anyway?",Op="Rule preview",Np="Continue editing",Ap="Create 'Noisy Operation Kubernetes Health Probes' rule",kp="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ip="Automatically detect and sample health probe traces across the cluster.",_p="Create 'Highly Relevant Operations' rule",Dp="Edit 'Highly Relevant Operations' rule",Rp="Automatically keep all error traces across the entire cluster.",Lp="Create 'Cost Reduction' rule",Pp="Edit 'Cost Reduction' rule",Up="Automatically drop a percentage of traces across the entire cluster.",Mp="Skip setup",Fp="Start setup",zp="Next",Bp="Go to Sampling",jp="Read more",Hp="Welcome to Sampling",Wp="Cut costs without losing what matters",Xp="Odigos sampling works in three stages:",Gp="Filter noisy traffic",Vp="Remove non-actionable traces like health checks.",Kp="Guarantee highly relevance operations",Yp="Keep traces with errors, high latency, or mission-critical endpoints/services.",Jp="Reduce cost",qp="Sample routine traffic using percentages.",Qp="Sampling does not drop individual spans - it keeps or drops the entire trace.",Zp="Filter noisy operations",eh="Cut traces with little or no observability value (health-checks, metric scarping, etc)",th="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.",ih="Preset Rules",nh="Kubernetes Health Probes",rh="Automatically ignore health checks",oh="You can review, adjust, and add additional custom rules later.",ah="Choose your sampling strategy",sh="Pick the approach that best fits your balance of cost vs data-completeness",lh="Keep List",dh="Budget Friendly",ch="Define which traces must be kept, while all others are sampled by default to minimize cost.",uh="Cost-oriented - keeps only what you explicitly select.",ph="Best for very large clusters with high volumes of traces and high costs.",hh="Higher risk of missing important traces without ongoing review.",gh="Drop List",mh="Safe Choice",fh="Define which traces must be aggressively dropped, while all others are kept by default.",bh="Preserves most data unless explicitly filtered.",yh="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",vh="Advanced",$h="Maximum Flexibility",wh="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Sh="'Keep List' profile",xh="Protect important traces",Ch="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:",Eh="Traces with errors",Th="Slow requests (duration above threshold)",Oh="Mission-Critical endpoints or services",Nh="Services under test or evaluation",Ah="New deployments",kh="You can review, adjust, and add rules once onboarding is complete.",Ih="Common Rules",_h="Preset Rules",Dh="Error collection - entire cluster",Rh="Keep all traces with errors",Lh="Ambient sampling percentage",Ph="'Drop List' profile",Uh="Reduce high-volume traffic",Mh="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.",Fh="Advanced Configuration",zh="Configure sampling rules",Bh="Advanced mode allows you to configure all sampling categories:",jh="Noise Filtering - remove non-actionable traces",Hh="Highly Relevance - guarantee important traces are kept",Wh='Cost Control - drop traces for "Normal" operations',Xh="Rules can target:",Gh="Services",Vh="HTTP Endpoints",Kh="DB Operations",Yh="Errors",Jh="Latency and more...",qh="Sampling configured successfully!",Qh="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Zh="Odigos will now:",eg="Filter noisy operations",tg="Guarantee important traces",ig="Reduce cost using controlled sampling",ng="Recommended",rg={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."},og={noisy:Ap,highlyRelevant:_p,costReduction:Lp},ag={noisy:kp,highlyRelevant:Dp,costReduction:Pp},sg={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},lg=[{id:Vi.Logs,value:"Logs"},{id:Vi.Metrics,value:"Metrics"},{id:Vi.Traces,value:"Traces"},{id:Vi.Profiles,value:"Profiles"}],dg=6048e5,cg="URL templatization",ug="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",pg="Default templatization",hg="Custom and default URL templatization scopes across URL templatization actions.",gg="Default templatization is not enabled",mg="Automatically detect and templatize dynamic URL segments when no custom template matches.",fg="Enable for entire cluster",bg="Custom URL templates",yg="Exact overrides when default templatization misses a route. Use when low cardinality matters — define patterns per templating scope.",vg="View by:",$g="Groups",wg="Tree",Sg="List",xg="Create templating scope",Cg="Edit scoped templates",Eg="Edit",Tg="Add template",Og="Add templatization rules",Ng="Define exact path patterns for routes default templatization misses — replace dynamic segments with placeholders like {id} or {orderId} (e.g. /users/{id}/orders/{orderId}).",Ag="Add templatization rule",kg="Choose how to templatize dynamic URLs",Ig="Reduce route cardinality by replacing changing path segments with reusable placeholders.",_g="Before",Dg="After",Rg="/users/123/orders/456",Lg="/users/{id}/orders/{orderId}",Pg="Automatic templatization",Ug="Recommended",Mg="Detect and templatize dynamic URL segments when no custom rule matches.",Fg="Applies to: Entire cluster",zg="Reversible at any time",Bg="Enabled",jg="Need more control?",Hg="Create a custom rule for specific URL patterns.",Wg="Create custom rule",Xg="Learn how it works",Gg="Docs",Vg="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Kg="Default templatization is enabled — editor coming next.",Yg="746px",Jg="Add default templatization rule",qg="Edit default templatization rule",Qg="Disable for a scope",Zg="UI template rules",em="Source Scope",tm="Scope",im="Choose which sources this template rule applies to.",nm="Sources where this template is tested and applied.",rm="This rule will apply to all sources in the cluster.",om="Default templatization",am="Automatically templatize dynamic URL segments when no custom template matches.",sm="Enable automatic URL templatization for this scope",lm=["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."],dm="default templatization for this scope",cm="Are you sure you want to disable default templatization for the selected scope? This takes effect in the cluster immediately.",um="Disable",pm="Skip policy",hm="Advanced",gm=["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."],mm=gm.join(" "),fm="Skip default templatization for all non-2xx responses",bm="Skip default templatization for specific HTTP status codes",ym="Example: 404, 401",vm="Comma-separated HTTP status codes between 100 and 599. Mutually exclusive with skipping all non-2xx responses.",$m="This rule will take effect in the cluster immediately after it is added.",wm="This rule will take effect in the cluster immediately after it is saved.",Sm="No template changes. Save will keep the current templates.";function xm(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.`:Sm}const Cm="Add rule",Em="Save",Tm="Cancel",Om="Cancel without saving",Nm="Delete",Am="templating scope";function km(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 Im="Enter valid HTTP status codes between 100 and 599, separated by commas.",_m="Create custom template",Dm="Create new scoped template",Rm="Add URL templates",Lm="UI template rules",Pm=e=>`To ${e}`,Um=e=>`Applies to ${e} source${1===e?"":"s"}`,Mm=e=>`Applies to ${e} namespace${1===e?"":"s"}`,Fm=e=>`Applies to ${e} language${1===e?"":"s"}`,zm="Applies to entire cluster",Bm=e=>`Applies to ${e} scope${1===e?"":"s"}`,jm="Where should this rule apply?",Hm=jm,Wm="Scope controls how often this template is evaluated. Prefer a specific scope when you can.",Xm="Specific scope",Gm="Entire cluster",Vm="Apply the rule only where it is needed.",Km="Apply to every source in this cluster.",Ym="Quick start",Jm="Apply the template only to relevant sources so it is not computed for the rest of the cluster.",qm="Applies everywhere — simplest to add, but the template is computed for all sources, including irrelevant ones.",Qm="Recommended. Add to an existing group or create a new one with its own scope. The template runs only for matching traffic — more efficient.",Zm="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.",ef="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.",tf="Add to existing template group",nf="Create new template group",rf="Add here",of="Create New",af="Existing templating scope",sf="Templating scopes",lf="Select where to add the new template",df="A template group already uses this scope",cf="Choose where to add the new templates.",uf="Add to existing template group",pf="Create a separate template group",hf="Use different settings or behavior for the same scope.",gf="View action settings",mf="Default settings",ff=e=>af,bf=e=>1===e?"1 template":`${e} templates`,yf="Templating scope",vf=(e,t)=>`${1===e?"1 scope":`${e} scopes`} · ${1===t?"1 template":`${t} templates`}`,$f="Template group will be added to the default action. Expand Select action to choose a different one.",wf="Select action",Sf="Rules live on an Odigos action. Use one per team, namespace, or pipeline, or create a new action.",xf="Advanced settings",Cf="Default UI-managed action · Recommended",Ef="Create a new action",Tf="Select action",Of="Default UI-managed action",Nf="Add this template group to the default UI-managed action.",Af="Select action",kf="Choose an existing action or create a new one for this template group.",If="Search template group by type action name or scope (languages, namespaces, sources)",_f="Selected Template group:",Df="URL templatization action",Rf="Create new action",Lf="__odigos_create_new_url_templatization_action__",Pf=kf,Uf="New action name",Mf="New action group",Ff="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.",zf="Create new template group",Bf="Next",jf="Back",Hf="Action name",Wf="Action",Xf="UI template rules",Gf="__odigos_default_url_templatization_action__",Vf="UI-owned",Kf="Externally synced",Yf=["Safe to edit in Odigos UI.","This action is created and owned here. Fresh installs do not include it until you add templates."],Jf=["Edits in Odigos UI may be overwritten.","This action is synced from outside the UI via the Kubernetes Action resource (e.g. GitOps, kubectl)."],qf=Vf,Qf="Templates",Zf="Other templates in this group",eb="Additional templates that share the same source scope and Action as this rule.",tb="e.g. /api/users/{id}",ib="Language",nb="Namespace",rb="Source",ob="AND",ab="Entire cluster",sb="Unset",lb="Enabled globally",db="Default templating disabled",cb="Enabled",ub="Default templatization is unset. No default rules are configured on an enabled action.",pb="Default templatization is enabled globally.",hb="Default templatization is disabled for the entire cluster.";function gb(e){return e<=0?pb:`Default templatization is enabled globally and disabled in ${1===e?"1 scope":`${e} scopes`}.`}const mb="Disabled for these scopes",fb="Disable for a scope",bb="Delete",yb="disabled scope",vb="Are you sure you want to remove this scope from the disabled list? Default templatization will apply again for this scope.",$b="Automatic templatization",wb="Active",Sb="Custom and default URL templatization scopes across URL templatization actions.",xb="Custom templates take precedence over automatic templatization.",Cb="Scope",Eb="Status codes",Tb="Disabled",Ob="Entire cluster",Nb="All",Ab="None",kb="Disabled",Ib="No disabled scope configured",_b="Add disabled",Db="Disabled scopes",Rb="Advanced",Lb=(e,t)=>`${1===e?"1 disabled scope":`${e} disabled scopes`} · ${1===t?"1 skip policy":`${t} skip policies`}`,Pb="Automatic templatization off for matching traffic.",Ub="Disable for a scope",Mb="Scope",Fb="Effective behavior",zb="Status",Bb="Automatic templatization off",jb="Covered by broader exception",Hb="Disabled",Wb="Redundant",Xb="No disabled scope configured",Gb="Disable automatic templatization for specific scopes when needed.",Vb=(e,t)=>`${e} configured • ${t} effective`,Kb=e=>1===e?"1 scope":`${e} scopes`,Yb="Default templatization is enabled for all HTTP status codes.";function Jb(e){return e<=0?Yb:`Default templatization skips selected HTTP status codes in ${1===e?"1 scope":`${e} scopes`}.`}const qb="HTTP status code policies",Qb="No skip policy configured",Zb="Skip automatic templatization for selected HTTP status codes in specific scopes when needed.",ey="Add skip policy for a scope",ty="Add skip policy for a scope",iy="Skip default templatization on HTTP errors",ny="Delete",ry="skip policy",oy="Are you sure you want to remove this skip policy? Default templatization will again apply for matching error responses in this scope.",ay="Template details",sy="Template",ly="Turn a concrete URL path into a pattern by replacing high-cardinality segments with placeholders like {id}.",dy="Created via",cy="Action name",uy="Kubernetes name",py="Odigos Action (Kubernetes resource) where this template is managed.",hy="Try a URL",gy="/users/12/orders/345685335358",my="Test URL",fy="Close",by="Result",yy="Templated URL path",vy="Match found",$y="This URL matches the template.",wy="No match",Sy="This URL doesn't match the template.",xy="Check the URL structure and parameter positions, then try again.",Cy={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ya},Ey=Ft(e=>({...Cy,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(Cy)}));var Ty;(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"})(Ty||(Ty={}));const Oy=e=>`add-${za(e).replaceAll(" ","-").toLowerCase()}`,Ny=e=>`edit-${za(e).replaceAll(" ","-").toLowerCase()}`,Ay=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),ky=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Iy=Ft(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:ky})),_y=Ft((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,r=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Dy;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Dy||(Dy={}));const Ry=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ly=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Py=Ft((e,t)=>({progress:{},setProgress:(i,n)=>{const r=t(),o=Ry();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]:Ly(o)}})},addProgress:(i,n,r)=>{const o=t(),a=Ry(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]:Ly(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Uy=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),My={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Fy=(e,t)=>e.destinationType.type!==t.destinationType.type,zy=Ft(e=>({...My,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=>Fy(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=>Fy(e,t))})),clearStore:()=>e(()=>({...My}))})),By=e=>{function t(){return void 0===e?{}:$s(e)}const[i,n]=Ht(t()),[r,o]=Ht({}),[a,s]=Ht(t()),l=Xt((e,t)=>{const i={};if(!t||"object"!=typeof t)return e?{...e}:i;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(i[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])i[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(i[e]=n)}else r!==t[e]&&(i[e]=t[e])}for(const n of Object.keys(t))n in e||(i[n]=t[n]);return i},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Gt(()=>!d(a,i),[a,i]);Wt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,i]);const u=Xt((e,t)=>ws("formData"===e?i:r,t.toString()),[i,r]);return{formData:i,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,i)=>{if(e){const i=e.toString(),r=i.split(".");1===r.length?n(i=>({...i,[e]:t})):n(e=>{const i=$s(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=$s(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}},jy={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Hy=()=>{const{addNotification:e}=_y(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:r,resetFormData:o}=By(jy);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":rd(t)&&(n[e]=Za.FIELD_IS_REQUIRED)}}),t.type===oi.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Za.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&i?.withAlert&&e({type:Oi.Warning,title:i.alertTitle,message:Za.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={...$s(jy),type:e,signals:t,name:i,notes:r,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case si.LabelsAttributes:case si.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 si.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 si.CollectContainerAttributes:case si.CollectReplicaSetAttributes:case si.CollectWorkloadId:case si.CollectClusterId:case si.ClusterAttributes:case si.OverwriteExistingValues:case si.AttributeNamesToDelete:case si.Renames:case si.PiiCategories:case si.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var i,n}),n(void 0,void 0,s)}}},Wy=e=>{Wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Xy=()=>{const e=Vt(null),[t,i]=Ht(0),[n,r]=Ht(0);return Wt(()=>{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}},Gy="data-ignore-outside-click",Vy=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Gy))return!0;t=t.parentNode}return!1},Ky=(e,t)=>{const i=Vt(t);i.current=t,Wt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(Vy(n)||i.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Yy=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i,positionMode:n="local"}={})=>{const r=Vt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return Ky(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})}}},Jy=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
|
+
`,qy=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
|
+
`,Qy=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
|
+
`,Zy=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
|
+
`,ev=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
|
+
`,tv=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
|
+
`,iv=({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=Gt(()=>(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}=Yy({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),C=Gt(()=>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(Jy,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&Qt.createPortal(e(qy,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!0})}),t(Qy,{$maxWidth:p,children:e(Zy,{children:[(!!r||!!a)&&e(_l,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(Va,{size:ja.XS,children:a},"title")]}),f.map((e,i)=>t(Va,{size:ja.XXXS,children:e},i)),!!l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(ev,{$align:S.align,children:t(tv,{$pointsUp:!1})})]}),document.body)]})};var nv,rv;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(nv||(nv={})),(e=>{e.S="small",e.M="medium",e.L="large"})(rv||(rv={}));const ov=n.button`
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
justify-content: ${({$align:e})=>e};
|
|
@@ -260,26 +260,26 @@ 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===
|
|
264
|
-
height:
|
|
263
|
+
${({$size:e,$hasLabel:t})=>e===rv.S?r`
|
|
264
|
+
height: 24px;
|
|
265
265
|
${t?r`
|
|
266
266
|
padding: 8px 16px;
|
|
267
267
|
`:r`
|
|
268
|
-
width:
|
|
268
|
+
width: 24px;
|
|
269
269
|
`}
|
|
270
|
-
`:e===
|
|
271
|
-
height:
|
|
270
|
+
`:e===rv.M?r`
|
|
271
|
+
height: 32px;
|
|
272
272
|
${t?r`
|
|
273
273
|
padding: 8px 18px;
|
|
274
274
|
`:r`
|
|
275
|
-
width:
|
|
275
|
+
width: 32px;
|
|
276
276
|
`}
|
|
277
277
|
`:r`
|
|
278
|
-
height:
|
|
278
|
+
height: 42px;
|
|
279
279
|
${t?r`
|
|
280
280
|
padding: 8px 22px;
|
|
281
281
|
`:r`
|
|
282
|
-
width:
|
|
282
|
+
width: 42px;
|
|
283
283
|
`}
|
|
284
284
|
`}
|
|
285
285
|
|
|
@@ -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===nv.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===nv.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===nv.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,15 +318,16 @@ 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
|
-
`,nv=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=ev.Primary,size:u=tv.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===tv.L?18:16),E=u===tv.L?za.S:za.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(iv,{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(Zy,{text:a,withIcon:!s,children:A?t(Bl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Il,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Xa,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Il,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});nv.displayName=nv.name;const rv=({onDone:e}={})=>{const[i,n]=Ht(!1),[r,o]=Ht(-1),a=Xt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Xt(({value:e,...n})=>t(nv,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:ev.Secondary,size:tv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},ov=e=>{const{addNotification:t}=Ay(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=My(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?id(i.name)?n.name=void 0:(r=!1,n.name=qa.ILLEGAL_K8S_LABEL):(r=!1,n.name=qa.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Oi.Warning,title:e.alertTitle,message:qa.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...ys(e),name:t};n(void 0,void 0,i)}}},av={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},sv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Ay(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=My(av),[d,c]=Ht([]),[u,p]=Ht([]);return Wt(()=>{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===Ei.Dropdown){const e=as(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,...as(n,{})}})).map(e=>{if(i){const t="string"==typeof i?as(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Wt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Wt(()=>{if(t&&0===cd(r.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(i=!1,t[e]=qa.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Oi.Warning,title:e.alertTitle,message:qa.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:r})=>{const o={...ys(av),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(as(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},lv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},dv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=My(lv);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={...ys(lv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},cv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Wt(()=>{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),uv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Wt(()=>{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},pv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Vt(null);return Wt(()=>{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},hv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Wt(()=>{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]),Wt(()=>{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 gv,mv;(e=>{e.Left="left",e.Right="right"})(gv||(gv={})),(e=>{e.Top="top",e.Bottom="bottom"})(mv||(mv={}));const fv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||gv.Left,y:r||mv.Bottom}),g=Vt(null),m=Vt(!1);Wt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Wy(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]=Ht({}),y=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===mv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===mv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===gv.Left?i.left:void 0,right:e===gv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?gv.Right:gv.Left),y:r||(e.clientY>window.innerHeight/2?mv.Top:mv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Xt(e=>{e.stopPropagation()},[]);return Kt(()=>{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:$}},bv=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?as(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),yv={otelServiceName:"",currentStreamName:""},vv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=My(yv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...ys(yv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const $v=new Jt(qt.locale),wv=[{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"}],Sv=(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 wv){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},xv=(e,t)=>Sv(6e4*Math.max(0,e),t),Cv=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Ev=()=>{const[e,t]=Ht(0);return Wt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return $v.format(Cv(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Cv(e);return Sv(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Tv;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Tv||(Tv={}));const Ov=(e,t,i)=>{switch(t){case Tv.Purple:return e.v2.colors.purple[i?"300":"900"];case Tv.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Tv.Blue:return e.v2.colors.blue[i?"300":"1000"];case Tv.Pink:return e.v2.colors.red[i?"300":"1000"];case Tv.Green:return e.v2.colors.green[i?"300":"900"];case Tv.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},Nv=n.div`
|
|
321
|
+
`,av=Bt(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=nv.Primary,size:u=rv.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===rv.L?34:u===rv.M?24:16),E=u===rv.L?ja.S:ja.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),k=!(!v&&!A),I=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(ov,{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(iv,{text:a,withIcon:!s,fullWidth:!0,children:A?t(Wl,r?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(i,{children:[l&&t(Rl,{$width:"fit-content",children:t(l,{size:C,fill:T})}),r?t(Va,{size:E,weight:500,color:T,nowrap:!0,align:y,children:r}):null,d&&t(Rl,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});av.displayName=av.name;const sv=({onDone:e}={})=>{const[i,n]=Ht(!1),[r,o]=Ht(-1),a=Xt(async(t,r)=>{if(!i){if(n(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[i,e]);return{CopyButton:Xt(({value:e,...n})=>t(av,{leftIcon:i?$t:wt,onClick:()=>a(e),variant:nv.Secondary,size:rv.S,...n}),[i]),isCopied:i,copiedIndex:r,clickCopy:a}},lv=e=>{const{addNotification:t}=_y(),{formData:i,handleFormChange:n,formErrors:r,handleErrorChange:o,resetFormData:a}=By(e);return{formData:i,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return i.name?od(i.name)?n.name=void 0:(r=!1,n.name=Za.ILLEGAL_K8S_LABEL):(r=!1,n.name=Za.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Oi.Warning,title:e.alertTitle,message:Za.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const i={...$s(e),name:t};n(void 0,void 0,i)}}},dv={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},cv=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=_y(),{formData:r,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=By(dv),[d,c]=Ht([]),[u,p]=Ht([]);return Wt(()=>{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===Ei.Dropdown){const e=ls(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,...ls(n,{})}})).map(e=>{if(i){const t="string"==typeof i?ls(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,i]),Wt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Wt(()=>{if(t&&0===hd(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]=Za.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Oi.Warning,title:e.alertTitle,message:Za.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={...$s(dv),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(ls(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},uv={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Fi.Column]:null,[Fi.FilePath]:null,[Fi.Function]:null,[Fi.LineNumber]:null,[Fi.Namespace]:null,[Fi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bi.Java]:null,[Bi.Golang]:null,[Bi.Php]:null},networkMetrics:null},pv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(uv);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={...$s(uv),ruleName:e,notes:t,disabled:n,sourceScopes:r??null,networkMetrics:d??null};o&&(c.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),a&&(c.codeAttributes={[Fi.Column]:a[Fi.Column]||null,[Fi.FilePath]:a[Fi.FilePath]||null,[Fi.Function]:a[Fi.Function]||null,[Fi.LineNumber]:a[Fi.LineNumber]||null,[Fi.Namespace]:a[Fi.Namespace]||null,[Fi.StackTrace]:a[Fi.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bi.Java]:l[Bi.Java]||null,[Bi.Golang]:l[Bi.Golang]||null,[Bi.Php]:l[Bi.Php]||null}),i(void 0,void 0,c)}}},hv=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:r,withMetaKey:o},a)=>(Wt(()=>{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),gv=(e,{axis:t="horizontal",deps:i=[]}={})=>{const[n,r]=Ht(!1),o=e=>{const i="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(i)};return Kt(()=>{const t=e.current;if(!t)return;o(t);const i=new ResizeObserver(()=>o(t));return i.observe(t),()=>i.disconnect()},[t,...i]),Wt(()=>{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},mv=(e,{behavior:t="smooth",block:i="center",inline:n,delayMs:r=50}={})=>{const o=Vt(null);return Wt(()=>{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},fv=({sectionNames:e,threshold:t=.4})=>{const[i,n]=Ht(e[0]||""),[r,o]=Ht(null),a=Vt({}),s=Vt(!1),l=Vt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return Wt(()=>{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]),Wt(()=>{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 bv,yv;(e=>{e.Left="left",e.Right="right"})(bv||(bv={})),(e=>{e.Top="top",e.Bottom="bottom"})(yv||(yv={}));const vv=({defaultOpen:e=!1,open:t,onOpenChange:i,alignX:n,alignY:r,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),i?.(e)},[s,i]),[p,h]=Ht({x:n||bv.Left,y:r||yv.Bottom}),g=Vt(null),m=Vt(!1);Wt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||Vy(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]=Ht({}),y=Xt((e,t)=>{const i=g.current?.getBoundingClientRect();if(!i)return;const n=o?8:0;b({top:t===yv.Bottom?o?i.bottom+n:i.top:void 0,bottom:t===yv.Top?o?window.innerHeight-i.top+n:window.innerHeight-i.bottom:void 0,left:e===bv.Left?i.left:void 0,right:e===bv.Right?window.innerWidth-i.right:void 0,width:a?i.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const i={x:n||(e.clientX>window.innerWidth/2?bv.Right:bv.Left),y:r||(e.clientY>window.innerHeight/2?yv.Top:yv.Bottom)};h(i),y(i.x,i.y)},[c,u,n,r,y]),$=Xt(e=>{e.stopPropagation()},[]);return Kt(()=>{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:$}},$v=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?ls(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),wv={otelServiceName:"",currentStreamName:""},Sv=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:r}=By(wv);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...$s(wv),otelServiceName:e||t.name||""};i(void 0,void 0,n)}}};try{Jt.addDefaultLocale(qt)}catch(e){}const xv=new Jt(qt.locale),Cv=[{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"}],Ev=(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 Cv){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},Tv=(e,t)=>Ev(6e4*Math.max(0,e),t),Ov=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Nv=()=>{const[e,t]=Ht(0);return Wt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return xv.format(Ov(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const i=Ov(e);return Ev(Date.now()-i.getTime(),t)}catch(e){return"-"}},[e])}};var Av,kv;(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"})(Av||(Av={})),(e=>{e.Small="small",e.Medium="medium",e.Large="large"})(kv||(kv={}));const Iv=(e,t,i)=>{switch(t){case Av.Purple:return e.v2.colors.purple[i?"300":"900"];case Av.Yellow:return e.v2.colors.yellow[i?"300":"1000"];case Av.Blue:return e.v2.colors.blue[i?"300":"1000"];case Av.Pink:return e.v2.colors.pink[i?"500":"1000"];case Av.Red:return e.v2.colors.red[i?"300":"900"];case Av.Green:return e.v2.colors.green[i?"300":"900"];case Av.Loader:return e.v2.colors.grey[i?"600":"800"];default:return e.v2.colors.grey[i?"300":"500"]}},_v=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
325
|
-
gap:
|
|
326
|
-
padding: 4px 8px;
|
|
327
|
-
border-radius:
|
|
325
|
+
gap: ${({$size:e})=>e===kv.Small?2:e===kv.Medium?4:8}px;
|
|
326
|
+
padding: ${({$size:e})=>e===kv.Small?"2px 4px":e===kv.Medium?"4px 6px":"4px 8px"};
|
|
327
|
+
border-radius: ${({$size:e})=>e===kv.Small?4:6}px;
|
|
328
328
|
border: 1px solid transparent;
|
|
329
329
|
|
|
330
|
+
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
330
331
|
${({$flex:e})=>e?r`
|
|
331
332
|
flex: ${e};
|
|
332
333
|
`:r`
|
|
@@ -336,16 +337,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
336
337
|
${({$disabled:e,$variant:t,$withClick:i})=>e?r`
|
|
337
338
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
338
339
|
`:r`
|
|
339
|
-
background-color: ${({theme:e})=>
|
|
340
|
+
background-color: ${({theme:e})=>Iv(e,t)};
|
|
340
341
|
${i&&r`
|
|
341
342
|
cursor: pointer;
|
|
342
343
|
&:hover,
|
|
343
344
|
&:active {
|
|
344
|
-
border: 1px solid ${({theme:e})=>
|
|
345
|
+
border: 1px solid ${({theme:e})=>Iv(e,t,!0)};
|
|
345
346
|
}
|
|
346
347
|
`}
|
|
347
348
|
`}
|
|
348
|
-
`,
|
|
349
|
+
`,Dv=({variant:i=Av.Default,size:n=kv.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===Av.Default?p.v2.colors.white[500]:Iv(p,i,!0),g=n===kv.Small?ja.XXXS:n===kv.Medium?ja.XXS:ja.S,m=n===kv.Small?10:n===kv.Medium?12:16,f=i===Av.Loader;return e(_v,{$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(Wl,{withGradient:!0,title:r,titleSize:g}):t(Va,{color:h,size:g,nowrap:!0,children:r}),s&&t(s,{fill:h,size:m})]})},Rv=n.div`
|
|
349
350
|
display: flex;
|
|
350
351
|
align-items: center;
|
|
351
352
|
justify-content: center;
|
|
@@ -355,9 +356,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
355
356
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
356
357
|
border-radius: 100px;
|
|
357
358
|
background-color: ${({$backgroundColor:e})=>e};
|
|
358
|
-
`,
|
|
359
|
+
`,Lv=({label:i,leftIcon:n,rightIcon:r,tooltip:a,status:s=Oi.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=Oi.Loading===s,y=s?[Oi.Disabled,Oi.Loading].includes(s)?dl(m,s,d?"400":"700"):[Oi.Unknown].includes(s)?dl(m,s,"600"):dl(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Oi.Unknown].includes(s)?y:[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[400]:[Oi.Error,Oi.Warning,Oi.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Oi.Unknown].includes(s)?[Oi.Disabled,Oi.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(iv,{text:a,fullWidth:g,children:e(Rv,{$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(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(Wl,{withGradient:!0,title:f,titleSize:c||ja.XXS}):t(Va,{color:v,size:c||ja.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},Pv=n.div`
|
|
359
360
|
position: relative;
|
|
360
|
-
`,
|
|
361
|
+
`,Uv=n.div`
|
|
361
362
|
position: fixed;
|
|
362
363
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
363
364
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -375,7 +376,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
375
376
|
border-radius: 6px;
|
|
376
377
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
377
378
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
378
|
-
`,
|
|
379
|
+
`,Mv=({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}=vv({defaultOpen:i,open:n,onOpenChange:r,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(Pv,{ref:h,onMouseDown:m,children:[t(av,{label:"Open",variant:nv.Secondary,size:rv.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Zt(t(Uv,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},Fv={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142",1e3:"#381D07"}},zIndex:{base:1,island:100,sidebar:500,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},zv={v2:Fv.v2,darkMode:!0,colors:{...Fv.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:Fv.font_family},Bv={v2:Fv.v2,darkMode:!1,colors:{...Fv.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:Fv.font_family},jv=e=>e?zv:Bv,Hv=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Fv,darkModeTheme:zv,getTheme:jv,lightModeTheme:Bv},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 Wv=({children:e})=>t(s,{theme:jv(!0),children:e}),Xv={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"},Gv=Object.freeze(Object.defineProperty({__proto__:null,hex:Xv},Symbol.toStringTag,{value:"Module"})),Vv={in:{left:a`
|
|
379
380
|
from { transform: translateX(-100%); }
|
|
380
381
|
to { transform: translateX(0); }
|
|
381
382
|
`,right:a`
|
|
@@ -405,7 +406,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
405
406
|
`,center:a`
|
|
406
407
|
from { transform: translate(-50%, -50%); }
|
|
407
408
|
to { transform: translate(-50%, 100%); }
|
|
408
|
-
`}},
|
|
409
|
+
`}},Kv={in:a`
|
|
409
410
|
from {
|
|
410
411
|
width: 0%;
|
|
411
412
|
}
|
|
@@ -419,7 +420,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
419
420
|
to {
|
|
420
421
|
width: 0%;
|
|
421
422
|
}
|
|
422
|
-
`},
|
|
423
|
+
`},Yv=a`
|
|
423
424
|
0% {
|
|
424
425
|
transform: scale(1);
|
|
425
426
|
opacity: 1;
|
|
@@ -428,14 +429,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
428
429
|
transform: scale(2);
|
|
429
430
|
opacity: 0;
|
|
430
431
|
}
|
|
431
|
-
`,
|
|
432
|
+
`,Jv=a`
|
|
432
433
|
0% {
|
|
433
434
|
background-position: -500px 0;
|
|
434
435
|
}
|
|
435
436
|
100% {
|
|
436
437
|
background-position: 500px 0;
|
|
437
438
|
}
|
|
438
|
-
`,
|
|
439
|
+
`,qv={in:a`
|
|
439
440
|
from {
|
|
440
441
|
opacity: 0;
|
|
441
442
|
}
|
|
@@ -449,7 +450,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
449
450
|
to {
|
|
450
451
|
opacity: 0;
|
|
451
452
|
}
|
|
452
|
-
`},
|
|
453
|
+
`},Qv=Object.freeze(Object.defineProperty({__proto__:null,fade:qv,ping:Yv,progress:Kv,shimmer:Jv,slide:Vv},Symbol.toStringTag,{value:"Module"}));var Zv,e$;(e=>{e.S="s",e.L="l"})(Zv||(Zv={})),(e=>{e.Filled="filled",e.Underline="underline"})(e$||(e$={}));const t$=n.div`
|
|
453
454
|
display: flex;
|
|
454
455
|
align-items: center;
|
|
455
456
|
gap: 2px;
|
|
@@ -457,19 +458,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
457
458
|
border-radius: 6px;
|
|
458
459
|
border: none;
|
|
459
460
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
460
|
-
`,
|
|
461
|
+
`,i$=n.button`
|
|
461
462
|
flex: 1;
|
|
462
463
|
display: flex;
|
|
463
464
|
align-items: center;
|
|
464
465
|
justify-content: center;
|
|
465
|
-
gap: ${({$size:e})=>e===
|
|
466
|
-
padding: ${({$size:e})=>e===
|
|
466
|
+
gap: ${({$size:e})=>e===Zv.S?"4px":"8px"};
|
|
467
|
+
padding: ${({$size:e})=>e===Zv.S?"4px 6px":"8px 12px"};
|
|
467
468
|
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:i})=>i?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
468
469
|
border: 1px solid transparent;
|
|
469
470
|
|
|
470
471
|
${({$disabled:e,$isSelected:t,$selectedBgColor:i,$selectedBorderColor:n,theme:o})=>e?r`
|
|
471
472
|
cursor: not-allowed;
|
|
472
|
-
background-color: ${t?(i||o.v2.colors.purple[900])+
|
|
473
|
+
background-color: ${t?(i||o.v2.colors.purple[900])+Xv["050"]:"transparent"};
|
|
473
474
|
`:t?r`
|
|
474
475
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
475
476
|
border: 1px solid ${n||o.v2.colors.purple[400]};
|
|
@@ -484,11 +485,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
484
485
|
background-color: ${o.v2.colors.silver[600]};
|
|
485
486
|
}
|
|
486
487
|
`}
|
|
487
|
-
`,
|
|
488
|
+
`,n$=n.div`
|
|
488
489
|
display: flex;
|
|
489
490
|
align-items: stretch;
|
|
490
491
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
-
`,
|
|
492
|
+
`,r$=n.button`
|
|
492
493
|
display: flex;
|
|
493
494
|
height: 34px;
|
|
494
495
|
padding: 8px 12px 8px 16px;
|
|
@@ -507,7 +508,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
507
508
|
&:hover {
|
|
508
509
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
509
510
|
}
|
|
510
|
-
`,
|
|
511
|
+
`,o$=({"data-id":n,size:r=Zv.S,variant:a=e$.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===e$.Underline,g=h?r$:i$;return t(h?n$:t$,{"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===Zv.S?ja.XXS:ja.XS,O=x?500:400,N=e(i,{children:[a&&t(a,{fill:E}),o&&t(Va,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Lv,{...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(iv,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},a$=n.div`
|
|
511
512
|
box-sizing: border-box !important;
|
|
512
513
|
width: ${({$width:e})=>e??"fit-content"};
|
|
513
514
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -523,7 +524,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
523
524
|
border: none;
|
|
524
525
|
border-radius: 6px;
|
|
525
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}};
|
|
526
|
-
`,
|
|
527
|
+
`,s$=n.input`
|
|
527
528
|
min-width: 0;
|
|
528
529
|
flex: 1;
|
|
529
530
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -540,7 +541,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
540
541
|
overflow: hidden;
|
|
541
542
|
text-overflow: ellipsis;
|
|
542
543
|
white-space: nowrap;
|
|
543
|
-
`,
|
|
544
|
+
`,l$=({"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]=Ht(!1),[f,b]=Ht(!1),[y,v]=Ht(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Gt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Gt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(a$,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:$}),t(s$,{"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(o$,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},d$=n.div`
|
|
544
545
|
display: flex;
|
|
545
546
|
align-items: center;
|
|
546
547
|
justify-content: center;
|
|
@@ -549,41 +550,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
549
550
|
padding: 8px;
|
|
550
551
|
border-radius: 100%;
|
|
551
552
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
552
|
-
`,
|
|
553
|
+
`,c$=({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(Dl,{$gap:12,$alignItems:"center",children:[e(Dl,{$gap:4,$alignItems:"center",children:[!n&&t(d$,{children:t(i,{size:24,fill:d})}),t(Va,{size:ja.XXS,color:Ha.Secondary,align:"center",children:r}),a&&t(Va,{size:ja.XXXS,color:Ha.Disable,align:"center",children:a})]}),s&&t(av,{variant:nv.Secondary,...s}),l]})},u$=n.span`
|
|
553
554
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
554
555
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
555
556
|
font-weight: 400;
|
|
556
557
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
557
|
-
`,
|
|
558
|
+
`,p$=n.span`
|
|
558
559
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
559
560
|
font-size: 14px;
|
|
560
561
|
font-weight: 400;
|
|
561
562
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
562
|
-
`,
|
|
563
|
+
`,h$=({label:i,tooltip:n,required:r,badge:o,width:a,smallAndDark:s})=>i||n||r?e(_l,{$width:a,$justifyContent:"space-between",children:[i&&t(u$,{$smallAndDark:s,children:i}),e(_l,{$gap:4,children:[o&&t(Lv,{...o,textSize:ja.XXXS}),r&&t(p$,{children:"*"}),n&&t(iv,{text:n,withIcon:!0})]})]}):null,g$=({errorMessage:i,warnMessage:n,helpMessage:r})=>{const a=o(),s=i?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return i||n||r?e(_l,{$alignItems:"center",children:[l&&t(Dl,{children:l}),t(Va,{size:ja.XXXS,weight:400,color:s,children:i||n||r})]}):null};var m$;(e=>{e.S="small",e.L="large"})(m$||(m$={}));const f$=n.div`
|
|
563
564
|
width: fit-content;
|
|
564
565
|
display: flex;
|
|
565
566
|
align-items: center;
|
|
566
567
|
gap: 8px;
|
|
567
568
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
568
|
-
`,
|
|
569
|
-
width: ${({$size:e})=>e===
|
|
570
|
-
height: ${({$size:e})=>e===
|
|
569
|
+
`,b$=n.div`
|
|
570
|
+
width: ${({$size:e})=>e===m$.S?"16px":"20px"};
|
|
571
|
+
height: ${({$size:e})=>e===m$.S?"16px":"20px"};
|
|
571
572
|
display: flex;
|
|
572
573
|
align-items: center;
|
|
573
574
|
justify-content: center;
|
|
574
575
|
border-radius: 4px;
|
|
575
576
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
576
577
|
background-color: ${({$backgroundColor:e})=>e};
|
|
577
|
-
`,
|
|
578
|
+
`,y$=({name:i,label:n,tooltip:r,badge:a,size:s=m$.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Ht(!1),y=d||c,v=s===m$.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(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(f$,{"data-id":i||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(b$,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(xt,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(Va,{size:s===m$.S?ja.XXS:ja.XS,nowrap:!0,children:n})]}),t(h$,{tooltip:r,badge:a})]}),t(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})},v$=n.div`
|
|
578
579
|
display: flex;
|
|
579
580
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
580
581
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
581
|
-
|
|
582
|
+
`,$$=({direction:i=mi.Vertical,title:n,size:r,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===m$.S?ja.XXS:ja.XS,u=Gt(()=>s.every(e=>l[e.id]),[s,l]),p=Gt(()=>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(v$,{$direction:i,children:[n&&a?t(y$,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(Va,{size:c,children:n}):null,s.map(e=>t(y$,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:r},`${n}-checkbox-${e.id}`))]})},w$=n.div`
|
|
582
583
|
position: relative;
|
|
583
584
|
display: flex;
|
|
584
585
|
flex-direction: column;
|
|
585
586
|
gap: 4px;
|
|
586
|
-
`,
|
|
587
|
+
`,S$=n.div`
|
|
587
588
|
position: fixed;
|
|
588
589
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
589
590
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -601,7 +602,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
601
602
|
border-radius: 6px;
|
|
602
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
603
604
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
604
|
-
`,
|
|
605
|
+
`,x$=n.div`
|
|
605
606
|
display: flex;
|
|
606
607
|
flex-direction: column;
|
|
607
608
|
gap: 0;
|
|
@@ -609,7 +610,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
609
610
|
width: 100%;
|
|
610
611
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
611
612
|
overflow-y: auto;
|
|
612
|
-
|
|
613
|
+
`,C$=n.div`
|
|
613
614
|
display: flex;
|
|
614
615
|
align-items: center;
|
|
615
616
|
gap: 8px;
|
|
@@ -625,19 +626,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
625
626
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
626
627
|
}
|
|
627
628
|
`}
|
|
628
|
-
`,
|
|
629
|
+
`,E$=n.div`
|
|
629
630
|
display: flex;
|
|
630
631
|
align-items: center;
|
|
631
632
|
gap: 8px;
|
|
632
633
|
flex: 1;
|
|
633
634
|
min-width: 0;
|
|
634
|
-
`,
|
|
635
|
+
`,T$=n.div`
|
|
635
636
|
flex: 0 1 auto;
|
|
636
637
|
min-width: 0;
|
|
637
638
|
overflow: hidden;
|
|
638
639
|
text-overflow: ellipsis;
|
|
639
640
|
white-space: nowrap;
|
|
640
|
-
`,
|
|
641
|
+
`,O$=n.span`
|
|
641
642
|
flex-shrink: 0;
|
|
642
643
|
width: 88px;
|
|
643
644
|
display: inline-flex;
|
|
@@ -646,26 +647,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
646
647
|
border-radius: 4px;
|
|
647
648
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
648
649
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
649
|
-
`,
|
|
650
|
+
`,N$=n.div`
|
|
650
651
|
flex-shrink: 0;
|
|
651
652
|
display: inline-flex;
|
|
652
653
|
align-items: center;
|
|
653
654
|
gap: 4px;
|
|
654
|
-
`,
|
|
655
|
+
`,A$=({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}=vv({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]=Ht(""),_=Gt(()=>k?l.filter(e=>e?.label?.toLowerCase().includes(k.toLowerCase())):l,[l.length,k]),{onClick:D,onMouseDown:R,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(w$,{ref:T,onMouseDown:N,children:[u&&t(h$,{label:u}),f&&t(av,{...L,fullWidth:g,rightIcon:x?Ct:Et,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(av,{variant:nv.Text,size:rv.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Et,handleClick:O}):$,x&&Zt(e(S$,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(l$,{value:k,onChange:I,width:"100%"}),y?t(Wl,{withSpinner:!0,title:"Loading...",titleSize:ja.XS}):_.length?t(x$,{$maxHeight:m,children:_.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(C$,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${r} — ${l}`:r,children:[a&&t(y$,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:i.color||w.v2.colors.white[500]}),s&&t(O$,{children:t(Va,{size:ja.XXS,nowrap:!0,color:Ha.Secondary,children:s})}),e(E$,{children:[t(T$,{children:t(Va,{size:ja.XS,nowrap:!0,color:i.color||Ha.Primary,children:r})}),l&&e(N$,{children:[t(je,{size:12,fill:w.v2.colors.silver[200]}),t(Va,{size:ja.XS,nowrap:!0,color:Ha.Secondary,children:l})]})]})]},n)})}):t(Il,{$padding:"6px 0",children:t(c$,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!_.length&&t(av,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var k$;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(k$||(k$={}));const I$=({onAnyClick:e,actions:i})=>t(_l,{$gap:8,$alignItems:"center",children:i?.map(i=>{if(!i)return null;switch(i.type){case k$.Button:return t(av,{...i.buttonProps,onClick:t=>{i.buttonProps?.onClick?.(t),e?.()}},i.id);case k$.DropDataButton:{const{onClick:n,...r}=i.buttonProps??{};return t(A$,{...i.dropDataProps,items:i.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:r},i.id)}case k$.PopupButton:return t(Mv,{buttonProps:{label:"Open",variant:nv.Secondary,...i.buttonProps},...i.popupProps},i.id);default:return null}})}),_$=n(_l)`
|
|
655
656
|
min-width: 0;
|
|
656
|
-
`,
|
|
657
|
+
`,D$=n.div`
|
|
657
658
|
display: flex;
|
|
658
659
|
flex-shrink: 0;
|
|
659
660
|
align-items: center;
|
|
660
661
|
justify-content: center;
|
|
661
662
|
padding: 8px;
|
|
662
663
|
border-radius: 8px;
|
|
663
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
664
|
-
`,
|
|
664
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+Xv["004"]};
|
|
665
|
+
`,R$=n(Dl)`
|
|
665
666
|
flex: 1;
|
|
666
667
|
min-width: 0;
|
|
667
668
|
overflow: hidden;
|
|
668
|
-
`,
|
|
669
|
+
`,L$=({icon:i,iconWithWrapper:n=!1,title:r,titleSize:o=ja.S,titleColor:a=Ha.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=ja.XXS,subTitleColor:u=Ha.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=sv();return e(_$,{$gap:d?8:6,$alignItems:y,children:[i&&(n||d?t(D$,{children:t(i,{size:24})}):t(i,{size:24})),r||m||d?e(R$,{$gap:b,children:[r||m?e(_l,{$gap:6,$alignItems:"center",$wrap:"nowrap",$width:"100%",children:[r&&t(Va,{size:o,color:a,nowrap:!s,children:r}),l&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:l}),g&&r&&t($,{value:r}),h&&t(iv,{text:h,withIcon:!0}),m&&t(Lv,{...m})]}):null,d&&t(Va,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(_l,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},P$=({children:e,fullText:i,fullWidth:n=!0,...r})=>{const o=Vt(null),a=!!r.maxLines&&r.maxLines>0,s=gv(o,{axis:a?"vertical":"horizontal",deps:[e]})?i??(null==e?"":String(e)):"";return t(iv,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(Va,{ref:o,...r,children:e})})},U$=n.section`
|
|
669
670
|
display: flex;
|
|
670
671
|
flex-direction: column;
|
|
671
672
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -693,38 +694,41 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
693
694
|
${({$overflow:e})=>e&&r`
|
|
694
695
|
overflow: ${e};
|
|
695
696
|
`}
|
|
696
|
-
`,
|
|
697
|
+
`,M$=n(_l)`
|
|
697
698
|
width: 100%;
|
|
698
699
|
min-width: 0;
|
|
699
700
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
700
701
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
701
|
-
`,
|
|
702
|
+
`,F$=n(_l)`
|
|
702
703
|
flex-shrink: 0;
|
|
703
|
-
`,
|
|
704
|
+
`,z$=n.div`
|
|
704
705
|
display: flex;
|
|
705
706
|
align-items: flex-start;
|
|
706
707
|
flex-wrap: wrap;
|
|
707
708
|
width: 100%;
|
|
708
|
-
`,
|
|
709
|
+
`,B$=n.div`
|
|
709
710
|
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
710
711
|
margin: 8px;
|
|
711
712
|
display: flex;
|
|
712
713
|
flex-direction: column;
|
|
713
714
|
gap: 4px;
|
|
714
715
|
min-width: 0;
|
|
715
|
-
`,
|
|
716
|
+
`,j$=({item:i,cellsPerRow:n})=>{const{CopyButton:r}=sv(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=i;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(B$,{$cellsPerRow:n,children:[!!a&&t(iv,{text:s,children:t(P$,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:a})}),e(_l,{$gap:4,children:[u&&t(Lv,{...u}),p&&t(Dv,{...p}),c&&t(r,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(iv,{text:d,children:t(P$,{size:ja.XS,nowrap:!0,children:l})})]})]})},H$=({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,$]=Ht(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(U$,{$width:n,$bgTint:i,$fullHeight:r,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(M$,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:()=>{l&&w()},children:[s?t(L$,{...s}):t("div",{}),e(F$,{$gap:12,onClick:e=>{e.stopPropagation()},children:[h,x&&S&&t(I$,{actions:u}),E&&t(_l,{$gap:8,children:c.map((e,t)=>Yt(Lv,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(_l,{$gap:2,children:[C&&t(A$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(av,{variant:nv.Text,size:rv.S,leftIcon:v?Ct:Et,onClick:w})]})]})]}),S&&m?t(z$,{children:m.map(e=>t(j$,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var W$;(e=>{e.S="small",e.M="medium"})(W$||(W$={}));const X$=n(_l)`
|
|
716
717
|
flex: 1;
|
|
717
718
|
min-width: 0;
|
|
718
719
|
align-items: center;
|
|
719
|
-
`,
|
|
720
|
+
`,G$=n.div`
|
|
720
721
|
flex-shrink: 1;
|
|
721
722
|
min-width: 0;
|
|
722
|
-
|
|
723
|
-
|
|
723
|
+
/* Clip static rich titles for ellipsis; leave custom titles unclipped so
|
|
724
|
+
dropdowns/popovers (e.g. DataStreamSelect) can escape the header row. */
|
|
725
|
+
overflow: ${({$clip:e})=>e?"hidden":"visible"};
|
|
726
|
+
`,V$=n.div`
|
|
724
727
|
display: flex;
|
|
725
728
|
flex-direction: column;
|
|
729
|
+
gap: 12px;
|
|
726
730
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
727
|
-
`,
|
|
731
|
+
`,K$=n.div`
|
|
728
732
|
display: flex;
|
|
729
733
|
flex-direction: column;
|
|
730
734
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -735,7 +739,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
735
739
|
border-radius: 16px;
|
|
736
740
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:i})=>t??(i?"transparent":e.v2.colors.silver[1e3])};
|
|
737
741
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
738
|
-
`,
|
|
742
|
+
`,Y$=Bt(({id:i,size:n=W$.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===W$.S?4:16,b="number"==typeof h?h:n===W$.S?12:16,y=a??(o?t(L$,{...o}):null),v=l??(s?t(l$,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(K$,{ref:m,id:i,"data-section-name":i,$padding:b,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[y||$||w?e(_l,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(X$,{$gap:f,children:[y?t(G$,{$clip:!a,children:y}):null,v,d]}):null,w&&t(I$,{actions:c??[]})]}):null,t(V$,{$fullHeight:r,children:u})]})});Y$.displayName="SectionCard";const J$=n.div`
|
|
739
743
|
flex: 1;
|
|
740
744
|
align-self: stretch;
|
|
741
745
|
display: flex;
|
|
@@ -743,8 +747,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
743
747
|
gap: 8px;
|
|
744
748
|
padding: 16px;
|
|
745
749
|
border-radius: 12px;
|
|
746
|
-
background-color: ${({theme:e,$status:t})=>
|
|
747
|
-
`,
|
|
750
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Unknown?"750":"500")};
|
|
751
|
+
`,q$=n.div`
|
|
748
752
|
display: flex;
|
|
749
753
|
align-items: center;
|
|
750
754
|
justify-content: center;
|
|
@@ -752,8 +756,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
752
756
|
height: fit-content;
|
|
753
757
|
padding: 8px;
|
|
754
758
|
border-radius: 12px;
|
|
755
|
-
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?
|
|
756
|
-
`,
|
|
759
|
+
background-color: ${({theme:e,$status:t})=>t===Oi.Unknown?dl(e,t,"800"):dl(e,t,"900")+Xv["015"]};
|
|
760
|
+
`,Q$=({status:i,icon:n,title:r,description:a})=>{const s=o(),l=n??Xl(i,s),d=[Oi.Default,Oi.Info,Oi.Disabled,Oi.Unknown].includes(i)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(J$,{$status:i,children:[t(q$,{$status:i,children:t(l,{size:32,fill:d})}),e(Dl,{$gap:2,$justifyContent:"center",children:[t(Va,{size:ja.M,weight:500,color:d,nowrap:!0,children:r}),t(Va,{size:ja.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},Z$=n.div`
|
|
757
761
|
flex: 0.5;
|
|
758
762
|
display: flex;
|
|
759
763
|
flex-direction: column;
|
|
@@ -761,7 +765,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
761
765
|
padding: 12px;
|
|
762
766
|
border-radius: 12px;
|
|
763
767
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
764
|
-
`,
|
|
768
|
+
`,ew=["-","N/A","undefined","null","undefined/undefined","null/null"],tw=({title:i,tooltip:n,cells:r,bgTint:a="800"})=>{const s=o();return e(Z$,{$bgTint:a,children:[t(iv,{text:n,children:t(Va,{nowrap:!0,size:ja.XXS,color:s.v2.colors.grey[150],children:i})}),t(_l,{$gap:32,children:r.map((n,r)=>e(Dl,{$gap:2,children:[!n.isLoading||n.value&&!ew.includes(n.value)?t(Va,{nowrap:!0,size:n.label?ja.M:ja.L,children:n.value}):t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(Va,{nowrap:!0,size:ja.XXS,children:n.label})]},`${i}-${r}-${n.label}-${n.value}`))})]})},iw=n.div`
|
|
765
769
|
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
766
770
|
|
|
767
771
|
display: flex;
|
|
@@ -774,7 +778,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
774
778
|
width: 100%;
|
|
775
779
|
box-sizing: border-box;
|
|
776
780
|
`}
|
|
777
|
-
cursor: ${({$clickable:e,$disabled:t,$
|
|
781
|
+
cursor: ${({$clickable:e,$disabled:t,$readOnly:i})=>t?"not-allowed":i?e?"pointer":"default":"text"};
|
|
778
782
|
|
|
779
783
|
border: 1px solid
|
|
780
784
|
${({theme:e,$disabled:t,$error:i})=>t?e.v2.colors.grey[600]:i?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
@@ -792,25 +796,25 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
792
796
|
outline-offset: 1px;
|
|
793
797
|
}
|
|
794
798
|
`}
|
|
795
|
-
`,
|
|
799
|
+
`,nw=n.div`
|
|
796
800
|
flex: 1;
|
|
797
801
|
min-width: 0;
|
|
798
802
|
display: flex;
|
|
799
803
|
align-items: center;
|
|
800
804
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
801
|
-
`,
|
|
805
|
+
`,rw=n.span`
|
|
802
806
|
flex-shrink: 0;
|
|
803
807
|
width: 1px;
|
|
804
808
|
align-self: stretch;
|
|
805
809
|
background: ${({theme:e,$disabled:t,$error:i})=>i?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
|
|
806
|
-
`,
|
|
810
|
+
`,ow=n.span`
|
|
807
811
|
flex-shrink: 0;
|
|
808
812
|
display: flex;
|
|
809
813
|
align-items: center;
|
|
810
814
|
justify-content: flex-start;
|
|
811
815
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
812
816
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
813
|
-
`,
|
|
817
|
+
`,aw=n.input`
|
|
814
818
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
815
819
|
width: ${({$width:e})=>e||"unset"};
|
|
816
820
|
|
|
@@ -848,12 +852,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
848
852
|
pointer-events: none;
|
|
849
853
|
user-select: none;
|
|
850
854
|
}
|
|
851
|
-
`,
|
|
855
|
+
`,sw=n.div`
|
|
852
856
|
display: flex;
|
|
853
857
|
align-items: center;
|
|
854
858
|
justify-content: center;
|
|
855
859
|
cursor: pointer;
|
|
856
|
-
`,
|
|
860
|
+
`,lw=({label:n,required:r,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,hideFocusOutline:p=!1,errorMessage:h,warnMessage:g,helpMessage:m,type:f=Ti.Text,name:b,value:y,onChange:v,disabled:$,maxWidth:w,width:S,small:x=!1,onClick:C,...E})=>{const T=o(),O=f===Ti.Password,N=f===Ti.Number||f===Ti.Decimal,[A,k]=Ht(!1),[I,_]=Ht(null),D=e=>{e.stopPropagation();const t=e.target.value;if(f===Ti.Number||f===Ti.Decimal){const i=f===Ti.Number?fd(t):md(t),n=null!=E.min?Number(E.min):void 0,r=null!=E.max?Number(E.max):void 0,o=f===Ti.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,_(t&&t!==i?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}v?.(e)},R=e=>{["Enter"].includes(e.key)||e.stopPropagation()},L=u||!!h||!!I,P=y?T.v2.colors.white[500]:$?T.v2.colors.grey[400]:T.v2.colors.silver[200],U=x?14:18,M=Vt(null),F=gv(M,{deps:[y]}),z=E.readOnly&&F&&null!=y&&""!==y?String(y):"",B=!!c&&!O;return e(Dl,{$width:S,$gap:6,children:[t(h$,{label:n,tooltip:a,required:r,badge:s}),t(iw,{$small:x,$disabled:$,$readOnly:!!E.readOnly,$error:L,$clickable:!!C&&!$,$hasSuffix:B,$hideFocusOutline:p,onClick:$?void 0:e=>{$||(E.readOnly||M.current?.focus(),C?.(e))},children:B?e(i,{children:[t(nw,{$small:x,children:t(iv,{text:z,fullWidth:!0,keepAlive:!0,children:t(aw,{"data-id":b,type:N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:"100%",$small:x,$tabular:N,...E,ref:M})})}),t(rw,{$disabled:$,$error:L}),t(ow,{$small:x,"aria-hidden":"true",children:t(Va,{size:ja.XXXS,color:$?Ha.Disable:Ha.Secondary,nowrap:!0,children:c})})]}):e(iv,{text:z,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:U,fill:P}):null,t(aw,{"data-id":b,type:A||N?Ti.Text:f,name:b,value:y,onChange:D,onKeyDown:R,disabled:$,$maxWidth:w,$width:S,$small:x,$tabular:N,...E,ref:M}),O?t(sw,{onClick:()=>k(e=>!e),children:t(A?Ot:Nt,{size:U,fill:P})}):d?t(d,{size:U,fill:P}):null]})}),t(g$,{errorMessage:I||h,warnMessage:g,helpMessage:m})]})},dw=e=>{const{"data-id":i,options:n,placeholder:r="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Gt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Gt(()=>{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=Gt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Xt(()=>{d(""),u(!0)},[]),b=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const i=n.find(e=>e.id===t[0]);i&&(e.onSelect(i),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(A$,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:yv.Bottom,children:t(lw,{name:i,leftIcon:St,placeholder:r,value:g,onChange:b,onFocus:f,disabled:a})})},cw=n.button`
|
|
857
861
|
width: 100%;
|
|
858
862
|
padding: 0;
|
|
859
863
|
padding-right: 12px;
|
|
@@ -874,7 +878,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
874
878
|
cursor: not-allowed;
|
|
875
879
|
opacity: 0.5;
|
|
876
880
|
}
|
|
877
|
-
`,
|
|
881
|
+
`,uw=n.div`
|
|
878
882
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
879
883
|
height: 56px;
|
|
880
884
|
display: flex;
|
|
@@ -885,28 +889,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
885
889
|
`:r`
|
|
886
890
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
887
891
|
`}
|
|
888
|
-
`,
|
|
892
|
+
`,pw=n.div`
|
|
889
893
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
890
894
|
display: flex;
|
|
891
895
|
justify-content: space-between;
|
|
892
896
|
align-items: center;
|
|
893
897
|
gap: 8px;
|
|
894
|
-
`,
|
|
898
|
+
`,hw=({label:i,icon:n,loading:r,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(cw,{$hovered:s,type:"button",disabled:o||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(uw,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(pw,{$hasIcon:!!n,children:[r?t(Wl,{withGradient:!0,titleSize:ja.S}):t(Va,{variant:Ba.Span,align:"center",children:i}),t(At,{rotate:90,size:24})]})]})},gw=({buttons:e})=>t(Dl,{$gap:12,children:e.map((e,i)=>t(hw,{...e},`${e.label}-${i}`))}),mw=[1,.75,.5,.25,0],fw=n.div`
|
|
895
899
|
display: flex;
|
|
896
900
|
flex-direction: column;
|
|
897
901
|
gap: 32px;
|
|
898
902
|
width: 100%;
|
|
899
903
|
min-width: 0;
|
|
900
|
-
`,
|
|
904
|
+
`,bw=n(_l)`
|
|
901
905
|
align-items: center;
|
|
902
906
|
gap: 4px;
|
|
903
|
-
`,
|
|
907
|
+
`,yw=n.div`
|
|
904
908
|
display: flex;
|
|
905
909
|
align-items: flex-start;
|
|
906
910
|
gap: 4px;
|
|
907
911
|
width: 100%;
|
|
908
912
|
min-width: 0;
|
|
909
|
-
`,
|
|
913
|
+
`,vw=n.div`
|
|
910
914
|
display: flex;
|
|
911
915
|
flex-direction: column;
|
|
912
916
|
justify-content: space-between;
|
|
@@ -914,19 +918,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
914
918
|
flex-shrink: 0;
|
|
915
919
|
height: ${({$plotHeight:e})=>e}px;
|
|
916
920
|
padding-bottom: 0;
|
|
917
|
-
|
|
921
|
+
`,$w=n.div`
|
|
918
922
|
display: flex;
|
|
919
923
|
flex-direction: column;
|
|
920
924
|
flex: 1;
|
|
921
925
|
min-width: 0;
|
|
922
|
-
`,
|
|
926
|
+
`,ww=n.div`
|
|
923
927
|
position: relative;
|
|
924
928
|
display: flex;
|
|
925
929
|
align-items: flex-end;
|
|
926
930
|
width: 100%;
|
|
927
931
|
height: ${({$height:e})=>e}px;
|
|
928
932
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
929
|
-
`,
|
|
933
|
+
`,Sw=n.div`
|
|
930
934
|
position: absolute;
|
|
931
935
|
inset: 0;
|
|
932
936
|
display: flex;
|
|
@@ -934,11 +938,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
934
938
|
justify-content: space-between;
|
|
935
939
|
pointer-events: none;
|
|
936
940
|
z-index: 0;
|
|
937
|
-
`,
|
|
941
|
+
`,xw=n.div`
|
|
938
942
|
width: 100%;
|
|
939
943
|
height: 0;
|
|
940
944
|
border-top: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
941
|
-
|
|
945
|
+
`,Cw=n.div`
|
|
942
946
|
position: relative;
|
|
943
947
|
z-index: 1;
|
|
944
948
|
display: flex;
|
|
@@ -946,7 +950,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
946
950
|
width: 100%;
|
|
947
951
|
height: 100%;
|
|
948
952
|
padding: 0 8px;
|
|
949
|
-
`,
|
|
953
|
+
`,Ew=n.div`
|
|
950
954
|
display: flex;
|
|
951
955
|
flex: 1;
|
|
952
956
|
align-items: flex-end;
|
|
@@ -963,63 +967,63 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
963
967
|
height: 100%;
|
|
964
968
|
max-width: 124px;
|
|
965
969
|
}
|
|
966
|
-
`,
|
|
970
|
+
`,Tw=n.div`
|
|
967
971
|
width: 100%;
|
|
968
972
|
height: ${({$pct:e})=>`${Math.max(0,Math.min(100,e))}%`};
|
|
969
973
|
border-radius: 6px 6px 0 0;
|
|
970
974
|
background-color: ${({$color:e})=>e};
|
|
971
975
|
min-height: ${({$pct:e})=>e>0?"2px":"0"};
|
|
972
|
-
`,
|
|
976
|
+
`,Ow=n.div`
|
|
973
977
|
display: flex;
|
|
974
978
|
flex-direction: column;
|
|
975
979
|
gap: 4px;
|
|
976
980
|
width: 100%;
|
|
977
981
|
height: ${29}px;
|
|
978
982
|
padding: 0 8px;
|
|
979
|
-
`,
|
|
983
|
+
`,Nw=n.div`
|
|
980
984
|
display: flex;
|
|
981
985
|
height: 8px;
|
|
982
986
|
width: 100%;
|
|
983
|
-
`,
|
|
987
|
+
`,Aw=n.div`
|
|
984
988
|
display: flex;
|
|
985
989
|
flex: 1;
|
|
986
990
|
align-items: center;
|
|
987
991
|
justify-content: center;
|
|
988
992
|
min-width: 0;
|
|
989
|
-
`,
|
|
993
|
+
`,kw=n.div`
|
|
990
994
|
width: 0;
|
|
991
995
|
height: 100%;
|
|
992
996
|
border-left: 0.5px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
993
|
-
`,
|
|
997
|
+
`,Iw=n.div`
|
|
994
998
|
display: flex;
|
|
995
999
|
width: 100%;
|
|
996
1000
|
height: 17px;
|
|
997
|
-
`,
|
|
1001
|
+
`,_w=n.div`
|
|
998
1002
|
display: flex;
|
|
999
1003
|
flex: 1;
|
|
1000
1004
|
align-items: center;
|
|
1001
1005
|
justify-content: center;
|
|
1002
1006
|
min-width: 0;
|
|
1003
1007
|
overflow: hidden;
|
|
1004
|
-
`,
|
|
1008
|
+
`,Dw=({title:i,titleTooltip:n,bars:r,height:a=311})=>{const s=o(),l=Gt(()=>[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=Gt(()=>Math.max(0,...r.map(e=>e.value)),[r]),c=Gt(()=>mw.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(fw,{children:[!!i&&e(bw,{children:[t(Va,{size:ja.S,weight:500,children:i}),!!n&&t(iv,{text:n,withIcon:!0})]}),e(yw,{children:[t(vw,{$plotHeight:a,children:c.map((e,i)=>t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e},mw[i]))}),e($w,{children:[e(ww,{$height:a,children:[t(Sw,{children:mw.map(e=>t(xw,{},e))}),t(Cw,{children:r.map((e,i)=>{const n=d>0?e.value/d*100:0,r=e.color??l[i%l.length];return t(Ew,{children:t(iv,{text:`${e.label}: ${e.value.toLocaleString()}`,fullWidth:!0,children:t(Tw,{$pct:n,$color:r})})},`${e.label}-${i}`)})})]}),e(Ow,{children:[t(Nw,{children:r.map((e,i)=>t(Aw,{children:t(kw,{})},`tick-${e.label}-${i}`))}),t(Iw,{children:r.map((e,i)=>t(_w,{children:t(Va,{size:ja.XXS,color:Ha.Primary,nowrap:!0,children:e.label})},`label-${e.label}-${i}`))})]})]})]})]})};var Rw;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Rw||(Rw={}));const Lw=n.div`
|
|
1005
1009
|
display: flex;
|
|
1006
1010
|
align-items: flex-end;
|
|
1007
1011
|
justify-content: space-between;
|
|
1008
1012
|
gap: 24px;
|
|
1009
1013
|
width: fit-content;
|
|
1010
|
-
`,
|
|
1014
|
+
`,Pw=n.div`
|
|
1011
1015
|
position: relative;
|
|
1012
1016
|
display: flex;
|
|
1013
1017
|
flex-direction: column;
|
|
1014
1018
|
align-items: center;
|
|
1015
1019
|
width: ${({$width:e})=>e??150}px;
|
|
1016
1020
|
flex-shrink: 0;
|
|
1017
|
-
`,
|
|
1021
|
+
`,Uw=n.svg`
|
|
1018
1022
|
display: block;
|
|
1019
1023
|
width: 100%;
|
|
1020
1024
|
height: auto;
|
|
1021
1025
|
overflow: visible;
|
|
1022
|
-
`,
|
|
1026
|
+
`,Mw=n(Dl)`
|
|
1023
1027
|
position: absolute;
|
|
1024
1028
|
left: 0;
|
|
1025
1029
|
right: 0;
|
|
@@ -1027,14 +1031,14 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1027
1031
|
align-items: center;
|
|
1028
1032
|
gap: 2px;
|
|
1029
1033
|
pointer-events: none;
|
|
1030
|
-
`,
|
|
1034
|
+
`,Fw=n.span`
|
|
1031
1035
|
display: inline-block;
|
|
1032
1036
|
flex-shrink: 0;
|
|
1033
1037
|
width: 9px;
|
|
1034
1038
|
height: 9px;
|
|
1035
1039
|
border-radius: 50%;
|
|
1036
1040
|
background-color: ${({$color:e})=>e};
|
|
1037
|
-
`,
|
|
1041
|
+
`,zw=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:""}},Bw=(e,t,i,n)=>{const r=n*Math.PI/180;return{x:e+i*Math.cos(r),y:t-i*Math.sin(r)}},jw=(e,t,i,n,r)=>{const o=Bw(e,t,i,n),a=Bw(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}`},Hw=({variant:i=Rw.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=zw(a),{number:g}=zw(s),{number:m,prefix:f,suffix:b}=zw(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?jw(60,60,55,180,$):null,S=v<1?jw(60,60,55,$,0):null,x=Bw(60,60,55,180),C=Bw(60,60,55,0),E=c??(i===Rw.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(i===Rw.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,k=i===Rw.GoodAgainstBad?Math.max(g-m,0):g,I="primary"===O?d:"secondary"===O?u:"",_="primary"===O?A(m):"secondary"===O?A(k):"",D=()=>N("primary"),R=()=>N("secondary"),L=()=>N(null);var P;return e(Lw,{children:[e(Pw,{$width:n,children:[t(iv,{keepAlive:!0,fullWidth:!0,title:I,text:_,children:e(Uw,{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:D,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:D,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:R,onMouseLeave:L})]})}),r&&e(Mw,{children:[t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],align:"center",children:r}),t(Va,{size:ja.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Dl,{$gap:7,children:[e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:E}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(_l,{$gap:8,$alignItems:"center",children:[t(Fw,{$color:T}),t(Va,{size:ja.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Ww=n(_l)`
|
|
1038
1042
|
width: 100%;
|
|
1039
1043
|
padding: 8px 12px;
|
|
1040
1044
|
border-radius: 6px;
|
|
@@ -1043,26 +1047,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1043
1047
|
align-items: center;
|
|
1044
1048
|
justify-content: space-between;
|
|
1045
1049
|
gap: 12px;
|
|
1046
|
-
`,
|
|
1050
|
+
`,Xw=n.div`
|
|
1047
1051
|
position: relative;
|
|
1048
1052
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1049
1053
|
display: flex;
|
|
1050
1054
|
align-items: center;
|
|
1051
1055
|
gap: 4px;
|
|
1052
|
-
`,
|
|
1056
|
+
`,Gw=n.pre`
|
|
1053
1057
|
flex: 1;
|
|
1054
1058
|
margin: 0;
|
|
1055
1059
|
padding: 0;
|
|
1056
1060
|
font-size: 12px;
|
|
1057
1061
|
color: #5ffb98; // TODO: add to theme
|
|
1058
1062
|
overflow-x: auto;
|
|
1059
|
-
`,
|
|
1063
|
+
`,Vw=n.span`
|
|
1060
1064
|
flex-shrink: 0;
|
|
1061
1065
|
font-size: 14px;
|
|
1062
1066
|
color: #5ffb98; // TODO: add to theme
|
|
1063
|
-
`,
|
|
1067
|
+
`,Kw=({bgTint:i,label:n,value:r,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=sv({onDone:a}),l=Vt(null),[d,c]=Ht(!1);return Wt(()=>{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(Dl,{$gap:4,children:[n&&t(Va,{size:ja.XXXS,color:Ha.Secondary,children:n}),e(Ww,{$bgTint:i,children:[e(Xw,{$hideCopy:o,children:[t(Gw,{ref:l,children:r}),d&&t(Vw,{children:"..."})]}),!o&&t(s,{value:r})]})]})},Yw=n(_l)`
|
|
1064
1068
|
gap: 0;
|
|
1065
|
-
`,
|
|
1069
|
+
`,Jw=n.button`
|
|
1066
1070
|
padding: 4px 8px;
|
|
1067
1071
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
1068
1072
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -1074,20 +1078,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1074
1078
|
&:hover {
|
|
1075
1079
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1076
1080
|
}
|
|
1077
|
-
`,
|
|
1081
|
+
`,qw=({isPrettyMode:i,setIsPrettyMode:n})=>e(Yw,{children:[t(Jw,{$position:"left",$selected:i,onClick:()=>n(!0),children:t(kt,{})}),t(Jw,{$position:"right",$selected:!i,onClick:()=>n(!1),children:t(vt,{})})]}),Qw=n.table`
|
|
1078
1082
|
border-collapse: collapse;
|
|
1079
1083
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1080
|
-
`,
|
|
1084
|
+
`,Zw=n.tbody``,eS=n.tr`
|
|
1081
1085
|
td:first-child {
|
|
1082
1086
|
padding-left: 0 !important;
|
|
1083
1087
|
}
|
|
1084
1088
|
td:last-child {
|
|
1085
1089
|
padding-right: 0 !important;
|
|
1086
1090
|
}
|
|
1087
|
-
`,
|
|
1091
|
+
`,tS=n.td`
|
|
1088
1092
|
vertical-align: top;
|
|
1089
1093
|
padding: 4px 6px;
|
|
1090
|
-
`,
|
|
1094
|
+
`,iS=n.span`
|
|
1091
1095
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
1092
1096
|
overflow-wrap: break-word;
|
|
1093
1097
|
word-break: break-word;
|
|
@@ -1095,7 +1099,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1095
1099
|
/* Fallback for older browsers */
|
|
1096
1100
|
-ms-word-break: break-all;
|
|
1097
1101
|
font-size: 12px;
|
|
1098
|
-
`,
|
|
1102
|
+
`,nS=({language:e,code:i,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=o(),l=n?ti[n]:s?ti.palenight:ti.vsLight;let d="";if("json"===e){const e=ls(i,{}),t=Ud(e);d=Md(r?As(t):t)}else d=i;return a&&"json"===e?t(rS,{darkMode:s,str:d}):t(ei,{theme:l||(s?ti.palenight:ti.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(iS,{...i({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},rS=({darkMode:i,str:n})=>{const r=o(),a=(i,n)=>{const o=new Array(i).fill(i=>e(eS,{...i,children:[t(tS,{}),t(tS,{})]}));return t(jt,{children:o.map((e,i)=>t(e,{style:0===i?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${i}`))})};return t(ei,{theme:i?ti.palenight:ti.vsLight,language:"json",code:n,children:({getLineProps:i,getTokenProps:n,tokens:o})=>t(Qw,{children:t(Zw,{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(jt,{children:[a(2,s),e(eS,{...d,children:[t(tS,{children:t(Va,{nowrap:!0,children:l[0].content})}),t(tS,{})]})]},`line-${s}`):2===l.length?t(eS,{...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(iv,{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=Xl(o,i);return e||(e=Xl(Oi.Warning,i)),t(e,{},`${r}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(i.content,r),d=0===o;return t(tS,{children:e(_l,{children:[t(_l,{children:l}),t(iS,{$noWrap:d,...n({token:i}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},oS=n.div`
|
|
1099
1103
|
display: flex;
|
|
1100
1104
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1101
1105
|
gap: 8px;
|
|
@@ -1111,7 +1115,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1111
1115
|
background-color: ${t?"transparent":i};
|
|
1112
1116
|
}
|
|
1113
1117
|
`}
|
|
1114
|
-
`,
|
|
1118
|
+
`,aS=n.div`
|
|
1115
1119
|
display: flex;
|
|
1116
1120
|
align-items: center;
|
|
1117
1121
|
justify-content: center;
|
|
@@ -1130,54 +1134,54 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1130
1134
|
transform: scale(1.2);
|
|
1131
1135
|
}
|
|
1132
1136
|
`}
|
|
1133
|
-
`,
|
|
1137
|
+
`,sS=n(Dl)`
|
|
1134
1138
|
flex: 1;
|
|
1135
1139
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1136
1140
|
min-width: 0;
|
|
1137
|
-
`,
|
|
1141
|
+
`,lS=n(Dl)`
|
|
1138
1142
|
align-self: stretch;
|
|
1139
1143
|
flex-shrink: 0;
|
|
1140
|
-
`,
|
|
1144
|
+
`,dS=n.div`
|
|
1141
1145
|
display: flex;
|
|
1142
1146
|
align-items: center;
|
|
1143
1147
|
justify-content: center;
|
|
1144
1148
|
flex-shrink: 0;
|
|
1145
1149
|
width: 24px;
|
|
1146
1150
|
height: 24px;
|
|
1147
|
-
`,
|
|
1151
|
+
`,cS=({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=Xl(i,y),$=p?u?Ct:Et:void 0,w=i===Oi.Unknown,S=i===Oi.Disabled,x=i===Oi.Loading||d,C=[Oi.Error,Oi.Warning,Oi.Success].includes(i),E=dl(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)":dl(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]:dl(y,i,"600");return e(oS,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:k,$slim:b,onClick:p,children:[!g&&t(aS,{$backgroundColor:N,$slim:b,children:x?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(sS,{$gap:4,$justifyContent:"center",$slim:b,children:[e(_l,{$gap:10,$alignItems:"center",children:[t(Va,{size:b?ja.XS:ja.S,weight:500,color:O,children:n}),l&&t(Lv,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:ja.XXXS})]}),r&&t(Va,{size:ja.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(lS,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(_l,{$gap:8,children:c.map(e=>t(av,{...e,variant:nv.Secondary,size:rv.S},e["data-id"]??e.label))}),s]}),$&&t(dS,{children:t($,{size:24,fill:T})})]})},uS=n.div`
|
|
1148
1152
|
display: flex;
|
|
1149
1153
|
flex-direction: column;
|
|
1150
1154
|
width: 100%;
|
|
1151
1155
|
border-radius: 12px;
|
|
1152
1156
|
overflow: hidden;
|
|
1153
|
-
`,
|
|
1157
|
+
`,pS=n.div`
|
|
1154
1158
|
display: flex;
|
|
1155
1159
|
flex-direction: column;
|
|
1156
1160
|
gap: 8px;
|
|
1157
1161
|
padding: 8px 12px 16px 12px;
|
|
1158
1162
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1159
|
-
`,
|
|
1163
|
+
`,hS=n.div`
|
|
1160
1164
|
display: flex;
|
|
1161
1165
|
align-items: center;
|
|
1162
1166
|
gap: 8px;
|
|
1163
|
-
`,
|
|
1167
|
+
`,gS=n.div`
|
|
1164
1168
|
display: flex;
|
|
1165
1169
|
align-items: center;
|
|
1166
1170
|
justify-content: center;
|
|
1167
1171
|
flex-shrink: 0;
|
|
1168
1172
|
width: 18px;
|
|
1169
1173
|
height: 18px;
|
|
1170
|
-
`,
|
|
1174
|
+
`,mS=({conditions:i,title:n,subTitle:r})=>{const a=o(),[s,l]=Ht(!1),d=Xt(()=>l(e=>!e),[]),c=Gt(()=>ud(i),[i]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Gt(()=>Ls(c),[c]);Wt(()=>{l(p||g||m)},[p,g,m]);const b=Gt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Gt(()=>p?Oi.Error:g?Oi.Warning:m?Oi.Info:Oi.Success,[p,g,m]),v=Gt(()=>n||(1===c.length?za(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]),$=Gt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),w=Gt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(uS,{children:[t(cS,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(pS,{children:c.map(({status:i,type:n,reason:r,message:o},s)=>{const l=i===Oi.Loading,d=i===Oi.Disabled?Oi.Info:i,c=l?null:Xl(d,a),u=i===Oi.Error?dl(a,Oi.Error,"500"):i===Oi.Warning?dl(a,Oi.Warning,"500"):a.v2.colors.white[500],p=[n,o||r].filter(Boolean).join(" - ");return e(hS,{children:[t(gS,{children:l||!c?t(Wl,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(Va,{size:ja.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},fS=n.div`
|
|
1171
1175
|
width: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Vertical?`${t}px`:i||"100%"};
|
|
1172
1176
|
height: ${({$orientation:e,$thickness:t,$length:i})=>e===mi.Horizontal?`${t}px`:i||"100%"};
|
|
1173
1177
|
margin: ${({$orientation:e,$margin:t})=>t||(e===mi.Horizontal?"8px 0":"0 8px")};
|
|
1174
|
-
background-color: ${({$type:e,theme:t})=>e?
|
|
1178
|
+
background-color: ${({$type:e,theme:t})=>e?dl(t,e):t.v2.colors.silver[500]};
|
|
1175
1179
|
opacity: ${({$opacity:e})=>e||1};
|
|
1176
|
-
`,
|
|
1180
|
+
`,bS=({orientation:e=mi.Horizontal,type:i,thickness:n=1,length:r,margin:o,opacity:a})=>t(fS,{$orientation:e,$type:i,$thickness:n,$length:r,$margin:o,$opacity:a});var yS,vS,$S;(e=>{e.Default="default",e.SuccessError="successError"})(yS||(yS={})),(e=>{e.S="small",e.L="large"})(vS||(vS={})),(e=>{e.Left="left",e.Right="right"})($S||($S={}));const wS=n.div`
|
|
1177
1181
|
display: flex;
|
|
1178
1182
|
align-items: center;
|
|
1179
1183
|
gap: ${({$gap:e})=>e}px;
|
|
1180
|
-
`,
|
|
1184
|
+
`,SS=n.div`
|
|
1181
1185
|
position: relative;
|
|
1182
1186
|
display: flex;
|
|
1183
1187
|
align-items: center;
|
|
@@ -1188,11 +1192,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1188
1192
|
height: ${({$size:e})=>e}px;
|
|
1189
1193
|
padding: ${4}px;
|
|
1190
1194
|
border-radius: ${({$size:e})=>2*e}px;
|
|
1191
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:r,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&r)return t;if(i&&!r)return i;switch(n){case
|
|
1195
|
+
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 yS.SuccessError:return r?o.v2.colors.green[500]:o.v2.colors.red[500];case yS.Default:default:return r?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1192
1196
|
|
|
1193
1197
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1194
1198
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1195
|
-
`,
|
|
1199
|
+
`,xS=n.div`
|
|
1196
1200
|
position: absolute;
|
|
1197
1201
|
top: 50%;
|
|
1198
1202
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1202,11 +1206,11 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1202
1206
|
border-radius: 100%;
|
|
1203
1207
|
background-color: ${({$color:e})=>e};
|
|
1204
1208
|
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)"};
|
|
1205
|
-
|
|
1209
|
+
`,CS=({variant:n=yS.Default,size:r=vS.L,name:a,label:s,labelAlign:l=$S.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=It,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===vS.S?10:16,T=d||x.v2.colors.silver[200],O=r===vS.S?ja.XXXS:ja.XS,N=r===vS.S?8:12;return e(Dl,{$gap:4,children:[e(_l,{$justifyContent:"space-between",children:[e(wS,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===$S.Left&&t(Va,{color:T,size:O,nowrap:!0,children:s}),e(SS,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(xS,{$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===$S.Right&&t(Va,{color:T,size:O,nowrap:!0,children:s})]}),t(h$,{tooltip:c,badge:u})]}),t(g$,{errorMessage:$,warnMessage:w,helpMessage:S})]})},ES=n.div`
|
|
1206
1210
|
display: flex;
|
|
1207
1211
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
1208
1212
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
1209
|
-
`,
|
|
1213
|
+
`,TS=({direction:i=mi.Vertical,title:n,size:r,disabled:o,options:a,values:s,setValues:l})=>{const d=r===vS.S?ja.XS:ja.S;return e(ES,{$direction:i,children:[n&&t(Va,{size:d,children:n}),a.map(e=>t(CS,{...e,labelAlign:$S.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 OS;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(OS||(OS={}));const NS=n.div`
|
|
1210
1214
|
width: ${({$size:e})=>1.5*e}px;
|
|
1211
1215
|
height: ${({$size:e})=>1.5*e}px;
|
|
1212
1216
|
display: flex;
|
|
@@ -1217,13 +1221,13 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1217
1221
|
&:hover {
|
|
1218
1222
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1219
1223
|
}
|
|
1220
|
-
`,
|
|
1224
|
+
`,AS=({"data-id":e,icon:i,size:n=OS.S,onClick:r,disabled:o})=>t(NS,{"data-id":e,$size:n,$disabled:o,onClick:e=>{r&&!o&&(e.stopPropagation(),r(e))},children:t(i,{size:n})}),kS=n.div`
|
|
1221
1225
|
display: flex;
|
|
1222
1226
|
align-items: center;
|
|
1223
1227
|
justify-content: space-between;
|
|
1224
1228
|
width: 100%;
|
|
1225
1229
|
overflow: hidden;
|
|
1226
|
-
`,
|
|
1230
|
+
`,IS=n.div`
|
|
1227
1231
|
display: flex;
|
|
1228
1232
|
align-items: center;
|
|
1229
1233
|
gap: 16px;
|
|
@@ -1231,7 +1235,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1231
1235
|
min-width: 0;
|
|
1232
1236
|
flex: 1;
|
|
1233
1237
|
overflow: hidden;
|
|
1234
|
-
`,
|
|
1238
|
+
`,_S=n.div`
|
|
1235
1239
|
display: flex;
|
|
1236
1240
|
align-items: center;
|
|
1237
1241
|
justify-content: center;
|
|
@@ -1240,23 +1244,23 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1240
1244
|
height: 36px;
|
|
1241
1245
|
border-radius: 8px;
|
|
1242
1246
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1243
|
-
`,
|
|
1247
|
+
`,DS=n.img`
|
|
1244
1248
|
width: 24px;
|
|
1245
1249
|
height: 24px;
|
|
1246
|
-
`,
|
|
1250
|
+
`,RS=n.div`
|
|
1247
1251
|
display: flex;
|
|
1248
1252
|
align-items: center;
|
|
1249
1253
|
gap: 16px;
|
|
1250
1254
|
flex-shrink: 0;
|
|
1251
|
-
`,
|
|
1255
|
+
`,LS=({icon:i,iconSrc:n,title:r,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(kS,{children:[e(IS,{children:[i?t(_S,{children:t(i,{size:24})}):n?t(_S,{children:t(DS,{src:n,alt:r||"icon"})}):null,(r||o?.length||a||s?.length)&&e(Dl,{$gap:6,children:[(r||o?.length)&&e(_l,{$gap:16,children:[r&&t(Va,{size:ja.S,weight:500,children:r}),o?.length&&t(_l,{$gap:4,children:o?.map((e,i)=>t(Lv,{...e},`${e.label}-${i}`))})]}),(a||s?.length)&&e(_l,{$gap:16,children:[a&&t(Va,{color:Ha.Secondary,size:ja.XXS,children:a}),s?.length&&t(_l,{$gap:4,children:s?.map((e,i)=>t(Dv,{...e},`${e.label}-${i}`))})]})]})]}),e(RS,{children:[l&&t(CS,{...l}),d?.length?t(A$,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(AS,{"data-id":"drawer-close",icon:It,size:OS.M,onClick:c,disabled:u})]})]}),PS=n.div`
|
|
1252
1256
|
position: relative;
|
|
1253
1257
|
&.animated {
|
|
1254
1258
|
overflow: hidden;
|
|
1255
1259
|
padding-bottom: 1px;
|
|
1256
1260
|
border-radius: 8px;
|
|
1257
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1261
|
+
animation: ${({$isLeaving:e})=>e?Vv.out.bottom:Vv.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1258
1262
|
}
|
|
1259
|
-
`,
|
|
1263
|
+
`,US=n.div`
|
|
1260
1264
|
position: absolute;
|
|
1261
1265
|
bottom: -1px;
|
|
1262
1266
|
left: 0;
|
|
@@ -1264,9 +1268,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1264
1268
|
width: 100%;
|
|
1265
1269
|
height: 100%;
|
|
1266
1270
|
border-radius: 8px;
|
|
1267
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1268
|
-
animation: ${
|
|
1269
|
-
`,
|
|
1271
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,t===Oi.Default?"300":t===Oi.Info?"400":"500")};
|
|
1272
|
+
animation: ${Kv.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1273
|
+
`,MS=n.div`
|
|
1270
1274
|
display: flex;
|
|
1271
1275
|
align-items: center;
|
|
1272
1276
|
gap: 10px;
|
|
@@ -1275,37 +1279,37 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1275
1279
|
`}
|
|
1276
1280
|
padding: 8px 12px 8px 8px;
|
|
1277
1281
|
border-radius: 8px;
|
|
1278
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1279
|
-
`,
|
|
1282
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info,Oi.Warning].includes(t)?"1000":"900")};
|
|
1283
|
+
`,FS=n.div`
|
|
1280
1284
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1281
1285
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1282
1286
|
display: flex;
|
|
1283
1287
|
align-items: center;
|
|
1284
1288
|
justify-content: center;
|
|
1285
1289
|
border-radius: 6px;
|
|
1286
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1287
|
-
`,
|
|
1290
|
+
background-color: ${({theme:e,$status:t})=>dl(e,t,[Oi.Info].includes(t)?"900":"800")};
|
|
1291
|
+
`,zS=n.div`
|
|
1288
1292
|
margin-left: auto;
|
|
1289
1293
|
display: flex;
|
|
1290
1294
|
align-items: center;
|
|
1291
1295
|
gap: 4px;
|
|
1292
|
-
`,
|
|
1296
|
+
`,BS=n.div`
|
|
1293
1297
|
margin-right: 8px;
|
|
1294
1298
|
cursor: pointer;
|
|
1295
1299
|
&:hover {
|
|
1296
1300
|
transform: scale(1.2);
|
|
1297
1301
|
}
|
|
1298
|
-
`,
|
|
1302
|
+
`,jS=({status:i,message:n,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Xl(i,p),g=dl(p,i,i===Oi.Default?"300":i===Oi.Info?"400":"500"),[m,f]=Ht(!1),b=Vt(null),y=Vt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Wt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(PS,{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(MS,{$status:i,$fullWidth:a,children:[t("div",{children:t(FS,{$status:i,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(Va,{color:g,size:ja.XXXS,weight:400,children:n}),(r||d)&&e(zS,{children:[r&&t(BS,{"data-id":r["data-id"],onClick:r.onClick,children:t(Va,{color:g,size:ja.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(AS,{"data-id":"note-close",icon:It,size:OS.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(US,{ref:y,$status:i,$duration:c})]})},HS=n.div`
|
|
1299
1303
|
display: flex;
|
|
1300
1304
|
align-items: center;
|
|
1301
1305
|
gap: 8px;
|
|
1302
1306
|
padding: 4px 12px;
|
|
1303
|
-
`,
|
|
1307
|
+
`,WS=n.div`
|
|
1304
1308
|
flex: 1;
|
|
1305
|
-
`,
|
|
1309
|
+
`,XS=n.div`
|
|
1306
1310
|
min-width: 150px;
|
|
1307
1311
|
width: fit-content;
|
|
1308
|
-
`,
|
|
1312
|
+
`,GS=({note:i,actions:n,children:r})=>r?t(HS,{children:r}):e(HS,{children:[i&&t(jS,{...i}),t(WS,{}),n?.map((e,i)=>t(XS,{children:t(av,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${i}`))]}),VS=n.div`
|
|
1309
1313
|
position: fixed;
|
|
1310
1314
|
top: 0;
|
|
1311
1315
|
bottom: 0;
|
|
@@ -1325,16 +1329,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1325
1329
|
overflow: hidden;
|
|
1326
1330
|
|
|
1327
1331
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1328
|
-
animation-name: ${
|
|
1332
|
+
animation-name: ${Vv.in[t]};
|
|
1329
1333
|
`}
|
|
1330
|
-
`,
|
|
1334
|
+
`,KS=n.div`
|
|
1331
1335
|
display: flex;
|
|
1332
1336
|
flex-direction: column;
|
|
1333
1337
|
gap: 12px;
|
|
1334
1338
|
|
|
1335
1339
|
height: calc(100% - ${56}px);
|
|
1336
1340
|
overflow-y: auto;
|
|
1337
|
-
`,
|
|
1341
|
+
`,YS=({isOpen:n,hideOverlay:r=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Wy(n),n?Zt(e(i,{children:[!r&&t(Pl,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(VS,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(LS,{...d}),t(KS,{children:u}),c&&t(GS,{...c})]})]}),document.body):null),JS=({options:e,values:i,setValues:n,withMultiSelect:r,withSearch:o,...a})=>{const s=Gt(()=>e.filter(e=>i.includes(e.id)),[e,i]),l=Gt(()=>s.map(e=>e.label).join(", "),[s]);return t(A$,{withMultiSelect:r,withSearch:o,fullWidth:!0,alignX:bv.Left,items:e,selectedIds:i,setSelectedIds:n,children:({ChevronIcon:e,handleClick:i})=>t(lw,{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})})},qS=({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(av,{variant:nv.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},QS=({children:e})=>t(ii,{FallbackComponent:({error:e,...i})=>t(Wv,{children:t(qS,{...i,error:e})}),children:e}),ZS=n.header`
|
|
1338
1342
|
position: relative;
|
|
1339
1343
|
width: 100%;
|
|
1340
1344
|
padding: 12px 18px;
|
|
@@ -1342,12 +1346,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1342
1346
|
display: flex;
|
|
1343
1347
|
align-items: center;
|
|
1344
1348
|
justify-content: space-between;
|
|
1345
|
-
`,
|
|
1349
|
+
`,ex=n(_l)`
|
|
1346
1350
|
position: absolute;
|
|
1347
1351
|
left: 50%;
|
|
1348
1352
|
transform: translateX(-50%);
|
|
1349
1353
|
gap: 16px;
|
|
1350
|
-
`,
|
|
1354
|
+
`,tx=({left:i=[],center:n=[],right:r=[]})=>e(ZS,{children:[t(_l,{$gap:16,children:i}),t(ex,{children:n}),t(_l,{$gap:16,children:r})]}),ix=n.div`
|
|
1351
1355
|
display: flex;
|
|
1352
1356
|
align-items: center;
|
|
1353
1357
|
gap: 4px;
|
|
@@ -1358,11 +1362,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1358
1362
|
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1359
1363
|
|
|
1360
1364
|
position: absolute;
|
|
1365
|
+
z-index: 1;
|
|
1361
1366
|
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
1362
1367
|
left: ${({$left:e})=>e||"unset"};
|
|
1363
1368
|
top: 50%;
|
|
1364
1369
|
transform: translateY(-50%);
|
|
1365
|
-
`,
|
|
1370
|
+
`,nx=({isOpen:e,actions:i,positionRight:n,positionLeft:r})=>e?t(ix,{$right:n,$left:r,children:i.map(e=>{if(!e)return null;const{tooltip:i,...n}=e;return t(iv,{text:i||"",children:t(av,{...n,variant:n.variant||nv.Secondary,size:rv.S})},n.id)})}):null,rx=n.div`
|
|
1366
1371
|
display: flex;
|
|
1367
1372
|
align-items: center;
|
|
1368
1373
|
justify-content: center;
|
|
@@ -1370,8 +1375,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1370
1375
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1371
1376
|
aspect-ratio: 1 / 1;
|
|
1372
1377
|
border-radius: 8px;
|
|
1373
|
-
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?
|
|
1374
|
-
`,
|
|
1378
|
+
background-color: ${({theme:e,$noBackground:t,$status:i})=>t?"transparent":i?dl(e,i,i===Oi.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1379
|
+
`,ox=({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=il(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(rx,{$size:s,$padding:l,$status:a,children:e(Dl,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,i)=>t(e,{size:c},`top-${i}`))}),u&&e(_l,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,i)=>t(e,{size:c},`bottom-${i}`)),r>0&&t(Va,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=i?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(rx,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ax=30,sx=n.div`
|
|
1375
1380
|
display: flex;
|
|
1376
1381
|
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1377
1382
|
gap: 8px;
|
|
@@ -1382,40 +1387,40 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1382
1387
|
&:hover {
|
|
1383
1388
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1384
1389
|
}
|
|
1385
|
-
`,
|
|
1390
|
+
`,lx=n(Va)`
|
|
1386
1391
|
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1387
|
-
`,
|
|
1392
|
+
`,dx=n(Va)`
|
|
1388
1393
|
flex: 1 1 auto;
|
|
1389
1394
|
min-width: 0;
|
|
1390
|
-
`,
|
|
1395
|
+
`,cx=n(_l)`
|
|
1391
1396
|
flex: 1 1 auto;
|
|
1392
1397
|
justify-content: flex-end;
|
|
1393
1398
|
min-width: 0;
|
|
1394
|
-
`,
|
|
1399
|
+
`,ux=({label:i,value:n,isStandardLibrary:r,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(sx,{$withHealthBadge:s,children:[t(lx,{size:ja.XXS,color:Ha.Secondary,$withHealthBadge:s,children:i}),n?t(dx,{size:ja.XXS,color:Ha.Primary,align:"right",children:n}):null,(r||s)&&e(cx,{children:[r?t(Lv,{status:Oi.Info,label:es.STANDARD,textSize:ja.XXXS,invertColors:!0}):null,s?e(_l,{$gap:4,children:[a?t(dx,{size:ja.XXXS,color:Ha.Error,align:"right",children:a}):null,t(Lv,{status:o?Oi.Success:Oi.Error,label:o?es.HEALTHY:es.NOT_HEALTHY,leftIcon:ee,textSize:ja.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},px=n.div`
|
|
1395
1400
|
width: 100%;
|
|
1396
1401
|
border-radius: 8px;
|
|
1397
1402
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1398
1403
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1399
|
-
`,
|
|
1404
|
+
`,hx=({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(px,{$plain:f,children:e(Dl,{"data-id":r,$gap:6,children:[t(h$,{label:a,tooltip:s,required:d,badge:l}),t(Dl,{$gap:8,children:w.map((r,o)=>{const a=o===w.length-1;return e(_l,{$gap:8,$alignItems:"center",children:[t(lw,{width:"100%",autoFocus:m&&rd(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(av,{leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:v,onClick:()=>(()=>{const e=i.length?$s(i):[$s("")];e.push(""),n(e)})()}),t(av,{leftIcon:$?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:$,onClick:()=>(e=>{const t=[...i||[]].filter((t,i)=>i!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(g$,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var gx;(e=>{e.S="small",e.L="large"})(gx||(gx={}));const mx=n.div`
|
|
1400
1405
|
width: fit-content;
|
|
1401
1406
|
display: flex;
|
|
1402
1407
|
align-items: center;
|
|
1403
1408
|
gap: 8px;
|
|
1404
1409
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1405
|
-
`,
|
|
1406
|
-
width: ${({$size:e})=>e===
|
|
1407
|
-
height: ${({$size:e})=>e===
|
|
1410
|
+
`,fx=n.div`
|
|
1411
|
+
width: ${({$size:e})=>e===gx.S?"16px":"20px"};
|
|
1412
|
+
height: ${({$size:e})=>e===gx.S?"16px":"20px"};
|
|
1408
1413
|
display: flex;
|
|
1409
1414
|
align-items: center;
|
|
1410
1415
|
justify-content: center;
|
|
1411
1416
|
border-radius: 100%;
|
|
1412
1417
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1413
1418
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1414
|
-
`,
|
|
1419
|
+
`,bx=({"data-id":i,label:n,value:r,onChange:a,disabled:s,size:l=gx.L})=>{const d=o(),[c,u]=Ht(!1),p=r,h=l===gx.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(mx,{"data-id":i??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fx,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Rt,{size:h,fill:g}):null}),n&&t(Va,{size:l===gx.S?ja.XXS:ja.XS,children:n})]})},yx=n.div`
|
|
1415
1420
|
display: flex;
|
|
1416
1421
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1417
1422
|
gap: ${({$gap:e})=>e}px;
|
|
1418
|
-
`,
|
|
1423
|
+
`,vx=({label:i,direction:n,disabled:r,size:o,options:a,values:s,setValues:l})=>e(yx,{$flexDirection:n===mi.Horizontal?"row":"column",$gap:n===mi.Horizontal?16:8,children:[i&&t(Va,{children:i}),a.map(e=>t(bx,{...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}`))]}),$x=({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(vx,{direction:mi.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 Ei.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(JS,{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&&rd(S),c=t(lw,{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(_l,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(av,{variant:nv.Secondary,size:rv.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},wx=n.div`
|
|
1419
1424
|
width: 100%;
|
|
1420
1425
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1421
1426
|
border-radius: 8px;
|
|
@@ -1423,28 +1428,28 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1423
1428
|
display: flex;
|
|
1424
1429
|
flex-direction: column;
|
|
1425
1430
|
gap: 8px;
|
|
1426
|
-
`,
|
|
1431
|
+
`,Sx=n.div`
|
|
1427
1432
|
flex: 1;
|
|
1428
1433
|
min-width: 0;
|
|
1429
|
-
`,
|
|
1434
|
+
`,xx=n.div`
|
|
1430
1435
|
padding-top: 24px;
|
|
1431
|
-
|
|
1436
|
+
`,Cx=({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(Dl,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(h$,{label:s,tooltip:l,required:d}),m&&t(o$,{"data-id":`${a}-mode`,size:Zv.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(Dl,{$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(wx,{"data-id":`${a}-card-${o}`,children:[e(_l,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Dl,{$gap:10,children:[T&&t(h$,{label:T}),m.map(e=>t(_l,{$gap:24,children:(e.options??[]).map(i=>t(bx,{size:gx.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(_l,{$gap:4,$alignItems:"center",children:[v&&t(av,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:nv.Secondary,size:rv.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(av,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,i)=>i!==e);r(t.length?t:[y(w)])})(o)}),s&&t(av,{"data-id":`${a}-card-${o}-add`,leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:c,onClick:x})]})]}),E.map((i,r)=>t(_l,{$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(jt,{children:["arrow"===i.separator&&r>0&&t(xx,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Sx,{children:t(lw,{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(g$,{errorMessage:u})]})]})},Ex=n.div`
|
|
1432
1437
|
width: 100%;
|
|
1433
1438
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1434
1439
|
border-radius: 8px;
|
|
1435
1440
|
padding: 4px 8px;
|
|
1436
|
-
`,
|
|
1441
|
+
`,Tx=n.table`
|
|
1437
1442
|
width: 100%;
|
|
1438
1443
|
border-collapse: separate;
|
|
1439
1444
|
border-spacing: 0 8px;
|
|
1440
|
-
`,
|
|
1445
|
+
`,Ox=n.td`
|
|
1441
1446
|
padding: 0 8px 0 0;
|
|
1442
1447
|
vertical-align: top;
|
|
1443
|
-
`,
|
|
1448
|
+
`,Nx=n.td`
|
|
1444
1449
|
width: 72px;
|
|
1445
1450
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1446
1451
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1447
|
-
`,
|
|
1452
|
+
`,Ax=({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=Gt(()=>{const e={};return i.forEach(({keyName:t,defaultValue:i})=>e[t]=i??""),e},[i]),v=(e,t,i)=>{const o=n.length?$s(n):[$s(y)];o[i][e]=t,r(o)},$=n.length?n:[y];return t(Ex,{children:e(Dl,{"data-id":a,$gap:0,children:[t(h$,{label:s,tooltip:l,required:c,badge:d}),t(Tx,{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(jt,{children:[l.length>1&&a>0?t("tr",{children:t(Ox,{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(Ox,{colSpan:s>1?s:void 0,children:e(Dl,{$gap:6,children:[m&&(i.label?t(h$,{label:i.label,tooltip:i.tooltip}):t(h$,{label:"\\u00A0"})),t($x,{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(Nx,{$topOffset:w,$center:h,children:e(_l,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(av,{leftIcon:_t,variant:nv.Secondary,size:rv.S,disabled:u,onClick:()=>(()=>{const e=n.length?$s(n):[$s(y)],t=$s(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]=$s(o[e.keyName]))}),e.push(t),r(e)})()}),t(av,{leftIcon:u?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:nv.Secondary,size:rv.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,i)=>i!==e);t.length||t.push($s(y)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(g$,{errorMessage:p,warnMessage:h,helpMessage:g})]})})};var kx;(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"})(kx||(kx={}));const Ix=n.div`
|
|
1448
1453
|
display: flex;
|
|
1449
1454
|
align-items: center;
|
|
1450
1455
|
justify-content: space-between;
|
|
@@ -1452,38 +1457,38 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1452
1457
|
|
|
1453
1458
|
padding: 18px 16px;
|
|
1454
1459
|
border-radius: 18px;
|
|
1455
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1460
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Xv["095"]};
|
|
1456
1461
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1457
1462
|
|
|
1458
1463
|
position: fixed;
|
|
1459
1464
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1460
1465
|
|
|
1461
|
-
${({$position:e})=>{switch(e){case
|
|
1466
|
+
${({$position:e})=>{switch(e){case kx.BottomCenter:return r`
|
|
1462
1467
|
bottom: 0;
|
|
1463
1468
|
left: 50%;
|
|
1464
|
-
animation-name: ${
|
|
1465
|
-
`;case
|
|
1469
|
+
animation-name: ${Vv.in.center};
|
|
1470
|
+
`;case kx.BottomRight:return r`
|
|
1466
1471
|
bottom: 0;
|
|
1467
1472
|
right: 0;
|
|
1468
|
-
animation-name: ${
|
|
1469
|
-
`;case
|
|
1473
|
+
animation-name: ${Vv.in.right};
|
|
1474
|
+
`;case kx.BottomLeft:return r`
|
|
1470
1475
|
bottom: 0;
|
|
1471
1476
|
left: 0;
|
|
1472
|
-
animation-name: ${
|
|
1473
|
-
`;case
|
|
1477
|
+
animation-name: ${Vv.in.left};
|
|
1478
|
+
`;case kx.TopCenter:return r`
|
|
1474
1479
|
top: 0;
|
|
1475
1480
|
left: 50%;
|
|
1476
|
-
animation-name: ${
|
|
1477
|
-
`;case
|
|
1481
|
+
animation-name: ${Vv.in.center};
|
|
1482
|
+
`;case kx.TopRight:return r`
|
|
1478
1483
|
top: 0;
|
|
1479
1484
|
right: 0;
|
|
1480
|
-
animation-name: ${
|
|
1481
|
-
`;case
|
|
1485
|
+
animation-name: ${Vv.in.right};
|
|
1486
|
+
`;case kx.TopLeft:return r`
|
|
1482
1487
|
top: 0;
|
|
1483
1488
|
left: 0;
|
|
1484
|
-
animation-name: ${
|
|
1489
|
+
animation-name: ${Vv.in.left};
|
|
1485
1490
|
`;default:return null}}}
|
|
1486
|
-
`,
|
|
1491
|
+
`,_x=({isOpen:i,onClose:n,richTitle:r,actions:o,position:a=kx.BottomCenter})=>i?e(Ix,{$position:a,children:[r&&t(L$,{...r}),t(I$,{onAnyClick:n,actions:o})]}):null,Dx=n.div`
|
|
1487
1492
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1488
1493
|
top: 50%;
|
|
1489
1494
|
left: 50%;
|
|
@@ -1504,7 +1509,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1504
1509
|
will-change: transform;
|
|
1505
1510
|
contain: layout paint;
|
|
1506
1511
|
|
|
1507
|
-
animation-name: ${({$closing:e})=>e?
|
|
1512
|
+
animation-name: ${({$closing:e})=>e?Vv.out.center:Vv.in.center};
|
|
1508
1513
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1509
1514
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1510
1515
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1513,9 +1518,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1513
1518
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1514
1519
|
don't compete with the slide-out. */
|
|
1515
1520
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1516
|
-
`,
|
|
1521
|
+
`,Rx=n(Pl)`
|
|
1517
1522
|
will-change: opacity;
|
|
1518
|
-
animation-name: ${({$closing:e})=>e?
|
|
1523
|
+
animation-name: ${({$closing:e})=>e?qv.out:qv.in};
|
|
1519
1524
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1520
1525
|
|
|
1521
1526
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1523,18 +1528,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1523
1528
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1524
1529
|
because the overlay is fading to 0. */
|
|
1525
1530
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1526
|
-
`,
|
|
1531
|
+
`,Lx=n.div`
|
|
1527
1532
|
position: relative;
|
|
1528
|
-
`,
|
|
1533
|
+
`,Px=n.div`
|
|
1529
1534
|
position: absolute;
|
|
1530
1535
|
top: 16px;
|
|
1531
1536
|
left: 16px;
|
|
1532
|
-
`,
|
|
1537
|
+
`,Ux=({isOpen:n,hideOverlay:r=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(Wt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),Wy(c),!c)return null;const g=e(i,{children:[!r&&t(Rx,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Dx,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Lx,{children:[a&&t(Px,{children:t(AS,{icon:e=>t(At,{rotate:-90,...e}),size:OS.L,onClick:a})}),d]})})]});return o?g:Zt(g,document.body)},Mx=n.div`
|
|
1533
1538
|
position: relative;
|
|
1534
1539
|
width: ${64}px;
|
|
1535
1540
|
height: ${({$height:e})=>e};
|
|
1536
1541
|
flex-shrink: 0;
|
|
1537
|
-
`,
|
|
1542
|
+
`,Fx=n.aside`
|
|
1538
1543
|
position: absolute;
|
|
1539
1544
|
top: 0;
|
|
1540
1545
|
left: 0;
|
|
@@ -1554,7 +1559,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1554
1559
|
transition:
|
|
1555
1560
|
width 200ms ease,
|
|
1556
1561
|
padding 200ms ease;
|
|
1557
|
-
`,
|
|
1562
|
+
`,zx=n.button`
|
|
1558
1563
|
display: flex;
|
|
1559
1564
|
align-items: center;
|
|
1560
1565
|
width: 100%;
|
|
@@ -1574,27 +1579,27 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1574
1579
|
&:active {
|
|
1575
1580
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1576
1581
|
}
|
|
1577
|
-
`,
|
|
1582
|
+
`,Bx=n.div`
|
|
1578
1583
|
width: ${40}px;
|
|
1579
1584
|
height: ${40}px;
|
|
1580
1585
|
display: flex;
|
|
1581
1586
|
align-items: center;
|
|
1582
1587
|
justify-content: center;
|
|
1583
1588
|
flex-shrink: 0;
|
|
1584
|
-
`,
|
|
1589
|
+
`,jx=n.div`
|
|
1585
1590
|
flex: 1 1 0;
|
|
1586
1591
|
min-width: 0;
|
|
1587
1592
|
overflow: hidden;
|
|
1588
1593
|
padding-right: 12px;
|
|
1589
1594
|
pointer-events: none;
|
|
1590
|
-
`,
|
|
1595
|
+
`,Hx=({height:i,icons:n})=>{const r=o(),[a,s]=Ht(!1);return t(Mx,{$height:i,children:t(Fx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:i,label:n,selected:o,icon:s,onClick:l})=>e(zx,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(Bx,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(jx,{children:t(Va,{size:ja.S,weight:500,color:Ha.Primary,nowrap:!0,children:n})})]},i))})})},Wx=n.div`
|
|
1591
1596
|
position: relative;
|
|
1592
1597
|
display: flex;
|
|
1593
1598
|
align-items: center;
|
|
1594
1599
|
justify-content: center;
|
|
1595
1600
|
width: 12px;
|
|
1596
1601
|
height: 12px;
|
|
1597
|
-
`,
|
|
1602
|
+
`,Xx=n.div`
|
|
1598
1603
|
position: absolute;
|
|
1599
1604
|
width: 6px;
|
|
1600
1605
|
height: 6px;
|
|
@@ -1607,9 +1612,9 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1607
1612
|
inset: 0;
|
|
1608
1613
|
border-radius: 100%;
|
|
1609
1614
|
background-color: ${({theme:e,$color:t=e.v2.colors.purple[500]})=>t};
|
|
1610
|
-
animation: ${
|
|
1615
|
+
animation: ${Yv} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
1611
1616
|
}
|
|
1612
|
-
`,
|
|
1617
|
+
`,Gx=({color:e})=>{const i=o(),n=e||i.v2.colors.purple[500];return t(Wx,{children:t(Xx,{$color:n})})},Vx=n.div`
|
|
1613
1618
|
display: flex;
|
|
1614
1619
|
flex-direction: column;
|
|
1615
1620
|
gap: 16px;
|
|
@@ -1633,26 +1638,26 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1633
1638
|
}
|
|
1634
1639
|
`}
|
|
1635
1640
|
`}
|
|
1636
|
-
`,
|
|
1641
|
+
`,Kx=n.div`
|
|
1637
1642
|
display: flex;
|
|
1638
1643
|
align-items: center;
|
|
1639
1644
|
gap: 16px;
|
|
1640
1645
|
width: 100%;
|
|
1641
|
-
`,
|
|
1646
|
+
`,Yx=n.div`
|
|
1642
1647
|
display: flex;
|
|
1643
1648
|
flex-direction: column;
|
|
1644
1649
|
gap: 4px;
|
|
1645
1650
|
flex: 1;
|
|
1646
1651
|
min-width: 0;
|
|
1647
|
-
`,
|
|
1652
|
+
`,Jx=n.div`
|
|
1648
1653
|
display: flex;
|
|
1649
1654
|
align-items: center;
|
|
1650
1655
|
gap: 8px;
|
|
1651
1656
|
flex-wrap: wrap;
|
|
1652
1657
|
min-width: 0;
|
|
1653
|
-
`,
|
|
1658
|
+
`,qx=n.div`
|
|
1654
1659
|
width: 100%;
|
|
1655
|
-
`,
|
|
1660
|
+
`,Qx=({"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(Vx,{"data-id":g,$selected:c,$disabled:p,onClick:m,children:[e(Kx,{children:[t(bx,{"data-id":`${g}-radio`,value:c,onChange:m,size:gx.L,disabled:p}),e(Yx,{children:[e(Jx,{children:[t(Va,{size:ja.S,weight:500,lineHeight:"24px",color:Ha.Primary,children:n}),r]}),a&&("string"==typeof a?t(Va,{size:ja.XXS,weight:400,lineHeight:"normal",color:c?h.v2.colors.purple[200]:Ha.Secondary,children:a}):a)]}),s]}),l&&t(qx,{onClick:e=>e.stopPropagation(),children:l}),d&&t(qx,{onClick:e=>e.stopPropagation(),children:d})]})},Zx=n.div`
|
|
1656
1661
|
width: 100%;
|
|
1657
1662
|
height: 100%;
|
|
1658
1663
|
|
|
@@ -1660,7 +1665,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1660
1665
|
animation: none !important;
|
|
1661
1666
|
transition: none !important;
|
|
1662
1667
|
}
|
|
1663
|
-
`,
|
|
1668
|
+
`,eC=({width:e="100%",height:i="100%",gap:n=0,elements:r,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Vt(null),c=Gt(()=>n?r.map((e,i)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${i}`)):r,[r,n]),u=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Wt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ni,{ref:d,style:{width:e,height:i},onScroll:a?u:void 0,children:c});return o?t(Zx,{children:p}):p},tC=[{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}],iC=tC[1].value,nC=tC[tC.length-1].value,rC=e=>({label:e?tC.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:nv.Secondary,size:rv.S}),oC=n.input`
|
|
1664
1669
|
width: 100px;
|
|
1665
1670
|
padding: 2px 12px;
|
|
1666
1671
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1690,7 +1695,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1690
1695
|
opacity: 0.4;
|
|
1691
1696
|
}
|
|
1692
1697
|
`}
|
|
1693
|
-
`,
|
|
1698
|
+
`,aC=()=>(new Date).toISOString().split("T")[0],sC=(e,t)=>{const i=new Date(e);return i.setTime(i.getTime()-60*t*60*1e3),i.toISOString().split("T")[0]},lC=({options:i=tC,maxAllowedValue:n=nC,defaultValue:r=iC,onApply:o,onClose:a})=>{const[s]=Ht(aC),[l,d]=Ht(r),[c,u]=Ht(()=>sC(s,r)),[p,h]=Ht(void 0),g=Gt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Gt(()=>i.map(({label:e,value:i})=>t(av,{label:e,variant:nv.Text,size:rv.S,textAlign:"left",isSelected:i===l,onClick:()=>(e=>{d(e),u(sC(s,e))})(i)},`window-hours-option-${i}`)),[i,l,s]);return e(Dl,{$gap:24,children:[e(Dl,{children:[m,t(bS,{}),e(Dl,{$gap:12,$padding:"0 12px",children:[t(Va,{size:ja.XXS,color:Ha.Secondary,nowrap:!0,children:"Custom range"}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"From"}),t(oC,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(_l,{$gap:18,$justifyContent:"space-between",children:[t(Va,{size:ja.XXS,nowrap:!0,children:"To"}),t(oC,{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(g$,{errorMessage:p}),e(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(av,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},dC=n.div`
|
|
1694
1699
|
display: flex;
|
|
1695
1700
|
flex-direction: column;
|
|
1696
1701
|
gap: 16px;
|
|
@@ -1699,75 +1704,71 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1699
1704
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1700
1705
|
width: 100%;
|
|
1701
1706
|
height: 100%;
|
|
1702
|
-
`,
|
|
1707
|
+
`,cC=n.div`
|
|
1703
1708
|
display: flex;
|
|
1704
1709
|
align-items: center;
|
|
1705
1710
|
gap: 16px;
|
|
1706
|
-
`,
|
|
1711
|
+
`,uC=n.div`
|
|
1707
1712
|
width: 50px;
|
|
1708
1713
|
height: 50px;
|
|
1709
1714
|
border-radius: 8px;
|
|
1710
1715
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1711
1716
|
background-size: 200% 100%;
|
|
1712
|
-
animation: ${
|
|
1713
|
-
`,
|
|
1717
|
+
animation: ${Jv} 10s infinite linear;
|
|
1718
|
+
`,pC=n(Dl)`
|
|
1714
1719
|
flex: 1;
|
|
1715
1720
|
gap: 12px;
|
|
1716
|
-
`,
|
|
1721
|
+
`,hC=n.div`
|
|
1717
1722
|
width: ${({$width:e})=>e};
|
|
1718
1723
|
height: 16px;
|
|
1719
1724
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1720
1725
|
background-size: 200% 100%;
|
|
1721
|
-
animation: ${
|
|
1726
|
+
animation: ${Jv} 1.5s infinite linear;
|
|
1722
1727
|
border-radius: 4px;
|
|
1723
|
-
`,
|
|
1724
|
-
${({$maxHeight:e,$fitContent:t,$virtualize:i})=>t&&e&&i?`\n flex: 0 0 auto;\n height: ${e};\n overflow: hidden;\n `:t&&e?`\n flex: 0 0 auto;\n height: fit-content;\n max-height: ${e};\n overflow: auto;\n `:t?"\n flex: 0 0 auto;\n height: fit-content;\n overflow: auto;\n ":e?`\n height: ${e};\n flex: 0 0 auto;\n overflow: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow: hidden;\n "}
|
|
1728
|
+
`,gC=({size:i=5,maxWidth:n,maxHeight:r})=>t(dC,{$maxWidth:n,$maxHeight:r,children:[...Array(i)].map((i,n)=>e(cC,{children:[t(uC,{}),e(pC,{children:[t(hC,{$width:"80%"}),t(hC,{$width:"100%"})]})]},n))}),mC=({currentStep:i,data:n,gap:r=12})=>t(Dl,{$gap:r,children:n.map(n=>{const r=n.step<i,o=n.step===i;return e(_l,{$gap:8,children:[r||n.forceDoneBadge?t(Lv,{status:Oi.Success,label:"",leftIcon:$t}):t(Lv,{status:Oi.Default,label:n.step.toString()}),t(Va,{size:o?ja.M:ja.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var fC;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(fC||(fC={}));const bC=n.div`
|
|
1729
|
+
${({$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 "}
|
|
1725
1730
|
width: 100%;
|
|
1726
1731
|
display: flex;
|
|
1727
1732
|
flex-direction: column;
|
|
1728
|
-
`,
|
|
1733
|
+
`,yC=n.div`
|
|
1729
1734
|
width: 100%;
|
|
1730
1735
|
flex: 1;
|
|
1731
1736
|
min-height: 0;
|
|
1732
1737
|
display: flex;
|
|
1733
1738
|
flex-direction: column;
|
|
1734
|
-
`,
|
|
1739
|
+
`,vC=n.div`
|
|
1735
1740
|
flex-shrink: 0;
|
|
1736
1741
|
position: relative;
|
|
1737
1742
|
z-index: 2;
|
|
1738
|
-
|
|
1743
|
+
`,$C=n.div`
|
|
1739
1744
|
flex: 1;
|
|
1740
1745
|
min-height: 0;
|
|
1741
1746
|
overflow: hidden;
|
|
1742
|
-
`,
|
|
1747
|
+
`,wC=n.div`
|
|
1743
1748
|
position: relative;
|
|
1744
1749
|
display: flex;
|
|
1745
1750
|
width: 100%;
|
|
1746
|
-
|
|
1751
|
+
min-width: 100%;
|
|
1752
|
+
`,SC=n.div`
|
|
1747
1753
|
display: flex;
|
|
1748
1754
|
flex-direction: column;
|
|
1749
1755
|
flex-shrink: 0;
|
|
1750
1756
|
width: 100%;
|
|
1751
|
-
|
|
1757
|
+
min-width: 100%;
|
|
1758
|
+
`,xC=n.div`
|
|
1752
1759
|
width: 100%;
|
|
1753
1760
|
flex-shrink: 0;
|
|
1754
1761
|
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1755
|
-
|
|
1762
|
+
`,CC=n.div`
|
|
1756
1763
|
position: relative;
|
|
1757
|
-
/*
|
|
1758
|
-
*
|
|
1759
|
-
*
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
/* See the matching rule on Td below for the full explanation.
|
|
1767
|
-
*
|
|
1768
|
-
* LAST_COLUMN_STRETCH: only the last data column grows into leftover row
|
|
1769
|
-
* width. Non-last columns are content-sized (auto-width) and stay put.
|
|
1770
|
-
* Revert grow rule to: !$autoWidth && $resolvedWidth == null */
|
|
1764
|
+
/* Measured columns: pin to content width. Last column omits max so it can
|
|
1765
|
+
* stretch past the measured minimum (LAST_COLUMN_STRETCH). Flex (non-measured)
|
|
1766
|
+
* columns use min-width: 0 so long labels can shrink/truncate inside the row. */
|
|
1767
|
+
min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
|
|
1768
|
+
max-width: ${({$resolvedWidth:e,$isLast:t})=>null==e||t?void 0:`${e}px`};
|
|
1769
|
+
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLast:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1770
|
+
|
|
1771
|
+
/* LAST_COLUMN_STRETCH: last data column always grows into leftover width. */
|
|
1771
1772
|
${({$isLast:e})=>e&&r`
|
|
1772
1773
|
flex-grow: 1;
|
|
1773
1774
|
`}
|
|
@@ -1779,15 +1780,15 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1779
1780
|
|
|
1780
1781
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1781
1782
|
background-color: ${t};
|
|
1782
|
-
`;switch(e){case
|
|
1783
|
+
`;switch(e){case fC.Data:return r`
|
|
1783
1784
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1784
|
-
`;case
|
|
1785
|
+
`;case fC.DataSecondary:return r`
|
|
1785
1786
|
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1786
1787
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1787
|
-
`;case
|
|
1788
|
+
`;case fC.Pretty:return r`
|
|
1788
1789
|
background-color: transparent;
|
|
1789
1790
|
`;default:return""}}}
|
|
1790
|
-
`,
|
|
1791
|
+
`,EC=n.div`
|
|
1791
1792
|
position: absolute;
|
|
1792
1793
|
top: 50%;
|
|
1793
1794
|
right: 0;
|
|
@@ -1795,31 +1796,21 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1795
1796
|
width: 1px;
|
|
1796
1797
|
height: 18px;
|
|
1797
1798
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1798
|
-
`,
|
|
1799
|
-
/* See Th —
|
|
1800
|
-
min-width: ${({$
|
|
1801
|
-
max-width: ${({$resolvedWidth:e})=>null
|
|
1802
|
-
flex: ${({$
|
|
1803
|
-
|
|
1804
|
-
/* LAST_COLUMN_STRETCH: only the last data column grows into leftover
|
|
1805
|
-
* row width so the table fills its parent. Non-last columns are measured
|
|
1806
|
-
* to content (see autoWidthColumnKeys in index.tsx) and keep a fixed
|
|
1807
|
-
* pixel width — short columns like "Duration" no longer share equal flex
|
|
1808
|
-
* with wide ones like "Trace ID".
|
|
1809
|
-
*
|
|
1810
|
-
* The last column uses flex: 1 (not auto-width); this longhand ensures
|
|
1811
|
-
* grow even if a future change puts a resolvedWidth on it. Checkbox
|
|
1812
|
-
* column stays pinned via inline style. Explicit column.flex on a
|
|
1813
|
-
* non-last column is honoured as written (no forced grow).
|
|
1814
|
-
*
|
|
1815
|
-
* Prior behaviour forced flex-grow on every non-autoWidth column (so
|
|
1816
|
-
* text columns shared leftover equally). Revert to:
|
|
1817
|
-
* !$autoWidth && $resolvedWidth == null */
|
|
1799
|
+
`,TC=n.div`
|
|
1800
|
+
/* See Th — measured content width; last stretches; flex columns shrink. */
|
|
1801
|
+
min-width: ${({$resolvedWidth:e,$autoWidth:t})=>null!=e?`${e}px`:t?"auto":0};
|
|
1802
|
+
max-width: ${({$resolvedWidth:e,$isLastCell:t})=>null==e||t?void 0:`${e}px`};
|
|
1803
|
+
flex: ${({$autoWidth:e,$resolvedWidth:t,$isLastCell:i})=>null!=t?i?`1 0 ${t}px`:`0 0 ${t}px`:e?"0 0 auto":1};
|
|
1804
|
+
|
|
1805
|
+
/* LAST_COLUMN_STRETCH: only the last data column grows into leftover row width. */
|
|
1818
1806
|
${({$isLastCell:e})=>e&&r`
|
|
1819
1807
|
flex-grow: 1;
|
|
1820
1808
|
`}
|
|
1821
1809
|
|
|
1822
|
-
|
|
1810
|
+
/* Visible while measuring; then clip/scroll when content exceeds the cell.
|
|
1811
|
+
* Flex (non-measured) columns use hidden so TruncatableTypography can ellipsis. */
|
|
1812
|
+
overflow-x: ${({$autoWidth:e,$resolvedWidth:t})=>e&&null==t?"visible":null!=t?"auto":"hidden"};
|
|
1813
|
+
overflow-y: hidden;
|
|
1823
1814
|
display: flex;
|
|
1824
1815
|
align-items: center;
|
|
1825
1816
|
|
|
@@ -1827,40 +1818,50 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1827
1818
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1828
1819
|
box-sizing: border-box;
|
|
1829
1820
|
|
|
1830
|
-
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case
|
|
1821
|
+
${({$variant:e,$index:t,$selected:i,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case fC.Data:return r`
|
|
1831
1822
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1832
1823
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1833
1824
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1834
|
-
`;case
|
|
1825
|
+
`;case fC.DataSecondary:return r`
|
|
1835
1826
|
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1836
1827
|
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1837
1828
|
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]};
|
|
1838
|
-
`;case
|
|
1829
|
+
`;case fC.Pretty:return r`
|
|
1839
1830
|
border: none;
|
|
1840
1831
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1841
1832
|
background-color: ${({theme:e})=>i?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1842
1833
|
`;default:return""}}}
|
|
1843
|
-
`,
|
|
1844
|
-
|
|
1834
|
+
`,OC=n.div`
|
|
1835
|
+
/* Off-screen — must not contribute to Container scrollWidth. */
|
|
1836
|
+
position: fixed;
|
|
1845
1837
|
top: 0;
|
|
1846
|
-
left:
|
|
1838
|
+
left: -10000px;
|
|
1847
1839
|
visibility: hidden;
|
|
1848
1840
|
pointer-events: none;
|
|
1849
|
-
|
|
1850
|
-
|
|
1841
|
+
z-index: -1;
|
|
1842
|
+
display: flex;
|
|
1843
|
+
flex-direction: column;
|
|
1844
|
+
align-items: flex-start;
|
|
1845
|
+
width: max-content;
|
|
1851
1846
|
white-space: nowrap;
|
|
1852
|
-
`,
|
|
1847
|
+
`,NC=n.div`
|
|
1853
1848
|
display: inline-flex;
|
|
1854
1849
|
align-items: center;
|
|
1855
1850
|
padding: 18px 24px;
|
|
1851
|
+
border: 1px solid transparent;
|
|
1856
1852
|
box-sizing: border-box;
|
|
1857
1853
|
white-space: nowrap;
|
|
1858
|
-
`,
|
|
1854
|
+
`,AC=n.div`
|
|
1859
1855
|
display: inline-flex;
|
|
1860
1856
|
align-items: center;
|
|
1861
1857
|
gap: 4px;
|
|
1862
1858
|
white-space: nowrap;
|
|
1863
|
-
`,
|
|
1859
|
+
`,kC=n.div`
|
|
1860
|
+
display: inline-flex;
|
|
1861
|
+
align-items: center;
|
|
1862
|
+
flex-shrink: 0;
|
|
1863
|
+
gap: 4px;
|
|
1864
|
+
`,IC=n.div`
|
|
1864
1865
|
width: 100%;
|
|
1865
1866
|
height: 100%;
|
|
1866
1867
|
display: flex;
|
|
@@ -1868,7 +1869,8 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1868
1869
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1869
1870
|
gap: 4px;
|
|
1870
1871
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1871
|
-
|
|
1872
|
+
min-width: 0;
|
|
1873
|
+
`,_C=({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]=Ht(!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,_=null!=g&&o.id===g,D=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:_,$withClick:L,onClick:P,$hovered:L&&y}),M=I&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=D.length>0?t(nx,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null,z=e(i,{children:[h&&t(TC,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(iv,{text:O,children:t(y$,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(y$,{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(P$,{size:ja.XXS,align:o,nowrap:!0,fullWidth:!f,children:c?.rawValue||"-"}),y=e(_l,{$width:"100%",$gap:k&&g?8:0,$justifyContent:m,style:{minWidth:0},children:[k&&g?t(I?Et:Ut,{}):null,b]});return t(TC,{$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(SC,{"data-table-row-index":a,children:[e(wC,{...B,children:[z,F]}),null!=M&&e(i,{children:[t(xC,{$maxHeight:b,children:M}),!R&&t(bS,{margin:"0"})]})]}):e(wC,{"data-table-row-index":a,...B,children:[z,F]})},DC=({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=Gt(()=>r.map((i,p)=>t(_C,{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(eC,{gap:e===fC.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(i,{children:y})},RC=({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===fi.Ascending?0:180;return t(av,{variant:nv.Text,size:rv.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>r(e)})},LC=({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=Gt(()=>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(A$,{items:d,withMultiSelect:!0,selectedIds:i[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},PC=({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(wC,{children:[h&&t(CC,{$variant:i,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(y$,{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(Va,{size:ja.XS,align:$,nowrap:!0,children:m}):t(P$,{size:ja.XS,align:$,nowrap:!0,fullWidth:!1,children:m});return e(CC,{$variant:i,$backgroundColor:n,$isFirst:S,$isLast:x,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(IC,{$textAlign:$,children:[f?t(iv,{text:f,children:C}):C,(!b||!y)&&e(kC,{children:[!b&&t(RC,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!y&&t(LC,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:v})]})]}),!x&&i===fC.Data&&t(EC,{})]},`column-${g}`)})]}),UC=()=>{},MC={},FC=[],zC=e=>[],BC=({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]=Ht(fi.Ascending),[x,C]=Ht(""),[E,T]=Ht({}),[O,N]=Ht(null),A=m??E,k=void 0!==v,I=k?v:O,_=Xt(e=>{C(e),S(e=>e===fi.Ascending?fi.Descending:fi.Ascending)},[]),D=Xt((e,t)=>{const i={...A,[e]:t};f&&f(i),void 0===m&&T(i)},[A,f,m]),R=Gt(()=>{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===fi.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=Gt(()=>null==b?-1:R.findIndex(e=>e.id===b),[R,b]),{partiallySelected:P,allSelected:U}=Gt(()=>{const e=R.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[R]),M=Gt(()=>{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]),F=Vt(null),[z,B]=Ht({}),j=Gt(()=>{if(0===M.size)return[];const i=d[0]?.key,n=c.some(e=>null!=e.expandedContent);return d.filter(e=>M.has(e.key)).map(r=>{const o=[e(AC,{children:[t(Va,{size:ja.XS,align:r.textAlign,nowrap:!0,children:r.label}),(!r.noSort||!r.noFilter)&&e(kC,{children:[!r.noSort&&t(RC,{columnKey:r.key,sortDirection:fi.Ascending,sortByKey:"",onSort:UC}),!r.noFilter&&t(LC,{columnKey:r.key,filters:MC,onFilter:UC,rowsUnfiltered:FC,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(Va,{size:ja.XS,children:s.rawValue||"-"});o.push(a?e(_l,{$gap:8,children:[t(Ut,{}),l]},`mw-${r.key}-${n}`):t(zt.Fragment,{children:l},`mw-${r.key}-${n}`))}),{key:r.key,nodes:o}})},[d,c,M]);Kt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const i=t.dataset.mwKey;if(!i)return;const n=Math.ceil(Math.max(t.getBoundingClientRect().width,t.scrollWidth));(!e[i]||n>e[i])&&(e[i]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>t[i]===e[i])?t:e)},[j,M]);const H=Vt(null),[W,X]=Ht(0),G=R.some(e=>null!=e.expandedContent);Kt(()=>{if(!G)return void X(0);const e=H.current;if(!e)return;const t=()=>{const t=e.clientHeight;X(e=>e===t?e:t)};t();const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[G,R.length]);const V=Xt(e=>{const t=I===e?null:e;k||N(t),$?.(t)},[I,k,$]),K=G&&W>0?`${W}px`:void 0,Y=r&&null!=n&&R.length>=100,J=!r||Y;return e(bC,{$maxHeight:n,$fitContent:r,$virtualize:Y,children:[j.length>0&&t(OC,{ref:F,"aria-hidden":!0,children:j.flatMap(({key:e,nodes:i})=>i.map((i,n)=>t(NC,{"data-mw-key":e,children:i},`mw-${e}-${n}`)))}),e(yC,{$variant:i,children:[!a&&t(vC,{children:t(PC,{variant:i,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:w,sortByKey:x,onSort:_,filters:A,onFilter:D,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):R.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),R.length?J?t($C,{ref:G?H:void 0,children:t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K})}):t(DC,{variant:i,columns:d,rows:R,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||zC,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!1,expandedRowId:I,onToggleExpand:V,expandedMaxHeight:K}):t(Rl,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(gC,{size:3,maxHeight:n}):t(c$,{...l})})]})]})},jC=n.div`
|
|
1872
1874
|
padding: 6px 12px;
|
|
1873
1875
|
|
|
1874
1876
|
display: flex;
|
|
@@ -1886,7 +1888,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1886
1888
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1887
1889
|
}
|
|
1888
1890
|
`}
|
|
1889
|
-
`,
|
|
1891
|
+
`,HC=n.textarea`
|
|
1890
1892
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1891
1893
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1892
1894
|
flex: 1;
|
|
@@ -1911,19 +1913,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1911
1913
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1912
1914
|
}
|
|
1913
1915
|
}
|
|
1914
|
-
`,
|
|
1916
|
+
`,WC=({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=Vt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Dl,{$gap:6,children:[t(h$,{label:i,tooltip:r,required:n,badge:o}),t(jC,{$disabled:p,$error:!!a,children:t(HC,{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(g$,{errorMessage:a,warnMessage:s,helpMessage:l})]})},XC=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],GC=n.div`
|
|
1915
1917
|
flex: 1;
|
|
1916
1918
|
min-width: 0;
|
|
1917
|
-
`,
|
|
1919
|
+
`,VC=n.div`
|
|
1918
1920
|
flex: 0 0 auto;
|
|
1919
1921
|
min-width: 140px;
|
|
1920
|
-
`,
|
|
1922
|
+
`,KC=({name:i,label:n,tooltip:r,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=XC,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Gt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Gt(()=>((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(Dl,{$width:b,$gap:6,children:[t(h$,{label:n,tooltip:r,required:s,badge:o}),e(_l,{$gap:8,$alignItems:"center",children:[t(GC,{children:t(lw,{name:i,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(fd(e.target.value),$)})}),t(VC,{children:t(JS,{name:`${i}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(g$,{errorMessage:h,warnMessage:g,helpMessage:m})]})},YC=n.div`
|
|
1921
1923
|
display: flex;
|
|
1922
1924
|
flex-direction: column;
|
|
1923
1925
|
min-width: 0;
|
|
1924
1926
|
width: 100%;
|
|
1925
1927
|
flex: 1;
|
|
1926
|
-
`,
|
|
1928
|
+
`,JC=n.div`
|
|
1927
1929
|
display: flex;
|
|
1928
1930
|
flex-wrap: wrap;
|
|
1929
1931
|
align-items: center;
|
|
@@ -1940,19 +1942,19 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1940
1942
|
border-top-left-radius: 12px;
|
|
1941
1943
|
border-top-right-radius: 12px;
|
|
1942
1944
|
`;default:return r``}}}
|
|
1943
|
-
`,
|
|
1945
|
+
`,qC=n.div`
|
|
1944
1946
|
display: flex;
|
|
1945
1947
|
align-items: center;
|
|
1946
1948
|
gap: 4px;
|
|
1947
1949
|
min-width: 0;
|
|
1948
|
-
`,
|
|
1950
|
+
`,QC=n.div`
|
|
1949
1951
|
display: flex;
|
|
1950
1952
|
align-items: center;
|
|
1951
1953
|
justify-content: center;
|
|
1952
1954
|
padding: 4px;
|
|
1953
1955
|
border-radius: 4px;
|
|
1954
1956
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1955
|
-
`,
|
|
1957
|
+
`,ZC=n.div`
|
|
1956
1958
|
display: flex;
|
|
1957
1959
|
flex-direction: column;
|
|
1958
1960
|
width: 100%;
|
|
@@ -1980,7 +1982,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1980
1982
|
border-bottom-left-radius: 8px;
|
|
1981
1983
|
border-bottom-right-radius: 8px;
|
|
1982
1984
|
`;default:return r``}}}
|
|
1983
|
-
`,
|
|
1985
|
+
`,eE=r`
|
|
1984
1986
|
${({theme:e,$variant:t})=>{switch(t){case"timing":return r`
|
|
1985
1987
|
background-color: ${e.v2.colors.yellow[1e3]};
|
|
1986
1988
|
border-left: 2px solid ${e.v2.colors.yellow[500]};
|
|
@@ -1998,7 +2000,7 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
1998
2000
|
${({$selected:e,$variant:t,theme:i})=>e&&"default"===t&&r`
|
|
1999
2001
|
border-left-color: ${i.v2.colors.silver[500]};
|
|
2000
2002
|
`}
|
|
2001
|
-
`,
|
|
2003
|
+
`,tE=n.button`
|
|
2002
2004
|
display: flex;
|
|
2003
2005
|
flex-direction: column;
|
|
2004
2006
|
align-items: stretch;
|
|
@@ -2012,12 +2014,12 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2012
2014
|
color: inherit;
|
|
2013
2015
|
font: inherit;
|
|
2014
2016
|
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
2015
|
-
${
|
|
2017
|
+
${eE}
|
|
2016
2018
|
|
|
2017
2019
|
&:last-child {
|
|
2018
2020
|
box-shadow: none;
|
|
2019
2021
|
}
|
|
2020
|
-
`,
|
|
2022
|
+
`,iE=n.div`
|
|
2021
2023
|
display: flex;
|
|
2022
2024
|
align-items: center;
|
|
2023
2025
|
gap: 8px;
|
|
@@ -2026,16 +2028,16 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2026
2028
|
padding: 0 8px;
|
|
2027
2029
|
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
2028
2030
|
box-sizing: border-box;
|
|
2029
|
-
`,
|
|
2031
|
+
`,nE=n(Va)`
|
|
2030
2032
|
flex-shrink: 0;
|
|
2031
2033
|
min-width: 10px;
|
|
2032
|
-
`,
|
|
2034
|
+
`,rE=n.div`
|
|
2033
2035
|
display: flex;
|
|
2034
2036
|
flex: 1;
|
|
2035
2037
|
align-items: center;
|
|
2036
2038
|
gap: 4px;
|
|
2037
2039
|
min-width: 0;
|
|
2038
|
-
`,
|
|
2040
|
+
`,oE=n.div`
|
|
2039
2041
|
display: flex;
|
|
2040
2042
|
flex-shrink: 0;
|
|
2041
2043
|
align-items: center;
|
|
@@ -2045,22 +2047,22 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2045
2047
|
overflow: hidden;
|
|
2046
2048
|
border-radius: 4px;
|
|
2047
2049
|
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
2048
|
-
`,
|
|
2050
|
+
`,aE=n(Va)`
|
|
2049
2051
|
width: 100%;
|
|
2050
2052
|
overflow: hidden;
|
|
2051
2053
|
font-family: ${({theme:e})=>e.font_family.code};
|
|
2052
2054
|
line-height: 16px;
|
|
2053
2055
|
text-overflow: ellipsis;
|
|
2054
2056
|
white-space: nowrap;
|
|
2055
|
-
`,
|
|
2057
|
+
`,sE=n.div`
|
|
2056
2058
|
display: flex;
|
|
2057
2059
|
flex: 1;
|
|
2058
2060
|
align-items: center;
|
|
2059
2061
|
gap: 8px;
|
|
2060
2062
|
min-width: 0;
|
|
2061
|
-
`,
|
|
2063
|
+
`,lE=n(Va)`
|
|
2062
2064
|
flex-shrink: 0;
|
|
2063
|
-
`,
|
|
2065
|
+
`,dE=n.div`
|
|
2064
2066
|
display: flex;
|
|
2065
2067
|
flex-shrink: 0;
|
|
2066
2068
|
align-items: center;
|
|
@@ -2079,18 +2081,18 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2079
2081
|
background-color: ${e.v2.colors.green[900]};
|
|
2080
2082
|
color: ${e.v2.colors.green[300]};
|
|
2081
2083
|
`}}}
|
|
2082
|
-
`,
|
|
2084
|
+
`,cE=n.div`
|
|
2083
2085
|
display: flex;
|
|
2084
2086
|
flex: 1;
|
|
2085
2087
|
align-items: center;
|
|
2086
2088
|
gap: 4px;
|
|
2087
2089
|
min-width: 0;
|
|
2088
|
-
`,
|
|
2090
|
+
`,uE=n.div`
|
|
2089
2091
|
display: flex;
|
|
2090
2092
|
flex-direction: column;
|
|
2091
2093
|
width: 100%;
|
|
2092
2094
|
box-sizing: border-box;
|
|
2093
|
-
`,
|
|
2095
|
+
`,pE=n.div`
|
|
2094
2096
|
display: flex;
|
|
2095
2097
|
align-items: center;
|
|
2096
2098
|
width: 100%;
|
|
@@ -2099,20 +2101,20 @@ import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import n,{css as
|
|
|
2099
2101
|
box-sizing: border-box;
|
|
2100
2102
|
background-color: ${({theme:e})=>e.v2.colors.green[900]};
|
|
2101
2103
|
border-left: 2px solid ${({theme:e})=>e.v2.colors.green[500]};
|
|
2102
|
-
`,
|
|
2104
|
+
`,hE=(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]}},gE=({row:i})=>{const n=o(),r=!!i.scope,a=i.attributes?.filter(e=>!!e?.key||!!e?.placeholder)??[];return r||i.scopePlaceholder||a.length?t(uE,{children:e(Dl,{$gap:0,children:[i.scopePlaceholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})}):r?t(ux,{label:"Scope Attribute",value:i.scope}):null,a.map((e,i)=>e.placeholder?t(pE,{children:t(_t,{size:12,fill:n.v2.colors.green[500]})},`attr-placeholder-${i}`):t(ux,{label:e.key??"",value:e.value},`${e.key}-${i}`))]})}):null},mE=({row:i,expanded:n,onToggle:r})=>{const a=o(),s=(e=>e??"default")(i.variant),l="placeholder"!==s,d=i.depth??0,c=Xt(()=>{l&&r(i.id)},[l,r,i.id]);if("placeholder"===s)return t(tE,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(iE,{$depth:d,children:t(cE,{children:i.badge?.icon?t(i.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=i.badge?.icon??void 0,p=i.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(tE,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(iE,{$depth:d,children:[t(nE,{size:ja.XXXS,color:Ha.Disable,nowrap:!0,children:i.index??""}),e(rE,{children:[i.service?t(oE,{title:i.service,children:t(aE,{size:ja.XXXS,color:a.v2.colors.purple[300],children:i.service})}):null,e(sE,{children:[t(Va,{size:ja.XXXS,color:n||"default"!==s?Ha.Primary:Ha.Secondary,nowrap:!0,children:i.name??""}),i.badge?.label?e(dE,{$tone:p,children:[t(Va,{size:ja.XXXS,color:hE(a,p),nowrap:!0,children:i.badge.label}),u?t(u,{size:12,fill:hE(a,p)}):null]}):null]}),i.durationLabel?t(lE,{size:ja.XXXS,color:h??Ha.Secondary,nowrap:!0,children:i.durationLabel}):null]})]}),n?t(gE,{row:i}):null]})},fE=({title:i,titleIcon:n,headerBadge:r,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Gt(()=>new Set(l??[]),[l]),h=Xt(e=>{d?.(e)},[d]),g=!!(n||i||r?.label||a?.length),m="success"===r?.tone?u.v2.colors.green[500]:"danger"===r?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===r?.tone?u.v2.colors.black[500]:"danger"===r?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(YC,{children:[g&&e(JC,{$corner:c??"both",children:[(n||i)&&e(qC,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),i&&t(Va,{size:ja.XS,color:Ha.Primary,nowrap:!0,children:i})]}),r?.label?t(Lv,{label:r.label,backgroundColor:m,textColor:f,textSize:ja.XXXS}):null,a?.map(e=>t(QC,{children:t(Va,{size:ja.XXXS,color:Ha.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(ZC,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(mE,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(_l,{$justifyContent:"center",style:{padding:16},children:t(Va,{size:ja.XXXS,color:Ha.Secondary,children:"No spans"})})})]})},bE=n.div`
|
|
2103
2105
|
min-width: 500px;
|
|
2104
|
-
`,
|
|
2106
|
+
`,yE=n.div`
|
|
2105
2107
|
display: flex;
|
|
2106
2108
|
flex-direction: column;
|
|
2107
2109
|
align-items: center;
|
|
2108
2110
|
gap: 16px;
|
|
2109
2111
|
padding: 24px;
|
|
2110
2112
|
width: 100%;
|
|
2111
|
-
`,
|
|
2113
|
+
`,vE=n.div`
|
|
2112
2114
|
display: flex;
|
|
2113
2115
|
justify-content: center;
|
|
2114
2116
|
gap: 16px;
|
|
2115
2117
|
padding: 16px 24px;
|
|
2116
2118
|
width: 100%;
|
|
2117
2119
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2118
|
-
|
|
2120
|
+
`,$E=({visual:i,title:n,description:r,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Ux,{isOpen:o,onClose:a,...c,children:e(bE,{children:[e(yE,{children:[i&&t(i,{}),t(Va,{size:ja.M,weight:500,color:Ha.Primary,children:n}),t(Dl,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(Va,{size:ja.XS,weight:400,color:Ha.Secondary,children:e},e))}),d]}),(s||l)&&e(vE,{children:[s&&t(av,{"data-id":"deny",...s}),l&&t(av,{"data-id":"approve",...l})]})]})});export{dw as $,k$ as A,av as B,Rl as C,YS as D,H$ as E,Dl as F,jS as G,Ju as H,Ax as I,tp as J,Dv as K,ip as L,np as M,c$ as N,qu as O,yi as P,wi as Q,L$ as R,Oi as S,iv as T,_u as U,wl as V,$E as W,Ms as X,Y$ as Y,Uu as Z,o$ as _,I$ as a,$s as a$,Vu as a0,m$ as a1,rp as a2,op as a3,Iu as a4,ss as a5,bS as a6,Cx as a7,Zv as a8,Gc as a9,A$ as aA,du as aB,Cu as aC,sp as aD,$u as aE,Zu as aF,lp as aG,ap as aH,dp as aI,cp as aJ,Hu as aK,cu as aL,hu as aM,gu as aN,bu as aO,vu as aP,yu as aQ,Au as aR,eu as aS,tu as aT,su as aU,Wu as aV,Xu as aW,Yu as aX,sg as aY,iu as aZ,ku as a_,Tu as aa,Mi as ab,Bi as ac,Yi as ad,Ji as ae,qi as af,zi as ag,ji as ah,Fi as ai,za as aj,Lu as ak,pu as al,Ru as am,uu as an,Fu as ao,Eu as ap,Du as aq,Mu as ar,Ku as as,Ou as at,bx as au,Gu as av,Su as aw,lu as ax,xu as ay,wu as az,bi as b,gC as b$,lg as b0,eC as b1,Wl as b2,l$ as b3,sv as b4,_s as b5,nS as b6,_y as b7,Za as b8,ll as b9,Vi as bA,hd as bB,Av as bC,hr as bD,gr as bE,mr as bF,fr as bG,br as bH,cn as bI,so as bJ,lo as bK,co as bL,uo as bM,po as bN,on as bO,nn as bP,Do as bQ,mn as bR,Ko as bS,hn as bT,Wo as bU,Fa as bV,Ma as bW,lc as bX,Li as bY,Xv as bZ,Il as b_,Si as ba,xi as bb,Ey as bc,Py as bd,zy as be,Dy as bf,Js as bg,Ja as bh,Dn as bi,en as bj,Gs as bk,Fc as bl,Mc as bm,Pc as bn,Uc as bo,nd as bp,dc as bq,id as br,By as bs,Nn as bt,si as bu,oi as bv,rd as bw,od as bx,Pn as by,gd as bz,zc as c,jo as c$,En as c0,Lv as c1,li as c2,Bc as c3,hi as c4,jc as c5,gx as c6,P$ as c7,Ka as c8,Pd as c9,Fr as cA,kr as cB,Ar as cC,Mr as cD,Ur as cE,Rr as cF,Dr as cG,Pr as cH,Lr as cI,Gr as cJ,Xr as cK,Br as cL,zr as cM,Wr as cN,Hr as cO,jr as cP,Jr as cQ,Yr as cR,Kr as cS,Vr as cT,_x as cU,no as cV,Fn as cW,Mn as cX,io as cY,kx as cZ,Bo as c_,oc as ca,ec as cb,tc as cc,nc as cd,ic as ce,Sp as cf,Nu as cg,Pu as ch,xp as ci,ju as cj,wp as ck,ou as cl,au as cm,mu as cn,Cr as co,xr as cp,Er as cq,Tr as cr,qr as cs,Qr as ct,Zr as cu,eo as cv,_r as cw,Ir as cx,Nr as cy,Or as cz,h$ as d,Ta as d$,Ho as d0,Go as d1,Yn as d2,Jn as d3,Xn as d4,Xo as d5,Eo as d6,Co as d7,bv as d8,Oo as d9,ca as dA,ua as dB,da as dC,la as dD,Qo as dE,ga as dF,ha as dG,pa as dH,ba as dI,fa as dJ,ma as dK,Zo as dL,$a as dM,va as dN,ya as dO,ea as dP,Sa as dQ,wa as dR,ta as dS,xa as dT,kv as dU,Ca as dV,Ea as dW,Oa as dX,ka as dY,Aa as dZ,Na as d_,Vo as da,To as db,$o as dc,rr as dd,No as de,Wn as df,So as dg,Ao as dh,ko as di,Gn as dj,Vn as dk,Kn as dl,qn as dm,Qn as dn,vo as dp,Ua as dq,La as dr,Jo as ds,ra as dt,na as du,ia as dv,sa as dw,aa as dx,oa as dy,qo as dz,Va as e,Gd as e$,Pa as e0,Da as e1,Ra as e2,_a as e3,Ia as e4,an as e5,pr as e6,dr as e7,ur as e8,cr as e9,Xd as eA,mv as eB,rs as eC,Ui as eD,ns as eE,Vd as eF,ux as eG,Fs as eH,Kw as eI,Ay as eJ,ql as eK,Jl as eL,Hs as eM,ox as eN,Ny as eO,sl as eP,ks as eQ,Gl as eR,Ky as eS,qd as eT,Yd as eU,cd as eV,dl as eW,Xl as eX,zs as eY,Ai as eZ,Hd as e_,ar as ea,sr as eb,lr as ec,or as ed,nr as ee,_n as ef,ai as eg,AS as eh,OS as ei,Un as ej,Ws as ek,sc as el,Ba as em,qa as en,gi as eo,Qx as ep,Ds as eq,cS as er,bs as es,mS as et,On as eu,pd as ev,Es as ew,Ql as ex,qs as ey,Nv as ez,Ha as f,tm as f$,e$ as f0,BC as f1,fC as f2,fu as f3,Vc as f4,nl as f5,Bs as f6,wn as f7,Sn as f8,xn as f9,rg as fA,ag as fB,og as fC,Np as fD,Tp as fE,Ep as fF,Op as fG,Rp as fH,Dp as fI,Up as fJ,Pp as fK,Ip as fL,kp as fM,Wc as fN,fp as fO,Xf as fP,Rf as fQ,Lf as fR,Ef as fS,Tf as fT,jm as fU,Vm as fV,Xm as fW,Km as fX,Gm as fY,Ym as fZ,im as f_,Ec as fa,Ic as fb,Cc as fc,kc as fd,_c as fe,xc as ff,Nc as fg,bc as fh,yc as fi,Ac as fj,Tc as fk,Oc as fl,Lc as fm,fc as fn,wc as fo,Sc as fp,$c as fq,vc as fr,uc as fs,cc as ft,Rc as fu,Dc as fv,Hc as fw,Yc as fx,Xc as fy,Kc as fz,ja as g,gm as g$,cf as g0,df as g1,uf as g2,bf as g3,Ug as g4,hf as g5,pf as g6,Uf as g7,Mf as g8,Cf as g9,ef as gA,Qf as gB,tb as gC,Am as gD,km as gE,hy as gF,gy as gG,yy as gH,wy as gI,Im as gJ,Cm as gK,wm as gL,$m as gM,iy as gN,Zg as gO,Qg as gP,ty as gQ,qg as gR,Jg as gS,am as gT,om as gU,db as gV,lm as gW,yS as gX,sm as gY,hm as gZ,pm as g_,xf as ga,Nf as gb,Of as gc,kf as gd,Af as ge,Wf as gf,Yf as gg,Jf as gh,Vf as gi,Kf as gj,zm as gk,Bm as gl,Um as gm,Mm as gn,Fm as go,Lm as gp,Rm as gq,_m as gr,Pm as gs,Nm as gt,jf as gu,Om as gv,Em as gw,Tm as gx,Bf as gy,Yg as gz,_l as h,bh as h$,fm as h0,bm as h1,vm as h2,ym as h3,um as h4,cm as h5,dm as h6,fy as h7,Eg as h8,ay as h9,qh as hA,Qh as hB,Zh as hC,eg as hD,tg as hE,ig as hF,Bp as hG,Hp as hH,Wp as hI,Xp as hJ,Vp as hK,Gp as hL,Yp as hM,Kp as hN,qp as hO,Jp as hP,Qp as hQ,Mp as hR,Fp as hS,ah as hT,sh as hU,hh as hV,uh as hW,ph as hX,dh as hY,ch as hZ,lh as h_,ly as ha,sy as hb,nm as hc,dy as hd,cy as he,uy as hf,py as hg,Df as hh,Cg as hi,eb as hj,Zf as hk,hv as hl,ad as hm,yv as hn,Ux as ho,Ty as hp,ng as hq,zp as hr,Zp as hs,eh as ht,th as hu,ih as hv,rh as hw,nh as hx,oh as hy,Nl as hz,rv as i,go as i$,yh as i0,mh as i1,fh as i2,gh as i3,$h as i4,wh as i5,vh as i6,jp as i7,jh as i8,Hh as i9,Ah as iA,Ih as iB,Lh as iC,rl as iD,Al as iE,tw as iF,Ns as iG,dn as iH,ln as iI,sn as iJ,pn as iK,un as iL,gn as iM,Tv as iN,iC as iO,lC as iP,rC as iQ,Is as iR,fE as iS,Ld as iT,Ln as iU,Rn as iV,Dw as iW,Gx as iX,rn as iY,er as iZ,vr as i_,Wh as ia,Bh as ib,Gh as ic,Vh as id,Kh as ie,Yh as ig,Jh as ih,Xh as ii,Fh as ij,zh as ik,kh as il,Ph as im,Uh as io,Mh as ip,_h as iq,Rh as ir,Dh as is,Sh as it,xh as iu,Ch as iv,Eh as iw,Th as ix,Oh as iy,Nh as iz,nv as j,ib as j$,mo as j0,jn as j1,zn as j2,fo as j3,Hn as j4,bo as j5,Bn as j6,xo as j7,ho as j8,tr as j9,Vs as jA,Xs as jB,Xy as jC,Ts as jD,Cs as jE,xs as jF,Ya as jG,cl as jH,Hi as jI,Q$ as jJ,Qc as jK,Jc as jL,qc as jM,Zc as jN,ep as jO,Cp as jP,mp as jQ,hp as jR,gp as jS,pp as jT,up as jU,vp as jV,$p as jW,yp as jX,bp as jY,fv as jZ,ab as j_,ir as ja,Zn as jb,ro as jc,oo as jd,ao as je,Sr as jf,wr as jg,$r as jh,to as ji,yr as jj,Hw as jk,Rw as jl,bn as jm,kl as jn,mC as jo,Iy as jp,Os as jq,Qa as jr,Kd as js,$v as jt,Oy as ju,Uy as jv,Ks as jw,Rs as jx,Ls as jy,Ys as jz,g$ as k,Pi as k$,nb as k0,ob as k1,rb as k2,fb as k3,Db as k4,gb as k5,bb as k6,vb as k7,yb as k8,ey as k9,kg as kA,Ig as kB,_g as kC,Dg as kD,Xg as kE,Rg as kF,Lg as kG,Vg as kH,Gg as kI,Ag as kJ,ug as kK,cg as kL,_i as kM,ui as kN,ki as kO,Ri as kP,vn as kQ,yn as kR,fn as kS,tn as kT,vi as kU,$i as kV,Ni as kW,pi as kX,Cn as kY,mi as kZ,ci as k_,qb as ka,Jb as kb,ny as kc,oy as kd,ry as ke,$b as kf,wb as kg,Sb as kh,Rb as ki,Lb as kj,Pg as kk,Mg as kl,Fg as km,zg as kn,Bg as ko,bg as kp,vg as kq,$g as kr,wg as ks,Sg as kt,vf as ku,xg as kv,sf as kw,jg as kx,Hg as ky,Wg as kz,ts as l,ru as l$,Ci as l0,Gi as l1,Xi as l2,Wi as l3,Di as l4,$n as l5,Zi as l6,Qi as l7,Ki as l8,fi as l9,fd as lA,bd as lB,yd as lC,Ud as lD,Md as lE,Ss as lF,Fd as lG,zd as lH,Tn as lI,Qd as lJ,Qu as lK,yo as lL,wo as lM,Lp as lN,_p as lO,Ap as lP,zu as lQ,Bu as lR,zo as lS,Fo as lT,Mo as lU,Uo as lV,_o as lW,Lo as lX,Io as lY,Ro as lZ,Po as l_,di as la,Ii as lb,xl as lc,Sl as ld,Tl as le,ys as lf,os as lg,vs as lh,md as li,As as lj,Us as lk,ws as ll,js as lm,is as ln,Zs as lo,el as lp,tl as lq,il as lr,ol as ls,Vl as lt,Zl as lu,ed as lv,td as lw,sd as lx,ld as ly,ud as lz,es as m,Hb as m$,nu as m0,Jd as m1,hc as m2,gc as m3,mc as m4,pc as m5,dg as m6,Hf as m7,tf as m8,nf as m9,Gf as mA,Kg as mB,mb as mC,mg as mD,gg as mE,hg as mF,mf as mG,cb as mH,lb as mI,hb as mJ,pb as mK,ub as mL,sb as mM,mm as mN,Zm as mO,qm as mP,Qm as mQ,Jm as mR,jb as mS,Bb as mT,Ub as mU,Fb as mV,Mb as mW,zb as mX,Kb as mY,Gb as mZ,Xb as m_,rf as ma,wf as mb,Sf as mc,_b as md,Ib as me,kb as mf,xb as mg,Tb as mh,Ab as mi,Cb as mj,Ob as mk,Eb as ml,Nb as mm,qf as mn,Tg as mo,zf as mp,fg as mq,my as mr,Hm as ms,Wm as mt,of as mu,Pf as mv,Dm as mw,Ng as mx,Og as my,yg as mz,Ei as n,TS as n$,Wb as n0,Pb as n1,Vb as n2,af as n3,Sm as n4,ff as n5,vy as n6,$y as n7,Ff as n8,$f as n9,cv as nA,pv as nB,gv as nC,Yy as nD,Sv as nE,Wv as nF,Qv as nG,Gv as nH,Hv as nI,hw as nJ,gw as nK,$$ as nL,XC as nM,QS as nN,tx as nO,nx as nP,ax as nQ,Ul as nR,Hx as nS,Pl as nT,Mv as nU,vx as nV,W$ as nW,Ml as nX,Fl as nY,zl as nZ,qw as n_,rm as na,xy as nb,Sy as nc,by as nd,If as ne,pg as nf,em as ng,_f as nh,lf as ni,Zb as nj,Qb as nk,Yb as nl,yf as nm,gf as nn,xm as no,kn as np,In as nq,Yo as nr,Zd as ns,Gy as nt,Ev as nu,Vy as nv,Hy as nw,vv as nx,Wy as ny,lv as nz,CS as o,Ll as o0,Xa as o1,$S as p,vS as q,KC as r,y$ as s,ri as t,JS as u,WC as v,ls as w,hx as x,lw as y,Ti as z};
|