@odigos/ui-kit 0.0.269 → 0.0.270
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 +12 -0
- package/lib/chunks/{helpers-w7krM8zT.js → helpers-DsA2iT2O.js} +1 -1
- package/lib/chunks/{index-C8U7vd0v.js → index-cmITOIRQ.js} +2 -2
- package/lib/chunks/{source-instrument-form-context-DS-dr35D.js → source-instrument-form-context-BGvST8mx.js} +1 -1
- package/lib/chunks/{ui-components-dsTdscIC.js → ui-components-B5oUTIEY.js} +57 -57
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers.js +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/pipeline-collectors/index.d.ts +6 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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`
|
|
1
|
+
import{jsxs as e,jsx 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
3
|
color: ${({$color:e,theme:t})=>hn(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -38,7 +38,7 @@ 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
|
-
`,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`
|
|
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="string"==typeof o?o.split("\n").map((o,n,r)=>e(Mt,{children:[o,n!==r.length-1&&t("br",{})]},`typography-${n}-${o}`)):o;return t(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})});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;
|
|
@@ -61,7 +61,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,Sr=({percentage:o})=>
|
|
64
|
+
`,Sr=({percentage:o})=>e(br,{children:[t(vr,{}),"number"==typeof o?t(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 e("span",{style:f,...c,children:[t("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},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
|
-
`,Nr=({scale:
|
|
72
|
+
`,Nr=({scale:e,icon:o})=>{const n=i();return t(Or,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(Or,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(Or,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(Or,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(Or,{$size:23*e,$color:"#50F6E8",children:t(o,{size:16*e,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;
|
|
@@ -84,7 +84,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,Dr=()=>
|
|
87
|
+
`,Dr=()=>e(_r,{children:[t(Rr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(Rr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Rr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Rr,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Rr,{children:t(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
|
-
`,Lr=({scale:
|
|
95
|
+
`,Lr=({scale:e=1,icon:o})=>{const n=i();return t(kr,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(kr,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(kr,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(kr,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(kr,{$size:39*e,$color:n.v2.colors.purple[500],children:t(o,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Pr=n.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -192,7 +192,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
192
192
|
background-clip: text;
|
|
193
193
|
color: transparent;
|
|
194
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`
|
|
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 e(zr,{$gap:16,$alignItems:"center",children:[y?t(Nr,{scale:1.7,icon:b}):h?t(Sr,{percentage:f}):g?t(Tr,{scale:m}):null,(n||s||d||o||u)&&e(zr,{$gap:8,$alignItems:"center",children:[e(Fr,{$gap:4,children:[o&&t(o,{}),u?t(Yr,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:n||"Loading..."}):n?t(mn,{align:"center",size:a,color:$,children:n}):null]}),s?t(mn,{align:"center",size:c,color:C,children:s}):null,E?t(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
|
-
`,zc=({"data-id":
|
|
206
|
+
`,zc=({"data-id":e,icon:o,size:n=Mc.S,onClick:r,disabled:i})=>t(Fc,{"data-id":e,$size:n,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:t(o,{size:n})}),Bc=({onDone:e}={})=>{const[o,n]=Ft(!1),[r,i]=Ft(-1),a=Bt(async(t,r)=>{if(!o){if(n(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),i(-1)},1e3)}},[o,e]);return{CopyButton:Bt(({value:e,size:n})=>t(zc,{icon:o?vt:Et,size:n,onClick:()=>a(e)}),[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"};
|
|
@@ -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
|
-
`,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
|
|
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 t(o,{children:c});const T=v&&f.length>0;return e(sd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,n&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(ld,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&t(ud,{$align:$.align,children:t(pd,{$pointsUp:!0})}),t(cd,{$maxWidth:p,children:e(dd,{children:[(!!r||!!a)&&e(Fr,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(mn,{size:dn.XS,children:a},"title")]}),f.map((e,o)=>t(mn,{size:dn.XXXS,children:e},o)),!!l&&t(mn,{size:dn.XXXS,color:un.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&t(ud,{$align:$.align,children:t(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
|
-
`,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
|
|
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 t(hd,{text:a,fullWidth:g,children:e(gd,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&n?n?t(n,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(qr,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(qr,{withGradient:!0,title:f,titleSize:d||dn.XXS}):t(mn,{color:v,size:d||dn.XXS,nowrap:!0,children:f}):null,r&&t(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;
|
|
@@ -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
|
-
`,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
|
|
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 t(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:t(hd,{text:a,withIcon:!s,children:O?t(qr,r?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(o,{children:[l&&t(Br,{$width:"fit-content",children:t(l,{size:$,fill:x})}),r?t(mn,{size:C,weight:500,color:x,nowrap:!0,children:r}):null,c&&t(Br,{$width:"fit-content",children:t(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:e})=>{const{darkMode:o}=mc();return t(s,{theme:Cd(o),children:e})},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`
|
|
@@ -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
|
-
`,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
|
|
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 t(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=e(o,{children:[a&&t(a,{fill:S}),i&&t(mn,{size:$,weight:C,color:S,nowrap:!0,children:i}),s&&t(md,{...s})]});return t(g,{onClick:()=>!E&&c(n),$disabled:E,$isSelected:v,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?t(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"};
|
|
@@ -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
|
-
`,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
|
|
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 e(Bd,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:E}),t(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&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(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,7 +505,7 @@ 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
|
-
`,Gd=({icon:o=$t,hideIcon:n=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return
|
|
508
|
+
`,Gd=({icon:o=$t,hideIcon:n=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return e(zr,{$gap:12,$alignItems:"center",children:[!n&&t(jd,{children:t(o,{size:32,fill:l})}),e(zr,{$gap:4,$alignItems:"center",children:[t(mn,{size:dn.S,align:"center",children:r}),a&&t(mn,{size:dn.XXS,align:"center",color:l,children:a})]}),s&&t(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;
|
|
@@ -515,7 +515,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
515
515
|
font-size: 14px;
|
|
516
516
|
font-weight: 400;
|
|
517
517
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
518
|
-
`,Kd=({label:o,tooltip:n,required:r,badge:i,width:a,smallAndDark:s})=>o||n||r?
|
|
518
|
+
`,Kd=({label:o,tooltip:n,required:r,badge:i,width:a,smallAndDark:s})=>o||n||r?e(Fr,{$width:a,$justifyContent:"space-between",children:[o&&t(Xd,{$smallAndDark:s,children:o}),e(Fr,{$gap:4,children:[i&&t(md,{...i,textSize:dn.XXXS}),r&&t(Vd,{children:"*"}),n&&t(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=t(nt,{size:12,fill:s});return o||n||r?e(Fr,{$alignItems:"center",children:[l&&t(zr,{children:l}),t(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;
|
|
@@ -530,11 +530,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
530
530
|
border-radius: 4px;
|
|
531
531
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
532
532
|
background-color: ${({$backgroundColor:e})=>e};
|
|
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
|
|
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 e(zr,{$gap:4,children:[e(Fr,{$justifyContent:"space-between",children:[e(qd,{"data-id":o||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(Qd,{$size:s,$borderColor:S,$backgroundColor:$,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),n&&t(mn,{size:s===Jd.S?dn.XXS:dn.XS,nowrap:!0,children:n})]}),t(Kd,{tooltip:r,badge:a})]}),t(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
|
-
`,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
|
|
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 e(eu,{$direction:o,children:[n&&a?t(Zd,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):n&&!a?t(mn,{size:d,children:n}):null,s.map(e=>t(Zd,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:r},`${n}-checkbox-${e.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;
|
|
@@ -607,14 +607,14 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
607
607
|
display: inline-flex;
|
|
608
608
|
align-items: center;
|
|
609
609
|
gap: 4px;
|
|
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
|
|
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 e(ru,{ref:A,children:[u&&t(Kd,{label:u}),f&&t(vd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(vd,{variant:fd.Text,size:yd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(iu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(Wd,{value:P,onChange:U,width:"100%"}),b?t(qr,{withSpinner:!0,title:"Loading...",titleSize:dn.XS}):M.length?t(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 e(su,{"data-id":`option-${n}`,$selected:d&&!a,onClick:()=>L(n),title:l?`${r} — ${l}`:r,children:[a&&t(Zd,{value:d,onChange:()=>L(n)}),i&&t(i,{size:14,fill:o.color||S.v2.colors.white[500]}),s&&t(du,{children:t(mn,{size:dn.XXS,nowrap:!0,color:un.Secondary,children:s})}),e(lu,{children:[t(cu,{children:t(mn,{size:dn.XS,nowrap:!0,color:o.color||un.Primary,children:r})}),l&&e(uu,{children:[t(Ve,{size:12,fill:S.v2.colors.silver[200]}),t(mn,{size:dn.XS,nowrap:!0,color:un.Secondary,children:l})]})]})]},n)})}):t(Mr,{$padding:"6px 0",children:t(Gd,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!M.length&&t(vd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var hu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(hu||(hu={}));const gu=({onAnyClick:e,actions:o})=>t(Fr,{$gap:8,$alignItems:"center",children:o?.map(o=>{if(!o)return null;switch(o.type){case hu.Button:return t(vd,{...o.buttonProps,onClick:t=>{o.buttonProps?.onClick?.(t),e?.()}},o.id);case hu.ButtonDropData:return t(pu,{...o.dropDataProps,items:o.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{o.buttonProps?.onClick?.(t[0]),e?.()},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
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
|
|
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 e(Fr,{$gap:l?8:6,$alignItems:"center",children:[o&&(n||l?t(mu,{children:t(o,{size:24})}):t(o,{size:24})),r||g||l?e(zr,{children:[r||g?e(Fr,{$gap:6,$alignItems:"center",children:[r&&t(mn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&t(y,{value:r,size:Mc.XS}),p&&t(hd,{text:p,withIcon:!0}),g&&t(md,{...g})]}):null,l&&t(mn,{size:c,color:d,nowrap:!u,children:l})]}):null,t(Fr,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},yu=({children:e,fullText:o,fullWidth:n=!0,...r})=>{const i=Wt(null),a=!!r.maxLines&&r.maxLines>0,s=Jc(i,{axis:a?"vertical":"horizontal",deps:[e]})?o??(null==e?"":String(e)):"";return t(hd,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(mn,{ref:i,...r,children:e})})},bu=n.section`
|
|
618
618
|
display: flex;
|
|
619
619
|
flex-direction: column;
|
|
620
620
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -639,7 +639,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
639
639
|
flex-direction: column;
|
|
640
640
|
gap: 4px;
|
|
641
641
|
min-width: 0;
|
|
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?
|
|
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?t("div",{style:{flex:1}}):e(Su,{$cellsPerRow:n,children:[!!a&&t(hd,{text:s,children:t(yu,{size:dn.XXXS,color:un.Secondary,nowrap:!0,children:a})}),e(Fr,{$gap:4,children:[u&&t(md,{...u}),l&&t(hd,{text:c,children:t(yu,{size:dn.XS,nowrap:!0,children:l})}),d&&t(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 e(bu,{$width:n,$bgTint:o,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&e(vu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(fu,{...a}):t("div",{}),e(Fr,{$gap:12,children:[p,E&&v&&t(gu,{actions:d}),$&&t(Fr,{$gap:8,children:c.map((e,t)=>Gt(md,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&e(Fr,{$gap:2,children:[S&&t(pu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(vd,{variant:fd.Text,size:yd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Eu,{children:g.map(e=>t($u,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.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
|
-
`,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?
|
|
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?t(fu,{...i}):null),v=l??(s?t(Wd,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return e(wu,{ref:m,id:o,"data-section-name":o,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||S?e(Fr,{$gap:f,$justifyContent:"space-between",children:[E?e(Fr,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&t(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;
|
|
@@ -668,7 +668,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
668
668
|
padding: 8px;
|
|
669
669
|
border-radius: 12px;
|
|
670
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
|
|
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 e(Ou,{$status:o,children:[t(Nu,{$status:o,children:t(l,{size:32,fill:c})}),e(zr,{$gap:2,$justifyContent:"center",children:[t(mn,{size:dn.M,weight:500,color:c,nowrap:!0,children:r}),t(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
|
-
`,_u=["-","N/A","undefined","null","undefined/undefined","null/null"],Ru=({title:o,cells:n})=>{const r=i();return
|
|
679
|
+
`,_u=["-","N/A","undefined","null","undefined/undefined","null/null"],Ru=({title:o,cells:n})=>{const r=i();return e(Au,{children:[t(mn,{size:dn.XXS,color:r.v2.colors.grey[150],children:o}),t(Fr,{$gap:32,children:n.map((n,r)=>e(zr,{$gap:2,children:[!n.isLoading||n.value&&!_u.includes(n.value)?t(mn,{size:n.label?dn.M:dn.L,children:n.value}):t(qr,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(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;
|
|
@@ -732,7 +732,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
732
732
|
align-items: center;
|
|
733
733
|
justify-content: center;
|
|
734
734
|
cursor: pointer;
|
|
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
|
|
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 e(zr,{$width:v,$gap:6,children:[t(Kd,{label:o,tooltip:r,required:n,badge:a}),t(Du,{$small:E,$disabled:y,$error:I,$clickable:!!S&&!y,onClick:y?void 0:S,children:e(hd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:A}):null,t(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?t(Lu,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:A})}):l?t(l,{size:_,fill:A}):null]})}),t(Yd,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},Uu=e=>{const{"data-id":o,options:n,placeholder:r="Search...",isLoading:i}=e,a=!0===e.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=Ht(()=>a?e.value:e.value?[e.value]:[],[a,e.value]),p=Ht(()=>{if(a){const e=u.length;return e?1===e?n.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[a,e,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(t=>{l(t.target.value),c||d(!0),a||t.target.value||!e.value||e.onSelect(null)},[c,a,e]),y=Bt(e=>{d(e),e||l("")},[]),b=Bt(t=>{if(a)return void e.onSelect(t);const o=n.find(e=>e.id===t[0]);o&&(e.onSelect(o),l(""),d(!1))},[a,e,n]),v=c&&(i||g.length>0||s.length>0);return t(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:t(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;
|
|
@@ -770,7 +770,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
770
770
|
justify-content: space-between;
|
|
771
771
|
align-items: center;
|
|
772
772
|
gap: 8px;
|
|
773
|
-
`,Bu=({label:o,icon:n,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return
|
|
773
|
+
`,Bu=({label:o,icon:n,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return e(Mu,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Fu,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(zu,{$hasIcon:!!n,children:[r?t(qr,{withGradient:!0,titleSize:dn.S}):t(mn,{variant:cn.Span,align:"center",children:o}),t(It,{rotate:90,size:24})]})]})},Hu=({buttons:e})=>t(zr,{$gap:12,children:e.map((e,o)=>t(Bu,{...e},`${e.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;
|
|
@@ -803,7 +803,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
803
803
|
height: 9px;
|
|
804
804
|
border-radius: 50%;
|
|
805
805
|
background-color: ${({$color:e})=>e};
|
|
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
|
|
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 e(ju,{children:[e(Gu,{$width:n,children:[t(hd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(Xu,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&t("path",{d:$,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),r&&e(Vu,{children:[t(mn,{size:dn.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(mn,{size:dn.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(zr,{$gap:7,children:[e(Fr,{$gap:8,$alignItems:"center",children:[t(Ku,{$color:w}),t(mn,{size:dn.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(Fr,{$gap:8,$alignItems:"center",children:[t(Ku,{$color:T}),t(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;
|
|
@@ -829,7 +829,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
829
829
|
flex-shrink: 0;
|
|
830
830
|
font-size: 14px;
|
|
831
831
|
color: #5ffb98; // TODO: add to theme
|
|
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]),
|
|
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]),e(zr,{$gap:4,children:[n&&t(mn,{size:dn.XXXS,color:un.Secondary,children:n}),e(Zu,{$bgTint:o,children:[e(ep,{$hideCopy:i,children:[t(tp,{ref:l,children:r}),c&&t(op,{children:"..."})]}),!i&&t(s,{value:r,size:Mc.XS})]})]})},rp=n(Fr)`
|
|
833
833
|
gap: 0;
|
|
834
834
|
`,ip=n.button`
|
|
835
835
|
padding: 4px 8px;
|
|
@@ -843,7 +843,7 @@ 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
|
-
`,ap=({isPrettyMode:o,setIsPrettyMode:n})=>
|
|
846
|
+
`,ap=({isPrettyMode:o,setIsPrettyMode:n})=>e(rp,{children:[t(ip,{$position:"left",$selected:o,onClick:()=>n(!0),children:t(At,{})}),t(ip,{$position:"right",$selected:!o,onClick:()=>n(!1),children:t(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`
|
|
@@ -864,7 +864,7 @@ 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
|
-
`,pp=({language:
|
|
867
|
+
`,pp=({language:e,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"===e){const e=ii(o,{}),t=Ni(e);c=Ii(r?Fn(t):t)}else c=o;return a&&"json"===e?t(hp,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:o,tokens:n})=>t("pre",{children:n.map((n,r)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(up,{...o({token:e})},`line-${r}-token-${n}`))},`line-${r}`))})})},hp=({darkMode:o,str:n})=>{const r=i(),a=(o,n)=>{const i=new Array(o).fill(o=>e(cp,{...o,children:[t(dp,{}),t(dp,{})]}));return t(Mt,{children:i.map((e,o)=>t(e,{style:0===o?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${n}-${o}`))})};return t(Jt,{theme:o?qt.palenight:qt.vsLight,language:"json",code:n,children:({getLineProps:o,getTokenProps:n,tokens:i})=>t(sp,{children:t(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]?e(Mt,{children:[a(2,s),e(cp,{...c,children:[t(dp,{children:t(mn,{nowrap:!0,children:l[0].content})}),t(dp,{})]})]},`line-${s}`):2===l.length?t(cp,{...c,children:l.map((o,i)=>{const{text:a,components:l}=((e,o)=>{const[n,...r]=e.split("@");return{text:n,components:r?.map((e,n)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return t(hd,{withIcon:!0,text:i},`${r}-${i}-${n}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${r}-${i}-${n}`);let e=Qr(i,o);return e||(e=Qr(wo.Warning,o)),t(e,{},`${r}-${i}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(o.content,r),c=0===i;return t(dp,{children:e(Fr,{children:[t(Fr,{children:l}),t(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
869
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
870
870
|
gap: 8px;
|
|
@@ -913,7 +913,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
913
913
|
flex-shrink: 0;
|
|
914
914
|
width: 24px;
|
|
915
915
|
height: 24px;
|
|
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
|
|
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 e(gp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:I,$hoverBackgroundColor:A,$slim:y,onClick:p,children:[!g&&t(mp,{$backgroundColor:N,$slim:y,children:C?t(qr,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(fp,{$gap:4,$justifyContent:"center",$slim:y,children:[e(Fr,{$gap:10,$alignItems:"center",children:[t(mn,{size:y?dn.XS:dn.S,weight:500,color:O,children:n}),l&&t(md,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:dn.XXXS})]}),r&&t(mn,{size:dn.XXXS,color:T,children:r}),a]}),(!!d?.length||s)&&e(yp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(Fr,{$gap:8,children:d.map(e=>t(vd,{...e,variant:fd.Secondary,size:yd.S},e["data-id"]??e.label))}),s]}),E&&t(bp,{children:t(E,{size:24,fill:T})})]})},Ep=n.div`
|
|
917
917
|
display: flex;
|
|
918
918
|
flex-direction: column;
|
|
919
919
|
width: 100%;
|
|
@@ -936,13 +936,13 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
936
936
|
flex-shrink: 0;
|
|
937
937
|
width: 18px;
|
|
938
938
|
height: 18px;
|
|
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
|
|
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 e(Ep,{children:[t(vp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&t(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 e($p,{children:[t(Cp,{children:l||!d?t(qr,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(mn,{size:dn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},wp=n.div`
|
|
940
940
|
width: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Vertical?`${t}px`:o||"100%"};
|
|
941
941
|
height: ${({$orientation:e,$thickness:t,$length:o})=>e===ho.Horizontal?`${t}px`:o||"100%"};
|
|
942
942
|
margin: ${({$orientation:e,$margin:t})=>t||(e===ho.Horizontal?"8px 0":"0 8px")};
|
|
943
943
|
background-color: ${({$type:e,theme:t})=>(e?fr(t,e):t.v2.colors.grey[400])+Td["050"]};
|
|
944
944
|
opacity: ${({$opacity:e})=>e||1};
|
|
945
|
-
`,Tp=({orientation:
|
|
945
|
+
`,Tp=({orientation:e=ho.Horizontal,type:o,thickness:n=1,length:r,margin:i,opacity:a})=>t(wp,{$orientation:e,$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`
|
|
946
946
|
display: flex;
|
|
947
947
|
align-items: center;
|
|
948
948
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -971,11 +971,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
971
971
|
border-radius: 100%;
|
|
972
972
|
background-color: ${({$color:e})=>e};
|
|
973
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)"};
|
|
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
|
|
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 e(zr,{$gap:4,children:[e(Fr,{$justifyContent:"space-between",children:[e(Ap,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Ip.Left&&t(mn,{color:T,size:O,nowrap:!0,children:s}),e(_p,{$onBgColor:b,$offBgColor:v,$variant:n,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Rp,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(o,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Ip.Right&&t(mn,{color:T,size:O,nowrap:!0,children:s})]}),t(Kd,{tooltip:d,badge:u})]}),t(Yd,{errorMessage:E,warnMessage:S,helpMessage:$})]})},kp=n.div`
|
|
975
975
|
display: flex;
|
|
976
976
|
flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
|
|
977
977
|
gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
|
|
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
|
|
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 e(kp,{$direction:o,children:[n&&t(mn,{size:c,children:n}),a.map(e=>t(Dp,{...e,labelAlign:Ip.Right,value:s[e.id],onChange:t=>{return o=e.id,n=t,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-${e.id}`))]})},Pp=n.div`
|
|
979
979
|
display: flex;
|
|
980
980
|
align-items: center;
|
|
981
981
|
justify-content: space-between;
|
|
@@ -1006,7 +1006,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1006
1006
|
align-items: center;
|
|
1007
1007
|
gap: 16px;
|
|
1008
1008
|
flex-shrink: 0;
|
|
1009
|
-
`,Bp=({icon:o,iconSrc:n,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>
|
|
1009
|
+
`,Bp=({icon:o,iconSrc:n,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(Pp,{children:[e(Up,{children:[o?t(Mp,{children:t(o,{size:24})}):n?t(Mp,{children:t(Fp,{src:n,alt:r||"icon"})}):null,(r||i?.length||a)&&e(zr,{$gap:6,children:[(r||i?.length)&&e(Fr,{$gap:16,children:[r&&t(mn,{size:dn.S,weight:500,children:r}),i?.length&&t(Fr,{$gap:4,children:i?.map((e,o)=>t(md,{...e},`${e.label}-${o}`))})]}),a&&t(mn,{size:dn.XXS,children:a})]})]}),e(zp,{children:[s&&t(Dp,{...s}),l?.length?t(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&&t(zc,{"data-id":"drawer-close",icon:$t,size:Mc.M,onClick:c,disabled:d})]})]}),Hp=n.div`
|
|
1010
1010
|
position: relative;
|
|
1011
1011
|
&.animated {
|
|
1012
1012
|
overflow: hidden;
|
|
@@ -1053,7 +1053,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1053
1053
|
&:hover {
|
|
1054
1054
|
transform: scale(1.2);
|
|
1055
1055
|
}
|
|
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]),
|
|
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]),e(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:[e(jp,{$status:o,$fullWidth:a,children:[t("div",{children:t(Gp,{$status:o,$smallIcon:s,children:t(p,{size:s?18:24})})}),t(mn,{color:h,size:dn.XXXS,weight:400,children:n}),(r||l)&&e(Xp,{children:[r&&t(Vp,{"data-id":r["data-id"],onClick:r.onClick,children:t(mn,{color:h,size:dn.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&t(zc,{"data-id":"note-close",icon:$t,size:Mc.XS,onClick:()=>E({asSeen:!0})})]})]}),l&&t(Wp,{ref:y,$status:o,$duration:c})]})},Yp=n.div`
|
|
1057
1057
|
display: flex;
|
|
1058
1058
|
align-items: center;
|
|
1059
1059
|
gap: 8px;
|
|
@@ -1063,7 +1063,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1063
1063
|
`,qp=n.div`
|
|
1064
1064
|
min-width: 150px;
|
|
1065
1065
|
width: fit-content;
|
|
1066
|
-
`,Qp=({note:o,actions:n,children:r})=>r?
|
|
1066
|
+
`,Qp=({note:o,actions:n,children:r})=>r?t(Yp,{children:r}):e(Yp,{children:[o&&t(Kp,{...o}),t(Jp,{}),n?.map((e,o)=>t(qp,{children:t(vd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${o}`))]}),Zp=n.div`
|
|
1067
1067
|
position: fixed;
|
|
1068
1068
|
top: 0;
|
|
1069
1069
|
bottom: 0;
|
|
@@ -1092,7 +1092,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1092
1092
|
|
|
1093
1093
|
height: calc(100% - ${56}px);
|
|
1094
1094
|
overflow-y: auto;
|
|
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(
|
|
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(e(o,{children:[!r&&t(Wr,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(Zp,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(Bp,{...c}),t(eh,{children:u}),d&&t(Qp,{...d})]})]}),document.body):null),oh=({options:e,values:o,setValues:n,withMultiSelect:r,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>o.includes(e.id)),[e,o]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(pu,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:ou.Left,items:e,selectedIds:o,setSelectedIds:n,children:({ChevronIcon:e,handleClick:o})=>t(Pu,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,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 e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:o?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:o?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(vd,{variant:fd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},rh=({children:e})=>t(eo,{FallbackComponent:({error:e,...o})=>t(wd,{children:t(nh,{...o,error:e})}),children:e}),ih=n.header`
|
|
1096
1096
|
position: relative;
|
|
1097
1097
|
width: 100%;
|
|
1098
1098
|
padding: 12px 18px;
|
|
@@ -1105,7 +1105,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1105
1105
|
left: 50%;
|
|
1106
1106
|
transform: translateX(-50%);
|
|
1107
1107
|
gap: 16px;
|
|
1108
|
-
`,sh=({left:o=[],center:n=[],right:r=[]})=>
|
|
1108
|
+
`,sh=({left:o=[],center:n=[],right:r=[]})=>e(ih,{children:[t(Fr,{$gap:16,children:o}),t(ah,{children:n}),t(Fr,{$gap:16,children:r})]}),lh=n.div`
|
|
1109
1109
|
display: flex;
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
gap: 2px;
|
|
@@ -1120,7 +1120,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1120
1120
|
left: ${({$left:e})=>e||"unset"};
|
|
1121
1121
|
top: 50%;
|
|
1122
1122
|
transform: translateY(-50%);
|
|
1123
|
-
`,ch=({isOpen:
|
|
1123
|
+
`,ch=({isOpen:e,actions:o,positionRight:n,positionLeft:r})=>e?t(lh,{$right:n,$left:r,children:o.map(e=>{if(!e)return null;const{tooltip:o,...n}=e;return t(hd,{text:o||"",children:t(vd,{...n,variant:fd.Secondary,size:yd.S})},n.id)})}):null,dh=n.div`
|
|
1124
1124
|
display: flex;
|
|
1125
1125
|
align-items: center;
|
|
1126
1126
|
justify-content: center;
|
|
@@ -1129,12 +1129,12 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1129
1129
|
aspect-ratio: 1 / 1;
|
|
1130
1130
|
border-radius: 8px;
|
|
1131
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
|
|
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 t("div",{style:{width:"fit-content"},children:t(dh,{$size:s,$padding:l,$status:a,children:e(zr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Fr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,o)=>t(e,{size:d},`top-${o}`))}),u&&e(Fr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,o)=>t(e,{size:d},`bottom-${o}`)),r>0&&t(mn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=o?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(dh,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},ph=n.div`
|
|
1133
1133
|
width: 100%;
|
|
1134
1134
|
border-radius: 8px;
|
|
1135
1135
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1136
1136
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
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
|
|
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 t(ph,{$plain:m,children:e(zr,{"data-id":r,$gap:6,children:[t(Kd,{label:a,tooltip:s,required:c,badge:l}),t(zr,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return e(Fr,{$gap:8,$alignItems:"center",children:[t(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&&t(vd,{leftIcon:_t,variant:fd.Secondary,size:yd.S,disabled:b,onClick:()=>(()=>{const e=o.length?_n(o):[_n("")];e.push(""),n(e)})()}),t(vd,{leftIcon:v?Rt:()=>t(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}`)})}),t(Yd,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var gh;(e=>{e.S="small",e.L="large"})(gh||(gh={}));const mh=n.div`
|
|
1138
1138
|
width: fit-content;
|
|
1139
1139
|
display: flex;
|
|
1140
1140
|
align-items: center;
|
|
@@ -1149,11 +1149,11 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1149
1149
|
border-radius: 100%;
|
|
1150
1150
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1151
1151
|
background-color: ${({$backgroundColor:e})=>e};
|
|
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
|
|
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 e(mh,{"data-id":o??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fh,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(Dt,{size:h,fill:g}):null}),n&&t(mn,{size:l===gh.S?dn.XXS:dn.XS,children:n})]})},bh=n.div`
|
|
1153
1153
|
display: flex;
|
|
1154
1154
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1155
1155
|
gap: ${({$gap:e})=>e}px;
|
|
1156
|
-
`,vh=({label:o,direction:n,disabled:r,size:i,options:a,values:s,setValues:l})=>
|
|
1156
|
+
`,vh=({label:o,direction:n,disabled:r,size:i,options:a,values:s,setValues:l})=>e(bh,{$flexDirection:n===ho.Horizontal?"row":"column",$gap:n===ho.Horizontal?16:8,children:[o&&t(mn,{children:o}),a.map(e=>t(yh,{...e,value:s[e.id],onChange:t=>{return o=e.id,n=t,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-${e.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 e=null!=$?String($):"",o=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(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 e="multi-dropdown"===h,o=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],n=y?.filter(e=>o.includes(e.id)).map(e=>e.id)||[];return t(oh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===n&&pi($),d=t(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?e(Fr,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(vd,{variant:fd.Secondary,size:yd.S,label:"Test",disabled:c||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):d}},Sh=n.div`
|
|
1157
1157
|
width: 100%;
|
|
1158
1158
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1159
1159
|
border-radius: 8px;
|
|
@@ -1166,7 +1166,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1166
1166
|
min-width: 0;
|
|
1167
1167
|
`,Ch=n.div`
|
|
1168
1168
|
padding-top: 24px;
|
|
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
|
|
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 e(zr,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(Kd,{label:s,tooltip:l,required:c}),m&&t(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))}),e(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 e(Sh,{"data-id":`${a}-card-${i}`,children:[e(Fr,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(zr,{$gap:10,children:[T&&t(Kd,{label:T}),m.map(e=>t(Fr,{$gap:24,children:(e.options??[]).map(o=>t(yh,{size:gh.L,label:o.label,value:String(n[e.keyName]??"")===String(o.id),disabled:d,onChange:t=>t&&$(i,e.keyName,o.id)},`${a}-card-${i}-${e.keyName}-${o.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(Fr,{$gap:4,$alignItems:"center",children:[v&&t(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]??""))}),t(vd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(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&&t(vd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:fd.Secondary,size:yd.S,disabled:d,onClick:C})]})]}),w.map((o,r)=>t(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 e(Mt,{children:["arrow"===o.separator&&r>0&&t(Ch,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t($h,{children:t(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}`)}),t(Yd,{errorMessage:u})]})]})},wh=n.div`
|
|
1170
1170
|
width: 100%;
|
|
1171
1171
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1172
1172
|
border-radius: 8px;
|
|
@@ -1182,7 +1182,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1182
1182
|
width: 72px;
|
|
1183
1183
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1184
1184
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
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
|
|
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 t(wh,{children:e(zr,{"data-id":a,$gap:0,children:[t(Kd,{label:s,tooltip:l,required:d,badge:c}),t(Th,{children:t("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 e(Mt,{children:[l.length>1&&a>0?t("tr",{children:t(Oh,{colSpan:d+1})}):null,l.map((o,l)=>{const g=c[l],m=g?22:0;return e("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 t(Oh,{colSpan:c>1?c:void 0,children:e(zr,{$gap:6,children:[g&&(n.label?t(Kd,{label:n.label,tooltip:n.tooltip}):t(Kd,{label:"\\u00A0"})),t(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&&t(Nh,{$topOffset:m,$center:h,children:e(Fr,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(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)})()}),t(vd,{leftIcon:u?Rt:()=>t(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}`)})})}),t(Yd,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Ah=n.div`
|
|
1186
1186
|
display: flex;
|
|
1187
1187
|
align-items: center;
|
|
1188
1188
|
justify-content: space-between;
|
|
@@ -1198,7 +1198,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1198
1198
|
left: 50%;
|
|
1199
1199
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1200
1200
|
animation-name: ${Nd.in.center};
|
|
1201
|
-
`,_h=({isOpen:o,onClose:n,richTitle:r,actions:i})=>o?
|
|
1201
|
+
`,_h=({isOpen:o,onClose:n,richTitle:r,actions:i})=>o?e(Ah,{children:[t(fu,{...r}),t(gu,{onAnyClick:n,actions:i})]}):null,Rh=n.div`
|
|
1202
1202
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1203
1203
|
top: 50%;
|
|
1204
1204
|
left: 50%;
|
|
@@ -1244,7 +1244,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1244
1244
|
position: absolute;
|
|
1245
1245
|
top: 16px;
|
|
1246
1246
|
left: 16px;
|
|
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=
|
|
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=e(o,{children:[!r&&t(Dh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Rh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(kh,{children:[a&&t(Lh,{children:t(zc,{icon:e=>t(It,{rotate:-90,...e}),size:Mc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Uh=n.div`
|
|
1248
1248
|
position: relative;
|
|
1249
1249
|
width: ${64}px;
|
|
1250
1250
|
height: ${({$height:e})=>e};
|
|
@@ -1302,7 +1302,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1302
1302
|
overflow: hidden;
|
|
1303
1303
|
padding-right: 12px;
|
|
1304
1304
|
pointer-events: none;
|
|
1305
|
-
`,Hh=({height:o,icons:n})=>{const r=i(),[a,s]=Ft(!1);return
|
|
1305
|
+
`,Hh=({height:o,icons:n})=>{const r=i(),[a,s]=Ft(!1);return t(Uh,{$height:o,children:t(Mh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:o,label:n,selected:i,icon:s,onClick:l})=>e(Fh,{$selected:i,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(zh,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(Bh,{children:t(mn,{size:dn.S,weight:500,color:un.Primary,nowrap:!0,children:n})})]},o))})})},Wh=n.div`
|
|
1306
1306
|
display: flex;
|
|
1307
1307
|
flex-direction: column;
|
|
1308
1308
|
gap: 16px;
|
|
@@ -1339,7 +1339,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1339
1339
|
min-width: 0;
|
|
1340
1340
|
`,Xh=n.div`
|
|
1341
1341
|
width: 100%;
|
|
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
|
|
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 e(Wh,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(jh,{children:[t(yh,{"data-id":`${p}-radio`,value:l,onChange:h,size:gh.L,disabled:d}),e(Gh,{children:[t(mn,{size:dn.S,weight:500,lineHeight:"24px",color:un.Primary,children:n}),r&&t(mn,{size:dn.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:un.Secondary,children:r})]})]}),a&&t(Xh,{children:a}),s&&t(Xh,{children:s})]})},Kh=n.div`
|
|
1343
1343
|
width: 100%;
|
|
1344
1344
|
height: 100%;
|
|
1345
1345
|
|
|
@@ -1347,7 +1347,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1347
1347
|
animation: none !important;
|
|
1348
1348
|
transition: none !important;
|
|
1349
1349
|
}
|
|
1350
|
-
`,Yh=({width:
|
|
1350
|
+
`,Yh=({width:e="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((e,o)=>t("div",{style:{paddingBottom:n},children:e},`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=t(to,{ref:c,style:{width:e,height:o},onScroll:a?u:void 0,children:d});return i?t(Kh,{children:p}):p},Jh=n.div`
|
|
1351
1351
|
display: flex;
|
|
1352
1352
|
flex-direction: column;
|
|
1353
1353
|
gap: 16px;
|
|
@@ -1377,7 +1377,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1377
1377
|
background-size: 200% 100%;
|
|
1378
1378
|
animation: ${_d} 1.5s infinite linear;
|
|
1379
1379
|
border-radius: 4px;
|
|
1380
|
-
`,tg=({size:o=5,maxWidth:n,maxHeight:r})=>
|
|
1380
|
+
`,tg=({size:o=5,maxWidth:n,maxHeight:r})=>t(Jh,{$maxWidth:n,$maxHeight:r,children:[...Array(o)].map((o,n)=>e(qh,{children:[t(Qh,{}),e(Zh,{children:[t(eg,{$width:"80%"}),t(eg,{$width:"100%"})]})]},n))}),og=({currentStep:o,data:n,gap:r=12})=>t(zr,{$gap:r,children:n.map(n=>{const r=n.step<o,i=n.step===o;return e(Fr,{$gap:8,children:[r||n.forceDoneBadge?t(md,{status:wo.Success,label:"",leftIcon:vt}):t(md,{status:wo.Default,label:n.step.toString()}),t(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`
|
|
1381
1381
|
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1382
1382
|
width: 100%;
|
|
1383
1383
|
display: flex;
|
|
@@ -1500,7 +1500,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1500
1500
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1501
1501
|
gap: 4px;
|
|
1502
1502
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
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
|
|
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 e(sg,{children:[d&&t(dg,{$variant:o,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?t(hd,{text:C,children:t(Zd,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):t(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?t(y.component,{}):s?t(mn,{size:dn.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(yu,{size:dn.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(Fr,{$width:"100%",$justifyContent:S,children:$});return e(dg,{$variant:o,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?t(hd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(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 t(Yh,{gap:o===ng.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},fg=({columnKey:e,sortDirection:o,sortByKey:n,onSort:r})=>{const a=i(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=o===go.Ascending?0:180;return t(vd,{variant:fd.Text,size:yd.S,leftIcon:()=>t(It,{fill:s,rotate:l}),onClick:()=>r(e)})},yg=({columnKey:e,filters:o,onFilter:n,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=o[e]?.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(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[r,e,a]);return t(pu,{items:c,withMultiSelect:!0,selectedIds:o[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},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})=>e(sg,{children:[h&&t(lg,{$variant:o,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(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?t(mn,{size:dn.XS,align:C,nowrap:!0,children:m}):t(yu,{size:dn.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(lg,{$variant:o,$backgroundColor:n,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(gg,{$textAlign:C,children:[O?t(hd,{text:y||m,children:N}):N,!b&&t(fg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(yg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&o===ng.Data&&t(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=[e(hg,{children:[t(mn,{size:dn.XS,align:o.textAlign,children:o.label}),!o.noSort&&t(fg,{columnKey:o.key,sortDirection:go.Ascending,sortByKey:"",onSort:vg}),!o.noFilter&&t(yg,{columnKey:o.key,filters:Eg,onFilter:vg,rowsUnfiltered:Sg,filterOverride:o.filterOverride})]},`mw-${o.key}-header`)];return c.forEach((e,r)=>{const i=e.cells.find(e=>e.key===o.key);i&&n.push(i.component?t(i.component,{},`mw-${o.key}-${r}`):t(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,_]),e(rg,{$maxHeight:n,children:[L.length>0&&t(ug,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:o})=>o.map((o,n)=>t(pg,{"data-mw-key":e,children:o},`mw-${e}-${n}`)))}),e(ig,{$variant:o,children:[!i&&t(ag,{children:t(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?t(mg,{variant:o,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(Br,{$height:n,children:a?t(tg,{size:3,maxHeight:n}):t(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`
|
|
1504
1504
|
display: flex;
|
|
1505
1505
|
align-items: center;
|
|
1506
1506
|
justify-content: center;
|
|
@@ -1528,7 +1528,7 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1528
1528
|
}
|
|
1529
1529
|
`}
|
|
1530
1530
|
`}
|
|
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
|
|
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 e(wg,{$variant:o,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&t(r,{fill:u,size:16}),p?t(qr,{withGradient:!0,title:n,titleSize:dn.XXS}):t(mn,{color:u,size:dn.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},Og=n.div`
|
|
1532
1532
|
padding: 6px 12px;
|
|
1533
1533
|
|
|
1534
1534
|
display: flex;
|
|
@@ -1571,13 +1571,13 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1571
1571
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
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
|
|
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 e(zr,{$gap:6,children:[t(Kd,{label:o,tooltip:r,required:n,badge:i}),t(Og,{$disabled:p,$error:!!a,children:t(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})}),t(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`
|
|
1575
1575
|
flex: 1;
|
|
1576
1576
|
min-width: 0;
|
|
1577
1577
|
`,Rg=n.div`
|
|
1578
1578
|
flex: 0 0 auto;
|
|
1579
1579
|
min-width: 140px;
|
|
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
|
|
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 e(zr,{$width:y,$gap:6,children:[t(Kd,{label:n,tooltip:r,required:s,badge:i}),e(Fr,{$gap:8,$alignItems:"center",children:[t(_g,{children:t(Pu,{name:o,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(xi(e.target.value),E)})}),t(Rg,{children:t(oh,{name:`${o}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),t(Yd,{errorMessage:h,warnMessage:g,helpMessage:m})]})},kg=n.div`
|
|
1581
1581
|
min-width: 500px;
|
|
1582
1582
|
`,Lg=n.div`
|
|
1583
1583
|
display: flex;
|
|
@@ -1593,4 +1593,4 @@ import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import n,{css as
|
|
|
1593
1593
|
padding: 16px 24px;
|
|
1594
1594
|
width: 100%;
|
|
1595
1595
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1596
|
-
`,Ug=({visual:o,title:n,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>
|
|
1596
|
+
`,Ug=({visual:o,title:n,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(Ph,{isOpen:i,onClose:a,...d,children:e(kg,{children:[e(Lg,{children:[o&&t(o,{}),t(mn,{size:dn.M,weight:500,color:un.Primary,children:n}),t(zr,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(mn,{size:dn.XS,weight:400,color:un.Secondary,children:e},e))}),c]}),(s||l)&&e(Pg,{children:[s&&t(vd,{"data-id":"deny",...s}),l&&t(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};
|