@odigos/ui-kit 0.0.108 → 0.0.110-dev.359

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.
@@ -0,0 +1,1605 @@
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 c,PayloadCollectionIcon as d,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 S,PostgresLogo as E,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as N,AppDynamicsLogo as D,AxiomLogo as I,BlobStorageLogo as O,BetterStackLogo as _,BonreeLogo as z,CauselyLogo as R,ChecklyLogo as F,ChronosphereLogo as L,ClickhouseLogo as M,AwsCloudwatchLogo as P,CoralogixLogo as B,Dash0Logo as j,DatadogLogo as U,OpenTelemetryLogo as W,DynatraceLogo as V,ElasticApmLogo as H,ElasticSearchLogo as q,GoogleCloudPlatformLogo as J,GrafanaLogo as G,GreptimeLogo as Y,GroundcoverLogo as K,HoneycombLogo as X,HyperDxLogo as Q,InstanaLogo as Z,JaegerLogo as ee,KloudmateLogo as te,Last9Logo as ne,LightstepLogo as oe,LogzioLogo as ie,LokiLogo as ae,LumigoLogo as re,MiddlewareLogo as se,NewRelicLogo as le,ObserveLogo as ce,OdigosLogo as de,OneUptimeLogo as pe,OpenObserveLogo as ue,OpsVerseLogo as me,OracleLogo as he,PrometheusLogo as ge,QrynLogo as xe,GigapipeLogo as fe,QuickwitLogo as $e,AwsS3Logo as ye,SeqLogo as be,SignozLogo as we,SplunkLogo as ke,SumoLogicLogo as ve,TelemetryHubLogo as Se,TempoLogo as Ee,TingyunLogo as Ce,TraceloopLogo as Te,UptraceLogo as Ae,VictoriaMetricsLogo as Ne,AwsXrayLogo as De,NamespacesIcon as Ie,SourcesIcon as Oe,DestinationsIcon as _e,ActionsIcon as ze,RulesIcon as Re,LogsIcon as Fe,MetricsIcon as Le,TracesIcon as Me,VmLogo as Pe,CheckCircledIcon as Be,ErrorTriangleIcon as je,WarningTriangleIcon as Ue,InfoIcon as We,MinusIcon as Ve,CheckIcon as He,ListIcon as qe,CodeIcon as Je,ExtendArrowIcon as Ge,PlusIcon as Ye,CopyIcon as Ke,EditIcon as Xe,EditedIcon as Qe,SortArrowsIcon as Ze,NotebookIcon as et,XIcon as tt,EyeClosedIcon as nt,EyeOpenIcon as ot,NoDataIcon as it,CrossIcon as at,SearchIcon as rt,TrashIcon as st}from"../icons.js";import{create as lt}from"zustand";import ct,{Fragment as dt,useMemo as pt,useState as ut,useEffect as mt,useRef as ht,forwardRef as gt,useCallback as xt,memo as ft}from"react";import $t from"javascript-time-ago";import{p as yt,c as bt,s as wt,e as kt}from"./vendor-1dea551d.js";import vt,{ThemeProvider as St,keyframes as Et,useTheme as Ct,css as Tt}from"styled-components";import{Handle as At,Position as Nt,getSmoothStepPath as Dt,BaseEdge as It,EdgeLabelRenderer as Ot,ReactFlow as _t,Controls as zt}from"@xyflow/react";import Rt from"react-dom";import{Highlight as Ft,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Mt}from"react-error-boundary";import Pt from"lottie-react";const Bt=lt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var jt,Ut,Wt,Vt,Ht,qt,Jt,Gt,Yt,Kt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,cn,dn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn,vn,Sn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(jt||(jt={})),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"}(Ut||(Ut={})),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"}(Wt||(Wt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Vt||(Vt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Ht||(Ht={})),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"}(qt||(qt={})),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"}(Gt||(Gt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Yt||(Yt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Kt||(Kt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Xt||(Xt={})),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"}(Qt||(Qt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Zt||(Zt={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(en||(en={})),function(e){e.DataStream="DataStream"}(tn||(tn={})),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"}(nn||(nn={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(on||(on={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(an||(an={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(rn||(rn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(sn||(sn={})),function(e){e.Ascending="asc",e.Descending="desc"}(ln||(ln={})),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"}(dn||(dn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(pn||(pn={})),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"}(un||(un={})),function(e){e.Labeled="labeled"}(mn||(mn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(hn||(hn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",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"}(gn||(gn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(xn||(xn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(fn||(fn={})),function(e){e.HeaderKeys="headerKeys"}($n||($n={})),function(e){e.Probes="probes"}(yn||(yn={})),function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(bn||(bn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(wn||(wn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(kn||(kn={})),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"}(vn||(vn={})),function(e){e.K8s="k8s",e.VM="vm"}(Sn||(Sn={}));const En=e=>e.sourceType===Sn.K8s,Cn=e=>e.sourceType===Sn.VM,Tn=e=>En(e)?{namespace:e.namespace,name:e.name,kind:e.kind}:e.name,An=e=>(En(e),e.name),Nn=e=>(En(e),e.kind),Dn=s=>{const l=s?.toLowerCase(),c=l?.includes(jt.Samplers),d=l===jt.Attributes;return c?e:d?t:{[Ut.K8sAttributes]:o,[Ut.AddClusterInfo]:i,[Ut.DeleteAttributes]:a,[Ut.PiiMasking]:t,[Ut.RenameAttributes]:r,[Ut.ErrorSampler]:e,[Ut.ProbabilisticSampler]:e,[Ut.LatencySampler]:e,[Ut.ServiceNameSampler]:e,[Ut.SpanAttributeSampler]:e}[s]||n},In=[{label:"Attributes",icon:Dn(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:Dn(Ut.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Ut.AddClusterInfo,icon:Dn(Ut.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.DeleteAttributes,icon:Dn(Ut.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.RenameAttributes,icon:Dn(Ut.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.PiiMasking,icon:Dn(Ut.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:Dn(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:Dn(jt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Ut.LatencySampler,icon:Dn(jt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[wn.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:Ut.ProbabilisticSampler,icon:Dn(jt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Ut.ServiceNameSampler,icon:Dn(jt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Ut.SpanAttributeSampler,icon:Dn(jt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[wn.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."}]}],On={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."}},_n=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:c,[xn.PayloadCollection]:d,[xn.UnknownType]:n}[e]||n),zn=[{type:xn.CodeAttributes,icon:_n(xn.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:[Qt.Go,Qt.Python]},{type:xn.CustomInstrumentation,icon:_n(xn.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:[Qt.Go,Qt.Java]},{type:xn.HeadersCollection,icon:_n(xn.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:[Qt.Go,Qt.Java]},{type:xn.PayloadCollection,icon:_n(xn.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:[Qt.Go]}],Rn=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Fn=e=>e.charAt(0).toUpperCase()+e.slice(1),Ln=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 Mn;!function(e){e.SIGNALS="SIGNALS"}(Mn||(Mn={}));const Pn=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===Mn.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}},Bn=e=>JSON.parse(JSON.stringify(e)),jn=(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},Un=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Wn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Vn=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(e=>!En(e)||!!t.namespaces?.find(({id:t})=>t===e.namespace))),t.kinds?.length&&(n=n.filter(e=>{const n=(En(e),e.kind);return!!t.kinds?.find(({id:e})=>e===n)})),t.languages?.length&&(n=n.filter(e=>!!En(e)&&!!t.languages?.find(({id:t})=>!!e.containers?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(e=>!!En(e)&&!!t.conditions?.find(({id:t})=>!!e.conditions?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!En(e)&&!!e.conditions?.find(e=>e.status===an.Error))),t.errors?.length&&(n=n.filter(e=>!!En(e)&&!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Hn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Po&&!e.dataStreamNames.length):[],qn=(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?qn(e,o,n):n[o]=e}):n[a]=i:qn(i,a,n)}return n},Jn=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]}`},Gn=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`}},Yn=e=>{const t=e?.filter(({status:e})=>e===an.Error),n=e?.filter(({status:e})=>e===an.Warning),o=e?.filter(({status:e})=>e===sn.Disabled),i=e?.filter(({status:e})=>e===sn.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?an.Error:r?an.Warning:s?an.Info:void 0}},Kn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Xn=e=>({[Qt.Java]:p,[Qt.Go]:u,[Qt.JavaScript]:m,[Qt.Python]:h,[Qt.DotNet]:g,[Qt.CSharp]:x,[Qt.CPlusPlus]:f,[Qt.Php]:$,[Qt.Ruby]:y,[Qt.Rust]:b,[Qt.Swift]:w,[Qt.Elixir]:k,[Qt.MySql]:v,[Qt.Nginx]:S,[Qt.Postgres]:E,[Qt.Redis]:C,[Qt.Kafka]:T,[Qt.Ignored]:n,[Qt.Unknown]:n,[Qt.Processing]:n,[Qt.NoContainers]:n,[Qt.NoRunningPods]:n}[e]||n),Qn=e=>e?.map(({language:e})=>Xn(e))||[],Zn=(e,t)=>{const n={[gn.Alauda]:A,[gn.AlibabaCloud]:N,[gn.AppDynamics]:D,[gn.Axiom]:I,[gn.AzureBlob]:O,[gn.BetterStack]:_,[gn.Bonree]:z,[gn.Causely]:R,[gn.Checkly]:F,[gn.Chronosphere]:L,[gn.ClickHouse]:M,[gn.CloudWatch]:P,[gn.Coralogix]:B,[gn.Dash0]:j,[gn.Datadog]:U,[gn.Dynamic]:W,[gn.Dynatrace]:V,[gn.ElasticApm]:H,[gn.ElasticSearch]:q,[gn.GoogleCloud]:J,[gn.GoogleCloudOTLP]:J,[gn.GrafanaCloudLoki]:G,[gn.GrafanaCloudPrometheus]:G,[gn.GrafanaCloudTempo]:G,[gn.Greptime]:Y,[gn.Groundcover]:K,[gn.Honeycomb]:X,[gn.HyperDX]:Q,[gn.Instana]:Z,[gn.Jaeger]:ee,[gn.Kafka]:T,[gn.Kloudmate]:te,[gn.Last9]:ne,[gn.Lightstep]:oe,[gn.LogzIo]:ie,[gn.Loki]:ae,[gn.Lumigo]:re,[gn.Middleware]:se,[gn.NewRelic]:le,[gn.Observe]:ce,[gn.Odigos]:de,[gn.OneUptime]:pe,[gn.OpenObserve]:ue,[gn.Opsverse]:me,[gn.Oracle]:he,[gn.OTLP]:W,[gn.OTLPHttp]:W,[gn.Prometheus]:ge,[gn.Qryn]:xe,[gn.QrynOss]:fe,[gn.Quickwit]:$e,[gn.S3]:ye,[gn.Seq]:be,[gn.Signoz]:we,[gn.Splunk]:ke,[gn.SplunkSapm]:ke,[gn.SplunkOtlp]:ke,[gn.SumoLogic]:ve,[gn.TelemetryHub]:Se,[gn.Tempo]:Ee,[gn.Tingyun]:Ce,[gn.Traceloop]:Te,[gn.Uptrace]:Ae,[gn.VictoriaMetrics]:Ne,[gn.VictoriaMetricsCloud]:Ne,[gn.XRay]:De}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},eo=e=>({[en.Namespace]:Ie,[en.Source]:Oe,[en.Destination]:_e,[en.Action]:ze,[en.InstrumentationRule]:Re}[e]),to=e=>{if("ruleId"in e&&e.ruleId)return e.ruleId;if("id"in e&&e.id)return e.id;if("sourceType"in e&&"name"in e&&e.name){const t=e;if(En(t))return{namespace:t.namespace,name:t.name,kind:t.kind};if(Cn(t))return t.name}else{if("namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name)return{namespace:e.namespace,name:e.name,kind:e.kind};if("name"in e&&e.name)return e.name}},no=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case en.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case en.Source:const n=e;En(n)?(a=n.name,r=n.otelServiceName):Cn(n)&&(a=n.name,r=n.name);break;case en.Action:const o=e;a=o.type,r=o.name;break;case en.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case en.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},oo=(e,t)=>{if(t===en.Source){if(e.includes("=")){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e}return e},io=e=>{if(En(e)){const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Qt.Processing:Qt.NoRunningPods;const o=n?.filter(e=>e.language!==Qt.Ignored);if(!o.length)return Qt.NoContainers;const i=o.find(e=>e.language!==Qt.Unknown);return i?i.language:Qt.Unknown}return Cn(e),Qt.Unknown},ao=(e,t,n)=>(t===en.Source?e?.sources.find(e=>"string"==typeof n?e.name===n:e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},ro=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Me}[e]),so=e=>e?{[Kt.K8s]:o,[Kt.Vm]:Pe}[e]:de,lo=e=>e?{[Kt.K8s]:"Kubernetes Cluster",[Kt.Vm]:"Virtual Machine"}[e]:"Unknown",co=(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(...co(e,t,n)),i}):[]},po=(e,t)=>{if(t===en.Source){if("string"==typeof e)return e;{let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1)}}return e},uo=(e,t)=>({[an.Success]:n=>Be({fill:t.text[e],...n}),[an.Error]:n=>je({fill:t.text[e],...n}),[an.Warning]:n=>Ue({fill:t.text[e],...n}),[an.Info]:n=>We({fill:t.text[e],...n}),[an.Default]:n=>de({fill:t.text[e],...n})}[e]),mo=e=>{switch(e){case vn.Success:return an.Success;case vn.Error:case vn.Failure:return an.Error;case vn.Notice:return an.Warning;case vn.Unsupported:case vn.Unknown:return an.Info;case vn.Irrelevant:case vn.Disabled:return sn.Disabled;case vn.Waiting:return sn.Loading;case vn.Pending:default:return an.Default}},ho=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},go=e=>En(e)?{namespace:e.namespace,name:e.name,kind:e.kind}:e.name;function xo(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const fo=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=xo(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},$o=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==an.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},yo=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),bo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),wo=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ko=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},vo=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,So=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Eo=e=>So.test(e),Co=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",To=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:Co(t),reason:n?Co(n):"",message:o,lastTransitionTime:i}))||[],Ao=(e,t)=>{const n=xo(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}))},No=e=>e?Object.keys(e).filter(t=>e[t]):[],Do=e=>e.replace(/[^\d]/g,""),Io=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Oo=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},_o=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=>_o(e)))}else if("object"==typeof o&&null!==o){const e=_o(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},zo=(e,t=2)=>JSON.stringify(e||{},null,t),Ro=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Fo=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Lo={[Qt.Go]:"Go",[Qt.Java]:"Java",[Qt.JavaScript]:"Node.js",[Qt.Python]:"Python",[Qt.DotNet]:".NET",[Qt.CSharp]:"C#",[Qt.CPlusPlus]:"C++",[Qt.Php]:"PHP",[Qt.Ruby]:"Ruby",[Qt.Rust]:"Rust",[Qt.Swift]:"Swift",[Qt.Elixir]:"Elixir",[Qt.MySql]:"MySQL",[Qt.Nginx]:"Nginx",[Qt.Postgres]:"PostgreSQL",[Qt.Redis]:"Redis",[Qt.Kafka]:"Kafka",[Qt.Ignored]:"Ignored",[Qt.Unknown]:"Unknown",[Qt.Processing]:"Processing",[Qt.NoContainers]:"No Containers",[Qt.NoRunningPods]:"No Running Pods"},Mo=[{id:Qt.Go,value:Lo[Qt.Go],icon:Xn(Qt.Go)},{id:Qt.Java,value:Lo[Qt.Java],icon:Xn(Qt.Java)},{id:Qt.JavaScript,value:Lo[Qt.JavaScript],icon:Xn(Qt.JavaScript)},{id:Qt.Python,value:Lo[Qt.Python],icon:Xn(Qt.Python)},{id:Qt.Php,value:Lo[Qt.Php],icon:Xn(Qt.Php)},{id:Qt.Ruby,value:Lo[Qt.Ruby],icon:Xn(Qt.Ruby)},{id:Qt.Rust,value:Lo[Qt.Rust],icon:Xn(Qt.Rust)},{id:Qt.DotNet,value:Lo[Qt.DotNet],icon:Xn(Qt.DotNet)},{id:Qt.CSharp,value:Lo[Qt.CSharp],icon:Xn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Lo[Qt.CPlusPlus],icon:Xn(Qt.CPlusPlus)},{id:Qt.Swift,value:Lo[Qt.Swift],icon:Xn(Qt.Swift)},{id:Qt.Elixir,value:Lo[Qt.Elixir],icon:Xn(Qt.Elixir)}],Po="default",Bo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},jo={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)'},Uo={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 by searching by source name or namespace.",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.",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?",INSTRUMENTED_METHODS:"Instrumented Methods",INSTRUMENTED_SYMBOLS:"Instrumented Symbols"},Wo={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"},Vo=6048e5,Ho=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Bo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),qo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Jo=lt(e=>({...qo,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(qo)})),Go=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Yo=lt((e,t)=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===en.Namespace?"namespacesLoading":t===en.Source?"sourcesLoading":t===en.Destination?"destinationsLoading":t===en.Action?"actionsLoading":t===en.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(to(t))===JSON.stringify(to(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===en.Source?JSON.stringify(to(n))===JSON.stringify(to(e)):to(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},setSources:t=>{e({sources:t})},addSources:t=>{e(e=>{const n=[...e.sources];return t.forEach(e=>{const t=Tn(e),o=n.findIndex(e=>{const n=Tn(e);return JSON.stringify(n)===JSON.stringify(t)});-1!==o?n[o]={...n[o],...e}:n.push(e)}),{sources:n}})},removeSources:t=>{e(e=>{const n=[...e.sources];return t.forEach(e=>{const t=n.findIndex(t=>{const n=Tn(t);return JSON.stringify(n)===JSON.stringify(e)});-1!==t&&n.splice(t,1)}),{sources:n}})},getSourcesByType:e=>t().sources.filter(t=>t.sourceType===e),getK8sSources:()=>t().sources.filter(En),getVMSources:()=>t().sources.filter(Cn),findSourceById:e=>t().sources.find(t=>{const n=Tn(t);return JSON.stringify(n)===JSON.stringify(e)}),updateSource:(t,n)=>{e(e=>{const o=[...e.sources],i=o.findIndex(e=>{const n=Tn(e);return JSON.stringify(n)===JSON.stringify(t)});if(-1!==i){const e={...o[i],...n};o[i]=e}return{sources:o}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Ko=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Xo=lt(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:Ko})),Qo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Zo=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),ei=lt((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)}))}})),ti=(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},ni=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>ti(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>ti(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===en.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}})),oi=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),ii={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ai=(e,t)=>e.destinationType.type!==t.destinationType.type,ri=lt(e=>({...ii,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=>ai(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=>ai(e,t))})),resetState:()=>e(()=>({...ii}))})),si={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"}},li={darkMode:!0,colors:{...si.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:si.font_family},ci={darkMode:!1,colors:{...si.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:si.font_family},di=e=>e?li:ci;wt('@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 pi={in:{left:Et`
2
+ from { transform: translateX(-100%); }
3
+ to { transform: translateX(0); }
4
+ `,right:Et`
5
+ from { transform: translateX(100%); }
6
+ to { transform: translateX(0); }
7
+ `,top:Et`
8
+ from { transform: translateY(-100%); }
9
+ to { transform: translateY(0); }
10
+ `,bottom:Et`
11
+ from { transform: translateY(100%); }
12
+ to { transform: translateY(0); }
13
+ `,center:Et`
14
+ from { transform: translate(-50%, 100%); }
15
+ to { transform: translate(-50%, -50%); }
16
+ `},out:{left:Et`
17
+ from { transform: translateX(0); }
18
+ to { transform: translateX(-100%); }
19
+ `,right:Et`
20
+ from { transform: translateX(0); }
21
+ to { transform: translateX(100%); }
22
+ `,top:Et`
23
+ from { transform: translateY(0); }
24
+ to { transform: translateY(-100%); }
25
+ `,bottom:Et`
26
+ from { transform: translateY(0); }
27
+ to { transform: translateY(100%); }
28
+ `,center:Et`
29
+ from { transform: translate(-50%, -50%); }
30
+ to { transform: translate(-50%, 100%); }
31
+ `}},ui={in:Et`
32
+ from { width: 0%; }
33
+ to { width: 100%; }
34
+ `,out:Et`
35
+ from { width: 100%; }
36
+ to { width: 0%; }
37
+ `},mi=Et`
38
+ 0% {
39
+ transform: scale(1);
40
+ opacity: 1;
41
+ }
42
+ 75%, 100% {
43
+ transform: scale(2);
44
+ opacity: 0;
45
+ }
46
+ `,hi=Et`
47
+ 0% {
48
+ background-position: -500px 0;
49
+ }
50
+ 100% {
51
+ background-position: 500px 0;
52
+ }
53
+ `,gi={Provider:({children:e})=>{const{darkMode:t}=Ho();return ct.createElement(St,{theme:di(t)},e)},useTheme:Ct,opacity:Object.freeze({__proto__:null,hex:{100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"}}),animations:Object.freeze({__proto__:null,ping:mi,progress:ui,shimmer:hi,slide:pi})},xi=vt.div`
54
+ color: ${({$color:e,theme:t})=>e||t.text.secondary};
55
+ font-size: ${({$size:e})=>void 0!==e?e:16}px;
56
+ font-weight: ${({$weight:e})=>void 0!==e?e:300};
57
+ text-align: ${({$align:e})=>e||"left"};
58
+ opacity: ${({$opacity:e})=>void 0!==e?e:1};
59
+ text-decoration: ${({$decoration:e})=>e||"none"};
60
+ text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
61
+ font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
62
+ white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
63
+ text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
64
+ `,fi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},$i=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},yi=(e,t)=>{const n=fi(e);n?.forEach((t,n)=>{e=e.replace(t.original,`LINK-${n}###`)});const o=$i(e);return o?.forEach((t,n)=>{e=e.replace(t.original,`STRONG-${n}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[o,i]=e.split("###"),a=n?.[parseInt(o.replace("LINK-",""))];return ct.createElement(dt,{key:e},ct.createElement("a",{href:a?.href,target:"_blank",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,n]=e.split("###"),i=o?.[parseInt(t.replace("STRONG-",""))];return ct.createElement(dt,{key:e},ct.createElement("strong",{style:{fontWeight:600}},i?.label),n?`${n} `:" ")}return e+" "})},bi=({children:e,color:t,size:n,weight:o,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=gi.useTheme(),u=pt(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return ct.createElement(xi,{$color:t,$size:n,$weight:o,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,$nowrap:c,...d},u.length?u.map((e,t)=>ct.createElement(dt,{key:`text-${t}-${e}`},yi(e,p),t!==u.length-1?ct.createElement("br",null):null)):e)},wi=vt.div`
65
+ padding: 4px 0 0 0;
66
+ `,ki=vt(bi)`
67
+ font-size: 12px;
68
+ color: ${({theme:e})=>e.text.error};
69
+ `,vi=({children:e})=>ct.createElement(wi,null,ct.createElement(ki,null,e)),Si=vt.div`
70
+ position: relative;
71
+ width: 100%;
72
+ `,Ei=vt.div`
73
+ width: calc(100% - 16px);
74
+ display: flex;
75
+ align-items: center;
76
+ height: 36px;
77
+ gap: 8px;
78
+ padding-left: 12px;
79
+ transition: border-color 0.3s;
80
+ border-radius: 32px;
81
+ border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
82
+
83
+ &:hover {
84
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
85
+ }
86
+ &:focus-within {
87
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
88
+ }
89
+ `,Ci=vt.input`
90
+ flex: 1;
91
+ border: none;
92
+ outline: none;
93
+ background: none;
94
+ color: ${({theme:e})=>e.text.secondary};
95
+ font-size: 14px;
96
+ font-family: ${({theme:e})=>e.font_family.primary};
97
+ font-weight: 300;
98
+ &::placeholder {
99
+ color: ${({theme:e})=>e.text.secondary};
100
+ font-family: ${({theme:e})=>e.font_family.primary};
101
+ opacity: 0.4;
102
+ font-size: 14px;
103
+ font-weight: 300;
104
+ line-height: 22px;
105
+ }
106
+
107
+ &:disabled {
108
+ cursor: not-allowed;
109
+ }
110
+ `,Ti=vt.ul`
111
+ position: absolute;
112
+ max-height: 500px;
113
+ top: 32px;
114
+ border-radius: 24px;
115
+ width: calc(100% - 32px);
116
+ overflow-y: auto;
117
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
118
+ border: 1px solid ${({theme:e})=>e.colors.border};
119
+ z-index: 9999;
120
+ padding: 12px;
121
+ `,Ai=vt.li`
122
+ width: calc(100% - 24px);
123
+ padding: 8px 12px;
124
+ cursor: ${({$isList:e})=>e?"default":"pointer"};
125
+ border-radius: 24px;
126
+ gap: 8px;
127
+ display: flex;
128
+ align-items: ${({$isList:e})=>e?"flex-start":"center"};
129
+ background: transparent;
130
+ &:hover {
131
+ background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
132
+ }
133
+ `,Ni=vt.div`
134
+ width: 100%;
135
+ `,Di=vt.div`
136
+ display: flex;
137
+ width: 100%;
138
+ `,Ii=vt.div`
139
+ width: 1px;
140
+ height: 52px;
141
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
142
+ position: absolute;
143
+ left: 33px;
144
+ `,Oi=vt.div`
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: 4px;
148
+ `,_i=vt(bi)`
149
+ flex: 1;
150
+ font-size: 14px;
151
+ `,zi=vt(bi)`
152
+ color: ${({theme:e})=>e.text.grey};
153
+ font-size: 10px;
154
+ line-height: 150%;
155
+ `,Ri=vt.ul`
156
+ padding-left: 0px;
157
+ margin: 4px 0 0 0;
158
+ list-style: none;
159
+ width: 100%;
160
+ `,Fi=(e,t)=>t?e.reduce((e,n)=>{if(n.items){const o=Fi(n.items,t);o.length&&e.push({...n,items:o})}else n.label.toLowerCase().includes(t.toLowerCase())&&e.push(n);return e},[]):e,Li=({placeholder:e="Type to search...",options:t,selectedOption:n,onOptionSelect:o,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...c})=>{const[d,p]=ut(n?.label||i||""),[u,m]=ut(Fi(t,d)),[h,g]=ut(!1);ut(-1),mt(()=>m(Fi(t,d)),[t]);const x=n?.icon,f=e=>{e&&(p(e.label),a?.(e.label)),g(!e),o?.(e)};return ct.createElement(Si,{style:r},ct.createElement(Ei,{$hasError:!!l},x&&ct.createElement(x,null),ct.createElement(Ci,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const n=e.target.value,o=Fi(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),...c})),h&&u.length?ct.createElement(Ti,null,u.map(e=>ct.createElement(Mi,{key:e.type||e.label,option:e,onClick:f}))):null,l&&ct.createElement(vi,null,l))},Mi=({option:e,renderIcon:t=!0,onClick:n})=>{const o=!!e.items&&e.items.length>0,i=e.icon;return ct.createElement(Ai,{"data-id":`option-${e.type||e.label}`,$isList:o,onMouseDown:()=>o?null:n(e)},i&&t&&ct.createElement(i,null),ct.createElement(Ni,null,ct.createElement(Oi,null,ct.createElement(_i,null,e.label),ct.createElement(zi,null,e.description)),o&&ct.createElement(Ri,null,e.items?.map(e=>ct.createElement(Di,{key:e.type||e.label},ct.createElement(Ii,null),ct.createElement(Mi,{option:e,renderIcon:!1,onClick:n}))))))},Pi=vt.span`
161
+ display: flex;
162
+ align-items: center;
163
+ justify-content: center;
164
+
165
+ min-height: 16px;
166
+ min-width: 16px;
167
+ width: fit-content;
168
+ padding: 4px;
169
+ gap: 2px;
170
+
171
+ border-radius: 50px;
172
+ border: 1px solid ${({theme:e,$filled:t,$status:n})=>n?e.text[n]+(t?"":gi.opacity.hex["050"]):t?"transparent":e.colors.border};
173
+ background-color: ${({theme:e,$filled:t,$status:n})=>t?n?e.colors[n]:e.colors.majestic_blue:"transparent"};
174
+ color: ${({theme:e,$filled:t,$status:n})=>t&&n?e.text.secondary:t?e.text.white:n?e.text[n]:e.text.grey};
175
+ font-family: ${({theme:e})=>e.font_family.secondary};
176
+ font-size: 12px;
177
+ white-space: nowrap;
178
+
179
+ ${({theme:e,$filled:t,$status:n,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${n?e.colors[n]+gi.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+gi.opacity.hex["020"]};\n }`}
180
+ `,Bi=({label:e,filled:t,status:n,withIcon:o,onClick:i})=>{const a=gi.useTheme(),r=n&&o?uo(n,a):null;return ct.createElement(Pi,{$filled:t,$status:n,$clickable:!!i,onClick:i},!!r&&ct.createElement(r,null),e)},ji=vt.div`
181
+ height: fit-content;
182
+ border: 2px solid transparent;
183
+ padding: 2px;
184
+ border-radius: 32px;
185
+ background-color: transparent;
186
+ transition: border-color 0.3s ease;
187
+ &:focus-within {
188
+ border-color: ${({theme:e})=>e.colors.secondary};
189
+ }
190
+ `,Ui={primary:Tt`
191
+ border: 1px solid ${({theme:e})=>e.text.secondary+gi.opacity.hex["024"]};
192
+ background: ${({theme:e})=>e.colors.secondary};
193
+ color: ${({theme:e})=>e.colors.primary};
194
+ &:hover {
195
+ background: ${({theme:e})=>e.colors.secondary+gi.opacity.hex["080"]};
196
+ }
197
+ &:active {
198
+ background: ${({theme:e})=>e.text.secondary+gi.opacity.hex["060"]};
199
+ }
200
+ `,secondary:Tt`
201
+ border: 1px solid ${({theme:e})=>e.colors.border};
202
+ background: ${({theme:e})=>e.colors.primary};
203
+ color: ${({theme:e})=>e.colors.secondary};
204
+ &:hover {
205
+ border: 1px solid ${({theme:e})=>e.text.darker_grey};
206
+ background: ${({theme:e})=>e.colors.secondary+gi.opacity.hex["010"]};
207
+ }
208
+ &:active {
209
+ border: 1px solid ${({theme:e})=>e.text.dark_grey};
210
+ background: ${({theme:e})=>e.colors.secondary+gi.opacity.hex["015"]};
211
+ }
212
+ `,tertiary:Tt`
213
+ border-color: transparent;
214
+ background: transparent;
215
+ &:hover {
216
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+gi.opacity.hex["040"]};
217
+ }
218
+ &:active {
219
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
220
+ }
221
+ `,danger:Tt`
222
+ border-color: transparent;
223
+ background: ${({theme:e})=>e.text.error};
224
+ &:hover {
225
+ background: ${({theme:e})=>e.text.error+gi.opacity.hex["090"]};
226
+ }
227
+ &:active {
228
+ background: ${({theme:e})=>e.text.error+gi.opacity.hex["080"]};
229
+ }
230
+ `,warning:Tt`
231
+ border-color: transparent;
232
+ background: ${({theme:e})=>e.text.warning};
233
+ &:hover {
234
+ background: ${({theme:e})=>e.text.warning+gi.opacity.hex["090"]};
235
+ }
236
+ &:active {
237
+ background: ${({theme:e})=>e.text.warning+gi.opacity.hex["080"]};
238
+ }
239
+ `},Wi=vt.button`
240
+ height: 36px;
241
+ border-radius: 32px;
242
+ cursor: pointer;
243
+ display: flex;
244
+ align-items: center;
245
+ justify-content: center;
246
+ gap: 8px;
247
+ padding: 0 12px;
248
+ font-family: ${({theme:e})=>e.font_family.secondary};
249
+ text-transform: uppercase;
250
+ text-decoration: underline;
251
+ font-weight: 600;
252
+ outline: none;
253
+ ${({$variant:e})=>e&&Ui[e]}
254
+ ${({disabled:e,$variant:t})=>e&&Tt`
255
+ opacity: 0.5;
256
+ cursor: not-allowed;
257
+
258
+ ${"primary"===t?Tt`
259
+ color: ${({theme:e})=>e.colors.secondary};
260
+ background: ${({theme:e})=>e.text.secondary+gi.opacity.hex["010"]};
261
+ &:hover {
262
+ background: ${({theme:e})=>e.text.secondary+gi.opacity.hex["015"]};
263
+ }
264
+ `:""}
265
+ `}
266
+ `,Vi=({children:e,variant:t="primary",onClick:n,...o})=>{const i=ht(null);return ct.createElement(ji,{$variant:t},ct.createElement(Wi,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Hi=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>ct.createElement(rp,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:an.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),qi=vt.div`
267
+ position: absolute;
268
+ ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
269
+ ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
270
+ ${({$left:e})=>void 0!==e&&`left: ${e}px;`}
271
+ ${({$right:e})=>void 0!==e&&`right: ${e}px;`}
272
+ z-index: 9999;
273
+
274
+ background-color: ${({theme:e})=>e.colors.info};
275
+ border: 1px solid ${({theme:e})=>e.colors.border};
276
+ border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
277
+ max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
278
+ width: ${({$width:e})=>void 0!==e?e:"unset"};
279
+
280
+ ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
281
+ `,Ji=vt.div`
282
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
283
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
284
+ `,Gi=vt.div`
285
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
286
+ `,Yi=vt.div`
287
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
288
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
289
+ `,Ki=gt(({isOpen:e,asPortal:t,...n},o)=>{const i=pt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return ct.createElement(qi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&ct.createElement(Ji,{$padding:c},u),ct.createElement(Gi,{$padding:c},e),m&&ct.createElement(Yi,{$padding:c},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Ki.displayName=Ki.name;const Xi=e=>{function t(){return void 0===e?{}:Bn(e)}const[n,o]=ut(t()),[i,a]=ut({}),r=pt(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return mt(()=>{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=Bn(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({})}}},Qi={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}},Zi=()=>{const{addNotification:e}=ei(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Xi(Qi);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":yo(t)&&(o[e]=jo.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:jo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={...Bn(Qi),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 Wt.CollectContainerAttributes:case Wt.CollectReplicaSetAttributes:case Wt.CollectWorkloadId:case Wt.CollectClusterId:case Wt.LabelsAttributes:case Wt.AnnotationsAttributes:case Wt.ClusterAttributes:case Wt.OverwriteExistingValues:case Wt.AttributeNamesToDelete:case Wt.Renames:case Wt.PiiCategories:case Wt.FallbackSamplingRatio:case Wt.SamplingPercentage:case Wt.EndpointsFilters:case Wt.ServicesNameFilters:case Wt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},ea=()=>{const{setCurrentModal:e}=Zo(),{setDrawerType:t,setDrawerEntityId:n}=Go(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=Bt();return{onClickNode:(r,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(a===l?(o(null),i(null)):(o(c),i(l)),p){case en.Source:case en.Destination:case en.Action:case en.InstrumentationRule:t(p),n(d);break;case hn.AddSource:e(en.Source);break;case hn.AddDestination:e(en.Destination);break;case hn.AddAction:e(en.Action);break;case hn.AddRule:e(en.InstrumentationRule)}}}},ta=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Go(),{markAsDismissed:n,markAsSeen:o}=ei();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:c}=a||{};if(s&&l)switch(s){case en.InstrumentationRule:e(en.InstrumentationRule),t(oo(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(oo(l,en.Source));break;case en.Action:e(en.Action),t(oo(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(oo(l,en.Destination))}o(r),c&&n(r)}}},na=()=>{const e=ht(null),[t,n]=ut(0),[o,i]=ut(0);return mt(()=>{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}},oa=()=>{const[e,t]=ut(!1),[n,o]=ut(-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)}}}},ia=e=>{const{addNotification:t}=ei(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Xi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?bo(n.name)?o.name=void 0:(i=!1,o.name=jo.ILLEGAL_K8S_LABEL):(i=!1,o.name=jo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:jo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={...Bn(e),name:t};o(void 0,void 0,n)}}},aa={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},ra=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=ei(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Xi(aa),[c,d]=ut([]),[p,u]=ut([]);return mt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===nn.Dropdown){const e=xo(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,...xo(o,{})}})).map(e=>{if(n){const t="string"==typeof n?xo(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),mt(()=>{if(t&&0===No(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]=jo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:jo.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={...Bn(aa),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(xo(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},sa={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[bn.HttpRequest]:null,[bn.HttpResponse]:null,[bn.DbQuery]:null,[bn.Messaging]:null},codeAttributes:{[fn.Column]:null,[fn.FilePath]:null,[fn.Function]:null,[fn.LineNumber]:null,[fn.Namespace]:null,[fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[yn.Probes]:null}},la=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Xi(sa);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={...Bn(sa),ruleName:e,notes:t,disabled:o};i&&(l.payloadCollection={[bn.HttpRequest]:i[bn.HttpRequest]?{}:null,[bn.HttpResponse]:i[bn.HttpResponse]?{}:null,[bn.DbQuery]:i[bn.DbQuery]?{}:null,[bn.Messaging]:i[bn.Messaging]?{}:null}),a&&(l.codeAttributes={[fn.Column]:a[fn.Column]||null,[fn.FilePath]:a[fn.FilePath]||null,[fn.Function]:a[fn.Function]||null,[fn.LineNumber]:a[fn.LineNumber]||null,[fn.Namespace]:a[fn.Namespace]||null,[fn.StackTrace]:a[fn.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[yn.Probes]:s[yn.Probes]||null}),n(void 0,void 0,l)}}},ca=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(mt(()=>{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)=>{mt(()=>{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])},pa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({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,c=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),c>=a/2&&(c+=-(o.current?.clientWidth||t)),s({top:l,left:c})}}},ua=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?xo(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ma={otelServiceName:"",currentStreamName:""},ha=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Xi(ma);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:e=>{const t=En(e)?e.otelServiceName:e.name,o={...Bn(ma),otelServiceName:t||e.name||""};n(void 0,void 0,o)}}},ga=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return"namespace"in e?{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}:{name:e.name,kind:e.kind,selected:!(!i&&!o)&&a}},xa=(e,t,n)=>({...ga(e,t,n),currentStreamName:t}),fa=(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}},$a=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=Yo(),{selectedStreamName:o}=Jo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=ri(),[l,c]=ut(s),[d,p]=ut(!1),[u,m]=ut(!1),[h,g]=ut([]),[x,f]=ut(""),[$,y]=ut(r),[b,w]=ut(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>xa(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=xa(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),k=async(e,n)=>{if(t)if(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]),c(e=>({...e,[a]:r.map(e=>ga(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>xa(e,o,n))}))}};mt(()=>(i.current=!0,n?.length&&(c(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]||fa(e,o)),t}),(async()=>{p(!0);for await(const e of n)i.current&&await k(e);p(!1)})()),()=>{i.current=!1}),[n,o]);const[v,S]=ut(""),[E,C]=ut(en.Source),[T,A]=ut(!1),[N,D]=ut(!1),I=pt(()=>{const e=(e,t)=>!v||E!==t||E===t&&e.toLowerCase().includes(v),t={};return Object.entries(b).filter(([t])=>e(t,en.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,en.Source)&&(!T||t.selected)&&(e=>!N||!("numberOfInstances"in e)||(e.numberOfInstances||0)>0)(t));i.length&&(t[n]=i)}),t},[b,v,E,T,N]);return{isFetchingEachNamespace:d,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]:fa(a,o,e)}))},searchText:v,setSearchText:S,searchBy:E,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:N,setShowRunningOnly:D}};$t.addDefaultLocale(kt);const ya=()=>new $t("en-US"),ba=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
290
+ animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
291
+ animation-duration: ${o}ms;
292
+ animation-fill-mode: forwards;
293
+ `;return xt(({children:e,enter:t,...n})=>{const[a,r]=ut(!1);return mt(()=>{const e=setTimeout(()=>r(t),o+50);return()=>clearTimeout(e)},[t,o]),t||a?ct.createElement(i,{$isEntering:t,$isLeaving:!t&&a,...n},e):null},[])},wa=vt.div`
294
+ display: flex;
295
+ flex-direction: row;
296
+ flex-wrap: ${({$wrap:e="unset"})=>e};
297
+ align-items: ${({$alignItems:e="center"})=>e};
298
+ justify-content: ${({$justifyContent:e="unset"})=>e};
299
+ gap: ${({$gap:e=2})=>e}px;
300
+ `,ka=vt.div`
301
+ display: flex;
302
+ flex-direction: column;
303
+ flex-wrap: ${({$wrap:e="unset"})=>e};
304
+ align-items: ${({$alignItems:e="unset"})=>e};
305
+ justify-content: ${({$justifyContent:e="unset"})=>e};
306
+ gap: ${({$gap:e=2})=>e}px;
307
+ `,va=vt(ka)`
308
+ width: 100%;
309
+ height: ${({$height:e})=>e||"unset"};
310
+ align-items: center;
311
+ justify-content: center;
312
+ `,Sa=vt.div`
313
+ display: flex;
314
+ flex-direction: column;
315
+ padding: 12px;
316
+ overflow-y: scroll;
317
+ `,Ea=vt.div`
318
+ position: fixed;
319
+ top: 0;
320
+ left: 0;
321
+ right: 0;
322
+ bottom: 0;
323
+ z-index: 1000;
324
+ background: rgba(0, 0, 0, 0.5);
325
+ backdrop-filter: blur(1px);
326
+ `,Ca=vt.div`
327
+ width: 640px;
328
+ min-height: ${({$minHeight:e})=>e||"unset"};
329
+ height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
330
+ margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
331
+ padding: 0 2px;
332
+ overflow-y: scroll;
333
+ `,Ta=vt(ka)`
334
+ max-width: ${({$maxWidth:e})=>e||"unset"};
335
+ width: 100%;
336
+ `,Aa=vt(wa)`
337
+ gap: 16px;
338
+ padding: 16px;
339
+ `,Na=vt.div`
340
+ width: 100%;
341
+ max-height: ${({$maxHeight:e})=>e||"unset"};
342
+ overflow-y: auto;
343
+ `,Da=vt.div`
344
+ position: relative;
345
+ display: flex;
346
+ align-items: center;
347
+ gap: 4px;
348
+ // cursor: help;
349
+ `,Ia=vt(bi)`
350
+ word-break: break-word;
351
+ white-space: pre-wrap;
352
+ `,Oa=({withIcon:e,titleIcon:t,title:n,text:o,timestamp:i,children:a})=>{const r=gi.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=pa({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(o?.length||0),300)}),u=pt(()=>!!fi(o||"")?.length,[o]),m=e=>{const{type:t,clientX:n,clientY:o}=e;u?p(d.left||n,d.top||o):p(n,o),c("mouseleave"!==t)};return o?ct.createElement(Da,{onMouseEnter:m,onMouseMove:m,onMouseLeave:m},a,e&&ct.createElement(We,null),ct.createElement(Ki,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?m:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!n)&&ct.createElement(wa,{style:{marginBottom:"4px"},$gap:4},t&&ct.createElement(t,{size:12,fill:r.text.secondary}),n&&ct.createElement(bi,{size:12,color:r.text.secondary},n)),ct.createElement(Ia,{size:12,color:r.text.info},o),!!i&&ct.createElement(bi,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):ct.createElement(ct.Fragment,null,a)},_a=vt.div`
353
+ display: flex;
354
+ align-items: center;
355
+ gap: 8px;
356
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
357
+ opacity: ${({$disabled:e})=>e?.6:1};
358
+ `,za=vt.div`
359
+ width: 18px;
360
+ height: 18px;
361
+ border-radius: 6px;
362
+ border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e||t?"transparent":n.colors.secondary};
363
+ display: flex;
364
+ align-items: center;
365
+ justify-content: center;
366
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e?n.colors.majestic_blue:t?n.colors.majestic_blue_soft:n.colors.secondary+gi.opacity.hex["020"]};
367
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
368
+ transition: border 0.3s;
369
+ &:hover {
370
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
371
+ }
372
+ `,Ra=({title:e,titleColor:t,tooltip:n,value:o=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=gi.useTheme(),[p,u]=ut(o);return mt(()=>u(o),[o]),ct.createElement(ka,null,ct.createElement(_a,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(c||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},ct.createElement(za,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?ct.createElement(Ve,{fill:d.text.white}):p?ct.createElement(He,{fill:d.text.white}):null),e&&ct.createElement(Oa,{text:n,withIcon:!0},ct.createElement(bi,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"}},e))),!!l&&ct.createElement(vi,null,l))},Fa=vt(wa)`
373
+ gap: 0;
374
+ `,La=vt.button`
375
+ padding: 4px 8px;
376
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
377
+ border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
378
+ border: 1px solid ${({theme:e})=>e.colors.border};
379
+ display: flex;
380
+ align-items: center;
381
+ justify-content: center;
382
+ cursor: pointer;
383
+ &:hover {
384
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
385
+ }
386
+ `,Ma=({isPrettyMode:e,setIsPrettyMode:t})=>ct.createElement(Fa,null,ct.createElement(La,{$position:"left",$selected:e,onClick:()=>t(!0)},ct.createElement(qe,null)),ct.createElement(La,{$position:"right",$selected:!e,onClick:()=>t(!1)},ct.createElement(Je,null))),Pa=vt.table`
387
+ border-collapse: collapse;
388
+ font-family: ${({theme:e})=>e.font_family.primary};
389
+ `,Ba=vt.tbody``,ja=vt.tr`
390
+ td:first-child {
391
+ padding-left: 0 !important;
392
+ }
393
+ td:last-child {
394
+ padding-right: 0 !important;
395
+ }
396
+ `,Ua=vt.td`
397
+ vertical-align: top;
398
+ padding: 4px 6px;
399
+ `,Wa=vt(bi)`
400
+ white-space: nowrap;
401
+ `,Va=vt.span`
402
+ white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
403
+ overflow-wrap: break-word;
404
+ word-break: break-word;
405
+ word-wrap: break-word;
406
+ /* Fallback for older browsers */
407
+ -ms-word-break: break-all;
408
+ font-size: 12px;
409
+ `,Ha=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=gi.useTheme();let a="";if("json"===e){const e=xo(t,{}),o=_o(e);a=zo(n?qn(o):o)}else a=t;return o&&"json"===e?ct.createElement(qa,{darkMode:i,str:a}):ct.createElement(Ft,{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(Va,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},qa=({darkMode:e,str:t})=>{const n=gi.useTheme();return ct.createElement(Ft,{theme:e?Lt.palenight:Lt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>ct.createElement(Pa,null,ct.createElement(Ba,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(dt,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>ct.createElement(ja,{...e},ct.createElement(Ua,null),ct.createElement(Ua,null)));return ct.createElement(dt,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(ja,{...r},ct.createElement(Ua,null,ct.createElement(Wa,null,a[0].content)),ct.createElement(Ua,null))):2===a.length?ct.createElement(ja,{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(Oa,{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=uo(i,t);return e||(e=uo(an.Warning,t)),ct.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return ct.createElement(Ua,{key:`line-${i}-token-${o}`},ct.createElement(wa,null,ct.createElement(wa,null,r),ct.createElement(Va,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},Ja={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 Ja[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Ya(e){const t=Ga(e);return`${t.value}${t.unit}`}const Ka=(()=>{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})(),Xa=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=gi.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Ga(2),d=c+4.2,p=d/2+d/5.5,u=4*d*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:Ya(1.5),height:Ya(4),borderRadius:Ya(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Ka} ${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% + ${d}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% + ${d}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*d}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*d}px)`}}),ct.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},Qa=vt.div`
410
+ margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
411
+ display: flex;
412
+ align-items: center;
413
+ justify-content: center;
414
+ `,Za=({extend:e,size:t=14,align:n="center"})=>ct.createElement(Qa,{$align:n},ct.createElement(Ge,{size:t,rotate:e?180:0})),er=vt.div`
415
+ border-radius: 24px;
416
+ background-color: ${({theme:e,$status:t})=>t===an.Error?e.text.error+gi.opacity.hex["010"]:t===an.Warning?e.text.warning+gi.opacity.hex["010"]:e.colors.secondary+gi.opacity.hex["005"]};
417
+ &:hover {
418
+ background-color: ${({theme:e,$status:t})=>t===an.Error?e.text.error+gi.opacity.hex["020"]:t===an.Warning?e.text.warning+gi.opacity.hex["020"]:e.colors.secondary+gi.opacity.hex["010"]};
419
+ }
420
+ cursor: pointer;
421
+ transition: background 0.3s;
422
+ `,tr=vt.div`
423
+ display: flex;
424
+ align-items: center;
425
+ gap: 12px;
426
+ padding: 12px 18px;
427
+ `,nr=vt.div`
428
+ display: flex;
429
+ flex-direction: column;
430
+ gap: 8px;
431
+ padding: 6px 18px 12px 18px;
432
+ `,or=vt.div`
433
+ display: flex;
434
+ align-items: center;
435
+ gap: 12px;
436
+ `,ir=vt(bi)`
437
+ white-space: nowrap;
438
+ `,ar=vt(ka)`
439
+ width: 16px;
440
+ `,rr=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=gi.useTheme(),[a,r]=ut(!1),s=pt(()=>To(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Yn(s),[s]);mt(()=>{r(c||p||u||m)},[c,p,u,m]);const h=(!s.length||m)&&!c&&!p&&!u,g=c?an.Error:p?an.Warning:u?an.Info:an.Success,x=uo(g,i),f=c?t:p||u?n:h?"Loading...":o,$=c?i.text.error:p?i.text.warning:i.text.info,y=`(${c?l.length:p?d.length:s.length}/${s.length})`,b=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=xt(()=>r(e=>!e),[]);return ct.createElement(er,{onClick:w,$status:g},ct.createElement(tr,null,h?ct.createElement(Xa,null):ct.createElement(x,null),ct.createElement(bi,{color:$,size:14},f),ct.createElement(bi,{color:b,size:12,family:"secondary"},y),ct.createElement(Za,{extend:a,align:"right"})),a&&ct.createElement(nr,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>ct.createElement(Xa,{scale:.8}):e===sn.Disabled?uo(an.Info,i):uo(e,i),l=e===sn.Disabled?i.text.info:e===an.Error?i.text.error:e===an.Warning?i.text.warning:i.text.info,c=e===sn.Disabled?i.text.info_secondary:e===an.Error?i.text.error_secondary:e===an.Warning?i.text.warning_secondary:i.text.info_secondary;return ct.createElement(or,{key:`condition-${r}`},ct.createElement(ar,null,ct.createElement(s,null)),ct.createElement(wa,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},ct.createElement(bi,{color:l,size:12},ct.createElement(ir,{color:c,size:12,weight:700},t),o||n),ct.createElement(ir,{color:l,size:12},new Date(a).toLocaleString())))})))},sr=vt.div`
441
+ width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
442
+ height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
443
+ margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
444
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+gi.opacity.hex["050"]};
445
+ opacity: ${({$opacity:e})=>e||1};
446
+ `,lr=({orientation:e="horizontal",type:t,thickness:n=1,length:o,margin:i,opacity:a})=>ct.createElement(sr,{$orientation:e,$type:t,$thickness:n,$length:o,$margin:i,$opacity:a}),cr=vt.div`
447
+ display: flex;
448
+ align-items: center;
449
+ gap: ${({$size:e})=>e/3}px;
450
+ padding: ${({$size:e,$withBorder:t,$withBackground:n})=>t||n?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
451
+ width: ${({$width:e})=>e||"fit-content"};
452
+ border-radius: 360px;
453
+ border: ${({$withBorder:e,$status:t,theme:n})=>e?`1px solid ${n.text[t]+gi.opacity.hex["050"]}`:"none"};
454
+ background: ${({$withBackground:e,$status:t,theme:n})=>e?`linear-gradient(90deg, transparent 0%, ${n.text[t]+gi.opacity.hex["030"]} 100%)`:"transparent"};
455
+ `,dr=vt.div`
456
+ display: flex;
457
+ align-items: center;
458
+ `,pr=vt.div`
459
+ display: flex;
460
+ align-items: center;
461
+ `,ur=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=gi.useTheme(),u=[sn.Loading,sn.Disabled].includes(n)?an.Info:n,m=o?()=>ct.createElement(o,{size:l+2,fill:p.text[u]}):n===sn.Loading?()=>ct.createElement(Xa,{scale:.8}):()=>uo(u,p)?.({size:l+2});return ct.createElement(cr,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&ct.createElement(dr,null,ct.createElement(m,null)),(!!e||!!t)&&ct.createElement(pr,null,!!e&&ct.createElement(bi,{size:l,family:c,color:p.text[u],nowrap:d},e),!!e&&!!t&&ct.createElement(lr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&ct.createElement(bi,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d},t)))},mr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=gi.useTheme();return ct.createElement(Vi,{onClick:t,variant:n,...i},ct.createElement(Ye,{fill:"primary"===n?a.text.primary:a.text.info}),ct.createElement(bi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Wo.ADD))},hr=vt.button`
462
+ position: relative;
463
+ width: ${({$size:e})=>e}px;
464
+ height: ${({$size:e})=>e}px;
465
+ border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
466
+ border-radius: 100%;
467
+ background-color: ${({$backgroundColor:e})=>e||"transparent"};
468
+ display: flex;
469
+ align-items: center;
470
+ justify-content: center;
471
+ cursor: pointer;
472
+ &:hover {
473
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+gi.opacity.hex["070"]:e.colors.dropdown_bg_2};
474
+ }
475
+ `,gr=vt.div`
476
+ position: absolute;
477
+ top: ${({$size:e})=>e/5}px;
478
+ right: ${({$size:e})=>e/5}px;
479
+ width: 6px;
480
+ height: 6px;
481
+ border-radius: 100%;
482
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
483
+
484
+ &::after {
485
+ content: '';
486
+ position: absolute;
487
+ inset: 0;
488
+ border-radius: 100%;
489
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
490
+ animation: ${gi.animations.ping} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
491
+ }
492
+ `,xr=({children:e,onClick:t,tooltip:n,size:o=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>ct.createElement(Oa,{text:n},ct.createElement(hr,{$size:o,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&ct.createElement(gr,{$size:o,$color:a}),e)),fr=vt(wa)`
493
+ width: 100%;
494
+ border-radius: 8px;
495
+ background-color: ${({theme:e})=>e.colors.secondary+gi.opacity.hex["010"]};
496
+ pre {
497
+ color: ${({theme:e})=>e.text.default};
498
+ font-size: 12px;
499
+ overflow-x: auto;
500
+ width: 100%;
501
+ padding-left: 12px;
502
+ }
503
+ `,$r=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=oa();return ct.createElement(fr,null,ct.createElement("pre",null,e),ct.createElement(xr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?ct.createElement(He,null):ct.createElement(Ke,null)))},yr=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=gi.useTheme();return ct.createElement(Vi,{onClick:t,variant:n,...o},ct.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),ct.createElement(bi,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Wo.EDIT))},br=({onClick:e})=>ct.createElement(gd,{type:an.Default,icon:We,message:Uo.QUICK_BACK_TO_SUMMARY,action:{label:Uo.GO_TO_SUMMARY,onClick:e}}),wr=vt(bi)`
504
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
505
+ white-space: nowrap;
506
+ overflow-x: auto;
507
+
508
+ &::after {
509
+ // This is to prevent the "browser default tooltip" from appearing when the title is too long
510
+ content: '';
511
+ display: block;
512
+ }
513
+ `,kr=({maxWidth:e,text:t,textSize:n=16,textColor:o})=>{const[i,a]=ut(!1),r=ht(null);return mt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-n)&&t>.95*(e-n))}},[e,n,t]),ct.createElement(wa,{$gap:0},t&&ct.createElement(Oa,{text:i?t:void 0},ct.createElement(wr,{ref:r,$maxWidth:e-n,size:n,color:o},t)),i&&ct.createElement(wr,{$maxWidth:n,size:n,color:o},"..."))},vr=({src:e="",alt:t="",size:o=16})=>{const[i,a]=ut(!1);return e&&!i?ct.createElement("img",{src:e,alt:t,width:o,height:o,onError:()=>a(!0)}):ct.createElement(n,{size:o})},Sr=vt.div`
514
+ display: flex;
515
+ align-items: center;
516
+ justify-content: center;
517
+ width: ${({$size:e})=>e}px;
518
+ height: ${({$size:e})=>e}px;
519
+ border-radius: 8px;
520
+ background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+gi.opacity.hex["030"]} 100%)`}};
521
+ `,Er=({icon:e,src:t="",alt:o="",status:i,size:a=36})=>ct.createElement(Sr,{$status:i,$size:a},t?ct.createElement(vr,{src:t,alt:o,size:a-12}):e?ct.createElement(e,{size:a-12}):ct.createElement(n,{size:a-12})),Cr=vt.div`
522
+ position: relative;
523
+ display: flex;
524
+ flex-wrap: wrap;
525
+ align-items: center;
526
+ justify-content: center;
527
+ width: ${({$size:e})=>e}px;
528
+ height: ${({$size:e})=>e}px;
529
+ `,Tr=vt.div`
530
+ position: absolute;
531
+ top: ${({$top:e})=>e}px;
532
+ left: ${({$left:e})=>e}px;
533
+ z-index: ${({$zIndex:e})=>e};
534
+ display: flex;
535
+ align-items: center;
536
+ justify-content: center;
537
+ width: ${({$size:e})=>e}px;
538
+ height: ${({$size:e})=>e}px;
539
+ border-radius: 100%;
540
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+gi.opacity.hex["030"]};
541
+ background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+gi.opacity.hex["030"]} 100%)`}};
542
+ `,Ar=({icons:e=[],iconSrcs:t=[],status:n,size:o=36,id:i})=>{const a=gi.useTheme(),r=1===e.length||1===t.length?o-12:o/2.7;if(t.length>0)return ct.createElement(Ar,{icons:t.map(e=>()=>ct.createElement(vr,{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(Cr,{$status:n,$size:o},e.map((t,o)=>o>2?null:ct.createElement(Tr,{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(bi,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):ct.createElement(t,{size:r}))))},Nr=Rn.map(({id:e})=>e),Dr=({monitors:e=Nr,withTooltips:t,withLabels:n,size:o=12,color:i})=>{const a=gi.useTheme(),r=i||a.text.grey;return ct.createElement(wa,{$gap:n?o:o/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=Fn(i),s=ro(i);return s?ct.createElement(Oa,{key:i,text:t?a:""},ct.createElement(wa,{$gap:o/3},ct.createElement(s,{size:n?o+2:o,fill:r}),n&&ct.createElement(bi,{size:o,color:r},a))):null}))},Ir=vt.div`
543
+ visibility: hidden;
544
+ `,Or=vt.div`
545
+ display: flex;
546
+ flex-direction: column;
547
+ align-self: stretch;
548
+ padding: 16px;
549
+ width: calc(100% - 32px);
550
+ height: 34px;
551
+ border-radius: 16px;
552
+ background-color: ${({theme:e,$status:t,$bgColor:n})=>n||(t?e.text[t]+gi.opacity.hex["010"]:e.colors.secondary+gi.opacity.hex["005"])};
553
+ opacity: ${({$faded:e})=>e?.5:1};
554
+
555
+ ${({theme:e,$status:t,$bgColorHover:n,$withClick:o})=>o?Tt`
556
+ &:hover {
557
+ cursor: pointer;
558
+ background-color: ${n||(t?e.text[t]+gi.opacity.hex["020"]:e.colors.secondary+gi.opacity.hex["010"])};
559
+ ${Ir} {
560
+ visibility: visible;
561
+ }
562
+ }
563
+ `:`\n &:hover {\n ${Ir} {\n visibility: visible;\n }\n }\n `}
564
+ `,_r=vt.div`
565
+ display: flex;
566
+ align-items: center;
567
+ gap: 8px;
568
+ margin-left: auto;
569
+ `,zr=vt(bi)`
570
+ margin-right: 16px;
571
+ `,Rr=vt(bi)`
572
+ font-size: 10px;
573
+ color: ${({theme:e})=>e.text.grey};
574
+ `,Fr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,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}={},...S})=>{const E=gi.useTheme(),[C,T]=ut(k||!1),[A,N]=ut(0),D=ht(null),I=ht(null),O=ht(null);return mt(()=>{if(D.current){const e=D.current.clientWidth,t=I.current?.clientWidth||0;N(e-((x?125:85)+t))}},[x]),ct.createElement(Or,{ref:D,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...S},ct.createElement(wa,{$gap:8},ct.createElement(wa,{$gap:16},y?ct.createElement(Xa,null):x?ct.createElement(Ra,{value:$,onChange:b,disabled:f}):null,r?.length||l?.length?ct.createElement(Ar,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?ct.createElement(Er,{icon:a,src:s,status:c}):null),ct.createElement(ka,{$gap:4},e&&ct.createElement(kr,{maxWidth:A,text:e,textSize:14}),ct.createElement(wa,{$gap:4},t&&ct.createElement(kr,{maxWidth:A-(O.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),m&&m.length>0&&ct.createElement(wa,{$gap:4,ref:O},t&&ct.createElement(Rr,null,"•"),ct.createElement(Dr,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?ct.createElement(wa,{$gap:4},g?.map((e,t)=>ct.createElement(dt,{key:`componentsUnderTitles-${t}`},e))):null),ct.createElement(_r,{ref:I},!!n&&ct.createElement(Ir,null,ct.createElement(zr,{size:14,family:"secondary"},n)),i&&i(),w&&ct.createElement(dt,null,ct.createElement(lr,{orientation:"vertical",length:"16px",margin:"0 2px"}),ct.createElement(xr,{onClick:()=>T(e=>!e)},ct.createElement(Za,{extend:C}))))),C&&v&&ct.createElement(ka,null,ct.createElement(lr,{margin:"16px 0"}),v()))},Lr=vt(wa)`
575
+ width: 100%;
576
+ justify-content: space-between;
577
+ `,Mr=vt(bi)`
578
+ font-size: 12px;
579
+ color: ${({theme:e})=>e.text.grey};
580
+ `,Pr=vt(bi)`
581
+ font-size: 10px;
582
+ color: ${({theme:e})=>e.text.darker_grey};
583
+ `,Br=vt.div`
584
+ display: flex;
585
+ align-items: center;
586
+ gap: 8px;
587
+ margin-left: auto;
588
+ `,jr=vt(bi)`
589
+ font-size: 12px;
590
+ text-align: right;
591
+ `,Ur=({title:e,subTitle:t,tooltip:n,value:o})=>ct.createElement(Lr,null,ct.createElement(ka,{$gap:4},ct.createElement(Oa,{text:n||""},e&&ct.createElement(Mr,null,e),t&&ct.createElement(Pr,null,t))),ct.createElement(Br,null,o?.status?ct.createElement(ur,{status:"transitioning"===o.status?sn.Loading:o.status,title:o.text||o.status,withBorder:!0,withIcon:!0}):ct.createElement(jr,null,o?.text||"-"))),Wr=vt(ka)`
592
+ width: 100%;
593
+ `,Vr=({containerName:e,actualDevices:t,started:n,ready:o,instrumentationInstances:i})=>{const a=pt(()=>{const e=[];return n?.name&&e.push(ct.createElement(ur,{status:ko(n.value)?Io(n.value)?an.Success:an.Error:an.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),o?.name&&e.push(ct.createElement(ur,{status:ko(o.value)?Io(o.value)?an.Success:an.Error:an.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),e},[n?.name,n?.value,o?.name,o?.value]);return ct.createElement(Fr,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>ct.createElement(ur,{status:an.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>ct.createElement(Wr,{$gap:24},i.map((e,t)=>ct.createElement(Wr,{key:`process-${t}`,$gap:8},ct.createElement(Ur,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===an.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>ct.createElement(Ur,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})};var Hr={nodeWidth:295,nodeHeight:80,framePadding:12};const qr=vt(ka)`
594
+ align-items: center !important;
595
+ justify-content: center !important;
596
+ align-self: stretch;
597
+
598
+ // negative width applied here because of the padding left&right
599
+ width: ${({$nodeWidth:e})=>e-40+"px"};
600
+ min-height: 50px;
601
+ padding: 16px 24px 16px 16px;
602
+ gap: 4px;
603
+
604
+ cursor: pointer;
605
+ background-color: transparent;
606
+ border-radius: 16px;
607
+ border: 1px dashed ${({theme:e})=>e.colors.border};
608
+
609
+ &:hover {
610
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2+gi.opacity.hex["030"]};
611
+ }
612
+ `,Jr=vt(wa)`
613
+ gap: 4px;
614
+ `,Gr=vt(bi)`
615
+ font-size: 14px;
616
+ font-weight: 600;
617
+ `,Yr=vt(bi)`
618
+ font-size: 12px;
619
+ color: ${({theme:e})=>e.text.grey};
620
+ text-align: center;
621
+ `,Kr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=ni(),r=e.split("-")[0],s=a({entityType:r});return ct.createElement(qr,{$nodeWidth:n,className:"nowheel nodrag"},s?ct.createElement(dt,null,ct.createElement(Jr,null,ct.createElement(Xa,null),ct.createElement(Gr,{family:"secondary"},"adding ",r,"s")),ct.createElement(Yr,null,"Just a few more seconds...")):ct.createElement(dt,null,ct.createElement(Jr,null,ct.createElement(Ye,null),ct.createElement(Gr,{family:"secondary",decoration:"underline"},o)),ct.createElement(Yr,null,i)),ct.createElement(At,{type:"target",position:Nt.Left,style:{visibility:"hidden"}}),ct.createElement(At,{type:"source",position:Nt.Right,style:{visibility:"hidden"}}))});Kr.displayName=Kr.name;const Xr=vt.div`
622
+ width: ${({$nodeWidth:e})=>`${e}px`};
623
+ `,Qr=ft(({id:e,data:t})=>{const n=gi.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:c,icon:d,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===en.Source,$="boolean"==typeof g,{isThisPending:y}=ni(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=oi(),v={...w},S=x,E=En(S)?S.namespace:"vm",{name:C,kind:T}=S;f&&!v[E]&&(v[E]=[]);const A=f?v[E].findIndex(e=>e.name===C&&e.kind===T):-1;return ct.createElement(Xr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},ct.createElement(Fr,{title:l,subTitle:c,onClick:()=>{},renderActions:()=>{const e=r?uo(r,n):$?uo(g?an.Success:an.Info,n):void 0,t=$?`${a} is ${g?"enabled":"disabled"}`:void 0,o=x,i=f&&En(o)&&(!o.conditions?.length||o.conditions?.some(({status:e})=>"loading"===e));return b?ct.createElement(Xa,null):e?ct.createElement(Oa,{text:t},ct.createElement(e,{size:20})):i?ct.createElement(Xa,null):null},iconProps:{icon:d,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==A,onCheckboxChange:()=>{-1===A?v[E].push(x):v[E].splice(A,1),k(v)},isCheckboxDisabled:b}}),ct.createElement(At,{type:"target",position:Nt.Left,style:{visibility:"hidden"}}),ct.createElement(At,{type:"source",position:Nt.Right,style:{visibility:"hidden"}}))});Qr.displayName=Qr.name;const Zr=vt.div`
624
+ width: ${({$nodeWidth:e})=>`${e}px`};
625
+ height: ${({$nodeHeight:e})=>`${e}px`};
626
+ opacity: 0;
627
+ `,es=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(Zr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(At,{type:"source",position:Nt.Right,style:{visibility:"hidden"}}),ct.createElement(At,{type:"target",position:Nt.Left,style:{visibility:"hidden"}}))});es.displayName=es.name;const ts=vt.div`
628
+ width: ${({$nodeWidth:e})=>e}px;
629
+ height: ${({$nodeHeight:e})=>e}px;
630
+ background: transparent;
631
+ border: 1px dashed ${({theme:e})=>e.colors.border};
632
+ border-radius: 24px;
633
+ `,ns=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return ct.createElement(ts,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},ct.createElement(At,{type:"source",position:Nt.Right,style:{visibility:"hidden"}}),ct.createElement(At,{type:"target",position:Nt.Left,style:{visibility:"hidden"}}))});ns.displayName=ns.name;const{framePadding:os}=Hr,is=vt.div`
634
+ position: relative;
635
+ z-index: 1;
636
+ width: fit-content;
637
+ height: ${({$nodeHeight:e})=>e}px;
638
+ background: transparent;
639
+ border: none;
640
+ overflow-y: auto;
641
+ overflow-x: hidden;
642
+ `,as=vt.div`
643
+ margin: ${os}px 0;
644
+ `,rs=vt.div`
645
+ position: fixed;
646
+ bottom: 0;
647
+ left: 50%;
648
+ transform: translateX(-50%);
649
+
650
+ width: 100%;
651
+ height: 100px;
652
+ padding-bottom: 12px;
653
+
654
+ background: ${({theme:e,$hide:t})=>t?"transparent":`linear-gradient(to top, ${e.colors.primary}, transparent)`};
655
+ display: flex;
656
+ align-items: flex-end;
657
+ justify-content: center;
658
+
659
+ pointer-events: none;
660
+ `,ss=ft(({data:e,...t})=>{const{nodeHeight:n,items:o,onScroll:i}=e,{onClickNode:a}=ea(),r=ht(null),[s,l]=ut(!1);return mt(()=>{const e=e=>{e.stopPropagation();const{clientHeight:t,scrollHeight:n,scrollTop:o}=e.target||{clientHeight:0,scrollHeight:0,scrollTop:0};i&&i({clientHeight:t,scrollHeight:n,scrollTop:o}),l(n-o<=t)},{current:t}=r;return t?.addEventListener("scroll",e),()=>t?.removeEventListener("scroll",e)},[i]),ct.createElement(is,{ref:r,$nodeHeight:n,className:"nowheel nodrag"},o.map(e=>ct.createElement(as,{key:e.id,onClick:t=>{t.stopPropagation(),a(t,e)}},ct.createElement(Qr,{...t,type:un.Base,id:e.id,data:e.data}))),ct.createElement(rs,{$hide:s}))});ss.displayName=ss.name;const ls=vt(bi)`
661
+ color: ${({theme:e})=>e.text.grey};
662
+ `,cs=({icon:e,title:t,badge:n,badgeTooltip:o,loading:i})=>ct.createElement(wa,{$gap:6},e&&ct.createElement(e,null),ct.createElement(ls,{size:14},t),void 0!==n&&ct.createElement(Oa,{text:o},ct.createElement(Bi,{label:n})),i&&ct.createElement(Xa,null)),ds=vt.div`
663
+ position: relative;
664
+ width: ${({$nodeWidth:e})=>`${e}px`};
665
+ padding: 12px 0px 16px 0px;
666
+ gap: 16px;
667
+ display: flex;
668
+ align-items: center;
669
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
670
+ `,ps=vt(wa)`
671
+ margin-left: 16px;
672
+ `,us=vt(wa)`
673
+ margin-left: auto;
674
+ `,ms=vt(Vi)`
675
+ width: 24px;
676
+ height: 24px;
677
+ padding: 0;
678
+ `,hs=vt.div`
679
+ position: absolute;
680
+ bottom: -2px;
681
+ left: 0;
682
+ background-color: ${({theme:e})=>e.colors.majestic_blue};
683
+ border-radius: 32px;
684
+ height: 4px;
685
+ width: ${({percent:e})=>`${e}%`};
686
+ transition: width 0.3s;
687
+ `,gs=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,c=e.split("-")[0],{isAwaitingInstrumentation:d,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=Qo(),g=c===en.Source&&d,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=oi(),{isThisPending:y}=ni(),[b,w]=pt(()=>{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"},c===en.Source&&ct.createElement(ps,null,ct.createElement(Ra,{partiallyChecked:b&&l?.length!==w,value:b&&l?.length===w,onChange:e=>{if(e){const e={};l?.forEach(t=>{const n=En(t)?t.namespace:"vm",o=En(t)?{namespace:t.namespace,name:t.name,kind:t.kind}:t.name;y({entityType:en.Source,entityId:o})||(e[n]?e[n].push(t):e[n]=[t])}),$(e)}else $({})},disabled:!l?.length})),ct.createElement(cs,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),ct.createElement(xs,{entityType:c}),g&&ct.createElement(hs,{percent:x}))}),xs=ft(({entityType:e})=>{const t=gi.useTheme(),{onClickNode:n}=ea();return ct.createElement(us,null,ct.createElement(ms,{"data-id":`add-${e}`,variant:"primary",onClick:t=>{t.stopPropagation(),n(void 0,{data:{type:e===en.Source?hn.AddSource:e===en.Destination?hn.AddDestination:e===en.Action?hn.AddAction:hn.AddRule}})}},ct.createElement(Ye,{fill:t.colors.primary,size:18})))});gs.displayName=gs.name,xs.displayName=xs.name;const fs=vt(ka)`
688
+ max-width: 300px;
689
+ padding: 12px;
690
+ border-radius: 12px;
691
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
692
+ justify-content: center;
693
+ `,$s=ft(({id:e,data:t})=>{const{title:n,subTitle:o}=t;return ct.createElement(fs,{"data-id":e},ct.createElement(ac,{title:n,subTitle:o}))});$s.displayName=$s.name;const ys=vt.div`
694
+ position: absolute;
695
+ transform: ${({$labelX:e,$labelY:t})=>`translate(-50%, -50%) translate(${e}px, ${t}px)`};
696
+ z-index: 1;
697
+ width: 75px;
698
+ padding: 2px 6px;
699
+ background-color: ${({theme:e})=>e.colors.primary};
700
+ border-radius: 360px;
701
+ border: 1px solid ${({$isError:e,theme:t})=>e?t.colors.dark_red:t.colors.border};
702
+ color: ${({$isError:e,theme:t})=>e?t.text.error:t.text.light_grey};
703
+ font-family: ${({theme:e})=>e.font_family.secondary};
704
+ font-size: 10px;
705
+ font-weight: 400;
706
+ text-transform: uppercase;
707
+ display: flex;
708
+ align-items: center;
709
+ justify-content: center;
710
+ `,bs=ft(({id:e,sourceX:t,sourceY:n,targetX:o,targetY:i,sourcePosition:a,targetPosition:r,data:s,style:l})=>{const[c]=Dt({sourceX:t,sourceY:n,sourcePosition:a,targetX:o,targetY:i,targetPosition:r});return ct.createElement(ct.Fragment,null,ct.createElement(It,{id:e,path:c,style:l}),ct.createElement(Ot,null,ct.createElement(ys,{$labelX:s?.isMultiTarget?o-50:t+50,$labelY:s?.isMultiTarget?i:n,$isError:s?.isError,className:"nodrag nopan"},ct.createElement(Oa,{text:"Heads up! The data-flow metrics you see are calculated over 10-second intervals."},s?.label))))});bs.displayName=bs.name;const ws=vt.div`
711
+ padding: 6px;
712
+ border-radius: 12px;
713
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
714
+ cursor: pointer;
715
+ `,ks=vt.div`
716
+ position: relative;
717
+ `,vs=vt(wa)`
718
+ position: absolute;
719
+ bottom: -24px;
720
+ left: 50%;
721
+ transform: translateX(-50%);
722
+ gap: 4px;
723
+ `,Ss=vt.div`
724
+ position: absolute;
725
+ bottom: 100%;
726
+ left: 100%;
727
+ width: 300px;
728
+ padding: 12px;
729
+ border-radius: 16px;
730
+ border: 1px solid ${({theme:e})=>e.colors.border};
731
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
732
+ `,Es=({title:e,value:t})=>{const n=gi.useTheme();return ct.createElement(wa,{$justifyContent:"space-between"},ct.createElement(bi,{size:12,color:n.text.info},e),ct.createElement(bi,{size:12,family:"secondary"},t))},Cs=ft(({id:e,data:t})=>{const{id:n,status:o,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=Bt(),c=gi.useTheme(),d=o===an.Error?uo(o,c):null;return ct.createElement(ct.Fragment,null,ct.createElement(At,{type:"source",position:Nt.Bottom,style:{visibility:"hidden"}}),ct.createElement(At,{type:"target",position:Nt.Top,style:{visibility:"hidden"}}),ct.createElement(ks,{"data-id":e},ct.createElement(ws,null,ct.createElement(Ar,{id:n,icons:a,status:o})),ct.createElement(vs,null,d&&ct.createElement(d,null),ct.createElement(kr,{maxWidth:100,text:i})),s===un.MapItem&&l===e&&ct.createElement(Ss,null,ct.createElement(wa,{$gap:12},ct.createElement(Ar,{id:n,icons:a,status:o}),ct.createElement(bi,{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(lr,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(lr,null),ct.createElement(ac,{title:"No outgoing connections",subTitle:" "})))))});Cs.displayName=Cs.name;const Ts=vt.div`
733
+ display: flex;
734
+ flex-direction: column;
735
+ gap: 16px;
736
+ ${({$maxWidth:e})=>e&&`max-width: ${e};`}
737
+ `,As=vt.div`
738
+ display: flex;
739
+ align-items: center;
740
+ gap: 16px;
741
+ `,Ns=vt.div`
742
+ width: 50px;
743
+ height: 50px;
744
+ border-radius: 8px;
745
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
746
+ background-size: 200% 100%;
747
+ animation: ${gi.animations.shimmer} 10s infinite linear;
748
+ `,Ds=vt(ka)`
749
+ flex: 1;
750
+ gap: 12px;
751
+ `,Is=vt.div`
752
+ width: ${({$width:e})=>e};
753
+ height: 16px;
754
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
755
+ background-size: 200% 100%;
756
+ animation: ${gi.animations.shimmer} 1.5s infinite linear;
757
+ border-radius: 4px;
758
+ `,Os=({size:e=5,maxWidth:t})=>ct.createElement(Ts,{$maxWidth:t},[...Array(e)].map((e,t)=>ct.createElement(As,{key:t},ct.createElement(Ns,null),ct.createElement(Ds,null,ct.createElement(Is,{$width:"80%"}),ct.createElement(Is,{$width:"100%"}))))),_s=vt.div`
759
+ width: ${({$nodeWidth:e})=>`${e}px`};
760
+ `,zs=ft(({id:e,data:t})=>{const{nodeWidth:n}=t;return ct.createElement(_s,{"data-id":e,$nodeWidth:n,className:"nowheel nodrag"},ct.createElement(Os,{size:3}))});zs.displayName=zs.name;const Rs=vt.div`
761
+ height: calc(100vh - 160px);
762
+ .react-flow__attribution {
763
+ visibility: hidden;
764
+ }
765
+ `,Fs=vt.div`
766
+ button {
767
+ padding: 8px;
768
+ margin: 8px;
769
+ border-radius: 8px;
770
+ border: 1px solid ${({theme:e})=>e.colors.border} !important;
771
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
772
+ path {
773
+ fill: ${({theme:e})=>e.text.secondary};
774
+ }
775
+ &:hover {
776
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
777
+ }
778
+ }
779
+ `,Ls={[un.Header]:gs,[un.Add]:Kr,[un.Base]:Qr,[un.Edged]:es,[un.Frame]:ns,[un.Scroll]:ss,[un.Skeleton]:zs,[un.MapItem]:Cs,[un.NoData]:$s},Ms={[mn.Labeled]:bs},Ps=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=ea(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return ct.createElement(Rs,null,ct.createElement(_t,{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(Fs,null,ct.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},Bs=vt.div`
780
+ position: relative;
781
+ `,js=({defaultLanguage:e=Qt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=ei(),{formData:i,handleFormChange:a,resetFormData:r}=Xi({language:e,version:t}),[s,l]=ut(!1),c=()=>{l(!1),r()};return ct.createElement(Bs,null,ct.createElement(xr,{tooltip:Uo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},ct.createElement(Xe,null)),ct.createElement($d,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||Eo(i.version)?(n(i),c()):o({type:an.Warning,message:jo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),c()},title:Uo.OVERRIDE_RUNTIME_DETAILS,warning:Uo.OVERRIDE_RUNTIME_WARNING},ct.createElement(dc,{title:Uo.LANGUAGE,options:Mo,value:Mo.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),ct.createElement(ec,{title:Uo.RUNTIME_VERSION,placeholder:Uo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Us=vt(wa)`
782
+ width: 100%;
783
+ justify-content: center;
784
+ `,Ws=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=gi.useTheme(),c=i?an.Success:a?an.Info:an.Warning,d=i?rn.INSTRUMENTED:a?rn.NOT_INSTRUMENTED:rn.INSTRUMENTING;return ct.createElement(Fr,{title:e,subTitle:`${t?Lo[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:Xn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>ct.createElement(Us,null,ct.createElement(bi,{size:12,family:"secondary",color:l.text.info},Co(a)))},renderActions:()=>ct.createElement(ct.Fragment,null,ct.createElement(ur,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&ct.createElement(ur,{status:an.Default,forceIcon:Qe,title:Uo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&ct.createElement(js,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Vs=vt.tr`
785
+ cursor: ${({$withHover:e})=>e?"pointer":"default"};
786
+ opacity: ${({$faded:e})=>e?.5:1};
787
+ `,Hs=vt.td`
788
+ position: relative;
789
+ width: fit-content;
790
+ padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
791
+ color: ${({theme:e})=>e.text.secondary};
792
+ font-family: ${({theme:e})=>e.font_family.primary};
793
+ font-size: 14px;
794
+ white-space: nowrap;
795
+ `,qs=vt(bi)`
796
+ font-size: 14px;
797
+ color: ${({$color:e,theme:t})=>e??t.text.secondary};
798
+ line-height: 16px;
799
+
800
+ overflow: hidden;
801
+ overflow-wrap: break-word;
802
+ white-space: wrap;
803
+ text-wrap: wrap;
804
+ text-overflow: ellipsis;
805
+ display: -webkit-box;
806
+ -webkit-line-clamp: 2;
807
+ -webkit-box-orient: vertical;
808
+ `,Js=vt.div`
809
+ position: absolute;
810
+ top: 0;
811
+ left: 0;
812
+ z-index: -1;
813
+ width: ${({$width:e})=>e}px;
814
+ height: ${({$height:e})=>e}px;
815
+ border-radius: 16px;
816
+ background-color: ${({theme:e,$hovered:t,$status:n})=>t?n?e.text[n]+gi.opacity.hex["020"]:e.colors.majestic_blue+gi.opacity.hex["030"]:n?e.text[n]+gi.opacity.hex["010"]:e.colors.secondary+gi.opacity.hex["005"]};
817
+ `,Gs=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=na(),[c,d]=ut(!1);return ct.createElement(Vs,{ref:r,onMouseEnter:()=>!!o&&d(!0),onMouseLeave:()=>!!o&&d(!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:d,withTooltip:p,icon:u,component:m}=a;return ct.createElement(Hs,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?ct.createElement(Er,{icon:u}):m?ct.createElement(m,null):ct.createElement(Oa,{text:p&&r?String(r):""},ct.createElement(qs,{$color:d},yo(r)?"-":r)),0===o&&ct.createElement(Js,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i}))}))},Ys=vt.div`
818
+ width: 100%;
819
+ `,Ks=vt.table`
820
+ position: relative;
821
+ z-index: 0;
822
+ width: 100%;
823
+ border-collapse: separate;
824
+ border-spacing: 0 12px;
825
+ `,Xs=vt.thead`
826
+ // only supported with "border-collapse: collapse;"
827
+ // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
828
+ // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
829
+ `,Qs=vt.th`
830
+ // only required with "border-collapse: separate;"
831
+ border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
832
+ border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
833
+
834
+ padding: 8px;
835
+ `,Zs=vt(wa)`
836
+ cursor: pointer;
837
+ &:hover {
838
+ * {
839
+ color: ${({theme:e})=>e.text.secondary};
840
+ }
841
+ }
842
+ `,el=vt(bi)`
843
+ color: ${({theme:e})=>e.text.darker_grey};
844
+ font-family: ${({theme:e})=>e.font_family.secondary};
845
+ text-transform: uppercase;
846
+ font-size: 12px;
847
+ font-weight: 500;
848
+ text-wrap: nowrap;
849
+ `,tl=vt.tbody``,nl=({columns:e,rows:t})=>{const[n,o]=ut(ln.Ascending),[i,a]=ut("name"),r=xt(e=>{i===e?o(e=>e===ln.Ascending?ln.Descending:ln.Ascending):(a(e),o(ln.Ascending))},[i]),s=pt(()=>{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===ln.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(Gs,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return ct.createElement(Ys,null,ct.createElement(Ks,null,ct.createElement(Xs,null,ct.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>ct.createElement(Qs,{key:`column-${e}`},n?ct.createElement(Zs,{onClick:()=>r(e)},ct.createElement(Ze,null),ct.createElement(el,null,t)):ct.createElement(el,null,t))))),ct.createElement(tl,null,s)))};var ol;!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"}(ol||(ol={}));const il=vt.div`
850
+ display: flex;
851
+ flex-wrap: wrap;
852
+ gap: 16px 32px;
853
+ width: 100%;
854
+ `,al=vt.div`
855
+ display: flex;
856
+ flex-direction: column;
857
+ gap: 2px;
858
+ width: ${({$width:e})=>e};
859
+ `,rl=vt(bi)`
860
+ color: ${({theme:e})=>e.text.grey};
861
+ font-size: 10px;
862
+ line-height: 16px;
863
+ `,sl=vt(bi)`
864
+ font-size: 12px;
865
+ white-space: pre-wrap;
866
+ `,ll=({data:e})=>ct.createElement(il,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>ct.createElement(al,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[ol.Code,ol.Table].includes(e)?"inherit":e&&[ol.Loader,ol.Divider,ol.CopyText].includes(e)?"100%":"unset"},ct.createElement(Oa,{text:o,withIcon:!0},ct.createElement(wa,{$alignItems:"center",$gap:4},n&&ct.createElement(n,{size:14}),!!t&&ct.createElement(rl,{transform:"capitalize"},t))),ct.createElement(cl,{type:e,value:i})))),cl=({type:e,value:t})=>{const n=gi.useTheme();switch(e){case ol.Divider:return ct.createElement(lr,{length:"100%",margin:"0"});case ol.Loader:return ct.createElement(va,null,ct.createElement(Xa,{scale:1.2}));case ol.Monitors:return ct.createElement(Dr,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case ol.Badge:{const{label:e,filled:n,...o}=xo(t,{label:"-",filled:!1});return ct.createElement(Bi,{label:e,filled:n,...o})}case ol.Code:{const{language:e,code:n,...o}=xo(t,{language:"",code:""});return ct.createElement(Ha,{language:e,code:n,...o})}case ol.Table:{const{columns:e,rows:n,...o}=xo(t,{columns:[],rows:[{status:void 0,cells:[]}]});return ct.createElement(nl,{columns:e,rows:n,...o})}case ol.ActiveStatus:return ct.createElement(ur,{status:"true"==t?an.Success:an.Error,title:"true"==t?Uo.ENABLED:Uo.DISABLED,size:10,withIcon:!0,withBorder:!0});case ol.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return ct.createElement($r,{value:e})}default:return ct.createElement(sl,null,Oo("string"==typeof t?t||"-":""))}},dl=vt.div`
867
+ display: flex;
868
+ flex-direction: column;
869
+ align-items: flex-start;
870
+ align-self: stretch;
871
+ gap: 16px;
872
+ padding: 24px;
873
+ border-radius: 24px;
874
+ border: 1px solid ${({theme:e})=>e.colors.border};
875
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+gi.opacity.hex["010"]:"transparent"};
876
+ transition: background-color 0.3s;
877
+ `,pl=vt.div`
878
+ width: 100%;
879
+ display: flex;
880
+ flex-direction: column;
881
+ gap: 4px;
882
+ cursor: ${({$clickable:e})=>e?"pointer":"default"};
883
+ `,ul=vt(bi)`
884
+ width: 100%;
885
+ display: flex;
886
+ align-items: center;
887
+ gap: 8px;
888
+ font-size: 16px;
889
+ `,ml=vt(bi)`
890
+ font-size: 12px;
891
+ color: ${({theme:e})=>e.text.grey};
892
+ `,hl=vt(wa)`
893
+ margin-left: auto;
894
+ gap: 8px;
895
+ `,gl=({title:e="Details",titleBadge:t,titleIcon:n,description:o,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[c,d]=ut(r),[p,u]=ut(!1);return ct.createElement(dl,{$hovered:p},e||n||o||i?ct.createElement(pl,{$clickable:a||!1,onClick:()=>a&&d(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},ct.createElement(wa,null,ct.createElement(wa,{$alignItems:"center",$gap:8},n&&ct.createElement(wa,{$alignItems:"center"},ct.createElement(n,{size:20})),!!e&&ct.createElement(ul,{transform:"capitalize"},e),t===sn.Loading?ct.createElement(Xa,null):void 0!==t&&ct.createElement(Bi,{label:t})),(!!i||a)&&ct.createElement(hl,null,"function"==typeof i?ct.createElement(i,null):i,a&&ct.createElement(Za,{extend:c}))),!!o&&ct.createElement(ml,null,o)):null,(!a||a&&c)&&(l||ct.createElement(ll,{data:s})))},xl=vt.div`
896
+ visibility: hidden;
897
+ `,fl=vt(wa)`
898
+ align-self: stretch;
899
+ width: calc(100% - 32px);
900
+ padding: 16px;
901
+ border-radius: 16px;
902
+ background-color: ${({theme:e})=>e.colors.secondary+gi.opacity.hex["005"]};
903
+ ${({theme:e,$withClick:t})=>t?Tt`
904
+ &:hover {
905
+ cursor: pointer;
906
+ background-color: ${e.colors.secondary+gi.opacity.hex["010"]};
907
+ ${xl} {
908
+ visibility: visible;
909
+ }
910
+ }
911
+ `:`\n &:hover {\n ${xl} {\n visibility: visible;\n }\n }\n `}
912
+ `,$l=vt(wa)`
913
+ margin-left: auto;
914
+ gap: 8px;
915
+ `,yl=vt(bi)`
916
+ font-size: 10px;
917
+ color: ${({theme:e})=>e.text.grey};
918
+ `,bl=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=gi.useTheme(),[s,l]=ut(0),c=ht(null),d=ht(null);return mt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),ct.createElement(fl,{ref:c,$gap:8,$withClick:!!i,onClick:i},ct.createElement(Ar,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&ct.createElement(kr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&ct.createElement(yl,null,"•"),t&&ct.createElement(kr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),ct.createElement($l,{ref:d},a&&ct.createElement(ct.Fragment,null,ct.createElement(lr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},wl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===en.Source?"uninstrument":"delete";return ct.createElement(rp,{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:an.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}})},kl=vt(Vi)`
919
+ display: flex;
920
+ align-items: center;
921
+ justify-content: center;
922
+ font-size: 14px;
923
+ gap: 6px;
924
+ min-width: 100px;
925
+ `,vl=({endpoint:e="/",variant:t="secondary"})=>ct.createElement(kl,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer")},ct.createElement(et,{size:18}),"Docs"),Sl=vt(wa)`
926
+ border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
927
+ `,El=vt(bi)`
928
+ padding: 12px;
929
+ font-size: 14px;
930
+ color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
931
+ border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
932
+ cursor: pointer;
933
+ display: flex;
934
+ align-items: center;
935
+ gap: 8px;
936
+ `,Cl=({tabs:e,hideBorder:t=!1})=>e?.length?ct.createElement(Sl,{$hideBorder:t},e.map(({label:e,icon:t,onClick:n,selected:o})=>ct.createElement(El,{key:`tab-${e}`,onClick:n,$selected:o},e,t&&ct.createElement(t,null)))):null,Tl=vt.section`
937
+ padding: 0px 32px;
938
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
939
+ `,Al=vt.div`
940
+ height: 76px;
941
+ display: flex;
942
+ justify-content: space-between;
943
+ flex-shrink: 0;
944
+ align-self: stretch;
945
+ `,Nl=vt.div`
946
+ display: flex;
947
+ align-items: center;
948
+ gap: ${({$gap:e})=>e||16}px;
949
+ `,Dl=vt(bi)`
950
+ font-size: 18px;
951
+ line-height: 26px;
952
+ max-width: ${({$maxWidth:e})=>e};
953
+ overflow: hidden;
954
+ white-space: nowrap;
955
+ text-overflow: ellipsis;
956
+ `,Il=vt(Vi)`
957
+ gap: 8px;
958
+ `,Ol=vt(Vi)``,_l=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:c})=>ct.createElement(Tl,null,ct.createElement(Al,null,ct.createElement(Nl,null,n?.length||o?.length?ct.createElement(Ar,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?ct.createElement(r,null):r||null)||ct.createElement(Oa,{text:a||i,withIcon:!!a},i&&ct.createElement(Dl,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),ct.createElement(Nl,{$gap:2},s,l.map((e,t)=>ct.createElement(Il,{key:`header-action-button-${t}`,...e})),ct.createElement(Ol,{"data-id":"drawer-close",variant:"secondary",onClick:e},ct.createElement(tt,{size:12})))),ct.createElement(Cl,{tabs:c,hideBorder:!0})),zl=vt.div`
959
+ display: flex;
960
+ justify-content: space-between;
961
+ gap: 8px;
962
+ padding: 24px 18px 24px 32px;
963
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
964
+ background-color: ${({theme:e})=>e.colors.translucent_bg};
965
+ transform: translateY(100%);
966
+ `,Rl=vt(wa)`
967
+ margin-right: auto;
968
+ `,Fl=vt(wa)`
969
+ margin: 0 auto;
970
+ `,Ll=vt(wa)`
971
+ margin-left: auto;
972
+ `,Ml=vt(Vi)`
973
+ min-width: 140px;
974
+ font-size: 14px;
975
+ `,Pl=({isOpen:e,leftButtons:t=[],centerButtons:n=[],rightButtons:o=[]})=>{const i=ba({container:zl,animateIn:gi.animations.slide.in.bottom,animateOut:gi.animations.slide.out.bottom});return ct.createElement(i,{enter:e},ct.createElement(Rl,null,t.map((e,t)=>ct.createElement(Ml,{key:`footer-left-button-${t}`,...e}))),ct.createElement(Fl,null,n.map((e,t)=>ct.createElement(Ml,{key:`footer-center-button-${t}`,...e}))),ct.createElement(Ll,null,o.map((e,t)=>ct.createElement(Ml,{key:`footer-right-button-${t}`,...e}))))},Bl=vt.div`
976
+ position: fixed;
977
+ top: 0;
978
+ bottom: 0;
979
+ ${({$position:e})=>e}: 0;
980
+ z-index: 1000;
981
+ width: ${({$width:e})=>e};
982
+ background: ${({theme:e})=>e.colors.translucent_bg};
983
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+gi.opacity.hex["010"]};
984
+ overflow-y: auto;
985
+ `,jl=vt.div`
986
+ display: flex;
987
+ flex-direction: column;
988
+ height: 100%;
989
+ `,Ul=vt.div`
990
+ flex-grow: 1;
991
+ padding: 24px 32px;
992
+ overflow-y: auto;
993
+ `,Wl=({isOpen:e,onClose:t,closeOnEscape:n=!0,position:o="right",width:i="300px",children:a,header:r,footer:s})=>{ca({key:"Escape",active:e&&n},()=>t());const l=ba({container:Bl,animateIn:gi.animations.slide.in[o],animateOut:gi.animations.slide.out[o]});return e?Rt.createPortal(ct.createElement(ct.Fragment,null,ct.createElement(Ea,{hidden:!e,onClick:t}),ct.createElement(l,{"data-id":"drawer",enter:e,$position:o,$width:i},ct.createElement(jl,null,ct.createElement(_l,{onClose:t,width:i,...r}),ct.createElement(Ul,null,a),ct.createElement(Pl,{...s})))),document.body):null},Vl=vt.div`
994
+ display: flex;
995
+ align-items: center;
996
+ gap: 6px;
997
+ margin-bottom: 4px;
998
+ `,Hl=vt(bi)`
999
+ font-size: 14px;
1000
+ opacity: 0.8;
1001
+ line-height: 22px;
1002
+ overflow: hidden;
1003
+ white-space: nowrap;
1004
+ text-overflow: ellipsis;
1005
+ color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
1006
+ `,ql=vt(bi)`
1007
+ font-size: 12px;
1008
+ color: ${({theme:e})=>e.text.darker_grey};
1009
+ opacity: 0.8;
1010
+ `,Jl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?ct.createElement(Vl,{style:o},ct.createElement(Oa,{text:n,withIcon:!0},ct.createElement(Hl,{$status:i},e),!t&&ct.createElement(ql,null,"(optional)"))):null,Gl=vt.div`
1011
+ display: flex;
1012
+ flex-direction: column;
1013
+ position: relative;
1014
+ width: 100%;
1015
+ `,Yl=vt.div`
1016
+ width: 100%;
1017
+ display: flex;
1018
+ align-items: center;
1019
+ height: 36px;
1020
+ gap: 12px;
1021
+ transition: border-color 0.3s;
1022
+ border-radius: 32px;
1023
+ border: 1px solid ${({theme:e})=>e.colors.border};
1024
+ ${({$disabled:e})=>e&&Tt`
1025
+ cursor: not-allowed;
1026
+ opacity: 0.6;
1027
+ `}
1028
+ ${({$isActive:e,$hasError:t,$status:n})=>e?Tt`
1029
+ border-color: ${({theme:e})=>e.colors.secondary};
1030
+ `:t?Tt`
1031
+ border-color: ${({theme:e})=>e.text.error};
1032
+ `:n?Tt`
1033
+ border-color: ${({theme:e})=>e.text[n]};
1034
+ `:""}
1035
+ &:hover {
1036
+ border-color: ${({theme:e})=>e.colors.secondary};
1037
+ }
1038
+ &:focus-within {
1039
+ border-color: ${({theme:e})=>e.colors.secondary};
1040
+ }
1041
+ `,Kl=vt.input`
1042
+ padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1043
+ flex: 1;
1044
+ min-width: 150px;
1045
+ width: 100%;
1046
+ border: none;
1047
+ outline: none;
1048
+ background: none;
1049
+ color: ${({theme:e})=>e.text.secondary};
1050
+ font-size: 14px;
1051
+ font-family: ${({theme:e})=>e.font_family.primary};
1052
+ font-weight: 300;
1053
+ &::placeholder {
1054
+ color: ${({theme:e})=>e.text.secondary};
1055
+ font-family: ${({theme:e})=>e.font_family.primary};
1056
+ opacity: 0.4;
1057
+ font-size: 14px;
1058
+ font-weight: 300;
1059
+ line-height: 22px; /* 157.143% */
1060
+ }
1061
+ &:disabled {
1062
+ cursor: not-allowed;
1063
+ opacity: 0.6;
1064
+ }
1065
+ &::-webkit-inner-spin-button,
1066
+ &::-webkit-outer-spin-button {
1067
+ -webkit-appearance: none;
1068
+ margin: 0;
1069
+ }
1070
+ `,Xl=vt.div`
1071
+ display: flex;
1072
+ align-items: center;
1073
+ margin-left: 12px;
1074
+ `,Ql=vt(Xl)`
1075
+ cursor: pointer;
1076
+ `,Zl=vt.button`
1077
+ background-color: ${({theme:e})=>e.colors.primary};
1078
+ border: none;
1079
+ color: ${({theme:e})=>e.text.secondary};
1080
+ padding: 8px 16px;
1081
+ border-radius: 20px;
1082
+ cursor: pointer;
1083
+ margin-left: 8px;
1084
+ &:hover {
1085
+ background-color: ${({theme:e})=>e.colors.secondary};
1086
+ }
1087
+ &:disabled {
1088
+ background-color: ${({theme:e})=>e.colors.border};
1089
+ cursor: not-allowed;
1090
+ }
1091
+ `,ec=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:c,type:d=on.Text,name:p,status:u,...m})=>{const h=gi.useTheme(),g=d===on.Password,[x,f]=ut(!1);return ct.createElement(Gl,null,ct.createElement(Jl,{title:a,required:s,tooltip:r,status:u}),ct.createElement(Yl,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?ct.createElement(Ql,{onClick:()=>f(e=>!e)},x?ct.createElement(nt,{size:14,fill:h.text.grey}):ct.createElement(ot,{size:14,fill:h.text.grey})):e?ct.createElement(Xl,null,ct.createElement(e,{size:14,fill:h.text.grey})):null,ct.createElement(Kl,{"data-id":p,type:x||d===on.Number?on.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===on.Number&&(e.target.value=Do(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&ct.createElement(Zl,{onClick:n,disabled:m.disabled},t)),!!i&&ct.createElement(vi,null,i))},tc=vt.div`
1092
+ display: flex;
1093
+ flex-direction: column;
1094
+ align-items: center;
1095
+ `,nc=vt.div`
1096
+ display: flex;
1097
+ align-items: center;
1098
+ gap: 8px;
1099
+ `,oc=vt(bi)`
1100
+ color: ${({theme:e})=>e.text.darker_grey};
1101
+ `,ic=vt(bi)`
1102
+ color: ${({theme:e})=>e.colors.border};
1103
+ font-size: 14px;
1104
+ font-weight: 200;
1105
+ line-height: 20px;
1106
+ text-align: center;
1107
+ `,ac=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=gi.useTheme();return ct.createElement(tc,null,ct.createElement(nc,null,ct.createElement(it,{fill:n.text.dark_grey}),ct.createElement(oc,null,e)),t&&ct.createElement(ic,null,t))},rc=vt.div`
1108
+ display: flex;
1109
+ flex-direction: column;
1110
+ min-width: 120px;
1111
+ width: 100%;
1112
+ opacity: ${({$disabled:e})=>e?.5:1};
1113
+ `,sc=vt.div`
1114
+ position: relative;
1115
+ `,lc=vt.div`
1116
+ display: flex;
1117
+ align-items: center;
1118
+ justify-content: space-between;
1119
+ height: 36px;
1120
+ padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
1121
+ border-radius: 32px;
1122
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1123
+
1124
+ ${({$isOpen:e,$isMulti:t,theme:n})=>e&&!t?Tt`
1125
+ border: 1px solid ${n.text.grey};
1126
+ background: ${n.colors.dropdown_bg_2};
1127
+ `:Tt`
1128
+ border: 1px solid ${n.colors.border};
1129
+ background: transparent;
1130
+ `};
1131
+
1132
+ ${({$hasError:e,$status:t})=>e?Tt`
1133
+ border-color: ${({theme:e})=>e.text.error};
1134
+ `:t?Tt`
1135
+ border-color: ${({theme:e})=>e.text[t]};
1136
+ `:""}
1137
+
1138
+ &:hover {
1139
+ border-color: ${({$isMulti:e,$hasSelections:t,$disabled:n,theme:o})=>n?"auto":e&&t?o.colors.border:o.colors.secondary};
1140
+ }
1141
+ `,cc=vt.div`
1142
+ display: flex;
1143
+ align-items: center;
1144
+ gap: 4px;
1145
+ `,dc=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=ut(!1),[x,f]=ut(!1),$=ht(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(rc,{$disabled:s},ct.createElement(Jl,{title:i,required:d,tooltip:a,status:m}),ct.createElement(sc,{ref:$},ct.createElement(lc,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&y()},ct.createElement(hc,{value:t,placeholder:r,onDeselect:o}),ct.createElement(cc,null,l&&ct.createElement(Bi,{label:b,filled:!!b}),ct.createElement(Za,{extend:h}))),h&&ct.createElement(fc,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||y()},onDeselect:e=>{o?.(e),l||y()},isMulti:l,showSearch:c})),!!p&&ct.createElement(vi,null,p))},pc=vt(cc)`
1146
+ max-width: calc(100% - 50px);
1147
+ overflow-x: auto;
1148
+ `,uc=vt(bi)`
1149
+ display: flex;
1150
+ align-items: center;
1151
+ gap: 2px;
1152
+ padding: 4px 12px;
1153
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
1154
+ border-radius: 360px;
1155
+ white-space: nowrap;
1156
+ text-overflow: ellipsis;
1157
+ img {
1158
+ &:hover {
1159
+ transform: scale(2);
1160
+ transition: transform 0.3s;
1161
+ }
1162
+ }
1163
+ `,mc=vt(bi)``,hc=({value:e,placeholder:t,onDeselect:n})=>{const o=gi.useTheme();return Array.isArray(e)?e.length?ct.createElement(pc,null,e.map(e=>ct.createElement(uc,{key:`multi-label-${e.id}`,size:14},e.value,ct.createElement(lr,{orientation:"vertical",length:"10px",margin:"0 4px"}),ct.createElement(at,{size:12,onClick:t=>{t.stopPropagation(),n?.(e)}})))):ct.createElement(mc,{size:14,color:o.text.darker_grey},t):ct.createElement(mc,{size:14,color:e?.value?void 0:o.text.darker_grey},e?.value||t)},gc=vt.div`
1164
+ position: absolute;
1165
+ ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1166
+ left: 0;
1167
+ z-index: 1;
1168
+ display: flex;
1169
+ flex-direction: column;
1170
+ overflow-y: auto;
1171
+ width: calc(100% - 16px);
1172
+ max-height: 200px;
1173
+ gap: 8px;
1174
+ padding: 8px;
1175
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1176
+ border: 1px solid ${({theme:e})=>e.colors.border};
1177
+ border-radius: 24px;
1178
+ `,xc=vt.div`
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ align-items: center;
1182
+ `,fc=({openUpwards:e,options:t,value:n,onSelect:o,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=ut(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return ct.createElement(gc,{$openUpwards:e},r&&ct.createElement(xc,null,ct.createElement(ec,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),ct.createElement(lr,{thickness:1,margin:"8px 0 0 0"})),0===c.length?ct.createElement(ac,{subTitle:r&&s?void 0:" "}):c.map((e,t)=>ct.createElement(yc,{key:`dropdown-option-${e.id||t}`,option:e,value:n,isMulti:a,onSelect:o,onDeselect:i})))},$c=vt.div`
1183
+ padding: 8px 12px;
1184
+ cursor: pointer;
1185
+ display: flex;
1186
+ justify-content: space-between;
1187
+ align-items: center;
1188
+ border-radius: 32px;
1189
+ &:hover,
1190
+ &.selected {
1191
+ background: ${({theme:e})=>e.colors.majestic_blue+gi.opacity.hex["024"]};
1192
+ }
1193
+ `,yc=({option:e,value:t,isMulti:n,onSelect:o,onDeselect:i})=>{const a=gi.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?o?.(e):i?.(e);return n?ct.createElement($c,{className:r?"selected":"",onClick:()=>s(!r)},ct.createElement(Ra,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):ct.createElement($c,{className:r?"selected":"",onClick:()=>r?i?.(e):o?.(e)},ct.createElement(wa,{$gap:8},e.icon&&ct.createElement(e.icon,null),ct.createElement(bi,{size:14},e.value)),r&&ct.createElement(He,null))},bc=({error:e})=>{const t=gi.useTheme(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return ct.createElement("div",{style:n.container},ct.createElement("h2",null,"Something went wrong!"),ct.createElement("pre",{style:n.errorMessage},e?.message||"Unknown Error"),ct.createElement("details",{style:n.errorStackWrapper},ct.createElement("summary",null,"Stack Trace"),ct.createElement("pre",{style:n.errorStack},e?.stack||"Unknown Stack")),ct.createElement("p",{style:n.infoText},"Try refreshing the page or contact support"),ct.createElement(Vi,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},wc=({children:e})=>ct.createElement(Mt,{FallbackComponent:e=>ct.createElement(gi.Provider,null,ct.createElement(bc,{...e}))},e),kc=vt(wa)`
1194
+ position: relative;
1195
+ width: calc(100% - 24px);
1196
+ padding: 12px;
1197
+ background-color: ${({theme:e})=>e.colors.dark_grey};
1198
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+gi.opacity.hex["050"]};
1199
+ `,vc=vt(wa)`
1200
+ margin-right: auto;
1201
+ margin-left: 32px;
1202
+ gap: 12px;
1203
+ `,Sc=vt(wa)`
1204
+ margin-left: auto;
1205
+ margin-right: 32px;
1206
+ gap: 12px;
1207
+ `,Ec=vt(wa)`
1208
+ position: absolute;
1209
+ left: 50%;
1210
+ transform: translateX(-50%);
1211
+ gap: 12px;
1212
+ `,Cc=({left:e=[],center:t=[],right:n=[]})=>ct.createElement(kc,null,ct.createElement(vc,null,e.map((e,t)=>e&&ct.createElement(dt,{key:t},e))),ct.createElement(Ec,null,t.map((e,t)=>e&&ct.createElement(dt,{key:t},e))),ct.createElement(Sc,null,n.map((e,t)=>e&&ct.createElement(dt,{key:t},e)))),Tc=vt.div`
1213
+ width: fit-content;
1214
+ height: fit-content;
1215
+ padding: 4px;
1216
+ gap: 4px;
1217
+ border-radius: 32px;
1218
+ border: 1px solid ${({theme:e})=>e.colors.border+gi.opacity.hex["070"]};
1219
+
1220
+ display: flex;
1221
+ flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1222
+ align-items: center;
1223
+ justify-content: center;
1224
+ `,Ac=vt.div`
1225
+ width: 32px;
1226
+ height: 32px;
1227
+
1228
+ border-radius: 100%;
1229
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+gi.opacity.hex["070"]:e.colors.secondary+gi.opacity.hex["012"]};
1230
+ transition: background-color 0.3s;
1231
+
1232
+ display: flex;
1233
+ align-items: center;
1234
+ justify-content: center;
1235
+
1236
+ cursor: pointer;
1237
+ `,Nc=({orientation:e="vertical",flip:t,mainIcons:n,subIcons:o})=>ct.createElement(Tc,{$orientation:e,$flip:t},n.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>ct.createElement(Oa,{key:`main-nav-icon-${i}`,text:o},ct.createElement(Ac,{$selected:t,onClick:n},ct.createElement(e,{size:20})))),!!n.length&&!!o.length&&ct.createElement(lr,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),o.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>ct.createElement(Oa,{key:`sub-nav-icon-${i}`,text:o},ct.createElement(Ac,{$selected:t,onClick:n},ct.createElement(e,{size:20}))))),Dc=vt.div`
1238
+ display: flex;
1239
+ flex-direction: column;
1240
+ width: 100%;
1241
+ `,Ic=vt.div`
1242
+ display: flex;
1243
+ flex-direction: column;
1244
+ gap: 8px;
1245
+ `,Oc=vt.div`
1246
+ display: flex;
1247
+ align-items: center;
1248
+ gap: 16px;
1249
+ `,_c=vt(xr)`
1250
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1251
+ opacity: ${({$disabled:e})=>e?.5:1};
1252
+ `,zc=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=ut(t||e);mt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=ht(JSON.stringify(c));mt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,n&&n(c))},[c,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(Dc,null,ct.createElement(Jl,{title:o,required:a,tooltip:i}),ct.createElement(Ic,null,s.map((e,t)=>{const n=t===s.length-1;return ct.createElement(Oc,{key:`input-list-${t}`},ct.createElement(ec,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:yo(e)&&!u&&n}),t===s.length-1&&ct.createElement(_c,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},ct.createElement(Ye,null)),ct.createElement(_c,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},ct.createElement(st,null)))})),!!r&&ct.createElement(vi,null,r))},Rc=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:f}=e,$=n[c];return f&&!f(n)?null:ct.createElement("td",{key:`input-table-${o}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===nn.Dropdown){const e=x?.find(e=>e.id===$);return ct.createElement(dc,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(c,e.id,o),onDeselect:()=>r(c,"",o),hasError:!!s&&(!m||m&&yo($))})}{const e=i>1&&o===i-1&&0===t&&yo($);return ct.createElement(ec,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:$,onChange:({target:{value:e}})=>r(c,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&yo($))})}})())},Fc=vt.div`
1253
+ display: flex;
1254
+ flex-direction: column;
1255
+ width: 100%;
1256
+ `,Lc=vt.button`
1257
+ margin-top: ${({$marginTop:e})=>e};
1258
+ background: none;
1259
+ border: none;
1260
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1261
+ opacity: ${({disabled:e})=>e?.5:1};
1262
+ `,Mc=({columns:e,initialValues:t=[],value:n,onChange:o,errorMessage:i,limitFieldsPerRow:a})=>{const[r,s]=ut({}),[l,c]=ut(n||t),d=pt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);mt(()=>{if(!l.length){const t={};e.forEach(({keyName:e})=>t[e]=""),s(t),c([t])}},[]);const p=l.filter(e=>{for(const[t,n]of Object.entries(e)){const o=d.get(t);if((!o?.renderCondition||o.renderCondition(e))&&o?.required&&yo(n))return!1}return!0}),u=ht(JSON.stringify(p)),m=p.length!==l.length,h=`${Math.floor(640/((a||e.length)+.4))}px`;mt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,o&&o(p))},[p,o]);const g=(e,t,n)=>{c(o=>{const i=Bn(o);return i[n][e]=t,i})},x=pt(()=>{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(Fc,null,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:h}},ct.createElement(Jl,{title:e,required:n,tooltip:t}))),ct.createElement("th",null))),ct.createElement("tbody",null,l.map((t,n)=>ct.createElement(dt,{key:`input-table-row-${n}`},a&&n>0?ct.createElement("tr",null,ct.createElement("td",{colSpan:x.length},ct.createElement(lr,null))):null,x.map((o,r)=>ct.createElement("tr",{key:`input-table-matrix-${n}-${r}`},o.map((e,o)=>ct.createElement(Rc,{key:`input-table-row-${n}-col-${o}`,col:e,colIdx:o,row:t,rowIdx:n,rowsLength:l.length,maxWidth:h,limitFieldsPerRow:a,errorMessage:i,handleChange:g})),0===r&&ct.createElement("td",null,ct.createElement(Lc,{$marginTop:a?"24px":"0",onClick:()=>{return t=n,void(l.length>1?c(e=>e.filter((e,n)=>n!==t)):e.forEach(({keyName:e,type:n})=>g(e,n===on.Number?"0":"",t)));var t}},ct.createElement(st,null))))))))),!!i&&ct.createElement(vi,null,i),ct.createElement(mr,{onClick:()=>{c(e=>{const t=Bn(e);return t.push(Bn(r)),t})},disabled:m}))},Pc=vt.div`
1263
+ display: flex;
1264
+ flex-direction: column;
1265
+ width: 100%;
1266
+ `,Bc=vt.div`
1267
+ display: flex;
1268
+ flex-direction: column;
1269
+ gap: 8px;
1270
+ `,jc=vt.div`
1271
+ display: flex;
1272
+ align-items: center;
1273
+ gap: 8px;
1274
+ `,Uc=vt.div`
1275
+ width: 100%;
1276
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1277
+ `,Wc=vt(xr)`
1278
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1279
+ opacity: ${({$disabled:e})=>e?.5:1};
1280
+ `,Vc={key:"",value:""},Hc=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=ut(t||e);mt(()=>{p.length||u([{...Vc}])},[]);const m=p.filter(({key:e,value:t})=>!yo(e.trim())&&!yo(t.trim())),h=ht(JSON.stringify(m));mt(()=>{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(Pc,null,ct.createElement(Jl,{title:o,required:r,tooltip:i}),ct.createElement(Bc,null,p.map(({key:e,value:t},n)=>ct.createElement(jc,{key:`key-value-input-list-${n}`},ct.createElement(Uc,{$maxWidth:d},ct.createElement(ec,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:yo(t)&&!x&&n===p.length-1})),ct.createElement(Uc,{$maxWidth:n===p.length-1?d-38:d},ct.createElement(ec,{placeholder:c,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&yo(t)),autoFocus:!1})),n===p.length-1&&ct.createElement(Wc,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Vc}),t})}},ct.createElement(Ye,null)),ct.createElement(Wc,{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(st,null))))),!!s&&ct.createElement(vi,null,s))},qc=vt.div`
1281
+ position: fixed;
1282
+ top: 50%;
1283
+ left: 50%;
1284
+ transform: translate(-50%, -50%);
1285
+ z-index: 1000;
1286
+ width: fit-content;
1287
+ background: ${({theme:e})=>e.colors.translucent_bg};
1288
+ border: ${({theme:e})=>`1px solid ${e.colors.border}`};
1289
+ border-radius: 40px;
1290
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+gi.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}`}};
1291
+ `,Jc=vt.div`
1292
+ display: flex;
1293
+ justify-content: space-between;
1294
+ align-items: center;
1295
+ height: 80px;
1296
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1297
+ padding: 0 24px;
1298
+ `,Gc=vt.div`
1299
+ cursor: pointer;
1300
+ display: flex;
1301
+ align-items: center;
1302
+ gap: 8px;
1303
+ `,Yc=vt.div`
1304
+ display: flex;
1305
+ align-items: center;
1306
+ gap: 8px;
1307
+ `,Kc=vt(va)`
1308
+ min-width: 350px;
1309
+ min-height: 150px;
1310
+ `,Xc=vt.div`
1311
+ position: absolute;
1312
+ left: 50%;
1313
+ transform: translateX(-50%);
1314
+ display: flex;
1315
+ align-items: center;
1316
+ justify-content: center;
1317
+ width: 100%;
1318
+ pointer-events: none;
1319
+ `,Qc=vt(bi)`
1320
+ text-transform: uppercase;
1321
+ font-family: ${({theme:e})=>e.font_family.secondary};
1322
+ pointer-events: auto;
1323
+ `,Zc=vt(bi)`
1324
+ text-transform: uppercase;
1325
+ font-weight: 500;
1326
+ font-size: 14px;
1327
+ font-family: ${({theme:e})=>e.font_family.secondary};
1328
+ text-decoration: underline;
1329
+ cursor: pointer;
1330
+ `,ed=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{ca({key:"Escape",active:e&&r},()=>i());const s=ba({container:qc,animateIn:gi.animations.slide.in.center,animateOut:gi.animations.slide.out.center});return e?Rt.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(Jc,null,ct.createElement(Gc,{onClick:i},ct.createElement(tt,null),ct.createElement(Zc,null,"Cancel")),ct.createElement(Xc,null,ct.createElement(Qc,null,n.title)),ct.createElement(Yc,null,o)),ct.createElement(Kc,null,a))),document.body):null},td=vt.div`
1331
+ display: flex;
1332
+ flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1333
+ gap: ${({$isVertical:e})=>e?"12px":"24px"};
1334
+ ${({$hasError:e})=>e&&Tt`
1335
+ border: 1px solid ${({theme:e})=>e.text.error};
1336
+ border-radius: 32px;
1337
+ padding: 8px;
1338
+ `}
1339
+ `,nd=(e,t)=>!t?.length||!!t?.find(t=>t===e),od=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=ut(1===a.length),c=ht(JSON.stringify(a));return mt(()=>{const e=a;e.length||Rn.forEach(({id:t})=>{nd(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,r(e),l(1===e.length)),()=>{c.current=""}},[i]),ct.createElement("div",null,t&&ct.createElement(Jl,{title:t,required:n}),ct.createElement(td,{$isVertical:e,$hasError:!!o},Rn.map(e=>{const t=nd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?ct.createElement(Ra,{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(vi,null,o))},id=vt.div`
1340
+ display: flex;
1341
+ gap: 8px;
1342
+ align-items: center;
1343
+ `,ad=vt(Vi)`
1344
+ display: flex;
1345
+ align-items: center;
1346
+ justify-content: center;
1347
+ gap: 8px;
1348
+ min-width: 90px;
1349
+ `,rd=({buttons:e})=>{const t=gi.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(id,null,e.map((e,t)=>ct.createElement(Oa,{key:t,text:e.tooltip||""},ct.createElement(ad,{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})))))},sd=vt.div`
1350
+ position: relative;
1351
+ &.animated {
1352
+ overflow: hidden;
1353
+ padding-bottom: 1px;
1354
+ border-radius: 32px;
1355
+ animation: ${({$isLeaving:e})=>e?gi.animations.slide.out.bottom:gi.animations.slide.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1356
+ }
1357
+ `,ld=vt.div`
1358
+ position: absolute;
1359
+ bottom: -1px;
1360
+ left: 0;
1361
+ z-index: -1;
1362
+ width: 100%;
1363
+ height: 100%;
1364
+ border-radius: 32px;
1365
+ background-color: ${({$type:e,theme:t})=>t.text[e]};
1366
+ animation: ${gi.animations.progress.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1367
+ `,cd=vt.div`
1368
+ display: flex;
1369
+ align-items: center;
1370
+ flex: 1;
1371
+ gap: 8px;
1372
+ padding: 0 12px;
1373
+ border-radius: 32px;
1374
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
1375
+ `,dd=vt.div`
1376
+ display: flex;
1377
+ align-items: center;
1378
+ margin: 0 auto 0 0;
1379
+ padding: 8px 0;
1380
+ max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
1381
+ min-height: 12px;
1382
+ `,pd=vt(bi)`
1383
+ font-size: 14px;
1384
+ color: ${({$type:e,theme:t})=>t.text[e]};
1385
+ `,ud=vt(bi)`
1386
+ color: ${({$type:e,theme:t})=>t.text[e]};
1387
+ font-size: 12px;
1388
+ `,md=vt(wa)``,hd=vt(bi)`
1389
+ text-transform: uppercase;
1390
+ text-decoration: underline;
1391
+ font-size: 12px;
1392
+ font-family: ${({theme:e})=>e.font_family.secondary};
1393
+ white-space: nowrap;
1394
+ cursor: pointer;
1395
+ &:hover {
1396
+ transform: scale(1.1);
1397
+ transition: transform 0.3s;
1398
+ }
1399
+ `,gd=({type:e,icon:t,title:n,message:o,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const c=gi.useTheme(),[d,p]=ut(!1),u=ht(null),m=ht(null),h=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};mt(()=>(u.current=setTimeout(()=>h({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||uo(e,c);return ct.createElement(sd,{className:a?"animated":"",$duration:r,$isLeaving:d,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(cd,{"data-id":"toast",$type:e,style:l},ct.createElement(g,{fill:c.text[e]}),ct.createElement(dd,{$withAction:!!i,$overrideMaxWidth:s},n&&ct.createElement(pd,{$type:e},n),n&&o&&ct.createElement(lr,{orientation:"vertical",type:e}),o&&ct.createElement(ud,{$type:e},o)),(!!i||!!a)&&ct.createElement(md,null,i&&ct.createElement(hd,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&ct.createElement(xr,{"data-id":"toast-close",onClick:()=>h({asSeen:!0})},ct.createElement(tt,{size:12})))),a&&ct.createElement(ld,{ref:m,$duration:r,$type:e}))},xd=vt(ka)`
1400
+ gap: 12px;
1401
+ `,fd=vt(wa)`
1402
+ width: 100%;
1403
+ gap: 12px;
1404
+ align-items: flex-end;
1405
+ `,$d=({clientX:e=0,flipX:t,clientY:n=0,flipY:o,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const m=gi.useTheme(),{popupRef:h,popupPosition:g,handlePosition:x}=pa({onClickOutside:a});return ca({key:"Enter",active:i},r),mt(()=>x(e,n),[e,n]),0===g.top&&0!==n||0===g.left&&0!==e?null:ct.createElement(Ki,{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(xd,null,ct.createElement(Oa,{text:d,withIcon:!0},ct.createElement(bi,{size:14},c)),ct.createElement(fd,null,u,ct.createElement(wa,{$gap:6},ct.createElement(xr,{withBorder:!0,onClick:a,tooltip:"Cancel"},ct.createElement(at,null)),ct.createElement(xr,{withBorder:!0,backgroundColor:m.colors.secondary,onClick:r,tooltip:"Save"},ct.createElement(He,{fill:m.text.primary})),s&&ct.createElement(xr,{onClick:l,tooltip:"Undo"},ct.createElement(st,null)))),p&&ct.createElement(gd,{type:an.Warning,message:p})))},yd=vt.div`
1406
+ display: flex;
1407
+ justify-content: space-between;
1408
+ align-items: center;
1409
+ gap: 16px;
1410
+ `,bd=vt.div`
1411
+ display: flex;
1412
+ flex-direction: column;
1413
+ gap: 4px;
1414
+ `,wd=vt.div`
1415
+ display: flex;
1416
+ align-items: center;
1417
+ gap: 8px;
1418
+ `,kd=vt(bi)``,vd=vt(bi)``,Sd=({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(yd,null,ct.createElement(bd,null,ct.createElement(wd,null,o&&ct.createElement(o,{size:r}),ct.createElement(kd,{weight:300,size:r},e),void 0!==n&&ct.createElement(Bi,{label:n,filled:!!n})),ct.createElement(vd,{weight:200,opacity:.8,size:s},t)),i&&ct.createElement("div",null,i))},Ed=vt.div`
1419
+ position: relative;
1420
+ gap: 0;
1421
+ z-index: 0;
1422
+ display: grid;
1423
+ grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1424
+ `,Cd=vt.button`
1425
+ flex: 1;
1426
+ display: flex;
1427
+ align-items: center;
1428
+ justify-content: center;
1429
+ gap: 4px;
1430
+ padding: 6px 12px;
1431
+ background-color: transparent;
1432
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1433
+ border: 1px solid ${({theme:e})=>e.colors.border};
1434
+ cursor: pointer;
1435
+ &:hover {
1436
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
1437
+ }
1438
+ `,Td=vt.div`
1439
+ position: absolute;
1440
+ top: ${({$y:e})=>e}px;
1441
+ left: ${({$x:e})=>e}px;
1442
+ z-index: -1;
1443
+ width: ${({$width:e})=>e}px;
1444
+ height: ${({$height:e})=>e}px;
1445
+ background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1446
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1447
+ transition: all 0.3s;
1448
+ `,Ad=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=ut(e[o]?.selectedBgColor||""),[r,s]=ut({width:0,height:0}),[l,c]=ut({x:0,y:0}),d=ht(null);return mt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*o,y:0}))},[t,o]),ct.createElement(Ed,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return ct.createElement(Cd,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&ct.createElement(o,null),i&&ct.createElement(bi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),ct.createElement(Td,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},Nd=vt(Vi)`
1449
+ gap: 8px;
1450
+ text-transform: none;
1451
+ text-decoration: none;
1452
+ border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1453
+ &.not-selected {
1454
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+gi.opacity.hex["060"]};
1455
+ &:hover {
1456
+ background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1457
+ }
1458
+ }
1459
+ &.selected {
1460
+ background-color: ${({theme:e})=>e.colors.majestic_blue+gi.opacity.hex["030"]};
1461
+ }
1462
+ `,Dd=vt(bi)`
1463
+ white-space: nowrap;
1464
+ overflow: hidden;
1465
+ text-overflow: ellipsis;
1466
+ font-size: 14px;
1467
+ `,Id=({label:e,onClick:t,icon:n,iconSrc:o,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=gi.useTheme();return ct.createElement(Nd,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d},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(Dd,null,e),r&&ct.createElement("div",null,ct.createElement(He,{fill:p.colors.majestic_blue_soft})),void 0!==i&&ct.createElement(Bi,{label:i,filled:a||r}))};var Od;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Od||(Od={}));const _d=vt.div`
1468
+ display: flex;
1469
+ flex-direction: column;
1470
+ gap: 32px;
1471
+ `,zd=vt.div`
1472
+ display: flex;
1473
+ gap: 16px;
1474
+ padding: 8px;
1475
+ opacity: ${({$state:e})=>e===Od.Active?1:e===Od.Disabled?.5:.8};
1476
+ transition: all 0.3s;
1477
+ `,Rd=vt(wa)`
1478
+ justify-content: center;
1479
+ width: 24px;
1480
+ height: 24px;
1481
+ border-radius: 32px;
1482
+ border: ${({theme:e,$state:t})=>t===Od.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1483
+ opacity: ${({$state:e})=>e===Od.Finished?.8:1};
1484
+ `,Fd=vt(ka)`
1485
+ justify-content: center;
1486
+ gap: 8px;
1487
+ `,Ld=vt(bi)``,Md=vt(bi)``,Pd=({data:e,currentStep:t=0})=>{const[n,o]=ut([]);return mt(()=>{o(e.map((e,n)=>n<t-1?{...e,state:Od.Finished,subtitle:e.subtitle||an.Success}:n===t-1?{...e,state:Od.Active,subtitle:""}:{...e,state:Od.Disabled,subtitle:""}))},[t,e]),ct.createElement(_d,null,n.map((e,t)=>ct.createElement(zd,{key:t,$state:e.state},ct.createElement(Rd,{$state:e.state},[Od.Active,Od.Disabled].includes(e.state)?ct.createElement(bi,{size:12},e.stepNumber):e.state===Od.Finished?ct.createElement(He,{size:20}):null),ct.createElement(Fd,null,ct.createElement(Ld,{family:"secondary"},e.title),e.subtitle&&ct.createElement(Md,{size:10,weight:300},e.subtitle)))))},Bd=vt(wa)`
1488
+ width: fit-content;
1489
+ gap: 6px;
1490
+ padding: 6px 12px;
1491
+ border-radius: 360px;
1492
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
1493
+ `,jd=vt(bi)`
1494
+ color: ${({$type:e,theme:t})=>t.text[e]};
1495
+ `,Ud=({type:e=an.Info,icon:t,title:n,size:o,family:i,children:a,...r})=>ct.createElement(Bd,{$type:e},t&&ct.createElement(t,null),ct.createElement(jd,{$type:e,size:o||12,family:i||"secondary",...r},a||n)),Wd=vt.div`
1496
+ display: flex;
1497
+ flex-direction: column;
1498
+ position: relative;
1499
+ width: 100%;
1500
+ `,Vd=vt.div`
1501
+ width: 100%;
1502
+ display: flex;
1503
+ align-items: center;
1504
+ gap: 12px;
1505
+ transition: border-color 0.3s;
1506
+ border-radius: 24px;
1507
+ border: 1px solid ${({theme:e})=>e.colors.border};
1508
+ ${({$disabled:e})=>e&&Tt`
1509
+ background-color: ${({theme:e})=>e.colors.border};
1510
+ cursor: not-allowed;
1511
+ opacity: 0.6;
1512
+ `}
1513
+
1514
+ ${({$hasError:e})=>e&&Tt`
1515
+ border-color: ${({theme:e})=>e.text.error};
1516
+ `}
1517
+
1518
+ ${({$isActive:e})=>e&&Tt`
1519
+ border-color: ${({theme:e})=>e.colors.secondary};
1520
+ `}
1521
+
1522
+ &:hover {
1523
+ border-color: ${({theme:e})=>e.colors.secondary};
1524
+ }
1525
+ &:focus-within {
1526
+ border-color: ${({theme:e})=>e.colors.secondary};
1527
+ }
1528
+ `,Hd=vt.textarea`
1529
+ flex: 1;
1530
+ border: none;
1531
+ outline: none;
1532
+ background: none;
1533
+ color: ${({theme:e})=>e.text.secondary};
1534
+ font-size: 14px;
1535
+ padding: 12px 20px 0;
1536
+ font-family: ${({theme:e})=>e.font_family.primary};
1537
+ font-weight: 300;
1538
+ line-height: 22px;
1539
+ &::placeholder {
1540
+ color: ${({theme:e})=>e.text.secondary};
1541
+ font-family: ${({theme:e})=>e.font_family.primary};
1542
+ opacity: 0.4;
1543
+ font-size: 14px;
1544
+ font-weight: 300;
1545
+ line-height: 22px; /* 157.143% */
1546
+ }
1547
+
1548
+ &:disabled {
1549
+ background-color: ${({theme:e})=>e.colors.border};
1550
+ cursor: not-allowed;
1551
+ }
1552
+ `,qd=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=ht(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return ct.createElement(Wd,null,ct.createElement(Jl,{title:t,required:o,tooltip:n}),ct.createElement(Vd,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},ct.createElement(Hd,{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(vi,null,e))},Jd=vt.div`
1553
+ display: flex;
1554
+ align-items: center;
1555
+ gap: 12px;
1556
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1557
+ opacity: ${({$disabled:e})=>e?.6:1};
1558
+ `,Gd=vt.div`
1559
+ width: 24px;
1560
+ height: 12px;
1561
+ border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
1562
+ border-radius: 20px;
1563
+ display: flex;
1564
+ align-items: center;
1565
+ padding: 2px;
1566
+ background-color: transparent;
1567
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
1568
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1569
+ opacity: ${({$isActive:e})=>e?1:.5};
1570
+ transition: border-color 0.3s, opacity 0.3s;
1571
+ &::before {
1572
+ content: '';
1573
+ width: 12px;
1574
+ height: 12px;
1575
+ border-radius: 50%;
1576
+ background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
1577
+ transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1578
+ transition: background-color 0.3s, transform 0.3s;
1579
+ }
1580
+ `,Yd=({title:e,tooltip:t,initialValue:n=!1,onChange:o,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=ut(n);return mt(()=>l(n),[n]),ct.createElement(Jd,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),o?o(!s):l(e=>!e))}},!r&&ct.createElement(Gd,{$disabled:i,$isActive:s}),(e||t)&&ct.createElement(Oa,{text:t,withIcon:!0},e&&ct.createElement(bi,{size:14},e)),r&&ct.createElement(Gd,{$disabled:i,$isActive:s}))};var Kd={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 Xd=vt.div`
1581
+ width: ${({$width:e})=>e}px;
1582
+ height: ${({$height:e})=>e}px;
1583
+ position: relative;
1584
+ `,Qd=({width:e=620})=>{const{darkMode:t}=gi.useTheme(),n=e/(620/220),o=e;return ct.createElement(Xd,{$width:o,$height:n},ct.createElement(Pt,{autoplay:!0,loop:!0,animationData:Kd,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},Zd=vt.div`
1585
+ padding: 24px 32px;
1586
+ `,ep=vt.div`
1587
+ padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
1588
+ `,tp=vt(bi)`
1589
+ font-size: 20px;
1590
+ line-height: 28px;
1591
+ `,np=vt(bi)`
1592
+ color: ${({theme:e})=>e.text.grey};
1593
+ width: 416px;
1594
+ font-style: normal;
1595
+ font-weight: 300;
1596
+ line-height: 24px;
1597
+ `,op=vt.div`
1598
+ display: flex;
1599
+ justify-content: space-between;
1600
+ gap: 12px;
1601
+ `,ip=vt(Vi)`
1602
+ width: 250px;
1603
+ `,ap=vt.div`
1604
+ margin-bottom: 12px;
1605
+ `,rp=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ca({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return ct.createElement(ed,{isOpen:e,noOverlay:t,onClose:l},ct.createElement(Zd,null,ct.createElement(tp,null,n),ct.createElement(ep,{$withNote:!!i},ct.createElement(np,null,o)),!!i&&ct.createElement(ap,null,ct.createElement(gd,{type:i.type,title:i.title,message:i.message})),ct.createElement(op,null,ct.createElement(ip,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),ct.createElement(ip,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Oa as $,Ut as A,Wo as B,Ra as C,Uo as D,en as E,Jl as F,rr as G,gl as H,ec as I,Zt as J,Vt as K,ka as L,od as M,Zo as N,ed as O,rd as P,Ca as Q,gd as R,Ad as S,gi as T,jo as U,Li as V,lr as W,Yn as X,ur as Y,wa as Z,To as _,ol as a,fo as a$,sn as a0,uo as a1,En as a2,Xo as a3,jn as a4,Er as a5,no as a6,Dr as a7,Ta as a8,Aa as a9,Ps as aA,ea as aB,pa as aC,Ki as aD,Id as aE,Sa as aF,to as aG,da as aH,Co as aI,dc as aJ,Lo as aK,Rn as aL,Vi as aM,Bo as aN,ua as aO,ia as aP,Po as aQ,xr as aR,Za as aS,mr as aT,br as aU,Ao as aV,Pn as aW,xo as aX,Xa as aY,wn as aZ,ra as a_,cs as aa,eo as ab,Na as ac,nl as ad,va as ae,ac as af,Qd as ag,Bi as ah,Ro as ai,un as aj,Jn as ak,mn as al,Hr as am,hn as an,_n as ao,Qn as ap,ho as aq,No as ar,Zn as as,Jo as at,Qo as au,na as av,Hn as aw,Vn as ax,Wn as ay,Un as az,vi as b,vn as b$,ri as b0,Fn as b1,Fr as b2,On as b3,Bn as b4,Pd as b5,ll as b6,ao as b7,$n as b8,yn as b9,$a as bA,Ar as bB,Kn as bC,wo as bD,oa as bE,Xi as bF,$d as bG,dn as bH,pn as bI,cn as bJ,Xt as bK,Ho as bL,Gn as bM,Ma as bN,co as bO,kr as bP,jt as bQ,Ht as bR,qt as bS,Jt as bT,Gt as bU,Yt as bV,Kt as bW,tn as bX,rn as bY,ln as bZ,gn as b_,fn as ba,bn as bb,xn as bc,Ud as bd,Xn as be,la as bf,zn as bg,ba as bh,oi as bi,go as bj,ya as bk,ta as bl,Sn as bm,yr as bn,Nc as bo,mo as bp,$o as bq,$r as br,Ur as bs,Vr as bt,ko as bu,Io as bv,ha as bw,Ws as bx,kn as by,Qt as bz,Wt as c,Cn as c0,Tn as c1,An as c2,Nn as c3,Ln as c4,qn as c5,oo as c6,io as c7,ro as c8,so as c9,Pl as cA,wc as cB,Cc as cC,vr as cD,Os as cE,Cl as cF,fi as cG,$i as cH,yi as cI,rp as cJ,Ea as cK,lo as ca,po as cb,bo as cc,vo as cd,Eo as ce,Do as cf,Oo as cg,_o as ch,zo as ci,Fo as cj,Mo as ck,Vo as cl,Bt as cm,Kr as cn,Qr as co,es as cp,ns as cq,gs as cr,Cs as cs,$s as ct,ss as cu,zs as cv,bs as cw,Ha as cx,bl as cy,_l as cz,on as d,Mc as e,Yd as f,Hc as g,zc as h,yo as i,nn as j,bi as k,Sd as l,vl as m,qd as n,ei as o,Go as p,ca as q,Wl as r,wl as s,Hi as t,ni as u,an as v,Yo as w,Zi as x,In as y,Dn as z};