@odigos/ui-kit 0.0.128 → 0.0.129

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