@odigos/ui-kit 0.0.128 → 0.0.130

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