@odigos/ui-kit 0.0.119 → 0.0.120
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 +7 -0
- package/lib/chunks/{ui-components-62ddbe0d.js → ui-components-534fcd21.js} +111 -98
- package/lib/components/index.d.ts +1 -0
- package/lib/components/loading-text/index.d.ts +9 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/source-selection-form/index.d.ts +1 -2
- package/lib/containers.js +86 -88
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store/useSetupStore.d.ts +2 -0
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as d,PayloadCollectionIcon as c,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as f,PhpLogo as $,RubyLogo as y,RustLogo as b,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as E,PostgresLogo as S,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as D,AppDynamicsLogo as N,AxiomLogo as I,AzureBlobLogo as O,AzureMonitorLogo as _,BetterStackLogo as z,BonreeLogo as R,CauselyLogo as F,ChecklyLogo as P,ChronosphereLogo as L,ClickhouseLogo as M,AwsCloudwatchLogo as B,CoralogixLogo as j,Dash0Logo as U,DatadogLogo as W,OpenTelemetryLogo as V,DynatraceLogo as H,ElasticApmLogo as q,ElasticSearchLogo as G,GoogleCloudPlatformLogo as Y,GrafanaLogo as J,GreptimeLogo as K,GroundcoverLogo as X,HoneycombLogo as Q,HyperDxLogo as Z,InstanaLogo as ee,JaegerLogo as te,KloudmateLogo as ne,Last9Logo as oe,LightstepLogo as ie,LogzioLogo as ae,LokiLogo as re,LumigoLogo as se,MiddlewareLogo as le,NewRelicLogo as de,ObserveLogo as ce,OdigosLogo as pe,OneUptimeLogo as ue,OpenObserveLogo as me,OpsVerseLogo as he,OracleLogo as ge,PrometheusLogo as xe,QrynLogo as fe,GigapipeLogo as $e,QuickwitLogo as ye,AwsS3Logo as be,SeqLogo as we,SignozLogo as ke,SplunkLogo as ve,SumoLogicLogo as Ee,TelemetryHubLogo as Se,TempoLogo as Ce,TingyunLogo as Te,TraceloopLogo as Ae,UptraceLogo as De,VictoriaMetricsLogo as Ne,AwsXrayLogo as Ie,NamespacesIcon as Oe,SourcesIcon as _e,DestinationsIcon as ze,ActionsIcon as Re,RulesIcon as Fe,LogsIcon as Pe,MetricsIcon as Le,TracesIcon as Me,VmLogo as Be,CheckCircledIcon as je,ErrorTriangleIcon as Ue,WarningTriangleIcon as We,InfoIcon as Ve,MinusIcon as He,CheckIcon as qe,ListIcon as Ge,CodeIcon as Ye,ExtendArrowIcon as Je,PlusIcon as Ke,CopyIcon as Xe,EditIcon as Qe,EditedIcon as Ze,SortArrowsIcon as et,NotebookIcon as tt,XIcon as nt,EyeClosedIcon as ot,EyeOpenIcon as it,NoDataIcon as at,CrossIcon as rt,SearchIcon as st,TrashIcon as lt}from"../icons.js";import{create as dt}from"zustand";import ct,{Fragment as pt,useMemo as ut,useState as mt,useEffect as ht,useRef as gt,forwardRef as xt,useCallback as ft,memo as $t}from"react";import yt from"javascript-time-ago";import{p as bt,c as wt,s as kt,e as vt}from"./vendor-1dea551d.js";import Et,{ThemeProvider as St,keyframes as Ct,useTheme as Tt,css as At}from"styled-components";import{Handle as Dt,Position as Nt,getSmoothStepPath as It,BaseEdge as Ot,EdgeLabelRenderer as _t,ReactFlow as zt,Controls as Rt}from"@xyflow/react";import Ft from"react-dom";import{Highlight as Pt,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Mt}from"react-error-boundary";import Bt from"lottie-react";const jt=dt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var Ut,Wt,Vt,Ht,qt,Gt,Yt,Jt,Kt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,dn,cn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn,vn,En;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ut||(Ut={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler"}(Wt||(Wt={})),function(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.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters"}(Vt||(Vt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Ht||(Ht={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(qt||(qt={})),function(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"}(Gt||(Gt={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Yt||(Yt={})),function(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"}(Jt||(Jt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Kt||(Kt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Xt||(Xt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Qt||(Qt={})),function(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"}(Zt||(Zt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(en||(en={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(tn||(tn={})),function(e){e.DataStream="DataStream"}(nn||(nn={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(on||(on={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(an||(an={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(rn||(rn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(sn||(sn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(ln||(ln={})),function(e){e.Ascending="asc",e.Descending="desc"}(dn||(dn={})),function(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"}(cn||(cn={})),function(e){e.VirtualDevice="VirtualDevice",e.HostPath="HostPath",e.InitContainer="InitContainer"}(pn||(pn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(un||(un={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(mn||(mn={})),function(e){e.Labeled="labeled"}(hn||(hn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(gn||(gn={})),function(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.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"}(xn||(xn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(fn||(fn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}($n||($n={})),function(e){e.HeaderKeys="headerKeys"}(yn||(yn={})),function(e){e.Java="java",e.Golang="golang"}(bn||(bn={}));class Sn{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 Cn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}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]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(wn||(wn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(kn||(kn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(vn||(vn={})),function(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"}(En||(En={}));const Tn=s=>{const l=s?.toLowerCase(),d=l?.includes(Ut.Samplers),c=l===Ut.Attributes;return d?e:c?t:{[Wt.K8sAttributes]:o,[Wt.AddClusterInfo]:i,[Wt.DeleteAttributes]:a,[Wt.PiiMasking]:t,[Wt.RenameAttributes]:r,[Wt.ErrorSampler]:e,[Wt.ProbabilisticSampler]:e,[Wt.LatencySampler]:e,[Wt.ServiceNameSampler]:e,[Wt.SpanAttributeSampler]:e}[s]||n},An=[{label:"Attributes",icon:Tn(Ut.Attributes),items:[{type:Wt.K8sAttributes,icon:Tn(Wt.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Wt.AddClusterInfo,icon:Tn(Wt.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"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."},{type:Wt.DeleteAttributes,icon:Tn(Wt.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"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."},{type:Wt.RenameAttributes,icon:Tn(Wt.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"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."},{type:Wt.PiiMasking,icon:Tn(Wt.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:Tn(Ut.Samplers),items:[{type:Wt.ErrorSampler,icon:Tn(Ut.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Wt.LatencySampler,icon:Tn(Ut.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Wt.ProbabilisticSampler,icon:Tn(Ut.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Wt.ServiceNameSampler,icon:Tn(Ut.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Wt.SpanAttributeSampler,icon:Tn(Ut.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Dn={DETECTED:{TITLE:"Detected by Odigos",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},EXISTS:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},MANAGED:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."},SELF_HOSTED:{TITLE:"Self-hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."}},Nn=e=>({[fn.CodeAttributes]:s,[fn.CustomInstrumentation]:l,[fn.HeadersCollection]:d,[fn.PayloadCollection]:c,[fn.UnknownType]:n}[e]||n),In=[{type:fn.CodeAttributes,icon:Nn(fn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" Rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Zt.Go,Zt.Python]},{type:fn.CustomInstrumentation,icon:Nn(fn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'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.',supportedLanguages:[Zt.Go,Zt.Java]},{type:fn.HeadersCollection,icon:Nn(fn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" Rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Zt.Go,Zt.Java,Zt.JavaScript]},{type:fn.PayloadCollection,icon:Nn(fn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" Rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Zt.Go]}],On=[{id:kn.Logs,value:"Logs"},{id:kn.Metrics,value:"Metrics"},{id:kn.Traces,value:"Traces"}],_n=e=>e.charAt(0).toUpperCase()+e.slice(1),zn=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[o]=JSON.stringify(t(a)):e[o]="object"==typeof a&&null!==a?JSON.stringify(n(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]=JSON.stringify(n(i)):e[o]=i}return e},{})};var Rn;!function(e){e.SIGNALS="SIGNALS"}(Rn||(Rn={}));const Fn=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===Rn.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=n.find(e=>e.name===o);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},Pn=e=>JSON.parse(JSON.stringify(e)),Ln=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Mn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Bn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],jn=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(n=n.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(n=n.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!e.conditions?.find(e=>e.status===rn.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Un=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Fo&&!e.dataStreamNames.length):[],Wn=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const i=e[o],a=t?`${t}.${o}`:o;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const o=`${a}[${t}]`;null!==e&&"object"==typeof e?Wn(e,o,n):n[o]=e}):n[a]=i:Wn(i,a,n)}return n},Vn=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]}`},Hn=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`}},qn=e=>{const t=e?.filter(({status:e})=>e===rn.Error),n=e?.filter(({status:e})=>e===rn.Warning),o=e?.filter(({status:e})=>e===ln.Disabled),i=e?.filter(({status:e})=>e===ln.Loading),a=t.length>0,r=n.length>0,s=o.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:r,disableds:o,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?rn.Error:r?rn.Warning:s?rn.Info:void 0}},Gn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Yn=e=>({[Zt.Java]:p,[Zt.Go]:u,[Zt.JavaScript]:m,[Zt.Python]:h,[Zt.DotNet]:g,[Zt.CSharp]:x,[Zt.CPlusPlus]:f,[Zt.Php]:$,[Zt.Ruby]:y,[Zt.Rust]:b,[Zt.Swift]:w,[Zt.Elixir]:k,[Zt.MySql]:v,[Zt.Nginx]:E,[Zt.Postgres]:S,[Zt.Redis]:C,[Zt.Kafka]:T,[Zt.Ignored]:n,[Zt.Unknown]:n,[Zt.Processing]:n,[Zt.NoContainers]:n,[Zt.NoRunningPods]:n}[e]||n),Jn=e=>e?.map(({language:e})=>Yn(e))||[],Kn=(e,t)=>{const n={[xn.Alauda]:A,[xn.AlibabaCloud]:D,[xn.AppDynamics]:N,[xn.Axiom]:I,[xn.AzureBlob]:O,[xn.AzureMonitor]:_,[xn.BetterStack]:z,[xn.Bonree]:R,[xn.Causely]:F,[xn.Checkly]:P,[xn.Chronosphere]:L,[xn.ClickHouse]:M,[xn.CloudWatch]:B,[xn.Coralogix]:j,[xn.Dash0]:U,[xn.Datadog]:W,[xn.Dynamic]:V,[xn.Dynatrace]:H,[xn.ElasticApm]:q,[xn.ElasticSearch]:G,[xn.GoogleCloud]:Y,[xn.GoogleCloudOTLP]:Y,[xn.GrafanaCloudLoki]:J,[xn.GrafanaCloudPrometheus]:J,[xn.GrafanaCloudTempo]:J,[xn.Greptime]:K,[xn.Groundcover]:X,[xn.Honeycomb]:Q,[xn.HyperDX]:Z,[xn.Instana]:ee,[xn.Jaeger]:te,[xn.Kafka]:T,[xn.Kloudmate]:ne,[xn.Last9]:oe,[xn.Lightstep]:ie,[xn.LogzIo]:ae,[xn.Loki]:re,[xn.Lumigo]:se,[xn.Middleware]:le,[xn.NewRelic]:de,[xn.Observe]:ce,[xn.Odigos]:pe,[xn.OneUptime]:ue,[xn.OpenObserve]:me,[xn.Opsverse]:he,[xn.Oracle]:ge,[xn.OTLP]:V,[xn.OTLPHttp]:V,[xn.Prometheus]:xe,[xn.Qryn]:fe,[xn.QrynOss]:$e,[xn.Quickwit]:ye,[xn.S3]:be,[xn.Seq]:we,[xn.Signoz]:ke,[xn.Splunk]:ve,[xn.SplunkSapm]:ve,[xn.SplunkOtlp]:ve,[xn.SumoLogic]:Ee,[xn.TelemetryHub]:Se,[xn.Tempo]:Ce,[xn.Tingyun]:Te,[xn.Traceloop]:Ae,[xn.Uptrace]:De,[xn.VictoriaMetrics]:Ne,[xn.VictoriaMetricsCloud]:Ne,[xn.XRay]:Ie}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xn=e=>({[tn.Namespace]:Oe,[tn.Source]:_e,[tn.Destination]:ze,[tn.Action]:Re,[tn.InstrumentationRule]:Fe}[e]),Qn=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&e.id?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}:"name"in e&&e.name?e.name:void 0,Zn=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case tn.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case tn.Source:const n=e;a=n.name,r=n.otelServiceName;break;case tn.Action:const o=e;a=o.type,r=o.name;break;case tn.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case tn.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},eo=(e,t)=>{if(t===tn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},to=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Zt.Processing:Zt.NoRunningPods;const o=n?.filter(e=>e.language!==Zt.Ignored);if(!o.length)return Zt.NoContainers;const i=o.find(e=>e.language!==Zt.Unknown);return i?i.language:Zt.Unknown},no=(e,t,n)=>(t===tn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},oo=e=>({[kn.Logs]:Pe,[kn.Metrics]:Le,[kn.Traces]:Me}[e]),io=e=>e?{[Xt.K8s]:o,[Xt.Vm]:Be}[e]:pe,ao=e=>e?{[Xt.K8s]:"Kubernetes Cluster",[Xt.Vm]:"Virtual Machine"}[e]:"Unknown",ro=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],i=[];return void 0!==o&&(Array.isArray(o)?i.push(...o):i.push(o)),i.push(...ro(e,t,n)),i}):[]},so=(e,t)=>{if(t===tn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},lo=(e,t)=>({[rn.Success]:n=>je({fill:t.text[e],...n}),[rn.Error]:n=>Ue({fill:t.text[e],...n}),[rn.Warning]:n=>We({fill:t.text[e],...n}),[rn.Info]:n=>Ve({fill:t.text[e],...n}),[rn.Default]:n=>pe({fill:t.text[e],...n})}[e]),co=e=>{switch(e){case En.Success:return rn.Success;case En.Error:case En.Failure:return rn.Error;case En.Notice:return rn.Warning;case En.Unsupported:case En.Unknown:return rn.Info;case En.Irrelevant:case En.Disabled:return ln.Disabled;case En.Waiting:return ln.Loading;case En.Pending:default:return rn.Default}},po=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},uo=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function mo(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ho=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=mo(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&n.push(...e.items[i].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},go=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==rn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},xo=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),fo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),$o=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},yo=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},bo=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,wo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ko=e=>wo.test(e),vo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Eo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:vo(t),reason:n?vo(n):"",message:o,lastTransitionTime:i}))||[],So=(e,t)=>{const n=mo(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Co=e=>e?Object.keys(e).filter(t=>e[t]):[],To=e=>e.replace(/[^\d]/g,""),Ao=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Do=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},No=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>No(e)))}else if("object"==typeof o&&null!==o){const e=No(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Io=(e,t=2)=>JSON.stringify(e||{},null,t),Oo=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),_o=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),zo={[Zt.Go]:"Go",[Zt.Java]:"Java",[Zt.JavaScript]:"Node.js",[Zt.Python]:"Python",[Zt.DotNet]:".NET",[Zt.CSharp]:"C#",[Zt.CPlusPlus]:"C++",[Zt.Php]:"PHP",[Zt.Ruby]:"Ruby",[Zt.Rust]:"Rust",[Zt.Swift]:"Swift",[Zt.Elixir]:"Elixir",[Zt.MySql]:"MySQL",[Zt.Nginx]:"Nginx",[Zt.Postgres]:"PostgreSQL",[Zt.Redis]:"Redis",[Zt.Kafka]:"Kafka",[Zt.Ignored]:"Ignored",[Zt.Unknown]:"Unknown",[Zt.Processing]:"Processing",[Zt.NoContainers]:"No Containers",[Zt.NoRunningPods]:"No Running Pods"},Ro=[{id:Zt.Go,value:zo[Zt.Go],icon:Yn(Zt.Go)},{id:Zt.Java,value:zo[Zt.Java],icon:Yn(Zt.Java)},{id:Zt.JavaScript,value:zo[Zt.JavaScript],icon:Yn(Zt.JavaScript)},{id:Zt.Python,value:zo[Zt.Python],icon:Yn(Zt.Python)},{id:Zt.Php,value:zo[Zt.Php],icon:Yn(Zt.Php)},{id:Zt.Ruby,value:zo[Zt.Ruby],icon:Yn(Zt.Ruby)},{id:Zt.Rust,value:zo[Zt.Rust],icon:Yn(Zt.Rust)},{id:Zt.DotNet,value:zo[Zt.DotNet],icon:Yn(Zt.DotNet)},{id:Zt.CSharp,value:zo[Zt.CSharp],icon:Yn(Zt.CSharp)},{id:Zt.CPlusPlus,value:zo[Zt.CPlusPlus],icon:Yn(Zt.CPlusPlus)},{id:Zt.Swift,value:zo[Zt.Swift],icon:Yn(Zt.Swift)},{id:Zt.Elixir,value:zo[Zt.Elixir],icon:Yn(Zt.Elixir)}],Fo="default",Po={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Lo={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)'},Mo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",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",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}".`,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",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",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",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select 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",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:"Auto-instrument new apps",FUTURE_APPS_DESCRIPTION:"When enabled, new applications will be instrumented automatically and included in the current data stream.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",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.",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"},Bo={ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},jo=6048e5,Uo=dt()(bt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Po.DARK_MODE,storage:"undefined"!=typeof window?wt(()=>localStorage):void 0})),Wo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Vo=dt(e=>({...Wo,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Wo)})),Ho=dt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),qo=dt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===tn.Namespace?"namespacesLoading":t===tn.Source?"sourcesLoading":t===tn.Destination?"destinationsLoading":t===tn.Action?"actionsLoading":t===tn.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(Qn(t))===JSON.stringify(Qn(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===tn.Source?JSON.stringify(Qn(n))===JSON.stringify(Qn(e)):Qn(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Go=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Yo=dt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),getEmptyState:Go})),Jo=dt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Ko=dt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Xo=dt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,i=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:i,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}})),Qo=(e,t)=>{const n=e.entityType===t.entityType,o="string"==typeof e.entityId&&"string"==typeof t.entityId?e.entityId===t.entityId:"object"==typeof e.entityId&&"object"==typeof t.entityId?e.entityId.namespace===t.entityId.namespace&&e.entityId.name===t.entityId.name&&e.entityId.kind===t.entityId.kind:!e.entityId&&!t.entityId;return n&&o},Zo=dt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Qo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Qo(e,t)))})),isThisPending:e=>{const{pendingItems:n}=t();let o=!1;for(let t=0;t<n.length;t++){const i=n[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===tn.Source?i.entityId&&e.entityId&&i.entityId.namespace===e.entityId.namespace&&i.entityId.name===e.entityId.name&&i.entityId.kind===e.entityId.kind:i.entityId===e.entityId))){o=!0;break}}return o}})),ei=dt(e=>({selectedConnection:null,setSelectedConnection:t=>e({selectedConnection:t}),selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ti={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ni=(e,t)=>e.destinationType.type!==t.destinationType.type,oi=dt(e=>({...ti,setAvailableSources:t=>e({availableSources:t}),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=>ni(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ni(e,t))})),resetState:()=>e(()=>({...ti}))})),ii={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"}},ai={darkMode:!0,colors:{...ii.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:ii.font_family},ri={darkMode:!1,colors:{...ii.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:ii.font_family},si=e=>e?ai:ri;kt('@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");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}svg{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 li={in:{left:Ct`
|
|
1
|
+
import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as d,PayloadCollectionIcon as c,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as f,PhpLogo as $,RubyLogo as y,RustLogo as b,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as E,PostgresLogo as S,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as N,AppDynamicsLogo as D,AxiomLogo as I,AzureBlobLogo as O,AzureMonitorLogo as _,BetterStackLogo as z,BonreeLogo as R,CauselyLogo as F,ChecklyLogo as P,ChronosphereLogo as L,ClickhouseLogo as M,AwsCloudwatchLogo as B,CoralogixLogo as j,Dash0Logo as U,DatadogLogo as W,OpenTelemetryLogo as V,DynatraceLogo as H,ElasticApmLogo as q,ElasticSearchLogo as G,GoogleCloudPlatformLogo as J,GrafanaLogo as Y,GreptimeLogo as K,GroundcoverLogo as X,HoneycombLogo as Q,HyperDxLogo as Z,InstanaLogo as ee,JaegerLogo as te,KloudmateLogo as ne,Last9Logo as oe,LightstepLogo as ie,LogzioLogo as ae,LokiLogo as re,LumigoLogo as se,MiddlewareLogo as le,NewRelicLogo as de,ObserveLogo as ce,OdigosLogo as pe,OneUptimeLogo as ue,OpenObserveLogo as me,OpsVerseLogo as he,OracleLogo as ge,PrometheusLogo as xe,QrynLogo as fe,GigapipeLogo as $e,QuickwitLogo as ye,AwsS3Logo as be,SeqLogo as we,SignozLogo as ke,SplunkLogo as ve,SumoLogicLogo as Ee,TelemetryHubLogo as Se,TempoLogo as Ce,TingyunLogo as Te,TraceloopLogo as Ae,UptraceLogo as Ne,VictoriaMetricsLogo as De,AwsXrayLogo as Ie,NamespacesIcon as Oe,SourcesIcon as _e,DestinationsIcon as ze,ActionsIcon as Re,RulesIcon as Fe,LogsIcon as Pe,MetricsIcon as Le,TracesIcon as Me,VmLogo as Be,CheckCircledIcon as je,ErrorTriangleIcon as Ue,WarningTriangleIcon as We,InfoIcon as Ve,MinusIcon as He,CheckIcon as qe,ListIcon as Ge,CodeIcon as Je,ExtendArrowIcon as Ye,PlusIcon as Ke,CopyIcon as Xe,EditIcon as Qe,EditedIcon as Ze,SortArrowsIcon as et,NotebookIcon as tt,XIcon as nt,EyeClosedIcon as ot,EyeOpenIcon as it,NoDataIcon as at,CrossIcon as rt,SearchIcon as st,TrashIcon as lt}from"../icons.js";import{create as dt}from"zustand";import ct,{Fragment as pt,useMemo as ut,useState as mt,useEffect as ht,useRef as gt,forwardRef as xt,useCallback as ft,memo as $t}from"react";import yt from"javascript-time-ago";import{p as bt,c as wt,s as kt,e as vt}from"./vendor-1dea551d.js";import Et,{ThemeProvider as St,keyframes as Ct,useTheme as Tt,css as At}from"styled-components";import{Handle as Nt,Position as Dt,getSmoothStepPath as It,BaseEdge as Ot,EdgeLabelRenderer as _t,ReactFlow as zt,Controls as Rt}from"@xyflow/react";import Ft from"react-dom";import{Highlight as Pt,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Mt}from"react-error-boundary";import Bt from"lottie-react";const jt=dt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var Ut,Wt,Vt,Ht,qt,Gt,Jt,Yt,Kt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,dn,cn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn,vn,En;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ut||(Ut={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler"}(Wt||(Wt={})),function(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.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters"}(Vt||(Vt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Ht||(Ht={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(qt||(qt={})),function(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"}(Gt||(Gt={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Jt||(Jt={})),function(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"}(Yt||(Yt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Kt||(Kt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Xt||(Xt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Qt||(Qt={})),function(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"}(Zt||(Zt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(en||(en={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(tn||(tn={})),function(e){e.DataStream="DataStream"}(nn||(nn={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(on||(on={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(an||(an={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(rn||(rn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(sn||(sn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(ln||(ln={})),function(e){e.Ascending="asc",e.Descending="desc"}(dn||(dn={})),function(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"}(cn||(cn={})),function(e){e.VirtualDevice="VirtualDevice",e.HostPath="HostPath",e.InitContainer="InitContainer"}(pn||(pn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(un||(un={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(mn||(mn={})),function(e){e.Labeled="labeled"}(hn||(hn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(gn||(gn={})),function(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.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"}(xn||(xn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(fn||(fn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}($n||($n={})),function(e){e.HeaderKeys="headerKeys"}(yn||(yn={})),function(e){e.Java="java",e.Golang="golang"}(bn||(bn={}));class Sn{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 Cn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}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]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(wn||(wn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(kn||(kn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(vn||(vn={})),function(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"}(En||(En={}));const Tn=s=>{const l=s?.toLowerCase(),d=l?.includes(Ut.Samplers),c=l===Ut.Attributes;return d?e:c?t:{[Wt.K8sAttributes]:o,[Wt.AddClusterInfo]:i,[Wt.DeleteAttributes]:a,[Wt.PiiMasking]:t,[Wt.RenameAttributes]:r,[Wt.ErrorSampler]:e,[Wt.ProbabilisticSampler]:e,[Wt.LatencySampler]:e,[Wt.ServiceNameSampler]:e,[Wt.SpanAttributeSampler]:e}[s]||n},An=[{label:"Attributes",icon:Tn(Ut.Attributes),items:[{type:Wt.K8sAttributes,icon:Tn(Wt.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Wt.AddClusterInfo,icon:Tn(Wt.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"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."},{type:Wt.DeleteAttributes,icon:Tn(Wt.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"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."},{type:Wt.RenameAttributes,icon:Tn(Wt.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[kn.Traces,kn.Metrics,kn.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"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."},{type:Wt.PiiMasking,icon:Tn(Wt.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:Tn(Ut.Samplers),items:[{type:Wt.ErrorSampler,icon:Tn(Ut.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Wt.LatencySampler,icon:Tn(Ut.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Wt.ProbabilisticSampler,icon:Tn(Ut.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Wt.ServiceNameSampler,icon:Tn(Ut.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Wt.SpanAttributeSampler,icon:Tn(Ut.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[kn.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Nn={DETECTED:{TITLE:"Detected by Odigos",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},EXISTS:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},MANAGED:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."},SELF_HOSTED:{TITLE:"Self-hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."}},Dn=e=>({[fn.CodeAttributes]:s,[fn.CustomInstrumentation]:l,[fn.HeadersCollection]:d,[fn.PayloadCollection]:c,[fn.UnknownType]:n}[e]||n),In=[{type:fn.CodeAttributes,icon:Dn(fn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" Rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Zt.Go,Zt.Python]},{type:fn.CustomInstrumentation,icon:Dn(fn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'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.',supportedLanguages:[Zt.Go,Zt.Java]},{type:fn.HeadersCollection,icon:Dn(fn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" Rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Zt.Go,Zt.Java,Zt.JavaScript]},{type:fn.PayloadCollection,icon:Dn(fn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" Rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Zt.Go]}],On=[{id:kn.Logs,value:"Logs"},{id:kn.Metrics,value:"Metrics"},{id:kn.Traces,value:"Traces"}],_n=e=>e.charAt(0).toUpperCase()+e.slice(1),zn=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[o]=JSON.stringify(t(a)):e[o]="object"==typeof a&&null!==a?JSON.stringify(n(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]=JSON.stringify(n(i)):e[o]=i}return e},{})};var Rn;!function(e){e.SIGNALS="SIGNALS"}(Rn||(Rn={}));const Fn=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===Rn.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=n.find(e=>e.name===o);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},Pn=e=>JSON.parse(JSON.stringify(e)),Ln=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Mn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Bn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],jn=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(n=n.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(n=n.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!e.conditions?.find(e=>e.status===rn.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Un=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Fo&&!e.dataStreamNames.length):[],Wn=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const i=e[o],a=t?`${t}.${o}`:o;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const o=`${a}[${t}]`;null!==e&&"object"==typeof e?Wn(e,o,n):n[o]=e}):n[a]=i:Wn(i,a,n)}return n},Vn=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]}`},Hn=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`}},qn=e=>{const t=e?.filter(({status:e})=>e===rn.Error),n=e?.filter(({status:e})=>e===rn.Warning),o=e?.filter(({status:e})=>e===ln.Disabled),i=e?.filter(({status:e})=>e===ln.Loading),a=t.length>0,r=n.length>0,s=o.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:r,disableds:o,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?rn.Error:r?rn.Warning:s?rn.Info:void 0}},Gn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Jn=e=>({[Zt.Java]:p,[Zt.Go]:u,[Zt.JavaScript]:m,[Zt.Python]:h,[Zt.DotNet]:g,[Zt.CSharp]:x,[Zt.CPlusPlus]:f,[Zt.Php]:$,[Zt.Ruby]:y,[Zt.Rust]:b,[Zt.Swift]:w,[Zt.Elixir]:k,[Zt.MySql]:v,[Zt.Nginx]:E,[Zt.Postgres]:S,[Zt.Redis]:C,[Zt.Kafka]:T,[Zt.Ignored]:n,[Zt.Unknown]:n,[Zt.Processing]:n,[Zt.NoContainers]:n,[Zt.NoRunningPods]:n}[e]||n),Yn=e=>e?.map(({language:e})=>Jn(e))||[],Kn=(e,t)=>{const n={[xn.Alauda]:A,[xn.AlibabaCloud]:N,[xn.AppDynamics]:D,[xn.Axiom]:I,[xn.AzureBlob]:O,[xn.AzureMonitor]:_,[xn.BetterStack]:z,[xn.Bonree]:R,[xn.Causely]:F,[xn.Checkly]:P,[xn.Chronosphere]:L,[xn.ClickHouse]:M,[xn.CloudWatch]:B,[xn.Coralogix]:j,[xn.Dash0]:U,[xn.Datadog]:W,[xn.Dynamic]:V,[xn.Dynatrace]:H,[xn.ElasticApm]:q,[xn.ElasticSearch]:G,[xn.GoogleCloud]:J,[xn.GoogleCloudOTLP]:J,[xn.GrafanaCloudLoki]:Y,[xn.GrafanaCloudPrometheus]:Y,[xn.GrafanaCloudTempo]:Y,[xn.Greptime]:K,[xn.Groundcover]:X,[xn.Honeycomb]:Q,[xn.HyperDX]:Z,[xn.Instana]:ee,[xn.Jaeger]:te,[xn.Kafka]:T,[xn.Kloudmate]:ne,[xn.Last9]:oe,[xn.Lightstep]:ie,[xn.LogzIo]:ae,[xn.Loki]:re,[xn.Lumigo]:se,[xn.Middleware]:le,[xn.NewRelic]:de,[xn.Observe]:ce,[xn.Odigos]:pe,[xn.OneUptime]:ue,[xn.OpenObserve]:me,[xn.Opsverse]:he,[xn.Oracle]:ge,[xn.OTLP]:V,[xn.OTLPHttp]:V,[xn.Prometheus]:xe,[xn.Qryn]:fe,[xn.QrynOss]:$e,[xn.Quickwit]:ye,[xn.S3]:be,[xn.Seq]:we,[xn.Signoz]:ke,[xn.Splunk]:ve,[xn.SplunkSapm]:ve,[xn.SplunkOtlp]:ve,[xn.SumoLogic]:Ee,[xn.TelemetryHub]:Se,[xn.Tempo]:Ce,[xn.Tingyun]:Te,[xn.Traceloop]:Ae,[xn.Uptrace]:Ne,[xn.VictoriaMetrics]:De,[xn.VictoriaMetricsCloud]:De,[xn.XRay]:Ie}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xn=e=>({[tn.Namespace]:Oe,[tn.Source]:_e,[tn.Destination]:ze,[tn.Action]:Re,[tn.InstrumentationRule]:Fe}[e]),Qn=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&e.id?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}:"name"in e&&e.name?e.name:void 0,Zn=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case tn.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case tn.Source:const n=e;a=n.name,r=n.otelServiceName;break;case tn.Action:const o=e;a=o.type,r=o.name;break;case tn.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case tn.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},eo=(e,t)=>{if(t===tn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},to=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Zt.Processing:Zt.NoRunningPods;const o=n?.filter(e=>e.language!==Zt.Ignored);if(!o.length)return Zt.NoContainers;const i=o.find(e=>e.language!==Zt.Unknown);return i?i.language:Zt.Unknown},no=(e,t,n)=>(t===tn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},oo=e=>({[kn.Logs]:Pe,[kn.Metrics]:Le,[kn.Traces]:Me}[e]),io=e=>e?{[Xt.K8s]:o,[Xt.Vm]:Be}[e]:pe,ao=e=>e?{[Xt.K8s]:"Kubernetes Cluster",[Xt.Vm]:"Virtual Machine"}[e]:"Unknown",ro=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],i=[];return void 0!==o&&(Array.isArray(o)?i.push(...o):i.push(o)),i.push(...ro(e,t,n)),i}):[]},so=(e,t)=>{if(t===tn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},lo=(e,t)=>({[rn.Success]:n=>je({fill:t.text[e],...n}),[rn.Error]:n=>Ue({fill:t.text[e],...n}),[rn.Warning]:n=>We({fill:t.text[e],...n}),[rn.Info]:n=>Ve({fill:t.text[e],...n}),[rn.Default]:n=>pe({fill:t.text[e],...n})}[e]),co=e=>{switch(e){case En.Success:return rn.Success;case En.Error:case En.Failure:return rn.Error;case En.Notice:return rn.Warning;case En.Unsupported:case En.Unknown:return rn.Info;case En.Irrelevant:case En.Disabled:return ln.Disabled;case En.Waiting:return ln.Loading;case En.Pending:default:return rn.Default}},po=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},uo=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function mo(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ho=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=mo(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&n.push(...e.items[i].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},go=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==rn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},xo=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),fo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),$o=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},yo=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},bo=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,wo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ko=e=>wo.test(e),vo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Eo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:vo(t),reason:n?vo(n):"",message:o,lastTransitionTime:i}))||[],So=(e,t)=>{const n=mo(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Co=e=>e?Object.keys(e).filter(t=>e[t]):[],To=e=>e.replace(/[^\d]/g,""),Ao=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},No=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},Do=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Do(e)))}else if("object"==typeof o&&null!==o){const e=Do(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Io=(e,t=2)=>JSON.stringify(e||{},null,t),Oo=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),_o=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),zo={[Zt.Go]:"Go",[Zt.Java]:"Java",[Zt.JavaScript]:"Node.js",[Zt.Python]:"Python",[Zt.DotNet]:".NET",[Zt.CSharp]:"C#",[Zt.CPlusPlus]:"C++",[Zt.Php]:"PHP",[Zt.Ruby]:"Ruby",[Zt.Rust]:"Rust",[Zt.Swift]:"Swift",[Zt.Elixir]:"Elixir",[Zt.MySql]:"MySQL",[Zt.Nginx]:"Nginx",[Zt.Postgres]:"PostgreSQL",[Zt.Redis]:"Redis",[Zt.Kafka]:"Kafka",[Zt.Ignored]:"Ignored",[Zt.Unknown]:"Unknown",[Zt.Processing]:"Processing",[Zt.NoContainers]:"No Containers",[Zt.NoRunningPods]:"No Running Pods"},Ro=[{id:Zt.Go,value:zo[Zt.Go],icon:Jn(Zt.Go)},{id:Zt.Java,value:zo[Zt.Java],icon:Jn(Zt.Java)},{id:Zt.JavaScript,value:zo[Zt.JavaScript],icon:Jn(Zt.JavaScript)},{id:Zt.Python,value:zo[Zt.Python],icon:Jn(Zt.Python)},{id:Zt.Php,value:zo[Zt.Php],icon:Jn(Zt.Php)},{id:Zt.Ruby,value:zo[Zt.Ruby],icon:Jn(Zt.Ruby)},{id:Zt.Rust,value:zo[Zt.Rust],icon:Jn(Zt.Rust)},{id:Zt.DotNet,value:zo[Zt.DotNet],icon:Jn(Zt.DotNet)},{id:Zt.CSharp,value:zo[Zt.CSharp],icon:Jn(Zt.CSharp)},{id:Zt.CPlusPlus,value:zo[Zt.CPlusPlus],icon:Jn(Zt.CPlusPlus)},{id:Zt.Swift,value:zo[Zt.Swift],icon:Jn(Zt.Swift)},{id:Zt.Elixir,value:zo[Zt.Elixir],icon:Jn(Zt.Elixir)}],Fo="default",Po={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Lo={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)'},Mo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",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",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}".`,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",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",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",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select 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",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:"Auto-instrument new apps",FUTURE_APPS_DESCRIPTION:"When enabled, new applications will be instrumented automatically and included in the current data stream.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",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.",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"},Bo={ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},jo=6048e5,Uo=dt()(bt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Po.DARK_MODE,storage:"undefined"!=typeof window?wt(()=>localStorage):void 0})),Wo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Vo=dt(e=>({...Wo,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Wo)})),Ho=dt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),qo=dt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===tn.Namespace?"namespacesLoading":t===tn.Source?"sourcesLoading":t===tn.Destination?"destinationsLoading":t===tn.Action?"actionsLoading":t===tn.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(Qn(t))===JSON.stringify(Qn(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===tn.Namespace?"namespaces":t===tn.Source?"sources":t===tn.Destination?"destinations":t===tn.Action?"actions":t===tn.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===tn.Source?JSON.stringify(Qn(n))===JSON.stringify(Qn(e)):Qn(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Go=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Jo=dt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),getEmptyState:Go})),Yo=dt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Ko=dt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Xo=dt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,i=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:i,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}})),Qo=(e,t)=>{const n=e.entityType===t.entityType,o="string"==typeof e.entityId&&"string"==typeof t.entityId?e.entityId===t.entityId:"object"==typeof e.entityId&&"object"==typeof t.entityId?e.entityId.namespace===t.entityId.namespace&&e.entityId.name===t.entityId.name&&e.entityId.kind===t.entityId.kind:!e.entityId&&!t.entityId;return n&&o},Zo=dt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Qo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Qo(e,t)))})),isThisPending:e=>{const{pendingItems:n}=t();let o=!1;for(let t=0;t<n.length;t++){const i=n[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===tn.Source?i.entityId&&e.entityId&&i.entityId.namespace===e.entityId.namespace&&i.entityId.name===e.entityId.name&&i.entityId.kind===e.entityId.kind:i.entityId===e.entityId))){o=!0;break}}return o}})),ei=dt(e=>({selectedConnection:null,setSelectedConnection:t=>e({selectedConnection:t}),selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),ti={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ni=(e,t)=>e.destinationType.type!==t.destinationType.type,oi=dt(e=>({...ti,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),setAvailableSources:t=>e({availableSources:t}),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=>ni(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ni(e,t))})),resetState:()=>e(()=>({...ti}))})),ii={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"}},ai={darkMode:!0,colors:{...ii.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:ii.font_family},ri={darkMode:!1,colors:{...ii.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:ii.font_family},si=e=>e?ai:ri;kt('@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");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}svg{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 li={in:{left:Ct`
|
|
2
2
|
from { transform: translateX(-100%); }
|
|
3
3
|
to { transform: translateX(0); }
|
|
4
4
|
`,right:Ct`
|
|
@@ -141,11 +141,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
141
141
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
142
142
|
position: absolute;
|
|
143
143
|
left: 33px;
|
|
144
|
-
`,
|
|
144
|
+
`,Ni=Et.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
flex-direction: column;
|
|
147
147
|
gap: 4px;
|
|
148
|
-
`,
|
|
148
|
+
`,Di=Et(fi)`
|
|
149
149
|
flex: 1;
|
|
150
150
|
font-size: 14px;
|
|
151
151
|
`,Ii=Et(fi)`
|
|
@@ -157,7 +157,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
157
157
|
margin: 4px 0 0 0;
|
|
158
158
|
list-style: none;
|
|
159
159
|
width: 100%;
|
|
160
|
-
`,_i=(e,t)=>t?e.reduce((e,n)=>{if(n.items){const o=_i(n.items,t);o.length&&e.push({...n,items:o})}else n.label.toLowerCase().includes(t.toLowerCase())&&e.push(n);return e},[]):e,zi=({placeholder:e="Type to search...",options:t,selectedOption:n,onOptionSelect:o,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...d})=>{const[c,p]=mt(n?.label||i||""),[u,m]=mt(_i(t,c)),[h,g]=mt(!1);mt(-1),ht(()=>m(_i(t,c)),[t]);const x=n?.icon,f=e=>{e&&(p(e.label),a?.(e.label)),g(!e),o?.(e)};return ct.createElement(wi,{style:r},ct.createElement(ki,{$hasError:!!l},x&&ct.createElement(x,null),ct.createElement(vi,{type:"text",value:c,placeholder:e,onChange:e=>{e.stopPropagation();const n=e.target.value,o=_i(t,n),i=1===o.length&&o[0].label===n?o[0]:void 0;p(n),a?.(n),m(o),f(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...d})),h&&u.length?ct.createElement(Ei,null,u.map(e=>ct.createElement(Ri,{key:e.type||e.label,option:e,onClick:f}))):null,l&&ct.createElement(bi,null,l))},Ri=({option:e,renderIcon:t=!0,onClick:n})=>{const o=!!e.items&&e.items.length>0,i=e.icon;return ct.createElement(Si,{"data-id":`option-${e.type||e.label}`,$isList:o,onMouseDown:()=>o?null:n(e)},i&&t&&ct.createElement(i,null),ct.createElement(Ci,null,ct.createElement(
|
|
160
|
+
`,_i=(e,t)=>t?e.reduce((e,n)=>{if(n.items){const o=_i(n.items,t);o.length&&e.push({...n,items:o})}else n.label.toLowerCase().includes(t.toLowerCase())&&e.push(n);return e},[]):e,zi=({placeholder:e="Type to search...",options:t,selectedOption:n,onOptionSelect:o,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...d})=>{const[c,p]=mt(n?.label||i||""),[u,m]=mt(_i(t,c)),[h,g]=mt(!1);mt(-1),ht(()=>m(_i(t,c)),[t]);const x=n?.icon,f=e=>{e&&(p(e.label),a?.(e.label)),g(!e),o?.(e)};return ct.createElement(wi,{style:r},ct.createElement(ki,{$hasError:!!l},x&&ct.createElement(x,null),ct.createElement(vi,{type:"text",value:c,placeholder:e,onChange:e=>{e.stopPropagation();const n=e.target.value,o=_i(t,n),i=1===o.length&&o[0].label===n?o[0]:void 0;p(n),a?.(n),m(o),f(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...d})),h&&u.length?ct.createElement(Ei,null,u.map(e=>ct.createElement(Ri,{key:e.type||e.label,option:e,onClick:f}))):null,l&&ct.createElement(bi,null,l))},Ri=({option:e,renderIcon:t=!0,onClick:n})=>{const o=!!e.items&&e.items.length>0,i=e.icon;return ct.createElement(Si,{"data-id":`option-${e.type||e.label}`,$isList:o,onMouseDown:()=>o?null:n(e)},i&&t&&ct.createElement(i,null),ct.createElement(Ci,null,ct.createElement(Ni,null,ct.createElement(Di,null,e.label),ct.createElement(Ii,null,e.description)),o&&ct.createElement(Oi,null,e.items?.map(e=>ct.createElement(Ti,{key:e.type||e.label},ct.createElement(Ai,null),ct.createElement(Ri,{option:e,renderIcon:!1,onClick:n}))))))},Fi=Et.span`
|
|
161
161
|
display: flex;
|
|
162
162
|
align-items: center;
|
|
163
163
|
justify-content: center;
|
|
@@ -263,7 +263,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
263
263
|
}
|
|
264
264
|
`:""}
|
|
265
265
|
`}
|
|
266
|
-
`,ji=({children:e,variant:t="primary",onClick:n,...o})=>{const i=gt(null);return ct.createElement(Li,{$variant:t},ct.createElement(Bi,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Ui=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>ct.createElement(
|
|
266
|
+
`,ji=({children:e,variant:t="primary",onClick:n,...o})=>{const i=gt(null);return ct.createElement(Li,{$variant:t},ct.createElement(Bi,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Ui=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>ct.createElement(cp,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:rn.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Wi=Et.div`
|
|
267
267
|
position: absolute;
|
|
268
268
|
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
269
269
|
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
@@ -286,7 +286,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
286
286
|
`,qi=Et.div`
|
|
287
287
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
288
288
|
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
289
|
-
`,Gi=xt(({isOpen:e,asPortal:t,...n},o)=>{const i=ut(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:d,maxWidth:c,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return ct.createElement(Wi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:d,$maxWidth:c,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&ct.createElement(Vi,{$padding:d},u),ct.createElement(Hi,{$padding:d},e),m&&ct.createElement(qi,{$padding:d},m))},[o,n,t]);return e?t?Ft.createPortal(i,document.body):i:null});Gi.displayName=Gi.name;const Yi=e=>{function t(){return void 0===e?{}:Pn(e)}const[n,o]=mt(t()),[i,a]=mt({}),r=ut(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return ht(()=>{void 0!==e&&"{}"===JSON.stringify(n)&&o(t())},[e,n]),{formData:n,formErrors:i,isFormDirty:r,handleFormChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?o(n=>({...n,[e]:t})):o(e=>{const o=Pn(e);let i=o;for(let e=0;e<n.length-1;e++){const t=n[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[n[n.length-1]]=t,o})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{e?a(n=>({...n,[e]:t})):n&&a({...n})},resetFormData:()=>{o(t()),a({})}}},Ji={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null}},Ki=()=>{const{addNotification:e}=Xo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Yi(Ji);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:n=>{const o={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":xo(t)&&(o[e]=Lo.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:rn.Warning,title:n.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...Pn(Ji),type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":n.name=t;break;case"type":case"notes":case"signals":case"disabled":n[e]=t;break;case Vt.CollectContainerAttributes:case Vt.CollectReplicaSetAttributes:case Vt.CollectWorkloadId:case Vt.CollectClusterId:case Vt.LabelsAttributes:case Vt.AnnotationsAttributes:case Vt.ClusterAttributes:case Vt.OverwriteExistingValues:case Vt.AttributeNamesToDelete:case Vt.Renames:case Vt.PiiCategories:case Vt.FallbackSamplingRatio:case Vt.SamplingPercentage:case Vt.EndpointsFilters:case Vt.ServicesNameFilters:case Vt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},Xi=e=>{ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Qi=()=>{const{setCurrentModal:e}=Ko(),{setDrawerType:t,setDrawerEntityId:n}=Ho(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=jt();return{onClickNode:(r,s)=>{const{id:l,type:d,data:{id:c,type:p}}=s;switch(a===l?(o(null),i(null)):(o(d),i(l)),p){case tn.Source:case tn.Destination:case tn.Action:case tn.InstrumentationRule:t(p),n(c);break;case gn.AddSource:e(tn.Source);break;case gn.AddDestination:e(tn.Destination);break;case gn.AddAction:e(tn.Action);break;case gn.AddRule:e(tn.InstrumentationRule)}}}},Zi=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Ho(),{markAsDismissed:n,markAsSeen:o}=Xo();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:d}=a||{};if(s&&l)switch(s){case tn.InstrumentationRule:e(tn.InstrumentationRule),t(eo(l,tn.InstrumentationRule));break;case tn.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(tn.Source),t(eo(l,tn.Source));break;case tn.Action:e(tn.Action),t(eo(l,tn.Action));break;case tn.Destination:case"Destination":e(tn.Destination),t(eo(l,tn.Destination))}o(r),d&&n(r)}}},ea=()=>{const{selectedConnection:e}=ei();return{selectedConnection:e,isVm:e?.type===Xt.Vm}},ta=()=>{const e=gt(null),[t,n]=mt(0),[o,i]=mt(0);return ht(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),i(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},na=()=>{const[e,t]=mt(!1),[n,o]=mt(-1);return{isCopied:e,copiedIndex:n,clickCopy:async(n,i)=>{if(!e){if(t(!0),void 0!==i&&o(i),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}setTimeout(()=>{t(!1),o(-1)},1e3)}}}},oa=e=>{const{addNotification:t}=Xo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Yi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?fo(n.name)?o.name=void 0:(i=!1,o.name=Lo.ILLEGAL_K8S_LABEL):(i=!1,o.name=Lo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:rn.Warning,title:e.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...Pn(e),name:t};o(void 0,void 0,n)}}},ia={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},aa=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Xo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Yi(ia),[d,c]=mt([]),[p,u]=mt([]);return ht(()=>{var e;u(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===on.Dropdown){const e=mo(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:n,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:n,title:i,value:a,renderCondition:r,...mo(o,{})}})).map(e=>{if(n){const t="string"==typeof n?mo(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),ht(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),ht(()=>{if(t&&0===Co(i.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;r("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let n=!0;return p.forEach(({name:e,value:o,required:i})=>{i&&!o&&(n=!1,t[e]=Lo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:rn.Warning,title:e.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:i})=>{const a={...Pn(ia),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(mo(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},ra={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[wn.HttpRequest]:null,[wn.HttpResponse]:null,[wn.DbQuery]:null,[wn.Messaging]:null},codeAttributes:{[$n.Column]:null,[$n.FilePath]:null,[$n.Function]:null,[$n.LineNumber]:null,[$n.Namespace]:null,[$n.StackTrace]:null},headersCollection:null,customInstrumentations:{[bn.Java]:null,[bn.Golang]:null}},sa=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Yi(ra);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...Pn(ra),ruleName:e,notes:t,disabled:o};i&&(l.payloadCollection={[wn.HttpRequest]:i[wn.HttpRequest]?{}:null,[wn.HttpResponse]:i[wn.HttpResponse]?{}:null,[wn.DbQuery]:i[wn.DbQuery]?{}:null,[wn.Messaging]:i[wn.Messaging]?{}:null}),a&&(l.codeAttributes={[$n.Column]:a[$n.Column]||null,[$n.FilePath]:a[$n.FilePath]||null,[$n.Function]:a[$n.Function]||null,[$n.LineNumber]:a[$n.LineNumber]||null,[$n.Namespace]:a[$n.Namespace]||null,[$n.StackTrace]:a[$n.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[bn.Java]:s[bn.Java]||null,[bn.Golang]:s[bn.Golang]||null}),n(void 0,void 0,l)}}},la=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(ht(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,i,a,r]),null),da=(e,t)=>{ht(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},ca=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=gt(null),[i,a]=mt(!1),[r,s]=mt({top:0,left:0});return da(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(n,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,d=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),d>=a/2&&(d+=-(o.current?.clientWidth||t)),s({top:l,left:d})}}},pa=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?mo(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ua={otelServiceName:"",currentStreamName:""},ma=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Yi(ua);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...Pn(ua),otelServiceName:e||t||""};n(void 0,void 0,o)}}},ha=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}},ga=(e,t,n)=>({...ha(e,t,n),currentStreamName:t}),xa=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t),a=(o?n:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!o)&&a,currentStreamName:t}},fa=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=qo(),{selectedStreamName:o}=Vo(),i=gt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=oi(),[l,d]=mt(s),[c,p]=mt(""),[u,m]=mt(!1),[h,g]=mt([]),[x,f]=mt(""),[$,y]=mt(r),[b,w]=mt(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>ga(e,n))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=o[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=ga(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),k=async(e,n)=>{if(t){if(p(e.name),h.includes(e.name))w(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:o}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;g(e=>[...e,a]),d(e=>({...e,[a]:r.map(e=>ha(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>ga(e,o,n))}))}p("")}};ht(()=>(i.current=!0,n?.length&&(d(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||xa(e,o)),t}),(async()=>{for await(const e of n)i.current&&await k(e)})()),()=>{i.current=!1}),[n,o]);const[v,E]=mt(""),[S,C]=mt(tn.Source),[T,A]=mt(!1),[D,N]=mt(!1),I=ut(()=>{const e=(e,t)=>!v||S!==t||S===t&&e.toLowerCase().includes(v),t={};return Object.entries(b).filter(([t])=>e(t,tn.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,tn.Source)&&(!T||t.selected)&&(e=>!D||(e.numberOfInstances||0)>0)(t));t[n]=i}),t},[b,v,S,T,D]);return{fetchingNamespace:c,fetchedNamespaces:h,availableSources:l,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(b).forEach(([t,n])=>{n.forEach(n=>{const o=l[t]?.find(e=>e.name===n.name&&e.kind===n.kind);o?.selected!==n.selected&&(e[t]||(e[t]=[]),e[t].push(n))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries($).forEach(([t,i])=>{const a=n?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(o)||!i.selected&&a?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;f(t=>t!==e||n?e:""),k(o,t),n&&m(!1)}},selectedAllNamespaces:u,onSelectAllNamespaces:e=>{m(e),n.forEach(t=>k(t,e))},selectedSources:b,onSelectSource:(e,t)=>{const n=t||x;if(!n)return;const i=[...b[n]||[]],a=i.findIndex(({name:t,kind:n})=>t===e.name&&n===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});w(e=>({...e,[n]:i})),m(!1)},selectedFutureApps:$,onSelectFutureApps:(e,t)=>{const i=t||x;if(!i)return;const a=n.find(e=>e.name===t);a&&y(t=>({...t,[i]:xa(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};yt.addDefaultLocale(vt);const $a=()=>new yt("en-US"),ya=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=Et(e)`
|
|
289
|
+
`,Gi=xt(({isOpen:e,asPortal:t,...n},o)=>{const i=ut(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:d,maxWidth:c,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return ct.createElement(Wi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:d,$maxWidth:c,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&ct.createElement(Vi,{$padding:d},u),ct.createElement(Hi,{$padding:d},e),m&&ct.createElement(qi,{$padding:d},m))},[o,n,t]);return e?t?Ft.createPortal(i,document.body):i:null});Gi.displayName=Gi.name;const Ji=e=>{function t(){return void 0===e?{}:Pn(e)}const[n,o]=mt(t()),[i,a]=mt({}),r=ut(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return ht(()=>{void 0!==e&&"{}"===JSON.stringify(n)&&o(t())},[e,n]),{formData:n,formErrors:i,isFormDirty:r,handleFormChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?o(n=>({...n,[e]:t})):o(e=>{const o=Pn(e);let i=o;for(let e=0;e<n.length-1;e++){const t=n[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[n[n.length-1]]=t,o})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{e?a(n=>({...n,[e]:t})):n&&a({...n})},resetFormData:()=>{o(t()),a({})}}},Yi={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null}},Ki=()=>{const{addNotification:e}=Xo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Ji(Yi);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:n=>{const o={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":xo(t)&&(o[e]=Lo.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:rn.Warning,title:n.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...Pn(Yi),type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":n.name=t;break;case"type":case"notes":case"signals":case"disabled":n[e]=t;break;case Vt.CollectContainerAttributes:case Vt.CollectReplicaSetAttributes:case Vt.CollectWorkloadId:case Vt.CollectClusterId:case Vt.LabelsAttributes:case Vt.AnnotationsAttributes:case Vt.ClusterAttributes:case Vt.OverwriteExistingValues:case Vt.AttributeNamesToDelete:case Vt.Renames:case Vt.PiiCategories:case Vt.FallbackSamplingRatio:case Vt.SamplingPercentage:case Vt.EndpointsFilters:case Vt.ServicesNameFilters:case Vt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},Xi=e=>{ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Qi=()=>{const{setCurrentModal:e}=Ko(),{setDrawerType:t,setDrawerEntityId:n}=Ho(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=jt();return{onClickNode:(r,s)=>{const{id:l,type:d,data:{id:c,type:p}}=s;switch(a===l?(o(null),i(null)):(o(d),i(l)),p){case tn.Source:case tn.Destination:case tn.Action:case tn.InstrumentationRule:t(p),n(c);break;case gn.AddSource:e(tn.Source);break;case gn.AddDestination:e(tn.Destination);break;case gn.AddAction:e(tn.Action);break;case gn.AddRule:e(tn.InstrumentationRule)}}}},Zi=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Ho(),{markAsDismissed:n,markAsSeen:o}=Xo();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:d}=a||{};if(s&&l)switch(s){case tn.InstrumentationRule:e(tn.InstrumentationRule),t(eo(l,tn.InstrumentationRule));break;case tn.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(tn.Source),t(eo(l,tn.Source));break;case tn.Action:e(tn.Action),t(eo(l,tn.Action));break;case tn.Destination:case"Destination":e(tn.Destination),t(eo(l,tn.Destination))}o(r),d&&n(r)}}},ea=()=>{const{selectedConnection:e}=ei();return{selectedConnection:e,isVm:e?.type===Xt.Vm}},ta=()=>{const e=gt(null),[t,n]=mt(0),[o,i]=mt(0);return ht(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),i(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},na=()=>{const[e,t]=mt(!1),[n,o]=mt(-1);return{isCopied:e,copiedIndex:n,clickCopy:async(n,i)=>{if(!e){if(t(!0),void 0!==i&&o(i),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}setTimeout(()=>{t(!1),o(-1)},1e3)}}}},oa=e=>{const{addNotification:t}=Xo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Ji(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?fo(n.name)?o.name=void 0:(i=!1,o.name=Lo.ILLEGAL_K8S_LABEL):(i=!1,o.name=Lo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:rn.Warning,title:e.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...Pn(e),name:t};o(void 0,void 0,n)}}},ia={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},aa=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Xo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Ji(ia),[d,c]=mt([]),[p,u]=mt([]);return ht(()=>{var e;u(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===on.Dropdown){const e=mo(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:n,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:n,title:i,value:a,renderCondition:r,...mo(o,{})}})).map(e=>{if(n){const t="string"==typeof n?mo(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),ht(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),ht(()=>{if(t&&0===Co(i.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;r("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let n=!0;return p.forEach(({name:e,value:o,required:i})=>{i&&!o&&(n=!1,t[e]=Lo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:rn.Warning,title:e.alertTitle,message:Lo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:i})=>{const a={...Pn(ia),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(mo(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},ra={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[wn.HttpRequest]:null,[wn.HttpResponse]:null,[wn.DbQuery]:null,[wn.Messaging]:null},codeAttributes:{[$n.Column]:null,[$n.FilePath]:null,[$n.Function]:null,[$n.LineNumber]:null,[$n.Namespace]:null,[$n.StackTrace]:null},headersCollection:null,customInstrumentations:{[bn.Java]:null,[bn.Golang]:null}},sa=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Ji(ra);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...Pn(ra),ruleName:e,notes:t,disabled:o};i&&(l.payloadCollection={[wn.HttpRequest]:i[wn.HttpRequest]?{}:null,[wn.HttpResponse]:i[wn.HttpResponse]?{}:null,[wn.DbQuery]:i[wn.DbQuery]?{}:null,[wn.Messaging]:i[wn.Messaging]?{}:null}),a&&(l.codeAttributes={[$n.Column]:a[$n.Column]||null,[$n.FilePath]:a[$n.FilePath]||null,[$n.Function]:a[$n.Function]||null,[$n.LineNumber]:a[$n.LineNumber]||null,[$n.Namespace]:a[$n.Namespace]||null,[$n.StackTrace]:a[$n.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[bn.Java]:s[bn.Java]||null,[bn.Golang]:s[bn.Golang]||null}),n(void 0,void 0,l)}}},la=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(ht(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,i,a,r]),null),da=(e,t)=>{ht(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},ca=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=gt(null),[i,a]=mt(!1),[r,s]=mt({top:0,left:0});return da(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(n,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,d=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),d>=a/2&&(d+=-(o.current?.clientWidth||t)),s({top:l,left:d})}}},pa=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?mo(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ua={otelServiceName:"",currentStreamName:""},ma=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Ji(ua);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...Pn(ua),otelServiceName:e||t||""};n(void 0,void 0,o)}}},ha=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}},ga=(e,t,n)=>({...ha(e,t,n),currentStreamName:t}),xa=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t),a=(o?n:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!o)&&a,currentStreamName:t}},fa=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=qo(),{selectedStreamName:o}=Vo(),i=gt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:d}=oi(),[c,p]=mt(s),[u,m]=mt(""),[h,g]=mt(!1),[x,f]=mt([]),[$,y]=mt(""),[b,w]=mt(r),[k,v]=mt(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>ga(e,n))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=o[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=ga(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),E=async(e,n)=>{if(t){if(m(e.name),x.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:o}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>ha(e,o));f(e=>[...e,a]),l({...oi.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>ga(e,o,n))}))}m("")}};ht(()=>(i.current=!0,n?.length&&!oi.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||xa(e,o)),t}),(async()=>{for await(const e of n)i.current&&await E(e)})(),i.current&&d(!0)),()=>{i.current=!1}),[n,o]);const[S,C]=mt(""),[T,A]=mt(tn.Source),[N,D]=mt(!1),[I,O]=mt(!1),_=ut(()=>{const e=(e,t)=>!S||T!==t||T===t&&e.toLowerCase().includes(S),t={};return Object.entries(k).filter(([t])=>e(t,tn.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,tn.Source)&&(!N||t.selected)&&(e=>!I||(e.numberOfInstances||0)>0)(t));t[n]=i}),t},[k,S,T,N,I]);return{fetchingNamespace:u,fetchedNamespaces:x,availableSources:c,filteredNamespacesAndSources:_,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,n])=>{n.forEach(n=>{const o=c[t]?.find(e=>e.name===n.name&&e.kind===n.kind);o?.selected!==n.selected&&(e[t]||(e[t]=[]),e[t].push(n))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(b).forEach(([t,i])=>{const a=n?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(o)||!i.selected&&a?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:$,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;y(t=>t!==e||n?e:""),E(o,t),n&&g(!1)}},selectedAllNamespaces:h,onSelectAllNamespaces:e=>{g(e),n.forEach(t=>E(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const n=t||$;if(!n)return;const i=[...k[n]||[]],a=i.findIndex(({name:t,kind:n})=>t===e.name&&n===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});v(e=>({...e,[n]:i})),g(!1)},selectedFutureApps:b,onSelectFutureApps:(e,t)=>{const i=t||$;if(!i)return;const a=n.find(e=>e.name===t);a&&w(t=>({...t,[i]:xa(a,o,e)}))},searchText:S,setSearchText:C,searchBy:T,setSearchBy:A,showSelectedOnly:N,setShowSelectedOnly:D,showRunningOnly:I,setShowRunningOnly:O}};yt.addDefaultLocale(vt);const $a=()=>new yt("en-US"),ya=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=Et(e)`
|
|
290
290
|
animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
|
|
291
291
|
animation-duration: ${o}ms;
|
|
292
292
|
animation-fill-mode: forwards;
|
|
@@ -324,7 +324,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
324
324
|
background: rgba(0, 0, 0, 0.5);
|
|
325
325
|
backdrop-filter: blur(1px);
|
|
326
326
|
`,Sa=Et.div`
|
|
327
|
-
width:
|
|
327
|
+
width: 800px;
|
|
328
328
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
329
329
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
330
330
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
@@ -340,16 +340,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
340
340
|
width: 100%;
|
|
341
341
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
342
342
|
overflow-y: auto;
|
|
343
|
-
`,
|
|
343
|
+
`,Na=Et.div`
|
|
344
344
|
position: relative;
|
|
345
345
|
display: flex;
|
|
346
346
|
align-items: center;
|
|
347
347
|
gap: 4px;
|
|
348
348
|
// cursor: help;
|
|
349
|
-
`,
|
|
349
|
+
`,Da=Et(fi)`
|
|
350
350
|
word-break: break-word;
|
|
351
351
|
white-space: pre-wrap;
|
|
352
|
-
`,Ia=({withIcon:e,titleIcon:t,title:n,text:o,timestamp:i,children:a})=>{const r=ui.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:d,popupPosition:c,handlePosition:p}=ca({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(o?.length||0),300)}),u=ut(()=>!!hi(o||"")?.length,[o]),m=e=>{const{type:t,clientX:n,clientY:o}=e;u?p(c.left||n,c.top||o):p(n,o),d("mouseleave"!==t)};return o?ct.createElement(
|
|
352
|
+
`,Ia=({withIcon:e,titleIcon:t,title:n,text:o,timestamp:i,children:a})=>{const r=ui.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:d,popupPosition:c,handlePosition:p}=ca({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(o?.length||0),300)}),u=ut(()=>!!hi(o||"")?.length,[o]),m=e=>{const{type:t,clientX:n,clientY:o}=e;u?p(c.left||n,c.top||o):p(n,o),d("mouseleave"!==t)};return o?ct.createElement(Na,{onMouseEnter:m,onMouseMove:m,onMouseLeave:m},a,e&&ct.createElement(Ve,null),ct.createElement(Gi,{ref:s,isOpen:l,top:c.top,left:c.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?m:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!n)&&ct.createElement(ba,{style:{marginBottom:"4px"},$gap:4},t&&ct.createElement(t,{size:12,fill:r.text.secondary}),n&&ct.createElement(fi,{size:12,color:r.text.secondary},n)),ct.createElement(Da,{size:12,color:r.text.info},o),!!i&&ct.createElement(fi,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):ct.createElement(ct.Fragment,null,a)},Oa=Et.div`
|
|
353
353
|
display: flex;
|
|
354
354
|
align-items: center;
|
|
355
355
|
gap: 8px;
|
|
@@ -383,7 +383,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
383
383
|
&:hover {
|
|
384
384
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
385
385
|
}
|
|
386
|
-
`,Pa=({isPrettyMode:e,setIsPrettyMode:t})=>ct.createElement(Ra,null,ct.createElement(Fa,{$position:"left",$selected:e,onClick:()=>t(!0)},ct.createElement(Ge,null)),ct.createElement(Fa,{$position:"right",$selected:!e,onClick:()=>t(!1)},ct.createElement(
|
|
386
|
+
`,Pa=({isPrettyMode:e,setIsPrettyMode:t})=>ct.createElement(Ra,null,ct.createElement(Fa,{$position:"left",$selected:e,onClick:()=>t(!0)},ct.createElement(Ge,null)),ct.createElement(Fa,{$position:"right",$selected:!e,onClick:()=>t(!1)},ct.createElement(Je,null))),La=Et.table`
|
|
387
387
|
border-collapse: collapse;
|
|
388
388
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
389
389
|
`,Ma=Et.tbody``,Ba=Et.tr`
|
|
@@ -406,12 +406,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
406
406
|
/* Fallback for older browsers */
|
|
407
407
|
-ms-word-break: break-all;
|
|
408
408
|
font-size: 12px;
|
|
409
|
-
`,Va=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=ui.useTheme();let a="";if("json"===e){const e=mo(t,{}),o=
|
|
409
|
+
`,Va=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=ui.useTheme();let a="";if("json"===e){const e=mo(t,{}),o=Do(e);a=Io(n?Wn(o):o)}else a=t;return o&&"json"===e?ct.createElement(Ha,{darkMode:i,str:a}):ct.createElement(Pt,{theme:i?Lt.palenight:Lt.vsLight,language:e,code:a},({getLineProps:e,getTokenProps:t,tokens:n})=>ct.createElement("pre",null,n.map((n,o)=>ct.createElement("div",{key:`line-${o}`,...e({line:n})},n.map((e,n)=>ct.createElement(Wa,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},Ha=({darkMode:e,str:t})=>{const n=ui.useTheme();return ct.createElement(Pt,{theme:e?Lt.palenight:Lt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>ct.createElement(La,null,ct.createElement(Ma,null,o.map((o,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(o),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?ct.createElement(pt,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>ct.createElement(Ba,{...e},ct.createElement(ja,null),ct.createElement(ja,null)));return ct.createElement(pt,null,o.map((e,o)=>ct.createElement(e,{key:`empty-row-${t}-${o}`,style:0===o?{borderBottom:`1px solid ${n.colors.border}`}:{}})))})(0,i),ct.createElement(Ba,{...r},ct.createElement(ja,null,ct.createElement(Ua,null,a[0].content)),ct.createElement(ja,null))):2===a.length?ct.createElement(Ba,{key:`line-${i}`,...r},a.map((e,o)=>{const{text:a,components:r}=((e,t)=>{const[n,...o]=e.split("@");return{text:n,components:o?.map((e,n)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return ct.createElement(Ia,{key:`${o}-${i}-${n}`,withIcon:!0,text:i});case"status":if("none"===i)return ct.createElement("div",{key:`${o}-${i}-${n}`,style:{width:16,height:16}});let e=lo(i,t);return e||(e=lo(rn.Warning,t)),ct.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return ct.createElement(ja,{key:`line-${i}-token-${o}`},ct.createElement(ba,null,ct.createElement(ba,null,r),ct.createElement(Wa,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},qa={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 Ga(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return qa[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Ja(e){const t=Ga(e);return`${t.value}${t.unit}`}const Ya=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Ka=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=ui.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:d}=Ga(2),c=d+4.2,p=c/2+c/5.5,u=4*c*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:Ja(1.5),height:Ja(4),borderRadius:Ja(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Ya} ${1.2/o}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return ct.createElement("span",{style:m,...r},ct.createElement("span",{style:{...h(1,0),top:`calc(50% + ${c}px)`,left:"50%"}}),ct.createElement("span",{style:{...h(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),ct.createElement("span",{style:{...h(3,90),top:"50%",left:`calc(50% + ${c}px)`}}),ct.createElement("span",{style:{...h(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),ct.createElement("span",{style:{...h(5,0),top:`calc(50% + ${-1*c}px)`,left:"50%"}}),ct.createElement("span",{style:{...h(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),ct.createElement("span",{style:{...h(7,90),top:"50%",left:`calc(50% + ${-1*c}px)`}}),ct.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},Xa=Et.div`
|
|
410
410
|
margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
|
|
411
411
|
display: flex;
|
|
412
412
|
align-items: center;
|
|
413
413
|
justify-content: center;
|
|
414
|
-
`,Qa=({extend:e,size:t=14,align:n="center"})=>ct.createElement(Xa,{$align:n},ct.createElement(
|
|
414
|
+
`,Qa=({extend:e,size:t=14,align:n="center"})=>ct.createElement(Xa,{$align:n},ct.createElement(Ye,{size:t,rotate:e?180:0})),Za=Et.div`
|
|
415
415
|
border-radius: 24px;
|
|
416
416
|
background-color: ${({theme:e,$status:t})=>t===rn.Error?e.text.error+ui.opacity.hex["010"]:t===rn.Warning?e.text.warning+ui.opacity.hex["010"]:e.colors.secondary+ui.opacity.hex["005"]};
|
|
417
417
|
&:hover {
|
|
@@ -500,7 +500,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
500
500
|
width: 100%;
|
|
501
501
|
padding-left: 12px;
|
|
502
502
|
}
|
|
503
|
-
`,fr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=na();return ct.createElement(xr,null,ct.createElement("pre",null,e),ct.createElement(gr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?ct.createElement(qe,null):ct.createElement(Xe,null)))},$r=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=ui.useTheme();return ct.createElement(ji,{onClick:t,variant:n,...o},ct.createElement(Qe,{fill:"primary"===n?i.text.primary:i.text.info}),ct.createElement(fi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Bo.EDIT))},yr=({onClick:e})=>ct.createElement(
|
|
503
|
+
`,fr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=na();return ct.createElement(xr,null,ct.createElement("pre",null,e),ct.createElement(gr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?ct.createElement(qe,null):ct.createElement(Xe,null)))},$r=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=ui.useTheme();return ct.createElement(ji,{onClick:t,variant:n,...o},ct.createElement(Qe,{fill:"primary"===n?i.text.primary:i.text.info}),ct.createElement(fi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Bo.EDIT))},yr=({onClick:e})=>ct.createElement(yc,{type:rn.Default,icon:Ve,message:Mo.QUICK_BACK_TO_SUMMARY,action:{label:Mo.GO_TO_SUMMARY,onClick:e}}),br=Et(fi)`
|
|
504
504
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
505
505
|
white-space: nowrap;
|
|
506
506
|
overflow-x: auto;
|
|
@@ -539,7 +539,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
539
539
|
border-radius: 100%;
|
|
540
540
|
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+ui.opacity.hex["030"]};
|
|
541
541
|
background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+ui.opacity.hex["030"]} 100%)`}};
|
|
542
|
-
`,Tr=({icons:e=[],iconSrcs:t=[],status:n,size:o=36,id:i})=>{const a=ui.useTheme(),r=1===e.length||1===t.length?o-12:o/2.7;if(t.length>0)return ct.createElement(Tr,{icons:t.map(e=>()=>ct.createElement(kr,{src:e,size:r})),status:n,size:o,id:i});if(1===e.length)return ct.createElement(Er,{icon:e[0],status:n,size:o});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return ct.createElement(Sr,{$status:n,$size:o},e.map((t,o)=>o>2?null:ct.createElement(Cr,{key:`icon-${i}-${o}`,$status:n,$size:1.5*r,$top:s(o),$left:l(o),$zIndex:o+1},2===o&&e.length>3?ct.createElement(fi,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):ct.createElement(t,{size:r}))))},Ar=On.map(({id:e})=>e),
|
|
542
|
+
`,Tr=({icons:e=[],iconSrcs:t=[],status:n,size:o=36,id:i})=>{const a=ui.useTheme(),r=1===e.length||1===t.length?o-12:o/2.7;if(t.length>0)return ct.createElement(Tr,{icons:t.map(e=>()=>ct.createElement(kr,{src:e,size:r})),status:n,size:o,id:i});if(1===e.length)return ct.createElement(Er,{icon:e[0],status:n,size:o});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return ct.createElement(Sr,{$status:n,$size:o},e.map((t,o)=>o>2?null:ct.createElement(Cr,{key:`icon-${i}-${o}`,$status:n,$size:1.5*r,$top:s(o),$left:l(o),$zIndex:o+1},2===o&&e.length>3?ct.createElement(fi,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):ct.createElement(t,{size:r}))))},Ar=On.map(({id:e})=>e),Nr=({monitors:e=Ar,withTooltips:t,withLabels:n,size:o=12,color:i})=>{const a=ui.useTheme(),r=i||a.text.grey;return ct.createElement(ba,{$gap:n?o:o/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=_n(i),s=oo(i);return s?ct.createElement(Ia,{key:i,text:t?a:""},ct.createElement(ba,{$gap:o/3},ct.createElement(s,{size:n?o+2:o,fill:r}),n&&ct.createElement(fi,{size:o,color:r},a))):null}))},Dr=Et.div`
|
|
543
543
|
visibility: hidden;
|
|
544
544
|
`,Ir=Et.div`
|
|
545
545
|
display: flex;
|
|
@@ -555,11 +555,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
555
555
|
&:hover {
|
|
556
556
|
cursor: pointer;
|
|
557
557
|
background-color: ${n||(t?e.text[t]+ui.opacity.hex["020"]:e.colors.secondary+ui.opacity.hex["010"])};
|
|
558
|
-
${
|
|
558
|
+
${Dr} {
|
|
559
559
|
visibility: visible;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
`:`\n &:hover {\n ${
|
|
562
|
+
`:`\n &:hover {\n ${Dr} {\n visibility: visible;\n }\n }\n `}
|
|
563
563
|
`,Or=Et.div`
|
|
564
564
|
display: flex;
|
|
565
565
|
align-items: center;
|
|
@@ -570,7 +570,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
570
570
|
`,zr=Et(fi)`
|
|
571
571
|
font-size: 10px;
|
|
572
572
|
color: ${({theme:e})=>e.text.grey};
|
|
573
|
-
`,Rr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:d,faded:c,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:f,isChecked:$,isLoading:y,onCheckboxChange:b}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...E})=>{const S=ui.useTheme(),[C,T]=mt(k||!1),[A,
|
|
573
|
+
`,Rr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:d,faded:c,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:f,isChecked:$,isLoading:y,onCheckboxChange:b}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...E})=>{const S=ui.useTheme(),[C,T]=mt(k||!1),[A,N]=mt(0),D=gt(null),I=gt(null),O=gt(null);return ht(()=>{if(D.current){const e=D.current.clientWidth,t=I.current?.clientWidth||0;N(e-((x?125:85)+t))}},[x]),ct.createElement(Ir,{ref:D,$status:d,$faded:c,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...E},ct.createElement(ba,{$gap:8},ct.createElement(ba,{$gap:16},y?ct.createElement(Ka,null):x?ct.createElement(za,{value:$,onChange:b,disabled:f}):null,r?.length||l?.length?ct.createElement(Tr,{icons:r,iconSrcs:l,status:d,id:`${e}-${t}`}):a||s?ct.createElement(Er,{icon:a,src:s,status:d}):null),ct.createElement(wa,{$gap:4},e&&ct.createElement(wr,{maxWidth:A,text:e,textSize:14}),ct.createElement(ba,{$gap:4},t&&ct.createElement(wr,{maxWidth:A-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),m&&m.length>0&&ct.createElement(ba,{$gap:4,ref:O},t&&ct.createElement(zr,null,"•"),ct.createElement(Nr,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?ct.createElement(ba,{$gap:4},g?.map((e,t)=>ct.createElement(pt,{key:`componentsUnderTitles-${t}`},e))):null),ct.createElement(Or,{ref:I},!!n&&ct.createElement(Dr,null,ct.createElement(_r,{size:14,family:"secondary"},n)),i&&i(),w&&ct.createElement(pt,null,ct.createElement(sr,{orientation:"vertical",length:"16px",margin:"0 2px"}),ct.createElement(gr,{onClick:()=>T(e=>!e)},ct.createElement(Qa,{extend:C}))))),C&&v&&ct.createElement(wa,null,ct.createElement(sr,{margin:"16px 0"}),v()))},Fr=Et(ba)`
|
|
574
574
|
width: 100%;
|
|
575
575
|
justify-content: space-between;
|
|
576
576
|
`,Pr=Et(fi)`
|
|
@@ -613,23 +613,23 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
613
613
|
`,Gr=Et(fi)`
|
|
614
614
|
font-size: 14px;
|
|
615
615
|
font-weight: 600;
|
|
616
|
-
`,
|
|
616
|
+
`,Jr=Et(fi)`
|
|
617
617
|
font-size: 12px;
|
|
618
618
|
color: ${({theme:e})=>e.text.grey};
|
|
619
619
|
text-align: center;
|
|
620
|
-
`,
|
|
620
|
+
`,Yr=$t(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Zo(),r=e.split("-")[0],s=a({entityType:r});return ct.createElement(Hr,{$nodeWidth:n,className:"nowheel nodrag"},s?ct.createElement(pt,null,ct.createElement(qr,null,ct.createElement(Ka,null),ct.createElement(Gr,{family:"secondary"},"adding ",r,"s")),ct.createElement(Jr,null,"Just a few more seconds...")):ct.createElement(pt,null,ct.createElement(qr,null,ct.createElement(Ke,null),ct.createElement(Gr,{family:"secondary",decoration:"underline"},o)),ct.createElement(Jr,null,i)),ct.createElement(Nt,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Yr.displayName=Yr.name;const Kr=Et.div`
|
|
621
621
|
width: ${({$nodeWidth:e})=>`${e}px`};
|
|
622
|
-
`,Xr=$t(({id:e,data:t})=>{const n=ui.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:d,icon:c,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===tn.Source,$="boolean"==typeof g,{isThisPending:y}=Zo(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=ei(),v={...w},{namespace:E,name:S,kind:C}=x;f&&!v[E]&&(v[E]=[]);const T=f?v[E].findIndex(e=>e.name===S&&e.kind===C):-1;return ct.createElement(Kr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},ct.createElement(Rr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=$&&!g?lo(rn.Info,n):r?lo(r,n):void 0,t=f&&(!x.conditions?.length||x.conditions?.some(({status:e})=>"loading"===e));return b?ct.createElement(Ka,null):e?ct.createElement(e,{size:20}):t?ct.createElement(Ka,null):null},iconProps:{icon:c,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==T,onCheckboxChange:()=>{-1===T?v[E].push(x):v[E].splice(T,1),k(v)},isCheckboxDisabled:b}}),ct.createElement(
|
|
622
|
+
`,Xr=$t(({id:e,data:t})=>{const n=ui.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:d,icon:c,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===tn.Source,$="boolean"==typeof g,{isThisPending:y}=Zo(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=ei(),v={...w},{namespace:E,name:S,kind:C}=x;f&&!v[E]&&(v[E]=[]);const T=f?v[E].findIndex(e=>e.name===S&&e.kind===C):-1;return ct.createElement(Kr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},ct.createElement(Rr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=$&&!g?lo(rn.Info,n):r?lo(r,n):void 0,t=f&&(!x.conditions?.length||x.conditions?.some(({status:e})=>"loading"===e));return b?ct.createElement(Ka,null):e?ct.createElement(e,{size:20}):t?ct.createElement(Ka,null):null},iconProps:{icon:c,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==T,onCheckboxChange:()=>{-1===T?v[E].push(x):v[E].splice(T,1),k(v)},isCheckboxDisabled:b}}),ct.createElement(Nt,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Xr.displayName=Xr.name;const Qr=Et.div`
|
|
623
623
|
width: ${({$nodeWidth:e})=>`${e}px`};
|
|
624
624
|
height: ${({$nodeHeight:e})=>`${e}px`};
|
|
625
625
|
opacity: 0;
|
|
626
|
-
`,Zr=$t(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(Qr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(
|
|
626
|
+
`,Zr=$t(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(Qr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(Nt,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});Zr.displayName=Zr.name;const es=Et.div`
|
|
627
627
|
width: ${({$nodeWidth:e})=>e}px;
|
|
628
628
|
height: ${({$nodeHeight:e})=>e}px;
|
|
629
629
|
background: transparent;
|
|
630
630
|
border: 1px dashed ${({theme:e})=>e.colors.border};
|
|
631
631
|
border-radius: 24px;
|
|
632
|
-
`,ts=$t(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(es,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(
|
|
632
|
+
`,ts=$t(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(es,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(Nt,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});ts.displayName=ts.name;const{framePadding:ns}=Vr,os=Et.div`
|
|
633
633
|
position: relative;
|
|
634
634
|
z-index: 1;
|
|
635
635
|
width: fit-content;
|
|
@@ -683,7 +683,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
683
683
|
height: 4px;
|
|
684
684
|
width: ${({percent:e})=>`${e}%`};
|
|
685
685
|
transition: width 0.3s;
|
|
686
|
-
`,hs=$t(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,d=e.split("-")[0],{isAwaitingInstrumentation:c,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=
|
|
686
|
+
`,hs=$t(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,d=e.split("-")[0],{isAwaitingInstrumentation:c,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=Yo(),g=d===tn.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=ei(),{isThisPending:y}=Zo(),[b,w]=ut(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return ct.createElement(ds,{$nodeWidth:n,className:"nowheel nodrag"},d===tn.Source&&ct.createElement(cs,null,ct.createElement(za,{partiallyChecked:b&&l?.length!==w,value:b&&l?.length===w,onChange:e=>{if(e){const e={};l?.forEach(t=>{const n={namespace:t.namespace,name:t.name,kind:t.kind};y({entityType:tn.Source,entityId:n})||(e[t.namespace]?e[t.namespace].push(t):e[t.namespace]=[t])}),$(e)}else $({})},disabled:!l?.length})),ct.createElement(ls,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),ct.createElement(gs,{entityType:d}),g&&ct.createElement(ms,{percent:x}))}),gs=$t(({entityType:e})=>{const t=ui.useTheme(),{onClickNode:n}=Qi();return ct.createElement(ps,null,ct.createElement(us,{"data-id":`add-${e}`,variant:"primary",onClick:t=>{t.stopPropagation(),n(void 0,{data:{type:e===tn.Source?gn.AddSource:e===tn.Destination?gn.AddDestination:e===tn.Action?gn.AddAction:gn.AddRule}})}},ct.createElement(Ke,{fill:t.colors.primary,size:18})))});hs.displayName=hs.name,gs.displayName=gs.name;const xs=Et(wa)`
|
|
687
687
|
max-width: 300px;
|
|
688
688
|
padding: 12px;
|
|
689
689
|
border-radius: 12px;
|
|
@@ -728,20 +728,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
728
728
|
border-radius: 16px;
|
|
729
729
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
730
730
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
731
|
-
`,Es=({title:e,value:t})=>{const n=ui.useTheme();return ct.createElement(ba,{$justifyContent:"space-between"},ct.createElement(fi,{size:12,color:n.text.info},e),ct.createElement(fi,{size:12,family:"secondary"},t))},Ss=$t(({id:e,data:t})=>{const{id:n,status:o,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=jt(),d=ui.useTheme(),c=o===rn.Error?lo(o,d):null;return ct.createElement(ct.Fragment,null,ct.createElement(
|
|
731
|
+
`,Es=({title:e,value:t})=>{const n=ui.useTheme();return ct.createElement(ba,{$justifyContent:"space-between"},ct.createElement(fi,{size:12,color:n.text.info},e),ct.createElement(fi,{size:12,family:"secondary"},t))},Ss=$t(({id:e,data:t})=>{const{id:n,status:o,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=jt(),d=ui.useTheme(),c=o===rn.Error?lo(o,d):null;return ct.createElement(ct.Fragment,null,ct.createElement(Nt,{type:"source",position:Dt.Bottom,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"target",position:Dt.Top,style:{visibility:"hidden"}}),ct.createElement(ws,{"data-id":e},ct.createElement(bs,null,ct.createElement(Tr,{id:n,icons:a,status:o})),ct.createElement(ks,null,c&&ct.createElement(c,null),ct.createElement(wr,{maxWidth:100,text:i})),s===mn.MapItem&&l===e&&ct.createElement(vs,null,ct.createElement(ba,{$gap:12},ct.createElement(Tr,{id:n,icons:a,status:o}),ct.createElement(fi,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:o})=>ct.createElement("div",{key:`from-${n}-to-${e}`},ct.createElement(sr,null),ct.createElement(Es,{title:"Connected Service",value:e}),ct.createElement(Es,{title:"Outgoing Requests",value:t}),ct.createElement(Es,{title:"Last Requested At",value:new Date(o).toLocaleString()}))):ct.createElement(ct.Fragment,null,ct.createElement(sr,null),ct.createElement(rd,{title:"No outgoing connections",subTitle:" "})))))});Ss.displayName=Ss.name;const Cs=Et.div`
|
|
732
732
|
padding: 24px;
|
|
733
733
|
border: 1px dashed ${({theme:e})=>e.colors.border};
|
|
734
734
|
border-radius: 24px;
|
|
735
|
-
`,Ts=$t(({})=>ct.createElement(Cs,{className:"nowheel nodrag"},ct.createElement(pe,{size:100}),ct.createElement(
|
|
735
|
+
`,Ts=$t(({})=>ct.createElement(Cs,{className:"nowheel nodrag"},ct.createElement(pe,{size:100}),ct.createElement(Nt,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),ct.createElement(Nt,{type:"target",position:Dt.Left,style:{visibility:"hidden"}})));Ts.displayName=Ts.name;const As=Et.div`
|
|
736
736
|
display: flex;
|
|
737
737
|
flex-direction: column;
|
|
738
738
|
gap: 16px;
|
|
739
739
|
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
740
|
-
`,
|
|
740
|
+
`,Ns=Et.div`
|
|
741
741
|
display: flex;
|
|
742
742
|
align-items: center;
|
|
743
743
|
gap: 16px;
|
|
744
|
-
`,
|
|
744
|
+
`,Ds=Et.div`
|
|
745
745
|
width: 50px;
|
|
746
746
|
height: 50px;
|
|
747
747
|
border-radius: 8px;
|
|
@@ -758,7 +758,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
758
758
|
background-size: 200% 100%;
|
|
759
759
|
animation: ${ui.animations.shimmer} 1.5s infinite linear;
|
|
760
760
|
border-radius: 4px;
|
|
761
|
-
`,_s=({size:e=5,maxWidth:t})=>ct.createElement(As,{$maxWidth:t},[...Array(e)].map((e,t)=>ct.createElement(
|
|
761
|
+
`,_s=({size:e=5,maxWidth:t})=>ct.createElement(As,{$maxWidth:t},[...Array(e)].map((e,t)=>ct.createElement(Ns,{key:t},ct.createElement(Ds,null),ct.createElement(Is,null,ct.createElement(Os,{$width:"80%"}),ct.createElement(Os,{$width:"100%"}))))),zs=Et.div`
|
|
762
762
|
width: ${({$nodeWidth:e})=>`${e}px`};
|
|
763
763
|
`,Rs=$t(({id:e,data:t})=>{const{nodeWidth:n}=t;return ct.createElement(zs,{"data-id":e,$nodeWidth:n,className:"nowheel nodrag"},ct.createElement(_s,{size:3}))});Rs.displayName=Rs.name;const Fs=Et.div`
|
|
764
764
|
height: calc(100vh - 160px);
|
|
@@ -779,12 +779,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
779
779
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
`,Ls={[mn.Header]:hs,[mn.Add]:
|
|
782
|
+
`,Ls={[mn.Header]:hs,[mn.Add]:Yr,[mn.Base]:Xr,[mn.Edged]:Zr,[mn.Frame]:ts,[mn.Scroll]:rs,[mn.Skeleton]:Rs,[mn.MapItem]:Ss,[mn.NoData]:fs,[mn.OdiLogo]:Ts},Ms={[hn.Labeled]:ys},Bs=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=Qi(),{setActiveNodeType:s,setActiveNodeId:l}=jt();return ct.createElement(Fs,null,ct.createElement(zt,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Ls,edges:t,edgeTypes:Ms,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},ct.createElement(Ps,null,ct.createElement(Rt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},js=Et.div`
|
|
783
783
|
position: relative;
|
|
784
|
-
`,Us=({defaultLanguage:e=Zt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=Xo(),{formData:i,handleFormChange:a,resetFormData:r}=
|
|
784
|
+
`,Us=({defaultLanguage:e=Zt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=Xo(),{formData:i,handleFormChange:a,resetFormData:r}=Ji({language:e,version:t}),[s,l]=mt(!1),d=()=>{l(!1),r()};return ct.createElement(js,null,ct.createElement(gr,{tooltip:Mo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},ct.createElement(Qe,null)),ct.createElement(kc,{flipX:!0,clientX:36,isOpen:s,onClose:d,onSave:()=>{!i.version||ko(i.version)?(n(i),d()):o({type:rn.Warning,message:Lo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),d()},title:Mo.OVERRIDE_RUNTIME_DETAILS,warning:Mo.OVERRIDE_RUNTIME_WARNING},ct.createElement(pd,{title:Mo.LANGUAGE,options:Ro,value:Ro.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),ct.createElement(td,{title:Mo.RUNTIME_VERSION,placeholder:Mo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Ws=Et(ba)`
|
|
785
785
|
width: 100%;
|
|
786
786
|
justify-content: center;
|
|
787
|
-
`,Vs=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=ui.useTheme(),d=i?rn.Success:a?rn.Info:rn.Warning,c=i?sn.INSTRUMENTED:a?sn.NOT_INSTRUMENTED:sn.INSTRUMENTING;return ct.createElement(Rr,{title:e,subTitle:`${t?zo[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:
|
|
787
|
+
`,Vs=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=ui.useTheme(),d=i?rn.Success:a?rn.Info:rn.Warning,c=i?sn.INSTRUMENTED:a?sn.NOT_INSTRUMENTED:sn.INSTRUMENTING;return ct.createElement(Rr,{title:e,subTitle:`${t?zo[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:Jn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>ct.createElement(Ws,null,ct.createElement(fi,{size:12,family:"secondary",color:l.text.info},vo(a)))},renderActions:()=>ct.createElement(ct.Fragment,null,ct.createElement(pr,{status:d,title:c,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&ct.createElement(pr,{status:rn.Default,forceIcon:Ze,title:Mo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&ct.createElement(Us,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Hs=Et.tr`
|
|
788
788
|
cursor: ${({$withHover:e})=>e?"pointer":"default"};
|
|
789
789
|
opacity: ${({$faded:e})=>e?.5:1};
|
|
790
790
|
`,qs=Et.td`
|
|
@@ -808,7 +808,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
808
808
|
display: -webkit-box;
|
|
809
809
|
-webkit-line-clamp: 2;
|
|
810
810
|
-webkit-box-orient: vertical;
|
|
811
|
-
`,
|
|
811
|
+
`,Js=Et.div`
|
|
812
812
|
position: absolute;
|
|
813
813
|
top: 0;
|
|
814
814
|
left: 0;
|
|
@@ -817,7 +817,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
817
817
|
height: ${({$height:e})=>e}px;
|
|
818
818
|
border-radius: 16px;
|
|
819
819
|
background-color: ${({theme:e,$hovered:t,$status:n})=>t?n?e.text[n]+ui.opacity.hex["020"]:e.colors.majestic_blue+ui.opacity.hex["030"]:n?e.text[n]+ui.opacity.hex["010"]:e.colors.secondary+ui.opacity.hex["005"]};
|
|
820
|
-
`,
|
|
820
|
+
`,Ys=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=ta(),[d,c]=mt(!1);return ct.createElement(Hs,{ref:r,onMouseEnter:()=>!!o&&c(!0),onMouseLeave:()=>!!o&&c(!1),onClick:()=>!!o&&o(),$withHover:!!o,$faded:a},t.map(({key:t},o)=>{const a=n.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:c,withTooltip:p,icon:u,component:m}=a;return ct.createElement(qs,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?ct.createElement(Er,{icon:u}):m?ct.createElement(m,null):ct.createElement(Ia,{text:p&&r?String(r):""},ct.createElement(Gs,{$color:c},xo(r)?"-":r)),0===o&&ct.createElement(Js,{$height:s,$width:l,$top:s*e,$hovered:d,$status:i}))}))},Ks=Et.div`
|
|
821
821
|
width: 100%;
|
|
822
822
|
`,Xs=Et.table`
|
|
823
823
|
position: relative;
|
|
@@ -849,7 +849,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
849
849
|
font-size: 12px;
|
|
850
850
|
font-weight: 500;
|
|
851
851
|
text-wrap: nowrap;
|
|
852
|
-
`,nl=Et.tbody``,ol=({columns:e,rows:t})=>{const[n,o]=mt(dn.Ascending),[i,a]=mt("name"),r=ft(e=>{i===e?o(e=>e===dn.Ascending?dn.Descending:dn.Ascending):(a(e),o(dn.Ascending))},[i]),s=ut(()=>{const o=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=o(e,i),r=o(t,i);return(n===dn.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(a,r)}):t).map(({status:t,faded:n,cells:o,onClick:i},a)=>ct.createElement(
|
|
852
|
+
`,nl=Et.tbody``,ol=({columns:e,rows:t})=>{const[n,o]=mt(dn.Ascending),[i,a]=mt("name"),r=ft(e=>{i===e?o(e=>e===dn.Ascending?dn.Descending:dn.Ascending):(a(e),o(dn.Ascending))},[i]),s=ut(()=>{const o=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=o(e,i),r=o(t,i);return(n===dn.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(a,r)}):t).map(({status:t,faded:n,cells:o,onClick:i},a)=>ct.createElement(Ys,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return ct.createElement(Ks,null,ct.createElement(Xs,null,ct.createElement(Qs,null,ct.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>ct.createElement(Zs,{key:`column-${e}`},n?ct.createElement(el,{onClick:()=>r(e)},ct.createElement(et,null),ct.createElement(tl,null,t)):ct.createElement(tl,null,t))))),ct.createElement(nl,null,s)))};var il;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(il||(il={}));const al=Et.div`
|
|
853
853
|
display: flex;
|
|
854
854
|
flex-wrap: wrap;
|
|
855
855
|
gap: 16px 32px;
|
|
@@ -866,7 +866,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
866
866
|
`,ll=Et(fi)`
|
|
867
867
|
font-size: 12px;
|
|
868
868
|
white-space: pre-wrap;
|
|
869
|
-
`,dl=({data:e})=>ct.createElement(al,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>ct.createElement(rl,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[il.Code,il.Table].includes(e)?"inherit":e&&[il.Loader,il.Divider,il.CopyText].includes(e)?"100%":"unset"},ct.createElement(Ia,{text:o,withIcon:!0},ct.createElement(ba,{$alignItems:"center",$gap:4},n&&ct.createElement(n,{size:14}),!!t&&ct.createElement(sl,{transform:"capitalize"},t))),ct.createElement(cl,{type:e,value:i})))),cl=({type:e,value:t})=>{const n=ui.useTheme();switch(e){case il.Divider:return ct.createElement(sr,{length:"100%",margin:"0"});case il.Loader:return ct.createElement(ka,null,ct.createElement(Ka,{scale:1.2}));case il.Monitors:return ct.createElement(
|
|
869
|
+
`,dl=({data:e})=>ct.createElement(al,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>ct.createElement(rl,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[il.Code,il.Table].includes(e)?"inherit":e&&[il.Loader,il.Divider,il.CopyText].includes(e)?"100%":"unset"},ct.createElement(Ia,{text:o,withIcon:!0},ct.createElement(ba,{$alignItems:"center",$gap:4},n&&ct.createElement(n,{size:14}),!!t&&ct.createElement(sl,{transform:"capitalize"},t))),ct.createElement(cl,{type:e,value:i})))),cl=({type:e,value:t})=>{const n=ui.useTheme();switch(e){case il.Divider:return ct.createElement(sr,{length:"100%",margin:"0"});case il.Loader:return ct.createElement(ka,null,ct.createElement(Ka,{scale:1.2}));case il.Monitors:return ct.createElement(Nr,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case il.Badge:{const{label:e,filled:n,...o}=mo(t,{label:"-",filled:!1});return ct.createElement(Pi,{label:e,filled:n,...o})}case il.Code:{const{language:e,code:n,...o}=mo(t,{language:"",code:""});return ct.createElement(Va,{language:e,code:n,...o})}case il.Table:{const{columns:e,rows:n,...o}=mo(t,{columns:[],rows:[{status:void 0,cells:[]}]});return ct.createElement(ol,{columns:e,rows:n,...o})}case il.ActiveStatus:return ct.createElement(pr,{status:"true"==t?rn.Success:rn.Error,title:"true"==t?Mo.ENABLED:Mo.DISABLED,size:10,withIcon:!0,withBorder:!0});case il.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return ct.createElement(fr,{value:e})}default:return ct.createElement(ll,null,No("string"==typeof t?t||"-":""))}},pl=Et.div`
|
|
870
870
|
display: flex;
|
|
871
871
|
flex-direction: column;
|
|
872
872
|
align-items: flex-start;
|
|
@@ -918,7 +918,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
918
918
|
`,bl=Et(fi)`
|
|
919
919
|
font-size: 10px;
|
|
920
920
|
color: ${({theme:e})=>e.text.grey};
|
|
921
|
-
`,wl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=ui.useTheme(),[s,l]=mt(0),d=gt(null),c=gt(null);return ht(()=>{if(d.current){const e=d.current.clientWidth,t=c.current?.clientWidth||0;l(e-(85+t))}},[]),ct.createElement($l,{ref:d,$gap:8,$withClick:!!i,onClick:i},ct.createElement(Tr,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&ct.createElement(wr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&ct.createElement(bl,null,"•"),t&&ct.createElement(wr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),ct.createElement(yl,{ref:c},a&&ct.createElement(ct.Fragment,null,ct.createElement(sr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},kl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===tn.Source?"uninstrument":"delete";return ct.createElement(
|
|
921
|
+
`,wl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=ui.useTheme(),[s,l]=mt(0),d=gt(null),c=gt(null);return ht(()=>{if(d.current){const e=d.current.clientWidth,t=c.current?.clientWidth||0;l(e-(85+t))}},[]),ct.createElement($l,{ref:d,$gap:8,$withClick:!!i,onClick:i},ct.createElement(Tr,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&ct.createElement(wr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&ct.createElement(bl,null,"•"),t&&ct.createElement(wr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),ct.createElement(yl,{ref:c},a&&ct.createElement(ct.Fragment,null,ct.createElement(sr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},kl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===tn.Source?"uninstrument":"delete";return ct.createElement(cp,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:rn.Warning,title:`You're about to ${s} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},vl=Et(ji)`
|
|
922
922
|
display: flex;
|
|
923
923
|
align-items: center;
|
|
924
924
|
justify-content: center;
|
|
@@ -939,13 +939,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
939
939
|
`,Tl=({tabs:e,hideBorder:t=!1})=>e?.length?ct.createElement(Sl,{$hideBorder:t},e.map(({label:e,icon:t,onClick:n,selected:o})=>ct.createElement(Cl,{key:`tab-${e}`,onClick:n,$selected:o},e,t&&ct.createElement(t,null)))):null,Al=Et.section`
|
|
940
940
|
padding: 0px 32px;
|
|
941
941
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
942
|
-
`,
|
|
942
|
+
`,Nl=Et.div`
|
|
943
943
|
height: 76px;
|
|
944
944
|
display: flex;
|
|
945
945
|
justify-content: space-between;
|
|
946
946
|
flex-shrink: 0;
|
|
947
947
|
align-self: stretch;
|
|
948
|
-
`,
|
|
948
|
+
`,Dl=Et.div`
|
|
949
949
|
display: flex;
|
|
950
950
|
align-items: center;
|
|
951
951
|
gap: ${({$gap:e})=>e||16}px;
|
|
@@ -958,7 +958,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
958
958
|
text-overflow: ellipsis;
|
|
959
959
|
`,Ol=Et(ji)`
|
|
960
960
|
gap: 8px;
|
|
961
|
-
`,_l=Et(ji)``,zl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:d})=>ct.createElement(Al,null,ct.createElement(
|
|
961
|
+
`,_l=Et(ji)``,zl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:d})=>ct.createElement(Al,null,ct.createElement(Nl,null,ct.createElement(Dl,null,n?.length||o?.length?ct.createElement(Tr,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?ct.createElement(r,null):r||null)||ct.createElement(Ia,{text:a||i,withIcon:!!a},i&&ct.createElement(Il,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),ct.createElement(Dl,{$gap:2},s,l.map((e,t)=>ct.createElement(Ol,{key:`header-action-button-${t}`,...e})),ct.createElement(_l,{"data-id":"drawer-close",variant:"secondary",onClick:e},ct.createElement(nt,{size:12})))),ct.createElement(Tl,{tabs:d,hideBorder:!0})),Rl=Et.div`
|
|
962
962
|
display: flex;
|
|
963
963
|
justify-content: space-between;
|
|
964
964
|
gap: 8px;
|
|
@@ -1011,7 +1011,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1011
1011
|
font-size: 12px;
|
|
1012
1012
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
1013
1013
|
opacity: 0.8;
|
|
1014
|
-
`,
|
|
1014
|
+
`,Jl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?ct.createElement(Hl,{style:o},ct.createElement(Ia,{text:n,withIcon:!0},ct.createElement(ql,{$status:i},e),!t&&ct.createElement(Gl,null,"(optional)"))):null,Yl=Et.div`
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
flex-direction: column;
|
|
1017
1017
|
position: relative;
|
|
@@ -1092,7 +1092,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1092
1092
|
background-color: ${({theme:e})=>e.colors.border};
|
|
1093
1093
|
cursor: not-allowed;
|
|
1094
1094
|
}
|
|
1095
|
-
`,td=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:d,type:c=an.Text,name:p,status:u,...m})=>{const h=ui.useTheme(),g=c===an.Password,[x,f]=mt(!1);return ct.createElement(
|
|
1095
|
+
`,td=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:d,type:c=an.Text,name:p,status:u,...m})=>{const h=ui.useTheme(),g=c===an.Password,[x,f]=mt(!1);return ct.createElement(Yl,null,ct.createElement(Jl,{title:a,required:s,tooltip:r,status:u}),ct.createElement(Kl,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?ct.createElement(Zl,{onClick:()=>f(e=>!e)},x?ct.createElement(ot,{size:14,fill:h.text.grey}):ct.createElement(it,{size:14,fill:h.text.grey})):e?ct.createElement(Ql,null,ct.createElement(e,{size:14,fill:h.text.grey})):null,ct.createElement(Xl,{"data-id":p,type:x||c===an.Number?an.Text:c,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),c===an.Number&&(e.target.value=To(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&ct.createElement(ed,{onClick:n,disabled:m.disabled},t)),!!i&&ct.createElement(bi,null,i))},nd=Et.div`
|
|
1096
1096
|
display: flex;
|
|
1097
1097
|
flex-direction: column;
|
|
1098
1098
|
align-items: center;
|
|
@@ -1146,7 +1146,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1146
1146
|
display: flex;
|
|
1147
1147
|
align-items: center;
|
|
1148
1148
|
gap: 4px;
|
|
1149
|
-
`,pd=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:d=!1,required:c=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=mt(!1),[x,f]=mt(!1),$=gt(null);da($,()=>g(!1));const y=()=>{(()=>{if($.current){const e=$.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},b=Array.isArray(t)?t.length:0;return ct.createElement(sd,{$disabled:s},ct.createElement(
|
|
1149
|
+
`,pd=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:d=!1,required:c=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=mt(!1),[x,f]=mt(!1),$=gt(null);da($,()=>g(!1));const y=()=>{(()=>{if($.current){const e=$.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},b=Array.isArray(t)?t.length:0;return ct.createElement(sd,{$disabled:s},ct.createElement(Jl,{title:i,required:c,tooltip:a,status:m}),ct.createElement(ld,{ref:$},ct.createElement(dd,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&y()},ct.createElement(gd,{value:t,placeholder:r,onDeselect:o}),ct.createElement(cd,null,l&&ct.createElement(Pi,{label:b,filled:!!b}),ct.createElement(Qa,{extend:h}))),h&&ct.createElement($d,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||y()},onDeselect:e=>{o?.(e),l||y()},isMulti:l,showSearch:d})),!!p&&ct.createElement(bi,null,p))},ud=Et(cd)`
|
|
1150
1150
|
max-width: calc(100% - 50px);
|
|
1151
1151
|
overflow-x: auto;
|
|
1152
1152
|
`,md=Et(fi)`
|
|
@@ -1225,7 +1225,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1225
1225
|
flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
|
|
1226
1226
|
align-items: center;
|
|
1227
1227
|
justify-content: center;
|
|
1228
|
-
`,
|
|
1228
|
+
`,Nd=Et.div`
|
|
1229
1229
|
width: 32px;
|
|
1230
1230
|
height: 32px;
|
|
1231
1231
|
|
|
@@ -1238,7 +1238,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1238
1238
|
justify-content: center;
|
|
1239
1239
|
|
|
1240
1240
|
cursor: pointer;
|
|
1241
|
-
`,
|
|
1241
|
+
`,Dd=({orientation:e="vertical",flip:t,mainIcons:n,subIcons:o})=>ct.createElement(Ad,{$orientation:e,$flip:t},n.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>ct.createElement(Ia,{key:`main-nav-icon-${i}`,text:o},ct.createElement(Nd,{$selected:t,onClick:n},ct.createElement(e,{size:20})))),!!n.length&&!!o.length&&ct.createElement(sr,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),o.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>ct.createElement(Ia,{key:`sub-nav-icon-${i}`,text:o},ct.createElement(Nd,{$selected:t,onClick:n},ct.createElement(e,{size:20}))))),Id=Et.div`
|
|
1242
1242
|
display: flex;
|
|
1243
1243
|
flex-direction: column;
|
|
1244
1244
|
width: 100%;
|
|
@@ -1253,7 +1253,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1253
1253
|
`,zd=Et(gr)`
|
|
1254
1254
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1255
1255
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1256
|
-
`,Rd=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=mt(t||e);ht(()=>{s.length||l([""])},[]);const d=s.filter(e=>!!e.trim()),c=gt(JSON.stringify(d));ht(()=>{const e=JSON.stringify(d);c.current!==e&&(c.current=e,n&&n(d))},[d,n]);const p=(e,t)=>{l(n=>{const o=[...n];return o[t]=e,o})},u=s.length<=1,m=s.some(e=>""===e.trim()),h=u&&m;return ct.createElement(Id,null,ct.createElement(
|
|
1256
|
+
`,Rd=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=mt(t||e);ht(()=>{s.length||l([""])},[]);const d=s.filter(e=>!!e.trim()),c=gt(JSON.stringify(d));ht(()=>{const e=JSON.stringify(d);c.current!==e&&(c.current=e,n&&n(d))},[d,n]);const p=(e,t)=>{l(n=>{const o=[...n];return o[t]=e,o})},u=s.length<=1,m=s.some(e=>""===e.trim()),h=u&&m;return ct.createElement(Id,null,ct.createElement(Jl,{title:o,required:a,tooltip:i}),ct.createElement(Od,null,s.map((e,t)=>{const n=t===s.length-1;return ct.createElement(_d,{key:`input-list-${t}`},ct.createElement(td,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:xo(e)&&!u&&n}),t===s.length-1&&ct.createElement(zd,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},ct.createElement(Ke,null)),ct.createElement(zd,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},ct.createElement(lt,null)))})),!!r&&ct.createElement(bi,null,r))},Fd=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:d,title:c,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:f}=e,$=n[d];return f&&!f(n)?null:ct.createElement("td",{key:`input-table-${o}-${d}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===on.Dropdown){const e=x?.find(e=>e.id===$);return ct.createElement(pd,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(d,e.id,o),onDeselect:()=>r(d,"",o),hasError:!!s&&(!m||m&&xo($))})}{const e=i>1&&o===i-1&&0===t&&xo($);return ct.createElement(td,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:$,onChange:({target:{value:e}})=>r(d,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&xo($))})}})())},Pd=Et.div`
|
|
1257
1257
|
display: flex;
|
|
1258
1258
|
flex-direction: column;
|
|
1259
1259
|
width: 100%;
|
|
@@ -1263,7 +1263,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1263
1263
|
border: none;
|
|
1264
1264
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1265
1265
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
1266
|
-
`,Md=({columns:e,initialValues:t=[],value:n,onChange:o,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=mt({}),[d,c]=mt(n||t),p=ut(()=>new Map(e.map(e=>[e.keyName,e])),[e]);ht(()=>{if(!d.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),c([t])}},[]);const u=d.filter(e=>{for(const[t,n]of Object.entries(e)){const o=p.get(t);if((!o?.renderCondition||o.renderCondition(e))&&o?.required&&xo(n))return!1}return!0}),m=gt(JSON.stringify(u)),h=u.length!==d.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;ht(()=>{const e=JSON.stringify(u);m.current!==e&&(m.current=e,o&&o(u))},[u,o]);const x=(e,t,n)=>{c(o=>{const i=Pn(o);return i[n][e]=t,i})},f=ut(()=>{if(a){const t=[];for(let n=0;;n+=a){const o=e.slice(n,n+a);if(!o.length)break;t.push(o)}return t}return[e]},[a,e]);return ct.createElement(Pd,null,ct.createElement(
|
|
1266
|
+
`,Md=({columns:e,initialValues:t=[],value:n,onChange:o,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=mt({}),[d,c]=mt(n||t),p=ut(()=>new Map(e.map(e=>[e.keyName,e])),[e]);ht(()=>{if(!d.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),c([t])}},[]);const u=d.filter(e=>{for(const[t,n]of Object.entries(e)){const o=p.get(t);if((!o?.renderCondition||o.renderCondition(e))&&o?.required&&xo(n))return!1}return!0}),m=gt(JSON.stringify(u)),h=u.length!==d.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;ht(()=>{const e=JSON.stringify(u);m.current!==e&&(m.current=e,o&&o(u))},[u,o]);const x=(e,t,n)=>{c(o=>{const i=Pn(o);return i[n][e]=t,i})},f=ut(()=>{if(a){const t=[];for(let n=0;;n+=a){const o=e.slice(n,n+a);if(!o.length)break;t.push(o)}return t}return[e]},[a,e]);return ct.createElement(Pd,null,ct.createElement(Jl,{title:r}),ct.createElement("table",{style:{borderCollapse:"collapse"}},!a&&ct.createElement("thead",null,ct.createElement("tr",null,e.map(({title:e,tooltip:t,required:n})=>ct.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:g}},ct.createElement(Jl,{title:e,required:n,tooltip:t}))),ct.createElement("th",null))),ct.createElement("tbody",null,d.map((t,n)=>ct.createElement(pt,{key:`input-table-row-${n}`},a&&n>0?ct.createElement("tr",null,ct.createElement("td",{colSpan:f.length},ct.createElement(sr,null))):null,f.map((o,r)=>ct.createElement("tr",{key:`input-table-matrix-${n}-${r}`},o.map((e,o)=>ct.createElement(Fd,{key:`input-table-row-${n}-col-${o}`,col:e,colIdx:o,row:t,rowIdx:n,rowsLength:d.length,maxWidth:g,limitFieldsPerRow:a,errorMessage:i,handleChange:x})),0===r&&ct.createElement("td",null,ct.createElement(Ld,{$marginTop:a?"24px":"0",onClick:()=>{return t=n,void(d.length>1?c(e=>e.filter((e,n)=>n!==t)):e.forEach(({keyName:e,type:n})=>x(e,n===an.Number?"0":"",t)));var t}},ct.createElement(lt,null))))))))),!!i&&ct.createElement(bi,null,i),ct.createElement(ur,{onClick:()=>{c(e=>{const t=Pn(e);return t.push(Pn(s)),t})},disabled:h}))},Bd=Et.div`
|
|
1267
1267
|
display: flex;
|
|
1268
1268
|
flex-direction: column;
|
|
1269
1269
|
width: 100%;
|
|
@@ -1281,7 +1281,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1281
1281
|
`,Vd=Et(gr)`
|
|
1282
1282
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1283
1283
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1284
|
-
`,Hd={key:"",value:""},qd=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:d="Value",inputMaxWidth:c=300})=>{const[p,u]=mt(t||e);ht(()=>{p.length||u([{...Hd}])},[]);const m=p.filter(({key:e,value:t})=>!xo(e.trim())&&!xo(t.trim())),h=gt(JSON.stringify(m));ht(()=>{const e=JSON.stringify(m);h.current!==e&&(h.current=e,n&&n(m))},[m,n]);const g=(e,t,n)=>{u(o=>{const i=[...o];return i[n][e]=t,i})},x=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),$=a||x&&f;return ct.createElement(Bd,null,ct.createElement(
|
|
1284
|
+
`,Hd={key:"",value:""},qd=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:d="Value",inputMaxWidth:c=300})=>{const[p,u]=mt(t||e);ht(()=>{p.length||u([{...Hd}])},[]);const m=p.filter(({key:e,value:t})=>!xo(e.trim())&&!xo(t.trim())),h=gt(JSON.stringify(m));ht(()=>{const e=JSON.stringify(m);h.current!==e&&(h.current=e,n&&n(m))},[m,n]);const g=(e,t,n)=>{u(o=>{const i=[...o];return i[n][e]=t,i})},x=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),$=a||x&&f;return ct.createElement(Bd,null,ct.createElement(Jl,{title:o,required:r,tooltip:i}),ct.createElement(jd,null,p.map(({key:e,value:t},n)=>ct.createElement(Ud,{key:`key-value-input-list-${n}`},ct.createElement(Wd,{$maxWidth:c},ct.createElement(td,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:xo(t)&&!x&&n===p.length-1})),ct.createElement(Wd,{$maxWidth:n===p.length-1?c-38:c},ct.createElement(td,{placeholder:d,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&xo(t)),autoFocus:!1})),n===p.length-1&&ct.createElement(Vd,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Hd}),t})}},ct.createElement(Ke,null)),ct.createElement(Vd,{size:30,$disabled:$,onClick:$?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,n)=>n!==e))})(n)},ct.createElement(lt,null))))),!!s&&ct.createElement(bi,null,s))},Gd=Ct`
|
|
1285
|
+
0% {
|
|
1286
|
+
background-position: 0% 50%;
|
|
1287
|
+
}
|
|
1288
|
+
100% {
|
|
1289
|
+
background-position: 100% 50%;
|
|
1290
|
+
}
|
|
1291
|
+
`,Jd=Et(fi)`
|
|
1292
|
+
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1293
|
+
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1294
|
+
background-clip: text;
|
|
1295
|
+
color: transparent;
|
|
1296
|
+
animation: ${Gd} 1s reverse linear infinite;
|
|
1297
|
+
`,Yd=({children:e="Loading...",textColor:t,stripColor:n,...o})=>{const i=ui.useTheme(),a=t||i.text.secondary,r=n||i.colors.primary;return ct.createElement(Jd,{$textColor:a,$stripColor:r,...o},e)},Kd=Et.div`
|
|
1285
1298
|
position: fixed;
|
|
1286
1299
|
top: 50%;
|
|
1287
1300
|
left: 50%;
|
|
@@ -1292,26 +1305,26 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1292
1305
|
border: ${({theme:e})=>`1px solid ${e.colors.border}`};
|
|
1293
1306
|
border-radius: 40px;
|
|
1294
1307
|
box-shadow: ${({theme:e})=>{const t=e.colors.primary+ui.opacity.hex["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
|
|
1295
|
-
`,
|
|
1308
|
+
`,Xd=Et.div`
|
|
1296
1309
|
display: flex;
|
|
1297
1310
|
justify-content: space-between;
|
|
1298
1311
|
align-items: center;
|
|
1299
1312
|
height: 80px;
|
|
1300
1313
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
1301
1314
|
padding: 0 24px;
|
|
1302
|
-
`,
|
|
1315
|
+
`,Qd=Et.div`
|
|
1303
1316
|
cursor: pointer;
|
|
1304
1317
|
display: flex;
|
|
1305
1318
|
align-items: center;
|
|
1306
1319
|
gap: 8px;
|
|
1307
|
-
`,
|
|
1320
|
+
`,Zd=Et.div`
|
|
1308
1321
|
display: flex;
|
|
1309
1322
|
align-items: center;
|
|
1310
1323
|
gap: 8px;
|
|
1311
|
-
`,
|
|
1324
|
+
`,ec=Et(ka)`
|
|
1312
1325
|
min-width: 350px;
|
|
1313
1326
|
min-height: 150px;
|
|
1314
|
-
`,
|
|
1327
|
+
`,tc=Et.div`
|
|
1315
1328
|
position: absolute;
|
|
1316
1329
|
left: 50%;
|
|
1317
1330
|
transform: translateX(-50%);
|
|
@@ -1320,18 +1333,18 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1320
1333
|
justify-content: center;
|
|
1321
1334
|
width: 100%;
|
|
1322
1335
|
pointer-events: none;
|
|
1323
|
-
`,
|
|
1336
|
+
`,nc=Et(fi)`
|
|
1324
1337
|
text-transform: uppercase;
|
|
1325
1338
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1326
1339
|
pointer-events: auto;
|
|
1327
|
-
`,
|
|
1340
|
+
`,oc=Et(fi)`
|
|
1328
1341
|
text-transform: uppercase;
|
|
1329
1342
|
font-weight: 500;
|
|
1330
1343
|
font-size: 14px;
|
|
1331
1344
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1332
1345
|
text-decoration: underline;
|
|
1333
1346
|
cursor: pointer;
|
|
1334
|
-
`,
|
|
1347
|
+
`,ic=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{la({key:"Escape",active:e&&r},()=>i()),Xi(e);const s=ya({container:Kd,animateIn:ui.animations.slide.in.center,animateOut:ui.animations.slide.out.center});return e?Ft.createPortal(ct.createElement(ct.Fragment,null,ct.createElement(Ea,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),ct.createElement(s,{"data-id":"modal"+(n?`-${n.title.replaceAll(" ","-")}`:""),enter:e},n&&ct.createElement(Xd,null,ct.createElement(Qd,{onClick:i},ct.createElement(nt,null),ct.createElement(oc,null,"Cancel")),ct.createElement(tc,null,ct.createElement(nc,null,n.title)),ct.createElement(Zd,null,o)),ct.createElement(ec,null,a))),document.body):null},ac=Et.div`
|
|
1335
1348
|
display: flex;
|
|
1336
1349
|
flex-direction: ${({$isVertical:e})=>e?"column":"row"};
|
|
1337
1350
|
gap: ${({$isVertical:e})=>e?"12px":"24px"};
|
|
@@ -1340,17 +1353,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1340
1353
|
border-radius: 32px;
|
|
1341
1354
|
padding: 8px;
|
|
1342
1355
|
`}
|
|
1343
|
-
`,
|
|
1356
|
+
`,rc=(e,t)=>!t?.length||!!t?.find(t=>t===e),sc=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=mt(1===a.length),d=gt(JSON.stringify(a));return ht(()=>{const e=a;e.length||On.forEach(({id:t})=>{rc(t,i)&&e.push(t)});const t=JSON.stringify(e);return d.current!==t&&(d.current=t,r(e),l(1===e.length)),()=>{d.current=""}},[i]),ct.createElement("div",null,t&&ct.createElement(Jl,{title:t,required:n}),ct.createElement(ac,{$isVertical:e,$hasError:!!o},On.map(e=>{const t=rc(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?ct.createElement(za,{key:e.id,title:e.value,disabled:!t||s&&n,value:n,onChange:t=>((e,t)=>{const n=e,o=t?[...a,n]:a.filter(e=>e!==n);r(o),l(1===o.length)})(e.id,t)}):null})),!!o&&ct.createElement(bi,null,o))},lc=Et.div`
|
|
1344
1357
|
display: flex;
|
|
1345
1358
|
gap: 8px;
|
|
1346
1359
|
align-items: center;
|
|
1347
|
-
`,
|
|
1360
|
+
`,dc=Et(ji)`
|
|
1348
1361
|
display: flex;
|
|
1349
1362
|
align-items: center;
|
|
1350
1363
|
justify-content: center;
|
|
1351
1364
|
gap: 8px;
|
|
1352
1365
|
min-width: 90px;
|
|
1353
|
-
`,
|
|
1366
|
+
`,cc=({buttons:e})=>{const t=ui.useTheme(),n=({button:t,index:n})=>e.length>1&&0===n&&(t.icon||t.iconSrc),o=({button:e,rotate:n})=>e.icon?ct.createElement(e.icon,{size:14,rotate:n,fill:t.text[e.variant||"secondary"]}):e.iconSrc?ct.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return ct.createElement(lc,null,e.map((e,t)=>ct.createElement(Ia,{key:t,text:e.tooltip||""},ct.createElement(dc,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},n({button:e,index:t})&&o({button:e,rotate:0}),e.label,!n({button:e,index:t})&&o({button:e,rotate:180})))))},pc=Et.div`
|
|
1354
1367
|
position: relative;
|
|
1355
1368
|
&.animated {
|
|
1356
1369
|
overflow: hidden;
|
|
@@ -1358,7 +1371,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1358
1371
|
border-radius: 32px;
|
|
1359
1372
|
animation: ${({$isLeaving:e})=>e?ui.animations.slide.out.bottom:ui.animations.slide.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1360
1373
|
}
|
|
1361
|
-
`,
|
|
1374
|
+
`,uc=Et.div`
|
|
1362
1375
|
position: absolute;
|
|
1363
1376
|
bottom: -1px;
|
|
1364
1377
|
left: 0;
|
|
@@ -1368,7 +1381,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1368
1381
|
border-radius: 32px;
|
|
1369
1382
|
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1370
1383
|
animation: ${ui.animations.progress.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1371
|
-
`,
|
|
1384
|
+
`,mc=Et.div`
|
|
1372
1385
|
display: flex;
|
|
1373
1386
|
align-items: center;
|
|
1374
1387
|
flex: 1;
|
|
@@ -1376,20 +1389,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1376
1389
|
padding: 0 12px;
|
|
1377
1390
|
border-radius: 32px;
|
|
1378
1391
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1379
|
-
`,
|
|
1392
|
+
`,hc=Et.div`
|
|
1380
1393
|
display: flex;
|
|
1381
1394
|
align-items: center;
|
|
1382
1395
|
margin: 0 auto 0 0;
|
|
1383
1396
|
padding: 8px 0;
|
|
1384
1397
|
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
1385
1398
|
min-height: 12px;
|
|
1386
|
-
`,
|
|
1399
|
+
`,gc=Et(fi)`
|
|
1387
1400
|
font-size: 14px;
|
|
1388
1401
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1389
|
-
`,
|
|
1402
|
+
`,xc=Et(fi)`
|
|
1390
1403
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1391
1404
|
font-size: 12px;
|
|
1392
|
-
`,
|
|
1405
|
+
`,fc=Et(ba)``,$c=Et(fi)`
|
|
1393
1406
|
text-transform: uppercase;
|
|
1394
1407
|
text-decoration: underline;
|
|
1395
1408
|
font-size: 12px;
|
|
@@ -1400,32 +1413,32 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1400
1413
|
transform: scale(1.1);
|
|
1401
1414
|
transition: transform 0.3s;
|
|
1402
1415
|
}
|
|
1403
|
-
`,
|
|
1416
|
+
`,yc=({type:e,icon:t,title:n,message:o,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const d=ui.useTheme(),[c,p]=mt(!1),u=gt(null),m=gt(null),h=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};ht(()=>(u.current=setTimeout(()=>h({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||lo(e,d);return ct.createElement(pc,{className:a?"animated":"",$duration:r,$isLeaving:c,onMouseEnter:()=>{u.current&&clearTimeout(u.current),m.current&&(m.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(m.current){const e=m.current.offsetWidth/m.current.parentElement.offsetWidth*r;u.current=setTimeout(()=>h({asSeen:!1}),e),m.current.style.animationPlayState="running"}}},ct.createElement(mc,{"data-id":"toast",$type:e,style:l},ct.createElement(g,{fill:d.text[e]}),ct.createElement(hc,{$withAction:!!i,$overrideMaxWidth:s},n&&ct.createElement(gc,{$type:e},n),n&&o&&ct.createElement(sr,{orientation:"vertical",type:e}),o&&ct.createElement(xc,{$type:e},o)),(!!i||!!a)&&ct.createElement(fc,null,i&&ct.createElement($c,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&ct.createElement(gr,{"data-id":"toast-close",onClick:()=>h({asSeen:!0})},ct.createElement(nt,{size:12})))),a&&ct.createElement(uc,{ref:m,$duration:r,$type:e}))},bc=Et(wa)`
|
|
1404
1417
|
gap: 12px;
|
|
1405
|
-
|
|
1418
|
+
`,wc=Et(ba)`
|
|
1406
1419
|
width: 100%;
|
|
1407
1420
|
gap: 12px;
|
|
1408
1421
|
align-items: flex-end;
|
|
1409
|
-
`,
|
|
1422
|
+
`,kc=({clientX:e=0,flipX:t,clientY:n=0,flipY:o,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:d,titleTooltip:c,warning:p,children:u})=>{const m=ui.useTheme(),{popupRef:h,popupPosition:g,handlePosition:x}=ca({onClickOutside:a});return la({key:"Enter",active:i},r),ht(()=>x(e,n),[e,n]),0===g.top&&0!==n||0===g.left&&0!==e?null:ct.createElement(Gi,{ref:h,isOpen:i,top:o?void 0:g.top,bottom:o?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},ct.createElement(bc,null,ct.createElement(Ia,{text:c,withIcon:!0},ct.createElement(fi,{size:14},d)),ct.createElement(wc,null,u,ct.createElement(ba,{$gap:6},ct.createElement(gr,{withBorder:!0,onClick:a,tooltip:"Cancel"},ct.createElement(rt,null)),ct.createElement(gr,{withBorder:!0,backgroundColor:m.colors.secondary,onClick:r,tooltip:"Save"},ct.createElement(qe,{fill:m.text.primary})),s&&ct.createElement(gr,{onClick:l,tooltip:"Undo"},ct.createElement(lt,null)))),p&&ct.createElement(yc,{type:rn.Warning,message:p})))},vc=Et.div`
|
|
1410
1423
|
display: flex;
|
|
1411
1424
|
justify-content: space-between;
|
|
1412
1425
|
align-items: center;
|
|
1413
1426
|
gap: 16px;
|
|
1414
|
-
`,
|
|
1427
|
+
`,Ec=Et.div`
|
|
1415
1428
|
display: flex;
|
|
1416
1429
|
flex-direction: column;
|
|
1417
1430
|
gap: 4px;
|
|
1418
|
-
`,
|
|
1431
|
+
`,Sc=Et.div`
|
|
1419
1432
|
display: flex;
|
|
1420
1433
|
align-items: center;
|
|
1421
1434
|
gap: 8px;
|
|
1422
|
-
`,
|
|
1435
|
+
`,Cc=Et(fi)``,Tc=Et(fi)``,Ac=({title:e,description:t,badgeLabel:n,icon:o,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return ct.createElement(vc,null,ct.createElement(Ec,null,ct.createElement(Sc,null,o&&ct.createElement(o,{size:r}),ct.createElement(Cc,{weight:300,size:r},e),void 0!==n&&ct.createElement(Pi,{label:n,filled:!!n})),ct.createElement(Tc,{weight:200,opacity:.8,size:s},t)),i&&ct.createElement("div",null,i))},Nc=Et.div`
|
|
1423
1436
|
position: relative;
|
|
1424
1437
|
gap: 0;
|
|
1425
1438
|
z-index: 0;
|
|
1426
1439
|
display: grid;
|
|
1427
1440
|
grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
|
|
1428
|
-
`,
|
|
1441
|
+
`,Dc=Et.button`
|
|
1429
1442
|
flex: 1;
|
|
1430
1443
|
display: flex;
|
|
1431
1444
|
align-items: center;
|
|
@@ -1439,7 +1452,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1439
1452
|
&:hover {
|
|
1440
1453
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1441
1454
|
}
|
|
1442
|
-
`,
|
|
1455
|
+
`,Ic=Et.div`
|
|
1443
1456
|
position: absolute;
|
|
1444
1457
|
top: ${({$y:e})=>e}px;
|
|
1445
1458
|
left: ${({$x:e})=>e}px;
|
|
@@ -1449,7 +1462,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1449
1462
|
background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1450
1463
|
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1451
1464
|
transition: all 0.3s;
|
|
1452
|
-
`,
|
|
1465
|
+
`,Oc=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=mt(e[o]?.selectedBgColor||""),[r,s]=mt({width:0,height:0}),[l,d]=mt({x:0,y:0}),c=gt(null);return ht(()=>{c.current&&(s({width:c.current.offsetWidth,height:c.current.offsetHeight}),d({x:c.current.offsetWidth*o,y:0}))},[t,o]),ct.createElement(Nc,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},d)=>{const p=t===r;return ct.createElement(Dc,{key:`segment-${i||d}-${r}`,ref:p?c:void 0,$isFirstItem:0===d,$isLastItem:d===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&ct.createElement(o,null),i&&ct.createElement(fi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),ct.createElement(Ic,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},_c=Et(ji)`
|
|
1453
1466
|
gap: 8px;
|
|
1454
1467
|
text-transform: none;
|
|
1455
1468
|
text-decoration: none;
|
|
@@ -1463,45 +1476,45 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1463
1476
|
&.selected {
|
|
1464
1477
|
background-color: ${({theme:e})=>e.colors.majestic_blue+ui.opacity.hex["030"]};
|
|
1465
1478
|
}
|
|
1466
|
-
`,
|
|
1479
|
+
`,zc=Et(fi)`
|
|
1467
1480
|
white-space: nowrap;
|
|
1468
1481
|
overflow: hidden;
|
|
1469
1482
|
text-overflow: ellipsis;
|
|
1470
1483
|
font-size: 14px;
|
|
1471
|
-
`,
|
|
1484
|
+
`,Rc=({label:e,onClick:t,icon:n,iconSrc:o,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:d,style:c})=>{const p=ui.useTheme();return ct.createElement(_c,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:d,style:c},n&&ct.createElement("div",null,ct.createElement(n,{fill:p.text.info})),o&&ct.createElement("div",null,ct.createElement("img",{src:o,alt:"",width:16,height:16})),ct.createElement(zc,null,e),r&&ct.createElement("div",null,ct.createElement(qe,{fill:p.colors.majestic_blue_soft})),void 0!==i&&ct.createElement(Pi,{label:i,filled:a||r}))};var Fc;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Fc||(Fc={}));const Pc=Et.div`
|
|
1472
1485
|
display: flex;
|
|
1473
1486
|
flex-direction: column;
|
|
1474
1487
|
gap: 32px;
|
|
1475
|
-
`,
|
|
1488
|
+
`,Lc=Et.div`
|
|
1476
1489
|
display: flex;
|
|
1477
1490
|
gap: 16px;
|
|
1478
1491
|
padding: 8px;
|
|
1479
|
-
opacity: ${({$state:e})=>e===
|
|
1492
|
+
opacity: ${({$state:e})=>e===Fc.Active?1:e===Fc.Disabled?.5:.8};
|
|
1480
1493
|
transition: all 0.3s;
|
|
1481
|
-
`,
|
|
1494
|
+
`,Mc=Et(ba)`
|
|
1482
1495
|
justify-content: center;
|
|
1483
1496
|
width: 24px;
|
|
1484
1497
|
height: 24px;
|
|
1485
1498
|
border-radius: 32px;
|
|
1486
|
-
border: ${({theme:e,$state:t})=>t===
|
|
1487
|
-
opacity: ${({$state:e})=>e===
|
|
1488
|
-
`,
|
|
1499
|
+
border: ${({theme:e,$state:t})=>t===Fc.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
|
|
1500
|
+
opacity: ${({$state:e})=>e===Fc.Finished?.8:1};
|
|
1501
|
+
`,Bc=Et(wa)`
|
|
1489
1502
|
justify-content: center;
|
|
1490
1503
|
gap: 8px;
|
|
1491
|
-
`,
|
|
1504
|
+
`,jc=Et(fi)``,Uc=Et(fi)``,Wc=({data:e,currentStep:t=0})=>{const[n,o]=mt([]);return ht(()=>{o(e.map((e,n)=>n<t-1?{...e,state:Fc.Finished,subtitle:e.subtitle||rn.Success}:n===t-1?{...e,state:Fc.Active,subtitle:""}:{...e,state:Fc.Disabled,subtitle:""}))},[t,e]),ct.createElement(Pc,null,n.map((e,t)=>ct.createElement(Lc,{key:t,$state:e.state},ct.createElement(Mc,{$state:e.state},[Fc.Active,Fc.Disabled].includes(e.state)?ct.createElement(fi,{size:12},e.stepNumber):e.state===Fc.Finished?ct.createElement(qe,{size:20}):null),ct.createElement(Bc,null,ct.createElement(jc,{family:"secondary"},e.title),e.subtitle&&ct.createElement(Uc,{size:10,weight:300},e.subtitle)))))},Vc=Et(ba)`
|
|
1492
1505
|
width: fit-content;
|
|
1493
1506
|
gap: 6px;
|
|
1494
1507
|
padding: 6px 12px;
|
|
1495
1508
|
border-radius: 360px;
|
|
1496
1509
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1497
|
-
`,
|
|
1510
|
+
`,Hc=Et(fi)`
|
|
1498
1511
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1499
|
-
`,
|
|
1512
|
+
`,qc=({type:e=rn.Info,icon:t,title:n,size:o,family:i,children:a,...r})=>ct.createElement(Vc,{$type:e},t&&ct.createElement(t,null),ct.createElement(Hc,{$type:e,size:o||12,family:i||"secondary",...r},a||n)),Gc=Et.div`
|
|
1500
1513
|
display: flex;
|
|
1501
1514
|
flex-direction: column;
|
|
1502
1515
|
position: relative;
|
|
1503
1516
|
width: 100%;
|
|
1504
|
-
`,
|
|
1517
|
+
`,Jc=Et.div`
|
|
1505
1518
|
width: 100%;
|
|
1506
1519
|
display: flex;
|
|
1507
1520
|
align-items: center;
|
|
@@ -1529,7 +1542,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1529
1542
|
&:focus-within {
|
|
1530
1543
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1531
1544
|
}
|
|
1532
|
-
`,
|
|
1545
|
+
`,Yc=Et.textarea`
|
|
1533
1546
|
flex: 1;
|
|
1534
1547
|
border: none;
|
|
1535
1548
|
outline: none;
|
|
@@ -1553,13 +1566,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1553
1566
|
background-color: ${({theme:e})=>e.colors.border};
|
|
1554
1567
|
cursor: not-allowed;
|
|
1555
1568
|
}
|
|
1556
|
-
`,
|
|
1569
|
+
`,Kc=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=gt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return ct.createElement(Gc,null,ct.createElement(Jl,{title:t,required:o,tooltip:n}),ct.createElement(Jc,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},ct.createElement(Yc,{ref:s,"data-id":a,name:a,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...r})),!!e&&ct.createElement(bi,null,e))},Xc=Et.div`
|
|
1557
1570
|
display: flex;
|
|
1558
1571
|
align-items: center;
|
|
1559
1572
|
gap: 12px;
|
|
1560
1573
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1561
1574
|
opacity: ${({$disabled:e})=>e?.6:1};
|
|
1562
|
-
`,
|
|
1575
|
+
`,Qc=Et.div`
|
|
1563
1576
|
width: 24px;
|
|
1564
1577
|
height: 12px;
|
|
1565
1578
|
border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
|
|
@@ -1581,29 +1594,29 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,Add
|
|
|
1581
1594
|
transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
|
|
1582
1595
|
transition: background-color 0.3s, transform 0.3s;
|
|
1583
1596
|
}
|
|
1584
|
-
`,
|
|
1597
|
+
`,Zc=({title:e,tooltip:t,initialValue:n=!1,onChange:o,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=mt(n);return ht(()=>l(n),[n]),ct.createElement(Xc,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),o?o(!s):l(e=>!e))}},!r&&ct.createElement(Qc,{$disabled:i,$isActive:s}),(e||t)&&ct.createElement(Ia,{text:t,withIcon:!0},e&&ct.createElement(fi,{size:14},e)),r&&ct.createElement(Qc,{$disabled:i,$isActive:s}))};var ep={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const tp=Et.div`
|
|
1585
1598
|
width: ${({$width:e})=>e}px;
|
|
1586
1599
|
height: ${({$height:e})=>e}px;
|
|
1587
1600
|
position: relative;
|
|
1588
|
-
`,
|
|
1601
|
+
`,np=({width:e=620})=>{const{darkMode:t}=ui.useTheme(),n=e/(620/220),o=e;return ct.createElement(tp,{$width:o,$height:n},ct.createElement(Bt,{autoplay:!0,loop:!0,animationData:ep,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},op=Et.div`
|
|
1589
1602
|
padding: 24px 32px;
|
|
1590
|
-
`,
|
|
1603
|
+
`,ip=Et.div`
|
|
1591
1604
|
padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
|
|
1592
|
-
`,
|
|
1605
|
+
`,ap=Et(fi)`
|
|
1593
1606
|
font-size: 20px;
|
|
1594
1607
|
line-height: 28px;
|
|
1595
|
-
`,
|
|
1608
|
+
`,rp=Et(fi)`
|
|
1596
1609
|
color: ${({theme:e})=>e.text.grey};
|
|
1597
1610
|
width: 416px;
|
|
1598
1611
|
font-style: normal;
|
|
1599
1612
|
font-weight: 300;
|
|
1600
1613
|
line-height: 24px;
|
|
1601
|
-
`,
|
|
1614
|
+
`,sp=Et.div`
|
|
1602
1615
|
display: flex;
|
|
1603
1616
|
justify-content: space-between;
|
|
1604
1617
|
gap: 12px;
|
|
1605
|
-
`,
|
|
1618
|
+
`,lp=Et(ji)`
|
|
1606
1619
|
width: 250px;
|
|
1607
|
-
`,
|
|
1620
|
+
`,dp=Et.div`
|
|
1608
1621
|
margin-bottom: 12px;
|
|
1609
|
-
`,
|
|
1622
|
+
`,cp=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{la({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return ct.createElement(ic,{isOpen:e,noOverlay:t,onClose:l},ct.createElement(op,null,ct.createElement(ap,null,n),ct.createElement(ip,{$withNote:!!i},ct.createElement(rp,null,o)),!!i&&ct.createElement(dp,null,ct.createElement(yc,{type:i.type,title:i.title,message:i.message})),ct.createElement(sp,null,ct.createElement(lp,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),ct.createElement(lp,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ia as $,Wt as A,Bo as B,za as C,Mo as D,tn as E,Jl as F,ar as G,xl as H,td as I,en as J,Ht as K,wa as L,sc as M,Ko as N,ic as O,cc as P,Sa as Q,yc as R,Oc as S,ui as T,Lo as U,zi as V,sr as W,qn as X,pr as Y,ba as Z,Eo as _,il as a,aa as a$,ln as a0,lo as a1,Jo as a2,Ln as a3,Er as a4,Zn as a5,Nr as a6,Ca as a7,Ta as a8,ls as a9,Bs as aA,Qi as aB,ca as aC,Gi as aD,Rc as aE,va as aF,Qn as aG,da as aH,vo as aI,pd as aJ,zo as aK,On as aL,ji as aM,Po as aN,pa as aO,oa as aP,Fo as aQ,gr as aR,Qa as aS,ur as aT,yr as aU,nn as aV,So as aW,Fn as aX,mo as aY,Ka as aZ,kn as a_,Xn as aa,Aa as ab,ol as ac,ka as ad,rd as ae,np as af,Pi as ag,Oo as ah,mn as ai,Vn as aj,hn as ak,Vr as al,gn as am,Dn as an,Yn as ao,po as ap,Co as aq,Kn as ar,ea as as,Vo as at,Yo as au,ta as av,Un as aw,jn as ax,Bn as ay,Mn as az,bi as b,dn as b$,ho as b0,oi as b1,_n as b2,Rr as b3,Nn as b4,Pn as b5,Wc as b6,dl as b7,no as b8,yn as b9,Vs as bA,vn as bB,Zt as bC,fa as bD,Tr as bE,Gn as bF,$o as bG,na as bH,Ji as bI,kc as bJ,pn as bK,un as bL,cn as bM,Qt as bN,Uo as bO,Hn as bP,Pa as bQ,ro as bR,wr as bS,Ut as bT,qt as bU,Gt as bV,Jt as bW,Yt as bX,Kt as bY,Xt as bZ,sn as b_,Sn as ba,bn as bb,Cn as bc,$n as bd,wn as be,fn as bf,qc as bg,Jn as bh,sa as bi,In as bj,ya as bk,ei as bl,uo as bm,$a as bn,Zi as bo,Yd as bp,$r as bq,Dd as br,co as bs,go as bt,fr as bu,jr as bv,Wr as bw,yo as bx,Ao as by,ma as bz,Vt as c,xn as c0,En as c1,zn as c2,Wn as c3,eo as c4,to as c5,oo as c6,io as c7,ao as c8,so as c9,kd as cA,Td as cB,kr as cC,_s as cD,Tl as cE,hi as cF,gi as cG,xi as cH,cp as cI,Ea as cJ,fo as ca,bo as cb,ko as cc,To as cd,No as ce,Do as cf,Io as cg,_o as ch,Ro as ci,jo as cj,jt as ck,Xi as cl,Yr as cm,Xr as cn,Zr as co,ts as cp,hs as cq,Ss as cr,fs as cs,rs as ct,Rs as cu,ys as cv,Va as cw,wl as cx,zl as cy,Bl as cz,an as d,Md as e,Zc as f,qd as g,Rd as h,xo as i,on as j,fi as k,Ac as l,El as m,Kc as n,Xo as o,Ho as p,la as q,Vl as r,kl as s,Ui as t,Zo as u,rn as v,qo as w,Ki as x,An as y,Tn as z};
|