@odigos/ui-kit 0.0.287 → 0.0.288
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/.cursor/rules/frontend-workflow.mdc +27 -0
- package/.cursor/rules/ui-feedback-tables-forms.mdc +40 -0
- package/.cursor/rules/ui-implementation.mdc +21 -0
- package/.cursor/rules/ui-pages-and-drawers.mdc +34 -0
- package/.cursor/rules/ui-visual-language.mdc +27 -0
- package/CHANGELOG.md +15 -0
- package/lib/chunks/{helpers-CtkwQ3Wc.js → helpers-BCSEuuKh.js} +1 -1
- package/lib/chunks/index-Cy84opXf.js +351 -0
- package/lib/chunks/source-instrument-form-context-D6pVu22G.js +5 -0
- package/lib/chunks/{ui-components-CjgsN17j.js → ui-components-D8rTJS7r.js} +82 -82
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +6 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-source-drawer/overview/instructions-card.d.ts +21 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts +6 -1
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/facet-section.d.ts +1 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/mappers.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/constants.d.ts +3 -1
- package/lib/containers/insights/transactions/helpers.d.ts +2 -1
- package/lib/containers.js +516 -469
- package/lib/contexts/odigos-api/capabilities.d.ts +2 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +7 -1
- package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +10 -1
- package/lib/contexts/odigos-api/index.d.ts +1 -1
- package/lib/contexts/odigos-api/types.d.ts +24 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/{containers/insights/findings/drawer/anomaly/anomaly-blast-radius → snippets/blast-radius}/helpers.d.ts +7 -6
- package/lib/snippets/blast-radius/index.d.ts +7 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/insights/index.d.ts +11 -11
- package/lib/types/workload/index.d.ts +61 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-BlYPxLja.js +0 -311
- package/lib/chunks/source-instrument-form-context-Bg6JzU76.js +0 -5
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/index.d.ts +0 -7
- /package/lib/{containers/insights/findings/drawer/anomaly/anomaly-blast-radius → snippets/blast-radius}/animated-edge.d.ts +0 -0
- /package/lib/{containers/insights/findings/drawer/anomaly/anomaly-blast-radius → snippets/blast-radius}/blast-radius-node.d.ts +0 -0
- /package/lib/{containers/insights/findings/drawer/anomaly/anomaly-blast-radius → snippets/blast-radius}/types.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as i,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 I,JavaLogo as k,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as _,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as X,QuickwitLogo as W,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as re,MiddlewareLogo as ne,LumigoLogo as ie,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 Ie,AzureMonitorLogo as ke,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as _e,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as He,MetricsIcon as je,PayloadCollectionIcon as Xe,HeadersCollectionIcon as We,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as rt,ExclamationCircleIcon as nt,ISquareIcon as it,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,XIcon as xt,MinusIcon as Ct,ChevronUpIcon as Et,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as It,ListIcon as kt,PlusIcon as Rt,TrashIcon as Dt,DotIcon as _t,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as Ht,useEffect as jt,useCallback as Xt,useMemo as Wt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as er}from"prism-react-renderer";import{persist as tr,createJSONStorage as rr}from"zustand/middleware";import{ErrorBoundary as nr}from"react-error-boundary";import{VList as ir}from"virtua";const or=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)};var ar,sr,lr,dr,cr,ur,pr,hr,gr,mr,fr,br,yr,vr,$r,wr,Sr,xr,Cr,Er,Tr,Or,Nr,Ar,Ir,kr,Rr,Dr,_r,Lr,Pr,Ur,Mr,Fr,zr,Br,Hr,jr,Xr,Wr,Gr,Vr,Kr,Yr;(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"})(ar||(ar={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(sr||(sr={})),(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"})(lr||(lr={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(dr||(dr={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(cr||(cr={})),(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"})(ur||(ur={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pr||(pr={})),(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"})(hr||(hr={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gr||(gr={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mr||(mr={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fr||(fr={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(br||(br={})),(e=>{e.Community="community",e.Onprem="onprem"})(yr||(yr={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vr||(vr={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})($r||($r={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(wr||(wr={})),(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"})(Sr||(Sr={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xr||(xr={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Cr||(Cr={})),(e=>{e.DataStream="DataStream"})(Er||(Er={})),(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"})(Tr||(Tr={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Or||(Or={})),(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"})(Nr||(Nr={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ar||(Ar={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ir||(Ir={})),(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"})(kr||(kr={})),(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"})(Rr||(Rr={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Dr||(Dr={})),(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"})(_r||(_r={})),(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"})(Lr||(Lr={})),(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"})(Pr||(Pr={})),(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"})(Ur||(Ur={})),(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"})(Mr||(Mr={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fr||(Fr={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zr||(zr={})),(e=>{e.HeaderKeys="headerKeys"})(Br||(Br={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hr||(Hr={}));class Jr{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 qr{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,n){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",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 Qr{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"})(jr||(jr={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Xr||(Xr={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wr||(Wr={})),(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"})(Gr||(Gr={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vr||(Vr={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Kr||(Kr={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yr||(Yr={}));const Zr={[Kr.Logs]:Yr.Logs,[Kr.Metrics]:Yr.Metrics,[Kr.Traces]:Yr.Traces,[Kr.Profiles]:Yr.Profiles},en={[Yr.Logs]:Kr.Logs,[Yr.Metrics]:Kr.Metrics,[Yr.Traces]:Kr.Traces,[Yr.Profiles]:Kr.Profiles};var tn,rn,nn,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"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(rn||(rn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Baselined="baselined",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Allowed="allowed",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(bn||(bn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(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={[sr.Enrichment]:{TITLE:"Enrichment",ICON:c},[sr.Normalization]:{TITLE:"Normalization",ICON:d},[sr.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[ar.AddClusterInfo]:sr.Enrichment,[ar.K8sAttributes]:sr.Enrichment,[ar.ExtractAttribute]:sr.Enrichment,[ar.InferDbAttributes]:sr.Enrichment,[ar.DbQueryTemplatization]:sr.Normalization,[ar.URLTemplatization]:sr.Normalization,[ar.RenameAttributes]:sr.Normalization,[ar.PiiMasking]:sr.Privacy,[ar.DeleteAttributes]:sr.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:ar.K8sAttributes,icon:On(ar.K8sAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vr.K8s]},{type:ar.AddClusterInfo,icon:On(ar.AddClusterInfo),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vr.K8s]},{type:ar.DeleteAttributes,icon:On(ar.DeleteAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vr.K8s]},{type:ar.RenameAttributes,icon:On(ar.RenameAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vr.K8s]},{type:ar.PiiMasking,icon:On(ar.PiiMasking),category:Tn[ar.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:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vr.K8s]},{type:ar.URLTemplatization,icon:On(ar.URLTemplatization),category:Tn[ar.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vr.K8s]:or("v1.21.0")},supportedPlatforms:[vr.K8s,vr.Vm]},{type:ar.ExtractAttribute,icon:On(ar.ExtractAttribute),category:Tn[ar.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:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vr.K8s]:or("v1.29.0")},supportedPlatforms:[vr.K8s]}],An=or("v1.26"),In=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),kn=(e,t,r)=>{const n=e.minVersion?.[t];return!n||or(r)>=n},Rn=(e,t)=>Nn.filter(r=>In(r,e)&&kn(r,e,t)).map(r=>((e,t,r)=>t!==vr.K8s||or(r)>=An?e:e.allowedSignals?.includes(Kr.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Kr.Profiles)}:e)(r,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})):[]};var _n;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(_n||(_n={}));const Ln={[_n.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[_n.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[_n.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[_n.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[_n.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[_n.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Pn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Un,Mn,Fn;(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"})(Un||(Un={})),(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"})(Mn||(Mn={})),(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"})(Fn||(Fn={}));const zn=new Set(Object.values(Fn)),Bn=(e,t)=>{if("string"!=typeof(r=t)||!zn.has(r))return t;var r;switch(t){case Fn.Primary:return e.v2.colors.white[500];case Fn.Secondary:return e.v2.colors.silver[200];case Fn.Tertiary:return e.v2.colors.black[500];case Fn.Disable:return e.v2.colors.grey[400];case Fn.Error:return e.v2.colors.red[500];case Fn.Mandatory:return e.v2.colors.red[600];case Fn.Link:return e.v2.colors.purple[400];case Fn.Success:return e.v2.colors.green[400];default:return}},Hn=n.p`
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as i,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 S,RustLogo as w,RubyLogo as x,PhpLogo as E,CPlusPlusLogo as C,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as k,PyroscopeLogo as R,AwsXrayLogo as _,VictoriaMetricsLogo as D,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,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 re,MiddlewareLogo as ne,LumigoLogo as ie,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 Se,Dash0Logo as we,CoralogixLogo as xe,AwsCloudwatchLogo as Ee,ClickhouseLogo as Ce,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as ke,AzureBlobLogo as Re,AxiomLogo as _e,AppDynamicsLogo as De,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as He,MetricsIcon as je,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 rt,ExclamationCircleIcon as nt,ISquareIcon as it,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 St,SearchIcon as wt,XIcon as xt,MinusIcon as Et,ChevronUpIcon as Ct,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as It,ListIcon as kt,PlusIcon as Rt,TrashIcon as _t,DotIcon as Dt,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as Ht,useEffect as jt,useCallback as Wt,useMemo as Xt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as er}from"prism-react-renderer";import{persist as tr,createJSONStorage as rr}from"zustand/middleware";import{ErrorBoundary as nr}from"react-error-boundary";import{VList as ir}from"virtua";const or=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)};var ar,sr,lr,dr,cr,ur,pr,hr,gr,mr,fr,br,yr,vr,$r,Sr,wr,xr,Er,Cr,Tr,Or,Nr,Ar,Ir,kr,Rr,_r,Dr,Lr,Pr,Ur,Mr,Fr,zr,Br,Hr,jr,Wr,Xr,Gr,Vr,Kr,Yr;(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"})(ar||(ar={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(sr||(sr={})),(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"})(lr||(lr={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(dr||(dr={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(cr||(cr={})),(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"})(ur||(ur={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pr||(pr={})),(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"})(hr||(hr={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gr||(gr={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mr||(mr={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fr||(fr={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(br||(br={})),(e=>{e.Community="community",e.Onprem="onprem"})(yr||(yr={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vr||(vr={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})($r||($r={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(Sr||(Sr={})),(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"})(wr||(wr={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xr||(xr={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Er||(Er={})),(e=>{e.DataStream="DataStream"})(Cr||(Cr={})),(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"})(Tr||(Tr={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Or||(Or={})),(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"})(Nr||(Nr={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ar||(Ar={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ir||(Ir={})),(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"})(kr||(kr={})),(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"})(Rr||(Rr={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(_r||(_r={})),(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"})(Dr||(Dr={})),(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"})(Lr||(Lr={})),(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"})(Pr||(Pr={})),(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"})(Ur||(Ur={})),(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"})(Mr||(Mr={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fr||(Fr={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zr||(zr={})),(e=>{e.HeaderKeys="headerKeys"})(Br||(Br={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hr||(Hr={}));class Jr{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 qr{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,n){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",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 Qr{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"})(jr||(jr={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Wr||(Wr={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Xr||(Xr={})),(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"})(Gr||(Gr={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vr||(Vr={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Kr||(Kr={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yr||(Yr={}));const Zr={[Kr.Logs]:Yr.Logs,[Kr.Metrics]:Yr.Metrics,[Kr.Traces]:Yr.Traces,[Kr.Profiles]:Yr.Profiles},en={[Yr.Logs]:Kr.Logs,[Yr.Metrics]:Kr.Metrics,[Yr.Traces]:Kr.Traces,[Yr.Profiles]:Kr.Profiles};var tn,rn,nn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,Sn,wn,xn,En;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(rn||(rn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Baselined="baselined",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Allowed="allowed",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(bn||(bn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(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"})(Sn||(Sn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(wn||(wn={})),(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"})(En||(En={}));const Cn={[sr.Enrichment]:{TITLE:"Enrichment",ICON:c},[sr.Normalization]:{TITLE:"Normalization",ICON:d},[sr.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[ar.AddClusterInfo]:sr.Enrichment,[ar.K8sAttributes]:sr.Enrichment,[ar.ExtractAttribute]:sr.Enrichment,[ar.InferDbAttributes]:sr.Enrichment,[ar.DbQueryTemplatization]:sr.Normalization,[ar.URLTemplatization]:sr.Normalization,[ar.RenameAttributes]:sr.Normalization,[ar.PiiMasking]:sr.Privacy,[ar.DeleteAttributes]:sr.Privacy},On=e=>{const t=Tn[e];return t?Cn[t].ICON:u},Nn=[{type:ar.K8sAttributes,icon:On(ar.K8sAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vr.K8s]},{type:ar.AddClusterInfo,icon:On(ar.AddClusterInfo),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vr.K8s]},{type:ar.DeleteAttributes,icon:On(ar.DeleteAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vr.K8s]},{type:ar.RenameAttributes,icon:On(ar.RenameAttributes),category:Tn[ar.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:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vr.K8s]},{type:ar.PiiMasking,icon:On(ar.PiiMasking),category:Tn[ar.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:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vr.K8s]},{type:ar.URLTemplatization,icon:On(ar.URLTemplatization),category:Tn[ar.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vr.K8s]:or("v1.21.0")},supportedPlatforms:[vr.K8s,vr.Vm]},{type:ar.ExtractAttribute,icon:On(ar.ExtractAttribute),category:Tn[ar.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:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vr.K8s]:or("v1.29.0")},supportedPlatforms:[vr.K8s]}],An=or("v1.26"),In=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),kn=(e,t,r)=>{const n=e.minVersion?.[t];return!n||or(r)>=n},Rn=(e,t)=>Nn.filter(r=>In(r,e)&&kn(r,e,t)).map(r=>((e,t,r)=>t!==vr.K8s||or(r)>=An?e:e.allowedSignals?.includes(Kr.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Kr.Profiles)}:e)(r,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})):[]};var Dn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(Dn||(Dn={}));const Ln={[Dn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Dn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Dn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Dn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Dn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Dn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Pn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Un,Mn,Fn;(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"})(Un||(Un={})),(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"})(Mn||(Mn={})),(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"})(Fn||(Fn={}));const zn=new Set(Object.values(Fn)),Bn=(e,t)=>{if("string"!=typeof(r=t)||!zn.has(r))return t;var r;switch(t){case Fn.Primary:return e.v2.colors.white[500];case Fn.Secondary:return e.v2.colors.silver[200];case Fn.Tertiary:return e.v2.colors.black[500];case Fn.Disable:return e.v2.colors.grey[400];case Fn.Error:return e.v2.colors.red[500];case Fn.Mandatory:return e.v2.colors.red[600];case Fn.Link:return e.v2.colors.purple[400];case Fn.Success:return e.v2.colors.green[400];default:return}},Hn=n.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>Bn(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -38,7 +38,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,jn=zt(({children:r,variant:n=Un.P,color:i,size:o=Mn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y="string"==typeof r?r.split("\n").map((r,n,i)=>e(Bt,{children:[r,n!==i.length-1&&t("br",{})]},`typography-${n}-${r}`)):r;return t(Hn,{ref:b,as:n,$color:i,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y})});jn.displayName="Typography";const Xn="https://docs.odigos.io",Wn="default",Gn="this-cluster",Vn="This Cluster",Kn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yn={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."},Jn={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_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"},qn={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"},Qn=(e,t)=>e===Nr.Success?Jn.HEALTHY:e===Nr.Error?Jn.NOT_HEALTHY:Pn(t),Zn=e=>{if(!e)return null;switch(e){case Mr.Irrelevant:return null;case Mr.Failure:case Mr.Error:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Pending:case Mr.Waiting:return Nr.Loading;case Mr.Unsupported:case Mr.Disabled:return Nr.Disabled;case Mr.Success:return Nr.Success;case Mr.Unknown:default:return Nr.Info}},ei=(e,t,r="reason",n)=>{const i=Zn(e?.status);return i?{key:`desired-status-${e?.name}`,status:i,leftIcon:t||(i===Nr.Success?p:h),label:n||("reason"===r?Pn(e?.reasonEnum):Qn(i,e?.reasonEnum)),tooltip:e?.message,textSize:Mn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ti=e=>e.charAt(0).toUpperCase()+e.slice(1);var ri;(e=>{e.SIGNALS="SIGNALS"})(ri||(ri={}));const ni=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,o]=e;if(n===ri.SIGNALS)switch(i){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=r.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(i){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 ii(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const oi=e=>({status:e?Nr.Success:Nr.Unknown,label:e?"True":"False",invertColors:!0}),ai=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),si=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)},li=e=>"string"==typeof e?{id:e,label:e}:e??{},di=(e,t)=>e.label||e.displayName||t,ci=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const r=t.map(t=>{const r=String(t??"");if(!r)return"";const n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):r}).filter(Boolean);return r.join(", ")}const r=String(t),n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):si(t)},ui=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const r=ai(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:r?JSON.stringify(r):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},pi=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(...pi(e.segments))):t.push(...e.items)}),t},hi=(e,t,r={})=>{const n=[],i=r.signals||[],o=new Set(r.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&&!ni(t.renderCondition,i,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ii(t.componentProperties,{});switch(t.componentType){case Tr.Toggle:case Tr.Checkbox:return void s.push({id:u,title:c,badge:oi(!!p)});case Tr.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:[],r=e.map(e=>{const r=t.map(li).find(t=>String(t.id??"")===e);return r?di(r,e):e});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:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,r)=>{const n=li(t),i=String(n.id??"");i&&s.push({id:`${u}-${r}-${i}`,title:di(n,i),badge:oi(!0===e[i])})});const r=ai(p)?p:{},i=Array.isArray(h.options)?h.options:[];let o=[];return o=i.length?i.map(e=>{const t=li(e),n=String(t.id??"");return n&&r[n]?di(t,n):null}).filter(Boolean):Object.entries(r).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 Tr.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,r=e&&ai(p)?p[e]:p,i=Array.isArray(r)&&r.length?r.map(e=>t&&ai(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];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:"-"}]})}case Tr.KeyValuePair:return l(),ai(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],r)=>({id:`${u}-${r}`,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 r=ai(e)?e:{};return{id:`${u}-${t}`,title:String(r.key??""),label:String(r.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Tr.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ai(p)?p[e]:p)?e&&ai(p)?p[e]:p:[],r=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},r=t.options??t.values,n=Array.isArray(r)?r.map(li):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,i)=>{const o=t.length>1?`${c} #${i+1}`:c,a=[],s=ai(e)?{...e}:{};null!=s.method&&""!==s.method||!r.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),r.length?r.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[r,n,i]=t,o=null==e?.[r]?"":String(e[r]);switch(n){case"=":case"==":case"===":return o===i;case"!=":case"!==":return o!==i;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}-${i}-${e.keyName}`,title:e.label||ti(Pn(e.keyName))||e.keyName,label:ci(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${i}-${e}`,title:e,label:si(t)})}),n.push({kind:"group",id:`${u}-${i}`,title:o,items:a.length?a:[{id:`${u}-${i}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Tr.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ui).filter(Boolean),i=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${i} ${a+1}`:i,l=ai(o)?o:{},d=t.length?hi(l,t,r):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],r)=>({id:`${u}-${a}-${r}-${e}`,title:e,label:si(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:si(p)})}var g}),l(),n},gi=(e,t,r={})=>pi(hi(e,t,r)),mi=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=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,r(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const o=JSON.parse(i);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(r(o)):i}catch(o){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(r(i)):e[n]=i}return e},{})},fi=e=>JSON.parse(JSON.stringify(e)),bi=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),yi=(e,t,r)=>{const n=t.split(".");let i=e;for(let e=0;e<n.length-1;e++)n[e]in i&&"object"==typeof i[n[e]]||(i[n[e]]={}),i=i[n[e]];i[n[n.length-1]]=r},vi=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},$i=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},wi=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Si=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));r=r.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({runtimeInfo:t,containers:r})=>t?.detectedLanguages?.some(t=>e.has(t))||r?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.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));r=r.filter(({instrumentationReport:t})=>{const r=t?.state||t?.progressStage;return!!r&&e.has(r)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));r=r.filter(t=>{const r=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(r)})}return t.onlyErrors&&(r=r.filter(e=>Zn(e.workloadOdigosHealthStatus?.status)===Nr.Error)),r},xi=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Wn&&!e.dataStreamNames?.length):[],Ci=(e,t="",r={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Ci(e,n,r):r[n]=e}):r[o]=i:Ci(i,o,r)}return r},Ei=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]}`},Ti=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`}},Oi=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const n=e[t%16];return t++,("1"===r?n:"0"===r?63&n|128:15&n|64).toString(16)})},Ni=e=>e?e.reduce((e,t)=>{if(null!=t){const r=Zn(t.status);r&&e.push({status:r,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ai=e=>Array.isArray(e?.statuses)?Ni(e.statuses):e?.conditions??[],Ii=e=>e?Array.isArray(e)?ki(e):ki(Ni(Object.values(e))):ki([]),ki=e=>{const t=e?.filter(({status:e})=>e===Nr.Error),r=e?.filter(({status:e})=>e===Nr.Warning),n=e?.filter(({status:e})=>e===Nr.Disabled),i=e?.filter(({status:e})=>e===Nr.Loading),o=t.length>0,a=r.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:r,hasWarnings:a,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:o?Nr.Error:a?Nr.Warning:s?Nr.Info:void 0}},Ri=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Di=e=>({[Sr.Java]:k,[Sr.Go]:I,[Sr.JavaScript]:A,[Sr.Python]:N,[Sr.DotNet]:O,[Sr.CSharp]:T,[Sr.CPlusPlus]:E,[Sr.Php]:C,[Sr.Ruby]:x,[Sr.Rust]:S,[Sr.Swift]:w,[Sr.Elixir]:$,[Sr.MySql]:v,[Sr.Nginx]:y,[Sr.Postgres]:b,[Sr.Redis]:f,[Sr.Kafka]:m,[Sr.Ignored]:g,[Sr.Unknown]:g,[Sr.Processing]:g,[Sr.NoContainers]:g,[Sr.NoRunningPods]:g}[e]||g),_i=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sr.Unknown:Sr.Unknown,Li=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Pi=e=>e?.map(e=>Di(_i(e)))||[],Ui=e=>e?.map(e=>Di(e))||[],Mi=e=>e.runtimeInfo?.detectedLanguages?.length?Ui(e.runtimeInfo?.detectedLanguages):Pi(e.containers),Fi=(e,t)=>{const r={[Lr.Alauda]:Pe,[Lr.AlibabaCloud]:Le,[Lr.AppDynamics]:_e,[Lr.Axiom]:De,[Lr.AzureBlob]:Re,[Lr.AzureMonitor]:ke,[Lr.BetterStack]:Ie,[Lr.Bonree]:Ae,[Lr.Causely]:Ne,[Lr.Checkly]:Oe,[Lr.Chronosphere]:Te,[Lr.ClickHouse]:Ee,[Lr.CloudWatch]:Ce,[Lr.Coralogix]:xe,[Lr.Dash0]:Se,[Lr.Datadog]:we,[Lr.Dynamic]:Y,[Lr.Dynatrace]:$e,[Lr.ElasticApm]:ve,[Lr.ElasticSearch]:ye,[Lr.GoogleCloud]:be,[Lr.GoogleCloudOTLP]:be,[Lr.GrafanaCloudLoki]:fe,[Lr.GrafanaCloudPrometheus]:fe,[Lr.GrafanaCloudTempo]:fe,[Lr.Greptime]:me,[Lr.Groundcover]:ge,[Lr.Honeycomb]:he,[Lr.HyperDX]:pe,[Lr.Instana]:ue,[Lr.Jaeger]:ce,[Lr.Kafka]:m,[Lr.Kloudmate]:de,[Lr.Last9]:le,[Lr.Lightstep]:se,[Lr.LogzIo]:ae,[Lr.Loki]:oe,[Lr.Lumigo]:ie,[Lr.Middleware]:ne,[Lr.NewRelic]:re,[Lr.Observe]:te,[Lr.Odigos]:ee,[Lr.OdigosProfileDiagnostic]:ee,[Lr.OneUptime]:Z,[Lr.OpenObserve]:Q,[Lr.Opsverse]:q,[Lr.Oracle]:J,[Lr.OTLP]:Y,[Lr.OTLPHttp]:Y,[Lr.Prometheus]:K,[Lr.Qryn]:V,[Lr.QrynOss]:G,[Lr.Quickwit]:W,[Lr.S3]:X,[Lr.Seq]:j,[Lr.Signalfx]:B,[Lr.Signoz]:H,[Lr.Splunk]:B,[Lr.SplunkSapm]:B,[Lr.SplunkOtlp]:B,[Lr.SumoLogic]:z,[Lr.TelemetryHub]:F,[Lr.Tempo]:M,[Lr.Tingyun]:U,[Lr.Traceloop]:P,[Lr.Uptrace]:L,[Lr.VictoriaMetrics]:_,[Lr.VictoriaMetricsCloud]:_,[Lr.XRay]:D,[Lr.Pyroscope]:R}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},zi=e=>({[Cr.Namespace]:He,[Cr.Source]:Be,[Cr.Destination]:ze,[Cr.Action]:u,[Cr.InstrumentationRule]:Fe,[Cr.SamplingRule]:Me,[Cr.Recommendation]:Ue}[e]),Bi=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,Hi=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},ji=e=>Hi(Bi(e)),Xi=(e,t,r)=>{const{extended:n,prioritizeDisplayName:i}=r||{};let o="",a="";switch(t){case Cr.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Cr.Source:const r=e;o=r.id.name,a=r.serviceName||"";break;case Cr.Action:const n=e;o=n.type,a=n.name||"";break;case Cr.Destination:const i=e;o=i.destinationType.displayName,a=i.name;break;case Cr.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):i&&a||o},Wi=(e,t)=>{if(t===Cr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=n}),t}return e},Gi=e=>({[Fr.CodeAttributes]:Ve,[Fr.CustomInstrumentation]:Ge,[Fr.HeadersCollection]:We,[Fr.PayloadCollection]:Xe,[Fr.NetworkMetrics]:je,[Fr.UnknownType]:g}[e]||g),Vi=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sr.Unknown,Ki=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Sr.Processing:Sr.NoRunningPods;const n=r?.filter(e=>Vi(e)!==Sr.Ignored);if(!n.length)return Sr.NoContainers;const i=n.find(e=>Vi(e)!==Sr.Unknown);return i?Vi(i):Sr.Unknown},Yi=(e,t,r)=>(t===Cr.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Ji=e=>({[Kr.Logs]:Ye,[Kr.Metrics]:je,[Kr.Traces]:Ke,[Kr.Profiles]:ee}[e]),qi=(e,t)=>Object.values(Mn).reduce((r,n)=>Math.abs(t[n]-e)<Math.abs(t[r]-e)?n:r),Qi=e=>e&&{[vr.K8s]:Ze,[vr.Vm]:Qe,[vr.Connector]:qe,[vr.AwsEcs]:Je}[e]||ee,Zi=e=>e?{[vr.K8s]:"Kubernetes Cluster",[vr.Vm]:"Virtual Machine",[vr.Connector]:"Cloud Connector",[vr.AwsEcs]:"AWS ECS"}[e]:"Unknown",eo=(e,t,r)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[r],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...eo(e,t,r)),i}):[]},to={"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"},ro=e=>{if(!e)return"";if(to[e])return to[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},no=(e,t)=>{if(t===Cr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},io=(e,t,r)=>{switch(r=r??"500",t){case Nr.Default:return e.v2.colors.purple[r];case Nr.Info:return e.v2.colors.blue[r];case Nr.Error:return e.v2.colors.red[r];case Nr.Warning:return e.v2.colors.yellow[r];case Nr.Success:return e.v2.colors.green[r];case Nr.Loading:case Nr.Disabled:case Nr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},oo=e=>{switch(e){case Xr.Updating:case Wr.Pending:case Gr.ContainerCreating:case Vr.Waiting:return Nr.Info;case Xr.Healthy:case Wr.Succeeded:case Wr.Running:case Gr.Running:case Vr.Running:return Nr.Success;case Xr.Degraded:return Nr.Warning;case Xr.Failed:case Wr.Failed:case Gr.Error:case Gr.CrashLoopBackOff:case Gr.CreateContainerError:case Gr.CreateContainerConfigError:case Gr.ErrImagePull:case Gr.ErrImageNeverPull:case Gr.ImagePullBackOff:case Gr.InvalidImageName:case Gr.RegistryUnavailable:case Gr.NetworkNotReady:case Gr.OOMKilled:case Gr.ContainerCannotRun:case Vr.Terminated:case Gr.DeadlineExceeded:case Gr.StartError:return Nr.Error;case Xr.Down:case Gr.Completed:return Nr.Disabled;case Xr.Unknown:case Wr.Unknown:default:return Nr.Unknown}},ao=n.div`
|
|
41
|
+
`,jn=zt(({children:r,variant:n=Un.P,color:i,size:o=Mn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y="string"==typeof r?r.split("\n").map((r,n,i)=>e(Bt,{children:[r,n!==i.length-1&&t("br",{})]},`typography-${n}-${r}`)):r;return t(Hn,{ref:b,as:n,$color:i,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y})});jn.displayName="Typography";const Wn="https://docs.odigos.io",Xn="default",Gn="this-cluster",Vn="This Cluster",Kn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yn={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."},Jn={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:",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"},qn={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"},Qn=(e,t)=>e===Nr.Success?Jn.HEALTHY:e===Nr.Error?Jn.NOT_HEALTHY:Pn(t),Zn=e=>{if(!e)return null;switch(e){case Mr.Irrelevant:return null;case Mr.Failure:case Mr.Error:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Pending:case Mr.Waiting:return Nr.Loading;case Mr.Unsupported:case Mr.Disabled:return Nr.Disabled;case Mr.Success:return Nr.Success;case Mr.Unknown:default:return Nr.Info}},ei=(e,t,r="reason",n)=>{const i=Zn(e?.status);return i?{key:`desired-status-${e?.name}`,status:i,leftIcon:t||(i===Nr.Success?p:h),label:n||("reason"===r?Pn(e?.reasonEnum):Qn(i,e?.reasonEnum)),tooltip:e?.message,textSize:Mn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ti=e=>e.charAt(0).toUpperCase()+e.slice(1);var ri;(e=>{e.SIGNALS="SIGNALS"})(ri||(ri={}));const ni=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,o]=e;if(n===ri.SIGNALS)switch(i){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=r.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(i){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 ii(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const oi=e=>({status:e?Nr.Success:Nr.Unknown,label:e?"True":"False",invertColors:!0}),ai=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),si=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)},li=e=>"string"==typeof e?{id:e,label:e}:e??{},di=(e,t)=>e.label||e.displayName||t,ci=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const r=t.map(t=>{const r=String(t??"");if(!r)return"";const n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):r}).filter(Boolean);return r.join(", ")}const r=String(t),n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):si(t)},ui=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const r=ai(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:r?JSON.stringify(r):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},pi=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(...pi(e.segments))):t.push(...e.items)}),t},hi=(e,t,r={})=>{const n=[],i=r.signals||[],o=new Set(r.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&&!ni(t.renderCondition,i,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ii(t.componentProperties,{});switch(t.componentType){case Tr.Toggle:case Tr.Checkbox:return void s.push({id:u,title:c,badge:oi(!!p)});case Tr.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:[],r=e.map(e=>{const r=t.map(li).find(t=>String(t.id??"")===e);return r?di(r,e):e});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:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,r)=>{const n=li(t),i=String(n.id??"");i&&s.push({id:`${u}-${r}-${i}`,title:di(n,i),badge:oi(!0===e[i])})});const r=ai(p)?p:{},i=Array.isArray(h.options)?h.options:[];let o=[];return o=i.length?i.map(e=>{const t=li(e),n=String(t.id??"");return n&&r[n]?di(t,n):null}).filter(Boolean):Object.entries(r).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 Tr.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,r=e&&ai(p)?p[e]:p,i=Array.isArray(r)&&r.length?r.map(e=>t&&ai(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];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:"-"}]})}case Tr.KeyValuePair:return l(),ai(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],r)=>({id:`${u}-${r}`,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 r=ai(e)?e:{};return{id:`${u}-${t}`,title:String(r.key??""),label:String(r.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Tr.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ai(p)?p[e]:p)?e&&ai(p)?p[e]:p:[],r=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},r=t.options??t.values,n=Array.isArray(r)?r.map(li):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,i)=>{const o=t.length>1?`${c} #${i+1}`:c,a=[],s=ai(e)?{...e}:{};null!=s.method&&""!==s.method||!r.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),r.length?r.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[r,n,i]=t,o=null==e?.[r]?"":String(e[r]);switch(n){case"=":case"==":case"===":return o===i;case"!=":case"!==":return o!==i;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}-${i}-${e.keyName}`,title:e.label||ti(Pn(e.keyName))||e.keyName,label:ci(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${i}-${e}`,title:e,label:si(t)})}),n.push({kind:"group",id:`${u}-${i}`,title:o,items:a.length?a:[{id:`${u}-${i}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Tr.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ui).filter(Boolean),i=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${i} ${a+1}`:i,l=ai(o)?o:{},d=t.length?hi(l,t,r):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],r)=>({id:`${u}-${a}-${r}-${e}`,title:e,label:si(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:si(p)})}var g}),l(),n},gi=(e,t,r={})=>pi(hi(e,t,r)),mi=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=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,r(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const o=JSON.parse(i);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(r(o)):i}catch(o){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(r(i)):e[n]=i}return e},{})},fi=e=>JSON.parse(JSON.stringify(e)),bi=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),yi=(e,t,r)=>{const n=t.split(".");let i=e;for(let e=0;e<n.length-1;e++)n[e]in i&&"object"==typeof i[n[e]]||(i[n[e]]={}),i=i[n[e]];i[n[n.length-1]]=r},vi=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},$i=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},Si=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],wi=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));r=r.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({runtimeInfo:t,containers:r})=>t?.detectedLanguages?.some(t=>e.has(t))||r?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.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));r=r.filter(({instrumentationReport:t})=>{const r=t?.state||t?.progressStage;return!!r&&e.has(r)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));r=r.filter(t=>{const r=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(r)})}return t.onlyErrors&&(r=r.filter(e=>Zn(e.workloadOdigosHealthStatus?.status)===Nr.Error)),r},xi=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Xn&&!e.dataStreamNames?.length):[],Ei=(e,t="",r={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Ei(e,n,r):r[n]=e}):r[o]=i:Ei(i,o,r)}return r},Ci=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]}`},Ti=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`}},Oi=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const n=e[t%16];return t++,("1"===r?n:"0"===r?63&n|128:15&n|64).toString(16)})},Ni=e=>e?e.reduce((e,t)=>{if(null!=t){const r=Zn(t.status);r&&e.push({status:r,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ai=e=>Array.isArray(e?.statuses)?Ni(e.statuses):e?.conditions??[],Ii=e=>e?Array.isArray(e)?ki(e):ki(Ni(Object.values(e))):ki([]),ki=e=>{const t=e?.filter(({status:e})=>e===Nr.Error),r=e?.filter(({status:e})=>e===Nr.Warning),n=e?.filter(({status:e})=>e===Nr.Disabled),i=e?.filter(({status:e})=>e===Nr.Loading),o=t.length>0,a=r.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:r,hasWarnings:a,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:o?Nr.Error:a?Nr.Warning:s?Nr.Info:void 0}},Ri=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},_i=e=>({[wr.Java]:k,[wr.Go]:I,[wr.JavaScript]:A,[wr.Python]:N,[wr.DotNet]:O,[wr.CSharp]:T,[wr.CPlusPlus]:C,[wr.Php]:E,[wr.Ruby]:x,[wr.Rust]:w,[wr.Swift]:S,[wr.Elixir]:$,[wr.MySql]:v,[wr.Nginx]:y,[wr.Postgres]:b,[wr.Redis]:f,[wr.Kafka]:m,[wr.Ignored]:g,[wr.Unknown]:g,[wr.Processing]:g,[wr.NoContainers]:g,[wr.NoRunningPods]:g}[e]||g),Di=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wr.Unknown:wr.Unknown,Li=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Pi=e=>e?.map(e=>_i(Di(e)))||[],Ui=e=>e?.map(e=>_i(e))||[],Mi=e=>e.runtimeInfo?.detectedLanguages?.length?Ui(e.runtimeInfo?.detectedLanguages):Pi(e.containers),Fi=(e,t)=>{const r={[Lr.Alauda]:Pe,[Lr.AlibabaCloud]:Le,[Lr.AppDynamics]:De,[Lr.Axiom]:_e,[Lr.AzureBlob]:Re,[Lr.AzureMonitor]:ke,[Lr.BetterStack]:Ie,[Lr.Bonree]:Ae,[Lr.Causely]:Ne,[Lr.Checkly]:Oe,[Lr.Chronosphere]:Te,[Lr.ClickHouse]:Ce,[Lr.CloudWatch]:Ee,[Lr.Coralogix]:xe,[Lr.Dash0]:we,[Lr.Datadog]:Se,[Lr.Dynamic]:Y,[Lr.Dynatrace]:$e,[Lr.ElasticApm]:ve,[Lr.ElasticSearch]:ye,[Lr.GoogleCloud]:be,[Lr.GoogleCloudOTLP]:be,[Lr.GrafanaCloudLoki]:fe,[Lr.GrafanaCloudPrometheus]:fe,[Lr.GrafanaCloudTempo]:fe,[Lr.Greptime]:me,[Lr.Groundcover]:ge,[Lr.Honeycomb]:he,[Lr.HyperDX]:pe,[Lr.Instana]:ue,[Lr.Jaeger]:ce,[Lr.Kafka]:m,[Lr.Kloudmate]:de,[Lr.Last9]:le,[Lr.Lightstep]:se,[Lr.LogzIo]:ae,[Lr.Loki]:oe,[Lr.Lumigo]:ie,[Lr.Middleware]:ne,[Lr.NewRelic]:re,[Lr.Observe]:te,[Lr.Odigos]:ee,[Lr.OdigosProfileDiagnostic]:ee,[Lr.OneUptime]:Z,[Lr.OpenObserve]:Q,[Lr.Opsverse]:q,[Lr.Oracle]:J,[Lr.OTLP]:Y,[Lr.OTLPHttp]:Y,[Lr.Prometheus]:K,[Lr.Qryn]:V,[Lr.QrynOss]:G,[Lr.Quickwit]:X,[Lr.S3]:W,[Lr.Seq]:j,[Lr.Signalfx]:B,[Lr.Signoz]:H,[Lr.Splunk]:B,[Lr.SplunkSapm]:B,[Lr.SplunkOtlp]:B,[Lr.SumoLogic]:z,[Lr.TelemetryHub]:F,[Lr.Tempo]:M,[Lr.Tingyun]:U,[Lr.Traceloop]:P,[Lr.Uptrace]:L,[Lr.VictoriaMetrics]:D,[Lr.VictoriaMetricsCloud]:D,[Lr.XRay]:_,[Lr.Pyroscope]:R}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},zi=e=>({[Er.Namespace]:He,[Er.Source]:Be,[Er.Destination]:ze,[Er.Action]:u,[Er.InstrumentationRule]:Fe,[Er.SamplingRule]:Me,[Er.Recommendation]:Ue}[e]),Bi=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,Hi=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},ji=e=>Hi(Bi(e)),Wi=(e,t,r)=>{const{extended:n,prioritizeDisplayName:i}=r||{};let o="",a="";switch(t){case Er.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Er.Source:const r=e;o=r.id.name,a=r.serviceName||"";break;case Er.Action:const n=e;o=n.type,a=n.name||"";break;case Er.Destination:const i=e;o=i.destinationType.displayName,a=i.name;break;case Er.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):i&&a||o},Xi=(e,t)=>{if(t===Er.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=n}),t}return e},Gi=e=>({[Fr.CodeAttributes]:Ve,[Fr.CustomInstrumentation]:Ge,[Fr.HeadersCollection]:Xe,[Fr.PayloadCollection]:We,[Fr.NetworkMetrics]:je,[Fr.UnknownType]:g}[e]||g),Vi=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??wr.Unknown,Ki=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?wr.Processing:wr.NoRunningPods;const n=r?.filter(e=>Vi(e)!==wr.Ignored);if(!n.length)return wr.NoContainers;const i=n.find(e=>Vi(e)!==wr.Unknown);return i?Vi(i):wr.Unknown},Yi=(e,t,r)=>(t===Er.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Ji=e=>({[Kr.Logs]:Ye,[Kr.Metrics]:je,[Kr.Traces]:Ke,[Kr.Profiles]:ee}[e]),qi=(e,t)=>Object.values(Mn).reduce((r,n)=>Math.abs(t[n]-e)<Math.abs(t[r]-e)?n:r),Qi=e=>e&&{[vr.K8s]:Ze,[vr.Vm]:Qe,[vr.Connector]:qe,[vr.AwsEcs]:Je}[e]||ee,Zi=e=>e?{[vr.K8s]:"Kubernetes Cluster",[vr.Vm]:"Virtual Machine",[vr.Connector]:"Cloud Connector",[vr.AwsEcs]:"AWS ECS"}[e]:"Unknown",eo=(e,t,r)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[r],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...eo(e,t,r)),i}):[]},to={"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"},ro=e=>{if(!e)return"";if(to[e])return to[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},no=(e,t)=>{if(t===Er.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},io=(e,t,r)=>{switch(r=r??"500",t){case Nr.Default:return e.v2.colors.purple[r];case Nr.Info:return e.v2.colors.blue[r];case Nr.Error:return e.v2.colors.red[r];case Nr.Warning:return e.v2.colors.yellow[r];case Nr.Success:return e.v2.colors.green[r];case Nr.Loading:case Nr.Disabled:case Nr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},oo=e=>{switch(e){case Wr.Updating:case Xr.Pending:case Gr.ContainerCreating:case Vr.Waiting:return Nr.Info;case Wr.Healthy:case Xr.Succeeded:case Xr.Running:case Gr.Running:case Vr.Running:return Nr.Success;case Wr.Degraded:return Nr.Warning;case Wr.Failed:case Xr.Failed:case Gr.Error:case Gr.CrashLoopBackOff:case Gr.CreateContainerError:case Gr.CreateContainerConfigError:case Gr.ErrImagePull:case Gr.ErrImageNeverPull:case Gr.ImagePullBackOff:case Gr.InvalidImageName:case Gr.RegistryUnavailable:case Gr.NetworkNotReady:case Gr.OOMKilled:case Gr.ContainerCannotRun:case Vr.Terminated:case Gr.DeadlineExceeded:case Gr.StartError:return Nr.Error;case Wr.Down:case Gr.Completed:return Nr.Disabled;case Wr.Unknown:case Xr.Unknown:default:return Nr.Unknown}},ao=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as r}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
|
+
`,So=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,wo=()=>e($o,{children:[t(So,{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(So,{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(So,{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(So,{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(So,{children:t(ee,{size:112})})]}),xo=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 r}from"react/jsx-runtime";import n,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Eo=({scale:e=1,icon:r})=>{const n=o();return t(xo,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(xo,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(xo,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(xo,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(xo,{$size:39*e,$color:n.v2.colors.purple[500],children:t(r,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Co=n.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -163,14 +163,14 @@ import{jsxs as e,jsx as t,Fragment as r}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
|
+
`,_o=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
|
+
`,Do=n(Ao)`
|
|
174
174
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
175
|
width: 100%;
|
|
176
176
|
`,Lo=n(No)`
|
|
@@ -193,7 +193,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
193
193
|
background-clip: text;
|
|
194
194
|
color: transparent;
|
|
195
195
|
animation: ${Uo} 1s reverse linear infinite;
|
|
196
|
-
`,Fo=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),n=Math.floor(r/60),i=r%60;return`${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`},zo=({icon:r,title:n,titleColor:i,titleSize:a=Mn.S,subTitle:s,subTitleColor:l,subTitleSize:d=Mn.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?Fo(c):"");jt(()=>{if(!c)return;w(Fo(c));const e=setInterval(()=>w(Fo(c)),1e3);return()=>clearInterval(e)},[c]);const S=i||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Ao,{$gap:16,$alignItems:"center",children:[b?t(bo,{scale:1.7,icon:y}):h?t(co,{percentage:f}):g?t(mo,{scale:m}):null,(n||s||c||r||u)&&e(Ao,{$gap:8,$alignItems:"center",children:[e(No,{$gap:4,children:[r&&t(r,{}),u?t(Mo,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(jn,{align:"center",size:a,color:S,children:n}):null]}),s?t(jn,{align:"center",size:d,color:x,children:s}):null,$?t(jn,{align:"center",size:d,color:S,children:$}):null]})]})},Bo=(e,t)=>({[Nr.Default]:r=>ee({fill:io(t,e,"300"),...r}),[Nr.Info]:r=>it({fill:io(t,e,"400"),...r}),[Nr.Error]:r=>nt({fill:io(t,e,"500"),...r}),[Nr.Warning]:r=>rt({fill:io(t,e,"500"),...r}),[Nr.Success]:r=>p({fill:io(t,e,"500"),...r}),[Nr.Loading]:e=>zo({withSpinnerOld:!0,...e}),[Nr.Disabled]:r=>h({fill:io(t,e,"400"),...r}),[Nr.Unknown]:r=>tt({fill:io(t,e,"300"),...r})}[e]),Ho=e=>{switch(e){case Mr.Success:return Nr.Success;case Mr.Error:case Mr.Failure:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Unsupported:case Mr.Unknown:return Nr.Info;case Mr.Irrelevant:case Mr.Disabled:return Nr.Disabled;case Mr.Waiting:return Nr.Loading;case Mr.Pending:default:return Nr.Default}},jo=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Xo={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Wo={sts:bt,dynamodb:ft,s3:X,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Go=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Xo[r.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Xo[n.toLowerCase()];if(e)return e}const i=t["rpc.system"];if(i?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Wo[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xo))if(o.includes(e))return t;return ze},Vo=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:r,kind:n,region:i}=e;return{namespace:t,name:r,kind:n,region:i||void 0}},Ko=(e,t)=>{const r=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ii(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&r.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return r},Yo=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Nr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1};function Jo(e){if(!e||0===e.length)return null;const t=[],r=[],n=[];for(const i of e){if(!i)continue;const e=i.workloadName??"",o=i.workloadKind??"",a=i.workloadNamespace??"",s=i.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&r.push(a),s&&n.push(s)}return 0===t.length&&0===r.length&&0===n.length?null:{sources:t,namespaces:r,languages:n}}function qo(e){if(!e)return null;const t=[];for(const r of e.sources??[])t.push({workloadName:r.name||null,workloadKind:r.kind||null,workloadNamespace:r.namespace||null});for(const r of e.namespaces??[])t.push({workloadNamespace:r});for(const r of e.languages??[])t.push({workloadLanguage:r});return t.length?t:null}function Qo(e){const{sourcesScopes:t,...r}=e;return{...r,sourceScopes:Jo(t??null)}}function Zo(e){const{sourceScopes:t,...r}=e;return{...r,sourcesScopes:qo(t??null)}}const ea=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ta=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ra=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},na=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ia=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oa=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,aa=e=>oa.test(e),sa=e=>e?.map(({status:e,type:t,reason:r,message:n})=>({status:e?.toLowerCase(),type:Pn(t),reason:r?Pn(r):"",message:n}))||[],la=(e,t)=>{const r=ii(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},da=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],ca=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],ua=e=>{let t=e.replace(/[^\d.]/g,"");const r=t.indexOf(".");return-1!==r&&(t=t.slice(0,r+1)+t.slice(r+1).replace(/\./g,"")),t},pa=e=>e.replace(/[^\d]/g,""),ha=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ga=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},ma={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},fa={0:"",1:"OK",2:"ERROR"};class ba{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 r=this.buf[this.offset++];if(e|=BigInt(127&r)<<t,!(128&r))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 ba(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const ya=e=>{if(!e||0===e.length)return;let t="";for(let r=0;r<e.length;r++)t+=e[r].toString(16).padStart(2,"0");return t},va=e=>{let t="";for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:if(2!==r.wire){e.skip(r.wire);break}t=e.readString()??"";break;case 2:if(0!==r.wire){e.skip(r.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==r.wire){e.skip(r.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==r.wire){e.skip(r.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&i.push(va(e))}else n.skip(e.wire)}t=`[${i.join(", ")}]`;break}case 6:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];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=$a(e);t.key&&i.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${i.join(", ")}}`;break}case 7:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readBytes();if(!n)break;const i=ya(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${i}…`:i;break}default:e.skip(r.wire)}}return t},$a=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire)t.key=e.readString()??void 0;else if(2===r.field&&2===r.wire){const r=e.readMessage();t.value=r?va(r):void 0}else e.skip(r.wire)}return t},wa=(e,t)=>{const r=e.readMessage();if(!r)return;const n=$a(r);void 0===n.key&&void 0===n.value||t.push(n)},Sa=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;2===r.field&&2===r.wire?t.message=e.readString()??void 0:3===r.field&&0===r.wire?t.code=e.readVarintNumber()??void 0:e.skip(r.wire)}return t},xa=e=>{const t={attrs:[]};for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:1===r.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(r.wire);break;case 2:2===r.wire?t.name=e.readString()??void 0:e.skip(r.wire);break;case 3:2===r.wire?wa(e,t.attrs):e.skip(r.wire);break;default:e.skip(r.wire)}}return t},Ca=(e,t,r)=>{const n={attrs:[],events:[],service:t,scope:r};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=ya(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=ya(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=ya(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?wa(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(xa(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Sa(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ea=e=>{let t;for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const r=e.readMessage();if(!r)continue;const n=$a(r);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(r.wire)}return t},Ta=e=>{let t,r;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?r=e.readString()??void 0:e.skip(n.wire)}if(t)return r?`${t}@${r}`:t},Oa=(e,t)=>{let r;const n=[];for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const t=e.readMessage();t&&(r=Ta(t))}else if(2===i.field&&2===i.wire){const i=e.readMessage();i&&n.push(Ca(i,t,r))}else e.skip(i.wire)}for(const e of n)!e.scope&&r&&(e.scope=r);return n},Na=e=>{let t;const r=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const r=e.readMessage();r&&(t=Ea(r))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&r.push(...Oa(n,t))}else e.skip(n.wire)}for(const e of r)!e.service&&t&&(e.service=t);return r},Aa=e=>({key:e.key??null,value:e.value??null}),Ia=e=>{if(!e.length)return[];const t=new Map;for(const r of e)r.spanId&&t.set(r.spanId,r);const r=new Map,n=[];for(const i of e){const e=i.parentSpanId;if(e&&t.has(e)){const t=r.get(e)??[];t.push(i),r.set(e,t)}else n.push(i)}n.sort((e,t)=>{const r=e.startUnixNano??0n,n=t.startUnixNano??0n;return r<n?-1:r>n?1:0});const i=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>i?n-i:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?fa[e.statusCode]??null:null,u=(e.attrs??[]).map(Aa);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,r=t>i?t-i:0n;return{name:e.name??null,offsetMs:Number(r)/1e6,attrs:(e.attrs??[]).map(Aa)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?ma[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 r.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)})},ka=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 r="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const r=(e=>{const t=new ba(e),r=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&r.push(...Na(e))}else t.skip(e.wire)}return r})(t);return r.length?{spans:Ia(r),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"}}},Ra=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{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}}})(r);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Da=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const n=e[r];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>Da(e)))}else if("object"==typeof n&&null!==n){const e=Da(n);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(n)||(t[r]=n)}),t},_a=(e,t=2)=>JSON.stringify(e||{},null,t),La=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Pa=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),Ua=or("v1.33"),Ma=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Fa=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return r>0&&r<Ua},za=or("v1.20"),Ba=(e,t)=>{if(e!==vr.K8s)return!0;const r=or(t);return!(r>0)||r>=za},Ha=e=>e?Ma.map(t=>e[t]??null):[],ja={PID:"process.pid",VPID:"process.vpid"},Xa={[Sr.Go]:"Go",[Sr.Java]:"Java",[Sr.JavaScript]:"Node.js",[Sr.Python]:"Python",[Sr.DotNet]:".NET",[Sr.CSharp]:"C#",[Sr.CPlusPlus]:"C++",[Sr.Php]:"PHP",[Sr.Ruby]:"Ruby",[Sr.Rust]:"Rust",[Sr.Swift]:"Swift",[Sr.Elixir]:"Elixir",[Sr.MySql]:"MySQL",[Sr.Nginx]:"Nginx",[Sr.Postgres]:"PostgreSQL",[Sr.Redis]:"Redis",[Sr.Kafka]:"Kafka",[Sr.Ignored]:"Ignored",[Sr.Unknown]:"Unknown",[Sr.Processing]:"Processing",[Sr.NoContainers]:"No Containers",[Sr.NoRunningPods]:"No Running Pods"},Wa=[{id:Sr.Go,label:Xa[Sr.Go],icon:Di(Sr.Go)},{id:Sr.Java,label:Xa[Sr.Java],icon:Di(Sr.Java)},{id:Sr.JavaScript,label:Xa[Sr.JavaScript],icon:Di(Sr.JavaScript)},{id:Sr.Python,label:Xa[Sr.Python],icon:Di(Sr.Python)},{id:Sr.Php,label:Xa[Sr.Php],icon:Di(Sr.Php)},{id:Sr.Ruby,label:Xa[Sr.Ruby],icon:Di(Sr.Ruby)},{id:Sr.Rust,label:Xa[Sr.Rust],icon:Di(Sr.Rust)},{id:Sr.DotNet,label:Xa[Sr.DotNet],icon:Di(Sr.DotNet)},{id:Sr.CSharp,label:Xa[Sr.CSharp],icon:Di(Sr.CSharp)},{id:Sr.CPlusPlus,label:Xa[Sr.CPlusPlus],icon:Di(Sr.CPlusPlus)},{id:Sr.Swift,label:Xa[Sr.Swift],icon:Di(Sr.Swift)},{id:Sr.Elixir,label:Xa[Sr.Elixir],icon:Di(Sr.Elixir)}],Ga={id:Ur.OpentelemetryEbpfInstrumentation,label:Ur.OpentelemetryEbpfInstrumentation,icon:yt},Va={[Sr.Go]:{community:[{id:Ur.GolangCommunity,label:Ur.GolangCommunity,icon:Di(Sr.Go)},Ga],enterprise:[{id:Ur.GolangEnterprise,label:Ur.GolangEnterprise,icon:Di(Sr.Go)}]},[Sr.JavaScript]:{community:[{id:Ur.NodejsCommunity,label:Ur.NodejsCommunity,icon:Di(Sr.JavaScript)},Ga],enterprise:[{id:Ur.NodejsEnterprise,label:Ur.NodejsEnterprise,icon:Di(Sr.JavaScript)}]},[Sr.Python]:{community:[{id:Ur.PythonCommunity,label:Ur.PythonCommunity,icon:Di(Sr.Python)},Ga],enterprise:[{id:Ur.PythonEnterprise,label:Ur.PythonEnterprise,icon:Di(Sr.Python)}]},[Sr.Java]:{community:[{id:Ur.JavaCommunity,label:Ur.JavaCommunity,icon:Di(Sr.Java)},Ga],enterprise:[{id:Ur.JavaEnterprise,label:Ur.JavaEnterprise,icon:Di(Sr.Java)},{id:Ur.JavaEbpfInstrumentations,label:Ur.JavaEbpfInstrumentations,icon:Di(Sr.Java)}]},[Sr.DotNet]:{community:[{id:Ur.DotNetCommunity,label:Ur.DotNetCommunity,icon:Di(Sr.DotNet)},Ga],enterprise:[{id:Ur.DotNetEnterprise,label:Ur.DotNetEnterprise,icon:Di(Sr.DotNet)}]},[Sr.Ruby]:{community:[{id:Ur.RubyCommunity,label:Ur.RubyCommunity,icon:Di(Sr.Ruby)},Ga],enterprise:[{id:Ur.RubyEnterprise,label:Ur.RubyEnterprise,icon:Di(Sr.Ruby)}]},[Sr.Php]:{community:[{id:Ur.PhpCommunity,label:Ur.PhpCommunity,icon:Di(Sr.Php)},Ga],enterprise:[]},[Sr.CSharp]:{community:[],enterprise:[{id:Ur.CPlusPlusEnterprise,label:Ur.CPlusPlusEnterprise,icon:Di(Sr.CSharp)}]},[Sr.MySql]:{community:[],enterprise:[{id:Ur.MySqlEnterprise,label:Ur.MySqlEnterprise,icon:Di(Sr.MySql)}]},[Sr.CPlusPlus]:{community:[Ga],enterprise:[]},[Sr.Rust]:{community:[Ga],enterprise:[]},[Sr.Swift]:{community:[Ga],enterprise:[]},[Sr.Elixir]:{community:[Ga],enterprise:[]},[Sr.Nginx]:{community:[Ga],enterprise:[]},[Sr.Postgres]:{community:[Ga],enterprise:[]},[Sr.Redis]:{community:[Ga],enterprise:[]},[Sr.Kafka]:{community:[Ga],enterprise:[]},[Sr.Ignored]:{community:[],enterprise:[]},[Sr.Unknown]:{community:[Ga],enterprise:[]},[Sr.Processing]:{community:[],enterprise:[]},[Sr.NoContainers]:{community:[],enterprise:[]},[Sr.NoRunningPods]:{community:[],enterprise:[]}},Ka="*",Ya=e=>!!e?.includes(Ka),Ja=e=>e?.length?Ya(e)?[Ka]:e:[],qa=e=>{if(e?.length&&!Ya(e))return e.filter(e=>e!==Ka)},Qa=e=>e===Ka?"All languages":Xa[e]??e,Za=e=>e===Ka?vt:Di(e),es=or("v1.26"),ts=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return!(r>0)||r>=es},rs=[Fr.NetworkMetrics],ns=e=>!rs.includes(e),is=[{type:Fr.CodeAttributes,icon:Gi(Fr.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:[Sr.Go,Sr.Python,Sr.JavaScript]},{type:Fr.CustomInstrumentation,icon:Gi(Fr.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:[Sr.Go,Sr.Java,Sr.Php]},{type:Fr.HeadersCollection,icon:Gi(Fr.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:[Sr.Go,Sr.Java,Sr.JavaScript]},{type:Fr.PayloadCollection,icon:Gi(Fr.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:[Sr.Go,Sr.JavaScript]}],os=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Gi(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},as="Recommendations",ss="Optimize your observability setup with actionable recommendations.",ls="Recommended",ds="Applied",cs="Dismissed",us="Not applicable",ps={[wn.Recommended]:ls,[wn.Applied]:ds,[wn.Dismissed]:cs,[wn.NotApplicable]:us},hs="Accept",gs="Dismiss",ms="Restore",fs="Docs",bs="Benefits",ys="Considerations",vs="Apply Recommendation",$s="Apply via UI",ws="Apply via GitOps",Ss="Via UI",xs="Via GitOps",Cs="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Es="There are 2 ways to apply this recommendation.",Ts="Odigos applies the selected change immediately.",Os="Commit the configuration to your repository and let your GitOps controller apply it.",Ns="UI changes apply only to this cluster and will not carry over if you re-install odigos.",As="No recommendations",Is="There are no recommendations for this cluster right now.",ks="This recommendation does not currently apply to your cluster.",Rs="Recommendation dismissed",Ds="Recommendation restored",_s="Recommendation applied successfully",Ls="Failed to apply recommendation",Ps={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.'},Us={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."},Ms={[gr.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gr.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gr.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Fs="Cancel",zs="Save",Bs="Edit rule",Hs="Edit auto rule",js="Create rule",Xs="Delete rule",Ws="Save",Gs="Create your first rule",Vs="No Rules Exist",Ks="No Results",Ys=e=>`No rules match the search term "${e}"`,Js="Rule name",qs="Rule type",Qs="Select the type of condition that makes a trace highly relevant.",Zs="Rule Enabled",el="Rule Disabled",tl="Enabled",rl="Disabled",nl="Note",il="HTTP route",ol="Method",al="Keep Percentage",sl="Keep traces with duration larger than",ll="Keep traces with errors",dl="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",cl="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",ul="Custom percentage",pl="Disabled rule",hl="Sample",gl="Keep all",ml="Drop all",fl="Operation type",bl="HTTP route prefix",yl="Templated path",vl="Templated path prefix",$l="Kafka topic",wl="Custom duration (ms)",Sl="No preview available",xl="Server address",Cl="Drop at most this percentage of matching traces",El="Unnamed rule",Tl="Sampling Preview",Ol="Source Scope",Nl="Unknown source",Al="Operation",Il="Duration",kl="Errors",Rl="Keep Percentage",Dl="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",_l="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.",Ll="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Pl="Retain traces with errors from the selected services and operations.",Ul="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Ml="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Fl={highlyRelevant:Ul,noisy:Ml,costReduction:void 0},zl="Type rule name",Bl="Add note here...",Hl="Type here",jl="Search source name",Xl="e.g. collector.my.vendor.com",Wl="Optional notes (not used by the system). Add any context or details for this sampling rule.",Gl="Rule will apply to all sources in the cluster",Vl="If multiple source scopes are set, they must all match simultaneously.",Kl="All sources",Yl="-",Jl="All",ql="Sources",Ql="Namespaces",Zl="Languages",ed="any of",td="AND",rd="All operations",nd="HTTP server endpoint",id="HTTP client endpoint",od="Kafka consumer",ad="Kafka producer",sd="Sampling Rules",ld='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',dd="Refresh",cd="Create rule",ud="Sampling docs",pd="75vw",hd="Delete rule?",gd="Are you sure you want to delete this sampling rule?",md="Delete",fd="Cancel",bd="Kubernetes Health Probes",yd="Keep All Error Traces",vd="Drop Traces Cluster-Wide",$d="A rule with the same matching conditions already exists.",wd="Create this rule as-is?",Sd="This rule still uses the default configuration.\nDo you want to create it anyway?",xd="Rule preview",Cd="Continue editing",Ed="Create 'Noisy Operation Kubernetes Health Probes' rule",Td="Edit 'Noisy Operation Kubernetes Health Probes' rule",Od="Automatically detect and sample health probe traces across the cluster.",Nd="Create 'Highly Relevant Operations' rule",Ad="Edit 'Highly Relevant Operations' rule",Id="Automatically keep all error traces across the entire cluster.",kd="Create 'Cost Reduction' rule",Rd="Edit 'Cost Reduction' rule",Dd="Automatically drop a percentage of traces across the entire cluster.",_d="Skip setup",Ld="Start setup",Pd="Next",Ud="Go to Sampling",Md="Read more",Fd="Welcome to Sampling",zd="Cut costs without losing what matters",Bd="Odigos sampling works in three stages:",Hd="Filter noisy traffic",jd="Remove non-actionable traces like health checks.",Xd="Guarantee highly relevance operations",Wd="Keep traces with errors, high latency, or mission-critical endpoints/services.",Gd="Reduce cost",Vd="Sample routine traffic using percentages.",Kd="Sampling does not drop individual spans - it keeps or drops the entire trace.",Yd="Filter noisy operations",Jd="Cut traces with little or no observability value (health-checks, metric scarping, etc)",qd="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.",Qd="Preset Rules",Zd="Kubernetes Health Probes",ec="Automatically ignore health checks",tc="You can review, adjust, and add additional custom rules later.",rc="Choose your sampling strategy",nc="Pick the approach that best fits your balance of cost vs data-completeness",ic="Keep List",oc="Budget Friendly",ac="Define which traces must be kept, while all others are sampled by default to minimize cost.",sc="Cost-oriented - keeps only what you explicitly select.",lc="Best for very large clusters with high volumes of traces and high costs.",dc="Higher risk of missing important traces without ongoing review.",cc="Drop List",uc="Safe Choice",pc="Define which traces must be aggressively dropped, while all others are kept by default.",hc="Preserves most data unless explicitly filtered.",gc="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",mc="Advanced",fc="Maximum Flexibility",bc="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",yc="'Keep List' profile",vc="Protect important traces",$c="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:",wc="Traces with errors",Sc="Slow requests (duration above threshold)",xc="Mission-Critical endpoints or services",Cc="Services under test or evaluation",Ec="New deployments",Tc="You can review, adjust, and add rules once onboarding is complete.",Oc="Common Rules",Nc="Preset Rules",Ac="Error collection - entire cluster",Ic="Keep all traces with errors",kc="Ambient sampling percentage",Rc="'Drop List' profile",Dc="Reduce high-volume traffic",_c="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.",Lc="Advanced Configuration",Pc="Configure sampling rules",Uc="Advanced mode allows you to configure all sampling categories:",Mc="Noise Filtering - remove non-actionable traces",Fc="Highly Relevance - guarantee important traces are kept",zc='Cost Control - drop traces for "Normal" operations',Bc="Rules can target:",Hc="Services",jc="HTTP Endpoints",Xc="DB Operations",Wc="Errors",Gc="Latency and more...",Vc="Sampling configured successfully!",Kc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Yc="Odigos will now:",Jc="Filter noisy operations",qc="Guarantee important traces",Qc="Reduce cost using controlled sampling",Zc="Recommended",eu={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."},tu={noisy:Ed,highlyRelevant:Nd,costReduction:kd},ru={noisy:Td,highlyRelevant:Ad,costReduction:Rd},nu={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},iu=[{id:Kr.Logs,value:"Logs"},{id:Kr.Metrics,value:"Metrics"},{id:Kr.Traces,value:"Traces"},{id:Kr.Profiles,value:"Profiles"}],ou=6048e5,au="URL templatization",su="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",lu="Default templatization",du="Custom and default URL templatization scopes across URL templatization actions.",cu="Default templatization is not enabled",uu="Automatically detect and normalize dynamic URL segments when no custom template matches.",pu="Enable for entire cluster",hu="Custom URL templates",gu="Define exact URL patterns and control where each template group applies.",mu="View by:",fu="Groups",bu="Tree",yu="List",vu="Create template group",$u="Edit group",wu="Add template",Su="No custom URL templates",xu="Define exact route patterns for your application. Custom templates are matched before default templatization.",Cu="Create custom template",Eu="Docs",Tu="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Ou="Default templatization is enabled — editor coming next.",Nu="746px",Au="Add default templatization rule",Iu="Edit default templatization rule",ku="UI template rules",Ru="Source Scope",Du="Choose where this rule applies.",_u="This rule will apply to all sources in the cluster.",Lu="Default templatization",Pu="Automatically normalize dynamic URL segments when no custom template matches.",Uu="Enable automatic URL normalization for this scope",Mu="Skip policy",Fu="Advanced",zu="Prevent selected error responses from being normalized by the default heuristic. Custom templates still match first.",Bu="Skip for non-2xx responses",Hu="Skip selected HTTP status codes",ju="Example: 404, 401",Xu="Use comma-separated HTTP status codes between 100 and 599.",Wu="This rule will take effect in the cluster immediately after it is added.",Gu="This rule will take effect in the cluster immediately after it is saved.",Vu="Add rule",Ku="Save",Yu="Cancel",Ju="Enter valid HTTP status codes between 100 and 599, separated by commas.",qu="Create custom template",Qu="UI template rules",Zu="Choose where to add the template",ep="Template group",tp="Entire Cluster",rp="Add the template to an existing group or create a new group with its own scope.",np="This template will apply to all sources in the cluster.",ip="Add to existing template group",op="Add to New template group",ap="Template group will be added to the default action",sp="Advanced Configuration",lp="Search template group by type action name or scope (languages, namespaces, sources)",dp="Selected Template group:",cp="URL templatization action",up="New action name",pp="New action group",hp="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.",gp="Create new template group",mp="Next",fp="Back",bp="Action name",yp="URL Templatization",vp="UI",$p="Templates",wp="e.g. /api/users/{id}",Sp="Language:",xp="Namespace:",Cp="Deployment/",Ep="AND",Tp="Entire cluster",Op="URL template",Np="Template",Ap="Origin",Ip="Display name",kp="Resource name",Rp="Try a URL",Dp="/users/12/orders/345685335358",_p="Test URL",Lp="Close",Pp="Result",Up="Match found",Mp="This URL matches the template.",Fp="No match",zp="This URL doesn't match the template.",Bp="Check the URL structure and parameter positions, then try again.",Hp=Ft()(tr(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Kn.DARK_MODE,storage:"undefined"!=typeof window?rr(()=>localStorage):void 0})),jp={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Wn},Xp=Ft(e=>({...jp,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(jp)}));var Wp;(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"})(Wp||(Wp={}));const Gp=e=>`add-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Vp=e=>`edit-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Kp=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Yp=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Jp=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:Yp})),qp=Ft((e,t)=>({notifications:[],addNotification:r=>{const n=new Date,i=`${n.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Qp;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Qp||(Qp={}));const Zp=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),eh=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),th=Ft((e,t)=>({progress:{},setProgress:(r,n)=>{const i=t(),o=Zp();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:{...i.progress,[r]:eh(o)}})},addProgress:(r,n,i)=>{const o=t(),a=Zp(r,o.progress);return a.current+=n,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...o.progress,[r]:eh(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),rh=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nh={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ih=(e,t)=>e.destinationType.type!==t.destinationType.type,oh=Ft(e=>({...nh,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=>ih(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ih(e,t))})),clearStore:()=>e(()=>({...nh}))})),ah=e=>{function t(){return void 0===e?{}:fi(e)}const[r,n]=Ht(t()),[i,o]=Ht({}),[a,s]=Ht(t()),l=Xt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[n,i]of Object.entries(e)){const e=n;if(Array.isArray(i)){const n=t[e];Array.isArray(n)&&i.length===n.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(r[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const n=l(i,t[e]);Object.keys(n).length>0&&(r[e]=n)}else i!==t[e]&&(r[e]=t[e])}for(const n of Object.keys(t))n in e||(r[n]=t[n]);return r},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Wt(()=>!d(a,r),[a,r]);jt(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(i)&&(n(i),s(i))},[e,r]);const u=Xt((e,t)=>bi("formData"===e?r:i,t.toString()),[r,i]);return{formData:r,formErrors:i,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,r)=>{if(e){const r=e.toString(),i=r.split(".");1===i.length?n(r=>({...r,[e]:t})):n(e=>{const r=fi(e);let n=r;for(let e=0;e<i.length-1;e++){const t=i[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[i[i.length-1]]=t,r}),o(e=>{const t=r,n=i[i.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 r&&n({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const n=fi(e);let i=n;for(let e=0;e<r.length-1;e++){const t=r[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[r[r.length-1]]=t,n})}else r&&o({...r})},resetFormData:e=>{const r=e||t();n(r),s(r),o({})},getNestedValue:u}},sh={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},lh=()=>{const{addNotification:e}=qp(),{formData:t,formErrors:r,handleFormChange:n,handleErrorChange:i,resetFormData:o}=ah(sh);return{formData:t,formErrors:r,handleFormChange:n,resetFormData:o,validateForm:r=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ea(t)&&(n[e]=Yn.FIELD_IS_REQUIRED)}}),t.type===ar.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Yn.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&r?.withAlert&&e({type:Nr.Warning,title:r.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:i,disabled:o,fields:a})=>{const s={...fi(sh),type:e,signals:t,name:r,notes:i,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case lr.LabelsAttributes:case lr.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(r=t)&&Array.isArray(r)?r.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):r;break;case lr.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 lr.CollectContainerAttributes:case lr.CollectReplicaSetAttributes:case lr.CollectWorkloadId:case lr.CollectClusterId:case lr.ClusterAttributes:case lr.OverwriteExistingValues:case lr.AttributeNamesToDelete:case lr.Renames:case lr.PiiCategories:case lr.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var r,n}),n(void 0,void 0,s)}}},dh=e=>{jt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ch=()=>{const e=Gt(null),[t,r]=Ht(0),[n,i]=Ht(0);return jt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();r(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},uh="data-ignore-outside-click",ph=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(uh))return!0;t=t.parentNode}return!1},hh=(e,t)=>{const r=Gt(t);r.current=t,jt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(ph(n)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},gh=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:n="local"}={})=>{const i=Gt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return hh(i,()=>{o&&(a(!1),r?.())}),{popupRef:i,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(r,o)=>{if("local"===n)return void l({top:o,left:r});const{innerWidth:a,innerHeight:s}=window,d=i.current?.clientWidth||t,u=i.current?.clientHeight||e,p=r/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=r;if(g>=s/2&&(g+=-u),"center"===h){m=r-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=r-d);l({top:g,left:m})}}},mh=n.div`
|
|
196
|
+
`,Fo=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),n=Math.floor(r/60),i=r%60;return`${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`},zo=({icon:r,title:n,titleColor:i,titleSize:a=Mn.S,subTitle:s,subTitleColor:l,subTitleSize:d=Mn.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,S]=Ht(()=>c?Fo(c):"");jt(()=>{if(!c)return;S(Fo(c));const e=setInterval(()=>S(Fo(c)),1e3);return()=>clearInterval(e)},[c]);const w=i||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],E=p||v.v2.colors.black[500];return e(Ao,{$gap:16,$alignItems:"center",children:[b?t(bo,{scale:1.7,icon:y}):h?t(co,{percentage:f}):g?t(mo,{scale:m}):null,(n||s||c||r||u)&&e(Ao,{$gap:8,$alignItems:"center",children:[e(No,{$gap:4,children:[r&&t(r,{}),u?t(Mo,{align:"center",size:a,$titleColor:w,$gradientColor:E,nowrap:!0,children:n||"Loading..."}):n?t(jn,{align:"center",size:a,color:w,children:n}):null]}),s?t(jn,{align:"center",size:d,color:x,children:s}):null,$?t(jn,{align:"center",size:d,color:w,children:$}):null]})]})},Bo=(e,t)=>({[Nr.Default]:r=>ee({fill:io(t,e,"300"),...r}),[Nr.Info]:r=>it({fill:io(t,e,"400"),...r}),[Nr.Error]:r=>nt({fill:io(t,e,"500"),...r}),[Nr.Warning]:r=>rt({fill:io(t,e,"500"),...r}),[Nr.Success]:r=>p({fill:io(t,e,"500"),...r}),[Nr.Loading]:e=>zo({withSpinnerOld:!0,...e}),[Nr.Disabled]:r=>h({fill:io(t,e,"400"),...r}),[Nr.Unknown]:r=>tt({fill:io(t,e,"300"),...r})}[e]),Ho=e=>{switch(e){case Mr.Success:return Nr.Success;case Mr.Error:case Mr.Failure:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Unsupported:case Mr.Unknown:return Nr.Info;case Mr.Irrelevant:case Mr.Disabled:return Nr.Disabled;case Mr.Waiting:return Nr.Loading;case Mr.Pending:default:return Nr.Default}},jo=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Wo={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ce,oracle:J,aws:ot},Xo={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:Ee},Go=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Wo[r.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Wo[n.toLowerCase()];if(e)return e}const i=t["rpc.system"];if(i?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Xo[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Wo))if(o.includes(e))return t;return ze},Vo=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:r,kind:n,region:i}=e;return{namespace:t,name:r,kind:n,region:i||void 0}},Ko=(e,t)=>{const r=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ii(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&r.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return r},Yo=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Nr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1};function Jo(e){if(!e||0===e.length)return null;const t=[],r=[],n=[];for(const i of e){if(!i)continue;const e=i.workloadName??"",o=i.workloadKind??"",a=i.workloadNamespace??"",s=i.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&r.push(a),s&&n.push(s)}return 0===t.length&&0===r.length&&0===n.length?null:{sources:t,namespaces:r,languages:n}}function qo(e){if(!e)return null;const t=[];for(const r of e.sources??[])t.push({workloadName:r.name||null,workloadKind:r.kind||null,workloadNamespace:r.namespace||null});for(const r of e.namespaces??[])t.push({workloadNamespace:r});for(const r of e.languages??[])t.push({workloadLanguage:r});return t.length?t:null}function Qo(e){const{sourcesScopes:t,...r}=e;return{...r,sourceScopes:Jo(t??null)}}function Zo(e){const{sourceScopes:t,...r}=e;return{...r,sourcesScopes:qo(t??null)}}const ea=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ta=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ra=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},na=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ia=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oa=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,aa=e=>oa.test(e),sa=e=>e?.map(({status:e,type:t,reason:r,message:n})=>({status:e?.toLowerCase(),type:Pn(t),reason:r?Pn(r):"",message:n}))||[],la=(e,t)=>{const r=ii(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},da=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],ca=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],ua=e=>{let t=e.replace(/[^\d.]/g,"");const r=t.indexOf(".");return-1!==r&&(t=t.slice(0,r+1)+t.slice(r+1).replace(/\./g,"")),t},pa=e=>e.replace(/[^\d]/g,""),ha=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ga=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},ma={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},fa={0:"",1:"OK",2:"ERROR"};class ba{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 r=this.buf[this.offset++];if(e|=BigInt(127&r)<<t,!(128&r))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 ba(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const ya=e=>{if(!e||0===e.length)return;let t="";for(let r=0;r<e.length;r++)t+=e[r].toString(16).padStart(2,"0");return t},va=e=>{let t="";for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:if(2!==r.wire){e.skip(r.wire);break}t=e.readString()??"";break;case 2:if(0!==r.wire){e.skip(r.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==r.wire){e.skip(r.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==r.wire){e.skip(r.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&i.push(va(e))}else n.skip(e.wire)}t=`[${i.join(", ")}]`;break}case 6:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];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=$a(e);t.key&&i.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${i.join(", ")}}`;break}case 7:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readBytes();if(!n)break;const i=ya(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${i}…`:i;break}default:e.skip(r.wire)}}return t},$a=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire)t.key=e.readString()??void 0;else if(2===r.field&&2===r.wire){const r=e.readMessage();t.value=r?va(r):void 0}else e.skip(r.wire)}return t},Sa=(e,t)=>{const r=e.readMessage();if(!r)return;const n=$a(r);void 0===n.key&&void 0===n.value||t.push(n)},wa=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;2===r.field&&2===r.wire?t.message=e.readString()??void 0:3===r.field&&0===r.wire?t.code=e.readVarintNumber()??void 0:e.skip(r.wire)}return t},xa=e=>{const t={attrs:[]};for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:1===r.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(r.wire);break;case 2:2===r.wire?t.name=e.readString()??void 0:e.skip(r.wire);break;case 3:2===r.wire?Sa(e,t.attrs):e.skip(r.wire);break;default:e.skip(r.wire)}}return t},Ea=(e,t,r)=>{const n={attrs:[],events:[],service:t,scope:r};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=ya(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=ya(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=ya(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?Sa(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(xa(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=wa(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ca=e=>{let t;for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const r=e.readMessage();if(!r)continue;const n=$a(r);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(r.wire)}return t},Ta=e=>{let t,r;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?r=e.readString()??void 0:e.skip(n.wire)}if(t)return r?`${t}@${r}`:t},Oa=(e,t)=>{let r;const n=[];for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const t=e.readMessage();t&&(r=Ta(t))}else if(2===i.field&&2===i.wire){const i=e.readMessage();i&&n.push(Ea(i,t,r))}else e.skip(i.wire)}for(const e of n)!e.scope&&r&&(e.scope=r);return n},Na=e=>{let t;const r=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const r=e.readMessage();r&&(t=Ca(r))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&r.push(...Oa(n,t))}else e.skip(n.wire)}for(const e of r)!e.service&&t&&(e.service=t);return r},Aa=e=>({key:e.key??null,value:e.value??null}),Ia=e=>{if(!e.length)return[];const t=new Map;for(const r of e)r.spanId&&t.set(r.spanId,r);const r=new Map,n=[];for(const i of e){const e=i.parentSpanId;if(e&&t.has(e)){const t=r.get(e)??[];t.push(i),r.set(e,t)}else n.push(i)}n.sort((e,t)=>{const r=e.startUnixNano??0n,n=t.startUnixNano??0n;return r<n?-1:r>n?1:0});const i=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>i?n-i:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?fa[e.statusCode]??null:null,u=(e.attrs??[]).map(Aa);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,r=t>i?t-i:0n;return{name:e.name??null,offsetMs:Number(r)/1e6,attrs:(e.attrs??[]).map(Aa)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?ma[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 r.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)})},ka=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 r="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const r=(e=>{const t=new ba(e),r=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&r.push(...Na(e))}else t.skip(e.wire)}return r})(t);return r.length?{spans:Ia(r),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"}}},Ra=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{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}}})(r);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},_a=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const n=e[r];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>_a(e)))}else if("object"==typeof n&&null!==n){const e=_a(n);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(n)||(t[r]=n)}),t},Da=(e,t=2)=>JSON.stringify(e||{},null,t),La=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Pa=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),Ua=or("v1.33"),Ma=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Fa=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return r>0&&r<Ua},za=or("v1.20"),Ba=(e,t)=>{if(e!==vr.K8s)return!0;const r=or(t);return!(r>0)||r>=za},Ha=e=>e?Ma.map(t=>e[t]??null):[],ja={PID:"process.pid",VPID:"process.vpid"},Wa={[wr.Go]:"Go",[wr.Java]:"Java",[wr.JavaScript]:"Node.js",[wr.Python]:"Python",[wr.DotNet]:".NET",[wr.CSharp]:"C#",[wr.CPlusPlus]:"C++",[wr.Php]:"PHP",[wr.Ruby]:"Ruby",[wr.Rust]:"Rust",[wr.Swift]:"Swift",[wr.Elixir]:"Elixir",[wr.MySql]:"MySQL",[wr.Nginx]:"Nginx",[wr.Postgres]:"PostgreSQL",[wr.Redis]:"Redis",[wr.Kafka]:"Kafka",[wr.Ignored]:"Ignored",[wr.Unknown]:"Unknown",[wr.Processing]:"Processing",[wr.NoContainers]:"No Containers",[wr.NoRunningPods]:"No Running Pods"},Xa=[{id:wr.Go,label:Wa[wr.Go],icon:_i(wr.Go)},{id:wr.Java,label:Wa[wr.Java],icon:_i(wr.Java)},{id:wr.JavaScript,label:Wa[wr.JavaScript],icon:_i(wr.JavaScript)},{id:wr.Python,label:Wa[wr.Python],icon:_i(wr.Python)},{id:wr.Php,label:Wa[wr.Php],icon:_i(wr.Php)},{id:wr.Ruby,label:Wa[wr.Ruby],icon:_i(wr.Ruby)},{id:wr.Rust,label:Wa[wr.Rust],icon:_i(wr.Rust)},{id:wr.DotNet,label:Wa[wr.DotNet],icon:_i(wr.DotNet)},{id:wr.CSharp,label:Wa[wr.CSharp],icon:_i(wr.CSharp)},{id:wr.CPlusPlus,label:Wa[wr.CPlusPlus],icon:_i(wr.CPlusPlus)},{id:wr.Swift,label:Wa[wr.Swift],icon:_i(wr.Swift)},{id:wr.Elixir,label:Wa[wr.Elixir],icon:_i(wr.Elixir)}],Ga={id:Ur.OpentelemetryEbpfInstrumentation,label:Ur.OpentelemetryEbpfInstrumentation,icon:yt},Va={[wr.Go]:{community:[{id:Ur.GolangCommunity,label:Ur.GolangCommunity,icon:_i(wr.Go)},Ga],enterprise:[{id:Ur.GolangEnterprise,label:Ur.GolangEnterprise,icon:_i(wr.Go)}]},[wr.JavaScript]:{community:[{id:Ur.NodejsCommunity,label:Ur.NodejsCommunity,icon:_i(wr.JavaScript)},Ga],enterprise:[{id:Ur.NodejsEnterprise,label:Ur.NodejsEnterprise,icon:_i(wr.JavaScript)}]},[wr.Python]:{community:[{id:Ur.PythonCommunity,label:Ur.PythonCommunity,icon:_i(wr.Python)},Ga],enterprise:[{id:Ur.PythonEnterprise,label:Ur.PythonEnterprise,icon:_i(wr.Python)}]},[wr.Java]:{community:[{id:Ur.JavaCommunity,label:Ur.JavaCommunity,icon:_i(wr.Java)},Ga],enterprise:[{id:Ur.JavaEnterprise,label:Ur.JavaEnterprise,icon:_i(wr.Java)},{id:Ur.JavaEbpfInstrumentations,label:Ur.JavaEbpfInstrumentations,icon:_i(wr.Java)}]},[wr.DotNet]:{community:[{id:Ur.DotNetCommunity,label:Ur.DotNetCommunity,icon:_i(wr.DotNet)},Ga],enterprise:[{id:Ur.DotNetEnterprise,label:Ur.DotNetEnterprise,icon:_i(wr.DotNet)}]},[wr.Ruby]:{community:[{id:Ur.RubyCommunity,label:Ur.RubyCommunity,icon:_i(wr.Ruby)},Ga],enterprise:[{id:Ur.RubyEnterprise,label:Ur.RubyEnterprise,icon:_i(wr.Ruby)}]},[wr.Php]:{community:[{id:Ur.PhpCommunity,label:Ur.PhpCommunity,icon:_i(wr.Php)},Ga],enterprise:[]},[wr.CSharp]:{community:[],enterprise:[{id:Ur.CPlusPlusEnterprise,label:Ur.CPlusPlusEnterprise,icon:_i(wr.CSharp)}]},[wr.MySql]:{community:[],enterprise:[{id:Ur.MySqlEnterprise,label:Ur.MySqlEnterprise,icon:_i(wr.MySql)}]},[wr.CPlusPlus]:{community:[Ga],enterprise:[]},[wr.Rust]:{community:[Ga],enterprise:[]},[wr.Swift]:{community:[Ga],enterprise:[]},[wr.Elixir]:{community:[Ga],enterprise:[]},[wr.Nginx]:{community:[Ga],enterprise:[]},[wr.Postgres]:{community:[Ga],enterprise:[]},[wr.Redis]:{community:[Ga],enterprise:[]},[wr.Kafka]:{community:[Ga],enterprise:[]},[wr.Ignored]:{community:[],enterprise:[]},[wr.Unknown]:{community:[Ga],enterprise:[]},[wr.Processing]:{community:[],enterprise:[]},[wr.NoContainers]:{community:[],enterprise:[]},[wr.NoRunningPods]:{community:[],enterprise:[]}},Ka="*",Ya=e=>!!e?.includes(Ka),Ja=e=>e?.length?Ya(e)?[Ka]:e:[],qa=e=>{if(e?.length&&!Ya(e))return e.filter(e=>e!==Ka)},Qa=e=>e===Ka?"All languages":Wa[e]??e,Za=e=>e===Ka?vt:_i(e),es=or("v1.26"),ts=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return!(r>0)||r>=es},rs=[Fr.NetworkMetrics],ns=e=>!rs.includes(e),is=[{type:Fr.CodeAttributes,icon:Gi(Fr.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:[wr.Go,wr.Python,wr.JavaScript]},{type:Fr.CustomInstrumentation,icon:Gi(Fr.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:[wr.Go,wr.Java,wr.Php]},{type:Fr.HeadersCollection,icon:Gi(Fr.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:[wr.Go,wr.Java,wr.JavaScript]},{type:Fr.PayloadCollection,icon:Gi(Fr.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:[wr.Go,wr.JavaScript]}],os=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Gi(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},as="Recommendations",ss="Optimize your observability setup with actionable recommendations.",ls="Recommended",ds="Applied",cs="Dismissed",us="Not applicable",ps={[Sn.Recommended]:ls,[Sn.Applied]:ds,[Sn.Dismissed]:cs,[Sn.NotApplicable]:us},hs="Accept",gs="Dismiss",ms="Restore",fs="Docs",bs="Benefits",ys="Considerations",vs="Apply Recommendation",$s="Apply via UI",Ss="Apply via GitOps",ws="Via UI",xs="Via GitOps",Es="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Cs="There are 2 ways to apply this recommendation.",Ts="Odigos applies the selected change immediately.",Os="Commit the configuration to your repository and let your GitOps controller apply it.",Ns="UI changes apply only to this cluster and will not carry over if you re-install odigos.",As="No recommendations",Is="There are no recommendations for this cluster right now.",ks="This recommendation does not currently apply to your cluster.",Rs="Recommendation dismissed",_s="Recommendation restored",Ds="Recommendation applied successfully",Ls="Failed to apply recommendation",Ps={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.'},Us={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."},Ms={[gr.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gr.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gr.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Fs="Cancel",zs="Save",Bs="Edit rule",Hs="Edit auto rule",js="Create rule",Ws="Delete rule",Xs="Save",Gs="Create your first rule",Vs="No Rules Exist",Ks="No Results",Ys=e=>`No rules match the search term "${e}"`,Js="Rule name",qs="Rule type",Qs="Select the type of condition that makes a trace highly relevant.",Zs="Rule Enabled",el="Rule Disabled",tl="Enabled",rl="Disabled",nl="Note",il="HTTP route",ol="Method",al="Keep Percentage",sl="Keep traces with duration larger than",ll="Keep traces with errors",dl="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",cl="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",ul="Custom percentage",pl="Disabled rule",hl="Sample",gl="Keep all",ml="Drop all",fl="Operation type",bl="HTTP route prefix",yl="Templated path",vl="Templated path prefix",$l="Kafka topic",Sl="Custom duration (ms)",wl="No preview available",xl="Server address",El="Drop at most this percentage of matching traces",Cl="Unnamed rule",Tl="Sampling Preview",Ol="Source Scope",Nl="Unknown source",Al="Operation",Il="Duration",kl="Errors",Rl="Keep Percentage",_l="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Dl="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.",Ll="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Pl="Retain traces with errors from the selected services and operations.",Ul="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Ml="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Fl={highlyRelevant:Ul,noisy:Ml,costReduction:void 0},zl="Type rule name",Bl="Add note here...",Hl="Type here",jl="Search source name",Wl="e.g. collector.my.vendor.com",Xl="Optional notes (not used by the system). Add any context or details for this sampling rule.",Gl="Rule will apply to all sources in the cluster",Vl="If multiple source scopes are set, they must all match simultaneously.",Kl="All sources",Yl="-",Jl="All",ql="Sources",Ql="Namespaces",Zl="Languages",ed="any of",td="AND",rd="All operations",nd="HTTP server endpoint",id="HTTP client endpoint",od="Kafka consumer",ad="Kafka producer",sd="Sampling Rules",ld='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',dd="Refresh",cd="Create rule",ud="Sampling docs",pd="75vw",hd="Delete rule?",gd="Are you sure you want to delete this sampling rule?",md="Delete",fd="Cancel",bd="Kubernetes Health Probes",yd="Keep All Error Traces",vd="Drop Traces Cluster-Wide",$d="A rule with the same matching conditions already exists.",Sd="Create this rule as-is?",wd="This rule still uses the default configuration.\nDo you want to create it anyway?",xd="Rule preview",Ed="Continue editing",Cd="Create 'Noisy Operation Kubernetes Health Probes' rule",Td="Edit 'Noisy Operation Kubernetes Health Probes' rule",Od="Automatically detect and sample health probe traces across the cluster.",Nd="Create 'Highly Relevant Operations' rule",Ad="Edit 'Highly Relevant Operations' rule",Id="Automatically keep all error traces across the entire cluster.",kd="Create 'Cost Reduction' rule",Rd="Edit 'Cost Reduction' rule",_d="Automatically drop a percentage of traces across the entire cluster.",Dd="Skip setup",Ld="Start setup",Pd="Next",Ud="Go to Sampling",Md="Read more",Fd="Welcome to Sampling",zd="Cut costs without losing what matters",Bd="Odigos sampling works in three stages:",Hd="Filter noisy traffic",jd="Remove non-actionable traces like health checks.",Wd="Guarantee highly relevance operations",Xd="Keep traces with errors, high latency, or mission-critical endpoints/services.",Gd="Reduce cost",Vd="Sample routine traffic using percentages.",Kd="Sampling does not drop individual spans - it keeps or drops the entire trace.",Yd="Filter noisy operations",Jd="Cut traces with little or no observability value (health-checks, metric scarping, etc)",qd="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.",Qd="Preset Rules",Zd="Kubernetes Health Probes",ec="Automatically ignore health checks",tc="You can review, adjust, and add additional custom rules later.",rc="Choose your sampling strategy",nc="Pick the approach that best fits your balance of cost vs data-completeness",ic="Keep List",oc="Budget Friendly",ac="Define which traces must be kept, while all others are sampled by default to minimize cost.",sc="Cost-oriented - keeps only what you explicitly select.",lc="Best for very large clusters with high volumes of traces and high costs.",dc="Higher risk of missing important traces without ongoing review.",cc="Drop List",uc="Safe Choice",pc="Define which traces must be aggressively dropped, while all others are kept by default.",hc="Preserves most data unless explicitly filtered.",gc="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",mc="Advanced",fc="Maximum Flexibility",bc="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",yc="'Keep List' profile",vc="Protect important traces",$c="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:",Sc="Traces with errors",wc="Slow requests (duration above threshold)",xc="Mission-Critical endpoints or services",Ec="Services under test or evaluation",Cc="New deployments",Tc="You can review, adjust, and add rules once onboarding is complete.",Oc="Common Rules",Nc="Preset Rules",Ac="Error collection - entire cluster",Ic="Keep all traces with errors",kc="Ambient sampling percentage",Rc="'Drop List' profile",_c="Reduce high-volume traffic",Dc="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Lc="Advanced Configuration",Pc="Configure sampling rules",Uc="Advanced mode allows you to configure all sampling categories:",Mc="Noise Filtering - remove non-actionable traces",Fc="Highly Relevance - guarantee important traces are kept",zc='Cost Control - drop traces for "Normal" operations',Bc="Rules can target:",Hc="Services",jc="HTTP Endpoints",Wc="DB Operations",Xc="Errors",Gc="Latency and more...",Vc="Sampling configured successfully!",Kc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Yc="Odigos will now:",Jc="Filter noisy operations",qc="Guarantee important traces",Qc="Reduce cost using controlled sampling",Zc="Recommended",eu={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."},tu={noisy:Cd,highlyRelevant:Nd,costReduction:kd},ru={noisy:Td,highlyRelevant:Ad,costReduction:Rd},nu={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},iu=[{id:Kr.Logs,value:"Logs"},{id:Kr.Metrics,value:"Metrics"},{id:Kr.Traces,value:"Traces"},{id:Kr.Profiles,value:"Profiles"}],ou=6048e5,au="URL templatization",su="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",lu="Default templatization",du="Custom and default URL templatization scopes across URL templatization actions.",cu="Default templatization is not enabled",uu="Automatically detect and normalize dynamic URL segments when no custom template matches.",pu="Enable for entire cluster",hu="Custom URL templates",gu="Define exact URL patterns and control where each template group applies.",mu="View by:",fu="Groups",bu="Tree",yu="List",vu="Create template group",$u="Edit group",Su="Add template",wu="No custom URL templates",xu="Define exact route patterns for your application. Custom templates are matched before default templatization.",Eu="Create custom template",Cu="Docs",Tu="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Ou="Default templatization is enabled — editor coming next.",Nu="746px",Au="Add default templatization rule",Iu="Edit default templatization rule",ku="UI template rules",Ru="Source Scope",_u="Choose where this rule applies.",Du="This rule will apply to all sources in the cluster.",Lu="Default templatization",Pu="Automatically normalize dynamic URL segments when no custom template matches.",Uu="Enable automatic URL normalization for this scope",Mu="Skip policy",Fu="Advanced",zu="Prevent selected error responses from being normalized by the default heuristic. Custom templates still match first.",Bu="Skip for non-2xx responses",Hu="Skip selected HTTP status codes",ju="Example: 404, 401",Wu="Use comma-separated HTTP status codes between 100 and 599.",Xu="This rule will take effect in the cluster immediately after it is added.",Gu="This rule will take effect in the cluster immediately after it is saved.",Vu="Add rule",Ku="Save",Yu="Cancel",Ju="Enter valid HTTP status codes between 100 and 599, separated by commas.",qu="Create custom template",Qu="UI template rules",Zu="Choose where to add the template",ep="Template group",tp="Entire Cluster",rp="Add the template to an existing group or create a new group with its own scope.",np="This template will apply to all sources in the cluster.",ip="Add to existing template group",op="Add to New template group",ap="Template group will be added to the default action",sp="Advanced Configuration",lp="Search template group by type action name or scope (languages, namespaces, sources)",dp="Selected Template group:",cp="URL templatization action",up="New action name",pp="New action group",hp="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.",gp="Create new template group",mp="Next",fp="Back",bp="Action name",yp="URL Templatization",vp="UI",$p="Templates",Sp="e.g. /api/users/{id}",wp="Language:",xp="Namespace:",Ep="Deployment/",Cp="AND",Tp="Entire cluster",Op="URL template",Np="Template",Ap="Origin",Ip="Display name",kp="Resource name",Rp="Try a URL",_p="/users/12/orders/345685335358",Dp="Test URL",Lp="Close",Pp="Result",Up="Match found",Mp="This URL matches the template.",Fp="No match",zp="This URL doesn't match the template.",Bp="Check the URL structure and parameter positions, then try again.",Hp=Ft()(tr(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Kn.DARK_MODE,storage:"undefined"!=typeof window?rr(()=>localStorage):void 0})),jp={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Xn},Wp=Ft(e=>({...jp,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(jp)}));var Xp;(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"})(Xp||(Xp={}));const Gp=e=>`add-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Vp=e=>`edit-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Kp=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Yp=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Jp=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:Yp})),qp=Ft((e,t)=>({notifications:[],addNotification:r=>{const n=new Date,i=`${n.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Qp;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Qp||(Qp={}));const Zp=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),eh=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),th=Ft((e,t)=>({progress:{},setProgress:(r,n)=>{const i=t(),o=Zp();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:{...i.progress,[r]:eh(o)}})},addProgress:(r,n,i)=>{const o=t(),a=Zp(r,o.progress);return a.current+=n,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...o.progress,[r]:eh(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),rh=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nh={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ih=(e,t)=>e.destinationType.type!==t.destinationType.type,oh=Ft(e=>({...nh,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=>ih(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ih(e,t))})),clearStore:()=>e(()=>({...nh}))})),ah=e=>{function t(){return void 0===e?{}:fi(e)}const[r,n]=Ht(t()),[i,o]=Ht({}),[a,s]=Ht(t()),l=Wt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[n,i]of Object.entries(e)){const e=n;if(Array.isArray(i)){const n=t[e];Array.isArray(n)&&i.length===n.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(r[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const n=l(i,t[e]);Object.keys(n).length>0&&(r[e]=n)}else i!==t[e]&&(r[e]=t[e])}for(const n of Object.keys(t))n in e||(r[n]=t[n]);return r},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Xt(()=>!d(a,r),[a,r]);jt(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(i)&&(n(i),s(i))},[e,r]);const u=Wt((e,t)=>bi("formData"===e?r:i,t.toString()),[r,i]);return{formData:r,formErrors:i,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,r)=>{if(e){const r=e.toString(),i=r.split(".");1===i.length?n(r=>({...r,[e]:t})):n(e=>{const r=fi(e);let n=r;for(let e=0;e<i.length-1;e++){const t=i[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[i[i.length-1]]=t,r}),o(e=>{const t=r,n=i[i.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 r&&n({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const n=fi(e);let i=n;for(let e=0;e<r.length-1;e++){const t=r[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[r[r.length-1]]=t,n})}else r&&o({...r})},resetFormData:e=>{const r=e||t();n(r),s(r),o({})},getNestedValue:u}},sh={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},lh=()=>{const{addNotification:e}=qp(),{formData:t,formErrors:r,handleFormChange:n,handleErrorChange:i,resetFormData:o}=ah(sh);return{formData:t,formErrors:r,handleFormChange:n,resetFormData:o,validateForm:r=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ea(t)&&(n[e]=Yn.FIELD_IS_REQUIRED)}}),t.type===ar.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Yn.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&r?.withAlert&&e({type:Nr.Warning,title:r.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:i,disabled:o,fields:a})=>{const s={...fi(sh),type:e,signals:t,name:r,notes:i,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case lr.LabelsAttributes:case lr.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(r=t)&&Array.isArray(r)?r.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):r;break;case lr.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 lr.CollectContainerAttributes:case lr.CollectReplicaSetAttributes:case lr.CollectWorkloadId:case lr.CollectClusterId:case lr.ClusterAttributes:case lr.OverwriteExistingValues:case lr.AttributeNamesToDelete:case lr.Renames:case lr.PiiCategories:case lr.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var r,n}),n(void 0,void 0,s)}}},dh=e=>{jt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ch=()=>{const e=Gt(null),[t,r]=Ht(0),[n,i]=Ht(0);return jt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();r(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},uh="data-ignore-outside-click",ph=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(uh))return!0;t=t.parentNode}return!1},hh=(e,t)=>{const r=Gt(t);r.current=t,jt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(ph(n)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},gh=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:n="local"}={})=>{const i=Gt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return hh(i,()=>{o&&(a(!1),r?.())}),{popupRef:i,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(r,o)=>{if("local"===n)return void l({top:o,left:r});const{innerWidth:a,innerHeight:s}=window,d=i.current?.clientWidth||t,u=i.current?.clientHeight||e,p=r/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=r;if(g>=s/2&&(g+=-u),"center"===h){m=r-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=r-d);l({top:g,left:m})}}},mh=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"};
|
|
@@ -250,7 +250,7 @@ import{jsxs as e,jsx as t,Fragment as r}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
|
+
`,Sh=({withIcon:n,titleIcon:i,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=Xt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:S,arrowPlacement:w,handlePosition:x}=gh({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),E=Xt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,n]=e.split('"');return{original:e,href:r,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),C=e=>{const{type:t,clientX:r,clientY:n}=e;E?x(S.left||r,S.top||n):x(r,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(r,{children:d});const T=v&&f.length>0;return e(mh,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:C,onMouseMove:C,onMouseLeave:C,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&qt.createPortal(e(fh,{ref:y,$top:S.top,$left:S.left,$withPointerEvents:E,onMouseEnter:E?C:void 0,children:["top"===w.edge&&t(vh,{$align:w.align,children:t($h,{$pointsUp:!0})}),t(bh,{$maxWidth:p,children:e(yh,{children:[(!!i||!!a)&&e(No,{$gap:4,style:{alignItems:"center"},children:[i&&t(i,{size:16},"icon"),a&&t(jn,{size:Mn.XS,children:a},"title")]}),f.map((e,r)=>t(jn,{size:Mn.XXXS,children:e},r)),!!l&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===w.edge&&t(vh,{$align:w.align,children:t($h,{$pointsUp:!1})})]}),document.body)]})};var wh,xh;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(wh||(wh={})),(e=>{e.S="small",e.M="medium",e.L="large"})(xh||(xh={}));const Eh=n.button`
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
justify-content: ${({$align:e})=>e};
|
|
@@ -292,7 +292,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
292
292
|
${({$withShadow:e})=>e?i`
|
|
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===wh.Primary?i`
|
|
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 r}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===wh.Secondary?i`
|
|
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 r}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===wh.Text?i`
|
|
312
312
|
background-color: ${({theme:e})=>t?e.v2.colors.grey[700]:"transparent"};
|
|
313
313
|
&:hover {
|
|
314
314
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
@@ -318,7 +318,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
318
318
|
}
|
|
319
319
|
`:""}
|
|
320
320
|
}
|
|
321
|
-
`,Eh=zt(({"data-id":n,label:i,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=Sh.Primary,size:u=xh.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===xh.L?18:16),E=u===xh.L?Mn.S:Mn.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),I=!(!v&&!A),k=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(Ch,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!i,$isSelected:p,$align:y,...w,disabled:I,onClick:I?void 0:k,children:t(wh,{text:a,withIcon:!s,children:A?t(zo,i?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(r,{children:[l&&t(Io,{$width:"fit-content",children:t(l,{size:C,fill:T})}),i?t(jn,{size:E,weight:500,color:T,nowrap:!0,align:y,children:i}):null,d&&t(Io,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});Eh.displayName=Eh.name;const Th=({onDone:e}={})=>{const[r,n]=Ht(!1),[i,o]=Ht(-1),a=Xt(async(t,i)=>{if(!r){if(n(!0),void 0!==i&&o(i),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)}},[r,e]);return{CopyButton:Xt(({value:e,...n})=>t(Eh,{leftIcon:r?$t:wt,onClick:()=>a(e),variant:Sh.Secondary,size:xh.S,...n}),[r]),isCopied:r,copiedIndex:i,clickCopy:a}},Oh=e=>{const{addNotification:t}=qp(),{formData:r,handleFormChange:n,formErrors:i,handleErrorChange:o,resetFormData:a}=ah(e);return{formData:r,formErrors:i,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let i=!0;return r.name?ta(r.name)?n.name=void 0:(i=!1,n.name=Yn.ILLEGAL_K8S_LABEL):(i=!1,n.name=Yn.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const r={...fi(e),name:t};n(void 0,void 0,r)}}},Nh={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Ah=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:n}=qp(),{formData:i,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=ah(Nh),[d,c]=Ht([]),[u,p]=Ht([]);return jt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:i,initialValue:o,renderCondition:a}=e;if(r===Tr.Dropdown){const e=ii(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:r,title:i,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:i,value:o,renderCondition:a,...ii(n,{})}})).map(e=>{if(r){const t="string"==typeof r?ii(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,r]),jt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),jt(()=>{if(t&&0===da(i.exportedSignals).length){const{logs:e,metrics:r,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return u.forEach(({name:e,value:n,required:i})=>{i&&!n&&(r=!1,t[e]=Yn.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&n({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:n,fields:i})=>{const o={...fi(Nh),type:e,name:t,disabled:r,exportedSignals:n,fields:Object.entries(ii(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},Ih={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[jr.HttpRequest]:null,[jr.HttpResponse]:null,[jr.DbQuery]:null,[jr.Messaging]:null},codeAttributes:{[zr.Column]:null,[zr.FilePath]:null,[zr.Function]:null,[zr.LineNumber]:null,[zr.Namespace]:null,[zr.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hr.Java]:null,[Hr.Golang]:null,[Hr.Php]:null},networkMetrics:null},kh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(Ih);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:i,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...fi(Ih),ruleName:e,notes:t,disabled:n,sourceScopes:i??null,networkMetrics:d??null};o&&(c.payloadCollection={[jr.HttpRequest]:o[jr.HttpRequest]?{}:null,[jr.HttpResponse]:o[jr.HttpResponse]?{}:null,[jr.DbQuery]:o[jr.DbQuery]?{}:null,[jr.Messaging]:o[jr.Messaging]?{}:null}),a&&(c.codeAttributes={[zr.Column]:a[zr.Column]||null,[zr.FilePath]:a[zr.FilePath]||null,[zr.Function]:a[zr.Function]||null,[zr.LineNumber]:a[zr.LineNumber]||null,[zr.Namespace]:a[zr.Namespace]||null,[zr.StackTrace]:a[zr.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hr.Java]:l[Hr.Java]||null,[Hr.Golang]:l[Hr.Golang]||null,[Hr.Php]:l[Hr.Php]||null}),r(void 0,void 0,c)}}},Rh=({active:e,key:t,withAltKey:r,withCtrlKey:n,withShiftKey:i,withMetaKey:o},a)=>(jt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,n,i,o,a]),null),Dh=(e,{axis:t="horizontal",deps:r=[]}={})=>{const[n,i]=Ht(!1),o=e=>{const r="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;i(r)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const r=new ResizeObserver(()=>o(t));return r.observe(t),()=>r.disconnect()},[t,...r]),jt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const r=e.current;!t&&r&&o(r)}),()=>{t=!0}},[t,...r]),n},_h=(e,{behavior:t="smooth",block:r="center",inline:n,delayMs:i=50}={})=>{const o=Gt(null);return jt(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:r,inline:n})},i);return()=>window.clearTimeout(a)},[e,t,r,n,i]),o},Lh=({sectionNames:e,threshold:t=.4})=>{const[r,n]=Ht(e[0]||""),[i,o]=Ht(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return jt(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),jt(()=>{const r=a.current,o=e.map(e=>r[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:i});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,i]),{selectedSection:r,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var Ph,Uh;(e=>{e.Left="left",e.Right="right"})(Ph||(Ph={})),(e=>{e.Top="top",e.Bottom="bottom"})(Uh||(Uh={}));const Mh=({defaultOpen:e=!1,open:t,onOpenChange:r,alignX:n,alignY:i,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),r?.(e)},[s,r]),[p,h]=Ht({x:n||Ph.Left,y:i||Uh.Bottom}),g=Gt(null),m=Gt(!1);jt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||ph(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 r=g.current?.getBoundingClientRect();if(!r)return;const n=o?8:0;b({top:t===Uh.Bottom?o?r.bottom+n:r.top:void 0,bottom:t===Uh.Top?o?window.innerHeight-r.top+n:window.innerHeight-r.bottom:void 0,left:e===Ph.Left?r.left:void 0,right:e===Ph.Right?window.innerWidth-r.right:void 0,width:a?r.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 r={x:n||(e.clientX>window.innerWidth/2?Ph.Right:Ph.Left),y:i||(e.clientY>window.innerHeight/2?Uh.Top:Uh.Bottom)};h(r),y(r.x,r.y)},[c,u,n,i,y]),$=Xt(e=>{e.stopPropagation()},[]);return Vt(()=>{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:$}},Fh=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ii(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),zh={otelServiceName:"",currentStreamName:""},Bh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(zh);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...fi(zh),otelServiceName:e||t.name||""};r(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Hh=new Yt(Jt.locale),jh=[{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"}],Xh=(e,{units:t=2,style:r="long",suffix:n=!0}={})=>{let i=Math.max(0,e);if(i<1e3)return"short"===r?"0s":n?"just now":"0 seconds";const o=[];for(const e of jh){if(o.length===t)break;const n=Math.floor(i/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;i-=n*e.ms,o.push("short"===r?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===r?o.join(""):o.join(" ");return n&&"long"===r?`${a} ago`:a},Wh=(e,t)=>Xh(6e4*Math.max(0,e),t),Gh=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Vh=()=>{const[e,t]=Ht(0);return jt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return Hh.format(Gh(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const r=Gh(e);return Xh(Date.now()-r.getTime(),t)}catch(e){return"-"}},[e])}};var Kh;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Kh||(Kh={}));const Yh=(e,t,r)=>{switch(t){case Kh.Purple:return e.v2.colors.purple[r?"300":"900"];case Kh.Yellow:return e.v2.colors.yellow[r?"300":"1000"];case Kh.Blue:return e.v2.colors.blue[r?"300":"1000"];case Kh.Pink:return e.v2.colors.red[r?"300":"1000"];case Kh.Green:return e.v2.colors.green[r?"300":"900"];case Kh.Loader:return e.v2.colors.grey[r?"600":"800"];default:return e.v2.colors.grey[r?"300":"500"]}},Jh=n.div`
|
|
321
|
+
`,Ch=zt(({"data-id":n,label:i,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=wh.Primary,size:u=xh.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...S},w)=>{const x=o(),E=h||(u===xh.L?18:16),C=u===xh.L?Mn.S:Mn.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),I=!(!v&&!A),k=Wt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(Eh,{ref:w,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!i,$isSelected:p,$align:y,...S,disabled:I,onClick:I?void 0:k,children:t(Sh,{text:a,withIcon:!s,children:A?t(zo,i?{withGradient:!0,titleColor:T,titleSize:C}:{withSpinnerOld:!0}):e(r,{children:[l&&t(Io,{$width:"fit-content",children:t(l,{size:E,fill:T})}),i?t(jn,{size:C,weight:500,color:T,nowrap:!0,align:y,children:i}):null,d&&t(Io,{$width:"fit-content",children:t(d,{size:E,fill:T})})]})})})});Ch.displayName=Ch.name;const Th=({onDone:e}={})=>{const[r,n]=Ht(!1),[i,o]=Ht(-1),a=Wt(async(t,i)=>{if(!r){if(n(!0),void 0!==i&&o(i),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)}},[r,e]);return{CopyButton:Wt(({value:e,...n})=>t(Ch,{leftIcon:r?$t:St,onClick:()=>a(e),variant:wh.Secondary,size:xh.S,...n}),[r]),isCopied:r,copiedIndex:i,clickCopy:a}},Oh=e=>{const{addNotification:t}=qp(),{formData:r,handleFormChange:n,formErrors:i,handleErrorChange:o,resetFormData:a}=ah(e);return{formData:r,formErrors:i,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let i=!0;return r.name?ta(r.name)?n.name=void 0:(i=!1,n.name=Yn.ILLEGAL_K8S_LABEL):(i=!1,n.name=Yn.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const r={...fi(e),name:t};n(void 0,void 0,r)}}},Nh={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Ah=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:n}=qp(),{formData:i,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=ah(Nh),[d,c]=Ht([]),[u,p]=Ht([]);return jt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:i,initialValue:o,renderCondition:a}=e;if(r===Tr.Dropdown){const e=ii(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:r,title:i,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:i,value:o,renderCondition:a,...ii(n,{})}})).map(e=>{if(r){const t="string"==typeof r?ii(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,r]),jt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),jt(()=>{if(t&&0===da(i.exportedSignals).length){const{logs:e,metrics:r,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return u.forEach(({name:e,value:n,required:i})=>{i&&!n&&(r=!1,t[e]=Yn.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&n({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:n,fields:i})=>{const o={...fi(Nh),type:e,name:t,disabled:r,exportedSignals:n,fields:Object.entries(ii(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},Ih={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[jr.HttpRequest]:null,[jr.HttpResponse]:null,[jr.DbQuery]:null,[jr.Messaging]:null},codeAttributes:{[zr.Column]:null,[zr.FilePath]:null,[zr.Function]:null,[zr.LineNumber]:null,[zr.Namespace]:null,[zr.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hr.Java]:null,[Hr.Golang]:null,[Hr.Php]:null},networkMetrics:null},kh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(Ih);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:i,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...fi(Ih),ruleName:e,notes:t,disabled:n,sourceScopes:i??null,networkMetrics:d??null};o&&(c.payloadCollection={[jr.HttpRequest]:o[jr.HttpRequest]?{}:null,[jr.HttpResponse]:o[jr.HttpResponse]?{}:null,[jr.DbQuery]:o[jr.DbQuery]?{}:null,[jr.Messaging]:o[jr.Messaging]?{}:null}),a&&(c.codeAttributes={[zr.Column]:a[zr.Column]||null,[zr.FilePath]:a[zr.FilePath]||null,[zr.Function]:a[zr.Function]||null,[zr.LineNumber]:a[zr.LineNumber]||null,[zr.Namespace]:a[zr.Namespace]||null,[zr.StackTrace]:a[zr.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hr.Java]:l[Hr.Java]||null,[Hr.Golang]:l[Hr.Golang]||null,[Hr.Php]:l[Hr.Php]||null}),r(void 0,void 0,c)}}},Rh=({active:e,key:t,withAltKey:r,withCtrlKey:n,withShiftKey:i,withMetaKey:o},a)=>(jt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,n,i,o,a]),null),_h=(e,{axis:t="horizontal",deps:r=[]}={})=>{const[n,i]=Ht(!1),o=e=>{const r="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;i(r)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const r=new ResizeObserver(()=>o(t));return r.observe(t),()=>r.disconnect()},[t,...r]),jt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const r=e.current;!t&&r&&o(r)}),()=>{t=!0}},[t,...r]),n},Dh=(e,{behavior:t="smooth",block:r="center",inline:n,delayMs:i=50}={})=>{const o=Gt(null);return jt(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:r,inline:n})},i);return()=>window.clearTimeout(a)},[e,t,r,n,i]),o},Lh=({sectionNames:e,threshold:t=.4})=>{const[r,n]=Ht(e[0]||""),[i,o]=Ht(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Wt((e,t)=>{a.current[e]=t},[]),c=Wt(e=>{o(e)},[]),u=Wt(e=>{l.current=!0,n(e)},[]);return jt(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),jt(()=>{const r=a.current,o=e.map(e=>r[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:i});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,i]),{selectedSection:r,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var Ph,Uh;(e=>{e.Left="left",e.Right="right"})(Ph||(Ph={})),(e=>{e.Top="top",e.Bottom="bottom"})(Uh||(Uh={}));const Mh=({defaultOpen:e=!1,open:t,onOpenChange:r,alignX:n,alignY:i,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Wt(e=>{s||d(e),r?.(e)},[s,r]),[p,h]=Ht({x:n||Ph.Left,y:i||Uh.Bottom}),g=Gt(null),m=Gt(!1);jt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||ph(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=Wt((e,t)=>{const r=g.current?.getBoundingClientRect();if(!r)return;const n=o?8:0;b({top:t===Uh.Bottom?o?r.bottom+n:r.top:void 0,bottom:t===Uh.Top?o?window.innerHeight-r.top+n:window.innerHeight-r.bottom:void 0,left:e===Ph.Left?r.left:void 0,right:e===Ph.Right?window.innerWidth-r.right:void 0,width:a?r.width:void 0})},[o,a]),v=Wt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const r={x:n||(e.clientX>window.innerWidth/2?Ph.Right:Ph.Left),y:i||(e.clientY>window.innerHeight/2?Uh.Top:Uh.Bottom)};h(r),y(r.x,r.y)},[c,u,n,i,y]),$=Wt(e=>{e.stopPropagation()},[]);return Vt(()=>{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:$}},Fh=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ii(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),zh={otelServiceName:"",currentStreamName:""},Bh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(zh);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...fi(zh),otelServiceName:e||t.name||""};r(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Hh=new Yt(Jt.locale),jh=[{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"}],Wh=(e,{units:t=2,style:r="long",suffix:n=!0}={})=>{let i=Math.max(0,e);if(i<1e3)return"short"===r?"0s":n?"just now":"0 seconds";const o=[];for(const e of jh){if(o.length===t)break;const n=Math.floor(i/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;i-=n*e.ms,o.push("short"===r?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===r?o.join(""):o.join(" ");return n&&"long"===r?`${a} ago`:a},Xh=(e,t)=>Wh(6e4*Math.max(0,e),t),Gh=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Vh=()=>{const[e,t]=Ht(0);return jt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Wt(e=>{try{return Hh.format(Gh(e))}catch(e){return"-"}},[e]),formatDurationAgo:Wt((e,t)=>{try{const r=Gh(e);return Wh(Date.now()-r.getTime(),t)}catch(e){return"-"}},[e])}};var Kh;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Kh||(Kh={}));const Yh=(e,t,r)=>{switch(t){case Kh.Purple:return e.v2.colors.purple[r?"300":"900"];case Kh.Yellow:return e.v2.colors.yellow[r?"300":"1000"];case Kh.Blue:return e.v2.colors.blue[r?"300":"1000"];case Kh.Pink:return e.v2.colors.red[r?"300":"1000"];case Kh.Green:return e.v2.colors.green[r?"300":"900"];case Kh.Loader:return e.v2.colors.grey[r?"600":"800"];default:return e.v2.colors.grey[r?"300":"500"]}},Jh=n.div`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: center;
|
|
@@ -355,7 +355,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
355
355
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
356
356
|
border-radius: 100px;
|
|
357
357
|
background-color: ${({$backgroundColor:e})=>e};
|
|
358
|
-
`,Zh=({label:r,leftIcon:n,rightIcon:i,tooltip:a,status:s=Nr.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=r?.toString(),b=Nr.Loading===s,y=s?[Nr.Disabled,Nr.Loading].includes(s)?io(m,s,d?"400":"700"):[Nr.Unknown].includes(s)?io(m,s,"600"):io(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Nr.Unknown].includes(s)?y:[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[400]:[Nr.Error,Nr.Warning,Nr.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Nr.Unknown].includes(s)?[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(
|
|
358
|
+
`,Zh=({label:r,leftIcon:n,rightIcon:i,tooltip:a,status:s=Nr.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=r?.toString(),b=Nr.Loading===s,y=s?[Nr.Disabled,Nr.Loading].includes(s)?io(m,s,d?"400":"700"):[Nr.Unknown].includes(s)?io(m,s,"600"):io(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Nr.Unknown].includes(s)?y:[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[400]:[Nr.Error,Nr.Warning,Nr.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Nr.Unknown].includes(s)?[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(Sh,{text:a,fullWidth:g,children:e(Qh,{$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(zo,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(zo,{withGradient:!0,title:f,titleSize:c||Mn.XXS}):t(jn,{color:v,size:c||Mn.XXS,nowrap:!0,children:f}):null,i&&t(i,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},eg=n.div`
|
|
359
359
|
position: relative;
|
|
360
360
|
`,tg=n.div`
|
|
361
361
|
position: fixed;
|
|
@@ -375,7 +375,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
375
375
|
border-radius: 6px;
|
|
376
376
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
377
377
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
378
|
-
`,rg=({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=Mh({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(eg,{ref:h,onMouseDown:m,children:[t(
|
|
378
|
+
`,rg=({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=Mh({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(eg,{ref:h,onMouseDown:m,children:[t(Ch,{label:"Open",variant:wh.Secondary,size:xh.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Qt(t(tg,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},ng={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"}},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"}},ig={v2:ng.v2,darkMode:!0,colors:{...ng.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:ng.font_family},og={v2:ng.v2,darkMode:!1,colors:{...ng.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:ng.font_family},ag=e=>e?ig:og,sg=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:ng,darkModeTheme:ig,getTheme:ag,lightModeTheme:og},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 lg=({children:e})=>{const{darkMode:r}=Hp();return t(s,{theme:ag(r),children:e})},dg={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"},cg=Object.freeze(Object.defineProperty({__proto__:null,hex:dg},Symbol.toStringTag,{value:"Module"})),ug={in:{left:a`
|
|
379
379
|
from { transform: translateX(-100%); }
|
|
380
380
|
to { transform: translateX(0); }
|
|
381
381
|
`,right:a`
|
|
@@ -484,11 +484,11 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
484
484
|
background-color: ${o.v2.colors.silver[600]};
|
|
485
485
|
}
|
|
486
486
|
`}
|
|
487
|
-
`,
|
|
487
|
+
`,Sg=n.div`
|
|
488
488
|
display: flex;
|
|
489
489
|
align-items: stretch;
|
|
490
490
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
-
`,
|
|
491
|
+
`,wg=n.button`
|
|
492
492
|
display: flex;
|
|
493
493
|
height: 34px;
|
|
494
494
|
padding: 8px 12px 8px 16px;
|
|
@@ -507,7 +507,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
507
507
|
&:hover {
|
|
508
508
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
509
509
|
}
|
|
510
|
-
`,xg=({"data-id":n,size:i=bg.S,variant:a=yg.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===yg.Underline,g=h?
|
|
510
|
+
`,xg=({"data-id":n,size:i=bg.S,variant:a=yg.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===yg.Underline,g=h?wg:$g;return t(h?Sg:vg,{"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 S=0===$,w=$===s.length-1,x=l===n,E=v||c,C=E?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=i===bg.S?Mn.XXS:Mn.XS,O=x?500:400,N=e(r,{children:[a&&t(a,{fill:C}),o&&t(jn,{size:T,weight:O,color:C,nowrap:!0,children:o}),u&&t(Zh,{...u})]});return t(g,{onClick:()=>!E&&d(n),$isFirstOption:S,$isLastOption:w,$isFirstAndLastOption:S&&w,$disabled:E,$isSelected:x,$size:i,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(Sh,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},Eg=n.div`
|
|
511
511
|
box-sizing: border-box !important;
|
|
512
512
|
width: ${({$width:e})=>e??"fit-content"};
|
|
513
513
|
flex-shrink: ${({$width:e})=>e?0:1};
|
|
@@ -523,7 +523,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
523
523
|
border: none;
|
|
524
524
|
border-radius: 6px;
|
|
525
525
|
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:n,theme:i})=>{const o=r??i.v2.colors.silver[800],a=n??i.v2.colors.silver[700];return e||t?a:o}};
|
|
526
|
-
`,
|
|
526
|
+
`,Cg=n.input`
|
|
527
527
|
min-width: 0;
|
|
528
528
|
flex: 1;
|
|
529
529
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -540,7 +540,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
540
540
|
overflow: hidden;
|
|
541
541
|
text-overflow: ellipsis;
|
|
542
542
|
white-space: nowrap;
|
|
543
|
-
`,Tg=({"data-id":r,value:n,onChange:i,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],
|
|
543
|
+
`,Tg=({"data-id":r,value:n,onChange:i,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],S=!!c?.options?.length,w=Xt(()=>{if(S)return c?.options.find(e=>e.value===c.selected)?.label},[S,c?.options,c?.selected]),x=Xt(()=>l||(S&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,S,w]);return e(Eg,{$width:d,$withSegment:S,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(wt,{size:18,fill:$}),t(Cg,{"data-id":r??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),i(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:$}),S&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(xg,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},Og=n.div`
|
|
544
544
|
display: flex;
|
|
545
545
|
align-items: center;
|
|
546
546
|
justify-content: center;
|
|
@@ -549,7 +549,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
549
549
|
padding: 8px;
|
|
550
550
|
border-radius: 100%;
|
|
551
551
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
552
|
-
`,Ng=({icon:r=xt,hideIcon:n=!1,title:i="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Ao,{$gap:12,$alignItems:"center",children:[!n&&t(Og,{children:t(r,{size:32,fill:d})}),e(Ao,{$gap:4,$alignItems:"center",children:[t(jn,{size:Mn.S,align:"center",children:i}),a&&t(jn,{size:Mn.XXS,align:"center",color:d,children:a})]}),s&&t(
|
|
552
|
+
`,Ng=({icon:r=xt,hideIcon:n=!1,title:i="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Ao,{$gap:12,$alignItems:"center",children:[!n&&t(Og,{children:t(r,{size:32,fill:d})}),e(Ao,{$gap:4,$alignItems:"center",children:[t(jn,{size:Mn.S,align:"center",children:i}),a&&t(jn,{size:Mn.XXS,align:"center",color:d,children:a})]}),s&&t(Ch,{variant:wh.Secondary,...s}),l]})},Ag=n.span`
|
|
553
553
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
554
554
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
555
555
|
font-weight: 400;
|
|
@@ -559,26 +559,26 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
559
559
|
font-size: 14px;
|
|
560
560
|
font-weight: 400;
|
|
561
561
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
562
|
-
`,kg=({label:r,tooltip:n,required:i,badge:o,width:a,smallAndDark:s})=>r||n||i?e(No,{$width:a,$justifyContent:"space-between",children:[r&&t(Ag,{$smallAndDark:s,children:r}),e(No,{$gap:4,children:[o&&t(Zh,{...o,textSize:Mn.XXXS}),i&&t(Ig,{children:"*"}),n&&t(
|
|
562
|
+
`,kg=({label:r,tooltip:n,required:i,badge:o,width:a,smallAndDark:s})=>r||n||i?e(No,{$width:a,$justifyContent:"space-between",children:[r&&t(Ag,{$smallAndDark:s,children:r}),e(No,{$gap:4,children:[o&&t(Zh,{...o,textSize:Mn.XXXS}),i&&t(Ig,{children:"*"}),n&&t(Sh,{text:n,withIcon:!0})]})]}):null,Rg=({errorMessage:r,warnMessage:n,helpMessage:i})=>{const a=o(),s=r?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(it,{size:12,fill:s});return r||n||i?e(No,{$alignItems:"center",children:[l&&t(Ao,{children:l}),t(jn,{size:Mn.XXXS,weight:400,color:s,children:r||n||i})]}):null};var _g;(e=>{e.S="small",e.L="large"})(_g||(_g={}));const Dg=n.div`
|
|
563
563
|
width: fit-content;
|
|
564
564
|
display: flex;
|
|
565
565
|
align-items: center;
|
|
566
566
|
gap: 8px;
|
|
567
567
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
568
568
|
`,Lg=n.div`
|
|
569
|
-
width: ${({$size:e})=>e===
|
|
570
|
-
height: ${({$size:e})=>e===
|
|
569
|
+
width: ${({$size:e})=>e===_g.S?"16px":"20px"};
|
|
570
|
+
height: ${({$size:e})=>e===_g.S?"16px":"20px"};
|
|
571
571
|
display: flex;
|
|
572
572
|
align-items: center;
|
|
573
573
|
justify-content: center;
|
|
574
574
|
border-radius: 4px;
|
|
575
575
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
576
576
|
background-color: ${({$backgroundColor:e})=>e};
|
|
577
|
-
`,Pg=({name:r,label:n,tooltip:i,badge:a,size:s=
|
|
577
|
+
`,Pg=({name:r,label:n,tooltip:i,badge:a,size:s=_g.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===_g.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],w=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(Dg,{"data-id":r||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(Lg,{$size:s,$borderColor:S,$backgroundColor:w,children:d?t(Et,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(jn,{size:s===_g.S?Mn.XXS:Mn.XS,nowrap:!0,children:n})]}),t(kg,{tooltip:i,badge:a})]}),t(Rg,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Ug=n.div`
|
|
578
578
|
display: flex;
|
|
579
579
|
flex-direction: ${({$direction:e})=>e===fr.Horizontal?"row":"column"};
|
|
580
580
|
gap: ${({$direction:e})=>e===fr.Horizontal?16:8}px;
|
|
581
|
-
`,Mg=({direction:r=fr.Vertical,title:n,size:i,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=i===
|
|
581
|
+
`,Mg=({direction:r=fr.Vertical,title:n,size:i,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=i===_g.S?Mn.XXS:Mn.XS,u=Xt(()=>s.every(e=>l[e.id]),[s,l]),p=Xt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(r=>{const n={...r};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(Ug,{$direction:r,children:[n&&a?t(Pg,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:i}):n&&!a?t(jn,{size:c,children:n}):null,s.map(e=>t(Pg,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:i},`${n}-checkbox-${e.id}`))]})},Fg=n.div`
|
|
582
582
|
position: relative;
|
|
583
583
|
display: flex;
|
|
584
584
|
flex-direction: column;
|
|
@@ -631,13 +631,13 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
631
631
|
gap: 8px;
|
|
632
632
|
flex: 1;
|
|
633
633
|
min-width: 0;
|
|
634
|
-
`,
|
|
634
|
+
`,Wg=n.div`
|
|
635
635
|
flex: 0 1 auto;
|
|
636
636
|
min-width: 0;
|
|
637
637
|
overflow: hidden;
|
|
638
638
|
text-overflow: ellipsis;
|
|
639
639
|
white-space: nowrap;
|
|
640
|
-
`,
|
|
640
|
+
`,Xg=n.span`
|
|
641
641
|
flex-shrink: 0;
|
|
642
642
|
width: 88px;
|
|
643
643
|
display: inline-flex;
|
|
@@ -651,7 +651,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
651
651
|
display: inline-flex;
|
|
652
652
|
align-items: center;
|
|
653
653
|
gap: 4px;
|
|
654
|
-
`,Vg=({defaultOpen:r,open:n,onOpenChange:i,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
|
|
654
|
+
`,Vg=({defaultOpen:r,open:n,onOpenChange:i,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 S=o(),w=!!f||!!b||!!$,{isOpen:x,setIsOpen:E,coords:C,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=Mh({defaultOpen:r??!w,open:n,onOpenChange:i,alignX:a,alignY:s,withOffset:w,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),w&&!p&&E(!1)},[I,k]=Ht(""),R=Xt(()=>I?l.filter(e=>e?.label?.toLowerCase().includes(I.toLowerCase())):l,[l.length,I]),{onClick:_,onMouseDown:D,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(Fg,{ref:T,onMouseDown:N,children:[u&&t(kg,{label:u}),f&&t(Ch,{...L,fullWidth:g,rightIcon:x?Ct:Tt,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(Ch,{variant:wh.Text,size:xh.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Ct:Tt,handleClick:O}):$,x&&Qt(e(zg,{$coords:C,"data-ignore-outside-click":"true",children:[h&&t(Tg,{value:I,onChange:k,width:"100%"}),y?t(zo,{withSpinner:!0,title:"Loading...",titleSize:Mn.XS}):R.length?t(Bg,{$maxHeight:m,children:R.map(r=>{if(!r)return null;const{id:n,label:i,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=r,c=d.includes(n);return e(Hg,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${i} — ${l}`:i,children:[a&&t(Pg,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:r.color||S.v2.colors.white[500]}),s&&t(Xg,{children:t(jn,{size:Mn.XXS,nowrap:!0,color:Fn.Secondary,children:s})}),e(jg,{children:[t(Wg,{children:t(jn,{size:Mn.XS,nowrap:!0,color:r.color||Fn.Primary,children:i})}),l&&e(Gg,{children:[t(He,{size:12,fill:S.v2.colors.silver[200]}),t(jn,{size:Mn.XS,nowrap:!0,color:Fn.Secondary,children:l})]})]})]},n)})}):t(Oo,{$padding:"6px 0",children:t(Ng,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!R.length&&t(Ch,{label:"Done",onClick:()=>E(!1)})]}),document.body)]})};var Kg;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Kg||(Kg={}));const Yg=({onAnyClick:e,actions:r})=>t(No,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Kg.Button:return t(Ch,{...r.buttonProps,onClick:t=>{r.buttonProps?.onClick?.(t),e?.()}},r.id);case Kg.DropDataButton:{const{onClick:n,...i}=r.buttonProps??{};return t(Vg,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:i},r.id)}case Kg.PopupButton:return t(rg,{buttonProps:{label:"Open",variant:wh.Secondary,...r.buttonProps},...r.popupProps},r.id);default:return null}})}),Jg=n(No)`
|
|
655
655
|
min-width: 0;
|
|
656
656
|
`,qg=n.div`
|
|
657
657
|
display: flex;
|
|
@@ -665,7 +665,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
665
665
|
flex: 1;
|
|
666
666
|
min-width: 0;
|
|
667
667
|
overflow: hidden;
|
|
668
|
-
`,Zg=({icon:r,iconWithWrapper:n=!1,title:i,titleSize:o=Mn.S,titleColor:a=Fn.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Mn.XXS,subTitleColor:u=Fn.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=Th();return e(Jg,{$gap:d?8:6,$alignItems:y,children:[r&&(n||d?t(qg,{children:t(r,{size:24})}):t(r,{size:24})),i||m||d?e(Qg,{$gap:b,children:[i||m?e(No,{$gap:6,$alignItems:"center",$wrap:"wrap",$width:"100%",children:[i&&t(jn,{size:o,color:a,nowrap:!s,children:i}),l&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:l}),g&&i&&t($,{value:i}),h&&t(
|
|
668
|
+
`,Zg=({icon:r,iconWithWrapper:n=!1,title:i,titleSize:o=Mn.S,titleColor:a=Fn.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Mn.XXS,subTitleColor:u=Fn.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=Th();return e(Jg,{$gap:d?8:6,$alignItems:y,children:[r&&(n||d?t(qg,{children:t(r,{size:24})}):t(r,{size:24})),i||m||d?e(Qg,{$gap:b,children:[i||m?e(No,{$gap:6,$alignItems:"center",$wrap:"wrap",$width:"100%",children:[i&&t(jn,{size:o,color:a,nowrap:!s,children:i}),l&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:l}),g&&i&&t($,{value:i}),h&&t(Sh,{text:h,withIcon:!0}),m&&t(Zh,{...m})]}):null,d&&t(jn,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(No,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},em=({children:e,fullText:r,fullWidth:n=!0,...i})=>{const o=Gt(null),a=!!i.maxLines&&i.maxLines>0,s=_h(o,{axis:a?"vertical":"horizontal",deps:[e]})?r??(null==e?"":String(e)):"";return t(Sh,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(jn,{ref:o,...i,children:e})})},tm=n.section`
|
|
669
669
|
display: flex;
|
|
670
670
|
flex-direction: column;
|
|
671
671
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -712,7 +712,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
712
712
|
flex-direction: column;
|
|
713
713
|
gap: 4px;
|
|
714
714
|
min-width: 0;
|
|
715
|
-
`,am=({item:r,cellsPerRow:n})=>{const{CopyButton:i}=Th(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=r;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(om,{$cellsPerRow:n,children:[!!a&&t(
|
|
715
|
+
`,am=({item:r,cellsPerRow:n})=>{const{CopyButton:i}=Th(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=r;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(om,{$cellsPerRow:n,children:[!!a&&t(Sh,{text:s,children:t(em,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:a})}),e(No,{$gap:4,children:[u&&t(Zh,{...u}),p&&t(qh,{...p}),c&&t(i,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(Sh,{text:d,children:t(em,{size:Mn.XS,nowrap:!0,children:l})})]})]})},sm=({bgTint:r="900",width:n,fullHeight:i=!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),S=()=>$(e=>!e),w=!l||l&&v,x=!!u.length,E=!!p.length,C=!!c.length;return e(tm,{$width:n,$bgTint:r,$fullHeight:i,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||C||l)&&e(rm,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:e=>{l&&e.target.closest("section")&&S()},children:[s?t(Zg,{...s}):t("div",{}),e(nm,{$gap:12,children:[h,x&&w&&t(Yg,{actions:u}),C&&t(No,{$gap:8,children:c.map((e,t)=>Kt(Zh,{...e,key:e.key||`${e.label}-${t}`}))}),(E||l)&&e(No,{$gap:2,children:[E&&t(Vg,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(Ch,{variant:wh.Text,size:xh.S,leftIcon:v?Ct:Tt,onClick:S})]})]})]}),w&&m?t(im,{children:m.map(e=>t(am,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,w&&f]})};var lm;(e=>{e.S="small",e.M="medium"})(lm||(lm={}));const dm=n(No)`
|
|
716
716
|
flex: 1;
|
|
717
717
|
min-width: 0;
|
|
718
718
|
align-items: center;
|
|
@@ -735,7 +735,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
735
735
|
border-radius: 16px;
|
|
736
736
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:r})=>t??(r?"transparent":e.v2.colors.silver[1e3])};
|
|
737
737
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
738
|
-
`,hm=zt(({id:r,size:n=lm.M,fullHeight:i=!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===lm.S?4:16,b="number"==typeof h?h:n===lm.S?12:16,y=a??(o?t(Zg,{...o}):null),v=l??(s?t(Tg,{...s}):null),$=!!v||!!d,
|
|
738
|
+
`,hm=zt(({id:r,size:n=lm.M,fullHeight:i=!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===lm.S?4:16,b="number"==typeof h?h:n===lm.S?12:16,y=a??(o?t(Zg,{...o}):null),v=l??(s?t(Tg,{...s}):null),$=!!v||!!d,S=!!c&&c.length>0;return e(pm,{ref:m,id:r,"data-section-name":r,$padding:b,$gap:f,$fullHeight:i,$backgroundColor:p,$bordered:g,children:[y||$||S?e(No,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(dm,{$gap:f,children:[y?t(cm,{children:y}):null,v,d]}):null,S&&t(Yg,{actions:c??[]})]}):null,t(um,{$fullHeight:i,children:u})]})});hm.displayName="SectionCard";const gm=n.div`
|
|
739
739
|
flex: 1;
|
|
740
740
|
align-self: stretch;
|
|
741
741
|
display: flex;
|
|
@@ -792,13 +792,13 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
792
792
|
outline-offset: 1px;
|
|
793
793
|
}
|
|
794
794
|
`}
|
|
795
|
-
`,
|
|
795
|
+
`,Sm=n.div`
|
|
796
796
|
flex: 1;
|
|
797
797
|
min-width: 0;
|
|
798
798
|
display: flex;
|
|
799
799
|
align-items: center;
|
|
800
800
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
801
|
-
`,
|
|
801
|
+
`,wm=n.span`
|
|
802
802
|
flex-shrink: 0;
|
|
803
803
|
width: 1px;
|
|
804
804
|
align-self: stretch;
|
|
@@ -810,7 +810,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
810
810
|
justify-content: flex-start;
|
|
811
811
|
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
812
812
|
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
813
|
-
`,
|
|
813
|
+
`,Em=n.input`
|
|
814
814
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
815
815
|
width: ${({$width:e})=>e||"unset"};
|
|
816
816
|
|
|
@@ -848,12 +848,12 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
848
848
|
pointer-events: none;
|
|
849
849
|
user-select: none;
|
|
850
850
|
}
|
|
851
|
-
`,
|
|
851
|
+
`,Cm=n.div`
|
|
852
852
|
display: flex;
|
|
853
853
|
align-items: center;
|
|
854
854
|
justify-content: center;
|
|
855
855
|
cursor: pointer;
|
|
856
|
-
`,Tm=({label:n,required:i,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,errorMessage:p,warnMessage:h,helpMessage:g,type:m=Or.Text,name:f,value:b,onChange:y,disabled:v,maxWidth:$,width:
|
|
856
|
+
`,Tm=({label:n,required:i,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,errorMessage:p,warnMessage:h,helpMessage:g,type:m=Or.Text,name:f,value:b,onChange:y,disabled:v,maxWidth:$,width:S,small:w=!1,onClick:x,...E})=>{const C=o(),T=m===Or.Password,O=m===Or.Number||m===Or.Decimal,[N,A]=Ht(!1),[I,k]=Ht(null),R=e=>{e.stopPropagation();const t=e.target.value;if(m===Or.Number||m===Or.Decimal){const r=m===Or.Number?pa(t):ua(t),n=null!=E.min?Number(E.min):void 0,i=null!=E.max?Number(E.max):void 0,o=m===Or.Decimal&&r.endsWith(".");let a=r,s=!1;if(r&&!o){const e=parseFloat(r);isNaN(e)||(null!=i&&e>i?(a=String(i),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,k(t&&t!==r?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=i?`between ${n} and ${i}`:null!=i?`at most ${i}`:`at least ${n}`):null)}y?.(e)},_=e=>{["Enter"].includes(e.key)||e.stopPropagation()},D=u||!!p||!!I,L=b?C.v2.colors.white[500]:v?C.v2.colors.grey[400]:C.v2.colors.silver[200],P=w?14:18,U=Gt(null),M=_h(U,{deps:[b]}),F=E.readOnly&&M&&null!=b&&""!==b?String(b):"",z=!!c&&!T;return e(Ao,{$width:S,$gap:6,children:[t(kg,{label:n,tooltip:a,required:i,badge:s}),t($m,{$small:w,$disabled:v,$readOnly:!!E.readOnly,$error:D,$clickable:!!x&&!v,$hasSuffix:z,onClick:v||!x&&!z?void 0:e=>{v||(z&&!E.readOnly&&U.current?.focus(),x?.(e))},children:z?e(r,{children:[t(Sm,{$small:w,children:t(Sh,{text:F,fullWidth:!0,keepAlive:!0,children:t(Em,{"data-id":f,type:O?Or.Text:m,name:f,value:b,onChange:R,onKeyDown:_,disabled:v,$maxWidth:$,$width:"100%",$small:w,$tabular:O,...E,ref:U})})}),t(wm,{$disabled:v,$error:D}),t(xm,{$small:w,"aria-hidden":"true",children:t(jn,{size:Mn.XXXS,color:v?Fn.Disable:Fn.Secondary,nowrap:!0,children:c})})]}):e(Sh,{text:F,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:P,fill:L}):null,t(Em,{"data-id":f,type:N||O?Or.Text:m,name:f,value:b,onChange:R,onKeyDown:_,disabled:v,$maxWidth:$,$width:S,$small:w,$tabular:O,...E,ref:U}),T?t(Cm,{onClick:()=>A(e=>!e),children:t(N?Nt:At,{size:P,fill:L})}):d?t(d,{size:P,fill:L}):null]})}),t(Rg,{errorMessage:I||p,warnMessage:h,helpMessage:g})]})},Om=e=>{const{"data-id":r,options:n,placeholder:i="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Xt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Xt(()=>{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=Xt(()=>{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=Wt(()=>{d(""),u(!0)},[]),b=Wt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Wt(e=>{u(e),e||d("")},[]),v=Wt(t=>{if(s)return void e.onSelect(t);const r=n.find(e=>e.id===t[0]);r&&(e.onSelect(r),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(Vg,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:Uh.Bottom,children:t(Tm,{name:r,leftIcon:wt,placeholder:i,value:g,onChange:b,onFocus:f,disabled:a})})},Nm=n.button`
|
|
857
857
|
width: 100%;
|
|
858
858
|
padding: 0;
|
|
859
859
|
padding-right: 12px;
|
|
@@ -891,7 +891,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
891
891
|
justify-content: space-between;
|
|
892
892
|
align-items: center;
|
|
893
893
|
gap: 8px;
|
|
894
|
-
`,km=({label:r,icon:n,loading:i,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(Nm,{$hovered:s,type:"button",disabled:o||i,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Am,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(Im,{$hasIcon:!!n,children:[i?t(zo,{withGradient:!0,titleSize:Mn.S}):t(jn,{variant:Un.Span,align:"center",children:r}),t(It,{rotate:90,size:24})]})]})},Rm=({buttons:e})=>t(Ao,{$gap:12,children:e.map((e,r)=>t(km,{...e},`${e.label}-${r}`))});var
|
|
894
|
+
`,km=({label:r,icon:n,loading:i,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(Nm,{$hovered:s,type:"button",disabled:o||i,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Am,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(Im,{$hasIcon:!!n,children:[i?t(zo,{withGradient:!0,titleSize:Mn.S}):t(jn,{variant:Un.Span,align:"center",children:r}),t(It,{rotate:90,size:24})]})]})},Rm=({buttons:e})=>t(Ao,{$gap:12,children:e.map((e,r)=>t(km,{...e},`${e.label}-${r}`))});var _m;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(_m||(_m={}));const Dm=n.div`
|
|
895
895
|
display: flex;
|
|
896
896
|
align-items: flex-end;
|
|
897
897
|
justify-content: space-between;
|
|
@@ -924,7 +924,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
924
924
|
height: 9px;
|
|
925
925
|
border-radius: 50%;
|
|
926
926
|
background-color: ${({$color:e})=>e};
|
|
927
|
-
`,Fm=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:""}},zm=(e,t,r,n)=>{const i=n*Math.PI/180;return{x:e+r*Math.cos(i),y:t-r*Math.sin(i)}},Bm=(e,t,r,n,i)=>{const o=zm(e,t,r,n),a=zm(e,t,r,i),s=n>i?1:0,l=Math.abs(n-i)>180?1:0;return`M ${o.x} ${o.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},Hm=({variant:r=
|
|
927
|
+
`,Fm=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:""}},zm=(e,t,r,n)=>{const i=n*Math.PI/180;return{x:e+r*Math.cos(i),y:t-r*Math.sin(i)}},Bm=(e,t,r,n,i)=>{const o=zm(e,t,r,n),a=zm(e,t,r,i),s=n>i?1:0,l=Math.abs(n-i)>180?1:0;return`M ${o.x} ${o.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},Hm=({variant:r=_m.CurrentOfMax,gaugeWidth:n,title:i,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Fm(a),{number:g}=Fm(s),{number:m,prefix:f,suffix:b}=Fm(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,S=v>0?Bm(60,60,55,180,$):null,w=v<1?Bm(60,60,55,$,0):null,x=zm(60,60,55,180),E=zm(60,60,55,0),C=c??(r===_m.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(r===_m.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,I=r===_m.GoodAgainstBad?Math.max(g-m,0):g,k="primary"===O?d:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",_=()=>N("primary"),D=()=>N("secondary"),L=()=>N(null);var P;return e(Dm,{children:[e(Lm,{$width:n,children:[t(Sh,{keepAlive:!0,fullWidth:!0,title:k,text:R,children:e(Pm,{viewBox:"0 0 120 65",role:"img","aria-label":`${i}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:C,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:_,onMouseLeave:L}),w&&t("path",{d:w,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:C,onMouseEnter:_,onMouseLeave:L}),v<1&&t("circle",{cx:E.x,cy:E.y,r:5,fill:T,onMouseEnter:D,onMouseLeave:L})]})}),i&&e(Um,{children:[t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],align:"center",children:i}),t(jn,{size:Mn.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Ao,{$gap:7,children:[e(No,{$gap:8,$alignItems:"center",children:[t(Mm,{$color:C}),t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(No,{$gap:8,$alignItems:"center",children:[t(Mm,{$color:T}),t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},jm=n(No)`
|
|
928
928
|
width: 100%;
|
|
929
929
|
padding: 8px 12px;
|
|
930
930
|
border-radius: 6px;
|
|
@@ -933,13 +933,13 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
933
933
|
align-items: center;
|
|
934
934
|
justify-content: space-between;
|
|
935
935
|
gap: 12px;
|
|
936
|
-
`,
|
|
936
|
+
`,Wm=n.div`
|
|
937
937
|
position: relative;
|
|
938
938
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
939
939
|
display: flex;
|
|
940
940
|
align-items: center;
|
|
941
941
|
gap: 4px;
|
|
942
|
-
`,
|
|
942
|
+
`,Xm=n.pre`
|
|
943
943
|
flex: 1;
|
|
944
944
|
margin: 0;
|
|
945
945
|
padding: 0;
|
|
@@ -950,7 +950,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
950
950
|
flex-shrink: 0;
|
|
951
951
|
font-size: 14px;
|
|
952
952
|
color: #5ffb98; // TODO: add to theme
|
|
953
|
-
`,Vm=({bgTint:r,label:n,value:i,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=Th({onDone:a}),l=Gt(null),[d,c]=Ht(!1);return jt(()=>{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()}},[i]),e(Ao,{$gap:4,children:[n&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:n}),e(jm,{$bgTint:r,children:[e(
|
|
953
|
+
`,Vm=({bgTint:r,label:n,value:i,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=Th({onDone:a}),l=Gt(null),[d,c]=Ht(!1);return jt(()=>{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()}},[i]),e(Ao,{$gap:4,children:[n&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:n}),e(jm,{$bgTint:r,children:[e(Wm,{$hideCopy:o,children:[t(Xm,{ref:l,children:i}),d&&t(Gm,{children:"..."})]}),!o&&t(s,{value:i})]})]})},Km=n(No)`
|
|
954
954
|
gap: 0;
|
|
955
955
|
`,Ym=n.button`
|
|
956
956
|
padding: 4px 8px;
|
|
@@ -985,7 +985,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
985
985
|
/* Fallback for older browsers */
|
|
986
986
|
-ms-word-break: break-all;
|
|
987
987
|
font-size: 12px;
|
|
988
|
-
`,rf=({language:e,code:r,theme:n,flatten:i,pretty:a})=>{const{darkMode:s}=o(),l=n?er[n]:s?er.palenight:er.vsLight;let d="";if("json"===e){const e=ii(r,{}),t=
|
|
988
|
+
`,rf=({language:e,code:r,theme:n,flatten:i,pretty:a})=>{const{darkMode:s}=o(),l=n?er[n]:s?er.palenight:er.vsLight;let d="";if("json"===e){const e=ii(r,{}),t=_a(e);d=Da(i?Ei(t):t)}else d=r;return a&&"json"===e?t(nf,{darkMode:s,str:d}):t(Zt,{theme:l||(s?er.palenight:er.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:r,tokens:n})=>t("pre",{children:n.map((n,i)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(tf,{...r({token:e})},`line-${i}-token-${n}`))},`line-${i}`))})})},nf=({darkMode:r,str:n})=>{const i=o(),a=(r,n)=>{const o=new Array(r).fill(r=>e(Zm,{...r,children:[t(ef,{}),t(ef,{})]}));return t(Bt,{children:o.map((e,r)=>t(e,{style:0===r?{borderBottom:`1px solid ${i.colors.border}`}:{}},`empty-row-${n}-${r}`))})};return t(Zt,{theme:r?er.palenight:er.vsLight,language:"json",code:n,children:({getLineProps:r,getTokenProps:n,tokens:o})=>t(qm,{children:t(Qm,{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 r=[...e],n=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(n.split("@")[0])&&(r[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:n}})})(o),d=r({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Bt,{children:[a(2,s),e(Zm,{...d,children:[t(ef,{children:t(jn,{nowrap:!0,children:l[0].content})}),t(ef,{})]})]},`line-${s}`):2===l.length?t(Zm,{...d,children:l.map((r,o)=>{const{text:a,components:l}=((e,r)=>{const[n,...i]=e.split("@");return{text:n,components:i?.map((e,n)=>{if(!e.includes("="))return null;const[i,o]=e.split("=");switch(i){case"tooltip":return t(Sh,{withIcon:!0,text:o},`${i}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${i}-${o}-${n}`);let e=Bo(o,r);return e||(e=Bo(Nr.Warning,r)),t(e,{},`${i}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,i),d=0===o;return t(ef,{children:e(No,{children:[t(No,{children:l}),t(tf,{$noWrap:d,...n({token:r}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},of=n.div`
|
|
989
989
|
display: flex;
|
|
990
990
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
991
991
|
gap: 8px;
|
|
@@ -1034,7 +1034,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1034
1034
|
flex-shrink: 0;
|
|
1035
1035
|
width: 24px;
|
|
1036
1036
|
height: 24px;
|
|
1037
|
-
`,cf=({status:r,title:n,subTitle:i,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=Bo(r,y),$=p?u?
|
|
1037
|
+
`,cf=({status:r,title:n,subTitle:i,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=Bo(r,y),$=p?u?Ct:Tt:void 0,S=r===Nr.Unknown,w=r===Nr.Disabled,x=r===Nr.Loading||d,E=[Nr.Error,Nr.Warning,Nr.Success].includes(r),C=io(y,r,w?h?"400":"700":S?"600":h?"300":"500"),T=w?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:E?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!S?C:T,N=!h||S||w?"rgba(0, 0, 0, 0.13)":io(y,r,"800"),A=w?y.v2.colors.grey[900]:h||S?y.v2.colors.silver[800]:C,I=w?y.v2.colors.grey[800]:h||S?y.v2.colors.silver[700]:io(y,r,"600");return e(of,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:b,onClick:p,children:[!g&&t(af,{$backgroundColor:N,$slim:b,children:x?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(sf,{$gap:4,$justifyContent:"center",$slim:b,children:[e(No,{$gap:10,$alignItems:"center",children:[t(jn,{size:b?Mn.XS:Mn.S,weight:500,color:O,children:n}),l&&t(Zh,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Mn.XXXS})]}),i&&t(jn,{size:Mn.XXXS,color:T,children:i}),a]}),(!!c?.length||s)&&e(lf,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(No,{$gap:8,children:c.map(e=>t(Ch,{...e,variant:wh.Secondary,size:xh.S},e["data-id"]??e.label))}),s]}),$&&t(df,{children:t($,{size:24,fill:T})})]})},uf=n.div`
|
|
1038
1038
|
display: flex;
|
|
1039
1039
|
flex-direction: column;
|
|
1040
1040
|
width: 100%;
|
|
@@ -1057,17 +1057,17 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1057
1057
|
flex-shrink: 0;
|
|
1058
1058
|
width: 18px;
|
|
1059
1059
|
height: 18px;
|
|
1060
|
-
`,mf=({conditions:r,title:n,subTitle:i})=>{const a=o(),[s,l]=Ht(!1),d=
|
|
1060
|
+
`,mf=({conditions:r,title:n,subTitle:i})=>{const a=o(),[s,l]=Ht(!1),d=Wt(()=>l(e=>!e),[]),c=Xt(()=>sa(r),[r]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Xt(()=>Ii(c),[c]);jt(()=>{l(p||g||m)},[p,g,m]);const b=Xt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Xt(()=>p?Nr.Error:g?Nr.Warning:m?Nr.Info:Nr.Success,[p,g,m]),v=Xt(()=>n||(1===c.length?Pn(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:n})=>e?"Something Failed":t||r?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[n,c,p,g,m,b]),$=Xt(()=>i||1===c.length&&c[0].message||void 0,[i,c]),S=Xt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(uf,{children:[t(cf,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:S,loading:b,isExtended:s,toggleExtended:d}),s&&t(pf,{children:c.map(({status:r,type:n,reason:i,message:o},s)=>{const l=r===Nr.Loading,d=r===Nr.Disabled?Nr.Info:r,c=l?null:Bo(d,a),u=r===Nr.Error?io(a,Nr.Error,"500"):r===Nr.Warning?io(a,Nr.Warning,"500"):a.v2.colors.white[500],p=[n,o||i].filter(Boolean).join(" - ");return e(hf,{children:[t(gf,{children:l||!c?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(jn,{size:Mn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},ff=n.div`
|
|
1061
1061
|
width: ${({$orientation:e,$thickness:t,$length:r})=>e===fr.Vertical?`${t}px`:r||"100%"};
|
|
1062
1062
|
height: ${({$orientation:e,$thickness:t,$length:r})=>e===fr.Horizontal?`${t}px`:r||"100%"};
|
|
1063
1063
|
margin: ${({$orientation:e,$margin:t})=>t||(e===fr.Horizontal?"8px 0":"0 8px")};
|
|
1064
1064
|
background-color: ${({$type:e,theme:t})=>e?io(t,e):t.v2.colors.silver[500]};
|
|
1065
1065
|
opacity: ${({$opacity:e})=>e||1};
|
|
1066
|
-
`,bf=({orientation:e=fr.Horizontal,type:r,thickness:n=1,length:i,margin:o,opacity:a})=>t(ff,{$orientation:e,$type:r,$thickness:n,$length:i,$margin:o,$opacity:a});var yf,vf,$f;(e=>{e.Default="default",e.SuccessError="successError"})(yf||(yf={})),(e=>{e.S="small",e.L="large"})(vf||(vf={})),(e=>{e.Left="left",e.Right="right"})($f||($f={}));const
|
|
1066
|
+
`,bf=({orientation:e=fr.Horizontal,type:r,thickness:n=1,length:i,margin:o,opacity:a})=>t(ff,{$orientation:e,$type:r,$thickness:n,$length:i,$margin:o,$opacity:a});var yf,vf,$f;(e=>{e.Default="default",e.SuccessError="successError"})(yf||(yf={})),(e=>{e.S="small",e.L="large"})(vf||(vf={})),(e=>{e.Left="left",e.Right="right"})($f||($f={}));const Sf=n.div`
|
|
1067
1067
|
display: flex;
|
|
1068
1068
|
align-items: center;
|
|
1069
1069
|
gap: ${({$gap:e})=>e}px;
|
|
1070
|
-
`,
|
|
1070
|
+
`,wf=n.div`
|
|
1071
1071
|
position: relative;
|
|
1072
1072
|
display: flex;
|
|
1073
1073
|
align-items: center;
|
|
@@ -1092,11 +1092,11 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1092
1092
|
border-radius: 100%;
|
|
1093
1093
|
background-color: ${({$color:e})=>e};
|
|
1094
1094
|
box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
|
|
1095
|
-
`,
|
|
1095
|
+
`,Ef=({variant:n=yf.Default,size:i=vf.L,name:a,label:s,labelAlign:l=$f.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=xt,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:S,helpMessage:w})=>{const x=o(),E=g?x.v2.colors.grey[400]:x.v2.colors.white[500],C=i===vf.S?10:16,T=d||x.v2.colors.silver[200],O=i===vf.S?Mn.XXXS:Mn.XS,N=i===vf.S?8:12;return e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(Sf,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===$f.Left&&t(jn,{color:T,size:O,nowrap:!0,children:s}),e(wf,{$onBgColor:y,$offBgColor:v,$variant:n,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(xf,{$color:E,$size:C,$value:p,$disabled:g}),m&&e(r,{children:[t(f,{size:C,fill:E}),t(b,{size:C,fill:E})]})]}),s&&l===$f.Right&&t(jn,{color:T,size:O,nowrap:!0,children:s})]}),t(kg,{tooltip:c,badge:u})]}),t(Rg,{errorMessage:$,warnMessage:S,helpMessage:w})]})},Cf=n.div`
|
|
1096
1096
|
display: flex;
|
|
1097
1097
|
flex-direction: ${({$direction:e})=>e===fr.Horizontal?"row":"column"};
|
|
1098
1098
|
gap: ${({$direction:e})=>e===fr.Horizontal?16:8}px;
|
|
1099
|
-
`,Tf=({direction:r=fr.Vertical,title:n,size:i,disabled:o,options:a,values:s,setValues:l})=>{const d=i===vf.S?Mn.XS:Mn.S;return e(
|
|
1099
|
+
`,Tf=({direction:r=fr.Vertical,title:n,size:i,disabled:o,options:a,values:s,setValues:l})=>{const d=i===vf.S?Mn.XS:Mn.S;return e(Cf,{$direction:r,children:[n&&t(jn,{size:d,children:n}),a.map(e=>t(Ef,{...e,labelAlign:$f.Right,value:s[e.id],onChange:t=>{return r=e.id,n=t,void l(e=>{const t={...e};return r?t[r]=n:a.forEach(e=>t[e.id]=n),t});var r,n},disabled:o,size:i},`${n}-toggle-${e.id}`))]})};var Of;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Of||(Of={}));const Nf=n.div`
|
|
1100
1100
|
width: ${({$size:e})=>1.5*e}px;
|
|
1101
1101
|
height: ${({$size:e})=>1.5*e}px;
|
|
1102
1102
|
display: flex;
|
|
@@ -1130,15 +1130,15 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1130
1130
|
height: 36px;
|
|
1131
1131
|
border-radius: 8px;
|
|
1132
1132
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1133
|
-
`,
|
|
1133
|
+
`,_f=n.img`
|
|
1134
1134
|
width: 24px;
|
|
1135
1135
|
height: 24px;
|
|
1136
|
-
`,
|
|
1136
|
+
`,Df=n.div`
|
|
1137
1137
|
display: flex;
|
|
1138
1138
|
align-items: center;
|
|
1139
1139
|
gap: 16px;
|
|
1140
1140
|
flex-shrink: 0;
|
|
1141
|
-
`,Lf=({icon:r,iconSrc:n,title:i,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(If,{children:[e(kf,{children:[r?t(Rf,{children:t(r,{size:24})}):n?t(Rf,{children:t(
|
|
1141
|
+
`,Lf=({icon:r,iconSrc:n,title:i,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(If,{children:[e(kf,{children:[r?t(Rf,{children:t(r,{size:24})}):n?t(Rf,{children:t(_f,{src:n,alt:i||"icon"})}):null,(i||o?.length||a||s?.length)&&e(Ao,{$gap:6,children:[(i||o?.length)&&e(No,{$gap:16,children:[i&&t(jn,{size:Mn.S,weight:500,children:i}),o?.length&&t(No,{$gap:4,children:o?.map((e,r)=>t(Zh,{...e},`${e.label}-${r}`))})]}),(a||s?.length)&&e(No,{$gap:16,children:[a&&t(jn,{size:Mn.XXS,children:a}),s?.length&&t(No,{$gap:4,children:s?.map((e,r)=>t(qh,{...e},`${e.label}-${r}`))})]})]})]}),e(Df,{children:[l&&t(Ef,{...l}),d?.length?t(Vg,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(Af,{"data-id":"drawer-close",icon:xt,size:Of.M,onClick:c,disabled:u})]})]}),Pf=n.div`
|
|
1142
1142
|
position: relative;
|
|
1143
1143
|
&.animated {
|
|
1144
1144
|
overflow: hidden;
|
|
@@ -1185,17 +1185,17 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1185
1185
|
&:hover {
|
|
1186
1186
|
transform: scale(1.2);
|
|
1187
1187
|
}
|
|
1188
|
-
`,Hf=({status:r,message:n,action:i,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Bo(r,p),g=io(p,r,r===Nr.Default?"300":r===Nr.Info?"400":"500"),[m,f]=Ht(!1),b=Gt(null),y=Gt(null),v=c/10,$=c-v,
|
|
1188
|
+
`,Hf=({status:r,message:n,action:i,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Bo(r,p),g=io(p,r,r===Nr.Default?"300":r===Nr.Info?"400":"500"),[m,f]=Ht(!1),b=Gt(null),y=Gt(null),v=c/10,$=c-v,S=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return jt(()=>{if(d)return b.current=setTimeout(()=>S({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(Pf,{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(()=>S({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(Mf,{$status:r,$fullWidth:a,children:[t("div",{children:t(Ff,{$status:r,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(jn,{color:g,size:Mn.XXXS,weight:400,children:n}),(i||d)&&e(zf,{children:[i&&t(Bf,{"data-id":i["data-id"],onClick:i.onClick,children:t(jn,{color:g,size:Mn.XXS,weight:500,underline:!0,nowrap:!0,children:i.label})}),d&&t(Af,{"data-id":"note-close",icon:xt,size:Of.XS,onClick:()=>S({asSeen:!0})})]})]}),d&&t(Uf,{ref:y,$status:r,$duration:c})]})},jf=n.div`
|
|
1189
1189
|
display: flex;
|
|
1190
1190
|
align-items: center;
|
|
1191
1191
|
gap: 8px;
|
|
1192
1192
|
padding: 4px 12px;
|
|
1193
|
-
`,Xf=n.div`
|
|
1194
|
-
flex: 1;
|
|
1195
1193
|
`,Wf=n.div`
|
|
1194
|
+
flex: 1;
|
|
1195
|
+
`,Xf=n.div`
|
|
1196
1196
|
min-width: 150px;
|
|
1197
1197
|
width: fit-content;
|
|
1198
|
-
`,Gf=({note:r,actions:n,children:i})=>i?t(jf,{children:i}):e(jf,{children:[r&&t(Hf,{...r}),t(
|
|
1198
|
+
`,Gf=({note:r,actions:n,children:i})=>i?t(jf,{children:i}):e(jf,{children:[r&&t(Hf,{...r}),t(Wf,{}),n?.map((e,r)=>t(Xf,{children:t(Ch,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${r}`))]}),Vf=n.div`
|
|
1199
1199
|
position: fixed;
|
|
1200
1200
|
top: 0;
|
|
1201
1201
|
bottom: 0;
|
|
@@ -1224,7 +1224,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1224
1224
|
|
|
1225
1225
|
height: calc(100% - ${56}px);
|
|
1226
1226
|
overflow-y: auto;
|
|
1227
|
-
`,Yf=({isOpen:n,hideOverlay:i=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(dh(n),n?Qt(e(r,{children:[!i&&t(Ro,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(Vf,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(Lf,{...d}),t(Kf,{children:u}),c&&t(Gf,{...c})]})]}),document.body):null),Jf=({options:e,values:r,setValues:n,withMultiSelect:i,withSearch:o,...a})=>{const s=
|
|
1227
|
+
`,Yf=({isOpen:n,hideOverlay:i=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(dh(n),n?Qt(e(r,{children:[!i&&t(Ro,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(Vf,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(Lf,{...d}),t(Kf,{children:u}),c&&t(Gf,{...c})]})]}),document.body):null),Jf=({options:e,values:r,setValues:n,withMultiSelect:i,withSearch:o,...a})=>{const s=Xt(()=>e.filter(e=>r.includes(e.id)),[e,r]),l=Xt(()=>s.map(e=>e.label).join(", "),[s]);return t(Vg,{withMultiSelect:i,withSearch:o,fullWidth:!0,alignX:Ph.Left,items:e,selectedIds:r,setSelectedIds:n,children:({ChevronIcon:e,handleClick:r})=>t(Tm,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:r,readOnly:!0,tabIndex:-1})})},qf=({error:r})=>{const n=o(),i={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:i.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:i.errorMessage,children:r?.message||"Unknown Error"}),e("details",{style:i.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:i.errorStack,children:r?.stack||"Unknown Stack"})]}),t("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),t(Ch,{variant:wh.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Qf=({children:e})=>t(nr,{FallbackComponent:({error:e,...r})=>t(lg,{children:t(qf,{...r,error:e})}),children:e}),Zf=n.header`
|
|
1228
1228
|
position: relative;
|
|
1229
1229
|
width: 100%;
|
|
1230
1230
|
padding: 12px 18px;
|
|
@@ -1252,7 +1252,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1252
1252
|
left: ${({$left:e})=>e||"unset"};
|
|
1253
1253
|
top: 50%;
|
|
1254
1254
|
transform: translateY(-50%);
|
|
1255
|
-
`,nb=({isOpen:e,actions:r,positionRight:n,positionLeft:i})=>e?t(rb,{$right:n,$left:i,children:r.map(e=>{if(!e)return null;const{tooltip:r,...n}=e;return t(
|
|
1255
|
+
`,nb=({isOpen:e,actions:r,positionRight:n,positionLeft:i})=>e?t(rb,{$right:n,$left:i,children:r.map(e=>{if(!e)return null;const{tooltip:r,...n}=e;return t(Sh,{text:r||"",children:t(Ch,{...n,variant:n.variant||wh.Secondary,size:xh.S})},n.id)})}):null,ib=n.div`
|
|
1256
1256
|
display: flex;
|
|
1257
1257
|
align-items: center;
|
|
1258
1258
|
justify-content: center;
|
|
@@ -1286,7 +1286,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1286
1286
|
border-radius: 8px;
|
|
1287
1287
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1288
1288
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1289
|
-
`,hb=({values:r,setValues:n,name:i,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=o(),b=r.length<=1,y=g,v=g||b&&y,$=r.length?r:[""];return t(pb,{$plain:m,children:e(Ao,{"data-id":i,$gap:6,children:[t(kg,{label:a,tooltip:s,required:d,badge:l}),t(Ao,{$gap:8,children:$.map((i,o)=>{const a=o===$.length-1;return e(No,{$gap:8,$alignItems:"center",children:[t(Tm,{width:"100%",autoFocus:ea(i)&&!b&&a,value:i,onChange:e=>((e,t)=>{const i=[...r||[]];i[t]=e,n(i)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(
|
|
1289
|
+
`,hb=({values:r,setValues:n,name:i,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=o(),b=r.length<=1,y=g,v=g||b&&y,$=r.length?r:[""];return t(pb,{$plain:m,children:e(Ao,{"data-id":i,$gap:6,children:[t(kg,{label:a,tooltip:s,required:d,badge:l}),t(Ao,{$gap:8,children:$.map((i,o)=>{const a=o===$.length-1;return e(No,{$gap:8,$alignItems:"center",children:[t(Tm,{width:"100%",autoFocus:ea(i)&&!b&&a,value:i,onChange:e=>((e,t)=>{const i=[...r||[]];i[t]=e,n(i)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(Ch,{leftIcon:Rt,variant:wh.Secondary,size:xh.S,disabled:y,onClick:()=>(()=>{const e=r.length?fi(r):[fi("")];e.push(""),n(e)})()}),t(Ch,{leftIcon:v?_t:()=>t(_t,{fill:f.v2.colors.red[500]}),variant:wh.Secondary,size:xh.S,disabled:v,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(Rg,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var gb;(e=>{e.S="small",e.L="large"})(gb||(gb={}));const mb=n.div`
|
|
1290
1290
|
width: fit-content;
|
|
1291
1291
|
display: flex;
|
|
1292
1292
|
align-items: center;
|
|
@@ -1301,11 +1301,11 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1301
1301
|
border-radius: 100%;
|
|
1302
1302
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1303
1303
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1304
|
-
`,bb=({"data-id":r,label:n,value:i,onChange:a,disabled:s,size:l=gb.L})=>{const d=o(),[c,u]=Ht(!1),p=i,h=l===gb.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(mb,{"data-id":r??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!i)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fb,{$size:l,$borderColor:m,$backgroundColor:f,children:i?t(
|
|
1304
|
+
`,bb=({"data-id":r,label:n,value:i,onChange:a,disabled:s,size:l=gb.L})=>{const d=o(),[c,u]=Ht(!1),p=i,h=l===gb.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(mb,{"data-id":r??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!i)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fb,{$size:l,$borderColor:m,$backgroundColor:f,children:i?t(Dt,{size:h,fill:g}):null}),n&&t(jn,{size:l===gb.S?Mn.XXS:Mn.XS,children:n})]})},yb=n.div`
|
|
1305
1305
|
display: flex;
|
|
1306
1306
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1307
1307
|
gap: ${({$gap:e})=>e}px;
|
|
1308
|
-
`,vb=({label:r,direction:n,disabled:i,size:o,options:a,values:s,setValues:l})=>e(yb,{$flexDirection:n===fr.Horizontal?"row":"column",$gap:n===fr.Horizontal?16:8,children:[r&&t(jn,{children:r}),a.map(e=>t(bb,{...e,value:s[e.id],onChange:t=>{return r=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=n,t});var r,n},disabled:i,size:o},`${r}-radio-${e.id}`))]}),$b=({col:r,colIdx:n,row:i,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:
|
|
1308
|
+
`,vb=({label:r,direction:n,disabled:i,size:o,options:a,values:s,setValues:l})=>e(yb,{$flexDirection:n===fr.Horizontal?"row":"column",$gap:n===fr.Horizontal?16:8,children:[r&&t(jn,{children:r}),a.map(e=>t(bb,{...e,value:s[e.id],onChange:t=>{return r=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=n,t});var r,n},disabled:i,size:o},`${r}-radio-${e.id}`))]}),$b=({col:r,colIdx:n,row:i,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:S}=r,w=i[p];if(y&&!y(i))return null;const x=c?void 0:m||void 0,E=f;switch(h){case"radioGroup":{const e=null!=w?String(w):"",r=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(vb,{direction:fr.Horizontal,options:(b||[]).map(e=>({id:e.id,label:e.label})),values:r,setValues:e=>{const t="function"==typeof e?e(r):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Tr.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,r=Array.isArray(w)?w:null!=w&&""!==w?[String(w)]:[],n=b?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return t(Jf,{name:p,label:x,placeholder:E,options:b||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const i=a>1&&0===o&&0===n&&ea(w),c=t(Tm,{name:p,label:x,placeholder:E,autoFocus:i,type:g,min:$,max:S,value:w??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:r.withRegexTester?"100%":void 0});return r.withRegexTester?e(No,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(Ch,{variant:wh.Secondary,size:xh.S,label:"Test",disabled:d||!String(w??"").trim(),onClick:()=>u?.(String(w??""))})]}):c}},Sb=n.div`
|
|
1309
1309
|
width: 100%;
|
|
1310
1310
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1311
1311
|
border-radius: 8px;
|
|
@@ -1313,12 +1313,12 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1313
1313
|
display: flex;
|
|
1314
1314
|
flex-direction: column;
|
|
1315
1315
|
gap: 8px;
|
|
1316
|
-
`,
|
|
1316
|
+
`,wb=n.div`
|
|
1317
1317
|
flex: 1;
|
|
1318
1318
|
min-width: 0;
|
|
1319
1319
|
`,xb=n.div`
|
|
1320
1320
|
padding-top: 24px;
|
|
1321
|
-
`,
|
|
1321
|
+
`,Eb=({columns:r,values:n,setValues:i,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=r.find(e=>"segment"===e.componentType),f=m?.keyName,b=m?.options??[],y=e=>{const t={};return r.forEach(({keyName:e,defaultValue:r})=>t[e]=r??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],S=(f?$[0]?.[f]:"")||v,w=(e,t,r)=>{i($.map((n,i)=>i===e?{...n,[t]:r}:n))},x=()=>i([...$,y(S)]),E=b.find(e=>e.id===S);return e(Ao,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(kg,{label:s,tooltip:l,required:d}),m&&t(xg,{"data-id":`${a}-mode`,size:bg.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:S,setSelected:e=>!c&&(e=>i([y(e)]))(String(e))}),e(Ao,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:S}:n,d=r.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),C=((e,t)=>{const r=t||e.length||1,n=[];let i=[];const o=()=>{i.length&&(n.push(i),i=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);i.push(e),i.length>=r&&o()}),o(),n})(b,h),T=E?.rowTitle?`${E.rowTitle} ${o+1}`:void 0;return e(Sb,{"data-id":`${a}-card-${o}`,children:[e(No,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Ao,{$gap:10,children:[T&&t(kg,{label:T}),m.map(e=>t(No,{$gap:24,children:(e.options??[]).map(r=>t(bb,{size:gb.L,label:r.label,value:String(n[e.keyName]??"")===String(r.id),disabled:c,onChange:t=>t&&w(o,e.keyName,r.id)},`${a}-card-${o}-${e.keyName}-${r.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(No,{$gap:4,$alignItems:"center",children:[v&&t(Ch,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:wh.Secondary,size:xh.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(Ch,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?_t:()=>t(_t,{fill:g.v2.colors.red[500]}),variant:wh.Secondary,size:xh.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,r)=>r!==e);i(t.length?t:[y(S)])})(o)}),s&&t(Ch,{"data-id":`${a}-card-${o}-add`,leftIcon:Rt,variant:wh.Secondary,size:xh.S,disabled:c,onClick:x})]})]}),C.map((r,i)=>t(No,{$gap:8,$alignItems:"flex-start",$width:"100%",children:r.map((r,i)=>{const s=((e,t)=>{let{label:r,placeholder:n,helpMessage:i}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(r=o.label??r,n=o.placeholder??n,i=o.helpMessage??i)}return{label:r,placeholder:n,helpMessage:i}})(r,n);return e(Bt,{children:["arrow"===r.separator&&i>0&&t(xb,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(wb,{children:t(Tm,{name:`${a}-card-${o}-${r.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:r.inputType,min:r.min,max:r.max,width:"100%",value:n[r.keyName]??"",disabled:c,hasError:!!u,onChange:e=>w(o,r.keyName,e.target.value)})})]},`${a}-card-${o}-${r.keyName}`)})},`${a}-card-${o}-row-${i}`))]},`${a}-card-${o}`)}),t(Rg,{errorMessage:u})]})]})},Cb=n.div`
|
|
1322
1322
|
width: 100%;
|
|
1323
1323
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1324
1324
|
border-radius: 8px;
|
|
@@ -1334,7 +1334,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1334
1334
|
width: 72px;
|
|
1335
1335
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1336
1336
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1337
|
-
`,Ab=({columns:r,values:n,setValues:i,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=
|
|
1337
|
+
`,Ab=({columns:r,values:n,setValues:i,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=Xt(()=>{const e={};return r.forEach(({keyName:t,defaultValue:r})=>e[t]=r??""),e},[r]),v=(e,t,r)=>{const o=n.length?fi(n):[fi(y)];o[r][e]=t,i(o)},$=n.length?n:[y];return t(Cb,{children:e(Ao,{"data-id":a,$gap:0,children:[t(kg,{label:s,tooltip:l,required:c,badge:d}),t(Tb,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.length-1,l=((e,t)=>{const r=t||e.length||1,n=[];let i=[];const o=()=>{i.length&&(n.push(i),i=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);i.push(e),i.length>=r&&o()}),o(),n})(r.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Bt,{children:[l.length>1&&a>0?t("tr",{children:t(Ob,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],S=m?22:0;return e("tr",{children:[l.map((r,n)=>{if(r.renderCondition&&!r.renderCondition(o))return null;const i=n===l.length-1,s=0===g&&i?c-l.length+1:1;return t(Ob,{colSpan:s>1?s:void 0,children:e(Ao,{$gap:6,children:[m&&(r.label?t(kg,{label:r.label,tooltip:r.tooltip}):t(kg,{label:"\\u00A0"})),t($b,{col:r,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(Nb,{$topOffset:S,$center:h,children:e(No,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Ch,{leftIcon:Rt,variant:wh.Secondary,size:xh.S,disabled:u,onClick:()=>(()=>{const e=n.length?fi(n):[fi(y)],t=fi(y),o=e[e.length-1];r.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]=fi(o[e.keyName]))}),e.push(t),i(e)})()}),t(Ch,{leftIcon:u?_t:()=>t(_t,{fill:b.v2.colors.red[500]}),variant:wh.Secondary,size:xh.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,r)=>r!==e);t.length||t.push(fi(y)),i(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(Rg,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Ib=n.div`
|
|
1338
1338
|
display: flex;
|
|
1339
1339
|
align-items: center;
|
|
1340
1340
|
justify-content: space-between;
|
|
@@ -1380,7 +1380,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1380
1380
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1381
1381
|
don't compete with the slide-out. */
|
|
1382
1382
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1383
|
-
`,
|
|
1383
|
+
`,_b=n(Ro)`
|
|
1384
1384
|
will-change: opacity;
|
|
1385
1385
|
animation-name: ${({$closing:e})=>e?mg.out:mg.in};
|
|
1386
1386
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1390,13 +1390,13 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1390
1390
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1391
1391
|
because the overlay is fading to 0. */
|
|
1392
1392
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1393
|
-
`,
|
|
1393
|
+
`,Db=n.div`
|
|
1394
1394
|
position: relative;
|
|
1395
1395
|
`,Lb=n.div`
|
|
1396
1396
|
position: absolute;
|
|
1397
1397
|
top: 16px;
|
|
1398
1398
|
left: 16px;
|
|
1399
|
-
`,Pb=({isOpen:n,hideOverlay:i=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(jt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),dh(c),!c)return null;const g=e(r,{children:[!i&&t(
|
|
1399
|
+
`,Pb=({isOpen:n,hideOverlay:i=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(jt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),dh(c),!c)return null;const g=e(r,{children:[!i&&t(_b,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Rb,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Db,{children:[a&&t(Lb,{children:t(Af,{icon:e=>t(It,{rotate:-90,...e}),size:Of.L,onClick:a})}),d]})})]});return o?g:Qt(g,document.body)},Ub=n.div`
|
|
1400
1400
|
position: relative;
|
|
1401
1401
|
width: ${64}px;
|
|
1402
1402
|
height: ${({$height:e})=>e};
|
|
@@ -1478,12 +1478,12 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1478
1478
|
}
|
|
1479
1479
|
`}
|
|
1480
1480
|
`}
|
|
1481
|
-
`,
|
|
1481
|
+
`,Wb=n.div`
|
|
1482
1482
|
display: flex;
|
|
1483
1483
|
align-items: center;
|
|
1484
1484
|
gap: 16px;
|
|
1485
1485
|
width: 100%;
|
|
1486
|
-
`,
|
|
1486
|
+
`,Xb=n.div`
|
|
1487
1487
|
display: flex;
|
|
1488
1488
|
flex-direction: column;
|
|
1489
1489
|
gap: 4px;
|
|
@@ -1491,7 +1491,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1491
1491
|
min-width: 0;
|
|
1492
1492
|
`,Gb=n.div`
|
|
1493
1493
|
width: 100%;
|
|
1494
|
-
`,Vb=({"data-id":r,title:n,description:i,body:a,footerNote:s,checked:l,onChange:d,disabled:c})=>{const u=o(),p=r??`radio-card-${n}`,h=()=>{c||d(!0)};return e(jb,{"data-id":p,$selected:l,$disabled:c,onClick:h,children:[e(
|
|
1494
|
+
`,Vb=({"data-id":r,title:n,description:i,body:a,footerNote:s,checked:l,onChange:d,disabled:c})=>{const u=o(),p=r??`radio-card-${n}`,h=()=>{c||d(!0)};return e(jb,{"data-id":p,$selected:l,$disabled:c,onClick:h,children:[e(Wb,{children:[t(bb,{"data-id":`${p}-radio`,value:l,onChange:h,size:gb.L,disabled:c}),e(Xb,{children:[t(jn,{size:Mn.S,weight:500,lineHeight:"24px",color:Fn.Primary,children:n}),i&&t(jn,{size:Mn.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:Fn.Secondary,children:i})]})]}),a&&t(Gb,{children:a}),s&&t(Gb,{children:s})]})},Kb=n.div`
|
|
1495
1495
|
width: 100%;
|
|
1496
1496
|
height: 100%;
|
|
1497
1497
|
|
|
@@ -1499,7 +1499,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1499
1499
|
animation: none !important;
|
|
1500
1500
|
transition: none !important;
|
|
1501
1501
|
}
|
|
1502
|
-
`,Yb=({width:e="100%",height:r="100%",gap:n=0,elements:i,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=
|
|
1502
|
+
`,Yb=({width:e="100%",height:r="100%",gap:n=0,elements:i,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=Xt(()=>n?i.map((e,r)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${r}`)):i,[i,n]),u=Wt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);jt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ir,{ref:d,style:{width:e,height:r},onScroll:a?u:void 0,children:c});return o?t(Kb,{children:p}):p},Jb=[{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}],qb=Jb[1].value,Qb=Jb[Jb.length-1].value,Zb=e=>({label:e?Jb.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:wh.Secondary,size:xh.S}),ey=n.input`
|
|
1503
1503
|
width: 100px;
|
|
1504
1504
|
padding: 2px 12px;
|
|
1505
1505
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
@@ -1529,7 +1529,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1529
1529
|
opacity: 0.4;
|
|
1530
1530
|
}
|
|
1531
1531
|
`}
|
|
1532
|
-
`,ty=()=>(new Date).toISOString().split("T")[0],ry=(e,t)=>{const r=new Date(e);return r.setTime(r.getTime()-60*t*60*1e3),r.toISOString().split("T")[0]},ny=({options:r=Jb,maxAllowedValue:n=Qb,defaultValue:i=qb,onApply:o,onClose:a})=>{const[s]=Ht(ty),[l,d]=Ht(i),[c,u]=Ht(()=>ry(s,i)),[p,h]=Ht(void 0),g=
|
|
1532
|
+
`,ty=()=>(new Date).toISOString().split("T")[0],ry=(e,t)=>{const r=new Date(e);return r.setTime(r.getTime()-60*t*60*1e3),r.toISOString().split("T")[0]},ny=({options:r=Jb,maxAllowedValue:n=Qb,defaultValue:i=qb,onApply:o,onClose:a})=>{const[s]=Ht(ty),[l,d]=Ht(i),[c,u]=Ht(()=>ry(s,i)),[p,h]=Ht(void 0),g=Xt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Xt(()=>r.map(({label:e,value:r})=>t(Ch,{label:e,variant:wh.Text,size:xh.S,textAlign:"left",isSelected:r===l,onClick:()=>(e=>{d(e),u(ry(s,e))})(r)},`window-hours-option-${r}`)),[r,l,s]);return e(Ao,{$gap:24,children:[e(Ao,{children:[m,t(bf,{}),e(Ao,{$gap:12,$padding:"0 12px",children:[t(jn,{size:Mn.XXS,color:Fn.Secondary,nowrap:!0,children:"Custom range"}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(jn,{size:Mn.XXS,nowrap:!0,children:"From"}),t(ey,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(jn,{size:Mn.XXS,nowrap:!0,children:"To"}),t(ey,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const r=new Date(e).getTime(),n=new Date(t).getTime(),i=Math.floor((n-r)/1e3/60/60);return i<0?Math.abs(i):i})(s,t));var t}})]}),p&&t(Rg,{errorMessage:p}),e(jn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(Ch,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},iy=n.div`
|
|
1533
1533
|
display: flex;
|
|
1534
1534
|
flex-direction: column;
|
|
1535
1535
|
gap: 16px;
|
|
@@ -1626,7 +1626,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1626
1626
|
width: 1px;
|
|
1627
1627
|
height: 18px;
|
|
1628
1628
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1629
|
-
`,
|
|
1629
|
+
`,Sy=n.div`
|
|
1630
1630
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1631
1631
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:r})=>null!=r?`0 0 ${r}px`:e??(t?"0 0 auto":1)};
|
|
1632
1632
|
|
|
@@ -1674,7 +1674,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1674
1674
|
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1675
1675
|
background-color: ${({theme:e})=>r?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1676
1676
|
`;default:return""}}}
|
|
1677
|
-
`,
|
|
1677
|
+
`,wy=n.div`
|
|
1678
1678
|
position: absolute;
|
|
1679
1679
|
top: 0;
|
|
1680
1680
|
left: 0;
|
|
@@ -1689,12 +1689,12 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1689
1689
|
padding: 18px 24px;
|
|
1690
1690
|
box-sizing: border-box;
|
|
1691
1691
|
white-space: nowrap;
|
|
1692
|
-
`,
|
|
1692
|
+
`,Ey=n.div`
|
|
1693
1693
|
display: inline-flex;
|
|
1694
1694
|
align-items: center;
|
|
1695
1695
|
gap: 4px;
|
|
1696
1696
|
white-space: nowrap;
|
|
1697
|
-
`,
|
|
1697
|
+
`,Cy=n.div`
|
|
1698
1698
|
width: 100%;
|
|
1699
1699
|
height: 100%;
|
|
1700
1700
|
display: flex;
|
|
@@ -1702,7 +1702,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1702
1702
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1703
1703
|
gap: 4px;
|
|
1704
1704
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1705
|
-
`,Ty=({variant:n,columns:i,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:
|
|
1705
|
+
`,Ty=({variant:n,columns:i,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:S,isSelected:w=!1,onSelect:x,onDeselect:E,hideCheckbox:C,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),I=null!=N,k=I&&m===A,R=null!=g&&o.id===g,_=c(o),D=a===s-1,L=I||!!S,P=()=>{I&&f?.(A),S?.()},U=(e,t)=>({$isLastRow:D&&!k,$isFirstCell:e,$isLastCell:t,$selected:w,$highlighted:R,$withClick:L,onClick:P,$hovered:L&&y,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}),M=k&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=e(r,{children:[h&&t(Sy,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!C&&(O?t(Sh,{text:O,children:t(Pg,{value:w,disabled:T,onChange:()=>w?E?.():x?.()})}):t(Pg,{value:w,disabled:T,onChange:()=>w?E?.():x?.()}))},"checkbox-column"),i.map(({key:r,withTooltip:o,textAlign:s,flex:c,minWidth:g},m)=>{const f=$.find(e=>e.key===r),b=0===m&&!h,v=m===i.length-1,S=0===m,w=!!_.length&&(!!u&&v||!!p&&b||!u&&!p&&v),x="right"===s?"flex-end":"center"===s?"center":"flex-start",E=f?.component?t(f.component,{}):o?t(jn,{size:Mn.XS,align:s,nowrap:!0,children:f?.rawValue||"-"}):t(em,{size:Mn.XS,align:s,nowrap:!0,fullWidth:!1,children:f?.rawValue||"-"}),C=e(No,{$width:"100%",$gap:I&&S?8:0,$justifyContent:x,children:[I&&S?t(k?Tt:Ut,{}):null,E]});return e(Sy,{$variant:n,$index:a,$flex:c,$minWidth:g,$autoWidth:l.has(r),$resolvedWidth:d[r],...U(b,v),children:[o?t(Sh,{text:f?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,w?t(nb,{isOpen:y,actions:_,positionRight:u,positionLeft:p}):null]},`row-${a}-cell-${m}`)})]});return I?e(by,{"data-table-row-index":a,children:[t(fy,{children:F}),null!=M&&e(r,{children:[t(yy,{$maxHeight:b,children:M}),!D&&t(bf,{margin:"0"})]})]}):t(fy,{"data-table-row-index":a,children:F})},Oy=({variant:e,columns:n,rows:i,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=Xt(()=>i.map((r,p)=>t(Ty,{variant:e,columns:n,row:r,rowIdx:p,rowCount:i.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b},`row-${p}`)),[i,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(Yb,{gap:e===uy.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(r,{children:y})},Ny=({columnKey:e,sortDirection:r,sortByKey:n,onSort:i})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===br.Ascending?0:180;return t(Ch,{variant:wh.Text,size:xh.S,leftIcon:()=>t(It,{fill:s,rotate:l}),onClick:()=>i(e)})},Ay=({columnKey:e,filters:r,onFilter:n,rowsUnfiltered:i,filterOverride:a})=>{const s=o(),l=r[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Xt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(i.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})),[i,e,a]);return t(Vg,{items:d,withMultiSelect:!0,selectedIds:r[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},Iy=({variant:r,backgroundColor:n,columns:i,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(fy,{children:[h&&t(vy,{$variant:r,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(Pg,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),i.map(({key:g,label:m,withTooltip:f,tooltip:b,noSort:y,noFilter:v,filterOverride:$,flex:S,minWidth:w,textAlign:x},E)=>{const C=0===E&&!h,T=E===i.length-1,O=!(!b&&!f),N=O?t(jn,{size:Mn.XS,align:x,nowrap:!0,children:m}):t(em,{size:Mn.XS,align:x,nowrap:!0,fullWidth:!1,children:m});return e(vy,{$variant:r,$backgroundColor:n,$flex:S,$minWidth:w,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Cy,{$textAlign:x,children:[O?t(Sh,{text:b||m,children:N}):N,!y&&t(Ny,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(Ay,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:$})]}),!T&&r===uy.Data&&t($y,{})]},`column-${g}`)})]}),ky=()=>{},Ry={},_y=[],Dy=e=>[],Ly=({variant:r,maxHeight:n,fitContent:i=!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[S,w]=Ht(br.Ascending),[x,E]=Ht(""),[C,T]=Ht({}),[O,N]=Ht(null),A=m??C,I=void 0!==v,k=I?v:O,R=Wt(e=>{E(e),w(e=>e===br.Ascending?br.Descending:br.Ascending)},[]),_=Wt((e,t)=>{const r={...A,[e]:t};f&&f(r),void 0===m&&T(r)},[A,f,m]),D=Xt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const n=e(t,x),i=e(r,x);return(S===br.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,i)}):c).filter(t=>{for(const[r,n]of Object.entries(A)){if(!n.length)continue;const i=d.find(e=>e.key===r)?.filterOverride;if(i){if(!i.filterRow(t,n))return!1}else if(!n.includes(e(t,r)))return!1}return!0})},[c,x,S,A,d]),L=Xt(()=>null==b?-1:D.findIndex(e=>e.id===b),[D,b]),{partiallySelected:P,allSelected:U}=Xt(()=>{const e=D.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)}},[D]),M=Xt(()=>{const e=new Set;for(const t of d)null!=t.flex&&e.add(t.key);const t=new Set;for(const r of c)for(const n of r.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,d]),F=Gt(null),[z,B]=Ht({}),H=Xt(()=>0===M.size?[]:d.filter(e=>M.has(e.key)).map(r=>{const n=[e(Ey,{children:[t(jn,{size:Mn.XS,align:r.textAlign,children:r.label}),!r.noSort&&t(Ny,{columnKey:r.key,sortDirection:br.Ascending,sortByKey:"",onSort:ky}),!r.noFilter&&t(Ay,{columnKey:r.key,filters:Ry,onFilter:ky,rowsUnfiltered:_y,filterOverride:r.filterOverride})]},`mw-${r.key}-header`)];return c.forEach((e,i)=>{const o=e.cells.find(e=>e.key===r.key);o&&n.push(o.component?t(o.component,{},`mw-${r.key}-${i}`):t(jn,{size:Mn.XS,children:o.rawValue||"-"},`mw-${r.key}-${i}`))}),{key:r.key,nodes:n}}),[d,c,M]);Vt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const r=t.dataset.mwKey;if(!r)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[r]||n>e[r])&&(e[r]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?t:e)},[H,M]);const j=Gt(null),[W,X]=Ht(0),G=D.some(e=>null!=e.expandedContent);Vt(()=>{if(!G)return void X(0);const e=j.current;if(!e)return;const t=()=>{const t=e.clientHeight;X(e=>e===t?e:t)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[G,D.length]);const V=Wt(e=>{const t=k===e?null:e;I||N(t),$?.(t)},[k,I,$]),K=G&&W>0?`${W}px`:void 0,Y=i&&null!=n&&D.length>=100,J=!i||Y;return e(py,{$maxHeight:n,$fitContent:i,$virtualize:Y,children:[H.length>0&&t(wy,{ref:F,"aria-hidden":!0,children:H.flatMap(({key:e,nodes:r})=>r.map((r,n)=>t(xy,{"data-mw-key":e,children:r},`mw-${e}-${n}`)))}),e(hy,{$variant:r,children:[!a&&t(gy,{children:t(Iy,{variant:r,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:S,sortByKey:x,onSort:R,filters:A,onFilter:_,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?D.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):D.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),D.length?G&&!i?t(my,{ref:j,children:t(Oy,{variant:r,columns:d,rows:D,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||Dy,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:k,onToggleExpand:V,expandedMaxHeight:K})}):t(Oy,{variant:r,columns:d,rows:D,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||Dy,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:J,expandedRowId:k,onToggleExpand:V,expandedMaxHeight:K}):t(Io,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(dy,{size:3,maxHeight:n}):t(Ng,{...l})})]})]})},Py=n.div`
|
|
1706
1706
|
padding: 6px 12px;
|
|
1707
1707
|
|
|
1708
1708
|
display: flex;
|
|
@@ -1751,13 +1751,13 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1751
1751
|
`,By=n.div`
|
|
1752
1752
|
flex: 0 0 auto;
|
|
1753
1753
|
min-width: 140px;
|
|
1754
|
-
`,Hy=({name:r,label:n,tooltip:i,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=Fy,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=
|
|
1754
|
+
`,Hy=({name:r,label:n,tooltip:i,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=Fy,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Xt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Xt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),i=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(i);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(d,u,y),[d,u,y]),S=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Ao,{$width:b,$gap:6,children:[t(kg,{label:n,tooltip:i,required:s,badge:o}),e(No,{$gap:8,$alignItems:"center",children:[t(zy,{children:t(Tm,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(pa(e.target.value),$)})}),t(By,{children:t(Jf,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>S(v,e[0]||$)})})]}),t(Rg,{errorMessage:h,warnMessage:g,helpMessage:m})]})},jy=n.div`
|
|
1755
1755
|
display: flex;
|
|
1756
1756
|
flex-direction: column;
|
|
1757
1757
|
min-width: 0;
|
|
1758
1758
|
width: 100%;
|
|
1759
1759
|
flex: 1;
|
|
1760
|
-
`,
|
|
1760
|
+
`,Wy=n.div`
|
|
1761
1761
|
display: flex;
|
|
1762
1762
|
flex-wrap: wrap;
|
|
1763
1763
|
align-items: center;
|
|
@@ -1774,7 +1774,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1774
1774
|
border-top-left-radius: 12px;
|
|
1775
1775
|
border-top-right-radius: 12px;
|
|
1776
1776
|
`;default:return i``}}}
|
|
1777
|
-
`,
|
|
1777
|
+
`,Xy=n.div`
|
|
1778
1778
|
display: flex;
|
|
1779
1779
|
align-items: center;
|
|
1780
1780
|
gap: 4px;
|
|
@@ -1924,7 +1924,7 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1924
1924
|
flex-direction: column;
|
|
1925
1925
|
width: 100%;
|
|
1926
1926
|
box-sizing: border-box;
|
|
1927
|
-
`,av=(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]}},sv=({row:r})=>{const n=!!r.scope,i=r.attributes?.filter(e=>!!e?.key)??[];return n||i.length?t(ov,{children:e(Ao,{$gap:0,children:[n?t(ub,{label:"Scope Attribute",value:r.scope}):null,i.map((e,r)=>t(ub,{label:e.key??"",value:e.value},`${e.key}-${r}`))]})}):null},lv=({row:r,expanded:n,onToggle:i})=>{const a=o(),s=(e=>e??"default")(r.variant),l="placeholder"!==s,d=r.depth??0,c=
|
|
1927
|
+
`,av=(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]}},sv=({row:r})=>{const n=!!r.scope,i=r.attributes?.filter(e=>!!e?.key)??[];return n||i.length?t(ov,{children:e(Ao,{$gap:0,children:[n?t(ub,{label:"Scope Attribute",value:r.scope}):null,i.map((e,r)=>t(ub,{label:e.key??"",value:e.value},`${e.key}-${r}`))]})}):null},lv=({row:r,expanded:n,onToggle:i})=>{const a=o(),s=(e=>e??"default")(r.variant),l="placeholder"!==s,d=r.depth??0,c=Wt(()=>{l&&i(r.id)},[l,i,r.id]);if("placeholder"===s)return t(Yy,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(Jy,{$depth:d,children:t(iv,{children:r.badge?.icon?t(r.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=r.badge?.icon??void 0,p=r.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(Yy,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(Jy,{$depth:d,children:[t(qy,{size:Mn.XXXS,color:Fn.Disable,nowrap:!0,children:r.index??""}),e(Qy,{children:[r.service?t(Zy,{title:r.service,children:t(ev,{size:Mn.XXXS,color:a.v2.colors.purple[300],children:r.service})}):null,e(tv,{children:[t(jn,{size:Mn.XXXS,color:n||"default"!==s?Fn.Primary:Fn.Secondary,nowrap:!0,children:r.name??""}),r.badge?.label?e(nv,{$tone:p,children:[t(jn,{size:Mn.XXXS,color:av(a,p),nowrap:!0,children:r.badge.label}),u?t(u,{size:12,fill:av(a,p)}):null]}):null]}),r.durationLabel?t(rv,{size:Mn.XXXS,color:h??Fn.Secondary,nowrap:!0,children:r.durationLabel}):null]})]}),n?t(sv,{row:r}):null]})},dv=({title:r,titleIcon:n,headerBadge:i,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Xt(()=>new Set(l??[]),[l]),h=Wt(e=>{d?.(e)},[d]),g=!!(n||r||i?.label||a?.length),m="success"===i?.tone?u.v2.colors.green[500]:"danger"===i?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===i?.tone?u.v2.colors.black[500]:"danger"===i?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(jy,{children:[g&&e(Wy,{$corner:c??"both",children:[(n||r)&&e(Xy,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),r&&t(jn,{size:Mn.XS,color:Fn.Primary,nowrap:!0,children:r})]}),i?.label?t(Zh,{label:i.label,backgroundColor:m,textColor:f,textSize:Mn.XXXS}):null,a?.map(e=>t(Gy,{children:t(jn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(Vy,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(lv,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(No,{$justifyContent:"center",style:{padding:16},children:t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:"No spans"})})})]})},cv=n.div`
|
|
1928
1928
|
min-width: 500px;
|
|
1929
1929
|
`,uv=n.div`
|
|
1930
1930
|
display: flex;
|
|
@@ -1940,4 +1940,4 @@ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
1940
1940
|
padding: 16px 24px;
|
|
1941
1941
|
width: 100%;
|
|
1942
1942
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1943
|
-
`,hv=({visual:r,title:n,description:i,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Pb,{isOpen:o,onClose:a,...c,children:e(cv,{children:[e(uv,{children:[r&&t(r,{}),t(jn,{size:Mn.M,weight:500,color:Fn.Primary,children:n}),t(Ao,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>t(jn,{size:Mn.XS,weight:400,color:Fn.Secondary,children:e},e))}),d]}),(s||l)&&e(pv,{children:[s&&t(
|
|
1943
|
+
`,hv=({visual:r,title:n,description:i,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Pb,{isOpen:o,onClose:a,...c,children:e(cv,{children:[e(uv,{children:[r&&t(r,{}),t(jn,{size:Mn.M,weight:500,color:Fn.Primary,children:n}),t(Ao,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>t(jn,{size:Mn.XS,weight:400,color:Fn.Secondary,children:e},e))}),d]}),(s||l)&&e(pv,{children:[s&&t(Ch,{"data-id":"deny",...s}),l&&t(Ch,{"data-id":"approve",...l})]})]})});export{wr as $,Kg as A,Ch as B,Io as C,Yf as D,Ab as E,Ao as F,ii as G,hb as H,Af as I,Tm as J,Or as K,Hf as L,Pb as M,Ng as N,Gl as O,vr as P,ql as Q,Zg as R,Nr as S,Sh as T,qh as U,bo as V,hv as W,Nl as X,Ql as Y,Zl as Z,Vl as _,Yg as a,Bl as a$,_i as a0,hm as a1,_l as a2,xg as a3,Om as a4,jl as a5,_g as a6,ed as a7,td as a8,Ol as a9,Hl as aA,yl as aB,il as aC,vl as aD,bl as aE,Vg as aF,ol as aG,$l as aH,nd as aI,fl as aJ,Yl as aK,id as aL,rd as aM,od as aN,ad as aO,Fl as aP,al as aQ,dl as aR,cl as aS,hl as aT,ml as aU,gl as aV,Cl as aW,Js as aX,qs as aY,nl as aZ,zl as a_,ni as aa,bf as ab,Eb as ac,bg as ad,Hs as ae,wl as af,Fr as ag,Hr as ah,Jr as ai,qr as aj,Qr as ak,Br as al,jr as am,zr as an,Pn as ao,kl as ap,ll as aq,Il as ar,sl as as,Ll as at,Sl as au,Al as av,Dl as aw,Wl as ax,xl as ay,bb as az,yr as b,Rl as b$,Xl as b0,nu as b1,Qs as b2,Tl as b3,fi as b4,iu as b5,Yb as b6,zo as b7,Tg as b8,Oi as b9,ta as bA,Dn as bB,ca as bC,Kr as bD,da as bE,is as bF,Pr as bG,dg as bH,Oo as bI,dy as bJ,Cn as bK,Zh as bL,dr as bM,Us as bN,gr as bO,Ms as bP,gb as bQ,em as bR,Wn as bS,Ra as bT,ts as bU,Ja as bV,qa as bW,Za as bX,Qa as bY,yd as bZ,El as b_,qp as ba,Yn as bb,no as bc,xr as bd,Er as be,Wp as bf,th as bg,oh as bh,Qp as bi,Xi as bj,Gn as bk,_n as bl,tn as bm,Bi as bn,Ls as bo,Ds as bp,Rs as bq,_s as br,Zo as bs,os as bt,Qo as bu,ah as bv,Nn as bw,lr as bx,ar as by,ea as bz,Ps as c,wn as c$,vd as c0,Ml as c1,bd as c2,tl as c3,rl as c4,ul as c5,Rn as c6,sr as c7,Ln as c8,Fi as c9,Vo as cA,Go as cB,Mi as cC,ob as cD,Vp as cE,ro as cF,Ci as cG,Ho as cH,hh as cI,Va as cJ,Xa as cK,aa as cL,io as cM,Bo as cN,Li as cO,Ir as cP,Fa as cQ,Ha as cR,yg as cS,Ly as cT,uy as cU,kb as cV,pl as cW,js as cX,Qi as cY,Pi as cZ,Sn as c_,ns as ca,Un as cb,Vn as cc,mr as cd,Vb as ce,Ni as cf,cf as cg,hi as ch,mf as ci,On as cj,la as ck,Si as cl,Ko as cm,Gi as cn,Vh as co,Ba as cp,Dh as cq,ei as cr,Mr as cs,Zn as ct,ja as cu,ub as cv,Di as cw,Kh as cx,Vm as cy,Kp as cz,kg as d,hp as d$,xn as d0,Ss as d1,Os as d2,$s as d3,Ts as d4,Ns as d5,vs as d6,Es as d7,hs as d8,gs as d9,Ad as dA,_d as dB,Rd as dC,Od as dD,Td as dE,zs as dF,pd as dG,Tp as dH,wp as dI,xp as dJ,Ep as dK,Cp as dL,yp as dM,Zu as dN,ep as dO,tp as dP,rp as dQ,np as dR,ip as dS,lp as dT,dp as dU,op as dV,ap as dW,sp as dX,cp as dY,up as dZ,pp as d_,Cs as da,ws as db,xs as dc,ks as dd,ps as de,bs as df,ys as dg,fs as dh,ms as di,ss as dj,as as dk,Is as dl,As as dm,Fs as dn,Xs as dp,Bs as dq,Ws as dr,eu as ds,ru as dt,tu as du,Ed as dv,wd as dw,Sd as dx,xd as dy,Id as dz,jn as e,qc as e$,Qu as e0,Yu as e1,mp as e2,fp as e3,Ku as e4,Xu as e5,qu as e6,Nu as e7,bp as e8,vp as e9,_p as eA,Dp as eB,Pp as eC,Up as eD,Fp as eE,Mp as eF,zp as eG,Bp as eH,Rh as eI,ra as eJ,Uh as eK,Ph as eL,Xp as eM,Zc as eN,Pd as eO,Yd as eP,Jd as eQ,qd as eR,Qd as eS,ec as eT,Zd as eU,tc as eV,Eo as eW,Vc as eX,Kc as eY,Yc as eZ,Jc as e_,Sp as ea,$p as eb,Ju as ec,Vu as ed,Gu as ee,ku as ef,Iu as eg,Au as eh,Pu as ei,Lu as ej,yf as ek,Uu as el,Fu as em,zu as en,Mu as eo,Bu as ep,Hu as eq,Wu as er,ju as es,Lp as et,Op as eu,Np as ev,Ap as ew,Ip as ex,kp as ey,Rp as ez,Fn as f,cn as f$,Qc as f0,Ud as f1,Fd as f2,zd as f3,Bd as f4,jd as f5,Hd as f6,Xd as f7,Wd as f8,Vd as f9,jc as fA,Wc as fB,Xc as fC,Gc as fD,Bc as fE,Lc as fF,Pc as fG,Tc as fH,Rc as fI,_c as fJ,Dc as fK,Nc as fL,Ic as fM,Ac as fN,yc as fO,vc as fP,$c as fQ,Sc as fR,wc as fS,xc as fT,Ec as fU,Cc as fV,Oc as fW,kc as fX,Zi as fY,Co as fZ,vm as f_,Gd as fa,Kd as fb,Dd as fc,Ld as fd,rc as fe,nc as ff,dc as fg,sc as fh,lc as fi,oc as fj,ac as fk,ic as fl,hc as fm,gc as fn,uc as fo,pc as fp,cc as fq,fc as fr,bc as fs,mc as ft,Md as fu,Mc as fv,Fc as fw,zc as fx,Uc as fy,Hc as fz,Mn as g,hu as g$,dn as g0,ln as g1,sn as g2,hn as g3,pn as g4,qb as g5,ny as g6,Zb as g7,un as g8,Ti as g9,zi as gA,ch as gB,wi as gC,$i as gD,vi as gE,Xn as gF,oo as gG,Wr as gH,fm as gI,Ks as gJ,Gs as gK,Vs as gL,Ys as gM,Jl as gN,$d as gO,ud as gP,dd as gQ,cd as gR,ld as gS,sd as gT,md as gU,fd as gV,gd as gW,hd as gX,Lh as gY,lu as gZ,du as g_,dv as ga,ka as gb,mn as gc,Xh as gd,on as ge,nn as gf,an as gg,gn as gh,fn as gi,Hm as gj,_m as gk,yn as gl,To as gm,cy as gn,Jp as go,xi as gp,Kn as gq,Wa as gr,Fh as gs,Gp as gt,rh as gu,ji as gv,Ai as gw,Ii as gx,Wi as gy,Hi as gz,No as h,Yo as h$,gu as h0,mu as h1,fu as h2,bu as h3,yu as h4,vu as h5,$u as h6,Su as h7,Tu as h8,Cu as h9,Xr as hA,Dr as hB,$n as hC,en as hD,Zr as hE,Yr as hF,br as hG,cr as hH,Rr as hI,vo as hJ,yo as hK,wo as hL,gi as hM,ti as hN,mi as hO,ua as hP,Ei as hQ,Ri as hR,bi as hS,Ui as hT,Qn as hU,Ki as hV,Yi as hW,Ji as hX,qi as hY,eo as hZ,jo as h_,Eu as ha,su as hb,au as hc,uu as hd,cu as he,pu as hf,xu as hg,wu as hh,_r as hi,pr as hj,kr as hk,Lr as hl,vn as hm,bn as hn,rn as ho,$r as hp,Sr as hq,Ar as hr,hr as hs,En as ht,fr as hu,ur as hv,Ur as hw,Cr as hx,Vr as hy,Gr as hz,xh as i,ab as i$,Jo as i0,qo as i1,na as i2,ia as i3,sa as i4,pa as i5,ha as i6,ga as i7,_a as i8,Da as i9,In as iA,kn as iB,Ya as iC,Hp as iD,uh as iE,Wh as iF,ph as iG,lh as iH,Mh as iI,dh as iJ,Oh as iK,Ah as iL,kh as iM,_h as iN,gh as iO,Bh as iP,lg as iQ,fg as iR,cg as iS,sg as iT,km as iU,Rm as iV,Mg as iW,Fy as iX,Qf as iY,tb as iZ,nb as i_,yi as ia,La as ib,Pa as ic,Tn as id,Ka as ie,Kl as ig,kd as ih,Nd as ii,Cd as ij,Pl as ik,Ul as il,el as im,Zs as io,Ga as ip,ds as iq,cs as ir,us as is,ls as it,ou as iu,gp as iv,Ou as iw,_u as ix,Du as iy,Ru as iz,wh as j,_o as j0,Hb as j1,Ro as j2,rg as j3,vb as j4,lm as j5,Do as j6,Lo as j7,Po as j8,Jm as j9,Tf as ja,ko as jb,Bn as jc,Rg as k,Of as l,sm as m,rf as n,qn as o,Jn as p,Tr as q,Ef as r,$f as s,or as t,Th as u,vf as v,Hy as w,Pg as x,Jf as y,My as z};
|