@odigos/ui-kit 0.0.211 → 0.0.212

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 (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/chunks/index-CTFaJvLO.js +3 -0
  3. package/lib/chunks/ui-components-DQ5eBxQh.js +2387 -0
  4. package/lib/chunks/vendor-C150cdxb.js +1 -0
  5. package/lib/components/_v2/index.d.ts +1 -0
  6. package/lib/components/_v2/stepper/index.d.ts +11 -0
  7. package/lib/components/v2.js +1 -1
  8. package/lib/components.js +1 -1
  9. package/lib/constants/destinations/index.d.ts +5 -0
  10. package/lib/constants/strings/index.d.ts +12 -0
  11. package/lib/constants.js +1 -1
  12. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
  13. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +4 -7
  14. package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +1 -9
  15. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +10 -5
  16. package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -5
  17. package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +1 -6
  18. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +2 -2
  19. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +10 -5
  20. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +1 -0
  21. package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +36 -0
  22. package/lib/containers/_v2/_forms/add-destination-form/dynamic-fields/index.d.ts +1 -0
  23. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +4 -5
  24. package/lib/containers/_v2/central-connections/index.d.ts +2 -1
  25. package/lib/containers/_v2/index.d.ts +1 -0
  26. package/lib/containers/_v2/onboarding/background/index.d.ts +7 -0
  27. package/lib/containers/_v2/onboarding/get-started/index.d.ts +5 -0
  28. package/lib/containers/_v2/onboarding/index.d.ts +14 -0
  29. package/lib/containers/_v2/onboarding/summary/index.d.ts +12 -0
  30. package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +1 -1
  31. package/lib/containers/v2.js +91 -30
  32. package/lib/containers.js +131 -131
  33. package/lib/contexts.js +1 -1
  34. package/lib/functions.js +1 -1
  35. package/lib/hooks.js +1 -1
  36. package/lib/icons.js +1 -1
  37. package/lib/snippets/_v2/index.d.ts +1 -0
  38. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +5 -0
  39. package/lib/snippets.js +1 -1
  40. package/lib/store.js +1 -1
  41. package/lib/theme.js +1 -1
  42. package/lib/types/destinations/index.d.ts +9 -8
  43. package/lib/types/snapshot/index.d.ts +4 -4
  44. package/lib/types.js +1 -1
  45. package/lib/visuals.js +1 -1
  46. package/package.json +26 -26
  47. package/lib/chunks/index-BURQQLWb.js +0 -3
  48. package/lib/chunks/ui-components-B5U474B5.js +0 -2387
  49. package/lib/chunks/vendor-D99eCWta.js +0 -1
@@ -0,0 +1,2387 @@
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon as i,DeleteAttributeIcon as r,AddClusterInfoIcon as n,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as f,PhpLogo as x,CPlusPlusLogo as y,CSharpLogo as b,DotnetLogo as $,PythonLogo as v,NodejsLogo as w,GoLogo as S,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as E,UptraceLogo as A,TraceloopLogo as D,TingyunLogo as T,TempoLogo as N,TelemetryHubLogo as I,SumoLogicLogo as _,SplunkLogo as O,SignozLogo as R,SeqLogo as F,AwsS3Logo as z,QuickwitLogo as L,GigapipeLogo as P,QrynLogo as M,PrometheusLogo as B,OpenTelemetryLogo as U,OracleLogo as j,OpsVerseLogo as W,OpenObserveLogo as G,OneUptimeLogo as V,OdigosLogo as X,ObserveLogo as H,NewRelicLogo as J,MiddlewareLogo as K,LumigoLogo as q,LokiLogo as Y,LogzioLogo as Q,LightstepLogo as Z,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as oe,InstanaLogo as ie,HyperDxLogo as re,HoneycombLogo as ne,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as fe,ClickhouseLogo as xe,ChronosphereLogo as ye,ChecklyLogo as be,CauselyLogo as $e,BonreeLogo as ve,BetterStackLogo as we,AzureMonitorLogo as Se,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Ee,AlibabaCloudLogo as Ae,AlaudaLogo as De,InstrumentationRuleIcon as Te,DestinationIcon as Ne,SourceIcon as Ie,NamespacesIcon as _e,PayloadCollectionIcon as Oe,HeadersCollectionIcon as Re,CustomInstrumentationIcon as Fe,CodeAttributesIcon as ze,TracesIcon as Le,MetricsIcon as Pe,LogsIcon as Me,VmLogo as Be,QuestionCircleIcon as Ue,XSquareIcon as je,VSquareIcon as We,ExclamationTriangleIcon as Ge,ExclamationCircleIcon as Ve,ISquareIcon as Xe,VIcon as He,CopyIcon as Je,XIcon as Ke,MinusIcon as qe,ListIcon as Ye,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as it,EyeOpenIcon as rt,SearchIcon as nt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as ft}from"../icons.js";import{create as xt}from"zustand";import{jsx as yt,jsxs as bt,Fragment as $t}from"react/jsx-runtime";import{Fragment as vt,useMemo as wt,useState as St,useEffect as Ct,useRef as kt,useCallback as Et,useContext as At,createContext as Dt,forwardRef as Tt,memo as Nt}from"react";import It from"javascript-time-ago";import{p as _t,c as Ot,s as Rt,l as Ft}from"./vendor-C150cdxb.js";import zt,{css as Lt,useTheme as Pt,ThemeProvider as Mt,keyframes as Bt}from"styled-components";import{Handle as Ut,Position as jt,ReactFlowProvider as Wt,ReactFlow as Gt,Controls as Vt,useReactFlow as Xt}from"@xyflow/react";import Ht,{createPortal as Jt}from"react-dom";import{Highlight as Kt,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Qt from"lottie-react";import{VList as Zt}from"virtua";const eo=e=>e.charAt(0).toUpperCase()+e.slice(1),to=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,i])=>Array.isArray(i)?[e,t(i)]:"object"==typeof i&&null!==i?[e,o(i)]:[e,i]));return Object.entries(e).reduce((e,[i,r])=>{try{const n=JSON.parse(r);Array.isArray(n)?e[i]=JSON.stringify(t(n)):e[i]="object"==typeof n&&null!==n?JSON.stringify(o(n)):r}catch(n){"object"==typeof r&&null!==r?Array.isArray(r)?e[i]=JSON.stringify(t(r)):e[i]=JSON.stringify(o(r)):e[i]=r}return e},{})};var oo;!function(e){e.SIGNALS="SIGNALS"}(oo||(oo={}));const io=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[i,r,n]=e;if(i===oo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(n);case"EXCLUDES":return!t?.includes(n);default:return!0}const a=o.find(e=>e.name===i||e.key===i);if(!a)return!1;switch(r){case"===":case"==":return a.value===n;case"!==":case"!=":return a.value!==n;case">":return Number(a.value)>Number(n);case"<":return Number(a.value)<Number(n);case">=":return Number(a.value)>=Number(n);case"<=":return Number(a.value)<=Number(n);default:return!0}},ro=e=>JSON.parse(JSON.stringify(e)),no=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},ao=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},so=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var lo,co,po,uo,ho,mo,go,fo,xo,yo,bo,$o,vo,wo,So,Co,ko,Eo,Ao,Do,To,No,Io,_o,Oo,Ro,Fo,zo,Lo,Po,Mo,Bo,Uo,jo,Wo,Go,Vo,Xo,Ho,Jo,Ko,qo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(lo||(lo={})),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",e.URLTemplatization="URLTemplatization"}(co||(co={})),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",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(po||(po={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(uo||(uo={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(ho||(ho={})),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"}(mo||(mo={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(go||(go={})),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"}(fo||(fo={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(xo||(xo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(yo||(yo={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(bo||(bo={})),function(e){e.K8s="k8s",e.Vm="vm"}($o||($o={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(vo||(vo={})),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"}(wo||(wo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(So||(So={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(Co||(Co={})),function(e){e.DataStream="DataStream"}(ko||(ko={})),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"}(Eo||(Eo={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Ao||(Ao={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Do||(Do={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(To||(To={})),function(e){e.Loading="loading",e.Disabled="disabled"}(No||(No={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Io||(Io={})),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"}(_o||(_o={})),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"}(Oo||(Oo={})),function(e){e.Labeled="labeled"}(Ro||(Ro={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Fo||(Fo={})),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.Signalfx="signalfx",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"}(zo||(zo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(Lo||(Lo={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(Po||(Po={})),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"}(Mo||(Mo={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bo||(Bo={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Uo||(Uo={})),function(e){e.HeaderKeys="headerKeys"}(jo||(jo={})),function(e){e.Java="java",e.Golang="golang"}(Wo||(Wo={}));class Yo{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 Qo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,i){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=i||""}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"}(Go||(Go={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Vo||(Vo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Xo||(Xo={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Ho||(Ho={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Jo||(Jo={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Ko||(Ko={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(qo||(qo={}));const Zo={[Ko.Logs]:qo.Logs,[Ko.Metrics]:qo.Metrics,[Ko.Traces]:qo.Traces},ei={[qo.Logs]:Ko.Logs,[qo.Metrics]:Ko.Metrics,[qo.Traces]:Ko.Traces},ti=(e,t)=>{let o=[...e];return t.namespaces?.length&&(o=o.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(o=o.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(o=o.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(o=o.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:o})=>t===`${e}#${o}`)))),t.podsAgentInjectionStatus?.length&&(o=o.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===Do.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},oi="https://docs.odigos.io",ii="default",ri="this-cluster",ni="This Cluster",ai={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},si={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)'},li={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",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",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:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",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",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},ci={GET_STARTED:"Get started",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"},di=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===ii&&!e.dataStreamNames.length):[],pi=(e,t="",o={})=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i],n=t?`${t}.${i}`:i;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const i=`${n}[${t}]`;null!==e&&"object"==typeof e?pi(e,i,o):o[i]=e}):o[n]=r:pi(r,n,o)}return o},ui=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]}`},hi=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`}},mi=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const i=e[t%16];t++;return("1"===o?i:"0"===o?63&i|128:15&i|64).toString(16)})},gi=l=>{const c=l?.toLowerCase(),d=c?.includes(lo.Samplers),p=c===lo.Attributes;if(d)return e;if(p)return t;return{[co.K8sAttributes]:a,[co.AddClusterInfo]:n,[co.DeleteAttributes]:r,[co.PiiMasking]:t,[co.RenameAttributes]:i,[co.URLTemplatization]:o,[co.ErrorSampler]:e,[co.ProbabilisticSampler]:e,[co.LatencySampler]:e,[co.ServiceNameSampler]:e,[co.SpanAttributeSampler]:e}[l]||s},fi=e=>{const t=e?.filter(({status:e})=>e===Do.Error),o=e?.filter(({status:e})=>e===Do.Warning),i=e?.filter(({status:e})=>e===No.Disabled),r=e?.filter(({status:e})=>e===No.Loading),n=t.length>0,a=o.length>0,s=i.length>0;return{errors:t,hasErrors:n,warnings:o,hasWarnings:a,disableds:i,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:n?Do.Error:a?Do.Warning:s?Do.Info:void 0}},xi=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},yi=e=>({[wo.Java]:C,[wo.Go]:S,[wo.JavaScript]:w,[wo.Python]:v,[wo.DotNet]:$,[wo.CSharp]:b,[wo.CPlusPlus]:y,[wo.Php]:x,[wo.Ruby]:f,[wo.Rust]:g,[wo.Swift]:m,[wo.Elixir]:h,[wo.MySql]:u,[wo.Nginx]:p,[wo.Postgres]:d,[wo.Redis]:c,[wo.Kafka]:l,[wo.Ignored]:s,[wo.Unknown]:s,[wo.Processing]:s,[wo.NoContainers]:s,[wo.NoRunningPods]:s}[e]||s),bi=e=>e?.map(({language:e})=>yi(e))||[],$i=e=>e?.map(e=>yi(e))||[],vi=e=>e.detectedLanguages?.length?$i(e.detectedLanguages):bi(e.containers),wi=(e,t)=>{const o={[zo.Alauda]:De,[zo.AlibabaCloud]:Ae,[zo.AppDynamics]:Ee,[zo.Axiom]:ke,[zo.AzureBlob]:Ce,[zo.AzureMonitor]:Se,[zo.BetterStack]:we,[zo.Bonree]:ve,[zo.Causely]:$e,[zo.Checkly]:be,[zo.Chronosphere]:ye,[zo.ClickHouse]:xe,[zo.CloudWatch]:fe,[zo.Coralogix]:ge,[zo.Dash0]:me,[zo.Datadog]:he,[zo.Dynamic]:U,[zo.Dynatrace]:ue,[zo.ElasticApm]:pe,[zo.ElasticSearch]:de,[zo.GoogleCloud]:ce,[zo.GoogleCloudOTLP]:ce,[zo.GrafanaCloudLoki]:le,[zo.GrafanaCloudPrometheus]:le,[zo.GrafanaCloudTempo]:le,[zo.Greptime]:se,[zo.Groundcover]:ae,[zo.Honeycomb]:ne,[zo.HyperDX]:re,[zo.Instana]:ie,[zo.Jaeger]:oe,[zo.Kafka]:l,[zo.Kloudmate]:te,[zo.Last9]:ee,[zo.Lightstep]:Z,[zo.LogzIo]:Q,[zo.Loki]:Y,[zo.Lumigo]:q,[zo.Middleware]:K,[zo.NewRelic]:J,[zo.Observe]:H,[zo.Odigos]:X,[zo.OneUptime]:V,[zo.OpenObserve]:G,[zo.Opsverse]:W,[zo.Oracle]:j,[zo.OTLP]:U,[zo.OTLPHttp]:U,[zo.Prometheus]:B,[zo.Qryn]:M,[zo.QrynOss]:P,[zo.Quickwit]:L,[zo.S3]:z,[zo.Seq]:F,[zo.Signalfx]:O,[zo.Signoz]:R,[zo.Splunk]:O,[zo.SplunkSapm]:O,[zo.SplunkOtlp]:O,[zo.SumoLogic]:_,[zo.TelemetryHub]:I,[zo.Tempo]:N,[zo.Tingyun]:T,[zo.Traceloop]:D,[zo.Uptrace]:A,[zo.VictoriaMetrics]:E,[zo.VictoriaMetricsCloud]:E,[zo.XRay]:k}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Si=e=>({[Co.Namespace]:_e,[Co.Source]:Ie,[Co.Destination]:Ne,[Co.Action]:o,[Co.InstrumentationRule]:Te}[e]),Ci=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,ki=(e,t,o)=>{const{extended:i,prioritizeDisplayName:r}=o||{};let n="",a="";switch(t){case Co.InstrumentationRule:const t=e;n=t.type,a=t.ruleName;break;case Co.Source:const o=e;n=o.name,a=o.otelServiceName;break;case Co.Action:const i=e;n=i.type,a=i.name;break;case Co.Destination:const r=e;n=r.destinationType.displayName,a=r.name;break;case Co.Namespace:const s=e;n=s.name,a=s.name}return i?n+(a&&a!==n?` (${a})`:""):r&&a||n},Ei=(e,t)=>{if(t===Co.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,i]=e.split("=");t[o]=i}),t}return e},Ai=e=>({[Bo.CodeAttributes]:ze,[Bo.CustomInstrumentation]:Fe,[Bo.HeadersCollection]:Re,[Bo.PayloadCollection]:Oe,[Bo.UnknownType]:s}[e]||s),Di=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?wo.Processing:wo.NoRunningPods;const i=o?.filter(e=>e.language!==wo.Ignored);if(!i.length)return wo.NoContainers;const r=i.find(e=>e.language!==wo.Unknown);return r?r.language:wo.Unknown},Ti=(e,t,o)=>(t===Co.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},Ni=e=>({[Ko.Logs]:Me,[Ko.Metrics]:Pe,[Ko.Traces]:Le}[e]),Ii=e=>{if(!e)return X;return{[$o.K8s]:a,[$o.Vm]:Be}[e]},_i=e=>{if(!e)return"Unknown";return{[$o.K8s]:"Kubernetes Cluster",[$o.Vm]:"Virtual Machine"}[e]},Oi=(e,t,o)=>{const i=e[t];return i?i.flatMap(e=>{const i=e[o],r=[];return void 0!==i&&(Array.isArray(i)?r.push(...i):r.push(i)),r.push(...Oi(e,t,o)),r}):[]},Ri=(e,t)=>{if(t===Co.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Fi=(e,t,o)=>{switch(t){case Do.Default:return e.v2.colors.purple[o];case Do.Info:return e.v2.colors.blue[o];case Do.Error:return e.v2.colors.red[o];case Do.Warning:return e.v2.colors.yellow[o];case Do.Success:return e.v2.colors.green[o];case Io.Disabled:case Io.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},zi=e=>{switch(e){case Vo.Updating:case Xo.Pending:case Ho.ContainerCreating:case Jo.Waiting:return Do.Info;case Vo.Healthy:case Xo.Succeeded:case Xo.Running:case Ho.Running:case Jo.Running:return Do.Success;case Vo.Degraded:return Do.Warning;case Vo.Failed:case Xo.Failed:case Ho.Error:case Ho.CrashLoopBackOff:case Ho.CreateContainerError:case Ho.CreateContainerConfigError:case Ho.ErrImagePull:case Ho.ErrImageNeverPull:case Ho.ImagePullBackOff:case Ho.InvalidImageName:case Ho.RegistryUnavailable:case Ho.NetworkNotReady:case Ho.OOMKilled:case Ho.ContainerCannotRun:case Jo.Terminated:case Ho.DeadlineExceeded:case Ho.StartError:return Do.Error;case Vo.Down:case Ho.Completed:return Io.Disabled;case Vo.Unknown:case Xo.Unknown:default:return Io.Unknown}},Li=(e,t)=>{const o={[Do.Default]:o=>X({fill:Fi(t,e,"300"),...o}),[Do.Info]:o=>Xe({fill:Fi(t,e,"400"),...o}),[Do.Error]:o=>Ve({fill:Fi(t,e,"500"),...o}),[Do.Warning]:o=>Ge({fill:Fi(t,e,"500"),...o}),[Do.Success]:o=>We({fill:Fi(t,e,"500"),...o}),[Io.Disabled]:o=>je({fill:Fi(t,e,"400"),...o}),[Io.Unknown]:o=>Ue({fill:Fi(t,e,"300"),...o})};return o[e]},Pi=e=>{switch(e){case Mo.Success:return Do.Success;case Mo.Error:case Mo.Failure:return Do.Error;case Mo.Notice:return Do.Warning;case Mo.Unsupported:case Mo.Unknown:return Do.Info;case Mo.Irrelevant:case Mo.Disabled:return No.Disabled;case Mo.Waiting:return No.Loading;case Mo.Pending:default:return Do.Default}},Mi=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},Bi=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Ui(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const ji=(e,t)=>{const o=[],i=JSON.parse(JSON.stringify(e));for(const e of i){const i=Ui(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&o.push(...e.items[r].fields.map(e=>({...e,initialValue:i[e.name]})))}return o},Wi=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Do.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},Gi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Vi=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},Xi=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Hi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ji=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ki=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,qi=e=>Ki.test(e),Yi=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Qi=e=>e?.map(({status:e,type:t,reason:o,message:i})=>({status:e,type:Yi(t),reason:o?Yi(o):"",message:i}))||[],Zi=(e,t)=>{const o=Ui(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},er=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>ei[e]):[],tr=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>ei[e]):[],or=e=>e.replace(/[^\d]/g,""),ir=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},rr=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},nr=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const i=e[o];if(Array.isArray(i)){const e=i.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>nr(e)))}else if("object"==typeof i&&null!==i){const e=nr(i);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(i)||(t[o]=i)}),t},ar=(e,t=2)=>JSON.stringify(e||{},null,t),sr=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),lr=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),cr=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var dr,pr;!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"}(dr||(dr={})),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"}(pr||(pr={}));const ur=zt.p`
2
+ margin: 0;
3
+ color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
4
+ font-family: ${({theme:e})=>e.font_family.primary};
5
+ font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
+ font-weight: ${({$weight:e})=>e};
7
+ text-align: ${({$align:e})=>e};
8
+ text-transform: ${({$transform:e})=>e};
9
+ line-height: ${({theme:e,$lineHeight:t,$size:o})=>t||`${e.v2.text.size[o]+2}px`};
10
+ opacity: ${({$opacity:e})=>e};
11
+
12
+ ${({$nowrap:e})=>e&&Lt`
13
+ text-wrap: nowrap;
14
+ white-space: nowrap;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ `}
18
+
19
+ ${({$underline:e})=>e&&Lt`
20
+ text-decoration: underline;
21
+ `}
22
+
23
+ ${({$withClick:e})=>e&&Lt`
24
+ cursor: pointer;
25
+ &:hover {
26
+ text-decoration: underline;
27
+ }
28
+ `}
29
+ `,hr=({children:e,variant:t=dr.P,color:o,size:i=pr.S,weight:r=400,opacity:n=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return yt(ur,{as:t,$color:o,$size:i,$weight:r,$opacity:n,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>bt(vt,{children:[e,t!==m.length-1&&yt("br",{})]},`typography-${t}-${e}`))})},mr=zt.div`
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ gap: 4px;
34
+ min-width: ${({$minWidth:e})=>e};
35
+ width: fit-content;
36
+ padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
37
+ border-radius: 100px;
38
+ background-color: ${({$backgroundColor:e})=>e};
39
+ `,gr=({label:e,leftIcon:t,rightIcon:o,status:i=Io.Unknown,useSecondaryTone:r=!1,invertColors:n=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Pt(),p=e?.toString(),u=i?[Io.Disabled].includes(i)?Fi(d,i,n?"400":"700"):[Io.Unknown].includes(i)?Fi(d,i,"600"):Fi(d,i,n?r?"400":"300":r?"700":"500"):d.v2.colors.grey[200],h=s||(n&&![Io.Unknown].includes(i)?u:[Io.Disabled].includes(i)?d.v2.colors.grey[400]:[Do.Error,Do.Warning,Do.Success].includes(i)?d.v2.colors.black[500]:d.v2.colors.white[500]),m=l||(n&&![Io.Unknown].includes(i)?[Io.Disabled].includes(i)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:u);return bt(mr,{$backgroundColor:m,$minWidth:c,$hasLabel:!!p,children:[t&&yt(t,{fill:h,size:14}),p&&yt(hr,{color:h,size:a||pr.XXS,nowrap:!0,children:p}),o&&yt(o,{fill:h,size:14})]})},fr=zt.div`
40
+ color: ${({$color:e,theme:t})=>e||t.text.secondary};
41
+ font-size: ${({$size:e})=>void 0!==e?e:16}px;
42
+ font-weight: ${({$weight:e})=>void 0!==e?e:300};
43
+ text-align: ${({$align:e})=>e||"left"};
44
+ opacity: ${({$opacity:e})=>void 0!==e?e:1};
45
+ text-decoration: ${({$decoration:e})=>e||"none"};
46
+ text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
47
+ font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
48
+ white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
49
+ text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
50
+ `,xr=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,i]=e.split('"');return{original:e,href:o,label:i.replace("</a>","").replace(">","")}})},yr=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},br=(e,t)=>{const o=xr(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const i=yr(e);i?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)});return e.split(" ").map(e=>{if(e.includes("LINK-")){const[i,r]=e.split("###"),n=o?.[parseInt(i.replace("LINK-",""))];return bt(vt,{children:[yt("a",{href:n?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:n?.label}),r?`${r} `:" "]},e)}if(e.includes("STRONG-")){const[t,o]=e.split("###"),r=i?.[parseInt(t.replace("STRONG-",""))];return bt(vt,{children:[yt("strong",{style:{fontWeight:600},children:r?.label}),o?`${o} `:" "]},e)}return e+" "})},$r=({children:e,color:t,size:o,weight:i,align:r,family:n,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Pt(),u=wt(()=>(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 yt(fr,{$color:t,$size:o,$weight:i,$align:r,$family:n,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>bt(vt,{children:[br(e,p),t!==u.length-1?yt("br",{}):null]},`text-${t}-${e}`)):e})},vr=zt.div`
51
+ padding: 4px 0 0 0;
52
+ `,wr=zt($r)`
53
+ font-size: 12px;
54
+ color: ${({theme:e})=>e.text.error};
55
+ `,Sr=({children:e})=>yt(vr,{children:yt(wr,{children:e})}),Cr=zt.div`
56
+ position: relative;
57
+ width: 100%;
58
+ `,kr=zt.div`
59
+ width: calc(100% - 16px);
60
+ display: flex;
61
+ align-items: center;
62
+ height: 36px;
63
+ gap: 8px;
64
+ padding-left: 12px;
65
+ transition: border-color 0.3s;
66
+ border-radius: 32px;
67
+ border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
68
+
69
+ &:hover {
70
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
71
+ }
72
+ &:focus-within {
73
+ border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
74
+ }
75
+ `,Er=zt.input`
76
+ flex: 1;
77
+ border: none;
78
+ outline: none;
79
+ background: none;
80
+ color: ${({theme:e})=>e.text.secondary};
81
+ font-size: 14px;
82
+ font-family: ${({theme:e})=>e.font_family.primary};
83
+ font-weight: 300;
84
+ &::placeholder {
85
+ color: ${({theme:e})=>e.text.secondary};
86
+ font-family: ${({theme:e})=>e.font_family.primary};
87
+ opacity: 0.4;
88
+ font-size: 14px;
89
+ font-weight: 300;
90
+ line-height: 22px;
91
+ }
92
+
93
+ &:disabled {
94
+ cursor: not-allowed;
95
+ }
96
+ `,Ar=zt.ul`
97
+ position: absolute;
98
+ max-height: 500px;
99
+ top: 32px;
100
+ border-radius: 24px;
101
+ width: calc(100% - 32px);
102
+ overflow-y: auto;
103
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
104
+ border: 1px solid ${({theme:e})=>e.colors.border};
105
+ z-index: 9999;
106
+ padding: 12px;
107
+ `,Dr=zt.li`
108
+ width: calc(100% - 24px);
109
+ padding: 8px 12px;
110
+ cursor: ${({$isList:e})=>e?"default":"pointer"};
111
+ border-radius: 24px;
112
+ gap: 8px;
113
+ display: flex;
114
+ align-items: ${({$isList:e})=>e?"flex-start":"center"};
115
+ background: transparent;
116
+ &:hover {
117
+ background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
118
+ }
119
+ `,Tr=zt.div`
120
+ width: 100%;
121
+ `,Nr=zt.div`
122
+ display: flex;
123
+ width: 100%;
124
+ `,Ir=zt.div`
125
+ width: 1px;
126
+ height: 52px;
127
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
128
+ position: absolute;
129
+ left: 33px;
130
+ `,_r=zt.div`
131
+ display: flex;
132
+ flex-direction: column;
133
+ gap: 4px;
134
+ `,Or=zt($r)`
135
+ flex: 1;
136
+ font-size: 14px;
137
+ `,Rr=zt($r)`
138
+ color: ${({theme:e})=>e.text.grey};
139
+ font-size: 10px;
140
+ line-height: 150%;
141
+ `,Fr=zt.ul`
142
+ padding-left: 0px;
143
+ margin: 4px 0 0 0;
144
+ list-style: none;
145
+ width: 100%;
146
+ `,zr=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const i=zr(o.items,t);i.length&&e.push({...o,items:i})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,Lr=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:i,defaultText:r,onTextChange:n,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=St(o?.label||r||""),[u,h]=St(zr(t,d)),[m,g]=St(!1);St(-1),Ct(()=>h(zr(t,d)),[t]);const f=o?.icon,x=e=>{e&&(p(e.label),n?.(e.label)),g(!e),i?.(e)};return bt(Cr,{style:a,children:[bt(kr,{$hasError:!!l,children:[f&&yt(f,{}),yt(Er,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,i=zr(t,o),r=1===i.length&&i[0].label===o?i[0]:void 0;p(o),n?.(o),h(i),x(r)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?yt(Ar,{children:u.map(e=>yt(Pr,{option:e,onClick:x},e.type||e.label))}):null,l&&yt(Sr,{children:l})]})},Pr=({option:e,renderIcon:t=!0,onClick:o})=>{const i=!!e.items&&e.items.length>0,r=e.icon;return bt(Dr,{"data-id":`option-${e.type||e.label}`,$isList:i,onMouseDown:()=>i?null:o(e),children:[r&&t&&yt(r,{}),bt(Tr,{children:[bt(_r,{children:[yt(Or,{children:e.label}),yt(Rr,{children:e.description})]}),i&&yt(Fr,{children:e.items?.map(e=>bt(Nr,{children:[yt(Ir,{}),yt(Pr,{option:e,renderIcon:!1,onClick:o})]},e.type||e.label))})]})]})},Mr=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Br=[{type:co.K8sAttributes,icon:gi(co.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Ko.Traces,Ko.Metrics,Ko.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:co.AddClusterInfo,icon:gi(co.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Ko.Traces,Ko.Metrics,Ko.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:co.DeleteAttributes,icon:gi(co.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Ko.Traces,Ko.Metrics,Ko.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:co.RenameAttributes,icon:gi(co.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Ko.Traces,Ko.Metrics,Ko.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:co.PiiMasking,icon:gi(co.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Ko.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:co.URLTemplatization,icon:gi(co.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[Ko.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:cr("v1.21.0")}],Ur=[{type:co.ErrorSampler,icon:gi(lo.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Ko.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:co.LatencySampler,icon:gi(lo.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Ko.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:co.ProbabilisticSampler,icon:gi(lo.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Ko.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:co.ServiceNameSampler,icon:gi(lo.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Ko.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:co.SpanAttributeSampler,icon:gi(lo.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Ko.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."}],jr=[{label:"Attributes",icon:gi(lo.Attributes),items:Br},{label:"Samplers",icon:gi(lo.Samplers),items:Ur}];var Wr;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Wr||(Wr={}));const Gr={[Wr.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Wr.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Wr.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Wr.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Wr.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Wr.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Vr=[{type:Bo.CodeAttributes,icon:Ai(Bo.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:[wo.Go,wo.Python]},{type:Bo.CustomInstrumentation,icon:Ai(Bo.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for 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:[wo.Go,wo.Java]},{type:Bo.HeadersCollection,icon:Ai(Bo.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:[wo.Go,wo.Java,wo.JavaScript]},{type:Bo.PayloadCollection,icon:Ai(Bo.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:[wo.Go]}],Xr=[{id:Ko.Logs,value:"Logs"},{id:Ko.Metrics,value:"Metrics"},{id:Ko.Traces,value:"Traces"}],Hr={[wo.Go]:"Go",[wo.Java]:"Java",[wo.JavaScript]:"Node.js",[wo.Python]:"Python",[wo.DotNet]:".NET",[wo.CSharp]:"C#",[wo.CPlusPlus]:"C++",[wo.Php]:"PHP",[wo.Ruby]:"Ruby",[wo.Rust]:"Rust",[wo.Swift]:"Swift",[wo.Elixir]:"Elixir",[wo.MySql]:"MySQL",[wo.Nginx]:"Nginx",[wo.Postgres]:"PostgreSQL",[wo.Redis]:"Redis",[wo.Kafka]:"Kafka",[wo.Ignored]:"Ignored",[wo.Unknown]:"Unknown",[wo.Processing]:"Processing",[wo.NoContainers]:"No Containers",[wo.NoRunningPods]:"No Running Pods"},Jr=[{id:wo.Go,value:Hr[wo.Go],icon:yi(wo.Go)},{id:wo.Java,value:Hr[wo.Java],icon:yi(wo.Java)},{id:wo.JavaScript,value:Hr[wo.JavaScript],icon:yi(wo.JavaScript)},{id:wo.Python,value:Hr[wo.Python],icon:yi(wo.Python)},{id:wo.Php,value:Hr[wo.Php],icon:yi(wo.Php)},{id:wo.Ruby,value:Hr[wo.Ruby],icon:yi(wo.Ruby)},{id:wo.Rust,value:Hr[wo.Rust],icon:yi(wo.Rust)},{id:wo.DotNet,value:Hr[wo.DotNet],icon:yi(wo.DotNet)},{id:wo.CSharp,value:Hr[wo.CSharp],icon:yi(wo.CSharp)},{id:wo.CPlusPlus,value:Hr[wo.CPlusPlus],icon:yi(wo.CPlusPlus)},{id:wo.Swift,value:Hr[wo.Swift],icon:yi(wo.Swift)},{id:wo.Elixir,value:Hr[wo.Elixir],icon:yi(wo.Elixir)}],Kr={[wo.Go]:{community:[{id:Po.GolangCommunity,value:Po.GolangCommunity,icon:yi(wo.Go)}],enterprise:[{id:Po.GolangEnterprise,value:Po.GolangEnterprise,icon:yi(wo.Go)}]},[wo.JavaScript]:{community:[{id:Po.NodejsCommunity,value:Po.NodejsCommunity,icon:yi(wo.JavaScript)}],enterprise:[{id:Po.NodejsEnterprise,value:Po.NodejsEnterprise,icon:yi(wo.JavaScript)}]},[wo.Python]:{community:[{id:Po.PythonCommunity,value:Po.PythonCommunity,icon:yi(wo.Python)}],enterprise:[{id:Po.PythonEnterprise,value:Po.PythonEnterprise,icon:yi(wo.Python)}]},[wo.Java]:{community:[{id:Po.JavaCommunity,value:Po.JavaCommunity,icon:yi(wo.Java)}],enterprise:[{id:Po.JavaEnterprise,value:Po.JavaEnterprise,icon:yi(wo.Java)},{id:Po.JavaEbpfInstrumentations,value:Po.JavaEbpfInstrumentations,icon:yi(wo.Java)}]},[wo.DotNet]:{community:[{id:Po.DotNetCommunity,value:Po.DotNetCommunity,icon:yi(wo.DotNet)}],enterprise:[{id:Po.DotNetEnterprise,value:Po.DotNetEnterprise,icon:yi(wo.DotNet)}]},[wo.Ruby]:{community:[{id:Po.RubyCommunity,value:Po.RubyCommunity,icon:yi(wo.Ruby)}],enterprise:[{id:Po.RubyEnterprise,value:Po.RubyEnterprise,icon:yi(wo.Ruby)}]},[wo.Php]:{community:[{id:Po.PhpCommunity,value:Po.PhpCommunity,icon:yi(wo.Php)}],enterprise:[]},[wo.CSharp]:{community:[],enterprise:[{id:Po.CPlusPlusEnterprise,value:Po.CPlusPlusEnterprise,icon:yi(wo.CSharp)}]},[wo.MySql]:{community:[],enterprise:[{id:Po.MySqlEnterprise,value:Po.MySqlEnterprise,icon:yi(wo.MySql)}]},[wo.CPlusPlus]:{community:[],enterprise:[]},[wo.Rust]:{community:[],enterprise:[]},[wo.Swift]:{community:[],enterprise:[]},[wo.Elixir]:{community:[],enterprise:[]},[wo.Nginx]:{community:[],enterprise:[]},[wo.Postgres]:{community:[],enterprise:[]},[wo.Redis]:{community:[],enterprise:[]},[wo.Kafka]:{community:[],enterprise:[]},[wo.Ignored]:{community:[],enterprise:[]},[wo.Unknown]:{community:[],enterprise:[]},[wo.Processing]:{community:[],enterprise:[]},[wo.NoContainers]:{community:[],enterprise:[]},[wo.NoRunningPods]:{community:[],enterprise:[]}},qr=6048e5,Yr=xt()(_t(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:ai.DARK_MODE,storage:"undefined"!=typeof window?Ot(()=>localStorage):void 0})),Qr={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:ii},Zr=xt(e=>({...Qr,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Qr)})),en=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),tn=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const i=t===Co.Namespace?"namespacesLoading":t===Co.Source?"sourcesLoading":t===Co.Destination?"destinationsLoading":t===Co.Action?"actionsLoading":t===Co.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==i&&e({[i]:o})},setEntities:(t,o)=>{const i=t===Co.Namespace?"namespaces":t===Co.Source?"sources":t===Co.Destination?"destinations":t===Co.Action?"actions":t===Co.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e({[i]:o})},addEntities:(t,o)=>{const i=t===Co.Namespace?"namespaces":t===Co.Source?"sources":t===Co.Destination?"destinations":t===Co.Action?"actions":t===Co.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e(e=>{const t=[...e[i]],r=new Map;return t.forEach((e,t)=>{r.set(JSON.stringify(Ci(e)),t)}),o.forEach(e=>{const o=JSON.stringify(Ci(e)),i=r.get(o);void 0!==i?t[i]={...t[i],...e}:(r.set(o,t.length),t.push(e))}),{[i]:t}})},removeEntities:(t,o)=>{const i=t===Co.Namespace?"namespaces":t===Co.Source?"sources":t===Co.Destination?"destinations":t===Co.Action?"actions":t===Co.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e(e=>{const r=new Set;o.forEach(e=>{const o=t===Co.Source?JSON.stringify(Ci(e)):String(e);r.add(o)});const n=e[i].filter(e=>{const o=t===Co.Source?JSON.stringify(Ci(e)):String(Ci(e));return!r.has(o)});return{[i]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),on=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),rn=xt(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}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus: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:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:on})),nn=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),an=xt((e,t)=>({notifications:[],addNotification:o=>{const i=new Date,r=`${i.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:n}=t();n.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:r,time:i.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var sn;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(sn||(sn={}));const ln=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),cn=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),dn=xt((e,t)=>({progress:{},setProgress:(o,i)=>{const r=t(),n=ln();return"number"==typeof i.total&&(n.total=i.total),"number"==typeof i.current&&(n.current=i.current),Array.isArray(i.list)&&(n.list=i.list),e({progress:{...r.progress,[o]:cn(n)}})},addProgress:(o,i,r)=>{const n=t(),a=ln(o,n.progress);return a.current+=i,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...n.progress,[o]:cn(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),pn=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),un={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},hn=(e,t)=>e.destinationType.type!==t.destinationType.type,mn=xt(e=>({...un,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=>hn(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>hn(e,t))})),clearStore:()=>e(()=>({...un}))})),gn={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"}},fn={v2:gn.v2,darkMode:!0,colors:{...gn.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:gn.font_family},xn={v2:gn.v2,darkMode:!1,colors:{...gn.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:gn.font_family},yn=e=>e?fn:xn;var bn=Object.freeze({__proto__:null,baseTheme:gn,darkModeTheme:fn,getTheme:yn,lightModeTheme:xn});Rt('@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 $n=({children:e})=>{const{darkMode:t}=Yr();return yt(Mt,{theme:yn(t),children:e})},vn={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"};var wn=Object.freeze({__proto__:null,hex:vn});const Sn={in:{left:Bt`
147
+ from { transform: translateX(-100%); }
148
+ to { transform: translateX(0); }
149
+ `,right:Bt`
150
+ from { transform: translateX(100%); }
151
+ to { transform: translateX(0); }
152
+ `,top:Bt`
153
+ from { transform: translateY(-100%); }
154
+ to { transform: translateY(0); }
155
+ `,bottom:Bt`
156
+ from { transform: translateY(100%); }
157
+ to { transform: translateY(0); }
158
+ `,center:Bt`
159
+ from { transform: translate(-50%, 100%); }
160
+ to { transform: translate(-50%, -50%); }
161
+ `},out:{left:Bt`
162
+ from { transform: translateX(0); }
163
+ to { transform: translateX(-100%); }
164
+ `,right:Bt`
165
+ from { transform: translateX(0); }
166
+ to { transform: translateX(100%); }
167
+ `,top:Bt`
168
+ from { transform: translateY(0); }
169
+ to { transform: translateY(-100%); }
170
+ `,bottom:Bt`
171
+ from { transform: translateY(0); }
172
+ to { transform: translateY(100%); }
173
+ `,center:Bt`
174
+ from { transform: translate(-50%, -50%); }
175
+ to { transform: translate(-50%, 100%); }
176
+ `}},Cn={in:Bt`
177
+ from {
178
+ width: 0%;
179
+ }
180
+ to {
181
+ width: 100%;
182
+ }
183
+ `,out:Bt`
184
+ from {
185
+ width: 100%;
186
+ }
187
+ to {
188
+ width: 0%;
189
+ }
190
+ `},kn=Bt`
191
+ 0% {
192
+ transform: scale(1);
193
+ opacity: 1;
194
+ }
195
+ 75%, 100% {
196
+ transform: scale(2);
197
+ opacity: 0;
198
+ }
199
+ `,En=Bt`
200
+ 0% {
201
+ background-position: -500px 0;
202
+ }
203
+ 100% {
204
+ background-position: 500px 0;
205
+ }
206
+ `,An={in:Bt`
207
+ from {
208
+ opacity: 0;
209
+ }
210
+ to {
211
+ opacity: 1;
212
+ }
213
+ `,out:Bt`
214
+ from {
215
+ opacity: 1;
216
+ }
217
+ to {
218
+ opacity: 0;
219
+ }
220
+ `};var Dn=Object.freeze({__proto__:null,fade:An,ping:kn,progress:Cn,shimmer:En,slide:Sn});const Tn=zt.span`
221
+ display: flex;
222
+ align-items: center;
223
+ justify-content: center;
224
+
225
+ min-height: 16px;
226
+ min-width: 16px;
227
+ width: fit-content;
228
+ padding: 4px;
229
+ gap: 2px;
230
+
231
+ border-radius: 50px;
232
+ border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":vn["050"]):t?"transparent":e.colors.border};
233
+ background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
234
+ color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
235
+ font-family: ${({theme:e})=>e.font_family.secondary};
236
+ font-size: 12px;
237
+ white-space: nowrap;
238
+
239
+ ${({theme:e,$filled:t,$status:o,$clickable:i})=>i&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+vn["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+vn["020"]};\n }`}
240
+ `,Nn=({label:e,filled:t,status:o,withIcon:i,onClick:r})=>{const n=Pt(),a=o&&i?Li(o,n):null;return bt(Tn,{$filled:t,$status:o,$clickable:!!r,onClick:r,children:[!!a&&yt(a,{}),e]})},In=zt.div`
241
+ height: fit-content;
242
+ border: 2px solid transparent;
243
+ padding: 2px;
244
+ border-radius: 32px;
245
+ background-color: transparent;
246
+ transition: border-color 0.3s ease;
247
+ &:focus-within {
248
+ border-color: ${({theme:e})=>e.colors.secondary};
249
+ }
250
+ `,_n={primary:Lt`
251
+ border: 1px solid ${({theme:e})=>e.text.secondary+vn["024"]};
252
+ background: ${({theme:e})=>e.colors.secondary};
253
+ color: ${({theme:e})=>e.colors.primary};
254
+ &:hover {
255
+ background: ${({theme:e})=>e.colors.secondary+vn["080"]};
256
+ }
257
+ &:active {
258
+ background: ${({theme:e})=>e.text.secondary+vn["060"]};
259
+ }
260
+ `,secondary:Lt`
261
+ border: 1px solid ${({theme:e})=>e.colors.border};
262
+ background: ${({theme:e})=>e.colors.primary};
263
+ color: ${({theme:e})=>e.colors.secondary};
264
+ &:hover {
265
+ border: 1px solid ${({theme:e})=>e.text.darker_grey};
266
+ background: ${({theme:e})=>e.colors.secondary+vn["010"]};
267
+ }
268
+ &:active {
269
+ border: 1px solid ${({theme:e})=>e.text.dark_grey};
270
+ background: ${({theme:e})=>e.colors.secondary+vn["015"]};
271
+ }
272
+ `,tertiary:Lt`
273
+ border-color: transparent;
274
+ background: transparent;
275
+ &:hover {
276
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+vn["040"]};
277
+ }
278
+ &:active {
279
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
280
+ }
281
+ `,danger:Lt`
282
+ border-color: transparent;
283
+ background: ${({theme:e})=>e.text.error};
284
+ &:hover {
285
+ background: ${({theme:e})=>e.text.error+vn["090"]};
286
+ }
287
+ &:active {
288
+ background: ${({theme:e})=>e.text.error+vn["080"]};
289
+ }
290
+ `,warning:Lt`
291
+ border-color: transparent;
292
+ background: ${({theme:e})=>e.text.warning};
293
+ &:hover {
294
+ background: ${({theme:e})=>e.text.warning+vn["090"]};
295
+ }
296
+ &:active {
297
+ background: ${({theme:e})=>e.text.warning+vn["080"]};
298
+ }
299
+ `},On=zt.button`
300
+ height: 36px;
301
+ border-radius: 32px;
302
+ cursor: pointer;
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: center;
306
+ gap: 8px;
307
+ padding: 0 12px;
308
+ font-family: ${({theme:e})=>e.font_family.secondary};
309
+ text-transform: uppercase;
310
+ text-decoration: underline;
311
+ font-weight: 600;
312
+ outline: none;
313
+ ${({$variant:e})=>e&&_n[e]}
314
+ ${({disabled:e,$variant:t})=>e&&Lt`
315
+ opacity: 0.5;
316
+ cursor: not-allowed;
317
+
318
+ ${"primary"===t?Lt`
319
+ color: ${({theme:e})=>e.colors.secondary};
320
+ background: ${({theme:e})=>e.text.secondary+vn["010"]};
321
+ &:hover {
322
+ background: ${({theme:e})=>e.text.secondary+vn["015"]};
323
+ }
324
+ `:""}
325
+ `}
326
+ `,Rn=({children:e,variant:t="primary",onClick:o,...i})=>{const r=kt(null);return yt(In,{$variant:t,children:yt(On,{ref:r,$variant:t,onClick:e=>{o&&o(e),r.current?.blur()},...i,children:e})})},Fn=e=>{function t(){return void 0===e?{}:ro(e)}const[o,i]=St(t()),[r,n]=St({}),a=(e,t)=>Object.entries(e).every(([e,o])=>Array.isArray(o)?o.length===t[e].length&&o.every((o,i)=>a(o,t[e][i])):"object"==typeof o&&null!==o?a(o,t[e]):o===t[e]),s=wt(()=>void 0!==e&&!a(e,o),[e,o]);Ct(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(r)&&i(r)},[e,o]);return{formData:o,formErrors:r,areFormValuesEqual:a,isFormDirty:s,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?i(o=>({...o,[e]:t})):i(e=>{const i=ro(e);let r=i;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,i})}else o&&i({...o})},handleErrorChange:(e,t,o)=>{e?n(o=>({...o,[e]:t})):o&&n({...o})},resetFormData:e=>{i(e||t()),n({})}}},zn={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,urlTemplatizationRulesGroups:null}},Ln=()=>{const{addNotification:e}=an(),{formData:t,formErrors:o,handleFormChange:i,handleErrorChange:r,resetFormData:n}=Fn(zn),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:o,handleFormChange:i,resetFormData:n,validateForm:o=>{const i={};let n=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Gi(t)&&(i[e]=si.FIELD_IS_REQUIRED)}}),t.type===co.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){i.fields=si.FIELD_IS_REQUIRED;break}}return n=!Object.values(i).length,!n&&o?.withAlert&&e({type:Do.Warning,title:o.alertTitle,message:si.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,i),n},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:r,disabled:n,fields:s})=>{const l={...ro(zn),type:e,signals:t,name:o,notes:r,disabled:n};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case po.LabelsAttributes:case po.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case po.CollectContainerAttributes:case po.CollectReplicaSetAttributes:case po.CollectWorkloadId:case po.CollectClusterId:case po.ClusterAttributes:case po.OverwriteExistingValues:case po.AttributeNamesToDelete:case po.Renames:case po.PiiCategories:case po.FallbackSamplingRatio:case po.SamplingPercentage:case po.EndpointsFilters:case po.ServicesNameFilters:case po.AttributeFilters:case po.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),i(void 0,void 0,l)}}},Pn=e=>{Ct(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Mn=()=>{const{setCurrentModal:e}=nn(),{setDrawerType:t,setDrawerEntityId:o}=en(),{setActiveNodeType:i,setActiveNodeId:r,activeNodeId:n}=Mr();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(n===l?(i(null),r(null)):(i(c),r(l)),p){case Co.Source:case Co.Destination:case Co.Action:case Co.InstrumentationRule:t(p),o(d);break;case Fo.AddSource:e(Co.Source);break;case Fo.AddDestination:e(Co.Destination);break;case Fo.AddAction:e(Co.Action);break;case Fo.AddRule:e(Co.InstrumentationRule)}}}},Bn=()=>{const{setDrawerType:e,setDrawerEntityId:t}=en(),{markAsDismissed:o,markAsSeen:i}=an();return{onClickNotification:(r,n)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=n||{};if(s&&l)switch(s){case Co.InstrumentationRule:e(Co.InstrumentationRule),t(Ei(l,Co.InstrumentationRule));break;case Co.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Co.Source),t(Ei(l,Co.Source));break;case Co.Action:e(Co.Action),t(Ei(l,Co.Action));break;case Co.Destination:case"Destination":e(Co.Destination),t(Ei(l,Co.Destination))}i(a),c&&o(a)}}},Un=()=>{const e=kt(null),[t,o]=St(0),[i,r]=St(0);return Ct(()=>{const t=()=>{if(e.current){const{width:t,height:i}=e.current.getBoundingClientRect();o(t),r(i)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:i}};var jn;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(jn||(jn={}));const Wn=zt.div`
327
+ width: ${({$size:e})=>1.5*e}px;
328
+ height: ${({$size:e})=>1.5*e}px;
329
+ display: flex;
330
+ align-items: center;
331
+ justify-content: center;
332
+ border-radius: 100%;
333
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
334
+ &:hover {
335
+ background: ${({theme:e})=>e.v2.colors.silver[900]};
336
+ }
337
+ `,Gn=({icon:e,size:t=jn.S,onClick:o,disabled:i})=>yt(Wn,{$size:t,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:yt(e,{size:t})}),Vn=({onDone:e}={})=>{const[t,o]=St(!1),[i,r]=St(-1),n=Et(async(i,n)=>{if(!t){if(o(!0),void 0!==n&&r(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(i)}catch(e){}else{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),r(-1)},1e3)}},[t,e]);return{CopyButton:Et(({value:e,size:o})=>yt(Gn,{icon:t?He:Je,size:o,onClick:()=>n(e)}),[t]),isCopied:t,copiedIndex:i,clickCopy:n}},Xn=e=>{const{addNotification:t}=an(),{formData:o,handleFormChange:i,formErrors:r,handleErrorChange:n,resetFormData:a}=Fn(e);return{formData:o,formErrors:r,handleFormChange:i,resetFormData:a,validateForm:e=>{const i={};let r=!0;return o.name?Vi(o.name)?i.name=void 0:(r=!1,i.name=si.ILLEGAL_K8S_LABEL):(r=!1,i.name=si.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Do.Warning,title:e.alertTitle,message:si.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,i),r},loadFormWithDrawerItem:({name:t})=>{const o={...ro(e),name:t};i(void 0,void 0,o)}}},Hn={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Jn=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:i}=an(),{formData:r,formErrors:n,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Fn(Hn),[c,d]=St([]),[p,u]=St([]);Ct(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:i,displayName:r,initialValue:n,renderCondition:a}=e;if(o===Eo.Dropdown){const e=Ui(i,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:r,value:n,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:r,value:n,renderCondition:a,...Ui(i,{})}})).map(e=>{if(o){const t="string"==typeof o?Ui(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),Ct(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Ct(()=>{if(t&&0===er(r.exportedSignals).length){const{logs:e,metrics:o,traces:i}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:i.supported})}},[t,r.exportedSignals]);return{formData:r,formErrors:n,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:i,required:r})=>{r&&!i&&(o=!1,t[e]=si.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&i({type:Do.Warning,title:e.alertTitle,message:si.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:i,fields:r})=>{const n={...ro(Hn),type:e,name:t,disabled:o,exportedSignals:i,fields:Object.entries(Ui(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,n),n},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Kn={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Go.HttpRequest]:null,[Go.HttpResponse]:null,[Go.DbQuery]:null,[Go.Messaging]:null},codeAttributes:{[Uo.Column]:null,[Uo.FilePath]:null,[Uo.Function]:null,[Uo.LineNumber]:null,[Uo.Namespace]:null,[Uo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Wo.Java]:null,[Wo.Golang]:null}},qn=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:i,resetFormData:r}=Fn(Kn);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:i,payloadCollection:r,codeAttributes:n,headersCollection:a,customInstrumentations:s})=>{const l={...ro(Kn),ruleName:e,notes:t,disabled:i};r&&(l.payloadCollection={[Go.HttpRequest]:r[Go.HttpRequest]?{}:null,[Go.HttpResponse]:r[Go.HttpResponse]?{}:null,[Go.DbQuery]:r[Go.DbQuery]?{}:null,[Go.Messaging]:r[Go.Messaging]?{}:null}),n&&(l.codeAttributes={[Uo.Column]:n[Uo.Column]||null,[Uo.FilePath]:n[Uo.FilePath]||null,[Uo.Function]:n[Uo.Function]||null,[Uo.LineNumber]:n[Uo.LineNumber]||null,[Uo.Namespace]:n[Uo.Namespace]||null,[Uo.StackTrace]:n[Uo.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Wo.Java]:s[Wo.Java]||null,[Wo.Golang]:s[Wo.Golang]||null}),o(void 0,void 0,l)}}},Yn=({active:e,key:t,withAltKey:o,withCtrlKey:i,withShiftKey:r,withMetaKey:n},a)=>(Ct(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!i||i&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!n||n&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,i,r,n,a]),null),Qn=(e,t)=>{Ct(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Zn=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const i=kt(null),[r,n]=St(!1),[a,s]=St({top:0,left:0});Qn(i,()=>{r&&(n(!1),o?.())});return{popupRef:i,popupOpen:r,setPopupOpen:n,popupPosition:a,handlePosition:(o,r)=>{const{innerWidth:n,innerHeight:a}=window;let l=r,c=o;l>=a/2&&(l+=-(i.current?.clientHeight||e)),c>=n/2&&(c+=-(i.current?.clientWidth||t)),s({top:l,left:c})}}},ea=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Ui(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ta={otelServiceName:"",currentStreamName:""},oa=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:i,resetFormData:r}=Fn(ta);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const i={...ro(ta),otelServiceName:e||t||""};o(void 0,void 0,i)}}},ia=Dt({platformType:$o.K8s,tier:bo.Community,version:"v0.0.0"}),ra=({children:e,platformType:t,tier:o,version:i})=>{const r=wt(()=>({platformType:t,tier:o,version:i}),[t,o,i]);return yt(ia.Provider,{value:r,children:e})},na=(e,t)=>!t||cr(e)>=cr(t),aa=e=>{const t=At(ia),o=na(t.version,e),i=t.platformType===$o.Vm;return{...t,isVersionSupported:o,isVm:i}},sa=Dt({formType:void 0}),la=({children:e,formType:t})=>{const o=wt(()=>({formType:t}),[t]);return yt(sa.Provider,{value:o,children:e})},ca=()=>At(sa),da=new Set([Lo.StaticPod]),pa=e=>{const t=e.workloads.filter(({selected:e})=>e).length,o=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===o,isSomeSourced:t>0&&t<o,isFutureApps:e.selected||!1}},ua=(e,t,o)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(o.showOnlySelected){const{isAllSourced:t,isSomeSourced:o,isFutureApps:i}=pa(e);return t||o||i}return!0},ha=(e,t,o)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!o.showOnlySelected||e.selected),ma=(e,t,o)=>{const i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,n=e.selected&&(!i||r)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:n,numberOfInstances:e.numberOfInstances}},ga=(e,t,o)=>({...ma(e,t),currentStreamName:t}),fa=(e,t,o)=>{const i="boolean"==typeof o,r=e.dataStreamNames?.includes(t),n=(i?o:e.selected)||!1;return{namespace:e.name,selected:!(!r&&!i)&&n,currentStreamName:t}},xa=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:o}=aa(),i=e=>o!==bo.Onprem&&da.has(e),{selectedStreamName:r}=Zr(),{namespaces:n,addEntities:a}=tn(),[s,l]=St(!1),[c,d]=St({}),[p,u]=St(!1),[h,m]=St(""),[g,f]=St({}),[x,y]=St({}),[b,$]=St(""),[v,w]=St(Co.Source),[S,C]=St(!1),[k,E]=St(!1),A=wt(()=>{const e=(e,t)=>!b||v!==t||v===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,Co.Namespace)).forEach(([o,i])=>{const r=i.filter(t=>{return e(t.name,Co.Source)&&(o=t,!S||o.selected)&&(e=>!k||(e.numberOfInstances||0)>0)(t);var o});(!b||b&&(v===Co.Namespace||v===Co.Source&&r.length))&&(t[o]=r)}),t},[x,b,v,S,k]);return Ct(()=>{(async()=>{l(!0);const e=await t();l(!1);const o=e.data;if(!o?.length)return;const i=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n={},s={},c={};for(const e of i){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));n[e.name]=t.map(e=>ma(e,r)),s[e.name]=t.map(e=>ga(e,r)),c[e.name]=fa(e,r)}a(Co.Namespace,o.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=mn.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const o=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==o&&(s[e][o]={...s[e][o],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(n),y(s),f(c)})()},[r]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,o])=>{o.forEach(o=>{const i=c[t]?.find(e=>e.name===o.name&&e.kind===o.kind);i?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,o])=>{const i=n?.find(e=>e.name===t);(o.selected&&!i?.dataStreamNames?.includes(r)||!o.selected&&i?.dataStreamNames?.includes(r))&&(e[t]=o)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(n.find(t=>t.name===e)){const o="boolean"==typeof t;m(t=>t!==e||o?e:""),o&&(y(o=>({...o,[e]:(o[e]||[]).map(e=>t&&i(e.kind)?e:{...e,selected:t,currentStreamName:r})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const o={};for(const[n,a]of Object.entries(t))o[n]=a.map(t=>e&&i(t.kind)?t:{...t,selected:e,currentStreamName:r});return o})},selectedSources:x,onSelectSource:(e,t)=>{const o=t||h;if(!o)return;if(i(e.kind))return;const n=[...x[o]||[]],a=n.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...n[a],selected:!n[a].selected,currentStreamName:r};n[a]=e}else n.push({...e,selected:!0,currentStreamName:r});y(e=>({...e,[o]:n})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const o=t||h;if(!o)return;const i=n.find(e=>e.name===t);i&&f(t=>({...t,[o]:fa(i,r,e)}))},searchText:b,setSearchText:$,searchBy:v,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:C,showRunningOnly:k,setShowRunningOnly:E}};try{It.addDefaultLocale(Ft)}catch(e){}const ya=()=>{const e=kt(new It(Ft.locale));return{formatTimeAgo:Et(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ba=zt.div`
338
+ flex: 1;
339
+ align-self: stretch;
340
+ display: flex;
341
+ flex-direction: column;
342
+ gap: 24px;
343
+ padding: 24px 24px 0 24px;
344
+ overflow-x: scroll;
345
+ `,$a=zt.div`
346
+ position: relative;
347
+
348
+ // inherit all the properties of the parent (PageContent)
349
+ flex: inherit;
350
+ align-self: inherit;
351
+ display: inherit;
352
+ flex-direction: inherit;
353
+ gap: inherit;
354
+ overflow-x: inherit;
355
+ `,va=zt.div`
356
+ display: flex;
357
+ flex-direction: row;
358
+ flex-wrap: ${({$wrap:e="unset"})=>e};
359
+ align-items: ${({$alignItems:e="center"})=>e};
360
+ justify-content: ${({$justifyContent:e="unset"})=>e};
361
+ gap: ${({$gap:e=2})=>e}px;
362
+ width: ${({$width:e})=>e||"unset"};
363
+ height: ${({$height:e})=>e||"unset"};
364
+ margin: ${({$margin:e="unset"})=>e};
365
+ padding: ${({$padding:e="unset"})=>e};
366
+ `,wa=zt.div`
367
+ display: flex;
368
+ flex-direction: column;
369
+ flex-wrap: ${({$wrap:e="unset"})=>e};
370
+ align-items: ${({$alignItems:e="unset"})=>e};
371
+ justify-content: ${({$justifyContent:e="unset"})=>e};
372
+ gap: ${({$gap:e=2})=>e}px;
373
+ width: ${({$width:e})=>e||"unset"};
374
+ height: ${({$height:e})=>e||"unset"};
375
+ margin: ${({$margin:e="unset"})=>e};
376
+ padding: ${({$padding:e="unset"})=>e};
377
+ `,Sa=zt(wa)`
378
+ width: ${({$width:e})=>e||"100%"};
379
+ height: ${({$height:e})=>e||"unset"};
380
+ padding: ${({$padding:e})=>e||"unset"};
381
+ align-items: center;
382
+ justify-content: center;
383
+ `,Ca=zt.div`
384
+ display: flex;
385
+ flex-direction: column;
386
+ padding: 12px;
387
+ overflow-y: scroll;
388
+ `,ka=zt.div`
389
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
390
+ top: 0;
391
+ left: 0;
392
+ right: 0;
393
+ bottom: 0;
394
+ z-index: 1000;
395
+ background: rgba(0, 0, 0, 0.6);
396
+ backdrop-filter: blur(2px);
397
+ `,Ea=zt.div`
398
+ width: 800px;
399
+ min-height: ${({$minHeight:e})=>e||"unset"};
400
+ height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
401
+ margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
402
+ padding: 0 2px;
403
+ overflow-y: scroll;
404
+ `,Aa=zt(wa)`
405
+ max-width: ${({$maxWidth:e})=>e||"unset"};
406
+ width: 100%;
407
+ `,Da=zt(va)`
408
+ gap: 16px;
409
+ padding: 16px;
410
+ `,Ta=zt.div`
411
+ width: 100%;
412
+ max-height: ${({$maxHeight:e})=>e||"unset"};
413
+ overflow-y: auto;
414
+ `,Na=zt.div`
415
+ width: ${({$width:e})=>e||"unset"};
416
+ height: ${({$height:e})=>e||"unset"};
417
+ `,Ia=zt.div`
418
+ position: fixed;
419
+ top: 50%;
420
+ left: 50%;
421
+ transform: translate(-50%, -50%);
422
+ z-index: 1000;
423
+ width: fit-content;
424
+ background: ${({theme:e})=>e.colors.translucent_bg};
425
+ border: ${({theme:e})=>`1px solid ${e.colors.border}`};
426
+ border-radius: 40px;
427
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+vn["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}`}};
428
+ animation-name: ${Sn.in.center};
429
+ `,_a=zt.div`
430
+ display: flex;
431
+ justify-content: space-between;
432
+ align-items: center;
433
+ height: 80px;
434
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
435
+ padding: 0 24px;
436
+ `,Oa=zt.div`
437
+ cursor: pointer;
438
+ display: flex;
439
+ align-items: center;
440
+ gap: 8px;
441
+ `,Ra=zt.div`
442
+ display: flex;
443
+ align-items: center;
444
+ gap: 8px;
445
+ `,Fa=zt(Sa)`
446
+ min-width: 350px;
447
+ min-height: 150px;
448
+ `,za=zt.div`
449
+ position: absolute;
450
+ left: 50%;
451
+ transform: translateX(-50%);
452
+ display: flex;
453
+ align-items: center;
454
+ justify-content: center;
455
+ width: 100%;
456
+ pointer-events: none;
457
+ `,La=zt($r)`
458
+ text-transform: uppercase;
459
+ font-family: ${({theme:e})=>e.font_family.secondary};
460
+ pointer-events: auto;
461
+ `,Pa=zt($r)`
462
+ text-transform: uppercase;
463
+ font-weight: 500;
464
+ font-size: 14px;
465
+ font-family: ${({theme:e})=>e.font_family.secondary};
466
+ text-decoration: underline;
467
+ cursor: pointer;
468
+ `,Ma=({isOpen:e,noOverlay:t,header:o,actionComponent:i,onClose:r,children:n,closeOnEscape:a=!0})=>(Yn({key:"Escape",active:e&&a},()=>r()),Pn(e),e?Ht.createPortal(bt($t,{children:[yt(ka,{hidden:!e,onClick:r,style:{opacity:t?0:1}}),bt(Ia,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),children:[o&&bt(_a,{children:[bt(Oa,{onClick:r,children:[yt(Ke,{}),yt(Pa,{children:"Cancel"})]}),yt(za,{children:yt(La,{children:o.title})}),yt(Ra,{children:i})]}),yt(Fa,{children:n})]})]}),document.body):null),Ba=zt.div`
469
+ width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
470
+ height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
471
+ margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
472
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+vn["050"]};
473
+ opacity: ${({$opacity:e})=>e||1};
474
+ `,Ua=({orientation:e="horizontal",type:t,thickness:o=1,length:i,margin:r,opacity:n})=>yt(Ba,{$orientation:e,$type:t,$thickness:o,$length:i,$margin:r,$opacity:n}),ja=zt.div`
475
+ position: absolute;
476
+ ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
477
+ ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
478
+ ${({$left:e})=>void 0!==e&&`left: ${e}px;`}
479
+ ${({$right:e})=>void 0!==e&&`right: ${e}px;`}
480
+ z-index: 9999;
481
+
482
+ background-color: ${({theme:e})=>e.colors.info};
483
+ border: 1px solid ${({theme:e})=>e.colors.border};
484
+ border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
485
+ max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
486
+ width: ${({$width:e})=>void 0!==e?e:"unset"};
487
+
488
+ ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
489
+ `,Wa=zt.div`
490
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
491
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
492
+ `,Ga=zt.div`
493
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
494
+ `,Va=zt.div`
495
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
496
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
497
+ `,Xa=Tt(({isOpen:e,asPortal:t,...o},i)=>{const r=wt(()=>{const{children:e,top:r,bottom:n,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return bt(ja,{ref:i,$top:r,$bottom:n,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&yt(Wa,{$padding:c,children:u}),yt(Ga,{$padding:c,children:e}),h&&yt(Va,{$padding:c,children:h})]})},[i,o,t]);return e?t?Ht.createPortal(r,document.body):r:null});Xa.displayName=Xa.name;const Ha=zt.div`
498
+ width: fit-content;
499
+ position: relative;
500
+ display: flex;
501
+ align-items: center;
502
+ gap: 4px;
503
+ cursor: help;
504
+ `,Ja=zt($r)`
505
+ word-break: break-word;
506
+ white-space: pre-wrap;
507
+ `,Ka=({withIcon:e,titleIcon:t,title:o,text:i,timestamp:r,children:n})=>{const a=Pt(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=Zn({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(i?.length||0),300)}),u=wt(()=>!!xr(i||"")?.length,[i]),h=e=>{const{type:t,clientX:o,clientY:i}=e;u?p(d.left||o,d.top||i):p(o,i),c("mouseleave"!==t)};return i?bt(Ha,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h,children:[n,e&&yt(Ue,{fill:a.v2.colors.silver[200]}),bt(Xa,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px",children:[(!!t||!!o)&&bt(va,{style:{marginBottom:"4px"},$gap:4,children:[t&&yt(t,{size:12,fill:a.text.secondary},"icon"),o&&yt($r,{size:12,color:a.text.secondary,children:o},"title")]}),yt(Ja,{size:12,color:a.text.info,children:i}),!!r&&yt($r,{size:10,color:a.text.darker_grey,family:"secondary",style:{marginTop:"8px"},children:new Date(r).toLocaleString()})]})]}):yt($t,{children:n})},qa=zt.button`
508
+ position: relative;
509
+ width: ${({$size:e})=>e}px;
510
+ height: ${({$size:e})=>e}px;
511
+ border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
512
+ border-radius: 100%;
513
+ background-color: ${({$backgroundColor:e})=>e||"transparent"};
514
+ display: flex;
515
+ align-items: center;
516
+ justify-content: center;
517
+ cursor: pointer;
518
+ &:hover {
519
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+vn["070"]:e.colors.dropdown_bg_2};
520
+ }
521
+ `,Ya=zt.div`
522
+ position: absolute;
523
+ top: ${({$size:e})=>e/5}px;
524
+ right: ${({$size:e})=>e/5}px;
525
+ width: 6px;
526
+ height: 6px;
527
+ border-radius: 100%;
528
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
529
+
530
+ &::after {
531
+ content: '';
532
+ position: absolute;
533
+ inset: 0;
534
+ border-radius: 100%;
535
+ background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
536
+ animation: ${kn} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
537
+ }
538
+ `,Qa=({children:e,onClick:t,tooltip:o,size:i=36,withPing:r,pingColor:n,withBorder:a,backgroundColor:s,...l})=>yt(Ka,{text:o,children:bt(qa,{$size:i,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[r&&yt(Ya,{$size:i,$color:n}),e]})}),Za=zt.div`
539
+ position: relative;
540
+ &.animated {
541
+ overflow: hidden;
542
+ padding-bottom: 1px;
543
+ border-radius: 32px;
544
+ animation: ${({$isLeaving:e})=>e?Sn.out.bottom:Sn.in.bottom} ${({$duration:e})=>e/10}ms forwards;
545
+ }
546
+ `,es=zt.div`
547
+ position: absolute;
548
+ bottom: -1px;
549
+ left: 0;
550
+ z-index: -1;
551
+ width: 100%;
552
+ height: 100%;
553
+ border-radius: 32px;
554
+ background-color: ${({$type:e,theme:t})=>t.text[e]};
555
+ animation: ${Cn.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
556
+ `,ts=zt.div`
557
+ display: flex;
558
+ align-items: center;
559
+ flex: 1;
560
+ gap: 8px;
561
+ padding: 0 12px;
562
+ border-radius: 32px;
563
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
564
+ `,os=zt.div`
565
+ display: flex;
566
+ align-items: center;
567
+ margin: 0 auto 0 0;
568
+ padding: 8px 0;
569
+ max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
570
+ min-height: 12px;
571
+ `,is=zt($r)`
572
+ font-size: 14px;
573
+ color: ${({$type:e,theme:t})=>t.text[e]};
574
+ `,rs=zt($r)`
575
+ color: ${({$type:e,theme:t})=>t.text[e]};
576
+ font-size: 12px;
577
+ `,ns=zt(va)``,as=zt($r)`
578
+ text-transform: uppercase;
579
+ text-decoration: underline;
580
+ font-size: 12px;
581
+ font-family: ${({theme:e})=>e.font_family.secondary};
582
+ white-space: nowrap;
583
+ cursor: pointer;
584
+ &:hover {
585
+ transform: scale(1.1);
586
+ transition: transform 0.3s;
587
+ }
588
+ `,ss=({type:e,icon:t,title:o,message:i,action:r,onClose:n,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Pt(),[d,p]=St(!1),u=kt(null),h=kt(null),m=e=>{n&&(p(!0),n({asSeen:e?.asSeen}))};Ct(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||Li(e,c);return bt(Za,{className:n?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[bt(ts,{"data-id":"toast",$type:e,style:l,children:[yt(g,{fill:c.text[e]}),bt(os,{$withAction:!!r,$overrideMaxWidth:s,children:[o&&yt(is,{$type:e,children:o}),o&&i&&yt(Ua,{orientation:"vertical",type:e}),i&&yt(rs,{$type:e,children:i})]}),(!!r||!!n)&&bt(ns,{children:[r&&yt(as,{"data-id":"toast-action",onClick:r.onClick,children:r.label}),n&&yt(Qa,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:yt(Ke,{size:12})})]})]}),n&&yt(es,{ref:h,$duration:a,$type:e})]})},ls=zt.div`
589
+ padding: 24px 32px;
590
+ `,cs=zt.div`
591
+ padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
592
+ `,ds=zt($r)`
593
+ font-size: 20px;
594
+ line-height: 28px;
595
+ `,ps=zt($r)`
596
+ color: ${({theme:e})=>e.text.grey};
597
+ width: 416px;
598
+ font-style: normal;
599
+ font-weight: 300;
600
+ line-height: 24px;
601
+ `,us=zt.div`
602
+ display: flex;
603
+ justify-content: space-between;
604
+ gap: 12px;
605
+ `,hs=zt(Rn)`
606
+ width: 250px;
607
+ `,ms=zt.div`
608
+ margin-bottom: 12px;
609
+ `,gs=({isOpen:e,noOverlay:t,title:o="",description:i="",note:r,approveButton:n,denyButton:a,closeOnEscape:s=!0})=>{Yn({key:"Enter",active:e&&s},()=>n.onClick());const l=()=>a.onClick();return yt(Ma,{isOpen:e,noOverlay:t,onClose:l,children:bt(ls,{children:[yt(ds,{children:o}),yt(cs,{$withNote:!!r,children:yt(ps,{children:i})}),!!r&&yt(ms,{children:yt(ss,{type:r.type,title:r.title,message:r.message})}),bt(us,{children:[yt(hs,{"data-id":"approve",variant:n.variant||"primary",onClick:()=>n.onClick(),children:n.text}),yt(hs,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},fs=({isOpen:e,noOverlay:t,name:o,onApprove:i,onDeny:r})=>yt(gs,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Do.Warning,onClick:i},denyButton:{text:"Go Back",onClick:r}}),xs=zt.div`
610
+ display: flex;
611
+ align-items: center;
612
+ gap: 8px;
613
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
614
+ opacity: ${({$disabled:e})=>e?.6:1};
615
+ `,ys=zt.div`
616
+ width: 18px;
617
+ height: 18px;
618
+ border-radius: 6px;
619
+ border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e||t?"transparent":o.colors.secondary};
620
+ display: flex;
621
+ align-items: center;
622
+ justify-content: center;
623
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+vn["020"]};
624
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
625
+ transition: border 0.3s;
626
+ &:hover {
627
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
628
+ }
629
+ `,bs=({title:e,titleColor:t,tooltip:o,value:i=!1,partiallyChecked:r=!1,onChange:n,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Pt(),[p,u]=St(i);Ct(()=>u(i),[i]);return bt(wa,{children:[bt(xs,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),n?n(!!r||!p):u(e=>!!r||!e))},style:s,children:[yt(ys,{$isChecked:p,$isPartiallyChecked:r,$disabled:a,children:r?yt(qe,{fill:d.text.white}):p?yt(He,{fill:d.text.white}):null}),e&&yt(Ka,{text:o,withIcon:!0,children:yt($r,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&yt(Sr,{children:l})]})},$s=zt(va)`
630
+ gap: 0;
631
+ `,vs=zt.button`
632
+ padding: 4px 8px;
633
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
634
+ border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
635
+ border: 1px solid ${({theme:e})=>e.colors.border};
636
+ display: flex;
637
+ align-items: center;
638
+ justify-content: center;
639
+ cursor: pointer;
640
+ &:hover {
641
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
642
+ }
643
+ `,ws=({isPrettyMode:e,setIsPrettyMode:t})=>bt($s,{children:[yt(vs,{$position:"left",$selected:e,onClick:()=>t(!0),children:yt(Ye,{})}),yt(vs,{$position:"right",$selected:!e,onClick:()=>t(!1),children:yt(Qe,{})})]}),Ss=zt.table`
644
+ border-collapse: collapse;
645
+ font-family: ${({theme:e})=>e.font_family.primary};
646
+ `,Cs=zt.tbody``,ks=zt.tr`
647
+ td:first-child {
648
+ padding-left: 0 !important;
649
+ }
650
+ td:last-child {
651
+ padding-right: 0 !important;
652
+ }
653
+ `,Es=zt.td`
654
+ vertical-align: top;
655
+ padding: 4px 6px;
656
+ `,As=zt($r)`
657
+ white-space: nowrap;
658
+ `,Ds=zt.span`
659
+ white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
660
+ overflow-wrap: break-word;
661
+ word-break: break-word;
662
+ word-wrap: break-word;
663
+ /* Fallback for older browsers */
664
+ -ms-word-break: break-all;
665
+ font-size: 12px;
666
+ `,Ts=({language:e,code:t,theme:o,flatten:i,pretty:r})=>{const{darkMode:n}=Pt(),a=o?qt[o]:n?qt.palenight:qt.vsLight;let s="";if("json"===e){const e=Ui(t,{}),o=nr(e);s=ar(i?pi(o):o)}else s=t;return r&&"json"===e?yt(Ns,{darkMode:n,str:s}):yt(Kt,{theme:a||(n?qt.palenight:qt.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:o})=>yt("pre",{children:o.map((o,i)=>yt("div",{...e({line:o}),children:o.map((e,o)=>yt(Ds,{...t({token:e})},`line-${i}-token-${o}`))},`line-${i}`))})})},Ns=({darkMode:e,str:t})=>{const o=Pt(),i=(e,t)=>{const i=new Array(e).fill(e=>bt(ks,{...e,children:[yt(Es,{}),yt(Es,{})]}));return yt(vt,{children:i.map((e,i)=>yt(e,{style:0===i?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${t}-${i}`))})};return yt(Kt,{theme:e?qt.palenight:qt.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:r})=>yt(Ss,{children:yt(Cs,{children:r.map((r,n)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],i=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(i.split("@")[0])&&(o[0]="boolean"),i.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:i}})})(r),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?bt(vt,{children:[i(2,n),bt(ks,{...s,children:[yt(Es,{children:yt(As,{children:a[0].content})}),yt(Es,{})]})]},`line-${n}`):2===a.length?yt(ks,{...s,children:a.map((e,i)=>{const{text:r,components:a}=((e,t)=>{const[o,...i]=e.split("@");return{text:o,components:i?.map((e,o)=>{if(!e.includes("="))return null;const[i,r]=e.split("=");switch(i){case"tooltip":return yt(Ka,{withIcon:!0,text:r},`${i}-${r}-${o}`);case"status":if("none"===r)return yt("div",{style:{width:16,height:16}},`${i}-${r}-${o}`);let e=Li(r,t);return e||(e=Li(Do.Warning,t)),yt(e,{},`${i}-${r}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===i;return yt(Es,{children:bt(va,{children:[yt(va,{children:a}),yt(Ds,{$noWrap:s,...t({token:e}),children:r})]})},`line-${n}-token-${i}`)})},`line-${n}`):(a.length,null)})})})})},Is={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 _s(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const i=(e.match(/[^0-9]*$/)||"").toString();return Is[i]?{value:t,unit:i}:{value:t,unit:"px"}}function Os(e){const t=_s(e);return`${t.value}${t.unit}`}const Rs=((e,t,o)=>{const i=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return i;const r=document.createElement("style");document.head.appendChild(r);const n=r.sheet,a=`\n @keyframes ${i} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),i})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Fs=({loading:e=!0,color:t,scale:o=1,speedMultiplier:i=1,cssOverride:r={},style:n={},...a})=>{const s=Pt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=_s(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...r},m=(e,t)=>({position:"absolute",width:Os(1.5),height:Os(4),borderRadius:Os(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Rs} ${1.2/i}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[yt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),yt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),yt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),yt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),yt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),yt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},zs=zt.div`
667
+ margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
668
+ display: flex;
669
+ align-items: center;
670
+ justify-content: center;
671
+ `,Ls=({extend:e,size:t=14,align:o="center"})=>yt(zs,{$align:o,children:yt(Ze,{size:t,rotate:e?180:0})}),Ps=zt.div`
672
+ border-radius: 24px;
673
+ background-color: ${({theme:e,$status:t})=>t===Do.Error?e.text.error+vn["010"]:t===Do.Warning?e.text.warning+vn["010"]:e.colors.secondary+vn["005"]};
674
+ &:hover {
675
+ background-color: ${({theme:e,$status:t})=>t===Do.Error?e.text.error+vn["020"]:t===Do.Warning?e.text.warning+vn["020"]:e.colors.secondary+vn["010"]};
676
+ }
677
+ cursor: pointer;
678
+ transition: background 0.3s;
679
+ `,Ms=zt.div`
680
+ display: flex;
681
+ align-items: center;
682
+ gap: 12px;
683
+ padding: 12px 18px;
684
+ `,Bs=zt.div`
685
+ display: flex;
686
+ flex-direction: column;
687
+ gap: 8px;
688
+ padding: 6px 18px 12px 18px;
689
+ `,Us=zt.div`
690
+ display: flex;
691
+ align-items: center;
692
+ gap: 12px;
693
+ `,js=zt($r)`
694
+ white-space: nowrap;
695
+ `,Ws=zt(wa)`
696
+ width: 16px;
697
+ `,Gs=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:i="Everything Successful"})=>{const r=Pt(),[n,a]=St(!1),s=wt(()=>Qi(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=wt(()=>fi(s),[s]);Ct(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Do.Error:p?Do.Warning:u?Do.Info:Do.Success,f=Li(g,r),x=c?t:p||u?o:m?"Loading...":i,y=c?r.text.error:p?r.text.warning:r.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,$=c?r.text.error_secondary:p?r.text.warning_secondary:r.text.info_secondary,v=Et(()=>a(e=>!e),[]);return bt(Ps,{onClick:v,$status:g,children:[bt(Ms,{children:[yt(m?Fs:f,{}),yt($r,{color:y,size:14,children:x}),yt($r,{color:$,size:12,family:"secondary",children:b}),yt(Ls,{extend:n,align:"right"})]}),n&&yt(Bs,{children:s.map(({status:e,type:t,reason:o,message:i},n)=>{const a=e===No.Loading?()=>yt(Fs,{scale:.8}):e===No.Disabled?Li(Do.Info,r):Li(e,r),s=e===No.Disabled?r.text.info:e===Do.Error?r.text.error:e===Do.Warning?r.text.warning:r.text.info,l=e===No.Disabled?r.text.info_secondary:e===Do.Error?r.text.error_secondary:e===Do.Warning?r.text.warning_secondary:r.text.info_secondary;return bt(Us,{children:[yt(Ws,{children:yt(a,{})}),bt($r,{color:s,size:12,children:[yt(js,{color:l,size:12,weight:700,children:t}),i||o]})]},`condition-${n}`)})})]})},Vs=zt.div`
698
+ display: flex;
699
+ align-items: center;
700
+ gap: ${({$size:e})=>e/3}px;
701
+ padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
702
+ width: ${({$width:e})=>e||"fit-content"};
703
+ border-radius: 360px;
704
+ border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+vn["050"]}`:"none"};
705
+ background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+vn["030"]} 100%)`:"transparent"};
706
+ `,Xs=zt.div`
707
+ display: flex;
708
+ align-items: center;
709
+ `,Hs=zt.div`
710
+ display: flex;
711
+ align-items: center;
712
+ `,Js=({title:e,subtitle:t,status:o=Do.Default,forceIcon:i,withIcon:r,withBorder:n,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Pt(),u=[No.Loading,No.Disabled].includes(o)?Do.Info:o,h=i?()=>yt(i,{size:l+2,fill:p.text[u]}):o===No.Loading?()=>yt(Fs,{scale:.8}):()=>Li(u,p)?.({size:l+2});return bt(Vs,{$status:u,$width:s,$size:l,$withIcon:r,$withBorder:n,$withBackground:a,children:[r&&yt(Xs,{children:yt(h,{})}),(!!e||!!t)&&bt(Hs,{children:[!!e&&yt($r,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&yt(Ua,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&yt($r,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Ks=({label:e,onClick:t,variant:o="tertiary",textProps:i,...r})=>{const n=Pt();return bt(Rn,{onClick:t,variant:o,...r,children:[yt(et,{fill:"primary"===o?n.text.primary:n.text.info}),yt($r,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?n.text.primary:void 0,...i,children:e||ci.ADD})]})},qs=zt(va)`
713
+ width: 100%;
714
+ border-radius: 8px;
715
+ background-color: ${({theme:e})=>e.colors.secondary+vn["010"]};
716
+ pre {
717
+ color: ${({theme:e})=>e.text.default};
718
+ font-size: 12px;
719
+ overflow-x: auto;
720
+ width: 100%;
721
+ padding-left: 12px;
722
+ }
723
+ `,Ys=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:i}=Vn();return bt(qs,{children:[yt("pre",{children:e}),yt(Qa,{onClick:i=>{i.stopPropagation(),o(e),t?.()},tooltip:i?"Copied!":"Copy",children:yt(i?He:Je,{})})]})},Qs=({label:e,onClick:t,variant:o="tertiary",...i})=>{const r=Pt();return bt(Rn,{onClick:t,variant:o,...i,children:[yt(tt,{fill:"primary"===o?r.text.primary:r.text.info}),yt($r,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?r.text.primary:void 0,children:e||ci.EDIT})]})},Zs=({onClick:e})=>yt(ss,{type:Do.Default,icon:Xe,message:li.QUICK_BACK_TO_SUMMARY,action:{label:li.GO_TO_SUMMARY,onClick:e}}),el=zt($r)`
724
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
725
+ white-space: nowrap;
726
+ overflow-x: auto;
727
+
728
+ &::after {
729
+ // This is to prevent the "browser default tooltip" from appearing when the title is too long
730
+ content: '';
731
+ display: block;
732
+ }
733
+ `,tl=({maxWidth:e,text:t,textSize:o=16,textColor:i})=>{const[r,n]=St(!1),a=kt(null);return Ct(()=>{if(a.current){const{clientWidth:t}=a.current;n(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),bt(va,{$gap:0,children:[t&&yt(Ka,{text:r?t:void 0,children:yt(el,{ref:a,$maxWidth:e-o,size:o,color:i,children:t})}),r&&yt(el,{$maxWidth:o,size:o,color:i,children:"..."})]})},ol=({src:e="",alt:t="",size:o=16})=>{const[i,r]=St(!1);return e&&!i?yt("img",{src:e,alt:t,width:o,height:o,onError:()=>r(!0)}):yt(s,{size:o})},il=zt.div`
734
+ display: flex;
735
+ align-items: center;
736
+ justify-content: center;
737
+ width: ${({$size:e})=>e}px;
738
+ height: ${({$size:e})=>e}px;
739
+ border-radius: 8px;
740
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+vn["030"]} 100%)`}};
741
+ `,rl=({icon:e,src:t="",alt:o="",status:i,size:r=36})=>yt(il,{$status:i,$size:r,children:t?yt(ol,{src:t,alt:o,size:r-12}):yt(e||s,{size:r-12})}),nl=zt.div`
742
+ position: relative;
743
+ display: flex;
744
+ flex-wrap: wrap;
745
+ align-items: center;
746
+ justify-content: center;
747
+ width: ${({$size:e})=>e}px;
748
+ height: ${({$size:e})=>e}px;
749
+ `,al=zt.div`
750
+ position: absolute;
751
+ top: ${({$top:e})=>e}px;
752
+ left: ${({$left:e})=>e}px;
753
+ z-index: ${({$zIndex:e})=>e};
754
+ display: flex;
755
+ align-items: center;
756
+ justify-content: center;
757
+ width: ${({$size:e})=>e}px;
758
+ height: ${({$size:e})=>e}px;
759
+ border-radius: 100%;
760
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+vn["030"]};
761
+ background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+vn["030"]} 100%)`}};
762
+ `,sl=({icons:e=[],iconSrcs:t=[],status:o,size:i=36,id:r})=>{const n=Pt(),a=1===e.length||1===t.length?i-12:i/2.7;if(t.length>0)return yt(sl,{icons:t.map(e=>()=>yt(ol,{src:e,size:a})),status:o,size:i,id:r});if(1===e.length)return yt(rl,{icon:e[0],status:o,size:i});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return yt(nl,{$status:o,$size:i,children:e.map((t,i)=>i>2?null:yt(al,{$status:o,$size:1.5*a,$top:s(i),$left:l(i),$zIndex:i+1,children:2===i&&e.length>3?bt($r,{family:"secondary",color:n.text.dark_grey,size:.8*a,children:["+",e.length-2]}):yt(t,{size:a})},`icon-${r}-${i}`))})},ll=Xr.map(({id:e})=>e),cl=({monitors:e=ll,withTooltips:t,withLabels:o,size:i=12,color:r})=>{const n=Pt(),a=r||n.text.grey;return yt(va,{$gap:o?i:i/2,children:e.map(e=>{const r=eo(e.toLowerCase()),n=Ni(e);return n?yt(Ka,{text:t?r:"",children:bt(va,{$gap:i/3,children:[yt(n,{size:o?i+2:i,fill:a}),o&&yt($r,{size:i,color:a,children:r})]})},e):null})})},dl=zt.div`
763
+ visibility: hidden;
764
+ `,pl=zt.div`
765
+ display: flex;
766
+ flex-direction: column;
767
+ align-self: stretch;
768
+ padding: 16px;
769
+ width: calc(100% - 32px);
770
+ border-radius: 16px;
771
+ background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+vn["010"]:e.colors.secondary+vn["005"])};
772
+ opacity: ${({$faded:e})=>e?.5:1};
773
+
774
+ ${({theme:e,$status:t,$bgColorHover:o,$withClick:i})=>i?Lt`
775
+ &:hover {
776
+ cursor: pointer;
777
+ background-color: ${o||(t?e.text[t]+vn["020"]:e.colors.secondary+vn["010"])};
778
+ ${dl} {
779
+ visibility: visible;
780
+ }
781
+ }
782
+ `:`\n &:hover {\n ${dl} {\n visibility: visible;\n }\n }\n `}
783
+ `,ul=zt.div`
784
+ display: flex;
785
+ align-items: center;
786
+ gap: 8px;
787
+ margin-left: auto;
788
+ `,hl=zt($r)`
789
+ margin-right: 16px;
790
+ `,ml=zt($r)`
791
+ font-size: 10px;
792
+ color: ${({theme:e})=>e.text.grey};
793
+ `,gl=({title:e,subTitle:t,hoverText:o,onClick:i,renderActions:r,iconProps:{icon:n,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:f,isCheckboxDisabled:x,isChecked:y,isLoading:b,onCheckboxChange:$}={},extendableProps:{withExtend:v,isExtended:w,renderExtended:S}={},...C})=>{const k=Pt(),[E,A]=St(w||!1),[D,T]=St(0),N=kt(null),I=kt(null),_=kt(null);return Ct(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((f?125:85)+t))}},[f]),bt(pl,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!i,onClick:i,...C,children:[bt(va,{$gap:8,children:[bt(va,{$gap:16,children:[b?yt(Fs,{}):f?yt(bs,{value:y,onChange:$,disabled:x}):null,a?.length||l?.length?yt(sl,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):n||s?yt(rl,{icon:n,src:s,status:c}):null]}),bt(wa,{$gap:4,children:[e&&yt(tl,{maxWidth:D,text:e,textSize:14}),bt(va,{$gap:4,children:[t&&yt(tl,{maxWidth:D-(_.current?.clientWidth||0),text:t,textSize:10,textColor:k.text.grey}),h&&h.length>0&&bt(va,{$gap:4,ref:_,children:[t&&yt(ml,{children:"•"}),yt(cl,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?yt(va,{$gap:4,children:g?.map((e,t)=>yt(vt,{children:e},`componentsUnderTitles-${t}`))}):null]}),bt(ul,{ref:I,children:[!!o&&yt(dl,{children:yt(hl,{size:14,family:"secondary",children:o})}),r&&r(),v&&bt(vt,{children:[yt(Ua,{orientation:"vertical",length:"16px",margin:"0 2px"}),yt(Qa,{onClick:()=>A(e=>!e),children:yt(Ls,{extend:E})})]})]})]}),E&&S&&bt(wa,{children:[yt(Ua,{margin:"16px 0"}),S()]})]})},fl=zt(va)`
794
+ width: 100%;
795
+ justify-content: space-between;
796
+ `,xl=zt($r)`
797
+ font-size: 12px;
798
+ color: ${({theme:e})=>e.text.grey};
799
+ `,yl=zt($r)`
800
+ font-size: 10px;
801
+ color: ${({theme:e})=>e.text.darker_grey};
802
+ `,bl=zt.div`
803
+ display: flex;
804
+ align-items: center;
805
+ gap: 8px;
806
+ margin-left: auto;
807
+ `,$l=zt($r)`
808
+ font-size: 12px;
809
+ text-align: right;
810
+ `,vl=({title:e,subTitle:t,tooltip:o,value:i})=>bt(fl,{children:[yt(wa,{$gap:4,children:bt(Ka,{text:o||"",children:[e&&yt(xl,{children:e},"title"),t&&yt(yl,{children:t},"subtitle")]})}),yt(bl,{children:i?.status?yt(Js,{status:"transitioning"===i.status?No.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):yt($l,{children:i?.text||"-"})})]}),wl=zt(wa)`
811
+ width: 100%;
812
+ `,Sl=({containerName:e,actualDevices:t,started:o,ready:i,instrumentationInstances:r})=>{const n=wt(()=>{const e=[];return o?.name&&e.push(yt(Js,{status:Hi(o.value)?ir(o.value)?Do.Success:Do.Error:Do.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&e.push(yt(Js,{status:Hi(i.value)?ir(i.value)?Do.Success:Do.Error:Do.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[o?.name,o?.value,i?.name,i?.value]);return yt(gl,{title:e.value,subTitle:r.length?`${r.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:n},renderActions:()=>yt(Js,{status:Do.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!r.length,renderExtended:()=>yt(wl,{$gap:24,children:r.map((e,t)=>bt(wl,{$gap:8,children:[yt(vl,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Do.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>yt(vl,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},Cl=({title:e="Data not found",subTitle:t})=>{const o=Pt().v2.colors.grey[400];return bt(Sa,{children:[bt(va,{$gap:8,children:[yt(ot,{fill:o}),yt(hr,{size:pr.XS,color:o,align:"center",children:e})]}),t&&yt(hr,{size:pr.XXS,color:o,align:"center",children:t})]})},kl=zt(wa)`
813
+ max-width: 300px;
814
+ padding: 12px;
815
+ border-radius: 12px;
816
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
817
+ justify-content: center;
818
+ `,El=Nt(({id:e,data:t})=>{const{title:o,subTitle:i}=t;return yt(kl,{"data-id":e,children:yt(Cl,{title:o,subTitle:i})})});El.displayName=El.name;const Al=zt.div`
819
+ padding: 6px;
820
+ border-radius: 12px;
821
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
822
+ cursor: pointer;
823
+ ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
824
+ `,Dl=zt.div`
825
+ position: relative;
826
+ `,Tl=zt.div`
827
+ position: absolute;
828
+ top: 100%;
829
+ margin-top: 4px;
830
+ left: 50%;
831
+ transform: translateX(-50%);
832
+ display: flex;
833
+ flex-direction: column;
834
+ align-items: center;
835
+ gap: 2px;
836
+ width: 140px;
837
+ text-align: center;
838
+ `,Nl=Nt(({id:e,data:t})=>{const{id:o,status:i,title:r,icons:n,isVirtual:a}=t,s=Pt(),l=a||i!==Do.Error?null:Li(i,s);return bt($t,{children:[yt(Ut,{type:"source",position:jt.Right,style:{visibility:"hidden"}}),yt(Ut,{type:"target",position:jt.Left,style:{visibility:"hidden"}}),bt(Dl,{"data-id":e,children:[yt(Al,{$isVirtual:a,children:yt(sl,{id:o,icons:n,status:a?void 0:i})}),bt(Tl,{children:[l&&yt(l,{}),yt($r,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:r})]})]})]})});Nl.displayName=Nl.name;const Il={duration:300,padding:.1,includeHiddenNodes:!0},_l=zt.div`
839
+ height: 100%;
840
+ .react-flow__attribution {
841
+ visibility: hidden;
842
+ }
843
+ `,Ol=zt.div`
844
+ button {
845
+ padding: 8px;
846
+ margin: 8px;
847
+ border-radius: 8px;
848
+ border: 1px solid ${({theme:e})=>e.colors.border} !important;
849
+ background-color: ${({theme:e})=>e.colors.dropdown_bg};
850
+ path {
851
+ fill: ${({theme:e})=>e.text.secondary};
852
+ }
853
+ &:hover {
854
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
855
+ }
856
+ }
857
+ `,Rl={[Oo.MapItem]:Nl,[Oo.NoData]:El},Fl=({trigger:e})=>{const{fitView:t}=Xt(),o=kt(!0);return Ct(()=>{o.current?o.current=!1:e>0&&requestAnimationFrame(()=>t(Il))},[e,t]),null},zl=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:i,fitViewTrigger:r=0,zoomOnScroll:n=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l})=>{const{onClickNode:c}=Mn(),{setActiveNodeType:d,setActiveNodeId:p}=Mr();return bt(Gt,{zoomOnScroll:n,nodes:e,nodeTypes:Rl,edges:t,onNodeClick:c,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:e=>{setTimeout(()=>o(e),0)},onEdgesChange:e=>{setTimeout(()=>i(e),0)},onBlur:()=>{d(null),p(null)},onlyRenderVisibleElements:!0,children:[yt(Fl,{trigger:r}),yt(Ol,{children:yt(Vt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Il})})]})},Ll=e=>yt(_l,{children:yt(Wt,{children:yt(zl,{...e})})}),Pl=zt.div`
858
+ display: flex;
859
+
860
+ align-items: center;
861
+ gap: 6px;
862
+ margin-bottom: 4px;
863
+ `,Ml=zt($r)`
864
+ font-size: 14px;
865
+ opacity: 0.8;
866
+ line-height: 22px;
867
+ overflow: hidden;
868
+ white-space: nowrap;
869
+ text-overflow: ellipsis;
870
+ color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
871
+ `,Bl=zt($r)`
872
+ font-size: 12px;
873
+ color: ${({theme:e})=>e.text.darker_grey};
874
+ opacity: 0.8;
875
+ `,Ul=({title:e,required:t,tooltip:o,style:i,status:r})=>e?yt(Pl,{style:i,children:bt(Ka,{text:o,withIcon:!0,children:[yt(Ml,{$status:r,children:e}),!t&&yt(Bl,{children:"(optional)"})]})}):null,jl=zt.div`
876
+ display: flex;
877
+ flex-direction: column;
878
+ position: relative;
879
+ width: 100%;
880
+ `,Wl=zt.div`
881
+ width: 100%;
882
+ display: flex;
883
+ align-items: center;
884
+ height: 36px;
885
+ gap: 12px;
886
+ transition: border-color 0.3s;
887
+ border-radius: 32px;
888
+ border: 1px solid ${({theme:e})=>e.colors.border};
889
+ ${({$disabled:e})=>e&&Lt`
890
+ cursor: not-allowed;
891
+ opacity: 0.6;
892
+ `}
893
+ ${({$isActive:e,$hasError:t,$status:o})=>e?Lt`
894
+ border-color: ${({theme:e})=>e.colors.secondary};
895
+ `:t?Lt`
896
+ border-color: ${({theme:e})=>e.text.error};
897
+ `:o?Lt`
898
+ border-color: ${({theme:e})=>e.text[o]};
899
+ `:""}
900
+ &:hover {
901
+ border-color: ${({theme:e})=>e.colors.secondary};
902
+ }
903
+ &:focus-within {
904
+ border-color: ${({theme:e})=>e.colors.secondary};
905
+ }
906
+ `,Gl=zt.input`
907
+ padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
908
+ flex: 1;
909
+ min-width: 150px;
910
+ width: 100%;
911
+ border: none;
912
+ outline: none;
913
+ background: none;
914
+ color: ${({theme:e})=>e.text.secondary};
915
+ font-size: 14px;
916
+ font-family: ${({theme:e})=>e.font_family.primary};
917
+ font-weight: 300;
918
+ &::placeholder {
919
+ color: ${({theme:e})=>e.text.secondary};
920
+ font-family: ${({theme:e})=>e.font_family.primary};
921
+ opacity: 0.4;
922
+ font-size: 14px;
923
+ font-weight: 300;
924
+ line-height: 22px; /* 157.143% */
925
+ }
926
+ &:disabled {
927
+ cursor: not-allowed;
928
+ opacity: 0.6;
929
+ }
930
+ &::-webkit-inner-spin-button,
931
+ &::-webkit-outer-spin-button {
932
+ -webkit-appearance: none;
933
+ margin: 0;
934
+ }
935
+ `,Vl=zt.div`
936
+ display: flex;
937
+ align-items: center;
938
+ margin-left: 12px;
939
+ `,Xl=zt(Vl)`
940
+ cursor: pointer;
941
+ `,Hl=zt.button`
942
+ background-color: ${({theme:e})=>e.colors.primary};
943
+ border: none;
944
+ color: ${({theme:e})=>e.text.secondary};
945
+ padding: 8px 16px;
946
+ border-radius: 20px;
947
+ cursor: pointer;
948
+ margin-left: 8px;
949
+ &:hover {
950
+ background-color: ${({theme:e})=>e.colors.secondary};
951
+ }
952
+ &:disabled {
953
+ background-color: ${({theme:e})=>e.colors.border};
954
+ cursor: not-allowed;
955
+ }
956
+ `,Jl=({icon:e,buttonLabel:t,onButtonClick:o,hasError:i,errorMessage:r,title:n,tooltip:a,required:s,value:l,onChange:c,type:d=Ao.Text,name:p,status:u,...h})=>{const m=Pt(),g=d===Ao.Password,[f,x]=St(!1);return bt(jl,{children:[yt(Ul,{title:n,required:s,tooltip:a,status:u}),bt(Wl,{$disabled:h.disabled,$hasError:i||!!r,$isActive:!!h.autoFocus,$status:u,children:[g?yt(Xl,{onClick:()=>x(e=>!e),children:yt(f?it:rt,{size:14,fill:m.text.grey})}):e?yt(Vl,{children:yt(e,{size:14,fill:m.text.grey})}):null,yt(Gl,{"data-id":p,type:f||d===Ao.Number?Ao.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Ao.Number&&(e.target.value=or(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&yt(Hl,{onClick:o,disabled:h.disabled,children:t})]}),!!r&&yt(Sr,{children:r})]})},Kl=zt.div`
957
+ display: flex;
958
+ flex-direction: column;
959
+ min-width: 120px;
960
+ width: 100%;
961
+ opacity: ${({$disabled:e})=>e?.5:1};
962
+ `,ql=zt.div`
963
+ position: relative;
964
+ `,Yl=zt.div`
965
+ display: flex;
966
+ align-items: center;
967
+ justify-content: space-between;
968
+ height: 36px;
969
+ padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
970
+ border-radius: 32px;
971
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
972
+
973
+ ${({$isOpen:e,$isMulti:t,theme:o})=>e&&!t?Lt`
974
+ border: 1px solid ${o.text.grey};
975
+ background: ${o.colors.dropdown_bg_2};
976
+ `:Lt`
977
+ border: 1px solid ${o.colors.border};
978
+ background: transparent;
979
+ `};
980
+
981
+ ${({$hasError:e,$status:t})=>e?Lt`
982
+ border-color: ${({theme:e})=>e.text.error};
983
+ `:t?Lt`
984
+ border-color: ${({theme:e})=>e.text[t]};
985
+ `:""}
986
+
987
+ &:hover {
988
+ border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:i})=>o?"auto":e&&t?i.colors.border:i.colors.secondary};
989
+ }
990
+ `,Ql=zt.div`
991
+ display: flex;
992
+ align-items: center;
993
+ gap: 4px;
994
+ `,Zl=({options:e,value:t,onSelect:o,onDeselect:i,title:r,tooltip:n,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=St(!1),[f,x]=St(!1),y=kt(null);Qn(y,()=>g(!1));const b=()=>{(()=>{if(y.current){const e=y.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},$=Array.isArray(t)?t.length:0;return bt(Kl,{$disabled:s,children:[yt(Ul,{title:r,required:d,tooltip:n,status:h}),bt(ql,{ref:y,children:[bt(Yl,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[yt(ic,{value:t,placeholder:a,onDeselect:i}),bt(Ql,{children:[l&&yt(Nn,{label:$,filled:!!$}),yt(Ls,{extend:m})]})]}),m&&yt(ac,{openUpwards:f,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{i?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&yt(Sr,{children:p})]})},ec=zt(Ql)`
995
+ max-width: calc(100% - 50px);
996
+ overflow-x: auto;
997
+ `,tc=zt($r)`
998
+ display: flex;
999
+ align-items: center;
1000
+ gap: 2px;
1001
+ padding: 4px 12px;
1002
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
1003
+ border-radius: 360px;
1004
+ white-space: nowrap;
1005
+ text-overflow: ellipsis;
1006
+ img {
1007
+ &:hover {
1008
+ transform: scale(2);
1009
+ transition: transform 0.3s;
1010
+ }
1011
+ }
1012
+ `,oc=zt($r)``,ic=({value:e,placeholder:t,onDeselect:o})=>{const i=Pt();return Array.isArray(e)?e.length?yt(ec,{children:e.map(e=>bt(tc,{size:14,children:[e.value,yt(Ua,{orientation:"vertical",length:"10px",margin:"0 4px"}),yt(Ke,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})]},`multi-label-${e.id}`))}):yt(oc,{size:14,color:i.text.darker_grey,children:t}):yt(oc,{size:14,color:e?.value?void 0:i.text.darker_grey,children:e?.value||t})},rc=zt.div`
1013
+ position: absolute;
1014
+ ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1015
+ left: 0;
1016
+ z-index: 1;
1017
+ display: flex;
1018
+ flex-direction: column;
1019
+ overflow-y: auto;
1020
+ width: calc(100% - 16px);
1021
+ max-height: 200px;
1022
+ gap: 8px;
1023
+ padding: 8px;
1024
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1025
+ border: 1px solid ${({theme:e})=>e.colors.border};
1026
+ border-radius: 24px;
1027
+ `,nc=zt.div`
1028
+ display: flex;
1029
+ flex-direction: column;
1030
+ align-items: center;
1031
+ `,ac=({openUpwards:e,options:t,value:o,onSelect:i,onDeselect:r,isMulti:n,showSearch:a})=>{const[s,l]=St(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return bt(rc,{$openUpwards:e,children:[a&&bt(nc,{children:[yt(Jl,{placeholder:"Search...",icon:nt,value:s,onChange:e=>l(e.target.value)}),yt(Ua,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?yt(Cl,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>yt(lc,{option:e,value:o,isMulti:n,onSelect:i,onDeselect:r},`dropdown-option-${e.id||t}`))]})},sc=zt.div`
1032
+ padding: 8px 12px;
1033
+ cursor: pointer;
1034
+ display: flex;
1035
+ justify-content: space-between;
1036
+ align-items: center;
1037
+ border-radius: 32px;
1038
+ &:hover,
1039
+ &.selected {
1040
+ background: ${({theme:e})=>e.colors.majestic_blue+vn["024"]};
1041
+ }
1042
+ `,lc=({option:e,value:t,isMulti:o,onSelect:i,onDeselect:r})=>{const n=Pt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?i?.(e):r?.(e);return o?yt(sc,{className:a?"selected":"",onClick:()=>s(!a),children:yt(bs,{title:e.value||"",titleColor:n.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):bt(sc,{className:a?"selected":"",onClick:()=>a?r?.(e):i?.(e),children:[bt(va,{$gap:8,children:[e.icon&&yt(e.icon,{}),yt($r,{size:14,children:e.value})]}),a&&yt(He,{})]})},cc=zt(wa)`
1043
+ gap: 12px;
1044
+ `,dc=zt(va)`
1045
+ width: 100%;
1046
+ gap: 12px;
1047
+ align-items: flex-end;
1048
+ `,pc=({clientX:e=0,flipX:t,clientY:o=0,flipY:i,isOpen:r,onClose:n,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Pt(),{popupRef:m,popupPosition:g,handlePosition:f}=Zn({onClickOutside:n});return Yn({key:"Enter",active:r},a),Ct(()=>f(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:yt(Xa,{ref:m,isOpen:r,top:i?void 0:g.top,bottom:i?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:bt(cc,{children:[yt(Ka,{text:d,withIcon:!0,children:yt($r,{size:14,children:c})}),bt(dc,{children:[u,bt(va,{$gap:6,children:[yt(Qa,{withBorder:!0,onClick:n,tooltip:"Cancel",children:yt(Ke,{})}),yt(Qa,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:yt(He,{fill:h.text.primary})}),s&&yt(Qa,{onClick:l,tooltip:"Undo",children:yt(at,{})})]})]}),p&&yt(ss,{type:Do.Warning,message:p})]})})},uc=zt.div`
1049
+ position: relative;
1050
+ `,hc=({defaultLanguage:e=wo.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:i})=>{const{tier:r}=aa(),{addNotification:n}=an(),{formData:a,handleFormChange:s,resetFormData:l}=Fn({language:e,version:t,otelDistroName:o}),[c,d]=St(!1),p=()=>{d(!1),l()},u=wt(()=>{if(!a.language)return[];const e=Kr[a.language].community,t=r===bo.Onprem?Kr[a.language].enterprise:[];return e.concat(t)},[a.language,r]);return bt(uc,{children:[yt(Qa,{tooltip:li.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:yt(tt,{})}),yt(pc,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||qi(a.version)?(await i({...a}),p()):n({type:Do.Warning,message:si.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),p()},title:li.OVERRIDE_RUNTIME_DETAILS,warning:li.OVERRIDE_RUNTIME_WARNING,children:bt(wa,{$gap:12,children:[bt(va,{$gap:12,children:[yt(Zl,{title:li.LANGUAGE,options:Jr,value:Jr.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),yt(Jl,{title:li.RUNTIME_VERSION,placeholder:li.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&yt(Zl,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},mc=zt(va)`
1051
+ width: 100%;
1052
+ justify-content: center;
1053
+ `,gc=({containerName:e,language:t,runtimeVersion:o,overriden:i,instrumented:r,instrumentationMessage:n,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Pt(),c=r?Do.Success:n?Do.Info:Do.Warning,d=r?To.INSTRUMENTED:n?To.NOT_INSTRUMENTED:To.INSTRUMENTING;return yt(gl,{title:e,subTitle:`${t?Hr[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:yi(t)},extendableProps:{isExtended:!!n,renderExtended:()=>yt(mc,{children:yt($r,{size:12,family:"secondary",color:l.text.info,children:Yi(n)})})},renderActions:()=>bt($t,{children:[yt(Js,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),i&&yt(Js,{status:Do.Default,forceIcon:st,title:li.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&yt(hc,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},fc=zt.tr`
1054
+ cursor: ${({$withHover:e})=>e?"pointer":"default"};
1055
+ opacity: ${({$faded:e})=>e?.5:1};
1056
+ `,xc=zt.td`
1057
+ position: relative;
1058
+ width: fit-content;
1059
+ padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
1060
+ color: ${({theme:e})=>e.text.secondary};
1061
+ font-family: ${({theme:e})=>e.font_family.primary};
1062
+ font-size: 14px;
1063
+ white-space: nowrap;
1064
+ `,yc=zt($r)`
1065
+ font-size: 14px;
1066
+ color: ${({$color:e,theme:t})=>e??t.text.secondary};
1067
+ line-height: 16px;
1068
+
1069
+ overflow: hidden;
1070
+ overflow-wrap: break-word;
1071
+ white-space: wrap;
1072
+ text-wrap: wrap;
1073
+ text-overflow: ellipsis;
1074
+ display: -webkit-box;
1075
+ -webkit-line-clamp: 2;
1076
+ -webkit-box-orient: vertical;
1077
+ `,bc=zt.div`
1078
+ position: absolute;
1079
+ top: 0;
1080
+ left: 0;
1081
+ z-index: -1;
1082
+ width: ${({$width:e})=>e}px;
1083
+ height: ${({$height:e})=>e}px;
1084
+ border-radius: 16px;
1085
+ background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+vn["020"]:e.colors.majestic_blue+vn["030"]:o?e.text[o]+vn["010"]:e.colors.secondary+vn["005"]};
1086
+ `,$c=({index:e,columns:t,cells:o,onClick:i,status:r,faded:n})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Un(),[c,d]=St(!1);return yt(fc,{ref:a,onMouseEnter:()=>!!i&&d(!0),onMouseLeave:()=>!!i&&d(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:n,children:t.map(({key:t},i)=>{const n=o.find(({columnKey:e})=>e===t);if(!n)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=n;return bt(xc,{$isFirst:0===i,children:[u?yt(rl,{icon:u}):h?yt(h,{}):yt(Ka,{text:p&&a?String(a):"",children:yt(yc,{$color:d,children:Gi(a)?"-":a})}),0===i&&yt(bc,{$height:s,$width:l,$top:s*e,$hovered:c,$status:r})]},`table-row-${t}-${a}-${e}-${i}`)})})},vc=zt.div`
1087
+ width: 100%;
1088
+ `,wc=zt.table`
1089
+ position: relative;
1090
+ z-index: 0;
1091
+ width: 100%;
1092
+ border-collapse: separate;
1093
+ border-spacing: 0 12px;
1094
+ `,Sc=zt.thead`
1095
+ // only supported with "border-collapse: collapse;"
1096
+ // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1097
+ // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1098
+ `,Cc=zt.th`
1099
+ // only required with "border-collapse: separate;"
1100
+ border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1101
+ border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1102
+
1103
+ padding: 8px;
1104
+ `,kc=zt(va)`
1105
+ cursor: pointer;
1106
+ &:hover {
1107
+ * {
1108
+ color: ${({theme:e})=>e.text.secondary};
1109
+ }
1110
+ }
1111
+ `,Ec=zt($r)`
1112
+ color: ${({theme:e})=>e.text.darker_grey};
1113
+ font-family: ${({theme:e})=>e.font_family.secondary};
1114
+ text-transform: uppercase;
1115
+ font-size: 12px;
1116
+ font-weight: 500;
1117
+ text-wrap: nowrap;
1118
+ `,Ac=zt.tbody``,Dc=({columns:e,rows:t})=>{const[o,i]=St(yo.Ascending),[r,n]=St("name"),a=Et(e=>{r===e?i(e=>e===yo.Ascending?yo.Descending:yo.Ascending):(n(e),i(yo.Ascending))},[r]),s=wt(()=>{const i=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(r?[...t].sort((e,t)=>{const n=i(e,r),a=i(t,r);return(o===yo.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)))(n,a)}):t).map(({status:t,faded:o,cells:i,onClick:r},n)=>yt($c,{index:n,columns:e,cells:i,onClick:r,status:t,faded:o},`row-${n}`))},[e,t,r,o]);return yt(vc,{children:bt(wc,{children:[yt(Sc,{children:yt("tr",{children:e.map(({key:e,title:t,sortable:o})=>yt(Cc,{children:o?bt(kc,{onClick:()=>a(e),children:[yt(lt,{}),yt(Ec,{children:t})]}):yt(Ec,{children:t})},`column-${e}`))})}),yt(Ac,{children:s})]})})};var Tc;!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"}(Tc||(Tc={}));const Nc=zt.div`
1119
+ display: flex;
1120
+ flex-wrap: wrap;
1121
+ gap: 16px 32px;
1122
+ width: 100%;
1123
+ `,Ic=zt.div`
1124
+ display: flex;
1125
+ flex-direction: column;
1126
+ gap: 2px;
1127
+ width: ${({$width:e})=>e};
1128
+ `,_c=zt($r)`
1129
+ color: ${({theme:e})=>e.text.grey};
1130
+ font-size: 10px;
1131
+ line-height: 16px;
1132
+ `,Oc=zt($r)`
1133
+ font-size: 12px;
1134
+ white-space: pre-wrap;
1135
+ `,Rc=({data:e})=>yt(Nc,{children:e?.map(({type:e,title:t,titleIcon:o,tooltip:i,value:r},n)=>bt(Ic,{$width:e&&[Tc.Code,Tc.Table].includes(e)?"inherit":e&&[Tc.Loader,Tc.Divider,Tc.CopyText].includes(e)?"100%":"unset",children:[yt(Ka,{text:i,withIcon:!0,children:bt(va,{$alignItems:"center",$gap:4,children:[o&&yt(o,{size:14}),!!t&&yt(_c,{transform:"capitalize",children:t})]})}),yt(Fc,{type:e,value:r})]},`data-field-${t||(r?JSON.stringify(r):n)}`))}),Fc=({type:e,value:t})=>{const o=Pt();switch(e){case Tc.Divider:return yt(Ua,{length:"100%",margin:"0"});case Tc.Loader:return yt(Sa,{children:yt(Fs,{scale:1.2})});case Tc.Monitors:return yt(cl,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Tc.Badge:{const{label:e,filled:o,...i}=Ui(t,{label:"-",filled:!1});return yt(Nn,{label:e,filled:o,...i})}case Tc.Code:{const{language:e,code:o,...i}=Ui(t,{language:"",code:""});return yt(Ts,{language:e,code:o,...i})}case Tc.Table:{const{columns:e,rows:o,...i}=Ui(t,{columns:[],rows:[{status:void 0,cells:[]}]});return yt(Dc,{columns:e,rows:o,...i})}case Tc.ActiveStatus:return yt(Js,{status:"true"==t?Do.Success:Do.Error,title:"true"==t?li.ENABLED:li.DISABLED,size:10,withIcon:!0,withBorder:!0});case Tc.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return yt(Ys,{value:e})}default:return yt(Oc,{children:rr("string"==typeof t?t||"-":"")})}},zc=zt.div`
1136
+ display: flex;
1137
+ flex-direction: column;
1138
+ align-items: flex-start;
1139
+ align-self: stretch;
1140
+ gap: 16px;
1141
+ padding: 24px;
1142
+ border-radius: 24px;
1143
+ border: 1px solid ${({theme:e})=>e.colors.border};
1144
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+vn["010"]:"transparent"};
1145
+ transition: background-color 0.3s;
1146
+ `,Lc=zt.div`
1147
+ width: 100%;
1148
+ display: flex;
1149
+ flex-direction: column;
1150
+ gap: 4px;
1151
+ cursor: ${({$clickable:e})=>e?"pointer":"default"};
1152
+ `,Pc=zt($r)`
1153
+ width: 100%;
1154
+ display: flex;
1155
+ align-items: center;
1156
+ gap: 8px;
1157
+ font-size: 16px;
1158
+ `,Mc=zt($r)`
1159
+ font-size: 12px;
1160
+ color: ${({theme:e})=>e.text.grey};
1161
+ `,Bc=zt(va)`
1162
+ margin-left: auto;
1163
+ gap: 8px;
1164
+ `,Uc=({title:e="Details",titleBadge:t,titleIcon:o,description:i,action:r,withExtend:n,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=St(a),[p,u]=St(!1);return bt(zc,{$hovered:p,children:[e||o||i||r?bt(Lc,{$clickable:n||!1,onClick:()=>n&&d(e=>!e),onMouseEnter:()=>n&&u(!0),onMouseLeave:()=>n&&u(!1),children:[bt(va,{children:[bt(va,{$alignItems:"center",$gap:8,children:[o&&yt(va,{$alignItems:"center",children:yt(o,{size:20})}),!!e&&yt(Pc,{transform:"capitalize",children:e}),t===No.Loading?yt(Fs,{}):void 0!==t&&yt(Nn,{label:t})]}),(!!r||n)&&bt(Bc,{children:["function"==typeof r?yt(r,{hovered:p}):r,n&&yt(Ls,{extend:c})]})]}),!!i&&yt(Mc,{children:i})]}):null,(!n||n&&c)&&(l||yt(Rc,{data:s}))]})},jc=zt.div`
1165
+ visibility: hidden;
1166
+ `,Wc=zt(va)`
1167
+ align-self: stretch;
1168
+ width: calc(100% - 32px);
1169
+ padding: 16px;
1170
+ border-radius: 16px;
1171
+ background-color: ${({theme:e})=>e.colors.secondary+vn["005"]};
1172
+ ${({theme:e,$withClick:t})=>t?Lt`
1173
+ &:hover {
1174
+ cursor: pointer;
1175
+ background-color: ${e.colors.secondary+vn["010"]};
1176
+ ${jc} {
1177
+ visibility: visible;
1178
+ }
1179
+ }
1180
+ `:`\n &:hover {\n ${jc} {\n visibility: visible;\n }\n }\n `}
1181
+ `,Gc=zt(va)`
1182
+ margin-left: auto;
1183
+ gap: 8px;
1184
+ `,Vc=zt($r)`
1185
+ font-size: 10px;
1186
+ color: ${({theme:e})=>e.text.grey};
1187
+ `,Xc=({title:e,subTitle:t,icons:o,iconSrcs:i,onClick:r,renderActions:n})=>{const a=Pt(),[s,l]=St(0),c=kt(null),d=kt(null);return Ct(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),bt(Wc,{ref:c,$gap:8,$withClick:!!r,onClick:r,children:[yt(sl,{id:`${e}-${t}`,icons:o,iconSrcs:i}),e&&yt(tl,{maxWidth:s/2,text:e,textSize:14}),e&&t&&yt(Vc,{children:"•"}),t&&yt(tl,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),yt(Gc,{ref:d,children:n&&bt($t,{children:[yt(Ua,{orientation:"vertical",length:"24px",margin:"0"}),n()]})})]})},Hc=({isOpen:e,noOverlay:t,name:o,type:i,isLastItem:r,onApprove:n,onDeny:a})=>{const s=i===Co.Source?"uninstrument":"delete";return yt(gs,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:r?{type:Do.Warning,title:`You're about to ${s} the last ${i||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:n},denyButton:{text:"Go Back",onClick:a}})},Jc=zt(Rn)`
1188
+ display: flex;
1189
+ align-items: center;
1190
+ justify-content: center;
1191
+ font-size: 14px;
1192
+ gap: 6px;
1193
+ min-width: 100px;
1194
+ `,Kc=({endpoint:e="/",variant:t="secondary"})=>bt(Jc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[yt(ct,{size:18}),"Docs"]}),qc=zt(va)`
1195
+ border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1196
+ `,Yc=zt.div`
1197
+ display: flex;
1198
+ align-items: center;
1199
+ border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1200
+ cursor: pointer;
1201
+ `,Qc=zt($r)`
1202
+ padding: 12px;
1203
+ font-size: 14px;
1204
+ color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1205
+ `,Zc=({tabs:e,hideBorder:t=!1})=>e?.length?yt(qc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:o,selected:i})=>bt(Yc,{onClick:o,$selected:i,children:[yt(Qc,{$selected:i,children:e}),t&&yt(t,{})]},`tab-${e}`))}):null,ed=zt.section`
1206
+ padding: 0px 32px;
1207
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1208
+ `,td=zt.div`
1209
+ height: 76px;
1210
+ display: flex;
1211
+ justify-content: space-between;
1212
+ flex-shrink: 0;
1213
+ align-self: stretch;
1214
+ `,od=zt.div`
1215
+ display: flex;
1216
+ align-items: center;
1217
+ gap: ${({$gap:e})=>e||16}px;
1218
+ `,id=zt($r)`
1219
+ font-size: 18px;
1220
+ line-height: 26px;
1221
+ max-width: ${({$maxWidth:e})=>e};
1222
+ overflow: hidden;
1223
+ white-space: nowrap;
1224
+ text-overflow: ellipsis;
1225
+ `,rd=zt(Rn)`
1226
+ gap: 8px;
1227
+ `,nd=zt(Rn)``,ad=({onClose:e,width:t,icons:o,iconSrcs:i,title:r,titleTooltip:n,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>bt(ed,{children:[bt(td,{children:[bt(od,{children:[o?.length||i?.length?yt(sl,{icons:o,iconSrcs:i,id:`drawer-header-${r}`}):null,("function"==typeof a?yt(a,{}):a||null)||yt(Ka,{text:n||r,withIcon:!!n,children:r&&yt(id,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:r})})]}),bt(od,{$gap:2,children:[s,l.map((e,t)=>yt(rd,{...e},`header-action-button-${t}`)),yt(nd,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:yt(Ke,{size:12})})]})]}),yt(Zc,{tabs:c,hideBorder:!0})]}),sd=zt.div`
1228
+ display: flex;
1229
+ justify-content: space-between;
1230
+ gap: 8px;
1231
+ padding: 24px 18px 24px 32px;
1232
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
1233
+ background-color: ${({theme:e})=>e.colors.translucent_bg};
1234
+ transform: translateY(100%);
1235
+ animation-name: ${Sn.in.bottom};
1236
+ `,ld=zt(va)`
1237
+ margin-right: auto;
1238
+ `,cd=zt(va)`
1239
+ margin: 0 auto;
1240
+ `,dd=zt(va)`
1241
+ margin-left: auto;
1242
+ `,pd=zt(Rn)`
1243
+ min-width: 140px;
1244
+ font-size: 14px;
1245
+ `,ud=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:i=[]})=>e?bt(sd,{children:[yt(ld,{children:t.map((e,t)=>yt(pd,{...e},`footer-left-button-${t}`))}),yt(cd,{children:o.map((e,t)=>yt(pd,{...e},`footer-center-button-${t}`))}),yt(dd,{children:i.map((e,t)=>yt(pd,{...e},`footer-right-button-${t}`))})]}):null,hd=zt.div`
1246
+ position: fixed;
1247
+ top: 0;
1248
+ bottom: 0;
1249
+ ${({$position:e})=>e}: 0;
1250
+ z-index: 1000;
1251
+ width: ${({$width:e})=>e};
1252
+ background: ${({theme:e})=>e.colors.translucent_bg};
1253
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+vn["010"]};
1254
+ overflow-y: auto;
1255
+ animation-name: ${({$position:e})=>Sn.in[e]};
1256
+ `,md=zt.div`
1257
+ display: flex;
1258
+ flex-direction: column;
1259
+ height: 100%;
1260
+ `,gd=zt.div`
1261
+ flex-grow: 1;
1262
+ padding: 24px 32px;
1263
+ overflow-y: auto;
1264
+ `,fd=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:i="right",width:r="300px",children:n,header:a,footer:s})=>(Yn({key:"Escape",active:e&&o},()=>t()),Pn(e),e?Ht.createPortal(bt($t,{children:[yt(ka,{hidden:!e,onClick:t}),yt(hd,{"data-id":"drawer",$position:i,$width:r,children:bt(md,{children:[yt(ad,{onClose:t,width:r,...a}),yt(gd,{children:n}),yt(ud,{...s})]})})]}),document.body):null),xd=({error:e})=>{const t=Pt(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return bt("div",{style:o.container,children:[yt("h2",{children:"Something went wrong!"}),yt("pre",{style:o.errorMessage,children:e?.message||"Unknown Error"}),bt("details",{style:o.errorStackWrapper,children:[yt("summary",{children:"Stack Trace"}),yt("pre",{style:o.errorStack,children:e?.stack||"Unknown Stack"})]}),yt("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),yt(Rn,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},yd=({children:e})=>yt(Yt,{FallbackComponent:({error:e,...t})=>yt($n,{children:yt(xd,{...t,error:e})}),children:e}),bd=zt(va)`
1265
+ position: relative;
1266
+ width: calc(100% - 24px);
1267
+ padding: 12px;
1268
+ background-color: ${({theme:e})=>e.colors.dark_grey};
1269
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+vn["050"]};
1270
+ `,$d=zt(va)`
1271
+ margin-right: auto;
1272
+ margin-left: 32px;
1273
+ gap: 12px;
1274
+ `,vd=zt(va)`
1275
+ margin-left: auto;
1276
+ margin-right: 32px;
1277
+ gap: 12px;
1278
+ `,wd=zt(va)`
1279
+ position: absolute;
1280
+ left: 50%;
1281
+ transform: translateX(-50%);
1282
+ gap: 12px;
1283
+ `,Sd=({left:e=[],center:t=[],right:o=[]})=>bt(bd,{children:[yt($d,{children:e.map((e,t)=>e&&yt(vt,{children:e},t))}),yt(wd,{children:t.map((e,t)=>e&&yt(vt,{children:e},t))}),yt(vd,{children:o.map((e,t)=>e&&yt(vt,{children:e},t))})]}),Cd=zt($r)`
1284
+ color: ${({theme:e})=>e.text.grey};
1285
+ `,kd=({icon:e,title:t,badge:o,badgeTooltip:i,loading:r})=>bt(va,{$gap:6,children:[e&&yt(e,{}),yt(Cd,{size:14,children:t}),void 0!==o&&yt(Ka,{text:i,children:yt(Nn,{label:o})}),r&&yt(Fs,{})]}),Ed=zt.div`
1286
+ width: fit-content;
1287
+ height: fit-content;
1288
+ padding: 4px;
1289
+ gap: 4px;
1290
+ border-radius: 32px;
1291
+ border: 1px solid ${({theme:e})=>e.colors.border+vn["070"]};
1292
+
1293
+ display: flex;
1294
+ flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1295
+ align-items: center;
1296
+ justify-content: center;
1297
+ `,Ad=zt.div`
1298
+ width: 32px;
1299
+ height: 32px;
1300
+
1301
+ border-radius: 100%;
1302
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+vn["070"]:e.colors.secondary+vn["012"]};
1303
+ transition: background-color 0.3s;
1304
+
1305
+ display: flex;
1306
+ align-items: center;
1307
+ justify-content: center;
1308
+
1309
+ cursor: pointer;
1310
+ `,Dd=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:i})=>bt(Ed,{$orientation:e,$flip:t,children:[o.map(({icon:e,selected:t,onClick:o,tooltip:i},r)=>yt(Ka,{text:i,children:yt(Ad,{$selected:t,onClick:o,children:yt(e,{size:20})})},`main-nav-icon-${r}`)),!!o.length&&!!i.length&&yt(Ua,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:e,selected:t,onClick:o,tooltip:i},r)=>yt(Ka,{text:i,children:yt(Ad,{$selected:t,onClick:o,children:yt(e,{size:20})})},`sub-nav-icon-${r}`))]}),Td=zt.div`
1311
+ display: flex;
1312
+ flex-direction: column;
1313
+ width: 100%;
1314
+ `,Nd=zt.div`
1315
+ display: flex;
1316
+ flex-direction: column;
1317
+ gap: 8px;
1318
+ `,Id=zt.div`
1319
+ display: flex;
1320
+ align-items: center;
1321
+ gap: 16px;
1322
+ `,_d=zt(Qa)`
1323
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1324
+ opacity: ${({$disabled:e})=>e?.5:1};
1325
+ `,Od=({initialValues:e=[],value:t,onChange:o,title:i,tooltip:r,required:n,errorMessage:a})=>{const[s,l]=St(t||e);Ct(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=kt(JSON.stringify(c));Ct(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const i=[...o];return i[t]=e,i})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return bt(Td,{children:[yt(Ul,{title:i,required:n,tooltip:r}),yt(Nd,{children:s.map((e,t)=>{const o=t===s.length-1;return bt(Id,{children:[yt(Jl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:Gi(e)&&!u&&o}),t===s.length-1&&yt(_d,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:yt(et,{})}),yt(_d,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t),children:yt(at,{})})]},`input-list-${t}`)})}),!!a&&yt(Sr,{children:a})]})},Rd=({col:e,colIdx:t,row:o,rowIdx:i,rowsLength:r,maxWidth:n,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:f,renderCondition:x}=e,y=o[c];if(x&&!x(o))return null;return yt("td",{style:{maxWidth:n,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Eo.Dropdown:const e=f?.find(e=>e.id===y);return yt(Zl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:e,onSelect:e=>a(c,e.id,i),onDeselect:()=>a(c,"",i),hasError:!!s&&(!h||h&&Gi(y))});case"multi-dropdown":const o=Array.isArray(y)&&f?.filter(e=>y.includes(e.id))||[];return yt(Zl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(y)?y:[],e.id];a(c,t,i)},onDeselect:e=>{const t=(Array.isArray(y)?y:[]).filter(t=>t!==e.id);a(c,t,i)},hasError:!!s&&(!h||h&&Gi(y))});default:const g=r>1&&i===r-1&&0===t&&Gi(y);return yt(Jl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:y,onChange:({target:{value:e}})=>a(c,e,i),style:{maxWidth:n,paddingLeft:10},hasError:!!s&&(!h||h&&Gi(y))})}})()},`input-table-${i}-${c}`)},Fd=zt.div`
1326
+ display: flex;
1327
+ flex-direction: column;
1328
+ width: 100%;
1329
+ `,zd=zt.button`
1330
+ margin-top: ${({$marginTop:e})=>e};
1331
+ background: none;
1332
+ border: none;
1333
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1334
+ opacity: ${({disabled:e})=>e?.5:1};
1335
+ `,Ld=({columns:e,initialValues:t=[],value:o,onChange:i,errorMessage:r,limitFieldsPerRow:n,title:a=""})=>{const[s,l]=St({}),[c,d]=St(o||t),p=wt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);Ct(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const i=p.get(t);if((!i?.renderCondition||i.renderCondition(e))&&(i?.required&&Gi(o)))return!1}return!0}),h=kt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((n||e.length)+.4))}px`;Ct(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,i&&i(u))},[u]);const f=(e,t,o)=>{d(i=>{const r=ro(i);return r[o][e]=t,r})},x=wt(()=>{if(n){const t=[];for(let o=0;;o+=n){const i=e.slice(o,o+n);if(!i.length)break;t.push(i)}return t}return[e]},[n,e]);return bt(Fd,{children:[yt(Ul,{title:a}),bt("table",{style:{borderCollapse:"collapse"},children:[!n&&yt("thead",{children:bt("tr",{children:[e.map(({title:e,tooltip:t,required:o})=>yt("th",{style:{maxWidth:g},children:yt(Ul,{title:e,required:o,tooltip:t})},`input-table-head-${e}`)),yt("th",{})]})}),yt("tbody",{children:c.map((t,o)=>bt(vt,{children:[n&&o>0?yt("tr",{children:yt("td",{colSpan:x.length,children:yt(Ua,{})})}):null,x.map((i,a)=>bt("tr",{children:[i.map((e,i)=>yt(Rd,{col:e,colIdx:i,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:n,errorMessage:r,handleChange:f},`input-table-row-${o}-col-${i}`)),0===a&&yt("td",{children:yt(zd,{$marginTop:n?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>f(e,o===Ao.Number?"0":"",t)));var t},children:yt(at,{})})})]},`input-table-matrix-${o}-${a}`))]},`input-table-row-${o}`))})]}),!!r&&yt(Sr,{children:r}),yt(Ks,{onClick:()=>{d(e=>{const t=ro(e);return t.push(ro(s)),t})},disabled:m})]})},Pd=zt.div`
1336
+ display: flex;
1337
+ flex-direction: column;
1338
+ width: 100%;
1339
+ `,Md=zt.div`
1340
+ display: flex;
1341
+ flex-direction: column;
1342
+ gap: 8px;
1343
+ `,Bd=zt.div`
1344
+ display: flex;
1345
+ align-items: center;
1346
+ gap: 8px;
1347
+ `,Ud=zt.div`
1348
+ width: 100%;
1349
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1350
+ `,jd=zt(Qa)`
1351
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1352
+ opacity: ${({$disabled:e})=>e?.5:1};
1353
+ `,Wd={key:"",value:""},Gd=({initialKeyValuePairs:e=[],value:t,onChange:o,title:i,tooltip:r,disabled:n,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=St(t||e);Ct(()=>{p.length||u([{...Wd}])},[]);const h=p.filter(({key:e,value:t})=>!Gi(e.trim())&&!Gi(t.trim())),m=kt(JSON.stringify(h));Ct(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(i=>{const r=[...i];return r[o][e]=t,r})},f=p.length<=1,x=n||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),y=n||f&&x;return bt(Pd,{children:[yt(Ul,{title:i,required:a,tooltip:r}),yt(Md,{children:p.map(({key:e,value:t},o)=>bt(Bd,{children:[yt(Ud,{$maxWidth:d,children:yt(Jl,{placeholder:l,disabled:n,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!a||a&&!e),autoFocus:Gi(t)&&!f&&o===p.length-1})}),yt(Ud,{$maxWidth:o===p.length-1?d-38:d,children:yt(Jl,{placeholder:c,disabled:n,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!a||a&&Gi(t)),autoFocus:!1})}),o===p.length-1&&yt(jd,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Wd}),t})},children:yt(et,{})}),yt(jd,{size:30,$disabled:y,onClick:y?void 0:()=>(e=>{f?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o),children:yt(at,{})})]},`key-value-input-list-${o}`))}),!!s&&yt(Sr,{children:s})]})},Vd=Bt`
1354
+ 0% {
1355
+ background-position: 0% 50%;
1356
+ }
1357
+ 100% {
1358
+ background-position: 100% 50%;
1359
+ }
1360
+ `,Xd=zt($r)`
1361
+ background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1362
+ background-size: 250% 100%; /* Expand background to allow movement */
1363
+ background-clip: text;
1364
+ color: transparent;
1365
+ animation: ${Vd} 1s reverse linear infinite;
1366
+ `,Hd=({children:e="Loading...",textColor:t,stripColor:o,...i})=>{const r=Pt(),n=t||r.v2.colors.white[500],a=o||r.v2.colors.black[500];return yt(Xd,{$textColor:n,$stripColor:a,...i,children:e})},Jd=zt.div`
1367
+ display: flex;
1368
+ flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1369
+ gap: ${({$isVertical:e})=>e?"12px":"24px"};
1370
+ ${({$hasError:e})=>e&&Lt`
1371
+ border: 1px solid ${({theme:e})=>e.text.error};
1372
+ border-radius: 32px;
1373
+ padding: 8px;
1374
+ `}
1375
+ `,Kd=(e,t)=>!t?.length||!!t?.find(t=>t===e),qd=({isVertical:e,title:t="Monitors",required:o,errorMessage:i,allowedSignals:r,selectedSignals:n,setSelectedSignals:a})=>{const[s,l]=St(1===n.length),c=kt(JSON.stringify(n));Ct(()=>{const e=n;e.length||Xr.forEach(({id:t})=>{Kd(t,r)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[r]);return bt("div",{children:[t&&yt(Ul,{title:t,required:o}),yt(Jd,{$isVertical:e,$hasError:!!i,children:Xr.map(e=>{const t=Kd(e.id,r),o=((e,t)=>!!t?.find(t=>t===e))(e.id,n);return t?yt(bs,{title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,i=t?[...n,o]:n.filter(e=>e!==o);a(i),l(1===i.length)})(e.id,t)},e.id):null})}),!!i&&yt(Sr,{children:i})]})},Yd=zt.div`
1376
+ display: flex;
1377
+ gap: 8px;
1378
+ align-items: center;
1379
+ `,Qd=zt(Rn)`
1380
+ display: flex;
1381
+ align-items: center;
1382
+ justify-content: center;
1383
+ gap: 8px;
1384
+ min-width: 90px;
1385
+ `,Zd=({buttons:e})=>{const t=Pt(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),i=({button:e,rotate:o})=>e.icon?yt(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?yt("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return yt(Yd,{children:e.map((e,t)=>yt(Ka,{text:e.tooltip||"",children:bt(Qd,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[o({button:e,index:t})&&i({button:e,rotate:0}),e.label,!o({button:e,index:t})&&i({button:e,rotate:180})]},t)},t))})},ep=zt.div`
1386
+ width: 100%;
1387
+ height: 100%;
1388
+
1389
+ * {
1390
+ animation: none !important;
1391
+ transition: none !important;
1392
+ }
1393
+ `,tp=({width:e="100%",height:t="100%",gap:o=0,elements:i,noAnimation:r=!1,onTopIndexChange:n})=>{const a=kt(null),s=wt(()=>o?i.map((e,t)=>yt("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${t}`)):i,[i,o]),l=Et(e=>{if(!n||!a.current)return;const t=a.current.findItemIndex(e);n(t)},[n]),c=yt(Zt,{ref:a,style:{width:e,height:t},onScroll:n?l:void 0,children:s});return r?yt(ep,{children:c}):c},op=zt.div`
1394
+ display: flex;
1395
+ justify-content: space-between;
1396
+ align-items: center;
1397
+ gap: 16px;
1398
+ `,ip=zt.div`
1399
+ display: flex;
1400
+ flex-direction: column;
1401
+ gap: 4px;
1402
+ `,rp=zt.div`
1403
+ display: flex;
1404
+ align-items: center;
1405
+ gap: 8px;
1406
+ `,np=zt($r)``,ap=zt($r)``,sp=({title:e,description:t,badgeLabel:o,icon:i,actionButton:r,size:n="medium"})=>{const a="small"===n?16:"medium"===n?20:24,s="small"===n?12:"medium"===n?14:16;return bt(op,{children:[bt(ip,{children:[bt(rp,{children:[i&&yt(i,{size:a}),yt(np,{weight:300,size:a,children:e}),void 0!==o&&yt(Nn,{label:o,filled:!!o})]}),yt(ap,{weight:200,opacity:.8,size:s,children:t})]}),r&&yt("div",{children:r})]})},lp=zt.div`
1407
+ position: relative;
1408
+ gap: 0;
1409
+ z-index: 0;
1410
+ display: grid;
1411
+ grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1412
+ `,cp=zt.button`
1413
+ flex: 1;
1414
+ display: flex;
1415
+ align-items: center;
1416
+ justify-content: center;
1417
+ gap: 4px;
1418
+ padding: 6px 12px;
1419
+ background-color: transparent;
1420
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1421
+ border: 1px solid ${({theme:e})=>e.colors.border};
1422
+ cursor: pointer;
1423
+ &:hover {
1424
+ border: 1px solid ${({theme:e})=>e.colors.secondary};
1425
+ }
1426
+ `,dp=zt.div`
1427
+ position: absolute;
1428
+ top: ${({$y:e})=>e}px;
1429
+ left: ${({$x:e})=>e}px;
1430
+ z-index: -1;
1431
+ width: ${({$width:e})=>e}px;
1432
+ height: ${({$height:e})=>e}px;
1433
+ background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1434
+ border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1435
+ transition: all 0.3s;
1436
+ `,pp=({options:e=[],selected:t,setSelected:o})=>{const i=e.findIndex(e=>e.value===t),[r,n]=St(e[i]?.selectedBgColor||""),[a,s]=St({width:0,height:0}),[l,c]=St({x:0,y:0}),d=kt(null);return Ct(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*i,y:0}))},[t,i]),bt(lp,{$count:e.length,children:[e.map(({icon:i,label:r,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return bt(cp,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(a),n(s||"")},children:[i&&yt(i,{}),r&&yt($r,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:r})]},`segment-${r||c}-${a}`)}),yt(dp,{$bgColor:r,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===i,$isLastItem:i===e.length-1})]})},up=zt(Rn)`
1437
+ gap: 8px;
1438
+ text-transform: none;
1439
+ text-decoration: none;
1440
+ border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1441
+ &.not-selected {
1442
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+vn["060"]};
1443
+ &:hover {
1444
+ background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1445
+ }
1446
+ }
1447
+ &.selected {
1448
+ background-color: ${({theme:e})=>e.colors.majestic_blue+vn["030"]};
1449
+ }
1450
+ `,hp=zt($r)`
1451
+ white-space: nowrap;
1452
+ overflow: hidden;
1453
+ text-overflow: ellipsis;
1454
+ font-size: 14px;
1455
+ `,mp=({label:e,onClick:t,icon:o,iconSrc:i,badgeLabel:r,badgeFilled:n,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Pt();return bt(up,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[o&&yt("div",{children:yt(o,{fill:p.text.info})}),i&&yt("div",{children:yt("img",{src:i,alt:"",width:16,height:16})}),yt(hp,{children:e}),a&&yt("div",{children:yt(He,{fill:p.colors.majestic_blue_soft})}),void 0!==r&&yt(Nn,{label:r,filled:n||a})]})},gp=zt.div`
1456
+ display: flex;
1457
+ flex-direction: column;
1458
+ gap: 16px;
1459
+ ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1460
+ `,fp=zt.div`
1461
+ display: flex;
1462
+ align-items: center;
1463
+ gap: 16px;
1464
+ `,xp=zt.div`
1465
+ width: 50px;
1466
+ height: 50px;
1467
+ border-radius: 8px;
1468
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1469
+ background-size: 200% 100%;
1470
+ animation: ${En} 10s infinite linear;
1471
+ `,yp=zt(wa)`
1472
+ flex: 1;
1473
+ gap: 12px;
1474
+ `,bp=zt.div`
1475
+ width: ${({$width:e})=>e};
1476
+ height: 16px;
1477
+ background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1478
+ background-size: 200% 100%;
1479
+ animation: ${En} 1.5s infinite linear;
1480
+ border-radius: 4px;
1481
+ `,$p=({size:e=5,maxWidth:t})=>yt(gp,{$maxWidth:t,children:[...Array(e)].map((e,t)=>bt(fp,{children:[yt(xp,{}),bt(yp,{children:[yt(bp,{$width:"80%"}),yt(bp,{$width:"100%"})]})]},t))});var vp;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(vp||(vp={}));const wp=zt.div`
1482
+ display: flex;
1483
+ flex-direction: column;
1484
+ gap: 32px;
1485
+ `,Sp=zt.div`
1486
+ display: flex;
1487
+ gap: 16px;
1488
+ padding: 8px;
1489
+ opacity: ${({$state:e})=>e===vp.Active?1:e===vp.Disabled?.5:.8};
1490
+ transition: all 0.3s;
1491
+ `,Cp=zt(va)`
1492
+ justify-content: center;
1493
+ width: 24px;
1494
+ height: 24px;
1495
+ border-radius: 32px;
1496
+ border: ${({theme:e,$state:t})=>t===vp.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1497
+ opacity: ${({$state:e})=>e===vp.Finished?.8:1};
1498
+ `,kp=zt(wa)`
1499
+ justify-content: center;
1500
+ gap: 8px;
1501
+ `,Ep=zt($r)``,Ap=zt($r)``,Dp=({data:e,currentStep:t=0})=>{const[o,i]=St([]);return Ct(()=>{i(e.map((e,o)=>o<t-1?{...e,state:vp.Finished,subtitle:e.subtitle||Do.Success}:o===t-1?{...e,state:vp.Active,subtitle:""}:{...e,state:vp.Disabled,subtitle:""}))},[t,e]),yt(wp,{children:o.map((e,t)=>bt(Sp,{$state:e.state,children:[yt(Cp,{$state:e.state,children:[vp.Active,vp.Disabled].includes(e.state)?yt($r,{size:12,children:e.stepNumber}):e.state===vp.Finished?yt(He,{size:20}):null}),bt(kp,{children:[yt(Ep,{family:"secondary",children:e.title}),e.subtitle&&yt(Ap,{size:10,weight:300,children:e.subtitle})]})]},t))})},Tp=zt(va)`
1502
+ width: fit-content;
1503
+ gap: 6px;
1504
+ padding: 6px 12px;
1505
+ border-radius: 360px;
1506
+ background-color: ${({$type:e,theme:t})=>t.colors[e]};
1507
+ `,Np=zt($r)`
1508
+ color: ${({$type:e,theme:t})=>t.text[e]};
1509
+ `,Ip=({type:e=Do.Info,icon:t,title:o,size:i,family:r,children:n,...a})=>bt(Tp,{$type:e,children:[t&&yt(t,{}),yt(Np,{$type:e,size:i||12,family:r||"secondary",...a,children:n||o})]}),_p=zt.div`
1510
+ display: flex;
1511
+ flex-direction: column;
1512
+ position: relative;
1513
+ width: 100%;
1514
+ `,Op=zt.div`
1515
+ width: 100%;
1516
+ display: flex;
1517
+ align-items: center;
1518
+ gap: 12px;
1519
+ transition: border-color 0.3s;
1520
+ border-radius: 24px;
1521
+ border: 1px solid ${({theme:e})=>e.colors.border};
1522
+ ${({$disabled:e})=>e&&Lt`
1523
+ background-color: ${({theme:e})=>e.colors.border};
1524
+ cursor: not-allowed;
1525
+ opacity: 0.6;
1526
+ `}
1527
+
1528
+ ${({$hasError:e})=>e&&Lt`
1529
+ border-color: ${({theme:e})=>e.text.error};
1530
+ `}
1531
+
1532
+ ${({$isActive:e})=>e&&Lt`
1533
+ border-color: ${({theme:e})=>e.colors.secondary};
1534
+ `}
1535
+
1536
+ &:hover {
1537
+ border-color: ${({theme:e})=>e.colors.secondary};
1538
+ }
1539
+ &:focus-within {
1540
+ border-color: ${({theme:e})=>e.colors.secondary};
1541
+ }
1542
+ `,Rp=zt.textarea`
1543
+ flex: 1;
1544
+ border: none;
1545
+ outline: none;
1546
+ background: none;
1547
+ color: ${({theme:e})=>e.text.secondary};
1548
+ font-size: 14px;
1549
+ padding: 12px 20px 0;
1550
+ font-family: ${({theme:e})=>e.font_family.primary};
1551
+ font-weight: 300;
1552
+ line-height: 22px;
1553
+ &::placeholder {
1554
+ color: ${({theme:e})=>e.text.secondary};
1555
+ font-family: ${({theme:e})=>e.font_family.primary};
1556
+ opacity: 0.4;
1557
+ font-size: 14px;
1558
+ font-weight: 300;
1559
+ line-height: 22px; /* 157.143% */
1560
+ }
1561
+
1562
+ &:disabled {
1563
+ background-color: ${({theme:e})=>e.colors.border};
1564
+ cursor: not-allowed;
1565
+ }
1566
+ `,Fp=({errorMessage:e,title:t,tooltip:o,required:i,onChange:r,name:n,...a})=>{const s=kt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return bt(_p,{children:[yt(Ul,{title:t,required:i,tooltip:o}),yt(Op,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:yt(Rp,{ref:s,"data-id":n,name:n,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),r?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&yt(Sr,{children:e})]})},zp=zt.div`
1567
+ display: flex;
1568
+ align-items: center;
1569
+ gap: 12px;
1570
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1571
+ opacity: ${({$disabled:e})=>e?.6:1};
1572
+ `,Lp=zt.div`
1573
+ width: 24px;
1574
+ height: 12px;
1575
+ border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
1576
+ border-radius: 20px;
1577
+ display: flex;
1578
+ align-items: center;
1579
+ padding: 2px;
1580
+ background-color: transparent;
1581
+ pointer-events: ${({$disabled:e})=>e?"none":"auto"};
1582
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1583
+ opacity: ${({$isActive:e})=>e?1:.5};
1584
+ transition: border-color 0.3s, opacity 0.3s;
1585
+ &::before {
1586
+ content: '';
1587
+ width: 12px;
1588
+ height: 12px;
1589
+ border-radius: 50%;
1590
+ background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
1591
+ transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1592
+ transition: background-color 0.3s, transform 0.3s;
1593
+ }
1594
+ `,Pp=({title:e,tooltip:t,initialValue:o=!1,onChange:i,disabled:r,allowPropagation:n=!1,flipHorizontally:a})=>{const[s,l]=St(o);Ct(()=>l(o),[o]);return bt(zp,{$disabled:r,onClick:e=>{r||(n||e.stopPropagation(),i?i(!s):l(e=>!e))},children:[!a&&yt(Lp,{$disabled:r,$isActive:s}),(e||t)&&yt(Ka,{text:t,withIcon:!0,children:e&&yt($r,{size:14,children:e})}),a&&yt(Lp,{$disabled:r,$isActive:s})]})};var Mp={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 Bp=zt.div`
1595
+ width: ${({$width:e})=>e}px;
1596
+ height: ${({$height:e})=>e}px;
1597
+ position: relative;
1598
+ `,Up=({width:e=620})=>{const{darkMode:t}=Pt(),o=e/(620/220);return yt(Bp,{$width:e,$height:o,children:yt(Qt,{autoplay:!0,loop:!0,animationData:Mp,style:{width:o,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}})})};var jp,Wp;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(jp||(jp={})),function(e){e.S="small",e.M="medium",e.L="large"}(Wp||(Wp={}));const Gp=zt.button`
1599
+ display: flex;
1600
+ align-items: center;
1601
+ justify-content: center;
1602
+ gap: 8px;
1603
+ ${({$fullWidth:e})=>e&&Lt`
1604
+ width: 100%;
1605
+ `}
1606
+ border: none;
1607
+ border-radius: 6px;
1608
+ ${({$size:e,$hasLabel:t})=>e===Wp.S?Lt`
1609
+ height: 32px;
1610
+ ${t?Lt`
1611
+ padding: 8px 16px;
1612
+ `:Lt`
1613
+ width: 32px;
1614
+ `}
1615
+ `:e===Wp.M?Lt`
1616
+ height: 38px;
1617
+ ${t?Lt`
1618
+ padding: 8px 18px;
1619
+ `:Lt`
1620
+ width: 38px;
1621
+ `}
1622
+ `:Lt`
1623
+ height: 44px;
1624
+ ${t?Lt`
1625
+ padding: 8px 22px;
1626
+ `:Lt`
1627
+ width: 44px;
1628
+ `}
1629
+ `}
1630
+
1631
+ cursor: pointer;
1632
+ &:disabled {
1633
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1634
+ cursor: not-allowed;
1635
+ }
1636
+ &:enabled {
1637
+ ${({$withShadow:e})=>e?Lt`
1638
+ box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1639
+ `:""}
1640
+ ${({$variant:e})=>e===jp.Primary?Lt`
1641
+ background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1642
+ &:hover {
1643
+ background-color: ${({theme:e})=>e.v2.colors.purple[600]};
1644
+ }
1645
+ &:active {
1646
+ background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1647
+ }
1648
+ `:e===jp.Secondary?Lt`
1649
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1650
+ &:hover {
1651
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1652
+ }
1653
+ &:active {
1654
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1655
+ }
1656
+ `:e===jp.Text?Lt`
1657
+ background-color: transparent;
1658
+ &:hover {
1659
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1660
+ }
1661
+ &:active {
1662
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1663
+ }
1664
+ `:""}
1665
+ }
1666
+ `,Vp=Tt(({label:e,leftIcon:t,rightIcon:o,variant:i=jp.Primary,size:r=Wp.M,iconSize:n,loading:a,fullWidth:s,withShadow:l,textColor:c,disabled:d,onClick:p,...u},h)=>{const m=Pt(),g=n||(r===Wp.L?18:16),f=r===Wp.L?pr.S:pr.XS,x=c||(d?m.v2.colors.grey[400]:m.v2.colors.white[500]),[y,b]=St(!1),$=Et(async e=>{e.stopPropagation(),b(!0),await(p?.(e)),b(!1)},[p]);return yt(Gp,{ref:h,$variant:i,$size:r,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:d,onClick:a||y?void 0:$,...u,children:a||y?e?yt(Hd,{size:m.v2.text.size[f],textColor:x}):yt(Fs,{}):bt($t,{children:[t&&yt(t,{size:g,fill:x}),e?yt(hr,{size:f,weight:500,color:x,nowrap:!0,children:e}):null,o&&yt(o,{size:g,fill:x})]})})});Vp.displayName=Vp.name;const Xp=zt.button`
1667
+ width: 100%;
1668
+ padding: 0;
1669
+ padding-right: 12px;
1670
+ display: flex;
1671
+ align-items: center;
1672
+ justify-content: flex-start;
1673
+ gap: 12px;
1674
+ border-radius: 8px;
1675
+ border: none;
1676
+ ${({$hovered:e})=>e?Lt`
1677
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1678
+ `:Lt`
1679
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1680
+ `}
1681
+ overflow: hidden;
1682
+ cursor: pointer;
1683
+ &:disabled {
1684
+ cursor: not-allowed;
1685
+ opacity: 0.5;
1686
+ }
1687
+ `,Hp=zt.div`
1688
+ width: ${({$hasIcon:e})=>e?"56px":"0"};
1689
+ height: 56px;
1690
+ display: flex;
1691
+ align-items: center;
1692
+ justify-content: center;
1693
+ ${({$hovered:e})=>e?Lt`
1694
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1695
+ `:Lt`
1696
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1697
+ `}
1698
+ `,Jp=zt.div`
1699
+ width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
1700
+ display: flex;
1701
+ justify-content: space-between;
1702
+ align-items: center;
1703
+ gap: 8px;
1704
+ `,Kp=({label:e,icon:t,loading:o,disabled:i,onClick:r})=>{const[n,a]=St(!1);return bt(Xp,{$hovered:n,type:"button",disabled:i||o,onClick:r,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[yt(Hp,{$hovered:n,$hasIcon:!!t,children:t&&yt(t,{size:36})}),bt(Jp,{$hasIcon:!!t,children:[o?yt(Hd,{size:16}):yt(hr,{variant:dr.Span,align:"center",children:e}),yt(dt,{rotate:90,size:24})]})]})},qp=({buttons:e})=>yt(wa,{$gap:12,children:e.map(e=>yt(Kp,{...e},e.label))}),Yp=zt.div`
1705
+ display: flex;
1706
+ align-items: center;
1707
+ flex-wrap: wrap;
1708
+ width: calc(100% - 24px);
1709
+ padding: 4px 12px;
1710
+ border-radius: 12px;
1711
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1712
+ `,Qp=zt.div`
1713
+ width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
1714
+ margin: 8px;
1715
+ display: flex;
1716
+ flex-direction: column;
1717
+ gap: 4px;
1718
+ `,Zp=({cellsPerRow:e,items:t})=>{const o=Pt(),{CopyButton:i}=Vn();return yt(Yp,{children:t.map(({id:r,title:n,label:a,withCopy:s,badge:l})=>bt(Qp,{$cellsPerRow:e||t.length,children:[yt(hr,{size:pr.XXXS,color:o.v2.colors.silver[200],nowrap:!0,children:n}),bt(va,{$gap:4,children:[l&&yt(gr,{...l}),a&&yt(hr,{size:pr.XS,nowrap:!0,children:a}),s&&yt(i,{value:a||l?.label?.toString()||"",size:jn.XS})]})]},r))})};var eu;!function(e){e.S="s",e.L="l"}(eu||(eu={}));const tu=zt.div`
1719
+ display: flex;
1720
+ align-items: center;
1721
+ gap: 2px;
1722
+ padding: 3px;
1723
+ border-radius: 8px;
1724
+ border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1725
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1726
+ `,ou=zt.button`
1727
+ flex: 1;
1728
+ display: flex;
1729
+ align-items: center;
1730
+ justify-content: center;
1731
+ gap: 8px;
1732
+ padding: ${({$size:e})=>e===eu.S?"4px 8px":"8px 16px"};
1733
+ border-radius: 6px;
1734
+ border: none;
1735
+ box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1736
+
1737
+ ${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:i})=>e?Lt`
1738
+ cursor: not-allowed;
1739
+ background-color: ${t?(o||i.v2.colors.black[500])+vn["040"]:"transparent"};
1740
+ `:Lt`
1741
+ cursor: pointer;
1742
+ background-color: ${t?o||i.v2.colors.black[500]:"transparent"};
1743
+ &:hover {
1744
+ background-color: ${t?o||i.v2.colors.black[500]:i.v2.colors.silver[800]};
1745
+ }
1746
+ `}
1747
+ `,iu=({size:e=eu.L,options:t=[],selected:o,setSelected:i,disabled:r})=>{const n=Pt(),a=r?n.v2.colors.grey[400]:n.v2.colors.white[500],s=e===eu.S?pr.XXS:pr.XS,l=e===eu.S?400:500;return yt(tu,{$count:t.length,children:t.map(({value:t,label:n,icon:c,selectedBgColor:d},p)=>bt(ou,{onClick:()=>!r&&i(t),$size:e,$disabled:r,$isSelected:o===t,$selectedBgColor:d,children:[c&&yt(c,{fill:a}),n&&yt(hr,{size:s,weight:l,color:a,nowrap:!0,children:n})]},`segment-${n||p}-${t}`))})},ru=zt.div`
1748
+ box-sizing: border-box !important;
1749
+ width: ${({$width:e})=>e??"fit-content"};
1750
+ padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
1751
+ display: flex;
1752
+ align-self: stretch;
1753
+ align-items: center;
1754
+ gap: 8px;
1755
+ overflow: hidden;
1756
+ border-radius: 6px;
1757
+
1758
+ border: none;
1759
+ border-radius: 6px;
1760
+ background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
1761
+ `,nu=zt.input`
1762
+ min-width: 0;
1763
+ flex: 1;
1764
+ font-family: ${({theme:e})=>e.font_family.primary};
1765
+ font-size: 14px;
1766
+ font-weight: 400;
1767
+ line-height: 20px;
1768
+
1769
+ cursor: text;
1770
+ color: ${({$textColor:e})=>e};
1771
+ &::placeholder {
1772
+ color: ${({$textColor:e})=>e};
1773
+ }
1774
+
1775
+ overflow: hidden;
1776
+ text-overflow: ellipsis;
1777
+ white-space: nowrap;
1778
+ `,au=({value:e,onChange:t,placeholder:o,width:i,segment:r})=>{const n=Pt(),[a,s]=St(!1),[l,c]=St(!1),[d,p]=St(!1),u=a?n.v2.colors.white[500]:n.v2.colors.silver[200],h=!!r?.options?.length,m=wt(()=>{if(h)return r?.options.find(e=>e.value===r.selected)?.label},[h,r?.options,r?.selected]),g=wt(()=>o||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[o,h,m]);return bt(ru,{$width:i,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[yt(nt,{size:18,fill:u}),yt(nu,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&yt("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:yt(iu,{options:r.options,selected:r.selected,setSelected:r.setSelected,size:eu.S})})]})};var su;!function(e){e.S="small",e.L="large"}(su||(su={}));const lu=zt.div`
1779
+ width: fit-content;
1780
+ display: flex;
1781
+ align-items: center;
1782
+ gap: 8px;
1783
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1784
+ `,cu=zt.div`
1785
+ width: ${({$size:e})=>e===su.S?"16px":"20px"};
1786
+ height: ${({$size:e})=>e===su.S?"16px":"20px"};
1787
+ display: flex;
1788
+ align-items: center;
1789
+ justify-content: center;
1790
+ border-radius: 4px;
1791
+ border: 1px solid ${({$borderColor:e})=>e};
1792
+ background-color: ${({$backgroundColor:e})=>e};
1793
+ `,du=({label:e,tooltip:t,size:o=su.L,disabled:i,partiallyChecked:r,value:n,onChange:a})=>{const s=Pt(),[l,c]=St(!1),d=r||n,p=o===su.S?12:16,u=i?s.v2.colors.grey[400]:s.v2.colors.white[500],h=d?"transparent":i?s.v2.colors.grey[700]:l?s.v2.colors.silver[400]:s.v2.colors.silver[600],m=i?s.v2.colors.grey[600]:d?s.v2.colors.purple[500]:s.v2.colors.silver[900];return bt(lu,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),i||a(!!r||!n)},$disabled:i,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[yt(cu,{$size:o,$borderColor:h,$backgroundColor:m,children:r?yt(qe,{size:p,fill:u}):n?yt(He,{size:p,fill:u}):null}),e&&yt(Ka,{text:t,withIcon:!0,children:yt(hr,{size:o===su.S?pr.XXS:pr.XS,nowrap:!0,children:e})})]})},pu=zt.div`
1794
+ display: flex;
1795
+ flex-direction: ${({$direction:e})=>e===xo.Horizontal?"row":"column"};
1796
+ gap: ${({$direction:e})=>e===xo.Horizontal?16:8}px;
1797
+ `,uu=({direction:e=xo.Vertical,title:t,size:o,disabled:i,withSelectAll:r,options:n,values:a,setValues:s})=>{const l=o===su.S?pr.XXS:pr.XS,c=wt(()=>n.every(e=>a[e.id]),[n,a]),d=wt(()=>n.some(e=>a[e.id])&&n.some(e=>!a[e.id]),[n,a]),p=(e,t)=>{s(o=>{const i={...o};return e?i[e]=t:n.forEach(e=>i[e.id]=t),i})};return bt(pu,{$direction:e,children:[t&&r?yt(du,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!r?yt(hr,{size:l,children:t}):null,n.map(e=>yt(du,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:i,size:o},`${t}-checkbox-${e.id}`))]})};var hu,mu;!function(e){e.Left="left",e.Right="right"}(hu||(hu={})),function(e){e.Top="top",e.Bottom="bottom"}(mu||(mu={}));const gu=zt.div`
1798
+ position: relative;
1799
+ `,fu=zt.div`
1800
+ display: flex;
1801
+ flex-direction: column;
1802
+ gap: 0;
1803
+
1804
+ min-width: 120px;
1805
+ width: ${({$fullWidth:e})=>e?"calc(100% - 16px)":"fit-content"};
1806
+ padding: 8px;
1807
+ border-radius: 6px;
1808
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1809
+ box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1810
+
1811
+ position: absolute;
1812
+ ${({$alignX:e})=>`${e}: 0;`}
1813
+ ${({$alignY:e,$withOffsetY:t})=>`${e===mu.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
1814
+ z-index: 1;
1815
+ `,xu=zt.div`
1816
+ display: flex;
1817
+ flex-direction: column;
1818
+ gap: 0;
1819
+
1820
+ width: 100%;
1821
+ max-height: ${({$maxHeight:e})=>e||"230px"};
1822
+ overflow-y: auto;
1823
+ `,yu=zt.div`
1824
+ display: flex;
1825
+ align-items: center;
1826
+ gap: 8px;
1827
+ width: calc(100% - 16px);
1828
+ padding: 8px;
1829
+ border-radius: 6px;
1830
+ cursor: pointer;
1831
+ ${({$selected:e})=>e?Lt`
1832
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1833
+ `:Lt`
1834
+ background-color: transparent;
1835
+ &:hover {
1836
+ background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1837
+ }
1838
+ `}
1839
+ `,bu=({defaultOpen:e,alignX:t,alignY:o,items:i,selectedIds:r,setSelectedIds:n,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Pt(),m=!!d||!!p||!!u,[g,f]=St(e??!m),[x,y]=St({x:t||hu.Left,y:o||mu.Bottom}),b=e=>{f(e=>!e),y({x:t||(e.clientX>window.innerWidth/2?hu.Right:hu.Left),y:o||(e.clientY>window.innerHeight/2?mu.Top:mu.Bottom)})},$=e=>{n(a?r.includes(e)?r.filter(t=>t!==e):[...r,e]:[e]),m&&!a&&f(!1)},v=kt(null);Qn(v,()=>f(!1));const[w,S]=St(""),C=wt(()=>w?i.filter(e=>e?.label?.toLowerCase().includes(w.toLowerCase())):i,[i.length,w]);return bt(gu,{ref:v,children:[d&&yt(Vp,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&yt(Gn,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&bt(fu,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&yt(au,{value:w,onChange:S,width:"100%"}),yt(xu,{$maxHeight:c,children:C.map(e=>{if(!e)return null;const{id:t,label:o,icon:i,withCheckbox:n}=e,a=r.includes(t);return bt(yu,{$selected:a&&!n,onClick:()=>$(t),children:[n&&yt(du,{value:a,onChange:()=>$(t)}),i&&yt(i,{size:14,fill:h.v2.colors.white[500]}),yt(hr,{size:pr.XS,nowrap:!0,children:o})]},t)})}),a&&yt(Vp,{label:"Done",onClick:()=>f(!1)})]})]})};var $u;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}($u||($u={}));const vu=({onAnyClick:e,actions:t})=>yt(va,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case $u.Button:return yt(Vp,{...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}},t.id);case $u.ButtonDropData:return yt(bu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),wu=zt.div`
1840
+ display: flex;
1841
+ align-items: center;
1842
+ justify-content: center;
1843
+ padding: 8px;
1844
+ border-radius: 8px;
1845
+ background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1846
+ `,Su=({icon:e,title:t,subTitle:o,withCopy:i,badge:r,children:n})=>{const a=Pt(),{CopyButton:s}=Vn();return bt(va,{$gap:o?8:6,$alignItems:"center",children:[o?yt(wu,{children:yt(e,{size:24})}):yt(e,{size:24}),bt(wa,{children:[bt(va,{$gap:6,$alignItems:"center",children:[yt(hr,{nowrap:!0,children:t}),i&&yt(s,{value:t,size:jn.XS}),r&&yt(gr,{...r})]}),o&&yt(hr,{size:pr.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:o})]}),n]})};var Cu;!function(e){e.S="small",e.M="medium"}(Cu||(Cu={}));const ku=zt.div`
1847
+ display: flex;
1848
+ flex-direction: column;
1849
+ gap: ${({$gap:e})=>e}px;
1850
+ width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
1851
+ padding: ${({$padding:e})=>e}px;
1852
+ border-radius: 16px;
1853
+ background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1854
+ `,Eu=({size:e=Cu.M,richTitle:t,search:o,actions:i,children:r})=>{const n=e===Cu.S?4:16,a=e===Cu.S?12:16;return bt(ku,{$padding:a,$gap:n,children:[bt(va,{$gap:n,$justifyContent:"space-between",children:[yt(Su,{...t,children:o&&yt(au,{...o})}),yt(vu,{actions:i??[]})]}),r]})},Au=zt.div`
1855
+ flex: 1;
1856
+ align-self: stretch;
1857
+ display: flex;
1858
+ align-items: center;
1859
+ gap: 8px;
1860
+ padding: 16px;
1861
+ border-radius: 12px;
1862
+ background-color: ${({theme:e,$status:t})=>Fi(e,t,t===Io.Unknown?"750":"500")};
1863
+ `,Du=zt.div`
1864
+ display: flex;
1865
+ align-items: center;
1866
+ justify-content: center;
1867
+ width: fit-content;
1868
+ height: fit-content;
1869
+ padding: 8px;
1870
+ border-radius: 12px;
1871
+ background-color: ${({theme:e,$status:t})=>t===Io.Unknown?Fi(e,t,"800"):Fi(e,t,"900")+vn["015"]};
1872
+ `,Tu=({status:e,icon:t,title:o,description:i})=>{const r=Pt(),n=t??Li(e,r),a=[Do.Default,Do.Info,Io.Disabled,Io.Unknown].includes(e)?r.v2.colors.white[500]:r.v2.colors.black[500];return bt(Au,{$status:e,children:[yt(Du,{$status:e,children:yt(n,{size:32,fill:a})}),bt(wa,{$gap:2,$justifyContent:"center",children:[yt(hr,{size:pr.M,weight:500,color:a,nowrap:!0,children:o}),yt(hr,{size:pr.XXS,weight:300,color:a,nowrap:!0,children:i})]})]})},Nu=zt.div`
1873
+ flex: 1;
1874
+ align-self: stretch;
1875
+ display: flex;
1876
+ flex-direction: column;
1877
+ gap: 12px;
1878
+ padding: 12px;
1879
+ border-radius: 12px;
1880
+ background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1881
+ `,Iu=["-","N/A"],_u=({title:e,cells:t})=>{const o=Pt();return bt(Nu,{children:[yt(hr,{size:pr.XXS,color:o.v2.colors.grey[150],children:e}),yt(va,{$gap:32,children:t.map(t=>bt(wa,{$gap:2,children:[!t.isLoading||t.value&&!Iu.includes(t.value)?yt(hr,{size:t.label?pr.M:pr.L,children:t.value}):yt(Fs,{scale:.9}),t.label&&yt(hr,{size:pr.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},Ou=zt(va)`
1882
+ width: calc(100% - 20px);
1883
+ padding: 10px;
1884
+ border-radius: 6px;
1885
+ background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1886
+ display: flex;
1887
+ align-items: center;
1888
+ justify-content: space-between;
1889
+ gap: 12px;
1890
+ `,Ru=zt.div`
1891
+ position: relative;
1892
+ width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
1893
+ display: flex;
1894
+ align-items: center;
1895
+ gap: 4px;
1896
+ `,Fu=zt.pre`
1897
+ flex: 1;
1898
+ margin: 0;
1899
+ padding: 0;
1900
+ font-size: 14px;
1901
+ color: #5ffb98; // TODO: add to theme
1902
+ overflow-x: auto;
1903
+ `,zu=zt.span`
1904
+ flex-shrink: 0;
1905
+ font-size: 14px;
1906
+ color: #5ffb98; // TODO: add to theme
1907
+ `,Lu=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:i}=Vn({onDone:o}),r=kt(null),[n,a]=St(!1);return Ct(()=>{const e=()=>{if(r.current){const{scrollWidth:e,clientWidth:t}=r.current;a(e>t)}};e();const t=new ResizeObserver(e);return r.current&&t.observe(r.current),()=>{t.disconnect()}},[e]),bt(Ou,{children:[bt(Ru,{$hideCopy:t,children:[yt(Fu,{ref:r,children:e}),n&&yt(zu,{children:"..."})]}),!t&&yt(i,{value:e,size:jn.XS})]})},Pu=zt.div`
1908
+ display: flex;
1909
+ align-items: center;
1910
+ justify-content: space-between;
1911
+ width: calc(100%);
1912
+ `,Mu=zt.div`
1913
+ display: flex;
1914
+ align-items: center;
1915
+ gap: 16px;
1916
+ padding: 6px 0;
1917
+ `,Bu=zt.div`
1918
+ display: flex;
1919
+ align-items: center;
1920
+ justify-content: center;
1921
+ width: 36px;
1922
+ height: 36px;
1923
+ border-radius: 8px;
1924
+ background: ${({theme:e})=>e.v2.colors.silver[800]};
1925
+ `,Uu=zt.div`
1926
+ display: flex;
1927
+ align-items: center;
1928
+ gap: 12px;
1929
+ `,ju=({icon:e,title:t,subTitle:o,actions:i,onClose:r,onCloseDisabled:n})=>bt(Pu,{children:[bt(Mu,{children:[e&&yt(Bu,{children:yt(e,{size:24})}),(t||o)&&bt(wa,{$gap:6,children:[t&&yt(hr,{size:pr.S,weight:500,children:t}),o&&yt(hr,{size:pr.XXS,children:o})]})]}),bt(Uu,{children:[i?.length?yt(Gn,{icon:ht,size:jn.M,onClick:()=>alert("todo")}):null,r&&yt(Gn,{icon:Ke,size:jn.M,onClick:r,disabled:n})]})]}),Wu=zt.div`
1930
+ position: fixed;
1931
+ top: 0;
1932
+ bottom: 0;
1933
+ ${({$position:e})=>e}: 0;
1934
+ z-index: 1000;
1935
+
1936
+ display: flex;
1937
+ flex-direction: column;
1938
+ gap: 12px;
1939
+
1940
+ width: calc(${({$width:e})=>e} - 32px);
1941
+ padding: 12px;
1942
+ border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
1943
+ background: ${({theme:e})=>e.v2.colors.black[500]};
1944
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1945
+ overflow: hidden;
1946
+
1947
+ animation-name: ${({$position:e})=>Sn.in[e]};
1948
+ `,Gu=zt.div`
1949
+ display: flex;
1950
+ flex-direction: column;
1951
+ gap: 12px;
1952
+
1953
+ height: calc(100% - ${56}px);
1954
+ overflow-y: auto;
1955
+ `,Vu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:i="600px",header:r,children:n})=>(Pn(e),e?Jt(bt($t,{children:[!t&&yt(ka,{onClick:r?.onCloseDisabled?void 0:r?.onClose}),bt(Wu,{$position:o,$width:i,children:[r&&yt(ju,{...r}),yt(Gu,{children:n})]})]}),document.body):null),Xu=zt.span`
1956
+ font-family: ${({theme:e})=>e.font_family.primary};
1957
+ font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1958
+ font-weight: 400;
1959
+ color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1960
+ `,Hu=zt.span`
1961
+ font-family: ${({theme:e})=>e.font_family.primary};
1962
+ font-size: 14px;
1963
+ font-weight: 400;
1964
+ color: ${({theme:e})=>e.v2.colors.red[500]};
1965
+ `,Ju=({label:e,tooltip:t,required:o,width:i,smallAndDark:r})=>e||t||o?bt(va,{$width:i,$justifyContent:"space-between",children:[e&&yt(Xu,{$smallAndDark:r,children:e}),bt(va,{$gap:4,children:[o&&yt(Hu,{children:"*"}),t&&yt(Ka,{text:t,withIcon:!0})]})]}):null,Ku=({errorMessage:e,helpMessage:t})=>{const o=Pt(),i=e?o.v2.colors.red[500]:o.v2.colors.silver[200],r=yt(Xe,{size:12,fill:i});return e||t?bt(va,{$gap:4,children:[yt("div",{children:r}),yt(hr,{size:pr.XXS,weight:400,color:i,children:e||t})]}):null},qu=zt.div`
1966
+ padding: ${({$small:e})=>e?"4px":"8px 12px"};
1967
+
1968
+ display: flex;
1969
+ align-self: stretch;
1970
+ align-items: center;
1971
+ gap: 8px;
1972
+ border-radius: 6px;
1973
+
1974
+ border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1975
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1976
+ ${({$disabled:e,$error:t})=>!e&&!t&&Lt`
1977
+ &:hover,
1978
+ &:active,
1979
+ &:focus-within {
1980
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1981
+ }
1982
+ `}
1983
+ `,Yu=zt.input`
1984
+ max-width: ${({$maxWidth:e})=>e||"unset"};
1985
+ width: ${({$width:e})=>e||"unset"};
1986
+
1987
+ flex: 1;
1988
+ font-family: ${({theme:e})=>e.font_family.primary};
1989
+ font-size: ${({$small:e})=>e?"12px":"14px"};
1990
+ font-weight: 400;
1991
+
1992
+ cursor: text;
1993
+ color: ${({theme:e})=>e.v2.colors.white[500]};
1994
+ &::placeholder {
1995
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
1996
+ }
1997
+
1998
+ &:disabled {
1999
+ cursor: not-allowed;
2000
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2001
+ &::placeholder {
2002
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2003
+ }
2004
+ }
2005
+
2006
+ overflow: hidden;
2007
+ text-overflow: ellipsis;
2008
+ white-space: nowrap;
2009
+ `,Qu=zt.div`
2010
+ display: flex;
2011
+ align-items: center;
2012
+ justify-content: center;
2013
+ cursor: pointer;
2014
+ `,Zu=({label:e,required:t,tooltip:o,leftIcon:i,rightIcon:r,hasError:n,errorMessage:a,helpMessage:s,type:l=Ao.Text,name:c,value:d,onChange:p,disabled:u,maxWidth:h,width:m,small:g=!1,...f})=>{const x=Pt(),y=l===Ao.Password,[b,$]=St(!1),v=d?x.v2.colors.white[500]:u?x.v2.colors.grey[400]:x.v2.colors.silver[200],w=g?14:18;return bt(wa,{$width:m,$gap:6,children:[yt(Ju,{label:e,tooltip:o,required:t}),bt(qu,{$small:g,$disabled:u,$error:n||!!a,children:[i?yt(i,{size:w,fill:v}):null,yt(Yu,{"data-id":c,type:b||l===Ao.Number?Ao.Text:l,name:c,value:d,onChange:e=>{e.stopPropagation(),l===Ao.Number&&(e.target.value=or(e.target.value)),p?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:u,$maxWidth:h,$width:m,$small:g,...f}),y?yt(Qu,{onClick:()=>$(e=>!e),children:yt(b?it:rt,{size:w,fill:v})}):r?yt(r,{size:w,fill:v}):null]}),yt(Ku,{errorMessage:a,helpMessage:s})]})},eh=({options:e,values:t,setValues:o,withMultiSelect:i,withSearch:r,...n})=>{const a=wt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=wt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return yt(bu,{withMultiSelect:i,withSearch:r,alignX:hu.Left,items:a,selectedIds:t,setSelectedIds:o,children:({ChevronIcon:e,handleClick:t})=>yt(Zu,{placeholder:"Select options...",...n,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},th=zt.header`
2015
+ position: relative;
2016
+ width: calc(100% - 36px);
2017
+ padding: 12px 18px;
2018
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
2019
+ display: flex;
2020
+ align-items: center;
2021
+ justify-content: space-between;
2022
+ `,oh=zt(va)`
2023
+ position: absolute;
2024
+ left: 50%;
2025
+ transform: translateX(-50%);
2026
+ gap: 16px;
2027
+ `,ih=({left:e=[],center:t=[],right:o=[]})=>bt(th,{children:[yt(va,{$gap:16,children:e}),yt(oh,{children:t}),yt(va,{$gap:16,children:o})]}),rh=zt.div`
2028
+ display: flex;
2029
+ align-items: center;
2030
+ gap: 2px;
2031
+ width: fit-content;
2032
+ padding: 4px;
2033
+ border-radius: 8px;
2034
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2035
+ box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
2036
+
2037
+ position: absolute;
2038
+ right: ${({$right:e})=>e||"12px"};
2039
+ top: 50%;
2040
+ transform: translateY(-50%);
2041
+ `,nh=({isOpen:e,actions:t,positionRight:o})=>e?yt(rh,{$right:o,children:t.map(e=>e?yt(Ka,{text:e.tooltip||"",children:yt(Vp,{...e,variant:jp.Secondary,size:Wp.S,label:e.label})},e.id):null)}):null,ah=({values:e,setValues:t,label:o,tooltip:i,required:r,errorMessage:n,helpMessage:a,placeholder:s,disabled:l})=>{const c=Pt(),d=e.length<=1,p=l,u=l||d&&p;return bt(wa,{$gap:6,children:[yt(Ju,{label:o,tooltip:i,required:r}),yt(wa,{$gap:8,children:(e.length?e:[""]).map((o,i)=>{const r=i===e.length-1;return bt(va,{$gap:8,$alignItems:"center",children:[yt(Zu,{width:"100%",autoFocus:Gi(o)&&!d&&r,value:o,onChange:o=>((o,i)=>{const r=[...e||[]];r[i]=o,t(r)})(o.target.value,i),disabled:l,placeholder:s,hasError:!!n}),yt(Vp,{leftIcon:et,variant:jp.Secondary,size:Wp.S,disabled:p,onClick:()=>(()=>{const o=[...e||[]];o.push(""),t(o)})()}),yt(Vp,{leftIcon:u?at:()=>yt(at,{fill:c.v2.colors.red[500]}),variant:jp.Secondary,size:Wp.S,disabled:u,onClick:()=>(o=>{const i=[...e||[]].filter((e,t)=>t!==o);i.length||i.push(""),t(i)})(i)})]},`input-list-${i}`)})}),yt(Ku,{errorMessage:n,helpMessage:a})]})},sh=({col:e,colIdx:t,row:o,rowIdx:i,rowsLength:r,handleChange:n,errorMessage:a,disabled:s})=>{const{keyName:l,placeholder:c,inputType:d,componentType:p,options:u,renderCondition:h}=e,m=o[l];if(h&&!h(o))return null;switch(p){case Eo.Dropdown:case"multi-dropdown":const e=Array.isArray(m)&&u?.filter(e=>m.includes(e.id)).map(e=>e.id)||[],o="multi-dropdown"===p;return yt(eh,{placeholder:c,options:u||[],withMultiSelect:o,withSearch:o,values:e,setValues:e=>n(l,e,i),disabled:s,hasError:!!a});default:const h=r>1&&0===i&&0===t&&Gi(m);return yt(Zu,{placeholder:c,autoFocus:h,type:d,value:m,onChange:({target:{value:e}})=>n(l,e,i),disabled:s,hasError:!!a})}},lh=zt.table`
2042
+ width: 100%;
2043
+ border-collapse: separate;
2044
+ border-spacing: 0 8px;
2045
+ `,ch=zt.td`
2046
+ padding: 0 8px 0 0;
2047
+ `,dh=zt.td`
2048
+ width: 72px;
2049
+ padding-bottom: 2px;
2050
+ vertical-align: bottom;
2051
+ `,ph=({columns:e,values:t,setValues:o,label:i,tooltip:r,required:n,disabled:a,errorMessage:s,helpMessage:l,limitFieldsPerRow:c})=>{const d=Pt(),p=wt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),u=(e,i,r)=>{const n=t.length?ro(t):[ro(p)];n[r][e]=i,o(n)},h=wt(()=>{if(c){const t=[];for(let o=0;;o+=c){const i=e.slice(o,o+c);if(!i.length)break;t.push(i)}return t}return[e]},[c,e]),m=t.length?t:[p];return bt(wa,{$gap:6,children:[yt(Ju,{label:i,tooltip:r,required:n}),yt(lh,{children:yt("tbody",{children:m.map((e,i)=>bt(vt,{children:[c&&i>0?yt("tr",{children:yt(ch,{colSpan:h.length})}):null,h.map((r,n)=>bt("tr",{children:[r.map((t,o)=>t.renderCondition&&!t.renderCondition(e)?null:bt(ch,{children:[yt(Ju,{label:t.label,tooltip:t.tooltip,smallAndDark:!0}),yt(Na,{$height:"4px"}),yt(sh,{col:t,colIdx:o,row:e,rowIdx:i,rowsLength:m.length,handleChange:u,disabled:a,errorMessage:s})]},`input-table-row-${i}-col-${n}-${o}`)),0===n&&yt(dh,{children:bt(va,{$gap:8,$justifyContent:"center",children:[yt(Vp,{leftIcon:et,variant:jp.Secondary,size:Wp.S,disabled:a,onClick:()=>(()=>{const e=ro(t);e.push(ro(p)),o(e)})()}),yt(Vp,{leftIcon:a?at:()=>yt(at,{fill:d.v2.colors.red[500]}),variant:jp.Secondary,size:Wp.S,disabled:a,onClick:()=>(e=>{const i=t.filter((t,o)=>o!==e);i.length||i.push(ro(p)),o(i)})(i)})]})})]},`input-table-matrix-${i}-${n}`))]},`input-table-row-${i}`))})}),yt(Ku,{errorMessage:s,helpMessage:l})]})},uh=zt.div`
2052
+ display: flex;
2053
+ align-items: center;
2054
+ justify-content: space-between;
2055
+ gap: 32px;
2056
+
2057
+ padding: 18px 16px;
2058
+ border-radius: 18px;
2059
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+vn["095"]};
2060
+ box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2061
+
2062
+ position: fixed;
2063
+ bottom: 0;
2064
+ left: 50%;
2065
+ animation-name: ${Sn.in.center};
2066
+ `,hh=({isOpen:e,onClose:t,richTitle:o,actions:i})=>e?bt(uh,{children:[yt(Su,{...o}),yt(vu,{onAnyClick:t,actions:i})]}):null,mh=zt.div`
2067
+ border-radius: 100%;
2068
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2069
+ position: relative;
2070
+ `,gh=zt.div`
2071
+ width: 80px;
2072
+ height: 80px;
2073
+ border-radius: 100%;
2074
+ border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
2075
+ border-right-color: transparent;
2076
+ border-left-color: transparent;
2077
+ border-bottom-color: transparent;
2078
+ animation: spin 1s linear infinite;
2079
+ @keyframes spin {
2080
+ to {
2081
+ transform: rotate(360deg);
2082
+ }
2083
+ }
2084
+ `,fh=zt(hr)`
2085
+ position: absolute;
2086
+ top: 50%;
2087
+ left: 50%;
2088
+ transform: translate(-50%, -50%);
2089
+ `,xh=({percentage:e})=>bt(mh,{children:[yt(gh,{}),"number"==typeof e?yt(fh,{size:pr.M,weight:500,children:`${e}%`}):null]}),yh={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 bh(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const i=(e.match(/[^0-9]*$/)||"").toString();return yh[i]?{value:t,unit:i}:{value:t,unit:"px"}}function $h(e){const t=bh(e);return`${t.value}${t.unit}`}const vh=((e,t,o)=>{const i=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return i;const r=document.createElement("style");document.head.appendChild(r);const n=r.sheet,a=`\n @keyframes ${i} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),i})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),wh=({loading:e=!0,color:t,scale:o=1,speedMultiplier:i=1,cssOverride:r={},style:n={},...a})=>{const s=Pt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=bh(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...r},m=(e,t)=>({position:"absolute",width:$h(1.5),height:$h(4),borderRadius:$h(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${vh} ${1.2/i}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[yt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),yt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),yt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),yt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),yt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),yt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Sh=zt.div`
2090
+ width: ${({$size:e})=>e}px;
2091
+ height: ${({$size:e})=>e}px;
2092
+ border-radius: 100%;
2093
+ background: ${({$color:e})=>e};
2094
+ display: flex;
2095
+ align-items: center;
2096
+ justify-content: center;
2097
+ `,Ch=({scale:e,icon:t})=>{const o=Pt();return yt(Sh,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:yt(Sh,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:yt(Sh,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:yt(Sh,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:yt(Sh,{$size:23*e,$color:"#50F6E8",children:yt(t,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},kh=434,Eh=635,Ah=zt.div`
2098
+ width: ${434}px;
2099
+ height: ${635}px;
2100
+ display: flex;
2101
+ flex-direction: column;
2102
+ align-items: center;
2103
+ justify-content: center;
2104
+ padding: 16px;
2105
+ background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
2106
+ position: relative;
2107
+ `,Dh=zt.div`
2108
+ position: absolute;
2109
+ top: 50%;
2110
+ left: 50%;
2111
+ transform: translate(-50%, -50%);
2112
+ `,Th=()=>bt(Ah,{children:[yt(Dh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[yt("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),yt("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),yt("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),yt("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),yt("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),yt("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),yt("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),yt(Dh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[yt("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),yt("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),yt("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),yt("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),yt("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),yt("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),yt("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),yt("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Dh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[yt("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),yt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),yt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),yt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),yt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),yt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),yt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Dh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[yt("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),yt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),yt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),yt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),yt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),yt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),yt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Dh,{children:yt(X,{size:112})})]}),Nh=Bt`
2113
+ 0% {
2114
+ background-position: 0% 50%;
2115
+ }
2116
+ 100% {
2117
+ background-position: 100% 50%;
2118
+ }
2119
+ `,Ih=zt(hr)`
2120
+ background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
2121
+ background-size: 250% 100%; /* Expand background to allow movement */
2122
+ background-clip: text;
2123
+ color: transparent;
2124
+ animation: ${Nh} 1s reverse linear infinite;
2125
+ `,_h=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),i=Math.floor(o/60),r=o%60;return`${String(i).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Oh=({icon:e,title:t,titleColor:o,titleSize:i=pr.S,subTitle:r,subTitleColor:n,subTitleSize:a=pr.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=mt})=>{const f=Pt(),[x,y]=St(()=>s?_h(s):"");Ct(()=>{if(!s)return;y(_h(s));const e=setInterval(()=>y(_h(s)),1e3);return()=>clearInterval(e)},[s]);const b=o||f.v2.colors.white[500],$=n||f.v2.colors.silver[200],v=c||f.v2.colors.black[500];return bt(wa,{$gap:16,$alignItems:"center",children:[m?yt(Ch,{scale:1.7,icon:g}):d?yt(xh,{percentage:h}):p?yt(wh,{scale:u}):null,(t||r||s||e)&&bt(wa,{$gap:8,$alignItems:"center",children:[bt(va,{$gap:4,children:[e&&yt(e,{}),l?yt(Ih,{align:"center",size:i,$titleColor:b,$gradientColor:v,children:t}):yt(hr,{align:"center",size:i,color:b,children:t})]}),r?yt(hr,{align:"center",size:a,color:$,children:r}):null,x?yt(hr,{align:"center",size:a,color:b,children:x}):null]})]})},Rh=zt.div`
2126
+ position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2127
+ top: 50%;
2128
+ left: 50%;
2129
+ transform: translate(-50%, -50%);
2130
+ z-index: 1000;
2131
+ width: fit-content;
2132
+ border-radius: 20px;
2133
+ background: ${({theme:e})=>e.v2.colors.black[500]};
2134
+ box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2135
+ overflow: hidden;
2136
+
2137
+ animation-name: ${Sn.in.center};
2138
+ `,Fh=zt.div`
2139
+ position: relative;
2140
+ `,zh=zt.div`
2141
+ position: absolute;
2142
+ top: 16px;
2143
+ left: 16px;
2144
+ `,Lh=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:i,onClose:r,children:n})=>{if(Pn(e),!e)return null;const a=bt($t,{children:[!t&&yt(ka,{$relativeToParent:o,onClick:r}),yt(Rh,{$relativeToParent:o,children:bt(Fh,{children:[i&&yt(zh,{children:yt(Gn,{icon:e=>yt(dt,{rotate:-90,...e}),size:jn.L,onClick:i})}),n]})})]});return o?a:Jt(a,document.body)},Ph=zt.aside`
2145
+ display: flex;
2146
+ flex-direction: column;
2147
+ gap: 8px;
2148
+ height: ${({$height:e})=>e};
2149
+ width: fit-content;
2150
+ padding: 16px 12px;
2151
+ background-color: ${({theme:e})=>e.v2.colors.black[500]};
2152
+ overflow-y: auto;
2153
+ `,Mh=({height:e,icons:t})=>yt(Ph,{$height:e,children:t.map(({id:e,selected:t,icon:o,onClick:i})=>yt(Vp,{label:"",leftIcon:o,iconSize:24,onClick:i,variant:t?jp.Primary:jp.Text},e))}),Bh=zt.div`
2154
+ display: flex;
2155
+ align-items: center;
2156
+ justify-content: center;
2157
+ width: fit-content;
2158
+ height: fit-content;
2159
+ padding: 8px;
2160
+ border-radius: 100%;
2161
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2162
+ `,Uh=({icon:e=Ke,title:t="No data",subTitle:o,button:i})=>{const r=Pt().v2.colors.silver[200];return bt(wa,{$gap:12,$alignItems:"center",children:[yt(Bh,{children:yt(e,{size:32,fill:r})}),bt(wa,{$gap:4,$alignItems:"center",children:[yt(hr,{size:pr.S,align:"center",children:t}),o&&yt(hr,{size:pr.XXS,align:"center",color:r,children:o})]}),i&&yt(Vp,{variant:jp.Secondary,...i})]})},jh=zt.div`
2163
+ display: flex;
2164
+ align-items: center;
2165
+ gap: 10px;
2166
+ ${({$fullWidth:e})=>e&&Lt`
2167
+ width: calc(100% - 16px);
2168
+ `}
2169
+ padding: 4px 12px 4px 4px;
2170
+ border-radius: 8px;
2171
+ background-color: ${({theme:e,$status:t})=>Fi(e,t,[Do.Info].includes(t)?"1000":"900")};
2172
+ `,Wh=zt.div`
2173
+ width: ${({$smallIcon:e})=>e?"24px":"32px"};
2174
+ height: ${({$smallIcon:e})=>e?"24px":"32px"};
2175
+ display: flex;
2176
+ align-items: center;
2177
+ justify-content: center;
2178
+ border-radius: 6px;
2179
+ background-color: ${({theme:e,$status:t})=>Fi(e,t,[Do.Info].includes(t)?"900":"800")};
2180
+ `,Gh=zt.div`
2181
+ margin-left: auto;
2182
+ margin-right: 8px;
2183
+ cursor: pointer;
2184
+ &:hover {
2185
+ transform: scale(1.2);
2186
+ }
2187
+ `,Vh=({status:e,message:t,action:o,fullWidth:i,smallIcon:r})=>{const n=Pt(),a=Li(e,n),s=Fi(n,e,e===Do.Default?"300":e===Do.Info?"400":"500");return bt(jh,{$status:e,$fullWidth:i,children:[yt("div",{children:yt(Wh,{$status:e,$smallIcon:r,children:yt(a,{size:r?18:24})})}),yt(hr,{color:s,size:pr.XXXS,weight:400,children:t}),o&&yt(Gh,{onClick:o.onClick,children:yt(hr,{color:s,size:pr.XXS,weight:500,underline:!0,children:o.label})})]})};var Xh;!function(e){e.S="small",e.L="large"}(Xh||(Xh={}));const Hh=zt.div`
2188
+ width: fit-content;
2189
+ display: flex;
2190
+ align-items: center;
2191
+ gap: 8px;
2192
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2193
+ `,Jh=zt.div`
2194
+ width: ${({$size:e})=>e===Xh.S?"16px":"20px"};
2195
+ height: ${({$size:e})=>e===Xh.S?"16px":"20px"};
2196
+ display: flex;
2197
+ align-items: center;
2198
+ justify-content: center;
2199
+ border-radius: 100%;
2200
+ border: 1px solid ${({$borderColor:e})=>e};
2201
+ background-color: ${({$backgroundColor:e})=>e};
2202
+ `,Kh=({label:e,value:t,onChange:o,disabled:i,size:r=Xh.L})=>{const n=Pt(),[a,s]=St(!1),l=t,c=r===Xh.S?6:8,d=i?n.v2.colors.grey[400]:n.v2.colors.white[500],p=l?"transparent":i?n.v2.colors.grey[700]:a?n.v2.colors.silver[400]:n.v2.colors.silver[600],u=i?n.v2.colors.grey[600]:l?n.v2.colors.purple[500]:n.v2.colors.silver[900];return bt(Hh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),i||o(!t)},$disabled:i,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[yt(Jh,{$size:r,$borderColor:p,$backgroundColor:u,children:t?yt(gt,{size:c,fill:d}):null}),e&&yt(hr,{size:r===Xh.S?pr.XXS:pr.XS,children:e})]})},qh=zt.div`
2203
+ display: flex;
2204
+ flex-direction: ${({$flexDirection:e})=>e};
2205
+ gap: ${({$gap:e})=>e}px;
2206
+ `,Yh=({label:e,direction:t,disabled:o,size:i,options:r,values:n,setValues:a})=>bt(qh,{$flexDirection:t===xo.Horizontal?"row":"column",$gap:t===xo.Horizontal?16:8,children:[e&&yt(hr,{children:e}),r.map(t=>yt(Kh,{...t,value:n[t.id],onChange:e=>{return o=t.id,i=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=i,t});var o,i},disabled:o,size:i},`${e}-radio-${t.id}`))]}),Qh=({currentStep:e,data:t,gap:o=12})=>yt(wa,{$gap:o,children:t.map(t=>{const o=t.step<e,i=t.step===e;return bt(va,{$gap:8,children:[o||t.forceDoneBadge?yt(gr,{status:Do.Success,label:"",leftIcon:He}):yt(gr,{status:Do.Default,label:t.step.toString()}),yt(hr,{size:i?pr.M:pr.XS,weight:i?500:400,opacity:i?1:.7,children:t.label})]},`stepper-item-${t.step}`)})});var Zh;!function(e){e.Data="data",e.Pretty="pretty"}(Zh||(Zh={}));const em=zt.div`
2207
+ height: ${({$maxHeight:e})=>e};
2208
+ width: 100%;
2209
+ display: flex;
2210
+ flex-direction: column;
2211
+ overflow: hidden;
2212
+ `,tm=zt.div`
2213
+ width: 100%;
2214
+ flex: 1;
2215
+ display: flex;
2216
+ flex-direction: column;
2217
+ overflow: hidden;
2218
+ `,om=zt.div`
2219
+ flex-shrink: 0;
2220
+ z-index: 1;
2221
+ `,im=zt.div`
2222
+ display: flex;
2223
+ width: 100%;
2224
+ `,rm=zt.div`
2225
+ position: relative;
2226
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2227
+ flex: 1;
2228
+ padding: 18px 24px;
2229
+ border: none;
2230
+ border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
2231
+ box-sizing: border-box;
2232
+
2233
+ ${({$variant:e,$backgroundColor:t})=>{if(t)return Lt`
2234
+ background-color: ${t};
2235
+ `;switch(e){case Zh.Data:return Lt`
2236
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2237
+ `;case Zh.Pretty:return Lt`
2238
+ background-color: transparent;
2239
+ `;default:return""}}}
2240
+ `,nm=zt.div`
2241
+ position: absolute;
2242
+ top: 50%;
2243
+ right: 0;
2244
+ transform: translateY(-50%);
2245
+ width: 1px;
2246
+ height: 18px;
2247
+ background: ${({theme:e})=>e.v2.colors.silver[500]};
2248
+ `,am=zt.div`
2249
+ position: relative;
2250
+
2251
+ min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2252
+ flex: 1;
2253
+ display: flex;
2254
+ align-items: center;
2255
+
2256
+ padding: 18px 24px;
2257
+ cursor: ${({$withClick:e})=>e?"pointer":"default"};
2258
+ box-sizing: border-box;
2259
+
2260
+ ${({$variant:e,$selected:t,$hovered:o,$isLastRow:i,$isFirstCell:r,$isLastCell:n})=>{switch(e){case Zh.Data:return Lt`
2261
+ border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
2262
+ border-radius: ${i?r?"0 0 0 4px":n?"0 0 4px 0":"0":"0"};
2263
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2264
+ `;case Zh.Pretty:return Lt`
2265
+ border: none;
2266
+ border-radius: ${r?"12px 0 0 12px":n?"0 12px 12px 0":"0"};
2267
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2268
+ `;default:return""}}}
2269
+ `,sm=zt.div`
2270
+ width: 100%;
2271
+ display: flex;
2272
+ align-items: center;
2273
+ justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2274
+ gap: 4px;
2275
+ text-align: ${({$textAlign:e})=>e||"left"};
2276
+ `,lm=({variant:e,columns:t,rows:o,getRowActions:i,rowActionsPushRightPosition:r,withCheckboxes:n})=>{const[a,s]=St(null),l=wt(()=>o.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,f=a===c,x=i(l),y=(e,t)=>({$isLastRow:c===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&f,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return bt(im,{children:[n&&yt(am,{$variant:e,style:{flex:"0 0 68px"},...y(!0,!1),children:!g&&yt(du,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:o,textAlign:i,minWidth:a},s)=>{const l=d.find(e=>e.key===o),p=0===s&&!n,u=s===t.length-1,h="right"===i?"flex-end":"center"===i?"center":"flex-start";return bt(am,{$variant:e,$minWidth:a,...y(p,u),children:[yt(va,{$width:"100%",$justifyContent:h,children:l?.component?yt(l.component,{}):yt(hr,{size:pr.XS,children:l?.rawValue||"-"})}),x.length?yt(nh,{isOpen:f&&u,actions:x,positionRight:r}):null]},`row-${c}-cell-${s}`)})]},`row-${c}`)}),[o,a,i,r,n,t]);return yt(tp,{gap:e===Zh.Pretty?8:0,elements:l})},cm=({columnKey:e,sortDirection:t,sortByKey:o,onSort:i})=>{const r=Pt(),n=o===e?r.v2.colors.white[500]:r.v2.colors.grey[400],a=t===yo.Ascending?0:180;return yt(Gn,{icon:e=>yt(dt,{fill:n,rotate:a,...e}),onClick:()=>i(e)})},dm=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:i})=>{const r=Pt(),n=t[e]?.length?r.v2.colors.white[500]:r.v2.colors.grey[400],a=wt(()=>Array.from(new Set(i.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[i,e]);return yt(bu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>yt(ft,{fill:n,...e})}})},pm=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:i,sortDirection:r,sortByKey:n,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>bt(im,{children:[c&&yt(rm,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:yt(du,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),o.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},f)=>{const x=0===f&&!c,y=f===o.length-1;return bt(rm,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:y,children:[bt(sm,{$textAlign:g,children:[yt(hr,{size:pr.XS,align:g,children:p}),!u&&yt(cm,{columnKey:d,sortDirection:r,sortByKey:n,onSort:a}),!h&&yt(dm,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:i})]}),!y&&e===Zh.Data&&yt(nm,{})]},`column-${d}`)})]}),um=({variant:e,maxHeight:t="256px",headerBackgroundColor:o,isLoading:i,columns:r,rows:n,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=St(yo.Ascending),[p,u]=St(""),[h,m]=St({}),g=Et(e=>{u(e),d(e=>e===yo.Ascending?yo.Descending:yo.Ascending)},[]),f=Et((e,t)=>{m(o=>({...o,[e]:t}))},[]),x=wt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...n].sort((t,o)=>{const i=e(t,p),r=e(o,p);return(c===yo.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)))(i,r)}):n).filter(t=>{for(const[o,i]of Object.entries(h))if(i.length&&!i.includes(e(t,o)))return!1;return!0})},[n,p,c,h]),{partiallySelected:y,allSelected:b}=wt(()=>{const e=x.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[x]);return yt(em,{$maxHeight:t,children:bt(tm,{$variant:e,children:[yt(om,{children:yt(pm,{variant:e,backgroundColor:o,columns:r,rowsUnfiltered:n,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:f,withCheckboxes:l,partiallySelected:y,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),x.length?yt(lm,{variant:e,columns:r,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}):yt(Sa,{style:{marginTop:"0.5rem"},children:i?yt(Oh,{withSpinner:!0}):yt(Uh,{})})]})})},hm=zt.div`
2277
+ display: flex;
2278
+ align-items: center;
2279
+ justify-content: center;
2280
+ gap: 8px;
2281
+ width: fit-content;
2282
+ padding: 8px;
2283
+ border-radius: 4px;
2284
+ ${({$disabled:e,$withClick:t})=>e?Lt`
2285
+ cursor: not-allowed;
2286
+ background-color: ${({theme:e})=>e.v2.colors.grey[800]};
2287
+ `:t?Lt`
2288
+ cursor: pointer;
2289
+ background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2290
+ &:hover {
2291
+ background-color: ${({theme:e})=>e.v2.colors.silver[400]};
2292
+ }
2293
+ &:active {
2294
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
2295
+ }
2296
+ `:Lt`
2297
+ background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2298
+ `}
2299
+ `,mm=({label:e,leftIcon:t,rightIcon:o,onClick:i,disabled:r})=>{const n=Pt(),a=r?n.v2.colors.grey[400]:n.v2.colors.white[500];return bt(hm,{$disabled:r,$withClick:!!i,onClick:()=>!r&&i?.(),children:[t&&yt(t,{fill:a,size:16}),yt(hr,{color:a,size:pr.XS,nowrap:!0,children:e}),o&&yt(o,{fill:a,size:16})]})},gm=zt.div`
2300
+ padding: 8px 12px;
2301
+
2302
+ display: flex;
2303
+ align-self: stretch;
2304
+ align-items: flex-start;
2305
+ gap: 8px;
2306
+ border-radius: 6px;
2307
+
2308
+ border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
2309
+ background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
2310
+ ${({$disabled:e,$error:t})=>!e&&!t&&Lt`
2311
+ &:hover,
2312
+ &:active,
2313
+ &:focus-within {
2314
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2315
+ }
2316
+ `}
2317
+ `,fm=zt.textarea`
2318
+ max-width: ${({$maxWidth:e})=>e||"unset"};
2319
+ min-height: ${({$minHeight:e})=>e||"50px"};
2320
+ flex: 1;
2321
+ font-family: ${({theme:e})=>e.font_family.primary};
2322
+ font-size: 14px;
2323
+ font-weight: 400;
2324
+ resize: none;
2325
+
2326
+ background: transparent;
2327
+ border: none;
2328
+ outline: none;
2329
+ cursor: text;
2330
+ color: ${({theme:e})=>e.v2.colors.white[500]};
2331
+ &::placeholder {
2332
+ color: ${({theme:e})=>e.v2.colors.silver[600]};
2333
+ }
2334
+
2335
+ &:disabled {
2336
+ cursor: not-allowed;
2337
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2338
+ &::placeholder {
2339
+ color: ${({theme:e})=>e.v2.colors.grey[400]};
2340
+ }
2341
+ }
2342
+ `,xm=({label:e,required:t,tooltip:o,errorMessage:i,helpMessage:r,name:n,value:a,onChange:s,disabled:l,maxWidth:c,minHeight:d,...p})=>{const u=kt(null),h=()=>{u.current&&(u.current.style.height="auto",u.current.style.height=`${u.current.scrollHeight}px`)};return bt(wa,{$gap:6,children:[yt(Ju,{label:e,tooltip:o,required:t}),yt(gm,{$disabled:l,$error:!!i,children:yt(fm,{ref:u,"data-id":n,name:n,value:a,onChange:e=>{e.stopPropagation(),h(),s?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:h,onBlur:h,disabled:l,$maxWidth:c,$minHeight:d,...p})}),yt(Ku,{errorMessage:i,helpMessage:r})]})};var ym,bm,$m;!function(e){e.Default="default",e.SuccessError="successError"}(ym||(ym={})),function(e){e.S="small",e.L="large"}(bm||(bm={})),function(e){e.Left="left",e.Right="right"}($m||($m={}));const vm=zt.div`
2343
+ display: flex;
2344
+ align-items: center;
2345
+ gap: ${({$gap:e})=>e}px;
2346
+ `,wm=zt.div`
2347
+ position: relative;
2348
+ display: flex;
2349
+ align-items: center;
2350
+ justify-content: space-between;
2351
+
2352
+ width: ${({$size:e})=>2*e+2}px;
2353
+ height: ${({$size:e})=>e}px;
2354
+ padding: ${4}px;
2355
+ border-radius: ${({$size:e})=>2*e}px;
2356
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:i,$value:r,theme:n})=>{if(e)return n.v2.colors.grey[800];if(t&&r)return t;if(o&&!r)return o;switch(i){case ym.SuccessError:return r?n.v2.colors.green[500]:n.v2.colors.red[500];case ym.Default:default:return r?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
2357
+
2358
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2359
+ `,Sm=zt.div`
2360
+ position: absolute;
2361
+ top: 50%;
2362
+ left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
2363
+ transform: translateY(-50%);
2364
+ width: ${({$size:e})=>e}px;
2365
+ height: ${({$size:e})=>e}px;
2366
+ border-radius: 100%;
2367
+ background-color: ${({$color:e})=>e};
2368
+ box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
2369
+ `,Cm=({variant:e=ym.Default,size:t=bm.L,label:o,labelAlign:i=$m.Left,labelColor:r,tooltip:n,value:a,onChange:s,disabled:l,withIcon:c,onIcon:d=He,offIcon:p=Ke,onBgColor:u,offBgColor:h})=>{const m=Pt(),g=l?m.v2.colors.grey[400]:m.v2.colors.white[500],f=t===bm.S?10:16,x=r||m.v2.colors.white[500],y=t===bm.S?pr.XXXS:pr.XS,b=t===bm.S?8:12;return bt(vm,{$gap:b,children:[o&&i===$m.Left&&yt(hr,{color:x,size:y,nowrap:!0,children:o}),bt(wm,{$onBgColor:u,$offBgColor:h,$variant:e,$size:f,$value:a,$disabled:l,onClick:e=>{e.stopPropagation(),l||s(!a)},children:[yt(Sm,{$color:g,$size:f,$value:a,$disabled:l}),c&&bt($t,{children:[yt(d,{size:f,fill:g}),yt(p,{size:f,fill:g})]})]}),o&&i===$m.Right&&yt(hr,{color:x,size:y,nowrap:!0,children:o}),n&&yt(Ka,{text:n,withIcon:!0})]})},km=zt.div`
2370
+ display: flex;
2371
+ flex-direction: ${({$direction:e})=>e===xo.Horizontal?"row":"column"};
2372
+ gap: ${({$direction:e})=>e===xo.Horizontal?16:8}px;
2373
+ `,Em=({direction:e=xo.Vertical,title:t,size:o,disabled:i,options:r,values:n,setValues:a})=>{const s=o===bm.S?pr.XS:pr.S;return bt(km,{$direction:e,children:[t&&yt(hr,{size:s,children:t}),r.map(e=>yt(Cm,{...e,labelAlign:$m.Right,value:n[e.id],onChange:t=>{return o=e.id,i=t,void a(e=>{const t={...e};return o?t[o]=i:r.forEach(e=>t[e.id]=i),t});var o,i},disabled:i,size:o},`${t}-toggle-${e.id}`))]})},Am=zt.div`
2374
+ min-width: 530px;
2375
+ `,Dm=zt.div`
2376
+ display: flex;
2377
+ flex-direction: column;
2378
+ align-items: center;
2379
+ gap: 16px;
2380
+ padding: 24px;
2381
+ `,Tm=zt.div`
2382
+ display: flex;
2383
+ justify-content: center;
2384
+ gap: 16px;
2385
+ padding: 16px 24px;
2386
+ background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2387
+ `,Nm=({visual:e,title:t,description:o,isOpen:i,onClose:r,onDeny:n,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Pt();return yt(Lh,{isOpen:i,onClose:r,...c,children:bt(Am,{children:[bt(Dm,{children:[e&&yt(e,{}),yt(hr,{size:pr.M,weight:500,color:d.v2.colors.white[500],children:t}),yt(wa,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>yt(hr,{size:pr.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(n||s)&&bt(Tm,{children:[yt(Vp,{variant:jp.Secondary,label:a,onClick:()=>{n?.(),r()}}),s&&yt(Vp,{variant:jp.Primary,label:l,onClick:()=>{s(),r()}})]})]})})};export{Qo as $,po as A,Vp as B,du as C,Ua as D,eh as E,wa as F,Ui as G,Zr as H,Zu as I,Fn as J,uo as K,Oh as L,Xr as M,Uh as N,tr as O,Ko as P,er as Q,Su as R,tp as S,Cm as T,si as U,Ch as V,Nm as W,Uo as X,Ka as Y,jo as Z,Go as _,Ju as a,Pp as a$,Yo as a0,Wo as a1,Bo as a2,gr as a3,Hr as a4,yi as a5,vn as a6,Br as a7,Ur as a8,li as a9,mu as aA,hu as aB,Zp as aC,mi as aD,na as aE,$u as aF,ci as aG,ba as aH,um as aI,Zh as aJ,hh as aK,Qh as aL,zi as aM,Fs as aN,Lu as aO,An as aP,vu as aQ,Tu as aR,_u as aS,Vo as aT,$a as aU,Tc as aV,Ul as aW,bs as aX,Sr as aY,Jl as aZ,Ld as a_,Gn as aa,jn as ab,Wr as ac,Gr as ad,wi as ae,eu as af,Vr as ag,ha as ah,da as ai,Io as aj,bm as ak,dr as al,ua as am,pa as an,dn as ao,ni as ap,ri as aq,Co as ar,sn as as,Vn as at,Yn as au,ya as av,Xi as aw,Eu as ax,tn as ay,bu as az,Ku as b,Xa as b$,Gd as b0,Od as b1,Qa as b2,Ks as b3,pp as b4,sp as b5,Kc as b6,qd as b7,Fp as b8,$r as b9,ki as bA,cl as bB,Aa as bC,Da as bD,kd as bE,Si as bF,Ta as bG,Dc as bH,Cl as bI,Up as bJ,Nn as bK,sr as bL,Rn as bM,pn as bN,gl as bO,Mo as bP,ui as bQ,Ai as bR,vi as bS,$p as bT,Un as bU,di as bV,so as bW,ti as bX,ao as bY,Mn as bZ,Zn as b_,en as ba,fd as bb,Hc as bc,fs as bd,Ln as be,Ci as bf,jr as bg,Gs as bh,Uc as bi,gi as bj,So as bk,nn as bl,cr as bm,Ma as bn,Ea as bo,ss as bp,Lr as bq,Zd as br,fi as bs,Js as bt,No as bu,Qi as bv,Li as bw,rn as bx,no as by,rl as bz,Ao as c,fo as c$,Ca as c0,mp as c1,Qn as c2,Yi as c3,Zl as c4,ai as c5,ea as c6,Xn as c7,mn as c8,ii as c9,vl as cA,Sl as cB,nh as cC,Hi as cD,ir as cE,oa as cF,Lo as cG,wo as cH,gc as cI,bi as cJ,xa as cK,sl as cL,xi as cM,pc as cN,Yr as cO,hi as cP,ws as cQ,Oi as cR,tl as cS,Ts as cT,lo as cU,Fo as cV,go as cW,zo as cX,Ro as cY,vo as cZ,To as c_,Ls as ca,Zs as cb,ko as cc,Zi as cd,Jn as ce,ji as cf,eo as cg,Zo as ch,Dp as ci,Rc as cj,Ti as ck,Ip as cl,an as cm,qn as cn,gs as co,Sn as cp,Bi as cq,Bn as cr,Oo as cs,Mr as ct,Ll as cu,Qs as cv,Dd as cw,Pi as cx,Wi as cy,Ys as cz,ph as d,uu as d$,xo as d0,mo as d1,Po as d2,$o as d3,Jo as d4,Ho as d5,Xo as d6,_o as d7,ei as d8,qo as d9,Dn as dA,wn as dB,bn as dC,ra as dD,la as dE,ca as dF,Pn as dG,Nl as dH,El as dI,Xc as dJ,ud as dK,ad as dL,yd as dM,Sd as dN,ol as dO,Hd as dP,ka as dQ,Zc as dR,Na as dS,xr as dT,yr as dU,br as dV,Eh as dW,kh as dX,Th as dY,Kp as dZ,qp as d_,yo as da,ho as db,to as dc,pi as dd,$i as de,Ei as df,Di as dg,Ni as dh,Ii as di,_i as dj,Ri as dk,Fi as dl,Mi as dm,Vi as dn,Ji as dp,qi as dq,or as dr,rr as ds,nr as dt,ar as du,lr as dv,Jr as dw,Kr as dx,qr as dy,$n as dz,$m as e,su as e0,ih as e1,Lh as e2,Mh as e3,Kh as e4,Yh as e5,Xh as e6,Cu as e7,mm as e8,Em as e9,ym as ea,ah as f,va as g,Wp as h,Gi as i,jp as j,Eo as k,co as l,bo as m,ro as n,Sa as o,Vu as p,pr as q,au as r,Vh as s,Do as t,aa as u,hr as v,oi as w,iu as x,xm as y,io as z};