@odigos/ui-kit 0.0.267 → 0.0.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/lib/chunks/helpers-w7krM8zT.js +9 -0
- package/lib/chunks/index-C8U7vd0v.js +257 -0
- package/lib/chunks/source-instrument-form-context-DS-dr35D.js +5 -0
- package/lib/chunks/{ui-components-Dq_j4_BI.js → ui-components-dsTdscIC.js} +213 -208
- package/lib/components/condition/index.d.ts +6 -18
- package/lib/components.js +1 -1
- package/lib/constants/instrumentation-rules/index.d.ts +1 -0
- package/lib/constants/instrumentation-rules/supported-languages.d.ts +16 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-action-drawer/helpers.d.ts +3 -3
- package/lib/containers/_forms/add-action-form/custom-fields/index.d.ts +3 -0
- package/lib/containers.js +232 -321
- package/lib/contexts/action-form-context.d.ts +8 -2
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/dynamic-field/fields.d.ts +65 -0
- package/lib/snippets/dynamic-field/index.d.ts +2 -27
- package/lib/snippets/dynamic-field/leaf.d.ts +35 -0
- package/lib/snippets.js +1 -1
- package/lib/store/useFilterStore.d.ts +4 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +6 -7
- package/lib/types/common/index.d.ts +25 -1
- package/lib/types/destinations/index.d.ts +2 -6
- package/lib/types/instrumentation-rules/index.d.ts +5 -8
- package/lib/types/workload/index.d.ts +12 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-DUhfkGj1.js +0 -155
- package/lib/chunks/odigos-context-DzuZq_D5.js +0 -9
- package/lib/chunks/source-instrument-form-context-oSSPNkMA.js +0 -5
- package/lib/containers/_forms/add-action-form/dynamic-fields/index.d.ts +0 -21
- package/lib/containers/_forms/add-destination-form/dynamic-fields/index.d.ts +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{ActionIcon as l,RenameAttributeIcon as c,PiiMaskingIcon as d,DeleteAttributeIcon as u,AddClusterInfoIcon as p,K8sLogo as h,ImageErrorIcon as g,PayloadCollectionIcon as m,HeadersCollectionIcon as f,CustomInstrumentationIcon as y,CodeAttributesIcon as b,VSquareIcon as v,XSquareIcon as E,KafkaLogo as S,RedisLogo as C,PostgresLogo as $,NginxLogo as x,MysqlLogo as w,ElixirLogo as T,SwiftLogo as O,RustLogo as N,RubyLogo as I,PhpLogo as A,CPlusPlusLogo as _,CSharpLogo as R,DotnetLogo as D,PythonLogo as k,NodejsLogo as L,GoLogo as P,JavaLogo as U,PyroscopeLogo as M,AwsXrayLogo as F,VictoriaMetricsLogo as z,UptraceLogo as B,TraceloopLogo as H,TingyunLogo as W,TempoLogo as j,TelemetryHubLogo as G,SumoLogicLogo as X,SplunkLogo as V,SignozLogo as K,SeqLogo as Y,AwsS3Logo as J,QuickwitLogo as q,GigapipeLogo as Q,QrynLogo as Z,PrometheusLogo as ee,OpenTelemetryLogo as te,OracleLogo as oe,OpsVerseLogo as ne,OpenObserveLogo as re,OneUptimeLogo as ie,OdigosLogo as ae,ObserveLogo as se,NewRelicLogo as le,MiddlewareLogo as ce,LumigoLogo as de,LokiLogo as ue,LogzioLogo as pe,LightstepLogo as he,Last9Logo as ge,KloudmateLogo as me,JaegerLogo as fe,InstanaLogo as ye,HyperDxLogo as be,HoneycombLogo as ve,GroundcoverLogo as Ee,GreptimeLogo as Se,GrafanaLogo as Ce,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as xe,ElasticApmLogo as we,DynatraceLogo as Te,DatadogLogo as Oe,Dash0Logo as Ne,CoralogixLogo as Ie,AwsCloudwatchLogo as Ae,ClickhouseLogo as _e,ChronosphereLogo as Re,ChecklyLogo as De,CauselyLogo as ke,BonreeLogo as Le,BetterStackLogo as Pe,AzureMonitorLogo as Ue,AzureBlobLogo as Me,AxiomLogo as Fe,AppDynamicsLogo as ze,AlibabaCloudLogo as Be,AlaudaLogo as He,SamplingIcon as We,InstrumentationRuleIcon as je,DestinationIcon as Ge,SourceIcon as Xe,NamespacesIcon as Ve,TracesIcon as Ke,MetricsIcon as Ye,LogsIcon as Je,CloudConnectorIcon as qe,VmLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as ot,ISquareIcon as nt,AwsLogo as rt,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as ut,AwsLambdaLogo as pt,AwsSnsLogo as ht,AwsSqsLogo as gt,AwsDynamoDbLogo as mt,AwsStsLogo as ft,OpenTelemetryLogoStripped as yt,VIcon as bt,CopyIcon as vt,SearchIcon as Et,XIcon as St,MinusIcon as Ct,ChevronUpIcon as $t,ChevronDownIcon as xt,DotsVerticalIcon as wt,EyeClosedIcon as Tt,EyeOpenIcon as Ot,ArrowIcon as Nt,ListIcon as It,CodeIcon as At,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as kt,FilterIcon as Lt}from"../icons.js";import{create as Pt}from"zustand";import{forwardRef as Ut,Fragment as Mt,useState as Ft,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as Wt,useLayoutEffect as jt,createElement as Gt}from"react";import Xt from"javascript-time-ago";import Vt from"javascript-time-ago/locale/en";import Kt,{createPortal as Yt}from"react-dom";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{persist as Qt,createJSONStorage as Zt}from"zustand/middleware";import{ErrorBoundary as eo}from"react-error-boundary";import{VList as to}from"virtua";const oo=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var no,ro,io,ao,so,lo,co,uo,po,ho,go,mo,fo,yo,bo,vo,Eo,So,Co,$o,xo,wo,To,Oo,No,Io,Ao,_o,Ro,Do,ko,Lo,Po,Uo,Mo,Fo,zo,Bo,Ho,Wo,jo,Go;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"})(no||(no={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"})(ro||(ro={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(io||(io={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ao||(ao={})),(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"})(so||(so={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(lo||(lo={})),(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"})(co||(co={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(uo||(uo={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(po||(po={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(ho||(ho={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(go||(go={})),(e=>{e.Community="community",e.Onprem="onprem"})(mo||(mo={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector"})(fo||(fo={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(yo||(yo={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(bo||(bo={})),(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"})(vo||(vo={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Eo||(Eo={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(So||(So={})),(e=>{e.DataStream="DataStream"})(Co||(Co={})),(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"})($o||($o={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(xo||(xo={})),(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"})(wo||(wo={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(To||(To={})),(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"})(Oo||(Oo={})),(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"})(No||(No={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Io||(Io={})),(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"})(Ao||(Ao={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(_o||(_o={})),(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"})(Ro||(Ro={})),(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"})(Do||(Do={})),(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"})(ko||(ko={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Lo||(Lo={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Po||(Po={})),(e=>{e.HeaderKeys="headerKeys"})(Uo||(Uo={})),(e=>{e.Java="java",e.Golang="golang"})(Mo||(Mo={}));class Xo{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 Vo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",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]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(Fo||(Fo={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(zo||(zo={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Bo||(Bo={})),(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"})(Ho||(Ho={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Wo||(Wo={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(jo||(jo={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Go||(Go={}));const Ko={[jo.Logs]:Go.Logs,[jo.Metrics]:Go.Metrics,[jo.Traces]:Go.Traces,[jo.Profiles]:Go.Profiles},Yo={[Go.Logs]:jo.Logs,[Go.Metrics]:jo.Metrics,[Go.Traces]:jo.Traces,[Go.Profiles]:jo.Profiles};var Jo,qo;(e=>{e.RolloutWorkload="RolloutWorkload"})(Jo||(Jo={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(qo||(qo={}));const Qo=e=>({[no.K8sAttributes]:h,[no.AddClusterInfo]:p,[no.DeleteAttributes]:u,[no.PiiMasking]:d,[no.RenameAttributes]:c,[no.ExtractAttribute]:l,[no.URLTemplatization]:l}[e]||g),Zo=[{type:no.K8sAttributes,icon:Qo(no.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[fo.K8s]},{type:no.AddClusterInfo,icon:Qo(no.AddClusterInfo),label:"Add Cluster Info",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[fo.K8s]},{type:no.DeleteAttributes,icon:Qo(no.DeleteAttributes),label:"Delete Attribute",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[fo.K8s]},{type:no.RenameAttributes,icon:Qo(no.RenameAttributes),label:"Rename Attribute",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[fo.K8s]},{type:no.PiiMasking,icon:Qo(no.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[fo.K8s]},{type:no.URLTemplatization,icon:Qo(no.URLTemplatization),label:"URL Templatization",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:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[fo.K8s]:oo("v1.21.0")},supportedPlatforms:[fo.K8s,fo.Vm]},{type:no.ExtractAttribute,icon:Qo(no.ExtractAttribute),label:"Extract Attribute",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:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[fo.K8s]:oo("v1.29.0")},supportedPlatforms:[fo.K8s]}],en=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),tn=(e,t,o)=>{const n=e.minVersion?.[t];return!n||oo(o)>=n},on=(e,t)=>Zo.filter(o=>en(o,e)&&tn(o,e,t)),nn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Qo(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var rn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(rn||(rn={}));const an={[rn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[rn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[rn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[rn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[rn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[rn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},sn=e=>({[Lo.CodeAttributes]:b,[Lo.CustomInstrumentation]:y,[Lo.HeadersCollection]:f,[Lo.PayloadCollection]:m,[Lo.UnknownType]:g}[e]||g),ln=[{type:Lo.CodeAttributes,icon:sn(Lo.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:[vo.Go,vo.Python,vo.JavaScript]},{type:Lo.CustomInstrumentation,icon:sn(Lo.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[vo.Go,vo.Java]},{type:Lo.HeadersCollection,icon:sn(Lo.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:[vo.Go,vo.Java,vo.JavaScript]},{type:Lo.PayloadCollection,icon:sn(Lo.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:[vo.Go,vo.JavaScript]}],cn=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:sn(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages,fields:e.fields})):[]},dn={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.'},un={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."},pn={[uo.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[uo.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[uo.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},hn="Cancel",gn="Save",mn="Edit rule",fn="Edit auto rule",yn="Create rule",bn="Delete rule",vn="Save",En="Create your first rule",Sn="No Rules Exist",Cn="No Results",$n=e=>`No rules match the search term "${e}"`,xn="Rule name",wn="Rule type",Tn="Select the type of condition that makes a trace highly relevant.",On="Rule Enabled",Nn="Rule Disabled",In="Enabled",An="Disabled",_n="Note",Rn="HTTP route",Dn="Method",kn="Keep Percentage",Ln="Keep traces with duration larger than",Pn="Keep traces with errors",Un="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Mn="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Fn="Custom percentage",zn="Disabled rule",Bn="Sample",Hn="Keep all",Wn="Drop all",jn="Operation type",Gn="HTTP route prefix",Xn="Templated path",Vn="Templated path prefix",Kn="Kafka topic",Yn="Custom duration (ms)",Jn="No preview available",qn="Server address",Qn="Drop at most this percentage of matching traces",Zn="Unnamed rule",er="Sampling Preview",tr="Source Scope",or="Unknown source",nr="Operation",rr="Duration",ir="Errors",ar="Keep Percentage",sr="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",lr="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.",cr="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",dr="Retain traces with errors from the selected services and operations.",ur="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",pr="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",hr={highlyRelevant:ur,noisy:pr,costReduction:void 0},gr="Type rule name",mr="Add note here...",fr="Type here",yr="Search source name",br="e.g. collector.my.vendor.com",vr="Optional notes (not used by the system). Add any context or details for this sampling rule.",Er="Rule will apply to all sources in the cluster",Sr="If multiple source scopes are set, they must all match simultaneously.",Cr="All sources",$r="-",xr="All",wr="Sources",Tr="Namespaces",Or="Languages",Nr="any of",Ir="AND",Ar="All operations",_r="HTTP server endpoint",Rr="HTTP client endpoint",Dr="Kafka consumer",kr="Kafka producer",Lr="Sampling Rules",Pr='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ur="Refresh",Mr="Create rule",Fr="Sampling docs",zr="75vw",Br="Delete rule?",Hr="Are you sure you want to delete this sampling rule?",Wr="Delete",jr="Cancel",Gr="Kubernetes Health Probes",Xr="Keep All Error Traces",Vr="Drop Traces Cluster-Wide",Kr="A rule with the same matching conditions already exists.",Yr="Create this rule as-is?",Jr="This rule still uses the default configuration.\nDo you want to create it anyway?",qr="Rule preview",Qr="Continue editing",Zr="Create 'Noisy Operation Kubernetes Health Probes' rule",ei="Edit 'Noisy Operation Kubernetes Health Probes' rule",ti="Automatically detect and sample health probe traces across the cluster.",oi="Create 'Highly Relevant Operations' rule",ni="Edit 'Highly Relevant Operations' rule",ri="Automatically keep all error traces across the entire cluster.",ii="Create 'Cost Reduction' rule",ai="Edit 'Cost Reduction' rule",si="Automatically drop a percentage of traces across the entire cluster.",li="Skip setup",ci="Start setup",di="Next",ui="Go to Sampling",pi="Read more",hi="Welcome to Sampling",gi="Cut costs without losing what matters",mi="Odigos sampling works in three stages:",fi="Filter noisy traffic",yi="Remove non-actionable traces like health checks.",bi="Guarantee highly relevance operations",vi="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ei="Reduce cost",Si="Sample routine traffic using percentages.",Ci="Sampling does not drop individual spans - it keeps or drops the entire trace.",$i="Filter noisy operations",xi="Cut traces with little or no observability value (health-checks, metric scarping, etc)",wi="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.",Ti="Preset Rules",Oi="Kubernetes Health Probes",Ni="Automatically ignore health checks",Ii="You can review, adjust, and add additional custom rules later.",Ai="Choose your sampling strategy",_i="Pick the approach that best fits your balance of cost vs data-completeness",Ri="Keep List",Di="Budget Friendly",ki="Define which traces must be kept, while all others are sampled by default to minimize cost.",Li="Cost-oriented - keeps only what you explicitly select.",Pi="Best for very large clusters with high volumes of traces and high costs.",Ui="Higher risk of missing important traces without ongoing review.",Mi="Drop List",Fi="Safe Choice",zi="Define which traces must be aggressively dropped, while all others are kept by default.",Bi="Preserves most data unless explicitly filtered.",Hi="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Wi="Advanced",ji="Maximum Flexibility",Gi="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Xi="'Keep List' profile",Vi="Protect important traces",Ki="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:",Yi="Traces with errors",Ji="Slow requests (duration above threshold)",qi="Mission-Critical endpoints or services",Qi="Services under test or evaluation",Zi="New deployments",ea="You can review, adjust, and add rules once onboarding is complete.",ta="Common Rules",oa="Preset Rules",na="Error collection - entire cluster",ra="Keep all traces with errors",ia="Ambient sampling percentage",aa="'Drop List' profile",sa="Reduce high-volume traffic",la="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.",ca="Advanced Configuration",da="Configure sampling rules",ua="Advanced mode allows you to configure all sampling categories:",pa="Noise Filtering - remove non-actionable traces",ha="Highly Relevance - guarantee important traces are kept",ga='Cost Control - drop traces for "Normal" operations',ma="Rules can target:",fa="Services",ya="HTTP Endpoints",ba="DB Operations",va="Errors",Ea="Latency and more...",Sa="Sampling configured successfully!",Ca="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",$a="Odigos will now:",xa="Filter noisy operations",wa="Guarantee important traces",Ta="Reduce cost using controlled sampling",Oa="Recommended",Na={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."},Ia={noisy:Zr,highlyRelevant:oi,costReduction:ii},Aa={noisy:ei,highlyRelevant:ni,costReduction:ai},_a={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Ra=[{id:jo.Logs,value:"Logs"},{id:jo.Metrics,value:"Metrics"},{id:jo.Traces,value:"Traces"},{id:jo.Profiles,value:"Profiles"}],Da=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var ka,La,Pa;(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"})(ka||(ka={})),(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"})(La||(La={})),(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"})(Pa||(Pa={}));const Ua=new Set(Object.values(Pa)),Ma=(e,t)=>{if("string"!=typeof(o=t)||!Ua.has(o))return t;var o;switch(t){case Pa.Primary:return e.v2.colors.white[500];case Pa.Secondary:return e.v2.colors.silver[200];case Pa.Tertiary:return e.v2.colors.black[500];case Pa.Disable:return e.v2.colors.grey[400];case Pa.Error:return e.v2.colors.red[500];case Pa.Mandatory:return e.v2.colors.red[600];case Pa.Link:return e.v2.colors.purple[400];case Pa.Success:return e.v2.colors.green[400];default:return}},Fa=n.p`
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{ActionIcon as l,RenameAttributeIcon as c,PiiMaskingIcon as d,DeleteAttributeIcon as u,AddClusterInfoIcon as p,K8sLogo as h,ImageErrorIcon as g,PayloadCollectionIcon as m,HeadersCollectionIcon as f,CustomInstrumentationIcon as y,CodeAttributesIcon as b,VSquareIcon as v,XSquareIcon as E,KafkaLogo as S,RedisLogo as $,PostgresLogo as C,NginxLogo as x,MysqlLogo as w,ElixirLogo as T,SwiftLogo as O,RustLogo as N,RubyLogo as I,PhpLogo as A,CPlusPlusLogo as _,CSharpLogo as R,DotnetLogo as D,PythonLogo as k,NodejsLogo as L,GoLogo as P,JavaLogo as U,PyroscopeLogo as M,AwsXrayLogo as F,VictoriaMetricsLogo as z,UptraceLogo as B,TraceloopLogo as H,TingyunLogo as W,TempoLogo as j,TelemetryHubLogo as G,SumoLogicLogo as X,SplunkLogo as V,SignozLogo as K,SeqLogo as Y,AwsS3Logo as J,QuickwitLogo as q,GigapipeLogo as Q,QrynLogo as Z,PrometheusLogo as ee,OpenTelemetryLogo as te,OracleLogo as oe,OpsVerseLogo as ne,OpenObserveLogo as re,OneUptimeLogo as ie,OdigosLogo as ae,ObserveLogo as se,NewRelicLogo as le,MiddlewareLogo as ce,LumigoLogo as de,LokiLogo as ue,LogzioLogo as pe,LightstepLogo as he,Last9Logo as ge,KloudmateLogo as me,JaegerLogo as fe,InstanaLogo as ye,HyperDxLogo as be,HoneycombLogo as ve,GroundcoverLogo as Ee,GreptimeLogo as Se,GrafanaLogo as $e,GoogleCloudPlatformLogo as Ce,ElasticSearchLogo as xe,ElasticApmLogo as we,DynatraceLogo as Te,DatadogLogo as Oe,Dash0Logo as Ne,CoralogixLogo as Ie,AwsCloudwatchLogo as Ae,ClickhouseLogo as _e,ChronosphereLogo as Re,ChecklyLogo as De,CauselyLogo as ke,BonreeLogo as Le,BetterStackLogo as Pe,AzureMonitorLogo as Ue,AzureBlobLogo as Me,AxiomLogo as Fe,AppDynamicsLogo as ze,AlibabaCloudLogo as Be,AlaudaLogo as He,SamplingIcon as We,InstrumentationRuleIcon as je,DestinationIcon as Ge,SourceIcon as Xe,NamespacesIcon as Ve,TracesIcon as Ke,MetricsIcon as Ye,LogsIcon as Je,CloudConnectorIcon as qe,VmLogo as Qe,DotsHorizontalIcon as Ze,QuestionCircleIcon as et,ExclamationTriangleIcon as tt,ExclamationCircleIcon as ot,ISquareIcon as nt,AwsLogo as rt,AwsSecretsManagerLogo as it,AwsStepFunctionsLogo as at,AwsEventBridgeLogo as st,AwsBedrockLogo as lt,AwsApiGatewayLogo as ct,AwsEc2Logo as dt,AwsKinesisLogo as ut,AwsLambdaLogo as pt,AwsSnsLogo as ht,AwsSqsLogo as gt,AwsDynamoDbLogo as mt,AwsStsLogo as ft,OpenTelemetryLogoStripped as yt,CodeIcon as bt,VIcon as vt,CopyIcon as Et,SearchIcon as St,XIcon as $t,MinusIcon as Ct,ChevronUpIcon as xt,ChevronDownIcon as wt,DotsVerticalIcon as Tt,EyeClosedIcon as Ot,EyeOpenIcon as Nt,ArrowIcon as It,ListIcon as At,PlusIcon as _t,TrashIcon as Rt,DotIcon as Dt,ArrowRightIcon as kt,FilterIcon as Lt}from"../icons.js";import{create as Pt}from"zustand";import{forwardRef as Ut,Fragment as Mt,useState as Ft,useEffect as zt,useCallback as Bt,useMemo as Ht,useRef as Wt,useLayoutEffect as jt,createElement as Gt}from"react";import Xt from"javascript-time-ago";import Vt from"javascript-time-ago/locale/en";import Kt,{createPortal as Yt}from"react-dom";import{Highlight as Jt,themes as qt}from"prism-react-renderer";import{persist as Qt,createJSONStorage as Zt}from"zustand/middleware";import{ErrorBoundary as eo}from"react-error-boundary";import{VList as to}from"virtua";const oo=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var no,ro,io,ao,so,lo,co,uo,po,ho,go,mo,fo,yo,bo,vo,Eo,So,$o,Co,xo,wo,To,Oo,No,Io,Ao,_o,Ro,Do,ko,Lo,Po,Uo,Mo,Fo,zo,Bo,Ho,Wo,jo,Go;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"})(no||(no={})),(e=>{e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute",e.Scopes="scopes"})(ro||(ro={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(io||(io={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(ao||(ao={})),(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"})(so||(so={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(lo||(lo={})),(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"})(co||(co={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(uo||(uo={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(po||(po={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(ho||(ho={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(go||(go={})),(e=>{e.Community="community",e.Onprem="onprem"})(mo||(mo={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector"})(fo||(fo={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(yo||(yo={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(bo||(bo={})),(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"})(vo||(vo={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(Eo||(Eo={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"})(So||(So={})),(e=>{e.DataStream="DataStream"})($o||($o={})),(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"})(Co||(Co={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(xo||(xo={})),(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"})(wo||(wo={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(To||(To={})),(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"})(Oo||(Oo={})),(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"})(No||(No={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Io||(Io={})),(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"})(Ao||(Ao={})),(e=>{e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(_o||(_o={})),(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"})(Ro||(Ro={})),(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"})(Do||(Do={})),(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"})(ko||(ko={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Lo||(Lo={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Po||(Po={})),(e=>{e.HeaderKeys="headerKeys"})(Uo||(Uo={})),(e=>{e.Java="java",e.Golang="golang"})(Mo||(Mo={}));class Xo{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 Vo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",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]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(Fo||(Fo={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(zo||(zo={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Bo||(Bo={})),(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"})(Ho||(Ho={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Wo||(Wo={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(jo||(jo={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Go||(Go={}));const Ko={[jo.Logs]:Go.Logs,[jo.Metrics]:Go.Metrics,[jo.Traces]:Go.Traces,[jo.Profiles]:Go.Profiles},Yo={[Go.Logs]:jo.Logs,[Go.Metrics]:jo.Metrics,[Go.Traces]:jo.Traces,[Go.Profiles]:jo.Profiles};var Jo,qo;(e=>{e.RolloutWorkload="RolloutWorkload"})(Jo||(Jo={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(qo||(qo={}));const Qo=e=>({[no.K8sAttributes]:h,[no.AddClusterInfo]:p,[no.DeleteAttributes]:u,[no.PiiMasking]:d,[no.RenameAttributes]:c,[no.ExtractAttribute]:l,[no.URLTemplatization]:l}[e]||g),Zo=[{type:no.K8sAttributes,icon:Qo(no.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[fo.K8s]},{type:no.AddClusterInfo,icon:Qo(no.AddClusterInfo),label:"Add Cluster Info",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[fo.K8s]},{type:no.DeleteAttributes,icon:Qo(no.DeleteAttributes),label:"Delete Attribute",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[fo.K8s]},{type:no.RenameAttributes,icon:Qo(no.RenameAttributes),label:"Rename Attribute",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:[jo.Traces,jo.Metrics,jo.Logs,jo.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[fo.K8s]},{type:no.PiiMasking,icon:Qo(no.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[fo.K8s]},{type:no.URLTemplatization,icon:Qo(no.URLTemplatization),label:"URL Templatization",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:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[fo.K8s]:oo("v1.21.0")},supportedPlatforms:[fo.K8s,fo.Vm]},{type:no.ExtractAttribute,icon:Qo(no.ExtractAttribute),label:"Extract Attribute",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:[jo.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[fo.K8s]:oo("v1.29.0")},supportedPlatforms:[fo.K8s]}],en=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),tn=(e,t,o)=>{const n=e.minVersion?.[t];return!n||oo(o)>=n},on=(e,t)=>Zo.filter(o=>en(o,e)&&tn(o,e,t)),nn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Qo(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var rn;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(rn||(rn={}));const an={[rn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[rn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[rn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[rn.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[rn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[rn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},sn=e=>({[Lo.CodeAttributes]:b,[Lo.CustomInstrumentation]:y,[Lo.HeadersCollection]:f,[Lo.PayloadCollection]:m,[Lo.UnknownType]:g}[e]||g),ln=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var cn,dn,un;(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"})(cn||(cn={})),(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"})(dn||(dn={})),(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"})(un||(un={}));const pn=new Set(Object.values(un)),hn=(e,t)=>{if("string"!=typeof(o=t)||!pn.has(o))return t;var o;switch(t){case un.Primary:return e.v2.colors.white[500];case un.Secondary:return e.v2.colors.silver[200];case un.Tertiary:return e.v2.colors.black[500];case un.Disable:return e.v2.colors.grey[400];case un.Error:return e.v2.colors.red[500];case un.Mandatory:return e.v2.colors.red[600];case un.Link:return e.v2.colors.purple[400];case un.Success:return e.v2.colors.green[400];default:return}},gn=n.p`
|
|
2
2
|
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>
|
|
3
|
+
color: ${({$color:e,theme:t})=>hn(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
5
|
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
6
|
font-weight: ${({$weight:e})=>e};
|
|
@@ -38,11 +38,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,za=Ut(({children:o,variant:n=ka.P,color:r,size:i=La.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=o?.toString().split("\n")||[];return e(Fa,{ref:y,as:n,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b.map((o,n)=>t(Mt,{children:[o,n!==b.length-1&&e("br",{})]},`typography-${n}-${o}`))})});za.displayName="Typography";const Ba="https://docs.odigos.io",Ha="default",Wa="this-cluster",ja="This Cluster",Ga={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Xa={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 be in the format of "major.minor.patch" (e.g. 1.0.0)'},Va={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No 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",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",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"},Ka={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"},Ya=(e,t)=>e===wo.Success?Va.HEALTHY:e===wo.Error?Va.NOT_HEALTHY:Da(t),Ja=e=>{if(!e)return null;switch(e){case ko.Irrelevant:return null;case ko.Failure:case ko.Error:return wo.Error;case ko.Notice:return wo.Warning;case ko.Pending:case ko.Waiting:return wo.Loading;case ko.Unsupported:case ko.Disabled:return wo.Disabled;case ko.Success:return wo.Success;case ko.Unknown:default:return wo.Info}},qa=(e,t,o="reason",n)=>{const r=Ja(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===wo.Success?v:E),label:n||("reason"===o?Da(e?.reasonEnum):Ya(r,e?.reasonEnum)),tooltip:e?.message,textSize:La.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Qa=e=>e.charAt(0).toUpperCase()+e.slice(1),Za=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=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,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]="object"==typeof i&&null!==i?JSON.stringify(o(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(o(r)):e[n]=r}return e},{})};var es;(e=>{e.SIGNALS="SIGNALS"})(es||(es={}));const ts=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,i]=e;if(n===es.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=o.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},os=e=>JSON.parse(JSON.stringify(e)),ns=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),rs=(e,t,o)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=o},is=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},as=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},ss=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],ls=(e,t)=>{let o=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));o=o.filter(({runtimeInfo:t,containers:o})=>t?.detectedLanguages?.some(t=>e.has(t))||o?.some(t=>{const o=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!o&&e.has(o)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));o=o.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(o=o.filter(e=>Ja(e.workloadOdigosHealthStatus?.status)===wo.Error)),o},cs=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Ha&&!e.dataStreamNames?.length):[],ds=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],i=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${i}[${t}]`;null!==e&&"object"==typeof e?ds(e,n,o):o[n]=e}):o[i]=r:ds(r,i,o)}return o},us=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]}`},ps=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`}},hs=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},gs=e=>{if(!e)return ms([]);if(Array.isArray(e))return ms(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const o=Ja(t.status);o&&e.push({status:o,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return ms(t)},ms=e=>{const t=e?.filter(({status:e})=>e===wo.Error),o=e?.filter(({status:e})=>e===wo.Warning),n=e?.filter(({status:e})=>e===wo.Disabled),r=e?.filter(({status:e})=>e===wo.Loading),i=t.length>0,a=o.length>0,s=n.length>0;return{errors:t,hasErrors:i,warnings:o,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?wo.Error:a?wo.Warning:s?wo.Info:void 0}},fs=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},ys=e=>({[vo.Java]:U,[vo.Go]:P,[vo.JavaScript]:L,[vo.Python]:k,[vo.DotNet]:D,[vo.CSharp]:R,[vo.CPlusPlus]:_,[vo.Php]:A,[vo.Ruby]:I,[vo.Rust]:N,[vo.Swift]:O,[vo.Elixir]:T,[vo.MySql]:w,[vo.Nginx]:x,[vo.Postgres]:$,[vo.Redis]:C,[vo.Kafka]:S,[vo.Ignored]:g,[vo.Unknown]:g,[vo.Processing]:g,[vo.NoContainers]:g,[vo.NoRunningPods]:g}[e]||g),bs=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown:vo.Unknown,vs=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Es=e=>e?.map(e=>ys(bs(e)))||[],Ss=e=>e?.map(e=>ys(e))||[],Cs=e=>e.runtimeInfo?.detectedLanguages?.length?Ss(e.runtimeInfo?.detectedLanguages):Es(e.containers),$s=(e,t)=>{const o={[_o.Alauda]:He,[_o.AlibabaCloud]:Be,[_o.AppDynamics]:ze,[_o.Axiom]:Fe,[_o.AzureBlob]:Me,[_o.AzureMonitor]:Ue,[_o.BetterStack]:Pe,[_o.Bonree]:Le,[_o.Causely]:ke,[_o.Checkly]:De,[_o.Chronosphere]:Re,[_o.ClickHouse]:_e,[_o.CloudWatch]:Ae,[_o.Coralogix]:Ie,[_o.Dash0]:Ne,[_o.Datadog]:Oe,[_o.Dynamic]:te,[_o.Dynatrace]:Te,[_o.ElasticApm]:we,[_o.ElasticSearch]:xe,[_o.GoogleCloud]:$e,[_o.GoogleCloudOTLP]:$e,[_o.GrafanaCloudLoki]:Ce,[_o.GrafanaCloudPrometheus]:Ce,[_o.GrafanaCloudTempo]:Ce,[_o.Greptime]:Se,[_o.Groundcover]:Ee,[_o.Honeycomb]:ve,[_o.HyperDX]:be,[_o.Instana]:ye,[_o.Jaeger]:fe,[_o.Kafka]:S,[_o.Kloudmate]:me,[_o.Last9]:ge,[_o.Lightstep]:he,[_o.LogzIo]:pe,[_o.Loki]:ue,[_o.Lumigo]:de,[_o.Middleware]:ce,[_o.NewRelic]:le,[_o.Observe]:se,[_o.Odigos]:ae,[_o.OneUptime]:ie,[_o.OpenObserve]:re,[_o.Opsverse]:ne,[_o.Oracle]:oe,[_o.OTLP]:te,[_o.OTLPHttp]:te,[_o.Prometheus]:ee,[_o.Qryn]:Z,[_o.QrynOss]:Q,[_o.Quickwit]:q,[_o.S3]:J,[_o.Seq]:Y,[_o.Signalfx]:V,[_o.Signoz]:K,[_o.Splunk]:V,[_o.SplunkSapm]:V,[_o.SplunkOtlp]:V,[_o.SumoLogic]:X,[_o.TelemetryHub]:G,[_o.Tempo]:j,[_o.Tingyun]:W,[_o.Traceloop]:H,[_o.Uptrace]:B,[_o.VictoriaMetrics]:z,[_o.VictoriaMetricsCloud]:z,[_o.XRay]:F,[_o.Pyroscope]:M}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xs=e=>({[So.Namespace]:Ve,[So.Source]:Xe,[So.Destination]:Ge,[So.Action]:l,[So.InstrumentationRule]:je,[So.SamplingRule]:We}[e]),ws=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Ts=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},Os=e=>Ts(ws(e)),Ns=(e,t,o)=>{const{extended:n,prioritizeDisplayName:r}=o||{};let i="",a="";switch(t){case So.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case So.Source:const o=e;i=o.id.name,a=o.serviceName||"";break;case So.Action:const n=e;i=n.type,a=n.name||"";break;case So.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case So.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):r&&a||i},Is=(e,t)=>{if(t===So.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},As=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown,_s=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?vo.Processing:vo.NoRunningPods;const n=o?.filter(e=>As(e)!==vo.Ignored);if(!n.length)return vo.NoContainers;const r=n.find(e=>As(e)!==vo.Unknown);return r?As(r):vo.Unknown},Rs=(e,t,o)=>(t===So.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},Ds=e=>({[jo.Logs]:Je,[jo.Metrics]:Ye,[jo.Traces]:Ke,[jo.Profiles]:ae}[e]),ks=(e,t)=>Object.values(La).reduce((o,n)=>Math.abs(t[n]-e)<Math.abs(t[o]-e)?n:o),Ls=e=>e?{[fo.K8s]:h,[fo.Vm]:Qe,[fo.Connector]:qe}[e]:ae,Ps=e=>e?{[fo.K8s]:"Kubernetes Cluster",[fo.Vm]:"Virtual Machine",[fo.Connector]:"Cloud Connector"}[e]:"Unknown",Us=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...Us(e,t,o)),r}):[]},Ms={"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"},Fs=e=>{if(!e)return"";if(Ms[e])return Ms[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},zs=(e,t)=>{if(t===So.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Bs=(e,t,o)=>{switch(o=o??"500",t){case wo.Default:return e.v2.colors.purple[o];case wo.Info:return e.v2.colors.blue[o];case wo.Error:return e.v2.colors.red[o];case wo.Warning:return e.v2.colors.yellow[o];case wo.Success:return e.v2.colors.green[o];case wo.Loading:case wo.Disabled:case wo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},Hs=e=>{switch(e){case zo.Updating:case Bo.Pending:case Ho.ContainerCreating:case Wo.Waiting:return wo.Info;case zo.Healthy:case Bo.Succeeded:case Bo.Running:case Ho.Running:case Wo.Running:return wo.Success;case zo.Degraded:return wo.Warning;case zo.Failed:case Bo.Failed:case Ho.Error:case Ho.CrashLoopBackOff:case Ho.CreateContainerError:case Ho.CreateContainerConfigError:case Ho.ErrImagePull:case Ho.ErrImageNeverPull:case Ho.ImagePullBackOff:case Ho.InvalidImageName:case Ho.RegistryUnavailable:case Ho.NetworkNotReady:case Ho.OOMKilled:case Ho.ContainerCannotRun:case Wo.Terminated:case Ho.DeadlineExceeded:case Ho.StartError:return wo.Error;case zo.Down:case Ho.Completed:return wo.Disabled;case zo.Unknown:case Bo.Unknown:default:return wo.Unknown}},Ws=n.div`
|
|
41
|
+
`,mn=Ut(({children:o,variant:n=cn.P,color:r,size:i=dn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=o?.toString().split("\n")||[];return e(gn,{ref:y,as:n,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b.map((o,n)=>t(Mt,{children:[o,n!==b.length-1&&e("br",{})]},`typography-${n}-${o}`))})});mn.displayName="Typography";const fn="https://docs.odigos.io",yn="default",bn="this-cluster",vn="This Cluster",En={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Sn={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 be in the format of "major.minor.patch" (e.g. 1.0.0)'},$n={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No 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",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",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"},Cn={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"},xn=(e,t)=>e===wo.Success?$n.HEALTHY:e===wo.Error?$n.NOT_HEALTHY:ln(t),wn=e=>{if(!e)return null;switch(e){case ko.Irrelevant:return null;case ko.Failure:case ko.Error:return wo.Error;case ko.Notice:return wo.Warning;case ko.Pending:case ko.Waiting:return wo.Loading;case ko.Unsupported:case ko.Disabled:return wo.Disabled;case ko.Success:return wo.Success;case ko.Unknown:default:return wo.Info}},Tn=(e,t,o="reason",n)=>{const r=wn(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===wo.Success?v:E),label:n||("reason"===o?ln(e?.reasonEnum):xn(r,e?.reasonEnum)),tooltip:e?.message,textSize:dn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},On=e=>e.charAt(0).toUpperCase()+e.slice(1),Nn=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=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,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]="object"==typeof i&&null!==i?JSON.stringify(o(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]=JSON.stringify(o(r)):e[n]=r}return e},{})};var In;(e=>{e.SIGNALS="SIGNALS"})(In||(In={}));const An=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,r,i]=e;if(n===In.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=o.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},_n=e=>JSON.parse(JSON.stringify(e)),Rn=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Dn=(e,t,o)=>{const n=t.split(".");let r=e;for(let e=0;e<n.length-1;e++)n[e]in r&&"object"==typeof r[n[e]]||(r[n[e]]={}),r=r[n[e]];r[n[n.length-1]]=o},kn=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},Ln=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Pn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Un=(e,t)=>{let o=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));o=o.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));o=o.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));o=o.filter(({runtimeInfo:t,containers:o})=>t?.detectedLanguages?.some(t=>e.has(t))||o?.some(t=>{const o=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!o&&e.has(o)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));o=o.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));o=o.filter(({instrumentationReport:t})=>{const o=t?.state||t?.progressStage;return!!o&&e.has(o)})}return t.onlyErrors&&(o=o.filter(e=>wn(e.workloadOdigosHealthStatus?.status)===wo.Error)),o},Mn=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===yn&&!e.dataStreamNames?.length):[],Fn=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],i=t?`${t}.${n}`:n;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const n=`${i}[${t}]`;null!==e&&"object"==typeof e?Fn(e,n,o):o[n]=e}):o[i]=r:Fn(r,i,o)}return o},zn=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]}`},Bn=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`}},Hn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},Wn=e=>{if(!e)return jn([]);if(Array.isArray(e))return jn(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const o=wn(t.status);o&&e.push({status:o,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return jn(t)},jn=e=>{const t=e?.filter(({status:e})=>e===wo.Error),o=e?.filter(({status:e})=>e===wo.Warning),n=e?.filter(({status:e})=>e===wo.Disabled),r=e?.filter(({status:e})=>e===wo.Loading),i=t.length>0,a=o.length>0,s=n.length>0;return{errors:t,hasErrors:i,warnings:o,hasWarnings:a,disableds:n,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?wo.Error:a?wo.Warning:s?wo.Info:void 0}},Gn=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Xn=e=>({[vo.Java]:U,[vo.Go]:P,[vo.JavaScript]:L,[vo.Python]:k,[vo.DotNet]:D,[vo.CSharp]:R,[vo.CPlusPlus]:_,[vo.Php]:A,[vo.Ruby]:I,[vo.Rust]:N,[vo.Swift]:O,[vo.Elixir]:T,[vo.MySql]:w,[vo.Nginx]:x,[vo.Postgres]:C,[vo.Redis]:$,[vo.Kafka]:S,[vo.Ignored]:g,[vo.Unknown]:g,[vo.Processing]:g,[vo.NoContainers]:g,[vo.NoRunningPods]:g}[e]||g),Vn=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown:vo.Unknown,Kn=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Yn=e=>e?.map(e=>Xn(Vn(e)))||[],Jn=e=>e?.map(e=>Xn(e))||[],qn=e=>e.runtimeInfo?.detectedLanguages?.length?Jn(e.runtimeInfo?.detectedLanguages):Yn(e.containers),Qn=(e,t)=>{const o={[_o.Alauda]:He,[_o.AlibabaCloud]:Be,[_o.AppDynamics]:ze,[_o.Axiom]:Fe,[_o.AzureBlob]:Me,[_o.AzureMonitor]:Ue,[_o.BetterStack]:Pe,[_o.Bonree]:Le,[_o.Causely]:ke,[_o.Checkly]:De,[_o.Chronosphere]:Re,[_o.ClickHouse]:_e,[_o.CloudWatch]:Ae,[_o.Coralogix]:Ie,[_o.Dash0]:Ne,[_o.Datadog]:Oe,[_o.Dynamic]:te,[_o.Dynatrace]:Te,[_o.ElasticApm]:we,[_o.ElasticSearch]:xe,[_o.GoogleCloud]:Ce,[_o.GoogleCloudOTLP]:Ce,[_o.GrafanaCloudLoki]:$e,[_o.GrafanaCloudPrometheus]:$e,[_o.GrafanaCloudTempo]:$e,[_o.Greptime]:Se,[_o.Groundcover]:Ee,[_o.Honeycomb]:ve,[_o.HyperDX]:be,[_o.Instana]:ye,[_o.Jaeger]:fe,[_o.Kafka]:S,[_o.Kloudmate]:me,[_o.Last9]:ge,[_o.Lightstep]:he,[_o.LogzIo]:pe,[_o.Loki]:ue,[_o.Lumigo]:de,[_o.Middleware]:ce,[_o.NewRelic]:le,[_o.Observe]:se,[_o.Odigos]:ae,[_o.OneUptime]:ie,[_o.OpenObserve]:re,[_o.Opsverse]:ne,[_o.Oracle]:oe,[_o.OTLP]:te,[_o.OTLPHttp]:te,[_o.Prometheus]:ee,[_o.Qryn]:Z,[_o.QrynOss]:Q,[_o.Quickwit]:q,[_o.S3]:J,[_o.Seq]:Y,[_o.Signalfx]:V,[_o.Signoz]:K,[_o.Splunk]:V,[_o.SplunkSapm]:V,[_o.SplunkOtlp]:V,[_o.SumoLogic]:X,[_o.TelemetryHub]:G,[_o.Tempo]:j,[_o.Tingyun]:W,[_o.Traceloop]:H,[_o.Uptrace]:B,[_o.VictoriaMetrics]:z,[_o.VictoriaMetricsCloud]:z,[_o.XRay]:F,[_o.Pyroscope]:M}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Zn=e=>({[So.Namespace]:Ve,[So.Source]:Xe,[So.Destination]:Ge,[So.Action]:l,[So.InstrumentationRule]:je,[So.SamplingRule]:We}[e]),er=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,tr=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},or=e=>tr(er(e)),nr=(e,t,o)=>{const{extended:n,prioritizeDisplayName:r}=o||{};let i="",a="";switch(t){case So.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case So.Source:const o=e;i=o.id.name,a=o.serviceName||"";break;case So.Action:const n=e;i=n.type,a=n.name||"";break;case So.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case So.Namespace:const s=e;i=s.name,a=s.name}return n?i+(a&&a!==i?` (${a})`:""):r&&a||i},rr=(e,t)=>{if(t===So.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},ir=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??vo.Unknown,ar=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?vo.Processing:vo.NoRunningPods;const n=o?.filter(e=>ir(e)!==vo.Ignored);if(!n.length)return vo.NoContainers;const r=n.find(e=>ir(e)!==vo.Unknown);return r?ir(r):vo.Unknown},sr=(e,t,o)=>(t===So.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},lr=e=>({[jo.Logs]:Je,[jo.Metrics]:Ye,[jo.Traces]:Ke,[jo.Profiles]:ae}[e]),cr=(e,t)=>Object.values(dn).reduce((o,n)=>Math.abs(t[n]-e)<Math.abs(t[o]-e)?n:o),dr=e=>e?{[fo.K8s]:h,[fo.Vm]:Qe,[fo.Connector]:qe}[e]:ae,ur=e=>e?{[fo.K8s]:"Kubernetes Cluster",[fo.Vm]:"Virtual Machine",[fo.Connector]:"Cloud Connector"}[e]:"Unknown",pr=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],r=[];return void 0!==n&&(Array.isArray(n)?r.push(...n):r.push(n)),r.push(...pr(e,t,o)),r}):[]},hr={"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"},gr=e=>{if(!e)return"";if(hr[e])return hr[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},mr=(e,t)=>{if(t===So.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},fr=(e,t,o)=>{switch(o=o??"500",t){case wo.Default:return e.v2.colors.purple[o];case wo.Info:return e.v2.colors.blue[o];case wo.Error:return e.v2.colors.red[o];case wo.Warning:return e.v2.colors.yellow[o];case wo.Success:return e.v2.colors.green[o];case wo.Loading:case wo.Disabled:case wo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},yr=e=>{switch(e){case zo.Updating:case Bo.Pending:case Ho.ContainerCreating:case Wo.Waiting:return wo.Info;case zo.Healthy:case Bo.Succeeded:case Bo.Running:case Ho.Running:case Wo.Running:return wo.Success;case zo.Degraded:return wo.Warning;case zo.Failed:case Bo.Failed:case Ho.Error:case Ho.CrashLoopBackOff:case Ho.CreateContainerError:case Ho.CreateContainerConfigError:case Ho.ErrImagePull:case Ho.ErrImageNeverPull:case Ho.ImagePullBackOff:case Ho.InvalidImageName:case Ho.RegistryUnavailable:case Ho.NetworkNotReady:case Ho.OOMKilled:case Ho.ContainerCannotRun:case Wo.Terminated:case Ho.DeadlineExceeded:case Ho.StartError:return wo.Error;case zo.Down:case Ho.Completed:return wo.Disabled;case zo.Unknown:case Bo.Unknown:default:return wo.Unknown}},br=n.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,vr=n.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -56,12 +56,12 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Er=n(mn)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,Sr=({percentage:o})=>t(br,{children:[e(vr,{}),"number"==typeof o?e(Er,{size:dn.M,weight:500,nowrap:!0,children:`${o}%`}):null]}),$r={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Cr(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const n=(e.match(/[^0-9]*$/)||"").toString();return $r[n]?{value:t,unit:n}:{value:t,unit:"px"}}function xr(e){const t=Cr(e);return`${t.value}${t.unit}`}const wr=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),Tr=({loading:o=!0,color:n,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=n||d.text.secondary;if(!o)return null;const{value:p}=Cr(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:xr(1.5),height:xr(4),borderRadius:xr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${wr} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Or=n.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -69,7 +69,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,
|
|
72
|
+
`,Nr=({scale:t,icon:o})=>{const n=i();return e(Or,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(Or,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(Or,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(Or,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(Or,{$size:23*t,$color:"#50F6E8",children:e(o,{size:16*t,fill:n.v2.colors.black[500]})})})})})})},Ir=434,Ar=635,_r=n.div`
|
|
73
73
|
width: ${434}px;
|
|
74
74
|
height: ${635}px;
|
|
75
75
|
display: flex;
|
|
@@ -79,12 +79,12 @@ import{jsx as e,jsxs as t,Fragment as o}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
|
+
`,Rr=n.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Dr=()=>t(_r,{children:[e(Rr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(Rr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Rr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Rr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(Rr,{children:e(ae,{size:112})})]}),kr=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{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Lr=({scale:t=1,icon:o})=>{const n=i();return e(kr,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(kr,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(kr,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(kr,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(kr,{$size:39*t,$color:n.v2.colors.purple[500],children:e(o,{size:32*t,fill:n.v2.colors.white[500]})})})})})})},Pr=n.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -102,7 +102,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,Ur=n.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,9 +112,9 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,Mr=n.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,Fr=n.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -126,7 +126,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
126
126
|
margin: ${({$margin:e="unset"})=>e};
|
|
127
127
|
padding: ${({$padding:e="unset"})=>e};
|
|
128
128
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,
|
|
129
|
+
`,zr=n.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,18 +138,18 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
138
138
|
margin: ${({$margin:e="unset"})=>e};
|
|
139
139
|
padding: ${({$padding:e="unset"})=>e};
|
|
140
140
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,
|
|
141
|
+
`,Br=n(zr)`
|
|
142
142
|
width: ${({$width:e})=>e||"100%"};
|
|
143
143
|
height: ${({$height:e})=>e||"unset"};
|
|
144
144
|
padding: ${({$padding:e})=>e||"unset"};
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
147
|
-
`,
|
|
147
|
+
`,Hr=n.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
padding: 12px;
|
|
151
151
|
overflow-y: scroll;
|
|
152
|
-
`,
|
|
152
|
+
`,Wr=n.div`
|
|
153
153
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -162,37 +162,37 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
162
162
|
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
163
163
|
background: rgba(0, 0, 0, 0.6);
|
|
164
164
|
backdrop-filter: blur(2px);
|
|
165
|
-
`,
|
|
165
|
+
`,jr=n.div`
|
|
166
166
|
width: 800px;
|
|
167
167
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
168
168
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
169
169
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
170
170
|
padding: 0 2px;
|
|
171
171
|
overflow-y: scroll;
|
|
172
|
-
`,
|
|
172
|
+
`,Gr=n(zr)`
|
|
173
173
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
174
174
|
width: 100%;
|
|
175
|
-
`,
|
|
175
|
+
`,Xr=n(Fr)`
|
|
176
176
|
gap: 16px;
|
|
177
177
|
padding: 16px;
|
|
178
|
-
`,
|
|
178
|
+
`,Vr=n.div`
|
|
179
179
|
width: 100%;
|
|
180
180
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
181
181
|
overflow-y: auto;
|
|
182
|
-
`,
|
|
182
|
+
`,Kr=a`
|
|
183
183
|
0% {
|
|
184
184
|
background-position: 0% 50%;
|
|
185
185
|
}
|
|
186
186
|
100% {
|
|
187
187
|
background-position: 100% 50%;
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,Yr=n(mn)`
|
|
190
190
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
191
191
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
192
192
|
background-clip: text;
|
|
193
193
|
color: transparent;
|
|
194
|
-
animation: ${
|
|
195
|
-
`,Sl=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),n=Math.floor(o/60),r=o%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Cl=({icon:o,title:n,titleColor:r,titleSize:a=La.S,subTitle:s,subTitleColor:l,subTitleSize:c=La.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?Sl(d):"");zt(()=>{if(!d)return;S(Sl(d));const e=setInterval(()=>S(Sl(d)),1e3);return()=>clearInterval(e)},[d]);const C=r||v.v2.colors.white[500],$=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return t(ul,{$gap:16,$alignItems:"center",children:[y?e(Zs,{scale:1.7,icon:b}):h?e(Xs,{percentage:f}):g?e(qs,{scale:m}):null,(n||s||d||o||u)&&t(ul,{$gap:8,$alignItems:"center",children:[t(dl,{$gap:4,children:[o&&e(o,{}),u?e(El,{align:"center",size:a,$titleColor:C,$gradientColor:x,nowrap:!0,children:n||"Loading..."}):n?e(za,{align:"center",size:a,color:C,children:n}):null]}),s?e(za,{align:"center",size:c,color:$,children:s}):null,E?e(za,{align:"center",size:c,color:C,children:E}):null]})]})},$l=(e,t)=>({[wo.Default]:o=>ae({fill:Bs(t,e,"300"),...o}),[wo.Info]:o=>nt({fill:Bs(t,e,"400"),...o}),[wo.Error]:o=>ot({fill:Bs(t,e,"500"),...o}),[wo.Warning]:o=>tt({fill:Bs(t,e,"500"),...o}),[wo.Success]:o=>v({fill:Bs(t,e,"500"),...o}),[wo.Loading]:e=>Cl({withSpinnerOld:!0,...e}),[wo.Disabled]:o=>E({fill:Bs(t,e,"400"),...o}),[wo.Unknown]:o=>et({fill:Bs(t,e,"300"),...o})}[e]),xl=e=>{switch(e){case ko.Success:return wo.Success;case ko.Error:case ko.Failure:return wo.Error;case ko.Notice:return wo.Warning;case ko.Unsupported:case ko.Unknown:return wo.Info;case ko.Irrelevant:case ko.Disabled:return wo.Disabled;case ko.Waiting:return wo.Loading;case ko.Pending:default:return wo.Default}},wl=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},Tl={redis:C,mysql:w,postgresql:$,postgres:$,kafka:S,elasticsearch:xe,clickhouse:_e,oracle:oe,aws:rt},Ol={sts:ft,dynamodb:mt,s3:J,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ae},Nl=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=Tl[o.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Tl[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Ol[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Tl))if(i.includes(e))return t;return Ge},Il=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:o,kind:n,region:r}=e;return{namespace:t,name:o,kind:n,region:r||void 0}};function Al(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const _l=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Al(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&o.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},Rl=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==wo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1};function Dl(e){if(!e||0===e.length)return null;const t=[],o=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&o.push(a),s&&n.push(s)}return 0===t.length&&0===o.length&&0===n.length?null:{sources:t,namespaces:o,languages:n}}function kl(e){if(!e)return null;const t=[];for(const o of e.sources??[])t.push({workloadName:o.name||null,workloadKind:o.kind||null,workloadNamespace:o.namespace||null});for(const o of e.namespaces??[])t.push({workloadNamespace:o});for(const o of e.languages??[])t.push({workloadLanguage:o});return t.length?t:null}function Ll(e){const{sourcesScopes:t,...o}=e;return{...o,sourceScopes:Dl(t??null)}}function Pl(e){const{sourceScopes:t,...o}=e;return{...o,sourcesScopes:kl(t??null)}}const Ul=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ml=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Fl=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},zl=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Bl=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Hl=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Wl=e=>Hl.test(e),jl=e=>e?.map(({status:e,type:t,reason:o,message:n})=>({status:e?.toLowerCase(),type:Da(t),reason:o?Da(o):"",message:n}))||[],Gl=(e,t)=>{const o=Al(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Xl=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Yo[e]):[],Vl=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Yo[e]):[],Kl=e=>{let t=e.replace(/[^\d.]/g,"");const o=t.indexOf(".");return-1!==o&&(t=t.slice(0,o+1)+t.slice(o+1).replace(/\./g,"")),t},Yl=e=>e.replace(/[^\d]/g,""),Jl=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ql=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Ql=e=>{const t=e.fields.reduce((e,{key:t,value:o})=>{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}}})(o);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Zl=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Zl(e)))}else if("object"==typeof n&&null!==n){const e=Zl(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},ec=(e,t=2)=>JSON.stringify(e||{},null,t),tc=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),oc=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),nc={PID:"process.pid",VPID:"process.vpid"},rc={[vo.Go]:"Go",[vo.Java]:"Java",[vo.JavaScript]:"Node.js",[vo.Python]:"Python",[vo.DotNet]:".NET",[vo.CSharp]:"C#",[vo.CPlusPlus]:"C++",[vo.Php]:"PHP",[vo.Ruby]:"Ruby",[vo.Rust]:"Rust",[vo.Swift]:"Swift",[vo.Elixir]:"Elixir",[vo.MySql]:"MySQL",[vo.Nginx]:"Nginx",[vo.Postgres]:"PostgreSQL",[vo.Redis]:"Redis",[vo.Kafka]:"Kafka",[vo.Ignored]:"Ignored",[vo.Unknown]:"Unknown",[vo.Processing]:"Processing",[vo.NoContainers]:"No Containers",[vo.NoRunningPods]:"No Running Pods"},ic=[{id:vo.Go,label:rc[vo.Go],icon:ys(vo.Go)},{id:vo.Java,label:rc[vo.Java],icon:ys(vo.Java)},{id:vo.JavaScript,label:rc[vo.JavaScript],icon:ys(vo.JavaScript)},{id:vo.Python,label:rc[vo.Python],icon:ys(vo.Python)},{id:vo.Php,label:rc[vo.Php],icon:ys(vo.Php)},{id:vo.Ruby,label:rc[vo.Ruby],icon:ys(vo.Ruby)},{id:vo.Rust,label:rc[vo.Rust],icon:ys(vo.Rust)},{id:vo.DotNet,label:rc[vo.DotNet],icon:ys(vo.DotNet)},{id:vo.CSharp,label:rc[vo.CSharp],icon:ys(vo.CSharp)},{id:vo.CPlusPlus,label:rc[vo.CPlusPlus],icon:ys(vo.CPlusPlus)},{id:vo.Swift,label:rc[vo.Swift],icon:ys(vo.Swift)},{id:vo.Elixir,label:rc[vo.Elixir],icon:ys(vo.Elixir)}],ac={id:Do.OpentelemetryEbpfInstrumentation,label:Do.OpentelemetryEbpfInstrumentation,icon:yt},sc={[vo.Go]:{community:[{id:Do.GolangCommunity,label:Do.GolangCommunity,icon:ys(vo.Go)},ac],enterprise:[{id:Do.GolangEnterprise,label:Do.GolangEnterprise,icon:ys(vo.Go)}]},[vo.JavaScript]:{community:[{id:Do.NodejsCommunity,label:Do.NodejsCommunity,icon:ys(vo.JavaScript)},ac],enterprise:[{id:Do.NodejsEnterprise,label:Do.NodejsEnterprise,icon:ys(vo.JavaScript)}]},[vo.Python]:{community:[{id:Do.PythonCommunity,label:Do.PythonCommunity,icon:ys(vo.Python)},ac],enterprise:[{id:Do.PythonEnterprise,label:Do.PythonEnterprise,icon:ys(vo.Python)}]},[vo.Java]:{community:[{id:Do.JavaCommunity,label:Do.JavaCommunity,icon:ys(vo.Java)},ac],enterprise:[{id:Do.JavaEnterprise,label:Do.JavaEnterprise,icon:ys(vo.Java)},{id:Do.JavaEbpfInstrumentations,label:Do.JavaEbpfInstrumentations,icon:ys(vo.Java)}]},[vo.DotNet]:{community:[{id:Do.DotNetCommunity,label:Do.DotNetCommunity,icon:ys(vo.DotNet)},ac],enterprise:[{id:Do.DotNetEnterprise,label:Do.DotNetEnterprise,icon:ys(vo.DotNet)}]},[vo.Ruby]:{community:[{id:Do.RubyCommunity,label:Do.RubyCommunity,icon:ys(vo.Ruby)},ac],enterprise:[{id:Do.RubyEnterprise,label:Do.RubyEnterprise,icon:ys(vo.Ruby)}]},[vo.Php]:{community:[{id:Do.PhpCommunity,label:Do.PhpCommunity,icon:ys(vo.Php)},ac],enterprise:[]},[vo.CSharp]:{community:[],enterprise:[{id:Do.CPlusPlusEnterprise,label:Do.CPlusPlusEnterprise,icon:ys(vo.CSharp)}]},[vo.MySql]:{community:[],enterprise:[{id:Do.MySqlEnterprise,label:Do.MySqlEnterprise,icon:ys(vo.MySql)}]},[vo.CPlusPlus]:{community:[ac],enterprise:[]},[vo.Rust]:{community:[ac],enterprise:[]},[vo.Swift]:{community:[ac],enterprise:[]},[vo.Elixir]:{community:[ac],enterprise:[]},[vo.Nginx]:{community:[ac],enterprise:[]},[vo.Postgres]:{community:[ac],enterprise:[]},[vo.Redis]:{community:[ac],enterprise:[]},[vo.Kafka]:{community:[ac],enterprise:[]},[vo.Ignored]:{community:[],enterprise:[]},[vo.Unknown]:{community:[ac],enterprise:[]},[vo.Processing]:{community:[],enterprise:[]},[vo.NoContainers]:{community:[],enterprise:[]},[vo.NoRunningPods]:{community:[],enterprise:[]}},lc=6048e5,cc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ga.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),dc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Ha},uc=Pt(e=>({...dc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(dc)}));var pc;(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"})(pc||(pc={}));const hc=e=>`add-${Da(e).replaceAll(" ","-").toLowerCase()}`,gc=e=>`edit-${Da(e).replaceAll(" ","-").toLowerCase()}`,mc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),fc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),yc=Pt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:fc})),bc=Pt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,r=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var vc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(vc||(vc={}));const Ec=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Sc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Cc=Pt((e,t)=>({progress:{},setProgress:(o,n)=>{const r=t(),i=Ec();return"number"==typeof n.total&&(i.total=n.total),"number"==typeof n.current&&(i.current=n.current),Array.isArray(n.list)&&(i.list=n.list),e({progress:{...r.progress,[o]:Sc(i)}})},addProgress:(o,n,r)=>{const i=t(),a=Ec(o,i.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[o]:Sc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),$c=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),xc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},wc=(e,t)=>e.destinationType.type!==t.destinationType.type,Tc=Pt(e=>({...xc,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=>wc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>wc(e,t))})),clearStore:()=>e(()=>({...xc}))})),Oc=e=>{function t(){return void 0===e?{}:os(e)}const[o,n]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(o[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(o[e]=n)}else r!==t[e]&&(o[e]=t[e])}for(const n of Object.keys(t))n in e||(o[n]=t[n]);return o},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,o),[a,o]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,o]);const u=Bt((e,t)=>ns("formData"===e?o:r,t.toString()),[o,r]);return{formData:o,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,o)=>{if(e){const o=e.toString(),r=o.split(".");1===r.length?n(o=>({...o,[e]:t})):n(e=>{const o=os(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o}),i(e=>{const t=o,n=r[r.length-1],i=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[n],s})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?i(o=>({...o,[e]:t})):i(e=>{const n=os(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n})}else o&&i({...o})},resetFormData:e=>{const o=e||t();n(o),s(o),i({})},getNestedValue:u}},Nc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Ic=()=>{const{addNotification:e}=bc(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:r,resetFormData:i}=Oc(Nc);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:i,validateForm:o=>{const n={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Ul(t)&&(n[e]=Xa.FIELD_IS_REQUIRED)}}),t.type===no.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Xa.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&o?.withAlert&&e({type:wo.Warning,title:o.alertTitle,message:Xa.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),i},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:r,disabled:i,fields:a})=>{const s={...os(Nc),type:e,signals:t,name:o,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case ro.LabelsAttributes:case ro.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(o=t)&&Array.isArray(o)?o.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):o;break;case ro.CollectContainerAttributes:case ro.CollectReplicaSetAttributes:case ro.CollectWorkloadId:case ro.CollectClusterId:case ro.ClusterAttributes:case ro.OverwriteExistingValues:case ro.AttributeNamesToDelete:case ro.Renames:case ro.PiiCategories:case ro.ExtractAttribute:case ro.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var o}),n(void 0,void 0,s)}}},Ac=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},_c=()=>{const e=Wt(null),[t,o]=Ft(0),[n,r]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Rc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Rc||(Rc={}));const Dc=n.div`
|
|
194
|
+
animation: ${Kr} 1s reverse linear infinite;
|
|
195
|
+
`,Jr=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),n=Math.floor(o/60),r=o%60;return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`},qr=({icon:o,title:n,titleColor:r,titleSize:a=dn.S,subTitle:s,subTitleColor:l,subTitleSize:c=dn.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?Jr(d):"");zt(()=>{if(!d)return;S(Jr(d));const e=setInterval(()=>S(Jr(d)),1e3);return()=>clearInterval(e)},[d]);const $=r||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return t(zr,{$gap:16,$alignItems:"center",children:[y?e(Nr,{scale:1.7,icon:b}):h?e(Sr,{percentage:f}):g?e(Tr,{scale:m}):null,(n||s||d||o||u)&&t(zr,{$gap:8,$alignItems:"center",children:[t(Fr,{$gap:4,children:[o&&e(o,{}),u?e(Yr,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:n||"Loading..."}):n?e(mn,{align:"center",size:a,color:$,children:n}):null]}),s?e(mn,{align:"center",size:c,color:C,children:s}):null,E?e(mn,{align:"center",size:c,color:$,children:E}):null]})]})},Qr=(e,t)=>({[wo.Default]:o=>ae({fill:fr(t,e,"300"),...o}),[wo.Info]:o=>nt({fill:fr(t,e,"400"),...o}),[wo.Error]:o=>ot({fill:fr(t,e,"500"),...o}),[wo.Warning]:o=>tt({fill:fr(t,e,"500"),...o}),[wo.Success]:o=>v({fill:fr(t,e,"500"),...o}),[wo.Loading]:e=>qr({withSpinnerOld:!0,...e}),[wo.Disabled]:o=>E({fill:fr(t,e,"400"),...o}),[wo.Unknown]:o=>et({fill:fr(t,e,"300"),...o})}[e]),Zr=e=>{switch(e){case ko.Success:return wo.Success;case ko.Error:case ko.Failure:return wo.Error;case ko.Notice:return wo.Warning;case ko.Unsupported:case ko.Unknown:return wo.Info;case ko.Irrelevant:case ko.Disabled:return wo.Disabled;case ko.Waiting:return wo.Loading;case ko.Pending:default:return wo.Default}},ei=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},ti={redis:$,mysql:w,postgresql:C,postgres:C,kafka:S,elasticsearch:xe,clickhouse:_e,oracle:oe,aws:rt},oi={sts:ft,dynamodb:mt,s3:J,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:Ae},ni=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=ti[o.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=ti[n.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=oi[e];if(t)return t}return rt}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(ti))if(i.includes(e))return t;return Ge},ri=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:o,kind:n,region:r}=e;return{namespace:t,name:o,kind:n,region:r||void 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 ai=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ii(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&o.push(...e.items[r].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},si=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==wo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1};function li(e){if(!e||0===e.length)return null;const t=[],o=[],n=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&o.push(a),s&&n.push(s)}return 0===t.length&&0===o.length&&0===n.length?null:{sources:t,namespaces:o,languages:n}}function ci(e){if(!e)return null;const t=[];for(const o of e.sources??[])t.push({workloadName:o.name||null,workloadKind:o.kind||null,workloadNamespace:o.namespace||null});for(const o of e.namespaces??[])t.push({workloadNamespace:o});for(const o of e.languages??[])t.push({workloadLanguage:o});return t.length?t:null}function di(e){const{sourcesScopes:t,...o}=e;return{...o,sourceScopes:li(t??null)}}function ui(e){const{sourceScopes:t,...o}=e;return{...o,sourcesScopes:ci(t??null)}}const pi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),hi=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),gi=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},mi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},fi=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,yi=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,bi=e=>yi.test(e),vi=e=>e?.map(({status:e,type:t,reason:o,message:n})=>({status:e?.toLowerCase(),type:ln(t),reason:o?ln(o):"",message:n}))||[],Ei=(e,t)=>{const o=ii(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Si=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Yo[e]):[],$i=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Yo[e]):[],Ci=e=>{let t=e.replace(/[^\d.]/g,"");const o=t.indexOf(".");return-1!==o&&(t=t.slice(0,o+1)+t.slice(o+1).replace(/\./g,"")),t},xi=e=>e.replace(/[^\d]/g,""),wi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Ti=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Oi=e=>{const t=e.fields.reduce((e,{key:t,value:o})=>{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}}})(o);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Ni=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Ni(e)))}else if("object"==typeof n&&null!==n){const e=Ni(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Ii=(e,t=2)=>JSON.stringify(e||{},null,t),Ai=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),_i=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Ri={PID:"process.pid",VPID:"process.vpid"},Di={[vo.Go]:"Go",[vo.Java]:"Java",[vo.JavaScript]:"Node.js",[vo.Python]:"Python",[vo.DotNet]:".NET",[vo.CSharp]:"C#",[vo.CPlusPlus]:"C++",[vo.Php]:"PHP",[vo.Ruby]:"Ruby",[vo.Rust]:"Rust",[vo.Swift]:"Swift",[vo.Elixir]:"Elixir",[vo.MySql]:"MySQL",[vo.Nginx]:"Nginx",[vo.Postgres]:"PostgreSQL",[vo.Redis]:"Redis",[vo.Kafka]:"Kafka",[vo.Ignored]:"Ignored",[vo.Unknown]:"Unknown",[vo.Processing]:"Processing",[vo.NoContainers]:"No Containers",[vo.NoRunningPods]:"No Running Pods"},ki=[{id:vo.Go,label:Di[vo.Go],icon:Xn(vo.Go)},{id:vo.Java,label:Di[vo.Java],icon:Xn(vo.Java)},{id:vo.JavaScript,label:Di[vo.JavaScript],icon:Xn(vo.JavaScript)},{id:vo.Python,label:Di[vo.Python],icon:Xn(vo.Python)},{id:vo.Php,label:Di[vo.Php],icon:Xn(vo.Php)},{id:vo.Ruby,label:Di[vo.Ruby],icon:Xn(vo.Ruby)},{id:vo.Rust,label:Di[vo.Rust],icon:Xn(vo.Rust)},{id:vo.DotNet,label:Di[vo.DotNet],icon:Xn(vo.DotNet)},{id:vo.CSharp,label:Di[vo.CSharp],icon:Xn(vo.CSharp)},{id:vo.CPlusPlus,label:Di[vo.CPlusPlus],icon:Xn(vo.CPlusPlus)},{id:vo.Swift,label:Di[vo.Swift],icon:Xn(vo.Swift)},{id:vo.Elixir,label:Di[vo.Elixir],icon:Xn(vo.Elixir)}],Li={id:Do.OpentelemetryEbpfInstrumentation,label:Do.OpentelemetryEbpfInstrumentation,icon:yt},Pi={[vo.Go]:{community:[{id:Do.GolangCommunity,label:Do.GolangCommunity,icon:Xn(vo.Go)},Li],enterprise:[{id:Do.GolangEnterprise,label:Do.GolangEnterprise,icon:Xn(vo.Go)}]},[vo.JavaScript]:{community:[{id:Do.NodejsCommunity,label:Do.NodejsCommunity,icon:Xn(vo.JavaScript)},Li],enterprise:[{id:Do.NodejsEnterprise,label:Do.NodejsEnterprise,icon:Xn(vo.JavaScript)}]},[vo.Python]:{community:[{id:Do.PythonCommunity,label:Do.PythonCommunity,icon:Xn(vo.Python)},Li],enterprise:[{id:Do.PythonEnterprise,label:Do.PythonEnterprise,icon:Xn(vo.Python)}]},[vo.Java]:{community:[{id:Do.JavaCommunity,label:Do.JavaCommunity,icon:Xn(vo.Java)},Li],enterprise:[{id:Do.JavaEnterprise,label:Do.JavaEnterprise,icon:Xn(vo.Java)},{id:Do.JavaEbpfInstrumentations,label:Do.JavaEbpfInstrumentations,icon:Xn(vo.Java)}]},[vo.DotNet]:{community:[{id:Do.DotNetCommunity,label:Do.DotNetCommunity,icon:Xn(vo.DotNet)},Li],enterprise:[{id:Do.DotNetEnterprise,label:Do.DotNetEnterprise,icon:Xn(vo.DotNet)}]},[vo.Ruby]:{community:[{id:Do.RubyCommunity,label:Do.RubyCommunity,icon:Xn(vo.Ruby)},Li],enterprise:[{id:Do.RubyEnterprise,label:Do.RubyEnterprise,icon:Xn(vo.Ruby)}]},[vo.Php]:{community:[{id:Do.PhpCommunity,label:Do.PhpCommunity,icon:Xn(vo.Php)},Li],enterprise:[]},[vo.CSharp]:{community:[],enterprise:[{id:Do.CPlusPlusEnterprise,label:Do.CPlusPlusEnterprise,icon:Xn(vo.CSharp)}]},[vo.MySql]:{community:[],enterprise:[{id:Do.MySqlEnterprise,label:Do.MySqlEnterprise,icon:Xn(vo.MySql)}]},[vo.CPlusPlus]:{community:[Li],enterprise:[]},[vo.Rust]:{community:[Li],enterprise:[]},[vo.Swift]:{community:[Li],enterprise:[]},[vo.Elixir]:{community:[Li],enterprise:[]},[vo.Nginx]:{community:[Li],enterprise:[]},[vo.Postgres]:{community:[Li],enterprise:[]},[vo.Redis]:{community:[Li],enterprise:[]},[vo.Kafka]:{community:[Li],enterprise:[]},[vo.Ignored]:{community:[],enterprise:[]},[vo.Unknown]:{community:[Li],enterprise:[]},[vo.Processing]:{community:[],enterprise:[]},[vo.NoContainers]:{community:[],enterprise:[]},[vo.NoRunningPods]:{community:[],enterprise:[]}},Ui="*",Mi=e=>!!e?.includes(Ui),Fi=e=>e?.length?Mi(e)?[Ui]:e:[],zi=e=>{if(e?.length&&!Mi(e))return e.filter(e=>e!==Ui)},Bi=e=>e===Ui?"All languages":Di[e]??e,Hi=e=>e===Ui?bt:Xn(e),Wi=[{type:Lo.CodeAttributes,icon:sn(Lo.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:[vo.Go,vo.Python,vo.JavaScript]},{type:Lo.CustomInstrumentation,icon:sn(Lo.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[vo.Go,vo.Java]},{type:Lo.HeadersCollection,icon:sn(Lo.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:[vo.Go,vo.Java,vo.JavaScript]},{type:Lo.PayloadCollection,icon:sn(Lo.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:[vo.Go,vo.JavaScript]}],ji=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:sn(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},Gi={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.'},Xi={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."},Vi={[uo.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[uo.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[uo.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Ki="Cancel",Yi="Save",Ji="Edit rule",qi="Edit auto rule",Qi="Create rule",Zi="Delete rule",ea="Save",ta="Create your first rule",oa="No Rules Exist",na="No Results",ra=e=>`No rules match the search term "${e}"`,ia="Rule name",aa="Rule type",sa="Select the type of condition that makes a trace highly relevant.",la="Rule Enabled",ca="Rule Disabled",da="Enabled",ua="Disabled",pa="Note",ha="HTTP route",ga="Method",ma="Keep Percentage",fa="Keep traces with duration larger than",ya="Keep traces with errors",ba="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",va="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ea="Custom percentage",Sa="Disabled rule",$a="Sample",Ca="Keep all",xa="Drop all",wa="Operation type",Ta="HTTP route prefix",Oa="Templated path",Na="Templated path prefix",Ia="Kafka topic",Aa="Custom duration (ms)",_a="No preview available",Ra="Server address",Da="Drop at most this percentage of matching traces",ka="Unnamed rule",La="Sampling Preview",Pa="Source Scope",Ua="Unknown source",Ma="Operation",Fa="Duration",za="Errors",Ba="Keep Percentage",Ha="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Wa="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.",ja="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ga="Retain traces with errors from the selected services and operations.",Xa="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Va="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Ka={highlyRelevant:Xa,noisy:Va,costReduction:void 0},Ya="Type rule name",Ja="Add note here...",qa="Type here",Qa="Search source name",Za="e.g. collector.my.vendor.com",es="Optional notes (not used by the system). Add any context or details for this sampling rule.",ts="Rule will apply to all sources in the cluster",os="If multiple source scopes are set, they must all match simultaneously.",ns="All sources",rs="-",is="All",as="Sources",ss="Namespaces",ls="Languages",cs="any of",ds="AND",us="All operations",ps="HTTP server endpoint",hs="HTTP client endpoint",gs="Kafka consumer",ms="Kafka producer",fs="Sampling Rules",ys='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',bs="Refresh",vs="Create rule",Es="Sampling docs",Ss="75vw",$s="Delete rule?",Cs="Are you sure you want to delete this sampling rule?",xs="Delete",ws="Cancel",Ts="Kubernetes Health Probes",Os="Keep All Error Traces",Ns="Drop Traces Cluster-Wide",Is="A rule with the same matching conditions already exists.",As="Create this rule as-is?",_s="This rule still uses the default configuration.\nDo you want to create it anyway?",Rs="Rule preview",Ds="Continue editing",ks="Create 'Noisy Operation Kubernetes Health Probes' rule",Ls="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ps="Automatically detect and sample health probe traces across the cluster.",Us="Create 'Highly Relevant Operations' rule",Ms="Edit 'Highly Relevant Operations' rule",Fs="Automatically keep all error traces across the entire cluster.",zs="Create 'Cost Reduction' rule",Bs="Edit 'Cost Reduction' rule",Hs="Automatically drop a percentage of traces across the entire cluster.",Ws="Skip setup",js="Start setup",Gs="Next",Xs="Go to Sampling",Vs="Read more",Ks="Welcome to Sampling",Ys="Cut costs without losing what matters",Js="Odigos sampling works in three stages:",qs="Filter noisy traffic",Qs="Remove non-actionable traces like health checks.",Zs="Guarantee highly relevance operations",el="Keep traces with errors, high latency, or mission-critical endpoints/services.",tl="Reduce cost",ol="Sample routine traffic using percentages.",nl="Sampling does not drop individual spans - it keeps or drops the entire trace.",rl="Filter noisy operations",il="Cut traces with little or no observability value (health-checks, metric scarping, etc)",al="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.",sl="Preset Rules",ll="Kubernetes Health Probes",cl="Automatically ignore health checks",dl="You can review, adjust, and add additional custom rules later.",ul="Choose your sampling strategy",pl="Pick the approach that best fits your balance of cost vs data-completeness",hl="Keep List",gl="Budget Friendly",ml="Define which traces must be kept, while all others are sampled by default to minimize cost.",fl="Cost-oriented - keeps only what you explicitly select.",yl="Best for very large clusters with high volumes of traces and high costs.",bl="Higher risk of missing important traces without ongoing review.",vl="Drop List",El="Safe Choice",Sl="Define which traces must be aggressively dropped, while all others are kept by default.",$l="Preserves most data unless explicitly filtered.",Cl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",xl="Advanced",wl="Maximum Flexibility",Tl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Ol="'Keep List' profile",Nl="Protect important traces",Il="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:",Al="Traces with errors",_l="Slow requests (duration above threshold)",Rl="Mission-Critical endpoints or services",Dl="Services under test or evaluation",kl="New deployments",Ll="You can review, adjust, and add rules once onboarding is complete.",Pl="Common Rules",Ul="Preset Rules",Ml="Error collection - entire cluster",Fl="Keep all traces with errors",zl="Ambient sampling percentage",Bl="'Drop List' profile",Hl="Reduce high-volume traffic",Wl="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.",jl="Advanced Configuration",Gl="Configure sampling rules",Xl="Advanced mode allows you to configure all sampling categories:",Vl="Noise Filtering - remove non-actionable traces",Kl="Highly Relevance - guarantee important traces are kept",Yl='Cost Control - drop traces for "Normal" operations',Jl="Rules can target:",ql="Services",Ql="HTTP Endpoints",Zl="DB Operations",ec="Errors",tc="Latency and more...",oc="Sampling configured successfully!",nc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",rc="Odigos will now:",ic="Filter noisy operations",ac="Guarantee important traces",sc="Reduce cost using controlled sampling",lc="Recommended",cc={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."},dc={noisy:ks,highlyRelevant:Us,costReduction:zs},uc={noisy:Ls,highlyRelevant:Ms,costReduction:Bs},pc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},hc=[{id:jo.Logs,value:"Logs"},{id:jo.Metrics,value:"Metrics"},{id:jo.Traces,value:"Traces"},{id:jo.Profiles,value:"Profiles"}],gc=6048e5,mc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:En.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),fc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:yn},yc=Pt(e=>({...fc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(fc)}));var bc;(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"})(bc||(bc={}));const vc=e=>`add-${ln(e).replaceAll(" ","-").toLowerCase()}`,Ec=e=>`edit-${ln(e).replaceAll(" ","-").toLowerCase()}`,Sc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),$c=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),Cc=Pt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:$c})),xc=Pt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,r=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:r,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var wc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(wc||(wc={}));const Tc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Oc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Nc=Pt((e,t)=>({progress:{},setProgress:(o,n)=>{const r=t(),i=Tc();return"number"==typeof n.total&&(i.total=n.total),"number"==typeof n.current&&(i.current=n.current),Array.isArray(n.list)&&(i.list=n.list),e({progress:{...r.progress,[o]:Oc(i)}})},addProgress:(o,n,r)=>{const i=t(),a=Tc(o,i.progress);return a.current+=n,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[o]:Oc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ic=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ac={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},_c=(e,t)=>e.destinationType.type!==t.destinationType.type,Rc=Pt(e=>({...Ac,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=>_c(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>_c(e,t))})),clearStore:()=>e(()=>({...Ac}))})),Dc=e=>{function t(){return void 0===e?{}:_n(e)}const[o,n]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[n,r]of Object.entries(e)){const e=n;if(Array.isArray(r)){const n=t[e];Array.isArray(n)&&r.length===n.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(o[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const n=l(r,t[e]);Object.keys(n).length>0&&(o[e]=n)}else r!==t[e]&&(o[e]=t[e])}for(const n of Object.keys(t))n in e||(o[n]=t[n]);return o},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,o),[a,o]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(r)&&(n(r),s(r))},[e,o]);const u=Bt((e,t)=>Rn("formData"===e?o:r,t.toString()),[o,r]);return{formData:o,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,o)=>{if(e){const o=e.toString(),r=o.split(".");1===r.length?n(o=>({...o,[e]:t})):n(e=>{const o=_n(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o}),i(e=>{const t=o,n=r[r.length-1],i=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[n],s})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?i(o=>({...o,[e]:t})):i(e=>{const n=_n(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n})}else o&&i({...o})},resetFormData:e=>{const o=e||t();n(o),s(o),i({})},getNestedValue:u}},kc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Lc=()=>{const{addNotification:e}=xc(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:r,resetFormData:i}=Dc(kc);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:i,validateForm:o=>{const n={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":pi(t)&&(n[e]=Sn.FIELD_IS_REQUIRED)}}),t.type===no.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Sn.FIELD_IS_REQUIRED;break}}return i=!Object.values(n).length,!i&&o?.withAlert&&e({type:wo.Warning,title:o.alertTitle,message:Sn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),i},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:r,disabled:i,fields:a})=>{const s={..._n(kc),type:e,signals:t,name:o,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case ro.LabelsAttributes:case ro.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(o=t)&&Array.isArray(o)?o.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):o;break;case ro.CollectContainerAttributes:case ro.CollectReplicaSetAttributes:case ro.CollectWorkloadId:case ro.CollectClusterId:case ro.ClusterAttributes:case ro.OverwriteExistingValues:case ro.AttributeNamesToDelete:case ro.Renames:case ro.PiiCategories:case ro.ExtractAttribute:case ro.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var o}),n(void 0,void 0,s)}}},Pc=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Uc=()=>{const e=Wt(null),[t,o]=Ft(0),[n,r]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),r(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Mc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Mc||(Mc={}));const Fc=n.div`
|
|
196
196
|
width: ${({$size:e})=>1.5*e}px;
|
|
197
197
|
height: ${({$size:e})=>1.5*e}px;
|
|
198
198
|
display: flex;
|
|
@@ -203,7 +203,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
203
203
|
&:hover {
|
|
204
204
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`,zc=({"data-id":t,icon:o,size:n=Mc.S,onClick:r,disabled:i})=>e(Fc,{"data-id":t,$size:n,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(o,{size:n})}),Bc=({onDone:t}={})=>{const[o,n]=Ft(!1),[r,i]=Ft(-1),a=Bt(async(e,r)=>{if(!o){if(n(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{n(!1),i(-1)},1e3)}},[o,t]);return{CopyButton:Bt(({value:t,size:n})=>e(zc,{icon:o?vt:Et,size:n,onClick:()=>a(t)}),[o]),isCopied:o,copiedIndex:r,clickCopy:a}},Hc=e=>{const{addNotification:t}=xc(),{formData:o,handleFormChange:n,formErrors:r,handleErrorChange:i,resetFormData:a}=Dc(e);return{formData:o,formErrors:r,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let r=!0;return o.name?hi(o.name)?n.name=void 0:(r=!1,n.name=Sn.ILLEGAL_K8S_LABEL):(r=!1,n.name=Sn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:wo.Warning,title:e.alertTitle,message:Sn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),r},loadFormWithDrawerItem:({name:t})=>{const o={..._n(e),name:t};n(void 0,void 0,o)}}},Wc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},jc=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=xc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Dc(Wc),[c,d]=Ft([]),[u,p]=Ft([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:r,initialValue:i,renderCondition:a}=e;if(o===Co.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:o,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:r,value:i,renderCondition:a,...ii(n,{})}})).map(e=>{if(o){const t="string"==typeof o?ii(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===Si(r.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return u.forEach(({name:e,value:n,required:r})=>{r&&!n&&(o=!1,t[e]=Sn.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:wo.Warning,title:e.alertTitle,message:Sn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:r})=>{const i={..._n(Wc),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(ii(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Gc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Fo.HttpRequest]:null,[Fo.HttpResponse]:null,[Fo.DbQuery]:null,[Fo.Messaging]:null},codeAttributes:{[Po.Column]:null,[Po.FilePath]:null,[Po.Function]:null,[Po.LineNumber]:null,[Po.Namespace]:null,[Po.StackTrace]:null},headersCollection:null,customInstrumentations:{[Mo.Java]:null,[Mo.Golang]:null}},Xc=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Dc(Gc);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>{const c={..._n(Gc),ruleName:e,notes:t,disabled:n,sourceScopes:r??null};i&&(c.payloadCollection={[Fo.HttpRequest]:i[Fo.HttpRequest]?{}:null,[Fo.HttpResponse]:i[Fo.HttpResponse]?{}:null,[Fo.DbQuery]:i[Fo.DbQuery]?{}:null,[Fo.Messaging]:i[Fo.Messaging]?{}:null}),a&&(c.codeAttributes={[Po.Column]:a[Po.Column]||null,[Po.FilePath]:a[Po.FilePath]||null,[Po.Function]:a[Po.Function]||null,[Po.LineNumber]:a[Po.LineNumber]||null,[Po.Namespace]:a[Po.Namespace]||null,[Po.StackTrace]:a[Po.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Mo.Java]:l[Mo.Java]||null,[Mo.Golang]:l[Mo.Golang]||null}),o(void 0,void 0,c)}}},Vc=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:r,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,n,r,i,a]),null),Kc="data-ignore-outside-click",Yc=(e,t)=>{const o=Wt(t);o.current=t,zt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Kc))return!0;t=t.parentNode}return!1})(n)||o.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Jc=(e,{axis:t="horizontal",deps:o=[]}={})=>{const[n,r]=Ft(!1),i=e=>{const o="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(o)};return jt(()=>{const t=e.current;if(!t)return;i(t);const o=new ResizeObserver(()=>i(t));return o.observe(t),()=>o.disconnect()},[t,...o]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const o=e.current;!t&&o&&i(o)}),()=>{t=!0}},[t,...o]),n},qc=(e,{behavior:t="smooth",block:o="center",inline:n,delayMs:r=50}={})=>{const i=Wt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:o,inline:n})},r);return()=>window.clearTimeout(a)},[e,t,o,n,r]),i},Qc=({sectionNames:e,threshold:t=.4})=>{const[o,n]=Ft(e[0]||""),[r,i]=Ft(null),a=Wt({}),s=Wt(!1),l=Wt(!1),c=Bt((e,t)=>{a.current[e]=t},[]),d=Bt(e=>{i(e)},[]),u=Bt(e=>{l.current=!0,n(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[o];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[o]),zt(()=>{const o=a.current,i=e.map(e=>o[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:o,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Zc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:n="local"}={})=>{const r=Wt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return Yc(r,()=>{i&&(a(!1),o?.())}),{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(o,i)=>{if("local"===n)return void l({top:i,left:o});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=o/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=o;if(g>=s/2&&(g+=-u),"center"===h){m=o-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=o-c);l({top:g,left:m})}}},ed=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?ii(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),td={otelServiceName:"",currentStreamName:""},od=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:r}=Dc(td);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={..._n(td),otelServiceName:e||t.name||""};o(void 0,void 0,n)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const nd=new Xt(Vt.locale),rd=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],id=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),ad=()=>{const[e,t]=Ft(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return nd.format(id(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:o="long",suffix:n=!0}={})=>{try{const r=id(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===o?"0s":n?"just now":"0 seconds";const a=[];for(const e of rd){if(a.length===t)break;const n=Math.floor(i/e.ms);if(!(n<=0&&0===a.length)){if(n<=0)break;i-=n*e.ms,a.push("short"===o?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const s="short"===o?a.join(""):a.join(" ");return n&&"long"===o?`${s} ago`:s}catch(e){return"-"}},[e])}},sd=n.div`
|
|
207
207
|
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
208
208
|
position: relative;
|
|
209
209
|
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
@@ -215,7 +215,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
215
215
|
text-overflow: ellipsis;
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
`}
|
|
218
|
-
`,
|
|
218
|
+
`,ld=n.div`
|
|
219
219
|
position: fixed;
|
|
220
220
|
top: ${({$top:e})=>e}px;
|
|
221
221
|
left: ${({$left:e})=>e}px;
|
|
@@ -227,21 +227,21 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
227
227
|
min-width: 0;
|
|
228
228
|
|
|
229
229
|
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
230
|
-
`,
|
|
230
|
+
`,cd=n.div`
|
|
231
231
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
232
232
|
border-radius: 4px;
|
|
233
233
|
padding: 8px;
|
|
234
234
|
max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
|
|
235
235
|
box-sizing: border-box;
|
|
236
236
|
min-width: 0;
|
|
237
|
-
`,
|
|
237
|
+
`,dd=n.div`
|
|
238
238
|
display: flex;
|
|
239
239
|
flex-direction: column;
|
|
240
240
|
align-items: flex-start;
|
|
241
241
|
gap: 8px;
|
|
242
242
|
width: 100%;
|
|
243
243
|
min-width: 0;
|
|
244
|
-
`,
|
|
244
|
+
`,ud=n.div`
|
|
245
245
|
display: flex;
|
|
246
246
|
width: 100%;
|
|
247
247
|
flex-shrink: 0;
|
|
@@ -251,7 +251,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
251
251
|
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
252
252
|
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
253
253
|
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
254
|
-
`,
|
|
254
|
+
`,pd=n.div`
|
|
255
255
|
width: 0;
|
|
256
256
|
height: 0;
|
|
257
257
|
border-style: solid;
|
|
@@ -260,7 +260,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
260
260
|
flex-shrink: 0;
|
|
261
261
|
|
|
262
262
|
${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
|
|
263
|
-
`,
|
|
263
|
+
`,hd=({withIcon:n,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:$,handlePosition:C}=Zc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,n]=e.split('"');return{original:e,href:o,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:o,clientY:n}=e;x?C(S.left||o,S.top||n):C(o,n),E("mouseleave"!==t)};if(!f.length&&!h)return e(o,{children:c});const T=v&&f.length>0;return t(sd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,n&&e(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(t(ld,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&e(ud,{$align:$.align,children:e(pd,{$pointsUp:!0})}),e(cd,{$maxWidth:p,children:t(dd,{children:[(!!r||!!a)&&t(Fr,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(mn,{size:dn.XS,children:a},"title")]}),f.map((t,o)=>e(mn,{size:dn.XXXS,children:t},o)),!!l&&e(mn,{size:dn.XXXS,color:un.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&e(ud,{$align:$.align,children:e(pd,{$pointsUp:!1})})]}),document.body)]})},gd=n.div`
|
|
264
264
|
display: flex;
|
|
265
265
|
align-items: center;
|
|
266
266
|
justify-content: center;
|
|
@@ -270,7 +270,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
270
270
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
271
271
|
border-radius: 100px;
|
|
272
272
|
background-color: ${({$backgroundColor:e})=>e};
|
|
273
|
-
`,
|
|
273
|
+
`,md=({label:o,leftIcon:n,rightIcon:r,tooltip:a,status:s=wo.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=o?.toString(),y=wo.Loading===s,b=s?[wo.Disabled,wo.Loading].includes(s)?fr(m,s,c?"400":"700"):[wo.Unknown].includes(s)?fr(m,s,"600"):fr(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(c&&![wo.Unknown].includes(s)?b:[wo.Disabled,wo.Loading].includes(s)?m.v2.colors.grey[400]:[wo.Error,wo.Warning,wo.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(c&&![wo.Unknown].includes(s)?[wo.Disabled,wo.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return e(hd,{text:a,fullWidth:g,children:t(gd,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?e(n,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:e(qr,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?e(qr,{withGradient:!0,title:f,titleSize:d||dn.XXS}):e(mn,{color:v,size:d||dn.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var fd,yd;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(fd||(fd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(yd||(yd={}));const bd=n.button`
|
|
274
274
|
display: flex;
|
|
275
275
|
align-items: center;
|
|
276
276
|
justify-content: center;
|
|
@@ -280,14 +280,14 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
280
280
|
`}
|
|
281
281
|
border: none;
|
|
282
282
|
border-radius: 6px;
|
|
283
|
-
${({$size:e,$hasLabel:t})=>e===
|
|
283
|
+
${({$size:e,$hasLabel:t})=>e===yd.S?r`
|
|
284
284
|
height: 32px;
|
|
285
285
|
${t?r`
|
|
286
286
|
padding: 8px 16px;
|
|
287
287
|
`:r`
|
|
288
288
|
width: 32px;
|
|
289
289
|
`}
|
|
290
|
-
`:e===
|
|
290
|
+
`:e===yd.M?r`
|
|
291
291
|
height: 38px;
|
|
292
292
|
${t?r`
|
|
293
293
|
padding: 8px 18px;
|
|
@@ -312,7 +312,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
312
312
|
${({$withShadow:e})=>e?r`
|
|
313
313
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
314
314
|
`:""}
|
|
315
|
-
${({$variant:e})=>e===
|
|
315
|
+
${({$variant:e})=>e===fd.Primary?r`
|
|
316
316
|
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
317
317
|
&:hover {
|
|
318
318
|
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
@@ -320,7 +320,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
320
320
|
&:active {
|
|
321
321
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
322
322
|
}
|
|
323
|
-
`:e===
|
|
323
|
+
`:e===fd.Secondary?r`
|
|
324
324
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
325
325
|
&:hover {
|
|
326
326
|
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
@@ -328,7 +328,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
328
328
|
&:active {
|
|
329
329
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
330
330
|
}
|
|
331
|
-
`:e===
|
|
331
|
+
`:e===fd.Text?r`
|
|
332
332
|
background-color: transparent;
|
|
333
333
|
&:hover {
|
|
334
334
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
@@ -338,7 +338,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
338
338
|
}
|
|
339
339
|
`:""}
|
|
340
340
|
}
|
|
341
|
-
`,
|
|
341
|
+
`,vd=Ut(({"data-id":n,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=fd.Primary,size:u=yd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),$=p||(u===yd.L?18:16),C=u===yd.L?dn.S:dn.XS,x=f||(y?S.v2.colors.grey[400]:S.v2.colors.white[500]),[w,T]=Ft(!1),O=!(!h&&!w),N=!(!y&&!O),I=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return e(bd,{ref:E,"data-id":n,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,...v,disabled:N,onClick:N?void 0:I,children:e(hd,{text:a,withIcon:!s,children:O?e(qr,r?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):t(o,{children:[l&&e(Br,{$width:"fit-content",children:e(l,{size:$,fill:x})}),r?e(mn,{size:C,weight:500,color:x,nowrap:!0,children:r}):null,c&&e(Br,{$width:"fit-content",children:e(c,{size:$,fill:x})})]})})})});vd.displayName=vd.name;const Ed={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"},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:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,sidebar:500,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Sd={v2:Ed.v2,darkMode:!0,colors:{...Ed.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:Ed.font_family},$d={v2:Ed.v2,darkMode:!1,colors:{...Ed.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:Ed.font_family},Cd=e=>e?Sd:$d,xd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Ed,darkModeTheme:Sd,getTheme:Cd,lightModeTheme:$d},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const wd=({children:t})=>{const{darkMode:o}=mc();return e(s,{theme:Cd(o),children:t})},Td={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"},Od=Object.freeze(Object.defineProperty({__proto__:null,hex:Td},Symbol.toStringTag,{value:"Module"})),Nd={in:{left:a`
|
|
342
342
|
from { transform: translateX(-100%); }
|
|
343
343
|
to { transform: translateX(0); }
|
|
344
344
|
`,right:a`
|
|
@@ -368,7 +368,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
368
368
|
`,center:a`
|
|
369
369
|
from { transform: translate(-50%, -50%); }
|
|
370
370
|
to { transform: translate(-50%, 100%); }
|
|
371
|
-
`}}
|
|
371
|
+
`}},Id={in:a`
|
|
372
372
|
from {
|
|
373
373
|
width: 0%;
|
|
374
374
|
}
|
|
@@ -382,7 +382,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
382
382
|
to {
|
|
383
383
|
width: 0%;
|
|
384
384
|
}
|
|
385
|
-
`},
|
|
385
|
+
`},Ad=a`
|
|
386
386
|
0% {
|
|
387
387
|
transform: scale(1);
|
|
388
388
|
opacity: 1;
|
|
@@ -391,14 +391,14 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
391
391
|
transform: scale(2);
|
|
392
392
|
opacity: 0;
|
|
393
393
|
}
|
|
394
|
-
`,
|
|
394
|
+
`,_d=a`
|
|
395
395
|
0% {
|
|
396
396
|
background-position: -500px 0;
|
|
397
397
|
}
|
|
398
398
|
100% {
|
|
399
399
|
background-position: 500px 0;
|
|
400
400
|
}
|
|
401
|
-
`,
|
|
401
|
+
`,Rd={in:a`
|
|
402
402
|
from {
|
|
403
403
|
opacity: 0;
|
|
404
404
|
}
|
|
@@ -412,7 +412,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
412
412
|
to {
|
|
413
413
|
opacity: 0;
|
|
414
414
|
}
|
|
415
|
-
`},
|
|
415
|
+
`},Dd=Object.freeze(Object.defineProperty({__proto__:null,fade:Rd,ping:Ad,progress:Id,shimmer:_d,slide:Nd},Symbol.toStringTag,{value:"Module"}));var kd,Ld;(e=>{e.S="s",e.L="l"})(kd||(kd={})),(e=>{e.Filled="filled",e.Underline="underline"})(Ld||(Ld={}));const Pd=n.div`
|
|
416
416
|
display: flex;
|
|
417
417
|
align-items: center;
|
|
418
418
|
gap: 2px;
|
|
@@ -421,20 +421,20 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
421
421
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
422
422
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
423
423
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
424
|
-
`,
|
|
424
|
+
`,Ud=n.button`
|
|
425
425
|
flex: 1;
|
|
426
426
|
display: flex;
|
|
427
427
|
align-items: center;
|
|
428
428
|
justify-content: center;
|
|
429
429
|
gap: 8px;
|
|
430
|
-
padding: ${({$size:e})=>e===
|
|
430
|
+
padding: ${({$size:e})=>e===kd.S?"4px 8px":"8px 16px"};
|
|
431
431
|
border-radius: 6px;
|
|
432
432
|
border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
|
|
433
433
|
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
434
434
|
|
|
435
435
|
${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:n})=>e?r`
|
|
436
436
|
cursor: not-allowed;
|
|
437
|
-
background-color: ${t?(o||n.v2.colors.black[500])+
|
|
437
|
+
background-color: ${t?(o||n.v2.colors.black[500])+Td["040"]:"transparent"};
|
|
438
438
|
`:r`
|
|
439
439
|
cursor: pointer;
|
|
440
440
|
background-color: ${t?o||n.v2.colors.black[500]:"transparent"};
|
|
@@ -442,11 +442,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
442
442
|
background-color: ${t?o||n.v2.colors.black[500]:n.v2.colors.silver[800]};
|
|
443
443
|
}
|
|
444
444
|
`}
|
|
445
|
-
`,
|
|
445
|
+
`,Md=n.div`
|
|
446
446
|
display: flex;
|
|
447
447
|
align-items: stretch;
|
|
448
448
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
449
|
-
`,
|
|
449
|
+
`,Fd=n.button`
|
|
450
450
|
display: flex;
|
|
451
451
|
height: 34px;
|
|
452
452
|
padding: 8px 12px 8px 16px;
|
|
@@ -465,7 +465,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
465
465
|
&:hover {
|
|
466
466
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
467
467
|
}
|
|
468
|
-
`,
|
|
468
|
+
`,zd=({"data-id":n,size:r=kd.S,variant:a=Ld.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Ld.Underline,g=h?Fd:Ud;return e(h?Md:Pd,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const v=l===n,E=y||d,S=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],$=r===kd.S?dn.XXS:dn.XS,C=v?500:400,x=t(o,{children:[a&&e(a,{fill:S}),i&&e(mn,{size:$,weight:C,color:S,nowrap:!0,children:i}),s&&e(md,{...s})]});return e(g,{onClick:()=>!E&&c(n),$disabled:E,$isSelected:v,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?e(hd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${n}`)})})},Bd=n.div`
|
|
469
469
|
box-sizing: border-box !important;
|
|
470
470
|
width: ${({$width:e})=>e??"fit-content"};
|
|
471
471
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -479,7 +479,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
479
479
|
border: none;
|
|
480
480
|
border-radius: 6px;
|
|
481
481
|
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:o,$emphasizeBackgroundColor:n,theme:r})=>{const i=o??r.v2.colors.silver[800],a=n??r.v2.colors.silver[700];return e||t?a:i}};
|
|
482
|
-
`,
|
|
482
|
+
`,Hd=n.input`
|
|
483
483
|
min-width: 0;
|
|
484
484
|
flex: 1;
|
|
485
485
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -496,7 +496,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
496
496
|
overflow: hidden;
|
|
497
497
|
text-overflow: ellipsis;
|
|
498
498
|
white-space: nowrap;
|
|
499
|
-
`,
|
|
499
|
+
`,Wd=({"data-id":o,value:n,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,v]=Ft(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!d?.options?.length,$=Ht(()=>{if(S)return d?.options.find(e=>e.value===d.selected)?.label},[S,d?.options,d?.selected]),C=Ht(()=>l||(S&&$?`Search by ${$.toLowerCase()}`:"Search..."),[l,S,$]);return t(Bd,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(St,{size:18,fill:E}),e(Hd,{"data-id":o??"search",name:"search",type:"text",placeholder:C,value:n,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&e("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:e(zd,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},jd=n.div`
|
|
500
500
|
display: flex;
|
|
501
501
|
align-items: center;
|
|
502
502
|
justify-content: center;
|
|
@@ -505,41 +505,41 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
505
505
|
padding: 8px;
|
|
506
506
|
border-radius: 100%;
|
|
507
507
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
508
|
-
`,
|
|
508
|
+
`,Gd=({icon:o=$t,hideIcon:n=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(zr,{$gap:12,$alignItems:"center",children:[!n&&e(jd,{children:e(o,{size:32,fill:l})}),t(zr,{$gap:4,$alignItems:"center",children:[e(mn,{size:dn.S,align:"center",children:r}),a&&e(mn,{size:dn.XXS,align:"center",color:l,children:a})]}),s&&e(vd,{variant:fd.Secondary,...s})]})},Xd=n.span`
|
|
509
509
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
510
510
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
511
511
|
font-weight: 400;
|
|
512
512
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
513
|
-
`,
|
|
513
|
+
`,Vd=n.span`
|
|
514
514
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
515
515
|
font-size: 14px;
|
|
516
516
|
font-weight: 400;
|
|
517
517
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
518
|
-
`,
|
|
518
|
+
`,Kd=({label:o,tooltip:n,required:r,badge:i,width:a,smallAndDark:s})=>o||n||r?t(Fr,{$width:a,$justifyContent:"space-between",children:[o&&e(Xd,{$smallAndDark:s,children:o}),t(Fr,{$gap:4,children:[i&&e(md,{...i,textSize:dn.XXXS}),r&&e(Vd,{children:"*"}),n&&e(hd,{text:n,withIcon:!0})]})]}):null,Yd=({errorMessage:o,warnMessage:n,helpMessage:r})=>{const a=i(),s=o?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return o||n||r?t(Fr,{$alignItems:"center",children:[l&&e(zr,{children:l}),e(mn,{size:dn.XXXS,weight:400,color:s,children:o||n||r})]}):null};var Jd;(e=>{e.S="small",e.L="large"})(Jd||(Jd={}));const qd=n.div`
|
|
519
519
|
width: fit-content;
|
|
520
520
|
display: flex;
|
|
521
521
|
align-items: center;
|
|
522
522
|
gap: 8px;
|
|
523
523
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
524
|
-
`,
|
|
525
|
-
width: ${({$size:e})=>e===
|
|
526
|
-
height: ${({$size:e})=>e===
|
|
524
|
+
`,Qd=n.div`
|
|
525
|
+
width: ${({$size:e})=>e===Jd.S?"16px":"20px"};
|
|
526
|
+
height: ${({$size:e})=>e===Jd.S?"16px":"20px"};
|
|
527
527
|
display: flex;
|
|
528
528
|
align-items: center;
|
|
529
529
|
justify-content: center;
|
|
530
530
|
border-radius: 4px;
|
|
531
531
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
532
532
|
background-color: ${({$backgroundColor:e})=>e};
|
|
533
|
-
`,
|
|
533
|
+
`,Zd=({name:o,label:n,tooltip:r,badge:a,size:s=Jd.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ft(!1),b=c||d,v=s===Jd.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],$=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return t(zr,{$gap:4,children:[t(Fr,{$justifyContent:"space-between",children:[t(qd,{"data-id":o||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(Qd,{$size:s,$borderColor:S,$backgroundColor:$,children:c?e(Ct,{size:v,fill:E}):d?e(vt,{size:v,fill:E}):null}),n&&e(mn,{size:s===Jd.S?dn.XXS:dn.XS,nowrap:!0,children:n})]}),e(Kd,{tooltip:r,badge:a})]}),e(Yd,{errorMessage:p,warnMessage:h,helpMessage:g})]})},eu=n.div`
|
|
534
534
|
display: flex;
|
|
535
535
|
flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
|
|
536
536
|
gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
|
|
537
|
-
`,
|
|
537
|
+
`,tu=({direction:o=ho.Vertical,title:n,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===Jd.S?dn.XXS:dn.XS,u=Ht(()=>s.every(e=>l[e.id]),[s,l]),p=Ht(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(o=>{const n={...o};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return t(eu,{$direction:o,children:[n&&a?e(Zd,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?e(mn,{size:d,children:n}):null,s.map(t=>e(Zd,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${n}-checkbox-${t.id}`))]})};var ou,nu;(e=>{e.Left="left",e.Right="right"})(ou||(ou={})),(e=>{e.Top="top",e.Bottom="bottom"})(nu||(nu={}));const ru=n.div`
|
|
538
538
|
position: relative;
|
|
539
539
|
display: flex;
|
|
540
540
|
flex-direction: column;
|
|
541
541
|
gap: 4px;
|
|
542
|
-
`,
|
|
542
|
+
`,iu=n.div`
|
|
543
543
|
position: fixed;
|
|
544
544
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
545
545
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -557,7 +557,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
557
557
|
border-radius: 6px;
|
|
558
558
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
559
559
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
560
|
-
`,
|
|
560
|
+
`,au=n.div`
|
|
561
561
|
display: flex;
|
|
562
562
|
flex-direction: column;
|
|
563
563
|
gap: 0;
|
|
@@ -565,7 +565,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
565
565
|
width: 100%;
|
|
566
566
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
567
567
|
overflow-y: auto;
|
|
568
|
-
`,
|
|
568
|
+
`,su=n.div`
|
|
569
569
|
display: flex;
|
|
570
570
|
align-items: center;
|
|
571
571
|
gap: 8px;
|
|
@@ -581,19 +581,19 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
581
581
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
582
582
|
}
|
|
583
583
|
`}
|
|
584
|
-
`,
|
|
584
|
+
`,lu=n.div`
|
|
585
585
|
display: flex;
|
|
586
586
|
align-items: center;
|
|
587
587
|
gap: 8px;
|
|
588
588
|
flex: 1;
|
|
589
589
|
min-width: 0;
|
|
590
|
-
`,
|
|
590
|
+
`,cu=n.div`
|
|
591
591
|
flex: 0 1 auto;
|
|
592
592
|
min-width: 0;
|
|
593
593
|
overflow: hidden;
|
|
594
594
|
text-overflow: ellipsis;
|
|
595
595
|
white-space: nowrap;
|
|
596
|
-
`,
|
|
596
|
+
`,du=n.span`
|
|
597
597
|
flex-shrink: 0;
|
|
598
598
|
width: 88px;
|
|
599
599
|
display: inline-flex;
|
|
@@ -602,19 +602,19 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
602
602
|
border-radius: 4px;
|
|
603
603
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
604
604
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
605
|
-
`,
|
|
605
|
+
`,uu=n.div`
|
|
606
606
|
flex-shrink: 0;
|
|
607
607
|
display: inline-flex;
|
|
608
608
|
align-items: center;
|
|
609
609
|
gap: 4px;
|
|
610
|
-
`,
|
|
610
|
+
`,pu=({defaultOpen:o,open:n,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),$=void 0!==n,C=!!f||!!y||!!E,[x,w]=Ft(o??!C),T=$?n:x,O=Bt(e=>{$||w(e),r?.(e)},[$,r]),[N,I]=Ft({x:a||ou.Left,y:s||nu.Bottom}),A=Wt(null);Yc(A,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const o=A.current?.getBoundingClientRect();if(!o)return;const n=C?8:0;R({top:t===nu.Bottom?C?o.bottom+n:o.top:void 0,bottom:t===nu.Top?C?window.innerHeight-o.top+n:window.innerHeight-o.bottom:void 0,left:e===ou.Left?o.left:void 0,right:e===ou.Right?window.innerWidth-o.right:void 0,width:g?o.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const o={x:a||(e.clientX>window.innerWidth/2?ou.Right:ou.Left),y:s||(e.clientY>window.innerHeight/2?nu.Top:nu.Bottom)};I(o),D(o.x,o.y)};jt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),C&&!p&&O(!1)},[P,U]=Ft(""),M=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(ru,{ref:A,children:[u&&e(Kd,{label:u}),f&&e(vd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&e(vd,{variant:fd.Text,size:yd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(t(iu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&e(Wd,{value:P,onChange:U,width:"100%"}),b?e(qr,{withSpinner:!0,title:"Loading...",titleSize:dn.XS}):M.length?e(au,{$maxHeight:m,children:M.map(o=>{if(!o)return null;const{id:n,label:r,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=o,d=c.includes(n);return t(su,{"data-id":`option-${n}`,$selected:d&&!a,onClick:()=>L(n),title:l?`${r} — ${l}`:r,children:[a&&e(Zd,{value:d,onChange:()=>L(n)}),i&&e(i,{size:14,fill:o.color||S.v2.colors.white[500]}),s&&e(du,{children:e(mn,{size:dn.XXS,nowrap:!0,color:un.Secondary,children:s})}),t(lu,{children:[e(cu,{children:e(mn,{size:dn.XS,nowrap:!0,color:o.color||un.Primary,children:r})}),l&&t(uu,{children:[e(Ve,{size:12,fill:S.v2.colors.silver[200]}),e(mn,{size:dn.XS,nowrap:!0,color:un.Secondary,children:l})]})]})]},n)})}):e(Mr,{$padding:"6px 0",children:e(Gd,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!M.length&&e(vd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var hu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(hu||(hu={}));const gu=({onAnyClick:t,actions:o})=>e(Fr,{$gap:8,$alignItems:"center",children:o?.map(o=>{if(!o)return null;switch(o.type){case hu.Button:return e(vd,{...o.buttonProps,onClick:e=>{o.buttonProps?.onClick?.(e),t?.()}},o.id);case hu.ButtonDropData:return e(pu,{...o.dropDataProps,items:o.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{o.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:o.buttonProps},o.id);default:return null}})}),mu=n.div`
|
|
611
611
|
display: flex;
|
|
612
612
|
align-items: center;
|
|
613
613
|
justify-content: center;
|
|
614
614
|
padding: 8px;
|
|
615
615
|
border-radius: 8px;
|
|
616
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
617
|
-
`,
|
|
616
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+Td["004"]};
|
|
617
|
+
`,fu=({icon:o,iconWithWrapper:n=!1,title:r,titleSize:i=dn.S,titleColor:a=un.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=dn.XXS,subTitleColor:d=un.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Bc();return t(Fr,{$gap:l?8:6,$alignItems:"center",children:[o&&(n||l?e(mu,{children:e(o,{size:24})}):e(o,{size:24})),r||g||l?t(zr,{children:[r||g?t(Fr,{$gap:6,$alignItems:"center",children:[r&&e(mn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&e(y,{value:r,size:Mc.XS}),p&&e(hd,{text:p,withIcon:!0}),g&&e(md,{...g})]}):null,l&&e(mn,{size:c,color:d,nowrap:!u,children:l})]}):null,e(Fr,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},yu=({children:t,fullText:o,fullWidth:n=!0,...r})=>{const i=Wt(null),a=!!r.maxLines&&r.maxLines>0,s=Jc(i,{axis:a?"vertical":"horizontal",deps:[t]})?o??(null==t?"":String(t)):"";return e(hd,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:e(mn,{ref:i,...r,children:t})})},bu=n.section`
|
|
618
618
|
display: flex;
|
|
619
619
|
flex-direction: column;
|
|
620
620
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -624,22 +624,22 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
624
624
|
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
625
625
|
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
626
626
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
627
|
-
`,
|
|
627
|
+
`,vu=n(Fr)`
|
|
628
628
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
629
629
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
630
|
-
`,
|
|
630
|
+
`,Eu=n.div`
|
|
631
631
|
display: flex;
|
|
632
632
|
align-items: flex-end;
|
|
633
633
|
flex-wrap: wrap;
|
|
634
634
|
width: 100%;
|
|
635
|
-
`,
|
|
635
|
+
`,Su=n.div`
|
|
636
636
|
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
637
637
|
margin: 8px;
|
|
638
638
|
display: flex;
|
|
639
639
|
flex-direction: column;
|
|
640
640
|
gap: 4px;
|
|
641
641
|
min-width: 0;
|
|
642
|
-
|
|
642
|
+
`,$u=({item:o,cellsPerRow:n})=>{const{CopyButton:r}=Bc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=o;return i?e("div",{style:{flex:1}}):t(Su,{$cellsPerRow:n,children:[!!a&&e(hd,{text:s,children:e(yu,{size:dn.XXXS,color:un.Secondary,nowrap:!0,children:a})}),t(Fr,{$gap:4,children:[u&&e(md,{...u}),l&&e(hd,{text:c,children:e(yu,{size:dn.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Mc.XS})]})]})},Cu=({bgTint:o="900",width:n,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,S=!!u.length,$=!!c.length;return t(bu,{$width:n,$bgTint:o,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(vu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(fu,{...a}):e("div",{}),t(Fr,{$gap:12,children:[p,E&&v&&e(gu,{actions:d}),$&&e(Fr,{$gap:8,children:c.map((e,t)=>Gt(md,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&t(Fr,{$gap:2,children:[S&&e(pu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(vd,{variant:fd.Text,size:yd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?e(Eu,{children:g.map(t=>e($u,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,v&&m]})};var xu;(e=>{e.S="small",e.M="medium"})(xu||(xu={}));const wu=n.div`
|
|
643
643
|
display: flex;
|
|
644
644
|
flex-direction: column;
|
|
645
645
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -650,7 +650,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
650
650
|
border-radius: 16px;
|
|
651
651
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:o})=>t??(o?"transparent":e.v2.colors.silver[1e3])};
|
|
652
652
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
653
|
-
`,
|
|
653
|
+
`,Tu=Ut(({id:o,size:n=xu.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===xu.S?4:16,y="number"==typeof h?h:n===xu.S?12:16,b=a??(i?e(fu,{...i}):null),v=l??(s?e(Wd,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return t(wu,{ref:m,id:o,"data-section-name":o,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||S?t(Fr,{$gap:f,$justifyContent:"space-between",children:[E?t(Fr,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&e(gu,{actions:d??[]})]}):null,u]})});Tu.displayName="SectionCard";const Ou=n.div`
|
|
654
654
|
flex: 1;
|
|
655
655
|
align-self: stretch;
|
|
656
656
|
display: flex;
|
|
@@ -658,8 +658,8 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
658
658
|
gap: 8px;
|
|
659
659
|
padding: 16px;
|
|
660
660
|
border-radius: 12px;
|
|
661
|
-
background-color: ${({theme:e,$status:t})=>
|
|
662
|
-
`,
|
|
661
|
+
background-color: ${({theme:e,$status:t})=>fr(e,t,t===wo.Unknown?"750":"500")};
|
|
662
|
+
`,Nu=n.div`
|
|
663
663
|
display: flex;
|
|
664
664
|
align-items: center;
|
|
665
665
|
justify-content: center;
|
|
@@ -667,8 +667,8 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
667
667
|
height: fit-content;
|
|
668
668
|
padding: 8px;
|
|
669
669
|
border-radius: 12px;
|
|
670
|
-
background-color: ${({theme:e,$status:t})=>t===wo.Unknown?
|
|
671
|
-
|
|
670
|
+
background-color: ${({theme:e,$status:t})=>t===wo.Unknown?fr(e,t,"800"):fr(e,t,"900")+Td["015"]};
|
|
671
|
+
`,Iu=({status:o,icon:n,title:r,description:a})=>{const s=i(),l=n??Qr(o,s),c=[wo.Default,wo.Info,wo.Disabled,wo.Unknown].includes(o)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Ou,{$status:o,children:[e(Nu,{$status:o,children:e(l,{size:32,fill:c})}),t(zr,{$gap:2,$justifyContent:"center",children:[e(mn,{size:dn.M,weight:500,color:c,nowrap:!0,children:r}),e(mn,{size:dn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Au=n.div`
|
|
672
672
|
flex: 0.5;
|
|
673
673
|
display: flex;
|
|
674
674
|
flex-direction: column;
|
|
@@ -676,7 +676,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
676
676
|
padding: 12px;
|
|
677
677
|
border-radius: 12px;
|
|
678
678
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
679
|
-
`,
|
|
679
|
+
`,_u=["-","N/A","undefined","null","undefined/undefined","null/null"],Ru=({title:o,cells:n})=>{const r=i();return t(Au,{children:[e(mn,{size:dn.XXS,color:r.v2.colors.grey[150],children:o}),e(Fr,{$gap:32,children:n.map((n,r)=>t(zr,{$gap:2,children:[!n.isLoading||n.value&&!_u.includes(n.value)?e(mn,{size:n.label?dn.M:dn.L,children:n.value}):e(qr,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&e(mn,{size:dn.XXS,children:n.label})]},`${o}-${r}-${n.label}-${n.value}`))})]})},Du=n.div`
|
|
680
680
|
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
681
681
|
|
|
682
682
|
display: flex;
|
|
@@ -695,7 +695,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
695
695
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
696
696
|
}
|
|
697
697
|
`}
|
|
698
|
-
`,
|
|
698
|
+
`,ku=n.input`
|
|
699
699
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
700
700
|
width: ${({$width:e})=>e||"unset"};
|
|
701
701
|
|
|
@@ -727,12 +727,12 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
727
727
|
pointer-events: none;
|
|
728
728
|
user-select: none;
|
|
729
729
|
}
|
|
730
|
-
`,
|
|
730
|
+
`,Lu=n.div`
|
|
731
731
|
display: flex;
|
|
732
732
|
align-items: center;
|
|
733
733
|
justify-content: center;
|
|
734
734
|
cursor: pointer;
|
|
735
|
-
`,
|
|
735
|
+
`,Pu=({label:o,required:n,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=xo.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...$})=>{const C=i(),x=h===xo.Password,[w,T]=Ft(!1),[O,N]=Ft(null),I=c||!!d||!!O,A=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=Wt(null),D=Jc(R,{deps:[m]}),k=$.readOnly&&D&&null!=m&&""!==m?String(m):"";return t(zr,{$width:v,$gap:6,children:[e(Kd,{label:o,tooltip:r,required:n,badge:a}),e(Du,{$small:E,$disabled:y,$error:I,$clickable:!!S&&!y,onClick:y?void 0:S,children:t(hd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:_,fill:A}):null,e(ku,{"data-id":g,type:w||h===xo.Number||h===xo.Decimal?xo.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===xo.Number||h===xo.Decimal){const o=h===xo.Number?xi(t):Ci(t),n=null!=$.min?Number($.min):void 0,r=null!=$.max?Number($.max):void 0,i=h===xo.Decimal&&o.endsWith(".");let a=o,s=!1;if(o&&!i){const e=parseFloat(o);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,N(t&&t!==o?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=r?`between ${n} and ${r}`:null!=r?`at most ${r}`:`at least ${n}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...$,ref:R}),x?e(Lu,{onClick:()=>T(e=>!e),children:e(w?Ot:Nt,{size:_,fill:A})}):l?e(l,{size:_,fill:A}):null]})}),e(Yd,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},Uu=t=>{const{"data-id":o,options:n,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=Ht(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=Ht(()=>{if(a){const e=u.length;return e?1===e?n.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?n.find(e=>e.id===t.value)?.label??"":""},[a,t,n,u]),h=c?s:p,g=Ht(()=>{const e=a?n.map(e=>({...e,withCheckbox:!0})):n;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[a,n,s]),m=Bt(()=>{l(""),d(!0)},[]),f=Bt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Bt(e=>{d(e),e||l("")},[]),b=Bt(e=>{if(a)return void t.onSelect(e);const o=n.find(t=>t.id===e[0]);o&&(t.onSelect(o),l(""),d(!1))},[a,t,n]),v=c&&(i||g.length>0||s.length>0);return e(pu,{open:v,onOpenChange:y,items:g,selectedIds:u,setSelectedIds:b,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:nu.Bottom,children:e(Pu,{name:o,leftIcon:St,placeholder:r,value:h,onChange:f,onFocus:m})})},Mu=n.button`
|
|
736
736
|
width: 100%;
|
|
737
737
|
padding: 0;
|
|
738
738
|
padding-right: 12px;
|
|
@@ -753,7 +753,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
753
753
|
cursor: not-allowed;
|
|
754
754
|
opacity: 0.5;
|
|
755
755
|
}
|
|
756
|
-
`,
|
|
756
|
+
`,Fu=n.div`
|
|
757
757
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
758
758
|
height: 56px;
|
|
759
759
|
display: flex;
|
|
@@ -764,31 +764,31 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
764
764
|
`:r`
|
|
765
765
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
766
766
|
`}
|
|
767
|
-
`,
|
|
767
|
+
`,zu=n.div`
|
|
768
768
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
769
769
|
display: flex;
|
|
770
770
|
justify-content: space-between;
|
|
771
771
|
align-items: center;
|
|
772
772
|
gap: 8px;
|
|
773
|
-
`,
|
|
773
|
+
`,Bu=({label:o,icon:n,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(Mu,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Fu,{$hovered:s,$hasIcon:!!n,children:n&&e(n,{size:36})}),t(zu,{$hasIcon:!!n,children:[r?e(qr,{withGradient:!0,titleSize:dn.S}):e(mn,{variant:cn.Span,align:"center",children:o}),e(It,{rotate:90,size:24})]})]})},Hu=({buttons:t})=>e(zr,{$gap:12,children:t.map((t,o)=>e(Bu,{...t},`${t.label}-${o}`))});var Wu;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Wu||(Wu={}));const ju=n.div`
|
|
774
774
|
display: flex;
|
|
775
775
|
align-items: flex-end;
|
|
776
776
|
justify-content: space-between;
|
|
777
777
|
gap: 24px;
|
|
778
778
|
width: fit-content;
|
|
779
|
-
`,
|
|
779
|
+
`,Gu=n.div`
|
|
780
780
|
position: relative;
|
|
781
781
|
display: flex;
|
|
782
782
|
flex-direction: column;
|
|
783
783
|
align-items: center;
|
|
784
784
|
width: ${({$width:e})=>e??150}px;
|
|
785
785
|
flex-shrink: 0;
|
|
786
|
-
`,
|
|
786
|
+
`,Xu=n.svg`
|
|
787
787
|
display: block;
|
|
788
788
|
width: 100%;
|
|
789
789
|
height: auto;
|
|
790
790
|
overflow: visible;
|
|
791
|
-
`,
|
|
791
|
+
`,Vu=n(zr)`
|
|
792
792
|
position: absolute;
|
|
793
793
|
left: 0;
|
|
794
794
|
right: 0;
|
|
@@ -796,14 +796,14 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
796
796
|
align-items: center;
|
|
797
797
|
gap: 2px;
|
|
798
798
|
pointer-events: none;
|
|
799
|
-
`,
|
|
799
|
+
`,Ku=n.span`
|
|
800
800
|
display: inline-block;
|
|
801
801
|
flex-shrink: 0;
|
|
802
802
|
width: 9px;
|
|
803
803
|
height: 9px;
|
|
804
804
|
border-radius: 50%;
|
|
805
805
|
background-color: ${({$color:e})=>e};
|
|
806
|
-
`,
|
|
806
|
+
`,Yu=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:""}},Ju=(e,t,o,n)=>{const r=n*Math.PI/180;return{x:e+o*Math.cos(r),y:t-o*Math.sin(r)}},qu=(e,t,o,n,r)=>{const i=Ju(e,t,o,n),a=Ju(e,t,o,r),s=n>r?1:0,l=Math.abs(n-r)>180?1:0;return`M ${i.x} ${i.y} A ${o} ${o} 0 ${l} ${s} ${a.x} ${a.y}`},Qu=({variant:o=Wu.CurrentOfMax,gaugeWidth:n,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Yu(a),{number:g}=Yu(s),{number:m,prefix:f,suffix:y}=Yu(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?qu(60,60,55,180,E):null,$=v<1?qu(60,60,55,E,0):null,C=Ju(60,60,55,180),x=Ju(60,60,55,0),w=d??(o===Wu.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(o===Wu.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),I=e=>`${f}${e}${y}`,A=o===Wu.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?c:"secondary"===O?u:"",R="primary"===O?I(m):"secondary"===O?I(A):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return t(ju,{children:[t(Gu,{$width:n,children:[e(hd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:t(Xu,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[S&&e("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&e("path",{d:$,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&e("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&e("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),r&&t(Vu,{children:[e(mn,{size:dn.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),e(mn,{size:dn.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),t(zr,{$gap:7,children:[t(Fr,{$gap:8,$alignItems:"center",children:[e(Ku,{$color:w}),e(mn,{size:dn.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Fr,{$gap:8,$alignItems:"center",children:[e(Ku,{$color:T}),e(mn,{size:dn.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Zu=n(Fr)`
|
|
807
807
|
width: 100%;
|
|
808
808
|
padding: 8px 12px;
|
|
809
809
|
border-radius: 6px;
|
|
@@ -812,26 +812,26 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
812
812
|
align-items: center;
|
|
813
813
|
justify-content: space-between;
|
|
814
814
|
gap: 12px;
|
|
815
|
-
`,
|
|
815
|
+
`,ep=n.div`
|
|
816
816
|
position: relative;
|
|
817
817
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
818
818
|
display: flex;
|
|
819
819
|
align-items: center;
|
|
820
820
|
gap: 4px;
|
|
821
|
-
`,
|
|
821
|
+
`,tp=n.pre`
|
|
822
822
|
flex: 1;
|
|
823
823
|
margin: 0;
|
|
824
824
|
padding: 0;
|
|
825
825
|
font-size: 12px;
|
|
826
826
|
color: #5ffb98; // TODO: add to theme
|
|
827
827
|
overflow-x: auto;
|
|
828
|
-
`,
|
|
828
|
+
`,op=n.span`
|
|
829
829
|
flex-shrink: 0;
|
|
830
830
|
font-size: 14px;
|
|
831
831
|
color: #5ffb98; // TODO: add to theme
|
|
832
|
-
`,
|
|
832
|
+
`,np=({bgTint:o,label:n,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Bc({onDone:a}),l=Wt(null),[c,d]=Ft(!1);return zt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),t(zr,{$gap:4,children:[n&&e(mn,{size:dn.XXXS,color:un.Secondary,children:n}),t(Zu,{$bgTint:o,children:[t(ep,{$hideCopy:i,children:[e(tp,{ref:l,children:r}),c&&e(op,{children:"..."})]}),!i&&e(s,{value:r,size:Mc.XS})]})]})},rp=n(Fr)`
|
|
833
833
|
gap: 0;
|
|
834
|
-
`,
|
|
834
|
+
`,ip=n.button`
|
|
835
835
|
padding: 4px 8px;
|
|
836
836
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
837
837
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -843,20 +843,20 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
843
843
|
&:hover {
|
|
844
844
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
845
845
|
}
|
|
846
|
-
`,
|
|
846
|
+
`,ap=({isPrettyMode:o,setIsPrettyMode:n})=>t(rp,{children:[e(ip,{$position:"left",$selected:o,onClick:()=>n(!0),children:e(At,{})}),e(ip,{$position:"right",$selected:!o,onClick:()=>n(!1),children:e(bt,{})})]}),sp=n.table`
|
|
847
847
|
border-collapse: collapse;
|
|
848
848
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
849
|
-
`,
|
|
849
|
+
`,lp=n.tbody``,cp=n.tr`
|
|
850
850
|
td:first-child {
|
|
851
851
|
padding-left: 0 !important;
|
|
852
852
|
}
|
|
853
853
|
td:last-child {
|
|
854
854
|
padding-right: 0 !important;
|
|
855
855
|
}
|
|
856
|
-
`,
|
|
856
|
+
`,dp=n.td`
|
|
857
857
|
vertical-align: top;
|
|
858
858
|
padding: 4px 6px;
|
|
859
|
-
`,
|
|
859
|
+
`,up=n.span`
|
|
860
860
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
861
861
|
overflow-wrap: break-word;
|
|
862
862
|
word-break: break-word;
|
|
@@ -864,9 +864,9 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
864
864
|
/* Fallback for older browsers */
|
|
865
865
|
-ms-word-break: break-all;
|
|
866
866
|
font-size: 12px;
|
|
867
|
-
`,
|
|
867
|
+
`,pp=({language:t,code:o,theme:n,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=n?qt[n]:s?qt.palenight:qt.vsLight;let c="";if("json"===t){const e=ii(o,{}),t=Ni(e);c=Ii(r?Fn(t):t)}else c=o;return a&&"json"===t?e(hp,{darkMode:s,str:c}):e(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:o,tokens:n})=>e("pre",{children:n.map((n,r)=>e("div",{...t({line:n}),children:n.map((t,n)=>e(up,{...o({token:t})},`line-${r}-token-${n}`))},`line-${r}`))})})},hp=({darkMode:o,str:n})=>{const r=i(),a=(o,n)=>{const i=new Array(o).fill(o=>t(cp,{...o,children:[e(dp,{}),e(dp,{})]}));return e(Mt,{children:i.map((t,o)=>e(t,{style:0===o?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${o}`))})};return e(Jt,{theme:o?qt.palenight:qt.vsLight,language:"json",code:n,children:({getLineProps:o,getTokenProps:n,tokens:i})=>e(sp,{children:e(lp,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],n=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(n.split("@")[0])&&(o[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:n}})})(i),c=o({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Mt,{children:[a(2,s),t(cp,{...c,children:[e(dp,{children:e(mn,{nowrap:!0,children:l[0].content})}),e(dp,{})]})]},`line-${s}`):2===l.length?e(cp,{...c,children:l.map((o,i)=>{const{text:a,components:l}=((t,o)=>{const[n,...r]=t.split("@");return{text:n,components:r?.map((t,n)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(hd,{withIcon:!0,text:i},`${r}-${i}-${n}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${n}`);let t=Qr(i,o);return t||(t=Qr(wo.Warning,o)),e(t,{},`${r}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(o.content,r),c=0===i;return e(dp,{children:t(Fr,{children:[e(Fr,{children:l}),e(up,{$noWrap:c,...n({token:o}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},gp=n.div`
|
|
868
868
|
display: flex;
|
|
869
|
-
align-items: center;
|
|
869
|
+
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
870
870
|
gap: 8px;
|
|
871
871
|
padding: ${({$hideBackground:e,$slim:t})=>e?"0":t?"8px":"16px"};
|
|
872
872
|
width: ${({$width:e})=>e||"auto"};
|
|
@@ -880,10 +880,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
880
880
|
background-color: ${t?"transparent":o};
|
|
881
881
|
}
|
|
882
882
|
`}
|
|
883
|
-
`,
|
|
883
|
+
`,mp=n.div`
|
|
884
884
|
display: flex;
|
|
885
885
|
align-items: center;
|
|
886
886
|
justify-content: center;
|
|
887
|
+
align-self: ${({$slim:e})=>e?"flex-start":"auto"};
|
|
887
888
|
flex-shrink: 0;
|
|
888
889
|
width: ${({$slim:e})=>e?"32px":"42px"};
|
|
889
890
|
height: ${({$slim:e})=>e?"32px":"42px"};
|
|
@@ -898,50 +899,54 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
898
899
|
transform: scale(1.2);
|
|
899
900
|
}
|
|
900
901
|
`}
|
|
901
|
-
`,
|
|
902
|
+
`,fp=n(zr)`
|
|
902
903
|
flex: 1;
|
|
904
|
+
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
903
905
|
min-width: 0;
|
|
904
|
-
`,
|
|
906
|
+
`,yp=n(zr)`
|
|
907
|
+
align-self: stretch;
|
|
908
|
+
flex-shrink: 0;
|
|
909
|
+
`,bp=n.div`
|
|
905
910
|
display: flex;
|
|
906
911
|
align-items: center;
|
|
907
912
|
justify-content: center;
|
|
908
913
|
flex-shrink: 0;
|
|
909
914
|
width: 24px;
|
|
910
915
|
height: 24px;
|
|
911
|
-
`,
|
|
916
|
+
`,vp=({status:o,title:n,subTitle:r,details:a,actionDetails:s,badgeLabel:l,loading:c,actionButtons:d,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=i(),v=Qr(o,b),E=p?u?xt:wt:void 0,S=o===wo.Unknown,$=o===wo.Disabled,C=o===wo.Loading||c,x=[wo.Error,wo.Warning,wo.Success].includes(o),w=fr(b,o,$?h?"400":"700":S?"600":h?"300":"500"),T=$?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!S?w:T,N=!h||S||$?"rgba(0, 0, 0, 0.13)":fr(b,o,"800"),I=$?b.v2.colors.grey[900]:h||S?b.v2.colors.silver[800]:w,A=$?b.v2.colors.grey[800]:h||S?b.v2.colors.silver[700]:fr(b,o,"600");return t(gp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:I,$hoverBackgroundColor:A,$slim:y,onClick:p,children:[!g&&e(mp,{$backgroundColor:N,$slim:y,children:C?e(qr,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(v,{size:32,fill:O})}),t(fp,{$gap:4,$justifyContent:"center",$slim:y,children:[t(Fr,{$gap:10,$alignItems:"center",children:[e(mn,{size:y?dn.XS:dn.S,weight:500,color:O,children:n}),l&&e(md,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:dn.XXXS})]}),r&&e(mn,{size:dn.XXXS,color:T,children:r}),a]}),(!!d?.length||s)&&t(yp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&e(Fr,{$gap:8,children:d.map(t=>e(vd,{...t,variant:fd.Secondary,size:yd.S},t["data-id"]??t.label))}),s]}),E&&e(bp,{children:e(E,{size:24,fill:T})})]})},Ep=n.div`
|
|
912
917
|
display: flex;
|
|
913
918
|
flex-direction: column;
|
|
914
919
|
width: 100%;
|
|
915
920
|
border-radius: 12px;
|
|
916
921
|
overflow: hidden;
|
|
917
|
-
`,
|
|
922
|
+
`,Sp=n.div`
|
|
918
923
|
display: flex;
|
|
919
924
|
flex-direction: column;
|
|
920
925
|
gap: 8px;
|
|
921
926
|
padding: 8px 12px 16px 12px;
|
|
922
927
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
923
|
-
|
|
928
|
+
`,$p=n.div`
|
|
924
929
|
display: flex;
|
|
925
930
|
align-items: center;
|
|
926
931
|
gap: 8px;
|
|
927
|
-
`,
|
|
932
|
+
`,Cp=n.div`
|
|
928
933
|
display: flex;
|
|
929
934
|
align-items: center;
|
|
930
935
|
justify-content: center;
|
|
931
936
|
flex-shrink: 0;
|
|
932
937
|
width: 18px;
|
|
933
938
|
height: 18px;
|
|
934
|
-
`,
|
|
939
|
+
`,xp=({conditions:o,title:n,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>vi(o),[o]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>Wn(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ht(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ht(()=>p?wo.Error:g?wo.Warning:m?wo.Info:wo.Success,[p,g,m]),v=Ht(()=>n||(1===d.length?ln(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:o,loading:n})=>e?"Something Failed":t||o?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[n,d,p,g,m,y]),E=Ht(()=>r||1===d.length&&d[0].message||void 0,[r,d]),S=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(Ep,{children:[e(vp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&e(Sp,{children:d.map(({status:o,type:n,reason:r,message:i},s)=>{const l=o===wo.Loading,c=o===wo.Disabled?wo.Info:o,d=l?null:Qr(c,a),u=o===wo.Error?fr(a,wo.Error,"500"):o===wo.Warning?fr(a,wo.Warning,"500"):a.v2.colors.white[500],p=[n,i||r].filter(Boolean).join(" - ");return t($p,{children:[e(Cp,{children:l||!d?e(qr,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(mn,{size:dn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},wp=n.div`
|
|
935
940
|
width: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Vertical?`${t}px`:o||"100%"};
|
|
936
941
|
height: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Horizontal?`${t}px`:o||"100%"};
|
|
937
942
|
margin: ${({$orientation:e,$margin:t})=>t||(e===ho.Horizontal?"8px 0":"0 8px")};
|
|
938
|
-
background-color: ${({$type:e,theme:t})=>(e?
|
|
943
|
+
background-color: ${({$type:e,theme:t})=>(e?fr(t,e):t.v2.colors.grey[400])+Td["050"]};
|
|
939
944
|
opacity: ${({$opacity:e})=>e||1};
|
|
940
|
-
`,
|
|
945
|
+
`,Tp=({orientation:t=ho.Horizontal,type:o,thickness:n=1,length:r,margin:i,opacity:a})=>e(wp,{$orientation:t,$type:o,$thickness:n,$length:r,$margin:i,$opacity:a});var Op,Np,Ip;(e=>{e.Default="default",e.SuccessError="successError"})(Op||(Op={})),(e=>{e.S="small",e.L="large"})(Np||(Np={})),(e=>{e.Left="left",e.Right="right"})(Ip||(Ip={}));const Ap=n.div`
|
|
941
946
|
display: flex;
|
|
942
947
|
align-items: center;
|
|
943
948
|
gap: ${({$gap:e})=>e}px;
|
|
944
|
-
`,
|
|
949
|
+
`,_p=n.div`
|
|
945
950
|
position: relative;
|
|
946
951
|
display: flex;
|
|
947
952
|
align-items: center;
|
|
@@ -952,11 +957,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
952
957
|
height: ${({$size:e})=>e}px;
|
|
953
958
|
padding: ${4}px;
|
|
954
959
|
border-radius: ${({$size:e})=>2*e}px;
|
|
955
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(o&&!r)return o;switch(n){case
|
|
960
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(o&&!r)return o;switch(n){case Op.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Op.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
956
961
|
|
|
957
962
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
958
963
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
959
|
-
`,
|
|
964
|
+
`,Rp=n.div`
|
|
960
965
|
position: absolute;
|
|
961
966
|
top: 50%;
|
|
962
967
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -966,17 +971,17 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
966
971
|
border-radius: 100%;
|
|
967
972
|
background-color: ${({$color:e})=>e};
|
|
968
973
|
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)"};
|
|
969
|
-
`,
|
|
974
|
+
`,Dp=({variant:n=Op.Default,size:r=Np.L,name:a,label:s,labelAlign:l=Ip.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=$t,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:$})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=r===Np.S?10:16,T=c||C.v2.colors.silver[200],O=r===Np.S?dn.XXXS:dn.XS,N=r===Np.S?8:12;return t(zr,{$gap:4,children:[t(Fr,{$justifyContent:"space-between",children:[t(Ap,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Ip.Left&&e(mn,{color:T,size:O,nowrap:!0,children:s}),t(_p,{$onBgColor:b,$offBgColor:v,$variant:n,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(Rp,{$color:x,$size:w,$value:p,$disabled:g}),m&&t(o,{children:[e(f,{size:w,fill:x}),e(y,{size:w,fill:x})]})]}),s&&l===Ip.Right&&e(mn,{color:T,size:O,nowrap:!0,children:s})]}),e(Kd,{tooltip:d,badge:u})]}),e(Yd,{errorMessage:E,warnMessage:S,helpMessage:$})]})},kp=n.div`
|
|
970
975
|
display: flex;
|
|
971
976
|
flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
|
|
972
977
|
gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
|
|
973
|
-
`,
|
|
978
|
+
`,Lp=({direction:o=ho.Vertical,title:n,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===Np.S?dn.XS:dn.S;return t(kp,{$direction:o,children:[n&&e(mn,{size:c,children:n}),a.map(t=>e(Dp,{...t,labelAlign:Ip.Right,value:s[t.id],onChange:e=>{return o=t.id,n=e,void l(e=>{const t={...e};return o?t[o]=n:a.forEach(e=>t[e.id]=n),t});var o,n},disabled:i,size:r},`${n}-toggle-${t.id}`))]})},Pp=n.div`
|
|
974
979
|
display: flex;
|
|
975
980
|
align-items: center;
|
|
976
981
|
justify-content: space-between;
|
|
977
982
|
width: 100%;
|
|
978
983
|
overflow: hidden;
|
|
979
|
-
`,
|
|
984
|
+
`,Up=n.div`
|
|
980
985
|
display: flex;
|
|
981
986
|
align-items: center;
|
|
982
987
|
gap: 16px;
|
|
@@ -984,7 +989,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
984
989
|
min-width: 0;
|
|
985
990
|
flex: 1;
|
|
986
991
|
overflow: hidden;
|
|
987
|
-
`,
|
|
992
|
+
`,Mp=n.div`
|
|
988
993
|
display: flex;
|
|
989
994
|
align-items: center;
|
|
990
995
|
justify-content: center;
|
|
@@ -993,23 +998,23 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
993
998
|
height: 36px;
|
|
994
999
|
border-radius: 8px;
|
|
995
1000
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
996
|
-
`,
|
|
1001
|
+
`,Fp=n.img`
|
|
997
1002
|
width: 24px;
|
|
998
1003
|
height: 24px;
|
|
999
|
-
`,
|
|
1004
|
+
`,zp=n.div`
|
|
1000
1005
|
display: flex;
|
|
1001
1006
|
align-items: center;
|
|
1002
1007
|
gap: 16px;
|
|
1003
1008
|
flex-shrink: 0;
|
|
1004
|
-
`,
|
|
1009
|
+
`,Bp=({icon:o,iconSrc:n,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(Pp,{children:[t(Up,{children:[o?e(Mp,{children:e(o,{size:24})}):n?e(Mp,{children:e(Fp,{src:n,alt:r||"icon"})}):null,(r||i?.length||a)&&t(zr,{$gap:6,children:[(r||i?.length)&&t(Fr,{$gap:16,children:[r&&e(mn,{size:dn.S,weight:500,children:r}),i?.length&&e(Fr,{$gap:4,children:i?.map((t,o)=>e(md,{...t},`${t.label}-${o}`))})]}),a&&e(mn,{size:dn.XXS,children:a})]})]}),t(zp,{children:[s&&e(Dp,{...s}),l?.length?e(pu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(zc,{"data-id":"drawer-close",icon:$t,size:Mc.M,onClick:c,disabled:d})]})]}),Hp=n.div`
|
|
1005
1010
|
position: relative;
|
|
1006
1011
|
&.animated {
|
|
1007
1012
|
overflow: hidden;
|
|
1008
1013
|
padding-bottom: 1px;
|
|
1009
1014
|
border-radius: 8px;
|
|
1010
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1015
|
+
animation: ${({$isLeaving:e})=>e?Nd.out.bottom:Nd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1011
1016
|
}
|
|
1012
|
-
`,
|
|
1017
|
+
`,Wp=n.div`
|
|
1013
1018
|
position: absolute;
|
|
1014
1019
|
bottom: -1px;
|
|
1015
1020
|
left: 0;
|
|
@@ -1017,9 +1022,9 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1017
1022
|
width: 100%;
|
|
1018
1023
|
height: 100%;
|
|
1019
1024
|
border-radius: 8px;
|
|
1020
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1021
|
-
animation: ${
|
|
1022
|
-
`,
|
|
1025
|
+
background-color: ${({theme:e,$status:t})=>fr(e,t,t===wo.Default?"300":t===wo.Info?"400":"500")};
|
|
1026
|
+
animation: ${Id.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1027
|
+
`,jp=n.div`
|
|
1023
1028
|
display: flex;
|
|
1024
1029
|
align-items: center;
|
|
1025
1030
|
gap: 10px;
|
|
@@ -1028,37 +1033,37 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1028
1033
|
`}
|
|
1029
1034
|
padding: 8px 12px 8px 8px;
|
|
1030
1035
|
border-radius: 8px;
|
|
1031
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1032
|
-
`,
|
|
1036
|
+
background-color: ${({theme:e,$status:t})=>fr(e,t,[wo.Info,wo.Warning].includes(t)?"1000":"900")};
|
|
1037
|
+
`,Gp=n.div`
|
|
1033
1038
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1034
1039
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1035
1040
|
display: flex;
|
|
1036
1041
|
align-items: center;
|
|
1037
1042
|
justify-content: center;
|
|
1038
1043
|
border-radius: 6px;
|
|
1039
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1040
|
-
`,
|
|
1044
|
+
background-color: ${({theme:e,$status:t})=>fr(e,t,[wo.Info].includes(t)?"900":"800")};
|
|
1045
|
+
`,Xp=n.div`
|
|
1041
1046
|
margin-left: auto;
|
|
1042
1047
|
display: flex;
|
|
1043
1048
|
align-items: center;
|
|
1044
1049
|
gap: 4px;
|
|
1045
|
-
`,
|
|
1050
|
+
`,Vp=n.div`
|
|
1046
1051
|
margin-right: 8px;
|
|
1047
1052
|
cursor: pointer;
|
|
1048
1053
|
&:hover {
|
|
1049
1054
|
transform: scale(1.2);
|
|
1050
1055
|
}
|
|
1051
|
-
`,
|
|
1056
|
+
`,Kp=({status:o,message:n,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=Qr(o,u),h=fr(u,o,o===wo.Default?"300":o===wo.Info?"400":"500"),[g,m]=Ft(!1),f=Wt(null),y=Wt(null),b=c/10,v=c-b,E=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),b))};return zt(()=>{if(l)return f.current=setTimeout(()=>E({asSeen:!1}),v),()=>{f.current&&clearTimeout(f.current)}},[c]),t(Hp,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*v;f.current=setTimeout(()=>E({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(jp,{$status:o,$fullWidth:a,children:[e("div",{children:e(Gp,{$status:o,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(mn,{color:h,size:dn.XXXS,weight:400,children:n}),(r||l)&&t(Xp,{children:[r&&e(Vp,{"data-id":r["data-id"],onClick:r.onClick,children:e(mn,{color:h,size:dn.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&e(zc,{"data-id":"note-close",icon:$t,size:Mc.XS,onClick:()=>E({asSeen:!0})})]})]}),l&&e(Wp,{ref:y,$status:o,$duration:c})]})},Yp=n.div`
|
|
1052
1057
|
display: flex;
|
|
1053
1058
|
align-items: center;
|
|
1054
1059
|
gap: 8px;
|
|
1055
1060
|
padding: 4px 12px;
|
|
1056
|
-
`,
|
|
1061
|
+
`,Jp=n.div`
|
|
1057
1062
|
flex: 1;
|
|
1058
|
-
`,
|
|
1063
|
+
`,qp=n.div`
|
|
1059
1064
|
min-width: 150px;
|
|
1060
1065
|
width: fit-content;
|
|
1061
|
-
`,
|
|
1066
|
+
`,Qp=({note:o,actions:n,children:r})=>r?e(Yp,{children:r}):t(Yp,{children:[o&&e(Kp,{...o}),e(Jp,{}),n?.map((t,o)=>e(qp,{children:e(vd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${o}`))]}),Zp=n.div`
|
|
1062
1067
|
position: fixed;
|
|
1063
1068
|
top: 0;
|
|
1064
1069
|
bottom: 0;
|
|
@@ -1078,16 +1083,16 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1078
1083
|
overflow: hidden;
|
|
1079
1084
|
|
|
1080
1085
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1081
|
-
animation-name: ${
|
|
1086
|
+
animation-name: ${Nd.in[t]};
|
|
1082
1087
|
`}
|
|
1083
|
-
`,
|
|
1088
|
+
`,eh=n.div`
|
|
1084
1089
|
display: flex;
|
|
1085
1090
|
flex-direction: column;
|
|
1086
1091
|
gap: 12px;
|
|
1087
1092
|
|
|
1088
1093
|
height: calc(100% - ${56}px);
|
|
1089
1094
|
overflow-y: auto;
|
|
1090
|
-
`,
|
|
1095
|
+
`,th=({isOpen:n,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Pc(n),n?Yt(t(o,{children:[!r&&e(Wr,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),t(Zp,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&e(Bp,{...c}),e(eh,{children:u}),d&&e(Qp,{...d})]})]}),document.body):null),oh=({options:t,values:o,setValues:n,withMultiSelect:r,withSearch:i,...a})=>{const s=Ht(()=>t.filter(e=>o.includes(e.id)),[t,o]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return e(pu,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:ou.Left,items:t,selectedIds:o,setSelectedIds:n,children:({ChevronIcon:t,handleClick:o})=>e(Pu,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:o,readOnly:!0,tabIndex:-1})})},nh=({error:o})=>{const n=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:o?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:o?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(vd,{variant:fd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},rh=({children:t})=>e(eo,{FallbackComponent:({error:t,...o})=>e(wd,{children:e(nh,{...o,error:t})}),children:t}),ih=n.header`
|
|
1091
1096
|
position: relative;
|
|
1092
1097
|
width: 100%;
|
|
1093
1098
|
padding: 12px 18px;
|
|
@@ -1095,12 +1100,12 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1095
1100
|
display: flex;
|
|
1096
1101
|
align-items: center;
|
|
1097
1102
|
justify-content: space-between;
|
|
1098
|
-
`,
|
|
1103
|
+
`,ah=n(Fr)`
|
|
1099
1104
|
position: absolute;
|
|
1100
1105
|
left: 50%;
|
|
1101
1106
|
transform: translateX(-50%);
|
|
1102
1107
|
gap: 16px;
|
|
1103
|
-
`,
|
|
1108
|
+
`,sh=({left:o=[],center:n=[],right:r=[]})=>t(ih,{children:[e(Fr,{$gap:16,children:o}),e(ah,{children:n}),e(Fr,{$gap:16,children:r})]}),lh=n.div`
|
|
1104
1109
|
display: flex;
|
|
1105
1110
|
align-items: center;
|
|
1106
1111
|
gap: 2px;
|
|
@@ -1115,7 +1120,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1115
1120
|
left: ${({$left:e})=>e||"unset"};
|
|
1116
1121
|
top: 50%;
|
|
1117
1122
|
transform: translateY(-50%);
|
|
1118
|
-
`,
|
|
1123
|
+
`,ch=({isOpen:t,actions:o,positionRight:n,positionLeft:r})=>t?e(lh,{$right:n,$left:r,children:o.map(t=>{if(!t)return null;const{tooltip:o,...n}=t;return e(hd,{text:o||"",children:e(vd,{...n,variant:fd.Secondary,size:yd.S})},n.id)})}):null,dh=n.div`
|
|
1119
1124
|
display: flex;
|
|
1120
1125
|
align-items: center;
|
|
1121
1126
|
justify-content: center;
|
|
@@ -1123,32 +1128,32 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1123
1128
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1124
1129
|
aspect-ratio: 1 / 1;
|
|
1125
1130
|
border-radius: 8px;
|
|
1126
|
-
background-color: ${({theme:e,$noBackground:t,$status:o})=>t?"transparent":o?
|
|
1127
|
-
`,
|
|
1131
|
+
background-color: ${({theme:e,$noBackground:t,$status:o})=>t?"transparent":o?fr(e,o,o===wo.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1132
|
+
`,uh=({icons:o,icon:n,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=cr(d,c.v2.text.size);if(o&&o.length>1){const n=o.slice(0,3),r=o.length-n.length,i=n.slice(0,2),c=n.slice(2),u=c.length>0,h=Math.round(s/16);return e("div",{style:{width:"fit-content"},children:e(dh,{$size:s,$padding:l,$status:a,children:t(zr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[e(Fr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((t,o)=>e(t,{size:d},`top-${o}`))}),u&&t(Fr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((t,o)=>e(t,{size:d},`bottom-${o}`)),r>0&&e(mn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=o?.[0]||n;return e("div",{style:{width:"fit-content"},children:e(dh,{$size:s,$padding:l,$status:a,children:h?e(h,{size:u}):e("img",{src:r,alt:"",width:u,height:u})})})},ph=n.div`
|
|
1128
1133
|
width: 100%;
|
|
1129
1134
|
border-radius: 8px;
|
|
1130
1135
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1131
1136
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1132
|
-
`,
|
|
1137
|
+
`,hh=({values:o,setValues:n,name:r,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=o.length<=1,b=g,v=g||y&&b,E=o.length?o:[""];return e(ph,{$plain:m,children:t(zr,{"data-id":r,$gap:6,children:[e(Kd,{label:a,tooltip:s,required:c,badge:l}),e(zr,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return t(Fr,{$gap:8,$alignItems:"center",children:[e(Pu,{width:"100%",autoFocus:pi(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...o||[]];r[t]=e,n(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(vd,{leftIcon:_t,variant:fd.Secondary,size:yd.S,disabled:b,onClick:()=>(()=>{const e=o.length?_n(o):[_n("")];e.push(""),n(e)})()}),e(vd,{leftIcon:v?Rt:()=>e(Rt,{fill:f.v2.colors.red[500]}),variant:fd.Secondary,size:yd.S,disabled:v,onClick:()=>(e=>{const t=[...o||[]].filter((t,o)=>o!==e);t.length||t.push(""),n(t)})(i)})]},`input-list-${i}`)})}),e(Yd,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var gh;(e=>{e.S="small",e.L="large"})(gh||(gh={}));const mh=n.div`
|
|
1133
1138
|
width: fit-content;
|
|
1134
1139
|
display: flex;
|
|
1135
1140
|
align-items: center;
|
|
1136
1141
|
gap: 8px;
|
|
1137
1142
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1138
|
-
`,
|
|
1139
|
-
width: ${({$size:e})=>e===
|
|
1140
|
-
height: ${({$size:e})=>e===
|
|
1143
|
+
`,fh=n.div`
|
|
1144
|
+
width: ${({$size:e})=>e===gh.S?"16px":"20px"};
|
|
1145
|
+
height: ${({$size:e})=>e===gh.S?"16px":"20px"};
|
|
1141
1146
|
display: flex;
|
|
1142
1147
|
align-items: center;
|
|
1143
1148
|
justify-content: center;
|
|
1144
1149
|
border-radius: 100%;
|
|
1145
1150
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1146
1151
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1147
|
-
`,
|
|
1152
|
+
`,yh=({"data-id":o,label:n,value:r,onChange:a,disabled:s,size:l=gh.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===gh.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(mh,{"data-id":o??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(fh,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Dt,{size:h,fill:g}):null}),n&&e(mn,{size:l===gh.S?dn.XXS:dn.XS,children:n})]})},bh=n.div`
|
|
1148
1153
|
display: flex;
|
|
1149
1154
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1150
1155
|
gap: ${({$gap:e})=>e}px;
|
|
1151
|
-
`,
|
|
1156
|
+
`,vh=({label:o,direction:n,disabled:r,size:i,options:a,values:s,setValues:l})=>t(bh,{$flexDirection:n===ho.Horizontal?"row":"column",$gap:n===ho.Horizontal?16:8,children:[o&&e(mn,{children:o}),a.map(t=>e(yh,{...t,value:s[t.id],onChange:e=>{return o=t.id,n=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=n,t});var o,n},disabled:r,size:i},`${o}-radio-${t.id}`))]}),Eh=({col:o,colIdx:n,row:r,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:c,hideLabel:d,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=o,$=r[p];if(b&&!b(r))return null;const C=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const t=null!=$?String($):"",o=Object.fromEntries((y||[]).map(e=>[e.id,e.id===t]));return e(vh,{direction:ho.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:o,setValues:e=>{const t="function"==typeof e?e(o):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,i)},disabled:c},p)}case Co.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===h,o=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],n=y?.filter(e=>o.includes(e.id)).map(e=>e.id)||[];return e(oh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:t,withSearch:t,values:n,setValues:e=>s(p,t?e:e[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===n&&pi($),d=e(Pu,{name:p,label:C,placeholder:x,autoFocus:r,type:g,min:E,max:S,value:$,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:o.withRegexTester?"100%":void 0});return o.withRegexTester?t(Fr,{$gap:8,$alignItems:"center",$width:"100%",children:[e("div",{style:{flex:1,minWidth:0},children:d}),e(vd,{variant:fd.Secondary,size:yd.S,label:"Test",disabled:c||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):d}},Sh=n.div`
|
|
1152
1157
|
width: 100%;
|
|
1153
1158
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1154
1159
|
border-radius: 8px;
|
|
@@ -1156,28 +1161,28 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1156
1161
|
display: flex;
|
|
1157
1162
|
flex-direction: column;
|
|
1158
1163
|
gap: 8px;
|
|
1159
|
-
|
|
1164
|
+
`,$h=n.div`
|
|
1160
1165
|
flex: 1;
|
|
1161
1166
|
min-width: 0;
|
|
1162
|
-
`,
|
|
1167
|
+
`,Ch=n.div`
|
|
1163
1168
|
padding-top: 24px;
|
|
1164
|
-
`,
|
|
1169
|
+
`,xh=({columns:o,values:n,setValues:r,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=o.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return o.forEach(({keyName:e,defaultValue:o})=>t[e]=o??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=n.length?n:[b(v)],S=(f?E[0]?.[f]:"")||v,$=(e,t,o)=>{r(E.map((n,r)=>r===e?{...n,[t]:o}:n))},C=()=>r([...E,b(S)]),x=y.find(e=>e.id===S);return t(zr,{"data-id":a,$gap:16,$width:"100%",children:[s&&e(Kd,{label:s,tooltip:l,required:c}),m&&e(zd,{"data-id":`${a}-mode`,size:kd.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!d&&(e=>r([b(e)]))(String(e))}),t(zr,{$gap:8,$width:"100%",children:[E.map((n,i)=>{const s=i===E.length-1,l=f?{...n,[f]:S}:n,c=o.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const o=t||e.length||1,n=[];let r=[];const i=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void n.push([e]);r.push(e),r.length>=o&&i()}),i(),n})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return t(Sh,{"data-id":`${a}-card-${i}`,children:[t(Fr,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[t(zr,{$gap:10,children:[T&&e(Kd,{label:T}),m.map(t=>e(Fr,{$gap:24,children:(t.options??[]).map(o=>e(yh,{size:gh.L,label:o.label,value:String(n[t.keyName]??"")===String(o.id),disabled:d,onChange:e=>e&&$(i,t.keyName,o.id)},`${a}-card-${i}-${t.keyName}-${o.id}`))},`${a}-card-${i}-${t.keyName}`))]}),t(Fr,{$gap:4,$alignItems:"center",children:[v&&e(vd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:fd.Secondary,size:yd.S,disabled:d||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),e(vd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>e(Rt,{fill:g.v2.colors.red[500]}),variant:fd.Secondary,size:yd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,o)=>o!==e);r(t.length?t:[b(S)])})(i)}),s&&e(vd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:fd.Secondary,size:yd.S,disabled:d,onClick:C})]})]}),w.map((o,r)=>e(Fr,{$gap:8,$alignItems:"flex-start",$width:"100%",children:o.map((o,r)=>{const s=((e,t)=>{let{label:o,placeholder:n,helpMessage:r}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(o=i.label??o,n=i.placeholder??n,r=i.helpMessage??r)}return{label:o,placeholder:n,helpMessage:r}})(o,n);return t(Mt,{children:["arrow"===o.separator&&r>0&&e(Ch,{children:e(kt,{size:24,fill:g.v2.colors.silver[200]})}),e($h,{children:e(Pu,{name:`${a}-card-${i}-${o.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:o.inputType,min:o.min,max:o.max,width:"100%",value:n[o.keyName]??"",disabled:d,hasError:!!u,onChange:e=>$(i,o.keyName,e.target.value)})})]},`${a}-card-${i}-${o.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),e(Yd,{errorMessage:u})]})]})},wh=n.div`
|
|
1165
1170
|
width: 100%;
|
|
1166
1171
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1167
1172
|
border-radius: 8px;
|
|
1168
1173
|
padding: 4px 8px;
|
|
1169
|
-
`,
|
|
1174
|
+
`,Th=n.table`
|
|
1170
1175
|
width: 100%;
|
|
1171
1176
|
border-collapse: separate;
|
|
1172
1177
|
border-spacing: 0 8px;
|
|
1173
|
-
`,
|
|
1178
|
+
`,Oh=n.td`
|
|
1174
1179
|
padding: 0 8px 0 0;
|
|
1175
1180
|
vertical-align: top;
|
|
1176
|
-
`,
|
|
1181
|
+
`,Nh=n.td`
|
|
1177
1182
|
width: 72px;
|
|
1178
1183
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1179
1184
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1180
|
-
`,
|
|
1185
|
+
`,Ih=({columns:o,values:n,setValues:r,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return o.forEach(({keyName:t,defaultValue:o})=>e[t]=o??""),e},[o]),v=(e,t,o)=>{const i=n.length?_n(n):[_n(b)];i[o][e]=t,r(i)},E=n.length?n:[b];return e(wh,{children:t(zr,{"data-id":a,$gap:0,children:[e(Kd,{label:s,tooltip:l,required:d,badge:c}),e(Th,{children:e("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const o=t||e.length||1,n=[];let r=[];const i=()=>{r.length&&(n.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void n.push([e]);r.push(e),r.length>=o&&i()}),i(),n})(o.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return t(Mt,{children:[l.length>1&&a>0?e("tr",{children:e(Oh,{colSpan:d+1})}):null,l.map((o,l)=>{const g=c[l],m=g?22:0;return t("tr",{children:[o.map((n,r)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const s=r===o.length-1,c=0===l&&s?d-o.length+1:1;return e(Oh,{colSpan:c>1?c:void 0,children:t(zr,{$gap:6,children:[g&&(n.label?e(Kd,{label:n.label,tooltip:n.tooltip}):e(Kd,{label:"\\u00A0"})),e(Eh,{col:n,colIdx:r,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:g,onTestRegex:f})]})},`input-table-row-${a}-col-${l}-${r}`)}),0===l&&e(Nh,{$topOffset:m,$center:h,children:t(Fr,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&e(vd,{leftIcon:_t,variant:fd.Secondary,size:yd.S,disabled:u,onClick:()=>(()=>{const e=n.length?_n(n):[_n(b)];e.push(_n(b)),r(e)})()}),e(vd,{leftIcon:u?Rt:()=>e(Rt,{fill:y.v2.colors.red[500]}),variant:fd.Secondary,size:yd.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,o)=>o!==e);t.length||t.push(_n(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),e(Yd,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Ah=n.div`
|
|
1181
1186
|
display: flex;
|
|
1182
1187
|
align-items: center;
|
|
1183
1188
|
justify-content: space-between;
|
|
@@ -1185,15 +1190,15 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1185
1190
|
|
|
1186
1191
|
padding: 18px 16px;
|
|
1187
1192
|
border-radius: 18px;
|
|
1188
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1193
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Td["095"]};
|
|
1189
1194
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1190
1195
|
|
|
1191
1196
|
position: fixed;
|
|
1192
1197
|
bottom: 0;
|
|
1193
1198
|
left: 50%;
|
|
1194
1199
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1195
|
-
animation-name: ${
|
|
1196
|
-
`,
|
|
1200
|
+
animation-name: ${Nd.in.center};
|
|
1201
|
+
`,_h=({isOpen:o,onClose:n,richTitle:r,actions:i})=>o?t(Ah,{children:[e(fu,{...r}),e(gu,{onAnyClick:n,actions:i})]}):null,Rh=n.div`
|
|
1197
1202
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1198
1203
|
top: 50%;
|
|
1199
1204
|
left: 50%;
|
|
@@ -1214,7 +1219,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1214
1219
|
will-change: transform;
|
|
1215
1220
|
contain: layout paint;
|
|
1216
1221
|
|
|
1217
|
-
animation-name: ${({$closing:e})=>e?
|
|
1222
|
+
animation-name: ${({$closing:e})=>e?Nd.out.center:Nd.in.center};
|
|
1218
1223
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1219
1224
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1220
1225
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1223,9 +1228,9 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1223
1228
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1224
1229
|
don't compete with the slide-out. */
|
|
1225
1230
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1226
|
-
`,
|
|
1231
|
+
`,Dh=n(Wr)`
|
|
1227
1232
|
will-change: opacity;
|
|
1228
|
-
animation-name: ${({$closing:e})=>e?
|
|
1233
|
+
animation-name: ${({$closing:e})=>e?Rd.out:Rd.in};
|
|
1229
1234
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1230
1235
|
|
|
1231
1236
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1233,18 +1238,18 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1233
1238
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1234
1239
|
because the overlay is fading to 0. */
|
|
1235
1240
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1236
|
-
`,
|
|
1241
|
+
`,kh=n.div`
|
|
1237
1242
|
position: relative;
|
|
1238
|
-
`,
|
|
1243
|
+
`,Lh=n.div`
|
|
1239
1244
|
position: absolute;
|
|
1240
1245
|
top: 16px;
|
|
1241
1246
|
left: 16px;
|
|
1242
|
-
`,
|
|
1247
|
+
`,Ph=({isOpen:n,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(n),[p,h]=Ft(!1);if(zt(()=>{n?(u(!0),h(!1)):d&&h(!0)},[n]),Pc(d),!d)return null;const g=t(o,{children:[!r&&e(Dh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(Rh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(kh,{children:[a&&e(Lh,{children:e(zc,{icon:t=>e(It,{rotate:-90,...t}),size:Mc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Uh=n.div`
|
|
1243
1248
|
position: relative;
|
|
1244
1249
|
width: ${64}px;
|
|
1245
1250
|
height: ${({$height:e})=>e};
|
|
1246
1251
|
flex-shrink: 0;
|
|
1247
|
-
`,
|
|
1252
|
+
`,Mh=n.aside`
|
|
1248
1253
|
position: absolute;
|
|
1249
1254
|
top: 0;
|
|
1250
1255
|
left: 0;
|
|
@@ -1264,7 +1269,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1264
1269
|
transition:
|
|
1265
1270
|
width 200ms ease,
|
|
1266
1271
|
padding 200ms ease;
|
|
1267
|
-
`,
|
|
1272
|
+
`,Fh=n.button`
|
|
1268
1273
|
display: flex;
|
|
1269
1274
|
align-items: center;
|
|
1270
1275
|
width: 100%;
|
|
@@ -1284,20 +1289,20 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1284
1289
|
&:active {
|
|
1285
1290
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1286
1291
|
}
|
|
1287
|
-
`,
|
|
1292
|
+
`,zh=n.div`
|
|
1288
1293
|
width: ${40}px;
|
|
1289
1294
|
height: ${40}px;
|
|
1290
1295
|
display: flex;
|
|
1291
1296
|
align-items: center;
|
|
1292
1297
|
justify-content: center;
|
|
1293
1298
|
flex-shrink: 0;
|
|
1294
|
-
`,
|
|
1299
|
+
`,Bh=n.div`
|
|
1295
1300
|
flex: 1 1 0;
|
|
1296
1301
|
min-width: 0;
|
|
1297
1302
|
overflow: hidden;
|
|
1298
1303
|
padding-right: 12px;
|
|
1299
1304
|
pointer-events: none;
|
|
1300
|
-
`,
|
|
1305
|
+
`,Hh=({height:o,icons:n})=>{const r=i(),[a,s]=Ft(!1);return e(Uh,{$height:o,children:e(Mh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:o,label:n,selected:i,icon:s,onClick:l})=>t(Fh,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[e(zh,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(Bh,{children:e(mn,{size:dn.S,weight:500,color:un.Primary,nowrap:!0,children:n})})]},o))})})},Wh=n.div`
|
|
1301
1306
|
display: flex;
|
|
1302
1307
|
flex-direction: column;
|
|
1303
1308
|
gap: 16px;
|
|
@@ -1321,20 +1326,20 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1321
1326
|
}
|
|
1322
1327
|
`}
|
|
1323
1328
|
`}
|
|
1324
|
-
`,
|
|
1329
|
+
`,jh=n.div`
|
|
1325
1330
|
display: flex;
|
|
1326
1331
|
align-items: center;
|
|
1327
1332
|
gap: 16px;
|
|
1328
1333
|
width: 100%;
|
|
1329
|
-
`,
|
|
1334
|
+
`,Gh=n.div`
|
|
1330
1335
|
display: flex;
|
|
1331
1336
|
flex-direction: column;
|
|
1332
1337
|
gap: 4px;
|
|
1333
1338
|
flex: 1;
|
|
1334
1339
|
min-width: 0;
|
|
1335
|
-
`,
|
|
1340
|
+
`,Xh=n.div`
|
|
1336
1341
|
width: 100%;
|
|
1337
|
-
`,
|
|
1342
|
+
`,Vh=({"data-id":o,title:n,description:r,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=o??`radio-card-${n}`,h=()=>{d||c(!0)};return t(Wh,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[t(jh,{children:[e(yh,{"data-id":`${p}-radio`,value:l,onChange:h,size:gh.L,disabled:d}),t(Gh,{children:[e(mn,{size:dn.S,weight:500,lineHeight:"24px",color:un.Primary,children:n}),r&&e(mn,{size:dn.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:un.Secondary,children:r})]})]}),a&&e(Xh,{children:a}),s&&e(Xh,{children:s})]})},Kh=n.div`
|
|
1338
1343
|
width: 100%;
|
|
1339
1344
|
height: 100%;
|
|
1340
1345
|
|
|
@@ -1342,7 +1347,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1342
1347
|
animation: none !important;
|
|
1343
1348
|
transition: none !important;
|
|
1344
1349
|
}
|
|
1345
|
-
`,
|
|
1350
|
+
`,Yh=({width:t="100%",height:o="100%",gap:n=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=Wt(null),d=Ht(()=>n?r.map((t,o)=>e("div",{style:{paddingBottom:n},children:t},`scroll-y-item-${o}`)):r,[r,n]),u=Bt(e=>{if(!a||!c.current)return;const t=c.current.findItemIndex(e);a(t)},[a]);zt(()=>{null==s||s<0||!c.current||c.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=e(to,{ref:c,style:{width:t,height:o},onScroll:a?u:void 0,children:d});return i?e(Kh,{children:p}):p},Jh=n.div`
|
|
1346
1351
|
display: flex;
|
|
1347
1352
|
flex-direction: column;
|
|
1348
1353
|
gap: 16px;
|
|
@@ -1351,47 +1356,47 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1351
1356
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1352
1357
|
width: 100%;
|
|
1353
1358
|
height: 100%;
|
|
1354
|
-
`,
|
|
1359
|
+
`,qh=n.div`
|
|
1355
1360
|
display: flex;
|
|
1356
1361
|
align-items: center;
|
|
1357
1362
|
gap: 16px;
|
|
1358
|
-
`,
|
|
1363
|
+
`,Qh=n.div`
|
|
1359
1364
|
width: 50px;
|
|
1360
1365
|
height: 50px;
|
|
1361
1366
|
border-radius: 8px;
|
|
1362
1367
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1363
1368
|
background-size: 200% 100%;
|
|
1364
|
-
animation: ${
|
|
1365
|
-
`,
|
|
1369
|
+
animation: ${_d} 10s infinite linear;
|
|
1370
|
+
`,Zh=n(zr)`
|
|
1366
1371
|
flex: 1;
|
|
1367
1372
|
gap: 12px;
|
|
1368
|
-
`,
|
|
1373
|
+
`,eg=n.div`
|
|
1369
1374
|
width: ${({$width:e})=>e};
|
|
1370
1375
|
height: 16px;
|
|
1371
1376
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1372
1377
|
background-size: 200% 100%;
|
|
1373
|
-
animation: ${
|
|
1378
|
+
animation: ${_d} 1.5s infinite linear;
|
|
1374
1379
|
border-radius: 4px;
|
|
1375
|
-
`,
|
|
1380
|
+
`,tg=({size:o=5,maxWidth:n,maxHeight:r})=>e(Jh,{$maxWidth:n,$maxHeight:r,children:[...Array(o)].map((o,n)=>t(qh,{children:[e(Qh,{}),t(Zh,{children:[e(eg,{$width:"80%"}),e(eg,{$width:"100%"})]})]},n))}),og=({currentStep:o,data:n,gap:r=12})=>e(zr,{$gap:r,children:n.map(n=>{const r=n.step<o,i=n.step===o;return t(Fr,{$gap:8,children:[r||n.forceDoneBadge?e(md,{status:wo.Success,label:"",leftIcon:vt}):e(md,{status:wo.Default,label:n.step.toString()}),e(mn,{size:i?dn.M:dn.XS,weight:i?500:400,opacity:i?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var ng;(e=>{e.Data="data",e.Pretty="pretty"})(ng||(ng={}));const rg=n.div`
|
|
1376
1381
|
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1377
1382
|
width: 100%;
|
|
1378
1383
|
display: flex;
|
|
1379
1384
|
flex-direction: column;
|
|
1380
1385
|
overflow: hidden;
|
|
1381
|
-
`,
|
|
1386
|
+
`,ig=n.div`
|
|
1382
1387
|
width: 100%;
|
|
1383
1388
|
flex: 1;
|
|
1384
1389
|
display: flex;
|
|
1385
1390
|
flex-direction: column;
|
|
1386
|
-
`,
|
|
1391
|
+
`,ag=n.div`
|
|
1387
1392
|
flex-shrink: 0;
|
|
1388
1393
|
position: relative;
|
|
1389
1394
|
z-index: 2;
|
|
1390
|
-
`,
|
|
1395
|
+
`,sg=n.div`
|
|
1391
1396
|
position: relative;
|
|
1392
1397
|
display: flex;
|
|
1393
1398
|
width: 100%;
|
|
1394
|
-
`,
|
|
1399
|
+
`,lg=n.div`
|
|
1395
1400
|
position: relative;
|
|
1396
1401
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1397
1402
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
|
|
@@ -1410,12 +1415,12 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1410
1415
|
|
|
1411
1416
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1412
1417
|
background-color: ${t};
|
|
1413
|
-
`;switch(e){case
|
|
1418
|
+
`;switch(e){case ng.Data:return r`
|
|
1414
1419
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1415
|
-
`;case
|
|
1420
|
+
`;case ng.Pretty:return r`
|
|
1416
1421
|
background-color: transparent;
|
|
1417
1422
|
`;default:return""}}}
|
|
1418
|
-
`,
|
|
1423
|
+
`,cg=n.div`
|
|
1419
1424
|
position: absolute;
|
|
1420
1425
|
top: 50%;
|
|
1421
1426
|
right: 0;
|
|
@@ -1423,7 +1428,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1423
1428
|
width: 1px;
|
|
1424
1429
|
height: 18px;
|
|
1425
1430
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1426
|
-
`,
|
|
1431
|
+
`,dg=n.div`
|
|
1427
1432
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1428
1433
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:o})=>null!=o?`0 0 ${o}px`:e??(t?"0 0 auto":1)};
|
|
1429
1434
|
|
|
@@ -1458,16 +1463,16 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1458
1463
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1459
1464
|
box-sizing: border-box;
|
|
1460
1465
|
|
|
1461
|
-
${({$variant:e,$selected:t,$highlighted:o,$hovered:n,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case
|
|
1466
|
+
${({$variant:e,$selected:t,$highlighted:o,$hovered:n,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case ng.Data:return r`
|
|
1462
1467
|
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1463
1468
|
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1464
1469
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1465
|
-
`;case
|
|
1470
|
+
`;case ng.Pretty:return r`
|
|
1466
1471
|
border: none;
|
|
1467
1472
|
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1468
1473
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o||n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1469
1474
|
`;default:return""}}}
|
|
1470
|
-
`,
|
|
1475
|
+
`,ug=n.div`
|
|
1471
1476
|
position: absolute;
|
|
1472
1477
|
top: 0;
|
|
1473
1478
|
left: 0;
|
|
@@ -1476,18 +1481,18 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1476
1481
|
height: 0;
|
|
1477
1482
|
overflow: hidden;
|
|
1478
1483
|
white-space: nowrap;
|
|
1479
|
-
`,
|
|
1484
|
+
`,pg=n.div`
|
|
1480
1485
|
display: inline-flex;
|
|
1481
1486
|
align-items: center;
|
|
1482
1487
|
padding: 18px 24px;
|
|
1483
1488
|
box-sizing: border-box;
|
|
1484
1489
|
white-space: nowrap;
|
|
1485
|
-
`,
|
|
1490
|
+
`,hg=n.div`
|
|
1486
1491
|
display: inline-flex;
|
|
1487
1492
|
align-items: center;
|
|
1488
1493
|
gap: 4px;
|
|
1489
1494
|
white-space: nowrap;
|
|
1490
|
-
`,
|
|
1495
|
+
`,gg=n.div`
|
|
1491
1496
|
width: 100%;
|
|
1492
1497
|
height: 100%;
|
|
1493
1498
|
display: flex;
|
|
@@ -1495,7 +1500,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1495
1500
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1496
1501
|
gap: 4px;
|
|
1497
1502
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1498
|
-
`,
|
|
1503
|
+
`,mg=({variant:o,columns:n,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ft(null),f=Ht(()=>r.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:$,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return t(sg,{children:[d&&e(dg,{$variant:o,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?e(hd,{text:C,children:e(Zd,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):e(Zd,{value:b,disabled:$,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),n.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===r),b=0===m&&!d,v=m===n.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",$=y?.component?e(y.component,{}):s?e(mn,{size:dn.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):e(yu,{size:dn.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=e(Fr,{$width:"100%",$justifyContent:S,children:$});return t(dg,{$variant:o,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?e(hd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?e(ch,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[r,g,u,s,l,c,d,n,i,a]);return e(Yh,{gap:o===ng.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},fg=({columnKey:t,sortDirection:o,sortByKey:n,onSort:r})=>{const a=i(),s=n===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=o===go.Ascending?0:180;return e(vd,{variant:fd.Text,size:yd.S,leftIcon:()=>e(It,{fill:s,rotate:l}),onClick:()=>r(t)})},yg=({columnKey:t,filters:o,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=o[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(r.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,t,a]);return e(pu,{items:c,withMultiSelect:!0,selectedIds:o[t]?.map(e=>e.toString())??[],setSelectedIds:e=>n(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(Lt,{fill:l,...t})}})},bg=({variant:o,backgroundColor:n,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>t(sg,{children:[h&&e(lg,{$variant:o,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:e(Zd,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:$,textAlign:C},x)=>{const w=0===x&&!h,T=x===r.length-1,O=!(!y&&!f),N=O?e(mn,{size:dn.XS,align:C,nowrap:!0,children:m}):e(yu,{size:dn.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return t(lg,{$variant:o,$backgroundColor:n,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(gg,{$textAlign:C,children:[O?e(hd,{text:y||m,children:N}):N,!b&&e(fg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&e(yg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&o===ng.Data&&e(cg,{})]},`column-${g}`)})]}),vg=()=>{},Eg={},Sg=[],$g=({variant:o,maxHeight:n,headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=Ft(go.Ascending),[E,S]=Ft(""),[$,C]=Ft({}),x=g??$,w=Bt(e=>{S(e),v(e=>e===go.Ascending?go.Descending:go.Ascending)},[]),T=Bt((e,t)=>{const o={...x,[e]:t};m&&m(o),void 0===g&&C(o)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,o)=>{const n=e(t,E),r=e(o,E);return(b===go.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,r)}):c).filter(t=>{for(const[o,n]of Object.entries(x)){if(!n.length)continue;const r=l.find(e=>e.key===o)?.filterOverride;if(r){if(!r.filterRow(t,n))return!1}else if(!n.includes(e(t,o)))return!1}return!0})},[c,E,b,x,l]),N=Ht(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:I,allSelected:A}=Ht(()=>{const e=O.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[O]),_=Ht(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const o of c)for(const n of o.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,l]),R=Wt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(o=>{const n=[t(hg,{children:[e(mn,{size:dn.XS,align:o.textAlign,children:o.label}),!o.noSort&&e(fg,{columnKey:o.key,sortDirection:go.Ascending,sortByKey:"",onSort:vg}),!o.noFilter&&e(yg,{columnKey:o.key,filters:Eg,onFilter:vg,rowsUnfiltered:Sg,filterOverride:o.filterOverride})]},`mw-${o.key}-header`)];return c.forEach((t,r)=>{const i=t.cells.find(e=>e.key===o.key);i&&n.push(i.component?e(i.component,{},`mw-${o.key}-${r}`):e(mn,{size:dn.XS,children:i.rawValue||"-"},`mw-${o.key}-${r}`))}),{key:o.key,nodes:n}}),[l,c,_]);return jt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const o=t.dataset.mwKey;if(!o)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[o]||n>e[o])&&(e[o]=n)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(o=>t[o]===e[o])?t:e)},[L,_]),t(rg,{$maxHeight:n,children:[L.length>0&&e(ug,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:t,nodes:o})=>o.map((o,n)=>e(pg,{"data-mw-key":t,children:o},`mw-${t}-${n}`)))}),t(ig,{$variant:o,children:[!i&&e(ag,{children:e(bg,{variant:o,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:I,allSelected:A,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?e(mg,{variant:o,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):e(Br,{$height:n,children:a?e(tg,{size:3,maxHeight:n}):e(Gd,{...s})})]})]})};var Cg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Cg||(Cg={}));const xg=(e,t,o)=>{switch(t){case Cg.Purple:return e.v2.colors.purple[o?"300":"900"];case Cg.Yellow:return e.v2.colors.yellow[o?"300":"1000"];case Cg.Blue:return e.v2.colors.blue[o?"300":"1000"];case Cg.Pink:return e.v2.colors.red[o?"300":"1000"];case Cg.Green:return e.v2.colors.green[o?"300":"900"];case Cg.Loader:return e.v2.colors.grey[o?"600":"800"];default:return e.v2.colors.grey[o?"300":"500"]}},wg=n.div`
|
|
1499
1504
|
display: flex;
|
|
1500
1505
|
align-items: center;
|
|
1501
1506
|
justify-content: center;
|
|
@@ -1514,16 +1519,16 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1514
1519
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1515
1520
|
cursor: not-allowed;
|
|
1516
1521
|
`:r`
|
|
1517
|
-
background-color: ${({theme:e})=>
|
|
1522
|
+
background-color: ${({theme:e})=>xg(e,t)};
|
|
1518
1523
|
${o&&r`
|
|
1519
1524
|
cursor: pointer;
|
|
1520
1525
|
&:hover,
|
|
1521
1526
|
&:active {
|
|
1522
|
-
border: 1px solid ${({theme:e})=>
|
|
1527
|
+
border: 1px solid ${({theme:e})=>xg(e,t,!0)};
|
|
1523
1528
|
}
|
|
1524
1529
|
`}
|
|
1525
1530
|
`}
|
|
1526
|
-
`,
|
|
1531
|
+
`,Tg=({variant:o=Cg.Default,label:n,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:o===Cg.Default?d.v2.colors.white[500]:xg(d,o,!0),p=o===Cg.Loader;return t(wg,{$variant:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(qr,{withGradient:!0,title:n,titleSize:dn.XXS}):e(mn,{color:u,size:dn.XXS,nowrap:!0,children:n}),a&&e(a,{fill:u,size:16})]})},Og=n.div`
|
|
1527
1532
|
padding: 6px 12px;
|
|
1528
1533
|
|
|
1529
1534
|
display: flex;
|
|
@@ -1541,7 +1546,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1541
1546
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1542
1547
|
}
|
|
1543
1548
|
`}
|
|
1544
|
-
`,
|
|
1549
|
+
`,Ng=n.textarea`
|
|
1545
1550
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1546
1551
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1547
1552
|
flex: 1;
|
|
@@ -1566,26 +1571,26 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1566
1571
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1567
1572
|
}
|
|
1568
1573
|
}
|
|
1569
|
-
`,
|
|
1574
|
+
`,Ig=({label:o,required:n,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Wt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(zr,{$gap:6,children:[e(Kd,{label:o,tooltip:r,required:n,badge:i}),e(Og,{$disabled:p,$error:!!a,children:e(Ng,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),e(Yd,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Ag=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],_g=n.div`
|
|
1570
1575
|
flex: 1;
|
|
1571
1576
|
min-width: 0;
|
|
1572
|
-
`,
|
|
1577
|
+
`,Rg=n.div`
|
|
1573
1578
|
flex: 0 0 auto;
|
|
1574
1579
|
min-width: 140px;
|
|
1575
|
-
`,
|
|
1580
|
+
`,Dg=({name:o,label:n,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Ag,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Ht(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:E}=Ht(()=>((e,t,o)=>{if(null==e||""===e)return{num:"",unit:o};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),i=String(e).match(r);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:o}:{num:"",unit:o}})(c,u,b),[c,u,b]),S=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(zr,{$width:y,$gap:6,children:[e(Kd,{label:n,tooltip:r,required:s,badge:i}),t(Fr,{$gap:8,$alignItems:"center",children:[e(_g,{children:e(Pu,{name:o,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(xi(e.target.value),E)})}),e(Rg,{children:e(oh,{name:`${o}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),e(Yd,{errorMessage:h,warnMessage:g,helpMessage:m})]})},kg=n.div`
|
|
1576
1581
|
min-width: 500px;
|
|
1577
|
-
`,
|
|
1582
|
+
`,Lg=n.div`
|
|
1578
1583
|
display: flex;
|
|
1579
1584
|
flex-direction: column;
|
|
1580
1585
|
align-items: center;
|
|
1581
1586
|
gap: 16px;
|
|
1582
1587
|
padding: 24px;
|
|
1583
1588
|
width: 100%;
|
|
1584
|
-
`,
|
|
1589
|
+
`,Pg=n.div`
|
|
1585
1590
|
display: flex;
|
|
1586
1591
|
justify-content: center;
|
|
1587
1592
|
gap: 16px;
|
|
1588
1593
|
padding: 16px 24px;
|
|
1589
1594
|
width: 100%;
|
|
1590
1595
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1591
|
-
`,
|
|
1596
|
+
`,Ug=({visual:o,title:n,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Ph,{isOpen:i,onClose:a,...d,children:t(kg,{children:[t(Lg,{children:[o&&e(o,{}),e(mn,{size:dn.M,weight:500,color:un.Primary,children:n}),e(zr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(mn,{size:dn.XS,weight:400,color:un.Secondary,children:t},t))}),c]}),(s||l)&&t(Pg,{children:[s&&e(vd,{"data-id":"deny",...s}),l&&e(vd,{"data-id":"approve",...l})]})]})});export{Jd as $,hu as A,vd as B,Zd as C,th as D,ts as E,zr as F,as as G,Tg as H,Ih as I,ss as J,ls as K,os as L,vo as M,Kp as N,Xn as O,fo as P,Tu as Q,fu as R,wo as S,hd as T,Ua as U,Nr as V,Ug as W,Ha as X,zd as Y,Uu as Z,Qa as _,gu as a,Gd as a$,cs as a0,ds as a1,Pa as a2,An as a3,Tp as a4,xh as a5,qi as a6,_a as a7,Lo as a8,Mo as a9,wa as aA,rs as aB,hs as aC,us as aD,gs as aE,ms as aF,Ka as aG,ma as aH,ba as aI,va as aJ,$a as aK,xa as aL,Ca as aM,ka as aN,ia as aO,aa as aP,pa as aQ,Ya as aR,Ja as aS,es as aT,pc as aU,sa as aV,La as aW,_n as aX,hc as aY,Yh as aZ,Br as a_,Xo as aa,Vo as ab,Uo as ac,Fo as ad,Po as ae,ln as af,za as ag,ya as ah,Fa as ai,fa as aj,ja as ak,Aa as al,Ma as am,Wa as an,Za as ao,Ra as ap,yh as aq,qa as ar,Oa as as,ha as at,Na as au,Ta as av,pu as aw,ga as ax,Ia as ay,ps as az,mo as b,cn as b$,qr as b0,Wd as b1,Bc as b2,Hn as b3,pp as b4,xc as b5,Sn as b6,mr as b7,Eo as b8,So as b9,gh as bA,yu as bB,kd as bC,fn as bD,Oi as bE,Fi as bF,zi as bG,md as bH,Hi as bI,Bi as bJ,Os as bK,Da as bL,Ba as bM,Ns as bN,Va as bO,Ts as bP,da as bQ,ua as bR,Ea as bS,Td as bT,on as bU,Mr as bV,tg as bW,zc as bX,Mc as bY,an as bZ,Qn as b_,yc as ba,Nc as bb,Rc as bc,wc as bd,rr as be,nn as bf,er as bg,ui as bh,ji as bi,di as bj,Dc as bk,Zo as bl,ro as bm,no as bn,pi as bo,hi as bp,rn as bq,$i as br,jo as bs,Si as bt,Wi as bu,Ro as bv,io as bw,Xi as bx,uo as by,Vi as bz,Gi as c,gi as c$,vn as c0,bn as c1,po as c2,Vh as c3,xp as c4,Qo as c5,Ei as c6,Pn as c7,ai as c8,sn as c9,Ld as cA,$g as cB,ng as cC,_h as cD,Sa as cE,Qi as cF,Yn as cG,Ki as cH,ea as cI,Ji as cJ,Zi as cK,cc as cL,uc as cM,dc as cN,Ds as cO,_s as cP,As as cQ,Rs as cR,Fs as cS,Ms as cT,Hs as cU,Bs as cV,Ps as cW,Ls as cX,Yi as cY,Ss as cZ,Vc as c_,ad as ca,qc as cb,Tn as cc,ko as cd,vp as ce,wn as cf,Ri as cg,Vn as ch,Cg as ci,np as cj,Sc as ck,ri as cl,ni as cm,qn as cn,uh as co,Ec as cp,gr as cq,zn as cr,Zr as cs,fr as ct,Qr as cu,Yc as cv,Pi as cw,ki as cx,bi as cy,Kn as cz,Kd as d,Ll as d$,nu as d0,ou as d1,Ph as d2,bc as d3,lc as d4,Gs as d5,rl as d6,il as d7,al as d8,sl as d9,bl as dA,fl as dB,yl as dC,gl as dD,ml as dE,hl as dF,$l as dG,Cl as dH,El as dI,Sl as dJ,vl as dK,wl as dL,Tl as dM,xl as dN,Vs as dO,Vl as dP,Kl as dQ,Yl as dR,Xl as dS,ql as dT,Ql as dU,Zl as dV,ec as dW,tc as dX,Jl as dY,jl as dZ,Gl as d_,cl as da,ll as db,dl as dc,Lr as dd,oc as de,nc as df,rc as dg,ic as dh,ac as di,sc as dj,Xs as dk,Ks as dl,Ys as dm,Js as dn,Qs as dp,qs as dq,el as dr,Zs as ds,ol as dt,tl as du,nl as dv,Ws as dw,js as dx,ul as dy,pl as dz,mn as e,yo as e$,Bl as e0,Hl as e1,Wl as e2,Ul as e3,Fl as e4,Ml as e5,Ol as e6,Nl as e7,Il as e8,Al as e9,yr as eA,zo as eB,Iu as eC,Qu as eD,Ru as eE,Ur as eF,is as eG,na as eH,ta as eI,oa as eJ,ra as eK,Is as eL,Es as eM,bs as eN,vs as eO,ys as eP,fs as eQ,xs as eR,ws as eS,Cs as eT,$s as eU,Qc as eV,Io as eW,lo as eX,Oo as eY,Jo as eZ,_o as e_,_l as ea,Rl as eb,Dl as ec,kl as ed,Pl as ee,zl as ef,ur as eg,Pr as eh,og as ei,Cc as ej,Mn as ek,En as el,Di as em,ed as en,vc as eo,Ic as ep,or as eq,Wn as er,nr as es,tr as et,Zn as eu,Uc as ev,Un as ew,Ln as ex,kn as ey,yn as ez,un as f,tn as f$,bo as f0,To as f1,co as f2,qo as f3,ho as f4,so as f5,Do as f6,$o as f7,Wo as f8,Ho as f9,ei as fA,si as fB,li as fC,ci as fD,mi as fE,fi as fF,vi as fG,xi as fH,wi as fI,Ti as fJ,Ni as fK,Ii as fL,Dn as fM,Ai as fN,_i as fO,Ui as fP,ns as fQ,zs as fR,Us as fS,ks as fT,Ga as fU,Xa as fV,ca as fW,la as fX,Li as fY,gc as fZ,en as f_,Bo as fa,Ao as fb,Yo as fc,Ko as fd,Go as fe,go as ff,ao as fg,No as fh,Ar as fi,Ir as fj,Dr as fk,On as fl,Nn as fm,Ci as fn,Fn as fo,Bn as fp,Gn as fq,Rn as fr,Jn as fs,xn as ft,ar as fu,sr as fv,lr as fw,cr as fx,dr as fy,pr as fz,dn as g,Mi as g0,mc as g1,Kc as g2,Lc as g3,Pc as g4,Hc as g5,jc as g6,Xc as g7,Jc as g8,Zc as g9,od as ga,wd as gb,Dd as gc,Od as gd,xd as ge,Bu as gf,Hu as gg,tu as gh,Ag as gi,rh as gj,Wu as gk,sh as gl,ch as gm,jr as gn,Hh as go,Wr as gp,vh as gq,xu as gr,Gr as gs,Xr as gt,Vr as gu,ap as gv,Lp as gw,Op as gx,Hr as gy,hn as gz,Fr as h,yd as i,fd as j,Yd as k,Cn as l,$n as m,Co as n,Dp as o,Ip as p,Np as q,Dg as r,oh as s,oo as t,Ig as u,ii as v,hh as w,Pu as x,xo as y,Cu as z};
|