@odigos/ui-kit 0.0.121 → 0.0.123

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