@odigos/ui-kit 0.0.209 → 0.0.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2387 @@
1
+ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon as n,DeleteAttributeIcon as o,AddClusterInfoIcon as r,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 $,PhpLogo as x,CPlusPlusLogo as f,CSharpLogo as b,DotnetLogo as y,PythonLogo as w,NodejsLogo as v,GoLogo as C,JavaLogo as k,AwsXrayLogo as E,VictoriaMetricsLogo as S,UptraceLogo as A,TraceloopLogo as T,TingyunLogo as D,TempoLogo as I,TelemetryHubLogo as N,SumoLogicLogo as O,SplunkLogo as z,SignozLogo as F,SeqLogo as _,AwsS3Logo as R,QuickwitLogo as B,GigapipeLogo as M,QrynLogo as L,PrometheusLogo as P,OpenTelemetryLogo as j,OracleLogo as U,OpsVerseLogo as W,OpenObserveLogo as V,OneUptimeLogo as G,OdigosLogo as q,ObserveLogo as H,NewRelicLogo as K,MiddlewareLogo as Y,LumigoLogo as J,LokiLogo as X,LogzioLogo as Z,LightstepLogo as Q,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as ie,InstanaLogo as ne,HyperDxLogo as oe,HoneycombLogo as re,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 $e,ClickhouseLogo as xe,ChronosphereLogo as fe,ChecklyLogo as be,CauselyLogo as ye,BonreeLogo as we,BetterStackLogo as ve,AzureMonitorLogo as Ce,AzureBlobLogo as ke,AxiomLogo as Ee,AppDynamicsLogo as Se,AlibabaCloudLogo as Ae,AlaudaLogo as Te,InstrumentationRuleIcon as De,DestinationIcon as Ie,SourceIcon as Ne,NamespacesIcon as Oe,PayloadCollectionIcon as ze,HeadersCollectionIcon as Fe,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as Ge,ISquareIcon as qe,VIcon as He,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,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 $t}from"../icons.js";import{create as xt}from"zustand";import{jsx as ft,jsxs as bt,Fragment as yt}from"react/jsx-runtime";import{Fragment as wt,useMemo as vt,useState as Ct,useEffect as kt,useRef as Et,useCallback as St,useContext as At,createContext as Tt,forwardRef as Dt,memo as It}from"react";import Nt from"javascript-time-ago";import{p as Ot,c as zt,s as Ft,e as _t}from"./vendor-D99eCWta.js";import Rt,{css as Bt,useTheme as Mt,ThemeProvider as Lt,keyframes as Pt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlowProvider as Wt,ReactFlow as Vt,Controls as Gt,useReactFlow as qt}from"@xyflow/react";import Ht,{createPortal as Kt}from"react-dom";import{Highlight as Yt,themes as Jt}from"prism-react-renderer";import{ErrorBoundary as Xt}from"react-error-boundary";import Zt from"lottie-react";import{VList as Qt}from"virtua";const ei=e=>e.charAt(0).toUpperCase()+e.slice(1),ti=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ii;!function(e){e.SIGNALS="SIGNALS"}(ii||(ii={}));const ni=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ii.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n||e.key===n);if(!a)return!1;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},oi=e=>JSON.parse(JSON.stringify(e)),ri=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},ai=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},si=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,Ci,ki,Ei,Si,Ai,Ti,Di,Ii,Ni,Oi,zi,Fi,_i,Ri,Bi,Mi,Li,Pi,ji,Ui,Wi,Vi,Gi,qi,Hi,Ki,Yi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(li||(li={})),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"}(ci||(ci={})),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"}(di||(di={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(ui||(ui={})),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"}(hi||(hi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(mi||(mi={})),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"}(gi||(gi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}($i||($i={})),function(e){e.Ascending="ascending",e.Descending="descending"}(xi||(xi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(fi||(fi={})),function(e){e.K8s="k8s",e.Vm="vm"}(bi||(bi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(yi||(yi={})),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"}(wi||(wi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(vi||(vi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(Ci||(Ci={})),function(e){e.DataStream="DataStream"}(ki||(ki={})),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"}(Ei||(Ei={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Si||(Si={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Ai||(Ai={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Ti||(Ti={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Di||(Di={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ii||(Ii={})),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"}(Ni||(Ni={})),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"}(Oi||(Oi={})),function(e){e.Labeled="labeled"}(zi||(zi={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Fi||(Fi={})),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"}(_i||(_i={})),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"}(Ri||(Ri={})),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"}(Bi||(Bi={})),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"}(Mi||(Mi={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Li||(Li={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Pi||(Pi={})),function(e){e.HeaderKeys="headerKeys"}(ji||(ji={})),function(e){e.Java="java",e.Golang="golang"}(Ui||(Ui={}));class Ji{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 Xi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(Wi||(Wi={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Vi||(Vi={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Gi||(Gi={})),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"}(qi||(qi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Hi||(Hi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Ki||(Ki={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Yi||(Yi={}));const Zi={[Ki.Logs]:Yi.Logs,[Ki.Metrics]:Yi.Metrics,[Ki.Traces]:Yi.Traces},Qi={[Yi.Logs]:Ki.Logs,[Yi.Metrics]:Ki.Metrics,[Yi.Traces]:Ki.Traces},en=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Ai.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},tn="https://docs.odigos.io",nn="default",on={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},rn={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)'},an={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"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."},sn={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"},ln=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===nn&&!e.dataStreamNames.length):[],cn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?cn(e,n,i):i[n]=e}):i[r]=o:cn(o,r,i)}return i},dn=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]}`},pn=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`}},un=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},hn=l=>{const c=l?.toLowerCase(),d=c?.includes(li.Samplers),p=c===li.Attributes;return d?e:p?t:{[ci.K8sAttributes]:a,[ci.AddClusterInfo]:r,[ci.DeleteAttributes]:o,[ci.PiiMasking]:t,[ci.RenameAttributes]:n,[ci.URLTemplatization]:i,[ci.ErrorSampler]:e,[ci.ProbabilisticSampler]:e,[ci.LatencySampler]:e,[ci.ServiceNameSampler]:e,[ci.SpanAttributeSampler]:e}[l]||s},mn=e=>{const t=e?.filter(({status:e})=>e===Ai.Error),i=e?.filter(({status:e})=>e===Ai.Warning),n=e?.filter(({status:e})=>e===Di.Disabled),o=e?.filter(({status:e})=>e===Di.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Ai.Error:a?Ai.Warning:s?Ai.Info:void 0}},gn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},$n=e=>({[wi.Java]:k,[wi.Go]:C,[wi.JavaScript]:v,[wi.Python]:w,[wi.DotNet]:y,[wi.CSharp]:b,[wi.CPlusPlus]:f,[wi.Php]:x,[wi.Ruby]:$,[wi.Rust]:g,[wi.Swift]:m,[wi.Elixir]:h,[wi.MySql]:u,[wi.Nginx]:p,[wi.Postgres]:d,[wi.Redis]:c,[wi.Kafka]:l,[wi.Ignored]:s,[wi.Unknown]:s,[wi.Processing]:s,[wi.NoContainers]:s,[wi.NoRunningPods]:s}[e]||s),xn=e=>e?.map(({language:e})=>$n(e))||[],fn=e=>e?.map(e=>$n(e))||[],bn=e=>e.detectedLanguages?.length?fn(e.detectedLanguages):xn(e.containers),yn=(e,t)=>{const i={[_i.Alauda]:Te,[_i.AlibabaCloud]:Ae,[_i.AppDynamics]:Se,[_i.Axiom]:Ee,[_i.AzureBlob]:ke,[_i.AzureMonitor]:Ce,[_i.BetterStack]:ve,[_i.Bonree]:we,[_i.Causely]:ye,[_i.Checkly]:be,[_i.Chronosphere]:fe,[_i.ClickHouse]:xe,[_i.CloudWatch]:$e,[_i.Coralogix]:ge,[_i.Dash0]:me,[_i.Datadog]:he,[_i.Dynamic]:j,[_i.Dynatrace]:ue,[_i.ElasticApm]:pe,[_i.ElasticSearch]:de,[_i.GoogleCloud]:ce,[_i.GoogleCloudOTLP]:ce,[_i.GrafanaCloudLoki]:le,[_i.GrafanaCloudPrometheus]:le,[_i.GrafanaCloudTempo]:le,[_i.Greptime]:se,[_i.Groundcover]:ae,[_i.Honeycomb]:re,[_i.HyperDX]:oe,[_i.Instana]:ne,[_i.Jaeger]:ie,[_i.Kafka]:l,[_i.Kloudmate]:te,[_i.Last9]:ee,[_i.Lightstep]:Q,[_i.LogzIo]:Z,[_i.Loki]:X,[_i.Lumigo]:J,[_i.Middleware]:Y,[_i.NewRelic]:K,[_i.Observe]:H,[_i.Odigos]:q,[_i.OneUptime]:G,[_i.OpenObserve]:V,[_i.Opsverse]:W,[_i.Oracle]:U,[_i.OTLP]:j,[_i.OTLPHttp]:j,[_i.Prometheus]:P,[_i.Qryn]:L,[_i.QrynOss]:M,[_i.Quickwit]:B,[_i.S3]:R,[_i.Seq]:_,[_i.Signalfx]:z,[_i.Signoz]:F,[_i.Splunk]:z,[_i.SplunkSapm]:z,[_i.SplunkOtlp]:z,[_i.SumoLogic]:O,[_i.TelemetryHub]:N,[_i.Tempo]:I,[_i.Tingyun]:D,[_i.Traceloop]:T,[_i.Uptrace]:A,[_i.VictoriaMetrics]:S,[_i.VictoriaMetricsCloud]:S,[_i.XRay]:E}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},wn=e=>({[Ci.Namespace]:Oe,[Ci.Source]:Ne,[Ci.Destination]:Ie,[Ci.Action]:i,[Ci.InstrumentationRule]:De}[e]),vn=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,Cn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case Ci.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case Ci.Source:const i=e;r=i.name,a=i.otelServiceName;break;case Ci.Action:const n=e;r=n.type,a=n.name;break;case Ci.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case Ci.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},kn=(e,t)=>{if(t===Ci.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},En=e=>({[Li.CodeAttributes]:Re,[Li.CustomInstrumentation]:_e,[Li.HeadersCollection]:Fe,[Li.PayloadCollection]:ze,[Li.UnknownType]:s}[e]||s),Sn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?wi.Processing:wi.NoRunningPods;const n=i?.filter(e=>e.language!==wi.Ignored);if(!n.length)return wi.NoContainers;const o=n.find(e=>e.language!==wi.Unknown);return o?o.language:wi.Unknown},An=(e,t,i)=>(t===Ci.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Tn=e=>({[Ki.Logs]:Le,[Ki.Metrics]:Me,[Ki.Traces]:Be}[e]),Dn=e=>e?{[bi.K8s]:a,[bi.Vm]:Pe}[e]:q,In=e=>e?{[bi.K8s]:"Kubernetes Cluster",[bi.Vm]:"Virtual Machine"}[e]:"Unknown",Nn=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...Nn(e,t,i)),o}):[]},On=(e,t)=>{if(t===Ci.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},zn=(e,t,i)=>{switch(t){case Ai.Default:return e.v2.colors.purple[i];case Ai.Info:return e.v2.colors.blue[i];case Ai.Error:return e.v2.colors.red[i];case Ai.Warning:return e.v2.colors.yellow[i];case Ai.Success:return e.v2.colors.green[i];case Ii.Disabled:case Ii.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},Fn=e=>{switch(e){case Vi.Updating:case Gi.Pending:case qi.ContainerCreating:case Hi.Waiting:return Ai.Info;case Vi.Healthy:case Gi.Succeeded:case Gi.Running:case qi.Running:case Hi.Running:return Ai.Success;case Vi.Degraded:return Ai.Warning;case Vi.Failed:case Gi.Failed:case qi.Error:case qi.CrashLoopBackOff:case qi.CreateContainerError:case qi.CreateContainerConfigError:case qi.ErrImagePull:case qi.ErrImageNeverPull:case qi.ImagePullBackOff:case qi.InvalidImageName:case qi.RegistryUnavailable:case qi.NetworkNotReady:case qi.OOMKilled:case qi.ContainerCannotRun:case Hi.Terminated:case qi.DeadlineExceeded:case qi.StartError:return Ai.Error;case Vi.Down:case qi.Completed:return Ii.Disabled;case Vi.Unknown:case Gi.Unknown:default:return Ii.Unknown}},_n=(e,t)=>({[Ai.Default]:i=>q({fill:zn(t,e,"300"),...i}),[Ai.Info]:i=>qe({fill:zn(t,e,"400"),...i}),[Ai.Error]:i=>Ge({fill:zn(t,e,"500"),...i}),[Ai.Warning]:i=>Ve({fill:zn(t,e,"500"),...i}),[Ai.Success]:i=>We({fill:zn(t,e,"500"),...i}),[Ii.Disabled]:i=>Ue({fill:zn(t,e,"400"),...i}),[Ii.Unknown]:i=>je({fill:zn(t,e,"300"),...i})}[e]),Rn=e=>{switch(e){case Mi.Success:return Ai.Success;case Mi.Error:case Mi.Failure:return Ai.Error;case Mi.Notice:return Ai.Warning;case Mi.Unsupported:case Mi.Unknown:return Ai.Info;case Mi.Irrelevant:case Mi.Disabled:return Di.Disabled;case Mi.Waiting:return Di.Loading;case Mi.Pending:default:return Ai.Default}},Bn=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Mn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function Ln(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Pn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Ln(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},jn=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Ai.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Un=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Wn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Vn=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},Gn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},qn=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Hn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Kn=e=>Hn.test(e),Yn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Jn=e=>e?.map(({status:e,type:t,reason:i,message:n})=>({status:e,type:Yn(t),reason:i?Yn(i):"",message:n}))||[],Xn=(e,t)=>{const i=Ln(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Zn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qi[e]):[],Qn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qi[e]):[],eo=e=>e.replace(/[^\d]/g,""),to=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},io=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},no=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>no(e)))}else if("object"==typeof n&&null!==n){const e=no(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},oo=(e,t=2)=>JSON.stringify(e||{},null,t),ro=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),ao=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),so=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var lo,co;!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"}(lo||(lo={})),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"}(co||(co={}));const po=Rt.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:i})=>t||`${e.v2.text.size[i]+2}px`};
10
+ opacity: ${({$opacity:e})=>e};
11
+
12
+ ${({$nowrap:e})=>e&&Bt`
13
+ text-wrap: nowrap;
14
+ white-space: nowrap;
15
+ overflow: hidden;
16
+ text-overflow: ellipsis;
17
+ `}
18
+
19
+ ${({$underline:e})=>e&&Bt`
20
+ text-decoration: underline;
21
+ `}
22
+
23
+ ${({$withClick:e})=>e&&Bt`
24
+ cursor: pointer;
25
+ &:hover {
26
+ text-decoration: underline;
27
+ }
28
+ `}
29
+ `,uo=({children:e,variant:t=lo.P,color:i,size:n=co.S,weight:o=400,opacity:r=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return ft(po,{as:t,$color:i,$size:n,$weight:o,$opacity:r,$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(wt,{children:[e,t!==m.length-1&&ft("br",{})]},`typography-${t}-${e}`))})},ho=Rt.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
+ `,mo=({label:e,leftIcon:t,rightIcon:i,status:n=Ii.Unknown,useSecondaryTone:o=!1,invertColors:r=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Mt(),p=e?.toString(),u=n?[Ii.Disabled].includes(n)?zn(d,n,r?"400":"700"):[Ii.Unknown].includes(n)?zn(d,n,"600"):zn(d,n,r?o?"400":"300":o?"700":"500"):d.v2.colors.grey[200],h=s||(r&&![Ii.Unknown].includes(n)?u:[Ii.Disabled].includes(n)?d.v2.colors.grey[400]:[Ai.Error,Ai.Warning,Ai.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),m=l||(r&&![Ii.Unknown].includes(n)?[Ii.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:u);return bt(ho,{$backgroundColor:m,$minWidth:c,$hasLabel:!!p,children:[t&&ft(t,{fill:h,size:14}),p&&ft(uo,{color:h,size:a||co.XXS,nowrap:!0,children:p}),i&&ft(i,{fill:h,size:14})]})},go=Rt.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
+ `,$o=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})},xo=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},fo=(e,t)=>{const i=$o(e);i?.forEach((t,i)=>{e=e.replace(t.original,`LINK-${i}###`)});const n=xo(e);return n?.forEach((t,i)=>{e=e.replace(t.original,`STRONG-${i}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,o]=e.split("###"),r=i?.[parseInt(n.replace("LINK-",""))];return bt(wt,{children:[ft("a",{href:r?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:r?.label}),o?`${o} `:" "]},e)}if(e.includes("STRONG-")){const[t,i]=e.split("###"),o=n?.[parseInt(t.replace("STRONG-",""))];return bt(wt,{children:[ft("strong",{style:{fontWeight:600},children:o?.label}),i?`${i} `:" "]},e)}return e+" "})},bo=({children:e,color:t,size:i,weight:n,align:o,family:r,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Mt(),u=vt(()=>(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 ft(go,{$color:t,$size:i,$weight:n,$align:o,$family:r,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>bt(wt,{children:[fo(e,p),t!==u.length-1?ft("br",{}):null]},`text-${t}-${e}`)):e})},yo=Rt.div`
51
+ padding: 4px 0 0 0;
52
+ `,wo=Rt(bo)`
53
+ font-size: 12px;
54
+ color: ${({theme:e})=>e.text.error};
55
+ `,vo=({children:e})=>ft(yo,{children:ft(wo,{children:e})}),Co=Rt.div`
56
+ position: relative;
57
+ width: 100%;
58
+ `,ko=Rt.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
+ `,Eo=Rt.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
+ `,So=Rt.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
+ `,Ao=Rt.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
+ `,To=Rt.div`
120
+ width: 100%;
121
+ `,Do=Rt.div`
122
+ display: flex;
123
+ width: 100%;
124
+ `,Io=Rt.div`
125
+ width: 1px;
126
+ height: 52px;
127
+ background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
128
+ position: absolute;
129
+ left: 33px;
130
+ `,No=Rt.div`
131
+ display: flex;
132
+ flex-direction: column;
133
+ gap: 4px;
134
+ `,Oo=Rt(bo)`
135
+ flex: 1;
136
+ font-size: 14px;
137
+ `,zo=Rt(bo)`
138
+ color: ${({theme:e})=>e.text.grey};
139
+ font-size: 10px;
140
+ line-height: 150%;
141
+ `,Fo=Rt.ul`
142
+ padding-left: 0px;
143
+ margin: 4px 0 0 0;
144
+ list-style: none;
145
+ width: 100%;
146
+ `,_o=(e,t)=>t?e.reduce((e,i)=>{if(i.items){const n=_o(i.items,t);n.length&&e.push({...i,items:n})}else i.label.toLowerCase().includes(t.toLowerCase())&&e.push(i);return e},[]):e,Ro=({placeholder:e="Type to search...",options:t,selectedOption:i,onOptionSelect:n,defaultText:o,onTextChange:r,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=Ct(i?.label||o||""),[u,h]=Ct(_o(t,d)),[m,g]=Ct(!1);Ct(-1),kt(()=>h(_o(t,d)),[t]);const $=i?.icon,x=e=>{e&&(p(e.label),r?.(e.label)),g(!e),n?.(e)};return bt(Co,{style:a,children:[bt(ko,{$hasError:!!l,children:[$&&ft($,{}),ft(Eo,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const i=e.target.value,n=_o(t,i),o=1===n.length&&n[0].label===i?n[0]:void 0;p(i),r?.(i),h(n),x(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?ft(So,{children:u.map(e=>ft(Bo,{option:e,onClick:x},e.type||e.label))}):null,l&&ft(vo,{children:l})]})},Bo=({option:e,renderIcon:t=!0,onClick:i})=>{const n=!!e.items&&e.items.length>0,o=e.icon;return bt(Ao,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:i(e),children:[o&&t&&ft(o,{}),bt(To,{children:[bt(No,{children:[ft(Oo,{children:e.label}),ft(zo,{children:e.description})]}),n&&ft(Fo,{children:e.items?.map(e=>bt(Do,{children:[ft(Io,{}),ft(Bo,{option:e,renderIcon:!1,onClick:i})]},e.type||e.label))})]})]})},Mo=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Lo=[{type:ci.K8sAttributes,icon:hn(ci.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:ci.AddClusterInfo,icon:hn(ci.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.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:ci.DeleteAttributes,icon:hn(ci.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.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:ci.RenameAttributes,icon:hn(ci.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Ki.Traces,Ki.Metrics,Ki.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:ci.PiiMasking,icon:hn(ci.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Ki.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:ci.URLTemplatization,icon:hn(ci.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[Ki.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:so("v1.21.0")}],Po=[{type:ci.ErrorSampler,icon:hn(li.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Ki.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:ci.LatencySampler,icon:hn(li.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Ki.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:ci.ProbabilisticSampler,icon:hn(li.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Ki.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:ci.ServiceNameSampler,icon:hn(li.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Ki.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:ci.SpanAttributeSampler,icon:hn(li.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Ki.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."}],jo=[{label:"Attributes",icon:hn(li.Attributes),items:Lo},{label:"Samplers",icon:hn(li.Samplers),items:Po}];var Uo;!function(e){e.ALL="all",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Uo||(Uo={}));const Wo={[Uo.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Uo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Uo.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."},[Uo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Uo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Vo=[{type:Li.CodeAttributes,icon:En(Li.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:[wi.Go,wi.Python]},{type:Li.CustomInstrumentation,icon:En(Li.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:[wi.Go,wi.Java]},{type:Li.HeadersCollection,icon:En(Li.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:[wi.Go,wi.Java,wi.JavaScript]},{type:Li.PayloadCollection,icon:En(Li.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:[wi.Go]}],Go=[{id:Ki.Logs,value:"Logs"},{id:Ki.Metrics,value:"Metrics"},{id:Ki.Traces,value:"Traces"}],qo={[wi.Go]:"Go",[wi.Java]:"Java",[wi.JavaScript]:"Node.js",[wi.Python]:"Python",[wi.DotNet]:".NET",[wi.CSharp]:"C#",[wi.CPlusPlus]:"C++",[wi.Php]:"PHP",[wi.Ruby]:"Ruby",[wi.Rust]:"Rust",[wi.Swift]:"Swift",[wi.Elixir]:"Elixir",[wi.MySql]:"MySQL",[wi.Nginx]:"Nginx",[wi.Postgres]:"PostgreSQL",[wi.Redis]:"Redis",[wi.Kafka]:"Kafka",[wi.Ignored]:"Ignored",[wi.Unknown]:"Unknown",[wi.Processing]:"Processing",[wi.NoContainers]:"No Containers",[wi.NoRunningPods]:"No Running Pods"},Ho=[{id:wi.Go,value:qo[wi.Go],icon:$n(wi.Go)},{id:wi.Java,value:qo[wi.Java],icon:$n(wi.Java)},{id:wi.JavaScript,value:qo[wi.JavaScript],icon:$n(wi.JavaScript)},{id:wi.Python,value:qo[wi.Python],icon:$n(wi.Python)},{id:wi.Php,value:qo[wi.Php],icon:$n(wi.Php)},{id:wi.Ruby,value:qo[wi.Ruby],icon:$n(wi.Ruby)},{id:wi.Rust,value:qo[wi.Rust],icon:$n(wi.Rust)},{id:wi.DotNet,value:qo[wi.DotNet],icon:$n(wi.DotNet)},{id:wi.CSharp,value:qo[wi.CSharp],icon:$n(wi.CSharp)},{id:wi.CPlusPlus,value:qo[wi.CPlusPlus],icon:$n(wi.CPlusPlus)},{id:wi.Swift,value:qo[wi.Swift],icon:$n(wi.Swift)},{id:wi.Elixir,value:qo[wi.Elixir],icon:$n(wi.Elixir)}],Ko={[wi.Go]:{community:[{id:Bi.GolangCommunity,value:Bi.GolangCommunity,icon:$n(wi.Go)}],enterprise:[{id:Bi.GolangEnterprise,value:Bi.GolangEnterprise,icon:$n(wi.Go)}]},[wi.JavaScript]:{community:[{id:Bi.NodejsCommunity,value:Bi.NodejsCommunity,icon:$n(wi.JavaScript)}],enterprise:[{id:Bi.NodejsEnterprise,value:Bi.NodejsEnterprise,icon:$n(wi.JavaScript)}]},[wi.Python]:{community:[{id:Bi.PythonCommunity,value:Bi.PythonCommunity,icon:$n(wi.Python)}],enterprise:[{id:Bi.PythonEnterprise,value:Bi.PythonEnterprise,icon:$n(wi.Python)}]},[wi.Java]:{community:[{id:Bi.JavaCommunity,value:Bi.JavaCommunity,icon:$n(wi.Java)}],enterprise:[{id:Bi.JavaEnterprise,value:Bi.JavaEnterprise,icon:$n(wi.Java)},{id:Bi.JavaEbpfInstrumentations,value:Bi.JavaEbpfInstrumentations,icon:$n(wi.Java)}]},[wi.DotNet]:{community:[{id:Bi.DotNetCommunity,value:Bi.DotNetCommunity,icon:$n(wi.DotNet)}],enterprise:[{id:Bi.DotNetEnterprise,value:Bi.DotNetEnterprise,icon:$n(wi.DotNet)}]},[wi.Ruby]:{community:[{id:Bi.RubyCommunity,value:Bi.RubyCommunity,icon:$n(wi.Ruby)}],enterprise:[{id:Bi.RubyEnterprise,value:Bi.RubyEnterprise,icon:$n(wi.Ruby)}]},[wi.Php]:{community:[{id:Bi.PhpCommunity,value:Bi.PhpCommunity,icon:$n(wi.Php)}],enterprise:[]},[wi.CSharp]:{community:[],enterprise:[{id:Bi.CPlusPlusEnterprise,value:Bi.CPlusPlusEnterprise,icon:$n(wi.CSharp)}]},[wi.MySql]:{community:[],enterprise:[{id:Bi.MySqlEnterprise,value:Bi.MySqlEnterprise,icon:$n(wi.MySql)}]},[wi.CPlusPlus]:{community:[],enterprise:[]},[wi.Rust]:{community:[],enterprise:[]},[wi.Swift]:{community:[],enterprise:[]},[wi.Elixir]:{community:[],enterprise:[]},[wi.Nginx]:{community:[],enterprise:[]},[wi.Postgres]:{community:[],enterprise:[]},[wi.Redis]:{community:[],enterprise:[]},[wi.Kafka]:{community:[],enterprise:[]},[wi.Ignored]:{community:[],enterprise:[]},[wi.Unknown]:{community:[],enterprise:[]},[wi.Processing]:{community:[],enterprise:[]},[wi.NoContainers]:{community:[],enterprise:[]},[wi.NoRunningPods]:{community:[],enterprise:[]}},Yo=6048e5,Jo=xt()(Ot(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:on.DARK_MODE,storage:"undefined"!=typeof window?zt(()=>localStorage):void 0})),Xo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Zo=xt(e=>({...Xo,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Xo)})),Qo=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),er=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,i)=>{const n=t===Ci.Namespace?"namespacesLoading":t===Ci.Source?"sourcesLoading":t===Ci.Destination?"destinationsLoading":t===Ci.Action?"actionsLoading":t===Ci.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:i})},setEntities:(t,i)=>{const n=t===Ci.Namespace?"namespaces":t===Ci.Source?"sources":t===Ci.Destination?"destinations":t===Ci.Action?"actions":t===Ci.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:i})},addEntities:(t,i)=>{const n=t===Ci.Namespace?"namespaces":t===Ci.Source?"sources":t===Ci.Destination?"destinations":t===Ci.Action?"actions":t===Ci.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(JSON.stringify(vn(e)),t)}),i.forEach(e=>{const i=JSON.stringify(vn(e)),n=o.get(i);void 0!==n?t[n]={...t[n],...e}:(o.set(i,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,i)=>{const n=t===Ci.Namespace?"namespaces":t===Ci.Source?"sources":t===Ci.Destination?"destinations":t===Ci.Action?"actions":t===Ci.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const o=new Set;i.forEach(e=>{const i=t===Ci.Source?JSON.stringify(vn(e)):String(e);o.add(i)});const r=e[n].filter(e=>{const i=t===Ci.Source?JSON.stringify(vn(e)):String(vn(e));return!o.has(i)});return{[n]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),tr=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),ir=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:tr})),nr=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),or=xt((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,o=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:o,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var rr;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(rr||(rr={}));const ar=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),sr=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),lr=xt((e,t)=>({progress:{},setProgress:(i,n)=>{const o=t(),r=ar();return"number"==typeof n.total&&(r.total=n.total),"number"==typeof n.current&&(r.current=n.current),Array.isArray(n.list)&&(r.list=n.list),e({progress:{...o.progress,[i]:sr(r)}})},addProgress:(i,n,o)=>{const r=t(),a=ar(i,r.progress);return a.current+=n,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...r.progress,[i]:sr(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),cr=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),dr={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},pr=(e,t)=>e.destinationType.type!==t.destinationType.type,ur=xt(e=>({...dr,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=>pr(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>pr(e,t))})),clearStore:()=>e(()=>({...dr}))})),hr={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"}},mr={v2:hr.v2,darkMode:!0,colors:{...hr.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:hr.font_family},gr={v2:hr.v2,darkMode:!1,colors:{...hr.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:hr.font_family},$r=e=>e?mr:gr;var xr=Object.freeze({__proto__:null,baseTheme:hr,darkModeTheme:mr,getTheme:$r,lightModeTheme:gr});Ft('@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 fr=({children:e})=>{const{darkMode:t}=Jo();return ft(Lt,{theme:$r(t),children:e})},br={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 yr=Object.freeze({__proto__:null,hex:br});const wr={in:{left:Pt`
147
+ from { transform: translateX(-100%); }
148
+ to { transform: translateX(0); }
149
+ `,right:Pt`
150
+ from { transform: translateX(100%); }
151
+ to { transform: translateX(0); }
152
+ `,top:Pt`
153
+ from { transform: translateY(-100%); }
154
+ to { transform: translateY(0); }
155
+ `,bottom:Pt`
156
+ from { transform: translateY(100%); }
157
+ to { transform: translateY(0); }
158
+ `,center:Pt`
159
+ from { transform: translate(-50%, 100%); }
160
+ to { transform: translate(-50%, -50%); }
161
+ `},out:{left:Pt`
162
+ from { transform: translateX(0); }
163
+ to { transform: translateX(-100%); }
164
+ `,right:Pt`
165
+ from { transform: translateX(0); }
166
+ to { transform: translateX(100%); }
167
+ `,top:Pt`
168
+ from { transform: translateY(0); }
169
+ to { transform: translateY(-100%); }
170
+ `,bottom:Pt`
171
+ from { transform: translateY(0); }
172
+ to { transform: translateY(100%); }
173
+ `,center:Pt`
174
+ from { transform: translate(-50%, -50%); }
175
+ to { transform: translate(-50%, 100%); }
176
+ `}},vr={in:Pt`
177
+ from {
178
+ width: 0%;
179
+ }
180
+ to {
181
+ width: 100%;
182
+ }
183
+ `,out:Pt`
184
+ from {
185
+ width: 100%;
186
+ }
187
+ to {
188
+ width: 0%;
189
+ }
190
+ `},Cr=Pt`
191
+ 0% {
192
+ transform: scale(1);
193
+ opacity: 1;
194
+ }
195
+ 75%, 100% {
196
+ transform: scale(2);
197
+ opacity: 0;
198
+ }
199
+ `,kr=Pt`
200
+ 0% {
201
+ background-position: -500px 0;
202
+ }
203
+ 100% {
204
+ background-position: 500px 0;
205
+ }
206
+ `,Er={in:Pt`
207
+ from {
208
+ opacity: 0;
209
+ }
210
+ to {
211
+ opacity: 1;
212
+ }
213
+ `,out:Pt`
214
+ from {
215
+ opacity: 1;
216
+ }
217
+ to {
218
+ opacity: 0;
219
+ }
220
+ `};var Sr=Object.freeze({__proto__:null,fade:Er,ping:Cr,progress:vr,shimmer:kr,slide:wr});const Ar=Rt.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:i})=>i?e.text[i]+(t?"":br["050"]):t?"transparent":e.colors.border};
233
+ background-color: ${({theme:e,$filled:t,$status:i})=>t?i?e.colors[i]:e.colors.majestic_blue:"transparent"};
234
+ color: ${({theme:e,$filled:t,$status:i})=>t&&i?e.text.secondary:t?e.text.white:i?e.text[i]: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:i,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${i?e.colors[i]+br["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+br["020"]};\n }`}
240
+ `,Tr=({label:e,filled:t,status:i,withIcon:n,onClick:o})=>{const r=Mt(),a=i&&n?_n(i,r):null;return bt(Ar,{$filled:t,$status:i,$clickable:!!o,onClick:o,children:[!!a&&ft(a,{}),e]})},Dr=Rt.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
+ `,Ir={primary:Bt`
251
+ border: 1px solid ${({theme:e})=>e.text.secondary+br["024"]};
252
+ background: ${({theme:e})=>e.colors.secondary};
253
+ color: ${({theme:e})=>e.colors.primary};
254
+ &:hover {
255
+ background: ${({theme:e})=>e.colors.secondary+br["080"]};
256
+ }
257
+ &:active {
258
+ background: ${({theme:e})=>e.text.secondary+br["060"]};
259
+ }
260
+ `,secondary:Bt`
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+br["010"]};
267
+ }
268
+ &:active {
269
+ border: 1px solid ${({theme:e})=>e.text.dark_grey};
270
+ background: ${({theme:e})=>e.colors.secondary+br["015"]};
271
+ }
272
+ `,tertiary:Bt`
273
+ border-color: transparent;
274
+ background: transparent;
275
+ &:hover {
276
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+br["040"]};
277
+ }
278
+ &:active {
279
+ background: ${({theme:e})=>e.colors.dropdown_bg_2};
280
+ }
281
+ `,danger:Bt`
282
+ border-color: transparent;
283
+ background: ${({theme:e})=>e.text.error};
284
+ &:hover {
285
+ background: ${({theme:e})=>e.text.error+br["090"]};
286
+ }
287
+ &:active {
288
+ background: ${({theme:e})=>e.text.error+br["080"]};
289
+ }
290
+ `,warning:Bt`
291
+ border-color: transparent;
292
+ background: ${({theme:e})=>e.text.warning};
293
+ &:hover {
294
+ background: ${({theme:e})=>e.text.warning+br["090"]};
295
+ }
296
+ &:active {
297
+ background: ${({theme:e})=>e.text.warning+br["080"]};
298
+ }
299
+ `},Nr=Rt.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&&Ir[e]}
314
+ ${({disabled:e,$variant:t})=>e&&Bt`
315
+ opacity: 0.5;
316
+ cursor: not-allowed;
317
+
318
+ ${"primary"===t?Bt`
319
+ color: ${({theme:e})=>e.colors.secondary};
320
+ background: ${({theme:e})=>e.text.secondary+br["010"]};
321
+ &:hover {
322
+ background: ${({theme:e})=>e.text.secondary+br["015"]};
323
+ }
324
+ `:""}
325
+ `}
326
+ `,Or=({children:e,variant:t="primary",onClick:i,...n})=>{const o=Et(null);return ft(Dr,{$variant:t,children:ft(Nr,{ref:o,$variant:t,onClick:e=>{i&&i(e),o.current?.blur()},...n,children:e})})},zr=e=>{function t(){return void 0===e?{}:oi(e)}const[i,n]=Ct(t()),[o,r]=Ct({}),a=(e,t)=>Object.entries(e).every(([e,i])=>Array.isArray(i)?i.length===t[e].length&&i.every((i,n)=>a(i,t[e][n])):"object"==typeof i&&null!==i?a(i,t[e]):i===t[e]),s=vt(()=>void 0!==e&&!a(e,i),[e,i]);return kt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(i)&&"{}"!==JSON.stringify(o)&&n(o)},[e,i]),{formData:i,formErrors:o,areFormValuesEqual:a,isFormDirty:s,handleFormChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?n(i=>({...i,[e]:t})):n(e=>{const n=oi(e);let o=n;for(let e=0;e<i.length-1;e++){const t=i[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[i[i.length-1]]=t,n})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{e?r(i=>({...i,[e]:t})):i&&r({...i})},resetFormData:e=>{n(e||t()),r({})}}},Fr={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}},_r=()=>{const{addNotification:e}=or(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:o,resetFormData:r}=zr(Fr);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:i=>{const n={};let r=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Un(t)&&(n[e]=rn.FIELD_IS_REQUIRED)}}),t.type===ci.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=rn.FIELD_IS_REQUIRED;break}}return r=!Object.values(n).length,!r&&i?.withAlert&&e({type:Ai.Warning,title:i.alertTitle,message:rn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:o,disabled:r,fields:a})=>{const s={...oi(Fr),type:e,signals:t,name:i,notes:o,disabled:r};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case di.LabelsAttributes:case di.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case di.CollectContainerAttributes:case di.CollectReplicaSetAttributes:case di.CollectWorkloadId:case di.CollectClusterId:case di.ClusterAttributes:case di.OverwriteExistingValues:case di.AttributeNamesToDelete:case di.Renames:case di.PiiCategories:case di.FallbackSamplingRatio:case di.SamplingPercentage:case di.EndpointsFilters:case di.ServicesNameFilters:case di.AttributeFilters:case di.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var i}),n(void 0,void 0,s)}}},Rr=e=>{kt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Br=()=>{const{setCurrentModal:e}=nr(),{setDrawerType:t,setDrawerEntityId:i}=Qo(),{setActiveNodeType:n,setActiveNodeId:o,activeNodeId:r}=Mo();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(r===l?(n(null),o(null)):(n(c),o(l)),p){case Ci.Source:case Ci.Destination:case Ci.Action:case Ci.InstrumentationRule:t(p),i(d);break;case Fi.AddSource:e(Ci.Source);break;case Fi.AddDestination:e(Ci.Destination);break;case Fi.AddAction:e(Ci.Action);break;case Fi.AddRule:e(Ci.InstrumentationRule)}}}},Mr=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Qo(),{markAsDismissed:i,markAsSeen:n}=or();return{onClickNotification:(o,r)=>{const{id:a,crdType:s,target:l}=o,{dismissToast:c}=r||{};if(s&&l)switch(s){case Ci.InstrumentationRule:e(Ci.InstrumentationRule),t(kn(l,Ci.InstrumentationRule));break;case Ci.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Ci.Source),t(kn(l,Ci.Source));break;case Ci.Action:e(Ci.Action),t(kn(l,Ci.Action));break;case Ci.Destination:case"Destination":e(Ci.Destination),t(kn(l,Ci.Destination))}n(a),c&&i(a)}}},Lr=()=>{const e=Et(null),[t,i]=Ct(0),[n,o]=Ct(0);return kt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),o(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Pr;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Pr||(Pr={}));const jr=Rt.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
+ `,Ur=({icon:e,size:t=Pr.S,onClick:i,disabled:n})=>ft(jr,{$size:t,$disabled:n,onClick:e=>{i&&!n&&(e.stopPropagation(),i(e))},children:ft(e,{size:t})}),Wr=({onDone:e}={})=>{const[t,i]=Ct(!1),[n,o]=Ct(-1),r=St(async(n,r)=>{if(!t){if(i(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),o(-1)},1e3)}},[t,e]);return{CopyButton:St(({value:e,size:i})=>ft(Ur,{icon:t?He:Ke,size:i,onClick:()=>r(e)}),[t]),isCopied:t,copiedIndex:n,clickCopy:r}},Vr=e=>{const{addNotification:t}=or(),{formData:i,handleFormChange:n,formErrors:o,handleErrorChange:r,resetFormData:a}=zr(e);return{formData:i,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return i.name?Wn(i.name)?n.name=void 0:(o=!1,n.name=rn.ILLEGAL_K8S_LABEL):(o=!1,n.name=rn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Ai.Warning,title:e.alertTitle,message:rn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const i={...oi(e),name:t};n(void 0,void 0,i)}}},Gr={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},qr=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=or(),{formData:o,formErrors:r,handleFormChange:a,handleErrorChange:s,resetFormData:l}=zr(Gr),[c,d]=Ct([]),[p,u]=Ct([]);return kt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:o,initialValue:r,renderCondition:a}=e;if(i===Ei.Dropdown){const e=Ln(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:i,title:o,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:o,value:r,renderCondition:a,...Ln(n,{})}})).map(e=>{if(i){const t="string"==typeof i?Ln(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,i]),kt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),kt(()=>{if(t&&0===Zn(o.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:r,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(i=!1,t[e]=rn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Ai.Warning,title:e.alertTitle,message:rn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:o})=>{const r={...oi(Gr),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(Ln(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Hr={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Wi.HttpRequest]:null,[Wi.HttpResponse]:null,[Wi.DbQuery]:null,[Wi.Messaging]:null},codeAttributes:{[Pi.Column]:null,[Pi.FilePath]:null,[Pi.Function]:null,[Pi.LineNumber]:null,[Pi.Namespace]:null,[Pi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Ui.Java]:null,[Ui.Golang]:null}},Kr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=zr(Hr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:r,headersCollection:a,customInstrumentations:s})=>{const l={...oi(Hr),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[Wi.HttpRequest]:o[Wi.HttpRequest]?{}:null,[Wi.HttpResponse]:o[Wi.HttpResponse]?{}:null,[Wi.DbQuery]:o[Wi.DbQuery]?{}:null,[Wi.Messaging]:o[Wi.Messaging]?{}:null}),r&&(l.codeAttributes={[Pi.Column]:r[Pi.Column]||null,[Pi.FilePath]:r[Pi.FilePath]||null,[Pi.Function]:r[Pi.Function]||null,[Pi.LineNumber]:r[Pi.LineNumber]||null,[Pi.Namespace]:r[Pi.Namespace]||null,[Pi.StackTrace]:r[Pi.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Ui.Java]:s[Ui.Java]||null,[Ui.Golang]:s[Ui.Golang]||null}),i(void 0,void 0,l)}}},Yr=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:o,withMetaKey:r},a)=>(kt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,o,r,a]),null),Jr=(e,t)=>{kt(()=>{const i=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t])},Xr=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i}={})=>{const n=Et(null),[o,r]=Ct(!1),[a,s]=Ct({top:0,left:0});return Jr(n,()=>{o&&(r(!1),i?.())}),{popupRef:n,popupOpen:o,setPopupOpen:r,popupPosition:a,handlePosition:(i,o)=>{const{innerWidth:r,innerHeight:a}=window;let l=o,c=i;l>=a/2&&(l+=-(n.current?.clientHeight||e)),c>=r/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Zr=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?Ln(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Qr={otelServiceName:"",currentStreamName:""},ea=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=zr(Qr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...oi(Qr),otelServiceName:e||t||""};i(void 0,void 0,n)}}},ta=Tt({platformType:bi.K8s,tier:fi.Community,version:"v0.0.0"}),ia=({children:e,platformType:t,tier:i,version:n})=>{const o=vt(()=>({platformType:t,tier:i,version:n}),[t,i,n]);return ft(ta.Provider,{value:o,children:e})},na=(e,t)=>!t||so(e)>=so(t),oa=e=>{const t=At(ta),i=na(t.version,e),n=t.platformType===bi.Vm;return{...t,isVersionSupported:i,isVm:n}},ra=Tt({formType:void 0}),aa=({children:e,formType:t})=>{const i=vt(()=>({formType:t}),[t]);return ft(ra.Provider,{value:i,children:e})},sa=()=>At(ra),la=new Set([Ri.StaticPod]),ca=e=>{const t=e.workloads.filter(({selected:e})=>e).length,i=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===i,isSomeSourced:t>0&&t<i,isFutureApps:e.selected||!1}},da=(e,t,i)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(i.showOnlySelected){const{isAllSourced:t,isSomeSourced:i,isFutureApps:n}=ca(e);return t||i||n}return!0},pa=(e,t,i)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!i.showOnlySelected||e.selected),ua=(e,t,i)=>{const n=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,o=n&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=e.selected&&(!n||o)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},ha=(e,t,i)=>({...ua(e,t),currentStreamName:t}),ma=(e,t,i)=>{const n="boolean"==typeof i,o=e.dataStreamNames?.includes(t),r=(n?i:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&r,currentStreamName:t}},ga=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:i}=oa(),n=e=>i!==fi.Onprem&&la.has(e),{selectedStreamName:o}=Zo(),{namespaces:r,addEntities:a}=er(),[s,l]=Ct(!1),[c,d]=Ct({}),[p,u]=Ct(!1),[h,m]=Ct(""),[g,$]=Ct({}),[x,f]=Ct({}),[b,y]=Ct(""),[w,v]=Ct(Ci.Source),[C,k]=Ct(!1),[E,S]=Ct(!1),A=vt(()=>{const e=(e,t)=>!b||w!==t||w===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,Ci.Namespace)).forEach(([i,n])=>{const o=n.filter(t=>e(t.name,Ci.Source)&&(!C||t.selected)&&(e=>!E||(e.numberOfInstances||0)>0)(t));(!b||b&&(w===Ci.Namespace||w===Ci.Source&&o.length))&&(t[i]=o)}),t},[x,b,w,C,E]);return kt(()=>{(async()=>{l(!0);const e=await t();l(!1);const i=e.data;if(!i?.length)return;const n=[...i].sort((e,t)=>e.name.localeCompare(t.name)),r={},s={},c={};for(const e of n){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));r[e.name]=t.map(e=>ua(e,o)),s[e.name]=t.map(e=>ha(e,o)),c[e.name]=ma(e,o)}a(Ci.Namespace,i.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=ur.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const i=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==i&&(s[e][i]={...s[e][i],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(r),f(s),$(c)})()},[o]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,i])=>{i.forEach(i=>{const n=c[t]?.find(e=>e.name===i.name&&e.kind===i.kind);n?.selected!==i.selected&&(e[t]||(e[t]=[]),e[t].push(i))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,i])=>{const n=r?.find(e=>e.name===t);(i.selected&&!n?.dataStreamNames?.includes(o)||!i.selected&&n?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(r.find(t=>t.name===e)){const i="boolean"==typeof t;m(t=>t!==e||i?e:""),i&&(f(i=>({...i,[e]:(i[e]||[]).map(e=>t&&n(e.kind)?e:{...e,selected:t,currentStreamName:o})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),f(t=>{const i={};for(const[r,a]of Object.entries(t))i[r]=a.map(t=>e&&n(t.kind)?t:{...t,selected:e,currentStreamName:o});return i})},selectedSources:x,onSelectSource:(e,t)=>{const i=t||h;if(!i)return;if(n(e.kind))return;const r=[...x[i]||[]],a=r.findIndex(({name:t,kind:i})=>t===e.name&&i===e.kind);if(-1!==a){const e={...r[a],selected:!r[a].selected,currentStreamName:o};r[a]=e}else r.push({...e,selected:!0,currentStreamName:o});f(e=>({...e,[i]:r})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const i=t||h;if(!i)return;const n=r.find(e=>e.name===t);n&&$(t=>({...t,[i]:ma(n,o,e)}))},searchText:b,setSearchText:y,searchBy:w,setSearchBy:v,showSelectedOnly:C,setShowSelectedOnly:k,showRunningOnly:E,setShowRunningOnly:S}};try{Nt.addDefaultLocale(_t)}catch(e){}const $a=()=>{const e=Et(new Nt(_t.locale));return{formatTimeAgo:St(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},xa=Rt.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
+ `,fa=Rt.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
+ `,ba=Rt.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
+ `,ya=Rt.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
+ `,wa=Rt(ya)`
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
+ `,va=Rt.div`
384
+ display: flex;
385
+ flex-direction: column;
386
+ padding: 12px;
387
+ overflow-y: scroll;
388
+ `,Ca=Rt.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
+ `,ka=Rt.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
+ `,Ea=Rt(ya)`
405
+ max-width: ${({$maxWidth:e})=>e||"unset"};
406
+ width: 100%;
407
+ `,Sa=Rt(ba)`
408
+ gap: 16px;
409
+ padding: 16px;
410
+ `,Aa=Rt.div`
411
+ width: 100%;
412
+ max-height: ${({$maxHeight:e})=>e||"unset"};
413
+ overflow-y: auto;
414
+ `,Ta=Rt.div`
415
+ width: ${({$width:e})=>e||"unset"};
416
+ height: ${({$height:e})=>e||"unset"};
417
+ `,Da=Rt.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+br["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: ${wr.in.center};
429
+ `,Ia=Rt.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
+ `,Na=Rt.div`
437
+ cursor: pointer;
438
+ display: flex;
439
+ align-items: center;
440
+ gap: 8px;
441
+ `,Oa=Rt.div`
442
+ display: flex;
443
+ align-items: center;
444
+ gap: 8px;
445
+ `,za=Rt(wa)`
446
+ min-width: 350px;
447
+ min-height: 150px;
448
+ `,Fa=Rt.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
+ `,_a=Rt(bo)`
458
+ text-transform: uppercase;
459
+ font-family: ${({theme:e})=>e.font_family.secondary};
460
+ pointer-events: auto;
461
+ `,Ra=Rt(bo)`
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
+ `,Ba=({isOpen:e,noOverlay:t,header:i,actionComponent:n,onClose:o,children:r,closeOnEscape:a=!0})=>(Yr({key:"Escape",active:e&&a},()=>o()),Rr(e),e?Ht.createPortal(bt(yt,{children:[ft(Ca,{hidden:!e,onClick:o,style:{opacity:t?0:1}}),bt(Da,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&bt(Ia,{children:[bt(Na,{onClick:o,children:[ft(Ye,{}),ft(Ra,{children:"Cancel"})]}),ft(Fa,{children:ft(_a,{children:i.title})}),ft(Oa,{children:n})]}),ft(za,{children:r})]})]}),document.body):null),Ma=Rt.div`
469
+ width: ${({$orientation:e,$thickness:t,$length:i})=>"vertical"===e?`${t}px`:i||"100%"};
470
+ height: ${({$orientation:e,$thickness:t,$length:i})=>"horizontal"===e?`${t}px`:i||"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)+br["050"]};
473
+ opacity: ${({$opacity:e})=>e||1};
474
+ `,La=({orientation:e="horizontal",type:t,thickness:i=1,length:n,margin:o,opacity:r})=>ft(Ma,{$orientation:e,$type:t,$thickness:i,$length:n,$margin:o,$opacity:r}),Pa=Rt.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
+ `,ja=Rt.div`
490
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
491
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
492
+ `,Ua=Rt.div`
493
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
494
+ `,Wa=Rt.div`
495
+ padding: ${({$padding:e})=>void 0!==e?e:"12px"};
496
+ border-top: 1px solid ${({theme:e})=>e.colors.border};
497
+ `,Va=Dt(({isOpen:e,asPortal:t,...i},n)=>{const o=vt(()=>{const{children:e,top:o,bottom:r,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=i;return bt(Pa,{ref:n,$top:o,$bottom:r,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&ft(ja,{$padding:c,children:u}),ft(Ua,{$padding:c,children:e}),h&&ft(Wa,{$padding:c,children:h})]})},[n,i,t]);return e?t?Ht.createPortal(o,document.body):o:null});Va.displayName=Va.name;const Ga=Rt.div`
498
+ width: fit-content;
499
+ position: relative;
500
+ display: flex;
501
+ align-items: center;
502
+ gap: 4px;
503
+ cursor: help;
504
+ `,qa=Rt(bo)`
505
+ word-break: break-word;
506
+ white-space: pre-wrap;
507
+ `,Ha=({withIcon:e,titleIcon:t,title:i,text:n,timestamp:o,children:r})=>{const a=Mt(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=Xr({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=vt(()=>!!$o(n||"")?.length,[n]),h=e=>{const{type:t,clientX:i,clientY:n}=e;u?p(d.left||i,d.top||n):p(i,n),c("mouseleave"!==t)};return n?bt(Ga,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h,children:[r,e&&ft(je,{fill:a.v2.colors.silver[200]}),bt(Va,{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||!!i)&&bt(ba,{style:{marginBottom:"4px"},$gap:4,children:[t&&ft(t,{size:12,fill:a.text.secondary},"icon"),i&&ft(bo,{size:12,color:a.text.secondary,children:i},"title")]}),ft(qa,{size:12,color:a.text.info,children:n}),!!o&&ft(bo,{size:10,color:a.text.darker_grey,family:"secondary",style:{marginTop:"8px"},children:new Date(o).toLocaleString()})]})]}):ft(yt,{children:r})},Ka=Rt.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+br["070"]:e.colors.dropdown_bg_2};
520
+ }
521
+ `,Ya=Rt.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: ${Cr} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
537
+ }
538
+ `,Ja=({children:e,onClick:t,tooltip:i,size:n=36,withPing:o,pingColor:r,withBorder:a,backgroundColor:s,...l})=>ft(Ha,{text:i,children:bt(Ka,{$size:n,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[o&&ft(Ya,{$size:n,$color:r}),e]})}),Xa=Rt.div`
539
+ position: relative;
540
+ &.animated {
541
+ overflow: hidden;
542
+ padding-bottom: 1px;
543
+ border-radius: 32px;
544
+ animation: ${({$isLeaving:e})=>e?wr.out.bottom:wr.in.bottom} ${({$duration:e})=>e/10}ms forwards;
545
+ }
546
+ `,Za=Rt.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: ${vr.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
556
+ `,Qa=Rt.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
+ `,es=Rt.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
+ `,ts=Rt(bo)`
572
+ font-size: 14px;
573
+ color: ${({$type:e,theme:t})=>t.text[e]};
574
+ `,is=Rt(bo)`
575
+ color: ${({$type:e,theme:t})=>t.text[e]};
576
+ font-size: 12px;
577
+ `,ns=Rt(ba)``,os=Rt(bo)`
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
+ `,rs=({type:e,icon:t,title:i,message:n,action:o,onClose:r,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Mt(),[d,p]=Ct(!1),u=Et(null),h=Et(null),m=e=>{r&&(p(!0),r({asSeen:e?.asSeen}))};kt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||_n(e,c);return bt(Xa,{className:r?"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(Qa,{"data-id":"toast",$type:e,style:l,children:[ft(g,{fill:c.text[e]}),bt(es,{$withAction:!!o,$overrideMaxWidth:s,children:[i&&ft(ts,{$type:e,children:i}),i&&n&&ft(La,{orientation:"vertical",type:e}),n&&ft(is,{$type:e,children:n})]}),(!!o||!!r)&&bt(ns,{children:[o&&ft(os,{"data-id":"toast-action",onClick:o.onClick,children:o.label}),r&&ft(Ja,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:ft(Ye,{size:12})})]})]}),r&&ft(Za,{ref:h,$duration:a,$type:e})]})},as=Rt.div`
589
+ padding: 24px 32px;
590
+ `,ss=Rt.div`
591
+ padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
592
+ `,ls=Rt(bo)`
593
+ font-size: 20px;
594
+ line-height: 28px;
595
+ `,cs=Rt(bo)`
596
+ color: ${({theme:e})=>e.text.grey};
597
+ width: 416px;
598
+ font-style: normal;
599
+ font-weight: 300;
600
+ line-height: 24px;
601
+ `,ds=Rt.div`
602
+ display: flex;
603
+ justify-content: space-between;
604
+ gap: 12px;
605
+ `,ps=Rt(Or)`
606
+ width: 250px;
607
+ `,us=Rt.div`
608
+ margin-bottom: 12px;
609
+ `,hs=({isOpen:e,noOverlay:t,title:i="",description:n="",note:o,approveButton:r,denyButton:a,closeOnEscape:s=!0})=>{Yr({key:"Enter",active:e&&s},()=>r.onClick());const l=()=>a.onClick();return ft(Ba,{isOpen:e,noOverlay:t,onClose:l,children:bt(as,{children:[ft(ls,{children:i}),ft(ss,{$withNote:!!o,children:ft(cs,{children:n})}),!!o&&ft(us,{children:ft(rs,{type:o.type,title:o.title,message:o.message})}),bt(ds,{children:[ft(ps,{"data-id":"approve",variant:r.variant||"primary",onClick:()=>r.onClick(),children:r.text}),ft(ps,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},ms=({isOpen:e,noOverlay:t,name:i,onApprove:n,onDeny:o})=>ft(hs,{isOpen:e,noOverlay:t,title:"Cancel"+(i?` ${i}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Ai.Warning,onClick:n},denyButton:{text:"Go Back",onClick:o}}),gs=Rt.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
+ `,$s=Rt.div`
616
+ width: 18px;
617
+ height: 18px;
618
+ border-radius: 6px;
619
+ border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:i})=>e||t?"transparent":i.colors.secondary};
620
+ display: flex;
621
+ align-items: center;
622
+ justify-content: center;
623
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:i})=>e?i.colors.majestic_blue:t?i.colors.majestic_blue_soft:i.colors.secondary+br["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
+ `,xs=({title:e,titleColor:t,tooltip:i,value:n=!1,partiallyChecked:o=!1,onChange:r,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Mt(),[p,u]=Ct(n);return kt(()=>u(n),[n]),bt(ya,{children:[bt(gs,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),r?r(!!o||!p):u(e=>!!o||!e))},style:s,children:[ft($s,{$isChecked:p,$isPartiallyChecked:o,$disabled:a,children:o?ft(Je,{fill:d.text.white}):p?ft(He,{fill:d.text.white}):null}),e&&ft(Ha,{text:i,withIcon:!0,children:ft(bo,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&ft(vo,{children:l})]})},fs=Rt(ba)`
630
+ gap: 0;
631
+ `,bs=Rt.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
+ `,ys=({isPrettyMode:e,setIsPrettyMode:t})=>bt(fs,{children:[ft(bs,{$position:"left",$selected:e,onClick:()=>t(!0),children:ft(Xe,{})}),ft(bs,{$position:"right",$selected:!e,onClick:()=>t(!1),children:ft(Ze,{})})]}),ws=Rt.table`
644
+ border-collapse: collapse;
645
+ font-family: ${({theme:e})=>e.font_family.primary};
646
+ `,vs=Rt.tbody``,Cs=Rt.tr`
647
+ td:first-child {
648
+ padding-left: 0 !important;
649
+ }
650
+ td:last-child {
651
+ padding-right: 0 !important;
652
+ }
653
+ `,ks=Rt.td`
654
+ vertical-align: top;
655
+ padding: 4px 6px;
656
+ `,Es=Rt(bo)`
657
+ white-space: nowrap;
658
+ `,Ss=Rt.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
+ `,As=({language:e,code:t,theme:i,flatten:n,pretty:o})=>{const{darkMode:r}=Mt(),a=i?Jt[i]:r?Jt.palenight:Jt.vsLight;let s="";if("json"===e){const e=Ln(t,{}),i=no(e);s=oo(n?cn(i):i)}else s=t;return o&&"json"===e?ft(Ts,{darkMode:r,str:s}):ft(Yt,{theme:a||(r?Jt.palenight:Jt.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:i})=>ft("pre",{children:i.map((i,n)=>ft("div",{...e({line:i}),children:i.map((e,i)=>ft(Ss,{...t({token:e})},`line-${n}-token-${i}`))},`line-${n}`))})})},Ts=({darkMode:e,str:t})=>{const i=Mt(),n=(e,t)=>{const n=new Array(e).fill(e=>bt(Cs,{...e,children:[ft(ks,{}),ft(ks,{})]}));return ft(wt,{children:n.map((e,n)=>ft(e,{style:0===n?{borderBottom:`1px solid ${i.colors.border}`}:{}},`empty-row-${t}-${n}`))})};return ft(Yt,{theme:e?Jt.palenight:Jt.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:o})=>ft(ws,{children:ft(vs,{children:o.map((o,r)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?bt(wt,{children:[n(2,r),bt(Cs,{...s,children:[ft(ks,{children:ft(Es,{children:a[0].content})}),ft(ks,{})]})]},`line-${r}`):2===a.length?ft(Cs,{...s,children:a.map((e,n)=>{const{text:o,components:a}=((e,t)=>{const[i,...n]=e.split("@");return{text:i,components:n?.map((e,i)=>{if(!e.includes("="))return null;const[n,o]=e.split("=");switch(n){case"tooltip":return ft(Ha,{withIcon:!0,text:o},`${n}-${o}-${i}`);case"status":if("none"===o)return ft("div",{style:{width:16,height:16}},`${n}-${o}-${i}`);let e=_n(o,t);return e||(e=_n(Ai.Warning,t)),ft(e,{},`${n}-${o}-${i}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,i),s=0===n;return ft(ks,{children:bt(ba,{children:[ft(ba,{children:a}),ft(Ss,{$noWrap:s,...t({token:e}),children:o})]})},`line-${r}-token-${n}`)})},`line-${r}`):(a.length,null)})})})})},Ds={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 Is(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return Ds[n]?{value:t,unit:n}:{value:t,unit:"px"}}function Ns(e){const t=Is(e);return`${t.value}${t.unit}`}const Os=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),zs=({loading:e=!0,color:t,scale:i=1,speedMultiplier:n=1,cssOverride:o={},style:r={},...a})=>{const s=Mt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Is(2),d=c+4.2,p=d/2+d/5.5,u=4*d*i,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:i,...r,...o},m=(e,t)=>({position:"absolute",width:Ns(1.5),height:Ns(4),borderRadius:Ns(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Os} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[ft("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),ft("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),ft("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),ft("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),ft("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),ft("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),ft("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),ft("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Fs=Rt.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
+ `,_s=({extend:e,size:t=14,align:i="center"})=>ft(Fs,{$align:i,children:ft(Qe,{size:t,rotate:e?180:0})}),Rs=Rt.div`
672
+ border-radius: 24px;
673
+ background-color: ${({theme:e,$status:t})=>t===Ai.Error?e.text.error+br["010"]:t===Ai.Warning?e.text.warning+br["010"]:e.colors.secondary+br["005"]};
674
+ &:hover {
675
+ background-color: ${({theme:e,$status:t})=>t===Ai.Error?e.text.error+br["020"]:t===Ai.Warning?e.text.warning+br["020"]:e.colors.secondary+br["010"]};
676
+ }
677
+ cursor: pointer;
678
+ transition: background 0.3s;
679
+ `,Bs=Rt.div`
680
+ display: flex;
681
+ align-items: center;
682
+ gap: 12px;
683
+ padding: 12px 18px;
684
+ `,Ms=Rt.div`
685
+ display: flex;
686
+ flex-direction: column;
687
+ gap: 8px;
688
+ padding: 6px 18px 12px 18px;
689
+ `,Ls=Rt.div`
690
+ display: flex;
691
+ align-items: center;
692
+ gap: 12px;
693
+ `,Ps=Rt(bo)`
694
+ white-space: nowrap;
695
+ `,js=Rt(ya)`
696
+ width: 16px;
697
+ `,Us=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:i="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const o=Mt(),[r,a]=Ct(!1),s=vt(()=>Jn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=vt(()=>mn(s),[s]);kt(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Ai.Error:p?Ai.Warning:u?Ai.Info:Ai.Success,$=_n(g,o),x=c?t:p||u?i:m?"Loading...":n,f=c?o.text.error:p?o.text.warning:o.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?o.text.error_secondary:p?o.text.warning_secondary:o.text.info_secondary,w=St(()=>a(e=>!e),[]);return bt(Rs,{onClick:w,$status:g,children:[bt(Bs,{children:[ft(m?zs:$,{}),ft(bo,{color:f,size:14,children:x}),ft(bo,{color:y,size:12,family:"secondary",children:b}),ft(_s,{extend:r,align:"right"})]}),r&&ft(Ms,{children:s.map(({status:e,type:t,reason:i,message:n},r)=>{const a=e===Di.Loading?()=>ft(zs,{scale:.8}):e===Di.Disabled?_n(Ai.Info,o):_n(e,o),s=e===Di.Disabled?o.text.info:e===Ai.Error?o.text.error:e===Ai.Warning?o.text.warning:o.text.info,l=e===Di.Disabled?o.text.info_secondary:e===Ai.Error?o.text.error_secondary:e===Ai.Warning?o.text.warning_secondary:o.text.info_secondary;return bt(Ls,{children:[ft(js,{children:ft(a,{})}),bt(bo,{color:s,size:12,children:[ft(Ps,{color:l,size:12,weight:700,children:t}),n||i]})]},`condition-${r}`)})})]})},Ws=Rt.div`
698
+ display: flex;
699
+ align-items: center;
700
+ gap: ${({$size:e})=>e/3}px;
701
+ padding: ${({$size:e,$withBorder:t,$withBackground:i})=>t||i?`${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:i})=>e?`1px solid ${i.text[t]+br["050"]}`:"none"};
705
+ background: ${({$withBackground:e,$status:t,theme:i})=>e?`linear-gradient(90deg, transparent 0%, ${i.text[t]+br["030"]} 100%)`:"transparent"};
706
+ `,Vs=Rt.div`
707
+ display: flex;
708
+ align-items: center;
709
+ `,Gs=Rt.div`
710
+ display: flex;
711
+ align-items: center;
712
+ `,qs=({title:e,subtitle:t,status:i=Ai.Default,forceIcon:n,withIcon:o,withBorder:r,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Mt(),u=[Di.Loading,Di.Disabled].includes(i)?Ai.Info:i,h=n?()=>ft(n,{size:l+2,fill:p.text[u]}):i===Di.Loading?()=>ft(zs,{scale:.8}):()=>_n(u,p)?.({size:l+2});return bt(Ws,{$status:u,$width:s,$size:l,$withIcon:o,$withBorder:r,$withBackground:a,children:[o&&ft(Vs,{children:ft(h,{})}),(!!e||!!t)&&bt(Gs,{children:[!!e&&ft(bo,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&ft(La,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&ft(bo,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Hs=({label:e,onClick:t,variant:i="tertiary",textProps:n,...o})=>{const r=Mt();return bt(Or,{onClick:t,variant:i,...o,children:[ft(et,{fill:"primary"===i?r.text.primary:r.text.info}),ft(bo,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?r.text.primary:void 0,...n,children:e||sn.ADD})]})},Ks=Rt(ba)`
713
+ width: 100%;
714
+ border-radius: 8px;
715
+ background-color: ${({theme:e})=>e.colors.secondary+br["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:i,isCopied:n}=Wr();return bt(Ks,{children:[ft("pre",{children:e}),ft(Ja,{onClick:n=>{n.stopPropagation(),i(e),t?.()},tooltip:n?"Copied!":"Copy",children:ft(n?He:Ke,{})})]})},Js=({label:e,onClick:t,variant:i="tertiary",...n})=>{const o=Mt();return bt(Or,{onClick:t,variant:i,...n,children:[ft(tt,{fill:"primary"===i?o.text.primary:o.text.info}),ft(bo,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?o.text.primary:void 0,children:e||sn.EDIT})]})},Xs=({onClick:e})=>ft(rs,{type:Ai.Default,icon:qe,message:an.QUICK_BACK_TO_SUMMARY,action:{label:an.GO_TO_SUMMARY,onClick:e}}),Zs=Rt(bo)`
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
+ `,Qs=({maxWidth:e,text:t,textSize:i=16,textColor:n})=>{const[o,r]=Ct(!1),a=Et(null);return kt(()=>{if(a.current){const{clientWidth:t}=a.current;r(t<1.05*(e-i)&&t>.95*(e-i))}},[e,i,t]),bt(ba,{$gap:0,children:[t&&ft(Ha,{text:o?t:void 0,children:ft(Zs,{ref:a,$maxWidth:e-i,size:i,color:n,children:t})}),o&&ft(Zs,{$maxWidth:i,size:i,color:n,children:"..."})]})},el=({src:e="",alt:t="",size:i=16})=>{const[n,o]=Ct(!1);return e&&!n?ft("img",{src:e,alt:t,width:i,height:i,onError:()=>o(!0)}):ft(s,{size:i})},tl=Rt.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 i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+br["030"]} 100%)`}};
741
+ `,il=({icon:e,src:t="",alt:i="",status:n,size:o=36})=>ft(tl,{$status:n,$size:o,children:t?ft(el,{src:t,alt:i,size:o-12}):ft(e||s,{size:o-12})}),nl=Rt.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
+ `,ol=Rt.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)+br["030"]};
761
+ background: ${({$status:e,theme:t})=>{const i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+br["030"]} 100%)`}};
762
+ `,rl=({icons:e=[],iconSrcs:t=[],status:i,size:n=36,id:o})=>{const r=Mt(),a=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return ft(rl,{icons:t.map(e=>()=>ft(el,{src:e,size:a})),status:i,size:n,id:o});if(1===e.length)return ft(il,{icon:e[0],status:i,size:n});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 ft(nl,{$status:i,$size:n,children:e.map((t,n)=>n>2?null:ft(ol,{$status:i,$size:1.5*a,$top:s(n),$left:l(n),$zIndex:n+1,children:2===n&&e.length>3?bt(bo,{family:"secondary",color:r.text.dark_grey,size:.8*a,children:["+",e.length-2]}):ft(t,{size:a})},`icon-${o}-${n}`))})},al=Go.map(({id:e})=>e),sl=({monitors:e=al,withTooltips:t,withLabels:i,size:n=12,color:o})=>{const r=Mt(),a=o||r.text.grey;return ft(ba,{$gap:i?n:n/2,children:e.map(e=>{const o=ei(e.toLowerCase()),r=Tn(e);return r?ft(Ha,{text:t?o:"",children:bt(ba,{$gap:n/3,children:[ft(r,{size:i?n+2:n,fill:a}),i&&ft(bo,{size:n,color:a,children:o})]})},e):null})})},ll=Rt.div`
763
+ visibility: hidden;
764
+ `,cl=Rt.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:i})=>i||(t?e.text[t]+br["010"]:e.colors.secondary+br["005"])};
772
+ opacity: ${({$faded:e})=>e?.5:1};
773
+
774
+ ${({theme:e,$status:t,$bgColorHover:i,$withClick:n})=>n?Bt`
775
+ &:hover {
776
+ cursor: pointer;
777
+ background-color: ${i||(t?e.text[t]+br["020"]:e.colors.secondary+br["010"])};
778
+ ${ll} {
779
+ visibility: visible;
780
+ }
781
+ }
782
+ `:`\n &:hover {\n ${ll} {\n visibility: visible;\n }\n }\n `}
783
+ `,dl=Rt.div`
784
+ display: flex;
785
+ align-items: center;
786
+ gap: 8px;
787
+ margin-left: auto;
788
+ `,pl=Rt(bo)`
789
+ margin-right: 16px;
790
+ `,ul=Rt(bo)`
791
+ font-size: 10px;
792
+ color: ${({theme:e})=>e.text.grey};
793
+ `,hl=({title:e,subTitle:t,hoverText:i,onClick:n,renderActions:o,iconProps:{icon:r,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:v,renderExtended:C}={},...k})=>{const E=Mt(),[S,A]=Ct(v||!1),[T,D]=Ct(0),I=Et(null),N=Et(null),O=Et(null);return kt(()=>{if(I.current){const e=I.current.clientWidth,t=N.current?.clientWidth||0;D(e-(($?125:85)+t))}},[$]),bt(cl,{ref:I,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...k,children:[bt(ba,{$gap:8,children:[bt(ba,{$gap:16,children:[b?ft(zs,{}):$?ft(xs,{value:f,onChange:y,disabled:x}):null,a?.length||l?.length?ft(rl,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):r||s?ft(il,{icon:r,src:s,status:c}):null]}),bt(ya,{$gap:4,children:[e&&ft(Qs,{maxWidth:T,text:e,textSize:14}),bt(ba,{$gap:4,children:[t&&ft(Qs,{maxWidth:T-(O.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&bt(ba,{$gap:4,ref:O,children:[t&&ft(ul,{children:"•"}),ft(sl,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?ft(ba,{$gap:4,children:g?.map((e,t)=>ft(wt,{children:e},`componentsUnderTitles-${t}`))}):null]}),bt(dl,{ref:N,children:[!!i&&ft(ll,{children:ft(pl,{size:14,family:"secondary",children:i})}),o&&o(),w&&bt(wt,{children:[ft(La,{orientation:"vertical",length:"16px",margin:"0 2px"}),ft(Ja,{onClick:()=>A(e=>!e),children:ft(_s,{extend:S})})]})]})]}),S&&C&&bt(ya,{children:[ft(La,{margin:"16px 0"}),C()]})]})},ml=Rt(ba)`
794
+ width: 100%;
795
+ justify-content: space-between;
796
+ `,gl=Rt(bo)`
797
+ font-size: 12px;
798
+ color: ${({theme:e})=>e.text.grey};
799
+ `,$l=Rt(bo)`
800
+ font-size: 10px;
801
+ color: ${({theme:e})=>e.text.darker_grey};
802
+ `,xl=Rt.div`
803
+ display: flex;
804
+ align-items: center;
805
+ gap: 8px;
806
+ margin-left: auto;
807
+ `,fl=Rt(bo)`
808
+ font-size: 12px;
809
+ text-align: right;
810
+ `,bl=({title:e,subTitle:t,tooltip:i,value:n})=>bt(ml,{children:[ft(ya,{$gap:4,children:bt(Ha,{text:i||"",children:[e&&ft(gl,{children:e},"title"),t&&ft($l,{children:t},"subtitle")]})}),ft(xl,{children:n?.status?ft(qs,{status:"transitioning"===n.status?Di.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):ft(fl,{children:n?.text||"-"})})]}),yl=Rt(ya)`
811
+ width: 100%;
812
+ `,wl=({containerName:e,actualDevices:t,started:i,ready:n,instrumentationInstances:o})=>{const r=vt(()=>{const e=[];return i?.name&&e.push(ft(qs,{status:Gn(i.value)?to(i.value)?Ai.Success:Ai.Error:Ai.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"started")),n?.name&&e.push(ft(qs,{status:Gn(n.value)?to(n.value)?Ai.Success:Ai.Error:Ai.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[i?.name,i?.value,n?.name,n?.value]);return ft(hl,{title:e.value,subTitle:o.length?`${o.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:r},renderActions:()=>ft(qs,{status:Ai.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!o.length,renderExtended:()=>ft(yl,{$gap:24,children:o.map((e,t)=>bt(yl,{$gap:8,children:[ft(bl,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Ai.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>ft(bl,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},vl=({title:e="Data not found",subTitle:t})=>{const i=Mt().v2.colors.grey[400];return bt(wa,{children:[bt(ba,{$gap:8,children:[ft(it,{fill:i}),ft(uo,{size:co.XS,color:i,align:"center",children:e})]}),t&&ft(uo,{size:co.XXS,color:i,align:"center",children:t})]})},Cl=Rt(ya)`
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
+ `,kl=It(({id:e,data:t})=>{const{title:i,subTitle:n}=t;return ft(Cl,{"data-id":e,children:ft(vl,{title:i,subTitle:n})})});kl.displayName=kl.name;const El=Rt.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
+ `,Sl=Rt.div`
825
+ position: relative;
826
+ `,Al=Rt.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
+ `,Tl=It(({id:e,data:t})=>{const{id:i,status:n,title:o,icons:r,isVirtual:a}=t,s=Mt(),l=a||n!==Ai.Error?null:_n(n,s);return bt(yt,{children:[ft(jt,{type:"source",position:Ut.Right,style:{visibility:"hidden"}}),ft(jt,{type:"target",position:Ut.Left,style:{visibility:"hidden"}}),bt(Sl,{"data-id":e,children:[ft(El,{$isVirtual:a,children:ft(rl,{id:i,icons:r,status:a?void 0:n})}),bt(Al,{children:[l&&ft(l,{}),ft(bo,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:o})]})]})]})});Tl.displayName=Tl.name;const Dl={duration:300,padding:.1,includeHiddenNodes:!0},Il=Rt.div`
839
+ height: 100%;
840
+ .react-flow__attribution {
841
+ visibility: hidden;
842
+ }
843
+ `,Nl=Rt.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
+ `,Ol={[Oi.MapItem]:Tl,[Oi.NoData]:kl},zl=({trigger:e})=>{const{fitView:t}=qt(),i=Et(!0);return kt(()=>{i.current?i.current=!1:e>0&&requestAnimationFrame(()=>t(Dl))},[e,t]),null},Fl=({nodes:e,edges:t,onNodesChange:i,onEdgesChange:n,fitViewTrigger:o=0,zoomOnScroll:r=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l})=>{const{onClickNode:c}=Br(),{setActiveNodeType:d,setActiveNodeId:p}=Mo();return bt(Vt,{zoomOnScroll:r,nodes:e,nodeTypes:Ol,edges:t,onNodeClick:c,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:e=>{setTimeout(()=>i(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{d(null),p(null)},onlyRenderVisibleElements:!0,children:[ft(zl,{trigger:o}),ft(Nl,{children:ft(Gt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Dl})})]})},_l=e=>ft(Il,{children:ft(Wt,{children:ft(Fl,{...e})})}),Rl=Rt.div`
858
+ display: flex;
859
+
860
+ align-items: center;
861
+ gap: 6px;
862
+ margin-bottom: 4px;
863
+ `,Bl=Rt(bo)`
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
+ `,Ml=Rt(bo)`
872
+ font-size: 12px;
873
+ color: ${({theme:e})=>e.text.darker_grey};
874
+ opacity: 0.8;
875
+ `,Ll=({title:e,required:t,tooltip:i,style:n,status:o})=>e?ft(Rl,{style:n,children:bt(Ha,{text:i,withIcon:!0,children:[ft(Bl,{$status:o,children:e}),!t&&ft(Ml,{children:"(optional)"})]})}):null,Pl=Rt.div`
876
+ display: flex;
877
+ flex-direction: column;
878
+ position: relative;
879
+ width: 100%;
880
+ `,jl=Rt.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&&Bt`
890
+ cursor: not-allowed;
891
+ opacity: 0.6;
892
+ `}
893
+ ${({$isActive:e,$hasError:t,$status:i})=>e?Bt`
894
+ border-color: ${({theme:e})=>e.colors.secondary};
895
+ `:t?Bt`
896
+ border-color: ${({theme:e})=>e.text.error};
897
+ `:i?Bt`
898
+ border-color: ${({theme:e})=>e.text[i]};
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
+ `,Ul=Rt.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
+ `,Wl=Rt.div`
936
+ display: flex;
937
+ align-items: center;
938
+ margin-left: 12px;
939
+ `,Vl=Rt(Wl)`
940
+ cursor: pointer;
941
+ `,Gl=Rt.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
+ `,ql=({icon:e,buttonLabel:t,onButtonClick:i,hasError:n,errorMessage:o,title:r,tooltip:a,required:s,value:l,onChange:c,type:d=Si.Text,name:p,status:u,...h})=>{const m=Mt(),g=d===Si.Password,[$,x]=Ct(!1);return bt(Pl,{children:[ft(Ll,{title:r,required:s,tooltip:a,status:u}),bt(jl,{$disabled:h.disabled,$hasError:n||!!o,$isActive:!!h.autoFocus,$status:u,children:[g?ft(Vl,{onClick:()=>x(e=>!e),children:ft($?nt:ot,{size:14,fill:m.text.grey})}):e?ft(Wl,{children:ft(e,{size:14,fill:m.text.grey})}):null,ft(Ul,{"data-id":p,type:$||d===Si.Number?Si.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Si.Number&&(e.target.value=eo(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&i&&ft(Gl,{onClick:i,disabled:h.disabled,children:t})]}),!!o&&ft(vo,{children:o})]})},Hl=Rt.div`
957
+ display: flex;
958
+ flex-direction: column;
959
+ min-width: 120px;
960
+ width: 100%;
961
+ opacity: ${({$disabled:e})=>e?.5:1};
962
+ `,Kl=Rt.div`
963
+ position: relative;
964
+ `,Yl=Rt.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:i})=>e&&!t?Bt`
974
+ border: 1px solid ${i.text.grey};
975
+ background: ${i.colors.dropdown_bg_2};
976
+ `:Bt`
977
+ border: 1px solid ${i.colors.border};
978
+ background: transparent;
979
+ `};
980
+
981
+ ${({$hasError:e,$status:t})=>e?Bt`
982
+ border-color: ${({theme:e})=>e.text.error};
983
+ `:t?Bt`
984
+ border-color: ${({theme:e})=>e.text[t]};
985
+ `:""}
986
+
987
+ &:hover {
988
+ border-color: ${({$isMulti:e,$hasSelections:t,$disabled:i,theme:n})=>i?"auto":e&&t?n.colors.border:n.colors.secondary};
989
+ }
990
+ `,Jl=Rt.div`
991
+ display: flex;
992
+ align-items: center;
993
+ gap: 4px;
994
+ `,Xl=({options:e,value:t,onSelect:i,onDeselect:n,title:o,tooltip:r,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=Ct(!1),[$,x]=Ct(!1),f=Et(null);Jr(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return bt(Hl,{$disabled:s,children:[ft(Ll,{title:o,required:d,tooltip:r,status:h}),bt(Kl,{ref:f,children:[bt(Yl,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[ft(tc,{value:t,placeholder:a,onDeselect:n}),bt(Jl,{children:[l&&ft(Tr,{label:y,filled:!!y}),ft(_s,{extend:m})]})]}),m&&ft(oc,{openUpwards:$,options:e,value:t,onSelect:e=>{i?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&ft(vo,{children:p})]})},Zl=Rt(Jl)`
995
+ max-width: calc(100% - 50px);
996
+ overflow-x: auto;
997
+ `,Ql=Rt(bo)`
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
+ `,ec=Rt(bo)``,tc=({value:e,placeholder:t,onDeselect:i})=>{const n=Mt();return Array.isArray(e)?e.length?ft(Zl,{children:e.map(e=>bt(Ql,{size:14,children:[e.value,ft(La,{orientation:"vertical",length:"10px",margin:"0 4px"}),ft(Ye,{size:12,onClick:t=>{t.stopPropagation(),i?.(e)}})]},`multi-label-${e.id}`))}):ft(ec,{size:14,color:n.text.darker_grey,children:t}):ft(ec,{size:14,color:e?.value?void 0:n.text.darker_grey,children:e?.value||t})},ic=Rt.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=Rt.div`
1028
+ display: flex;
1029
+ flex-direction: column;
1030
+ align-items: center;
1031
+ `,oc=({openUpwards:e,options:t,value:i,onSelect:n,onDeselect:o,isMulti:r,showSearch:a})=>{const[s,l]=Ct(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return bt(ic,{$openUpwards:e,children:[a&&bt(nc,{children:[ft(ql,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),ft(La,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?ft(vl,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>ft(ac,{option:e,value:i,isMulti:r,onSelect:n,onDeselect:o},`dropdown-option-${e.id||t}`))]})},rc=Rt.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+br["024"]};
1041
+ }
1042
+ `,ac=({option:e,value:t,isMulti:i,onSelect:n,onDeselect:o})=>{const r=Mt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):o?.(e);return i?ft(rc,{className:a?"selected":"",onClick:()=>s(!a),children:ft(xs,{title:e.value||"",titleColor:r.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):bt(rc,{className:a?"selected":"",onClick:()=>a?o?.(e):n?.(e),children:[bt(ba,{$gap:8,children:[e.icon&&ft(e.icon,{}),ft(bo,{size:14,children:e.value})]}),a&&ft(He,{})]})},sc=Rt(ya)`
1043
+ gap: 12px;
1044
+ `,lc=Rt(ba)`
1045
+ width: 100%;
1046
+ gap: 12px;
1047
+ align-items: flex-end;
1048
+ `,cc=({clientX:e=0,flipX:t,clientY:i=0,flipY:n,isOpen:o,onClose:r,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Mt(),{popupRef:m,popupPosition:g,handlePosition:$}=Xr({onClickOutside:r});return Yr({key:"Enter",active:o},a),kt(()=>$(e,i),[e,i]),0===g.top&&0!==i||0===g.left&&0!==e?null:ft(Va,{ref:m,isOpen:o,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:bt(sc,{children:[ft(Ha,{text:d,withIcon:!0,children:ft(bo,{size:14,children:c})}),bt(lc,{children:[u,bt(ba,{$gap:6,children:[ft(Ja,{withBorder:!0,onClick:r,tooltip:"Cancel",children:ft(Ye,{})}),ft(Ja,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:ft(He,{fill:h.text.primary})}),s&&ft(Ja,{onClick:l,tooltip:"Undo",children:ft(at,{})})]})]}),p&&ft(rs,{type:Ai.Warning,message:p})]})})},dc=Rt.div`
1049
+ position: relative;
1050
+ `,pc=({defaultLanguage:e=wi.Unknown,defaultVersion:t="",defaultOtelDistroName:i=null,handleSave:n})=>{const{tier:o}=oa(),{addNotification:r}=or(),{formData:a,handleFormChange:s,resetFormData:l}=zr({language:e,version:t,otelDistroName:i}),[c,d]=Ct(!1),p=()=>{d(!1),l()},u=vt(()=>{if(!a.language)return[];const e=Ko[a.language].community,t=o===fi.Onprem?Ko[a.language].enterprise:[];return e.concat(t)},[a.language,o]);return bt(dc,{children:[ft(Ja,{tooltip:an.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:ft(tt,{})}),ft(cc,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||Kn(a.version)?(await n({...a}),p()):r({type:Ai.Warning,message:rn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await n({language:null,version:"",otelDistroName:null}),p()},title:an.OVERRIDE_RUNTIME_DETAILS,warning:an.OVERRIDE_RUNTIME_WARNING,children:bt(ya,{$gap:12,children:[bt(ba,{$gap:12,children:[ft(Xl,{title:an.LANGUAGE,options:Ho,value:Ho.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),ft(ql,{title:an.RUNTIME_VERSION,placeholder:an.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&ft(Xl,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},uc=Rt(ba)`
1051
+ width: 100%;
1052
+ justify-content: center;
1053
+ `,hc=({containerName:e,language:t,runtimeVersion:i,overriden:n,instrumented:o,instrumentationMessage:r,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Mt(),c=o?Ai.Success:r?Ai.Info:Ai.Warning,d=o?Ti.INSTRUMENTED:r?Ti.NOT_INSTRUMENTED:Ti.INSTRUMENTING;return ft(hl,{title:e,subTitle:`${t?qo[t]:"no runtime info"}`+(i?` • Runtime Version: ${i}`:""),iconProps:{icon:$n(t)},extendableProps:{isExtended:!!r,renderExtended:()=>ft(uc,{children:ft(bo,{size:12,family:"secondary",color:l.text.info,children:Yn(r)})})},renderActions:()=>bt(yt,{children:[ft(qs,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),n&&ft(qs,{status:Ai.Default,forceIcon:st,title:an.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&ft(pc,{defaultLanguage:t,defaultVersion:i,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},mc=Rt.tr`
1054
+ cursor: ${({$withHover:e})=>e?"pointer":"default"};
1055
+ opacity: ${({$faded:e})=>e?.5:1};
1056
+ `,gc=Rt.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
+ `,$c=Rt(bo)`
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
+ `,xc=Rt.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:i})=>t?i?e.text[i]+br["020"]:e.colors.majestic_blue+br["030"]:i?e.text[i]+br["010"]:e.colors.secondary+br["005"]};
1086
+ `,fc=({index:e,columns:t,cells:i,onClick:n,status:o,faded:r})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Lr(),[c,d]=Ct(!1);return ft(mc,{ref:a,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:r,children:t.map(({key:t},n)=>{const r=i.find(({columnKey:e})=>e===t);if(!r)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=r;return bt(gc,{$isFirst:0===n,children:[u?ft(il,{icon:u}):h?ft(h,{}):ft(Ha,{text:p&&a?String(a):"",children:ft($c,{$color:d,children:Un(a)?"-":a})}),0===n&&ft(xc,{$height:s,$width:l,$top:s*e,$hovered:c,$status:o})]},`table-row-${t}-${a}-${e}-${n}`)})})},bc=Rt.div`
1087
+ width: 100%;
1088
+ `,yc=Rt.table`
1089
+ position: relative;
1090
+ z-index: 0;
1091
+ width: 100%;
1092
+ border-collapse: separate;
1093
+ border-spacing: 0 12px;
1094
+ `,wc=Rt.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
+ `,vc=Rt.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
+ `,Cc=Rt(ba)`
1105
+ cursor: pointer;
1106
+ &:hover {
1107
+ * {
1108
+ color: ${({theme:e})=>e.text.secondary};
1109
+ }
1110
+ }
1111
+ `,kc=Rt(bo)`
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
+ `,Ec=Rt.tbody``,Sc=({columns:e,rows:t})=>{const[i,n]=Ct(xi.Ascending),[o,r]=Ct("name"),a=St(e=>{o===e?n(e=>e===xi.Ascending?xi.Descending:xi.Ascending):(r(e),n(xi.Ascending))},[o]),s=vt(()=>{const n=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(o?[...t].sort((e,t)=>{const r=n(e,o),a=n(t,o);return(i===xi.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)))(r,a)}):t).map(({status:t,faded:i,cells:n,onClick:o},r)=>ft(fc,{index:r,columns:e,cells:n,onClick:o,status:t,faded:i},`row-${r}`))},[e,t,o,i]);return ft(bc,{children:bt(yc,{children:[ft(wc,{children:ft("tr",{children:e.map(({key:e,title:t,sortable:i})=>ft(vc,{children:i?bt(Cc,{onClick:()=>a(e),children:[ft(lt,{}),ft(kc,{children:t})]}):ft(kc,{children:t})},`column-${e}`))})}),ft(Ec,{children:s})]})})};var Ac;!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"}(Ac||(Ac={}));const Tc=Rt.div`
1119
+ display: flex;
1120
+ flex-wrap: wrap;
1121
+ gap: 16px 32px;
1122
+ width: 100%;
1123
+ `,Dc=Rt.div`
1124
+ display: flex;
1125
+ flex-direction: column;
1126
+ gap: 2px;
1127
+ width: ${({$width:e})=>e};
1128
+ `,Ic=Rt(bo)`
1129
+ color: ${({theme:e})=>e.text.grey};
1130
+ font-size: 10px;
1131
+ line-height: 16px;
1132
+ `,Nc=Rt(bo)`
1133
+ font-size: 12px;
1134
+ white-space: pre-wrap;
1135
+ `,Oc=({data:e})=>ft(Tc,{children:e?.map(({type:e,title:t,titleIcon:i,tooltip:n,value:o},r)=>bt(Dc,{$width:e&&[Ac.Code,Ac.Table].includes(e)?"inherit":e&&[Ac.Loader,Ac.Divider,Ac.CopyText].includes(e)?"100%":"unset",children:[ft(Ha,{text:n,withIcon:!0,children:bt(ba,{$alignItems:"center",$gap:4,children:[i&&ft(i,{size:14}),!!t&&ft(Ic,{transform:"capitalize",children:t})]})}),ft(zc,{type:e,value:o})]},`data-field-${t||(o?JSON.stringify(o):r)}`))}),zc=({type:e,value:t})=>{const i=Mt();switch(e){case Ac.Divider:return ft(La,{length:"100%",margin:"0"});case Ac.Loader:return ft(wa,{children:ft(zs,{scale:1.2})});case Ac.Monitors:return ft(sl,{monitors:t?.split(", ")||[],withLabels:!0,color:i.colors.secondary});case Ac.Badge:{const{label:e,filled:i,...n}=Ln(t,{label:"-",filled:!1});return ft(Tr,{label:e,filled:i,...n})}case Ac.Code:{const{language:e,code:i,...n}=Ln(t,{language:"",code:""});return ft(As,{language:e,code:i,...n})}case Ac.Table:{const{columns:e,rows:i,...n}=Ln(t,{columns:[],rows:[{status:void 0,cells:[]}]});return ft(Sc,{columns:e,rows:i,...n})}case Ac.ActiveStatus:return ft(qs,{status:"true"==t?Ai.Success:Ai.Error,title:"true"==t?an.ENABLED:an.DISABLED,size:10,withIcon:!0,withBorder:!0});case Ac.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return ft(Ys,{value:e})}default:return ft(Nc,{children:io("string"==typeof t?t||"-":"")})}},Fc=Rt.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+br["010"]:"transparent"};
1145
+ transition: background-color 0.3s;
1146
+ `,_c=Rt.div`
1147
+ width: 100%;
1148
+ display: flex;
1149
+ flex-direction: column;
1150
+ gap: 4px;
1151
+ cursor: ${({$clickable:e})=>e?"pointer":"default"};
1152
+ `,Rc=Rt(bo)`
1153
+ width: 100%;
1154
+ display: flex;
1155
+ align-items: center;
1156
+ gap: 8px;
1157
+ font-size: 16px;
1158
+ `,Bc=Rt(bo)`
1159
+ font-size: 12px;
1160
+ color: ${({theme:e})=>e.text.grey};
1161
+ `,Mc=Rt(ba)`
1162
+ margin-left: auto;
1163
+ gap: 8px;
1164
+ `,Lc=({title:e="Details",titleBadge:t,titleIcon:i,description:n,action:o,withExtend:r,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=Ct(a),[p,u]=Ct(!1);return bt(Fc,{$hovered:p,children:[e||i||n||o?bt(_c,{$clickable:r||!1,onClick:()=>r&&d(e=>!e),onMouseEnter:()=>r&&u(!0),onMouseLeave:()=>r&&u(!1),children:[bt(ba,{children:[bt(ba,{$alignItems:"center",$gap:8,children:[i&&ft(ba,{$alignItems:"center",children:ft(i,{size:20})}),!!e&&ft(Rc,{transform:"capitalize",children:e}),t===Di.Loading?ft(zs,{}):void 0!==t&&ft(Tr,{label:t})]}),(!!o||r)&&bt(Mc,{children:["function"==typeof o?ft(o,{hovered:p}):o,r&&ft(_s,{extend:c})]})]}),!!n&&ft(Bc,{children:n})]}):null,(!r||r&&c)&&(l||ft(Oc,{data:s}))]})},Pc=Rt.div`
1165
+ visibility: hidden;
1166
+ `,jc=Rt(ba)`
1167
+ align-self: stretch;
1168
+ width: calc(100% - 32px);
1169
+ padding: 16px;
1170
+ border-radius: 16px;
1171
+ background-color: ${({theme:e})=>e.colors.secondary+br["005"]};
1172
+ ${({theme:e,$withClick:t})=>t?Bt`
1173
+ &:hover {
1174
+ cursor: pointer;
1175
+ background-color: ${e.colors.secondary+br["010"]};
1176
+ ${Pc} {
1177
+ visibility: visible;
1178
+ }
1179
+ }
1180
+ `:`\n &:hover {\n ${Pc} {\n visibility: visible;\n }\n }\n `}
1181
+ `,Uc=Rt(ba)`
1182
+ margin-left: auto;
1183
+ gap: 8px;
1184
+ `,Wc=Rt(bo)`
1185
+ font-size: 10px;
1186
+ color: ${({theme:e})=>e.text.grey};
1187
+ `,Vc=({title:e,subTitle:t,icons:i,iconSrcs:n,onClick:o,renderActions:r})=>{const a=Mt(),[s,l]=Ct(0),c=Et(null),d=Et(null);return kt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),bt(jc,{ref:c,$gap:8,$withClick:!!o,onClick:o,children:[ft(rl,{id:`${e}-${t}`,icons:i,iconSrcs:n}),e&&ft(Qs,{maxWidth:s/2,text:e,textSize:14}),e&&t&&ft(Wc,{children:"•"}),t&&ft(Qs,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),ft(Uc,{ref:d,children:r&&bt(yt,{children:[ft(La,{orientation:"vertical",length:"24px",margin:"0"}),r()]})})]})},Gc=({isOpen:e,noOverlay:t,name:i,type:n,isLastItem:o,onApprove:r,onDeny:a})=>{const s=n===Ci.Source?"uninstrument":"delete";return ft(hs,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${i?` ${i}`:""}`,description:`Are you sure you want to ${s}?`,note:o?{type:Ai.Warning,title:`You're about to ${s} the last ${n||i}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:r},denyButton:{text:"Go Back",onClick:a}})},qc=Rt(Or)`
1188
+ display: flex;
1189
+ align-items: center;
1190
+ justify-content: center;
1191
+ font-size: 14px;
1192
+ gap: 6px;
1193
+ min-width: 100px;
1194
+ `,Hc=({endpoint:e="/",variant:t="secondary"})=>bt(qc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[ft(ct,{size:18}),"Docs"]}),Kc=Rt(ba)`
1195
+ border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1196
+ `,Yc=Rt.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
+ `,Jc=Rt(bo)`
1202
+ padding: 12px;
1203
+ font-size: 14px;
1204
+ color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1205
+ `,Xc=({tabs:e,hideBorder:t=!1})=>e?.length?ft(Kc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:i,selected:n})=>bt(Yc,{onClick:i,$selected:n,children:[ft(Jc,{$selected:n,children:e}),t&&ft(t,{})]},`tab-${e}`))}):null,Zc=Rt.section`
1206
+ padding: 0px 32px;
1207
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1208
+ `,Qc=Rt.div`
1209
+ height: 76px;
1210
+ display: flex;
1211
+ justify-content: space-between;
1212
+ flex-shrink: 0;
1213
+ align-self: stretch;
1214
+ `,ed=Rt.div`
1215
+ display: flex;
1216
+ align-items: center;
1217
+ gap: ${({$gap:e})=>e||16}px;
1218
+ `,td=Rt(bo)`
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
+ `,id=Rt(Or)`
1226
+ gap: 8px;
1227
+ `,nd=Rt(Or)``,od=({onClose:e,width:t,icons:i,iconSrcs:n,title:o,titleTooltip:r,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>bt(Zc,{children:[bt(Qc,{children:[bt(ed,{children:[i?.length||n?.length?ft(rl,{icons:i,iconSrcs:n,id:`drawer-header-${o}`}):null,("function"==typeof a?ft(a,{}):a||null)||ft(Ha,{text:r||o,withIcon:!!r,children:o&&ft(td,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:o})})]}),bt(ed,{$gap:2,children:[s,l.map((e,t)=>ft(id,{...e},`header-action-button-${t}`)),ft(nd,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:ft(Ye,{size:12})})]})]}),ft(Xc,{tabs:c,hideBorder:!0})]}),rd=Rt.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: ${wr.in.bottom};
1236
+ `,ad=Rt(ba)`
1237
+ margin-right: auto;
1238
+ `,sd=Rt(ba)`
1239
+ margin: 0 auto;
1240
+ `,ld=Rt(ba)`
1241
+ margin-left: auto;
1242
+ `,cd=Rt(Or)`
1243
+ min-width: 140px;
1244
+ font-size: 14px;
1245
+ `,dd=({isOpen:e,leftButtons:t=[],centerButtons:i=[],rightButtons:n=[]})=>e?bt(rd,{children:[ft(ad,{children:t.map((e,t)=>ft(cd,{...e},`footer-left-button-${t}`))}),ft(sd,{children:i.map((e,t)=>ft(cd,{...e},`footer-center-button-${t}`))}),ft(ld,{children:n.map((e,t)=>ft(cd,{...e},`footer-right-button-${t}`))})]}):null,pd=Rt.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+br["010"]};
1254
+ overflow-y: auto;
1255
+ animation-name: ${({$position:e})=>wr.in[e]};
1256
+ `,ud=Rt.div`
1257
+ display: flex;
1258
+ flex-direction: column;
1259
+ height: 100%;
1260
+ `,hd=Rt.div`
1261
+ flex-grow: 1;
1262
+ padding: 24px 32px;
1263
+ overflow-y: auto;
1264
+ `,md=({isOpen:e,onClose:t,closeOnEscape:i=!0,position:n="right",width:o="300px",children:r,header:a,footer:s})=>(Yr({key:"Escape",active:e&&i},()=>t()),Rr(e),e?Ht.createPortal(bt(yt,{children:[ft(Ca,{hidden:!e,onClick:t}),ft(pd,{"data-id":"drawer",$position:n,$width:o,children:bt(ud,{children:[ft(od,{onClose:t,width:o,...a}),ft(hd,{children:r}),ft(dd,{...s})]})})]}),document.body):null),gd=({error:e})=>{const t=Mt(),i={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:i.container,children:[ft("h2",{children:"Something went wrong!"}),ft("pre",{style:i.errorMessage,children:e?.message||"Unknown Error"}),bt("details",{style:i.errorStackWrapper,children:[ft("summary",{children:"Stack Trace"}),ft("pre",{style:i.errorStack,children:e?.stack||"Unknown Stack"})]}),ft("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),ft(Or,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},$d=({children:e})=>ft(Xt,{FallbackComponent:({error:e,...t})=>ft(fr,{children:ft(gd,{...t,error:e})}),children:e}),xd=Rt(ba)`
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+br["050"]};
1270
+ `,fd=Rt(ba)`
1271
+ margin-right: auto;
1272
+ margin-left: 32px;
1273
+ gap: 12px;
1274
+ `,bd=Rt(ba)`
1275
+ margin-left: auto;
1276
+ margin-right: 32px;
1277
+ gap: 12px;
1278
+ `,yd=Rt(ba)`
1279
+ position: absolute;
1280
+ left: 50%;
1281
+ transform: translateX(-50%);
1282
+ gap: 12px;
1283
+ `,wd=({left:e=[],center:t=[],right:i=[]})=>bt(xd,{children:[ft(fd,{children:e.map((e,t)=>e&&ft(wt,{children:e},t))}),ft(yd,{children:t.map((e,t)=>e&&ft(wt,{children:e},t))}),ft(bd,{children:i.map((e,t)=>e&&ft(wt,{children:e},t))})]}),vd=Rt(bo)`
1284
+ color: ${({theme:e})=>e.text.grey};
1285
+ `,Cd=({icon:e,title:t,badge:i,badgeTooltip:n,loading:o})=>bt(ba,{$gap:6,children:[e&&ft(e,{}),ft(vd,{size:14,children:t}),void 0!==i&&ft(Ha,{text:n,children:ft(Tr,{label:i})}),o&&ft(zs,{})]}),kd=Rt.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+br["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
+ `,Ed=Rt.div`
1298
+ width: 32px;
1299
+ height: 32px;
1300
+
1301
+ border-radius: 100%;
1302
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+br["070"]:e.colors.secondary+br["012"]};
1303
+ transition: background-color 0.3s;
1304
+
1305
+ display: flex;
1306
+ align-items: center;
1307
+ justify-content: center;
1308
+
1309
+ cursor: pointer;
1310
+ `,Sd=({orientation:e="vertical",flip:t,mainIcons:i,subIcons:n})=>bt(kd,{$orientation:e,$flip:t,children:[i.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>ft(Ha,{text:n,children:ft(Ed,{$selected:t,onClick:i,children:ft(e,{size:20})})},`main-nav-icon-${o}`)),!!i.length&&!!n.length&&ft(La,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>ft(Ha,{text:n,children:ft(Ed,{$selected:t,onClick:i,children:ft(e,{size:20})})},`sub-nav-icon-${o}`))]}),Ad=Rt.div`
1311
+ display: flex;
1312
+ flex-direction: column;
1313
+ width: 100%;
1314
+ `,Td=Rt.div`
1315
+ display: flex;
1316
+ flex-direction: column;
1317
+ gap: 8px;
1318
+ `,Dd=Rt.div`
1319
+ display: flex;
1320
+ align-items: center;
1321
+ gap: 16px;
1322
+ `,Id=Rt(Ja)`
1323
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1324
+ opacity: ${({$disabled:e})=>e?.5:1};
1325
+ `,Nd=({initialValues:e=[],value:t,onChange:i,title:n,tooltip:o,required:r,errorMessage:a})=>{const[s,l]=Ct(t||e);kt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=Et(JSON.stringify(c));kt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,i&&i(c))},[c]);const p=(e,t)=>{l(i=>{const n=[...i];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return bt(Ad,{children:[ft(Ll,{title:n,required:r,tooltip:o}),ft(Td,{children:s.map((e,t)=>{const i=t===s.length-1;return bt(Dd,{children:[ft(ql,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:Un(e)&&!u&&i}),t===s.length-1&&ft(Id,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:ft(et,{})}),ft(Id,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,i)=>i!==e))})(t),children:ft(at,{})})]},`input-list-${t}`)})}),!!a&&ft(vo,{children:a})]})},Od=({col:e,colIdx:t,row:i,rowIdx:n,rowsLength:o,maxWidth:r,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:$,renderCondition:x}=e,f=i[c];return x&&!x(i)?null:ft("td",{style:{maxWidth:r,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Ei.Dropdown:const e=$?.find(e=>e.id===f);return ft(Xl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:e,onSelect:e=>a(c,e.id,n),onDeselect:()=>a(c,"",n),hasError:!!s&&(!h||h&&Un(f))});case"multi-dropdown":const i=Array.isArray(f)&&$?.filter(e=>f.includes(e.id))||[];return ft(Xl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:i,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(f)?f:[],e.id];a(c,t,n)},onDeselect:e=>{const t=(Array.isArray(f)?f:[]).filter(t=>t!==e.id);a(c,t,n)},hasError:!!s&&(!h||h&&Un(f))});default:const g=o>1&&n===o-1&&0===t&&Un(f);return ft(ql,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:f,onChange:({target:{value:e}})=>a(c,e,n),style:{maxWidth:r,paddingLeft:10},hasError:!!s&&(!h||h&&Un(f))})}})()},`input-table-${n}-${c}`)},zd=Rt.div`
1326
+ display: flex;
1327
+ flex-direction: column;
1328
+ width: 100%;
1329
+ `,Fd=Rt.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
+ `,_d=({columns:e,initialValues:t=[],value:i,onChange:n,errorMessage:o,limitFieldsPerRow:r,title:a=""})=>{const[s,l]=Ct({}),[c,d]=Ct(i||t),p=vt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);kt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,i]of Object.entries(e)){const n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&Un(i))return!1}return!0}),h=Et(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((r||e.length)+.4))}px`;kt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u]);const $=(e,t,i)=>{d(n=>{const o=oi(n);return o[i][e]=t,o})},x=vt(()=>{if(r){const t=[];for(let i=0;;i+=r){const n=e.slice(i,i+r);if(!n.length)break;t.push(n)}return t}return[e]},[r,e]);return bt(zd,{children:[ft(Ll,{title:a}),bt("table",{style:{borderCollapse:"collapse"},children:[!r&&ft("thead",{children:bt("tr",{children:[e.map(({title:e,tooltip:t,required:i})=>ft("th",{style:{maxWidth:g},children:ft(Ll,{title:e,required:i,tooltip:t})},`input-table-head-${e}`)),ft("th",{})]})}),ft("tbody",{children:c.map((t,i)=>bt(wt,{children:[r&&i>0?ft("tr",{children:ft("td",{colSpan:x.length,children:ft(La,{})})}):null,x.map((n,a)=>bt("tr",{children:[n.map((e,n)=>ft(Od,{col:e,colIdx:n,row:t,rowIdx:i,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:r,errorMessage:o,handleChange:$},`input-table-row-${i}-col-${n}`)),0===a&&ft("td",{children:ft(Fd,{$marginTop:r?"24px":"0",onClick:()=>{return t=i,void(c.length>1?d(e=>e.filter((e,i)=>i!==t)):e.forEach(({keyName:e,type:i})=>$(e,i===Si.Number?"0":"",t)));var t},children:ft(at,{})})})]},`input-table-matrix-${i}-${a}`))]},`input-table-row-${i}`))})]}),!!o&&ft(vo,{children:o}),ft(Hs,{onClick:()=>{d(e=>{const t=oi(e);return t.push(oi(s)),t})},disabled:m})]})},Rd=Rt.div`
1336
+ display: flex;
1337
+ flex-direction: column;
1338
+ width: 100%;
1339
+ `,Bd=Rt.div`
1340
+ display: flex;
1341
+ flex-direction: column;
1342
+ gap: 8px;
1343
+ `,Md=Rt.div`
1344
+ display: flex;
1345
+ align-items: center;
1346
+ gap: 8px;
1347
+ `,Ld=Rt.div`
1348
+ width: 100%;
1349
+ max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1350
+ `,Pd=Rt(Ja)`
1351
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1352
+ opacity: ${({$disabled:e})=>e?.5:1};
1353
+ `,jd={key:"",value:""},Ud=({initialKeyValuePairs:e=[],value:t,onChange:i,title:n,tooltip:o,disabled:r,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=Ct(t||e);kt(()=>{p.length||u([{...jd}])},[]);const h=p.filter(({key:e,value:t})=>!Un(e.trim())&&!Un(t.trim())),m=Et(JSON.stringify(h));kt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,i&&i(h))},[h]);const g=(e,t,i)=>{u(n=>{const o=[...n];return o[i][e]=t,o})},$=p.length<=1,x=r||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=r||$&&x;return bt(Rd,{children:[ft(Ll,{title:n,required:a,tooltip:o}),ft(Bd,{children:p.map(({key:e,value:t},i)=>bt(Md,{children:[ft(Ld,{$maxWidth:d,children:ft(ql,{placeholder:l,disabled:r,value:e,onChange:e=>g("key",e.target.value,i),hasError:!!s&&(!a||a&&!e),autoFocus:Un(t)&&!$&&i===p.length-1})}),ft(Ld,{$maxWidth:i===p.length-1?d-38:d,children:ft(ql,{placeholder:c,disabled:r,value:t,onChange:e=>g("value",e.target.value,i),hasError:!!s&&(!a||a&&Un(t)),autoFocus:!1})}),i===p.length-1&&ft(Pd,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...jd}),t})},children:ft(et,{})}),ft(Pd,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,i)=>i!==e))})(i),children:ft(at,{})})]},`key-value-input-list-${i}`))}),!!s&&ft(vo,{children:s})]})},Wd=Pt`
1354
+ 0% {
1355
+ background-position: 0% 50%;
1356
+ }
1357
+ 100% {
1358
+ background-position: 100% 50%;
1359
+ }
1360
+ `,Vd=Rt(bo)`
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: ${Wd} 1s reverse linear infinite;
1366
+ `,Gd=({children:e="Loading...",textColor:t,stripColor:i,...n})=>{const o=Mt(),r=t||o.v2.colors.white[500],a=i||o.v2.colors.black[500];return ft(Vd,{$textColor:r,$stripColor:a,...n,children:e})},qd=Rt.div`
1367
+ display: flex;
1368
+ flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1369
+ gap: ${({$isVertical:e})=>e?"12px":"24px"};
1370
+ ${({$hasError:e})=>e&&Bt`
1371
+ border: 1px solid ${({theme:e})=>e.text.error};
1372
+ border-radius: 32px;
1373
+ padding: 8px;
1374
+ `}
1375
+ `,Hd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Kd=({isVertical:e,title:t="Monitors",required:i,errorMessage:n,allowedSignals:o,selectedSignals:r,setSelectedSignals:a})=>{const[s,l]=Ct(1===r.length),c=Et(JSON.stringify(r));return kt(()=>{const e=r;e.length||Go.forEach(({id:t})=>{Hd(t,o)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[o]),bt("div",{children:[t&&ft(Ll,{title:t,required:i}),ft(qd,{$isVertical:e,$hasError:!!n,children:Go.map(e=>{const t=Hd(e.id,o),i=((e,t)=>!!t?.find(t=>t===e))(e.id,r);return t?ft(xs,{title:e.value,disabled:!t||s&&i,value:i,onChange:t=>((e,t)=>{const i=e,n=t?[...r,i]:r.filter(e=>e!==i);a(n),l(1===n.length)})(e.id,t)},e.id):null})}),!!n&&ft(vo,{children:n})]})},Yd=Rt.div`
1376
+ display: flex;
1377
+ gap: 8px;
1378
+ align-items: center;
1379
+ `,Jd=Rt(Or)`
1380
+ display: flex;
1381
+ align-items: center;
1382
+ justify-content: center;
1383
+ gap: 8px;
1384
+ min-width: 90px;
1385
+ `,Xd=({buttons:e})=>{const t=Mt(),i=({button:t,index:i})=>e.length>1&&0===i&&(t.icon||t.iconSrc),n=({button:e,rotate:i})=>e.icon?ft(e.icon,{size:14,rotate:i,fill:t.text[e.variant||"secondary"]}):e.iconSrc?ft("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return ft(Yd,{children:e.map((e,t)=>ft(Ha,{text:e.tooltip||"",children:bt(Jd,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[i({button:e,index:t})&&n({button:e,rotate:0}),e.label,!i({button:e,index:t})&&n({button:e,rotate:180})]},t)},t))})},Zd=Rt.div`
1386
+ width: 100%;
1387
+ height: 100%;
1388
+
1389
+ * {
1390
+ animation: none !important;
1391
+ transition: none !important;
1392
+ }
1393
+ `,Qd=({width:e="100%",height:t="100%",gap:i=0,elements:n,noAnimation:o=!1,onTopIndexChange:r})=>{const a=Et(null),s=vt(()=>i?n.map((e,t)=>ft("div",{style:{paddingBottom:i},children:e},`scroll-y-item-${t}`)):n,[n,i]),l=St(e=>{if(!r||!a.current)return;const t=a.current.findItemIndex(e);r(t)},[r]),c=ft(Qt,{ref:a,style:{width:e,height:t},onScroll:r?l:void 0,children:s});return o?ft(Zd,{children:c}):c},ep=Rt.div`
1394
+ display: flex;
1395
+ justify-content: space-between;
1396
+ align-items: center;
1397
+ gap: 16px;
1398
+ `,tp=Rt.div`
1399
+ display: flex;
1400
+ flex-direction: column;
1401
+ gap: 4px;
1402
+ `,ip=Rt.div`
1403
+ display: flex;
1404
+ align-items: center;
1405
+ gap: 8px;
1406
+ `,np=Rt(bo)``,op=Rt(bo)``,rp=({title:e,description:t,badgeLabel:i,icon:n,actionButton:o,size:r="medium"})=>{const a="small"===r?16:"medium"===r?20:24,s="small"===r?12:"medium"===r?14:16;return bt(ep,{children:[bt(tp,{children:[bt(ip,{children:[n&&ft(n,{size:a}),ft(np,{weight:300,size:a,children:e}),void 0!==i&&ft(Tr,{label:i,filled:!!i})]}),ft(op,{weight:200,opacity:.8,size:s,children:t})]}),o&&ft("div",{children:o})]})},ap=Rt.div`
1407
+ position: relative;
1408
+ gap: 0;
1409
+ z-index: 0;
1410
+ display: grid;
1411
+ grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1412
+ `,sp=Rt.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
+ `,lp=Rt.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
+ `,cp=({options:e=[],selected:t,setSelected:i})=>{const n=e.findIndex(e=>e.value===t),[o,r]=Ct(e[n]?.selectedBgColor||""),[a,s]=Ct({width:0,height:0}),[l,c]=Ct({x:0,y:0}),d=Et(null);return kt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),bt(ap,{$count:e.length,children:[e.map(({icon:n,label:o,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return bt(sp,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{i(a),r(s||"")},children:[n&&ft(n,{}),o&&ft(bo,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:o})]},`segment-${o||c}-${a}`)}),ft(lp,{$bgColor:o,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1})]})},dp=Rt(Or)`
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+br["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+br["030"]};
1449
+ }
1450
+ `,pp=Rt(bo)`
1451
+ white-space: nowrap;
1452
+ overflow: hidden;
1453
+ text-overflow: ellipsis;
1454
+ font-size: 14px;
1455
+ `,up=({label:e,onClick:t,icon:i,iconSrc:n,badgeLabel:o,badgeFilled:r,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Mt();return bt(dp,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[i&&ft("div",{children:ft(i,{fill:p.text.info})}),n&&ft("div",{children:ft("img",{src:n,alt:"",width:16,height:16})}),ft(pp,{children:e}),a&&ft("div",{children:ft(He,{fill:p.colors.majestic_blue_soft})}),void 0!==o&&ft(Tr,{label:o,filled:r||a})]})},hp=Rt.div`
1456
+ display: flex;
1457
+ flex-direction: column;
1458
+ gap: 16px;
1459
+ ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1460
+ `,mp=Rt.div`
1461
+ display: flex;
1462
+ align-items: center;
1463
+ gap: 16px;
1464
+ `,gp=Rt.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: ${kr} 10s infinite linear;
1471
+ `,$p=Rt(ya)`
1472
+ flex: 1;
1473
+ gap: 12px;
1474
+ `,xp=Rt.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: ${kr} 1.5s infinite linear;
1480
+ border-radius: 4px;
1481
+ `,fp=({size:e=5,maxWidth:t})=>ft(hp,{$maxWidth:t,children:[...Array(e)].map((e,t)=>bt(mp,{children:[ft(gp,{}),bt($p,{children:[ft(xp,{$width:"80%"}),ft(xp,{$width:"100%"})]})]},t))});var bp;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(bp||(bp={}));const yp=Rt.div`
1482
+ display: flex;
1483
+ flex-direction: column;
1484
+ gap: 32px;
1485
+ `,wp=Rt.div`
1486
+ display: flex;
1487
+ gap: 16px;
1488
+ padding: 8px;
1489
+ opacity: ${({$state:e})=>e===bp.Active?1:e===bp.Disabled?.5:.8};
1490
+ transition: all 0.3s;
1491
+ `,vp=Rt(ba)`
1492
+ justify-content: center;
1493
+ width: 24px;
1494
+ height: 24px;
1495
+ border-radius: 32px;
1496
+ border: ${({theme:e,$state:t})=>t===bp.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1497
+ opacity: ${({$state:e})=>e===bp.Finished?.8:1};
1498
+ `,Cp=Rt(ya)`
1499
+ justify-content: center;
1500
+ gap: 8px;
1501
+ `,kp=Rt(bo)``,Ep=Rt(bo)``,Sp=({data:e,currentStep:t=0})=>{const[i,n]=Ct([]);return kt(()=>{n(e.map((e,i)=>i<t-1?{...e,state:bp.Finished,subtitle:e.subtitle||Ai.Success}:i===t-1?{...e,state:bp.Active,subtitle:""}:{...e,state:bp.Disabled,subtitle:""}))},[t,e]),ft(yp,{children:i.map((e,t)=>bt(wp,{$state:e.state,children:[ft(vp,{$state:e.state,children:[bp.Active,bp.Disabled].includes(e.state)?ft(bo,{size:12,children:e.stepNumber}):e.state===bp.Finished?ft(He,{size:20}):null}),bt(Cp,{children:[ft(kp,{family:"secondary",children:e.title}),e.subtitle&&ft(Ep,{size:10,weight:300,children:e.subtitle})]})]},t))})},Ap=Rt(ba)`
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
+ `,Tp=Rt(bo)`
1508
+ color: ${({$type:e,theme:t})=>t.text[e]};
1509
+ `,Dp=({type:e=Ai.Info,icon:t,title:i,size:n,family:o,children:r,...a})=>bt(Ap,{$type:e,children:[t&&ft(t,{}),ft(Tp,{$type:e,size:n||12,family:o||"secondary",...a,children:r||i})]}),Ip=Rt.div`
1510
+ display: flex;
1511
+ flex-direction: column;
1512
+ position: relative;
1513
+ width: 100%;
1514
+ `,Np=Rt.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&&Bt`
1523
+ background-color: ${({theme:e})=>e.colors.border};
1524
+ cursor: not-allowed;
1525
+ opacity: 0.6;
1526
+ `}
1527
+
1528
+ ${({$hasError:e})=>e&&Bt`
1529
+ border-color: ${({theme:e})=>e.text.error};
1530
+ `}
1531
+
1532
+ ${({$isActive:e})=>e&&Bt`
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
+ `,Op=Rt.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
+ `,zp=({errorMessage:e,title:t,tooltip:i,required:n,onChange:o,name:r,...a})=>{const s=Et(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return bt(Ip,{children:[ft(Ll,{title:t,required:n,tooltip:i}),ft(Np,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:ft(Op,{ref:s,"data-id":r,name:r,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),o?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&ft(vo,{children:e})]})},Fp=Rt.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
+ `,_p=Rt.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
+ `,Rp=({title:e,tooltip:t,initialValue:i=!1,onChange:n,disabled:o,allowPropagation:r=!1,flipHorizontally:a})=>{const[s,l]=Ct(i);return kt(()=>l(i),[i]),bt(Fp,{$disabled:o,onClick:e=>{o||(r||e.stopPropagation(),n?n(!s):l(e=>!e))},children:[!a&&ft(_p,{$disabled:o,$isActive:s}),(e||t)&&ft(Ha,{text:t,withIcon:!0,children:e&&ft(bo,{size:14,children:e})}),a&&ft(_p,{$disabled:o,$isActive:s})]})};var Bp={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 Mp=Rt.div`
1595
+ width: ${({$width:e})=>e}px;
1596
+ height: ${({$height:e})=>e}px;
1597
+ position: relative;
1598
+ `,Lp=({width:e=620})=>{const{darkMode:t}=Mt(),i=e/(620/220);return ft(Mp,{$width:e,$height:i,children:ft(Zt,{autoplay:!0,loop:!0,animationData:Bp,style:{width:i,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(i-i/10),left:i-i/10,filter:t?"invert(0)":"invert(1)"}})})};var Pp,jp;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Pp||(Pp={})),function(e){e.S="small",e.M="medium",e.L="large"}(jp||(jp={}));const Up=Rt.button`
1599
+ display: flex;
1600
+ align-items: center;
1601
+ justify-content: center;
1602
+ gap: 8px;
1603
+ ${({$fullWidth:e})=>e&&Bt`
1604
+ width: 100%;
1605
+ `}
1606
+ border: none;
1607
+ border-radius: 6px;
1608
+ ${({$size:e,$hasLabel:t})=>e===jp.S?Bt`
1609
+ height: 32px;
1610
+ ${t?Bt`
1611
+ padding: 8px 16px;
1612
+ `:Bt`
1613
+ width: 32px;
1614
+ `}
1615
+ `:e===jp.M?Bt`
1616
+ height: 38px;
1617
+ ${t?Bt`
1618
+ padding: 8px 18px;
1619
+ `:Bt`
1620
+ width: 38px;
1621
+ `}
1622
+ `:Bt`
1623
+ height: 44px;
1624
+ ${t?Bt`
1625
+ padding: 8px 22px;
1626
+ `:Bt`
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?Bt`
1638
+ box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1639
+ `:""}
1640
+ ${({$variant:e})=>e===Pp.Primary?Bt`
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===Pp.Secondary?Bt`
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===Pp.Text?Bt`
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
+ `,Wp=Dt(({label:e,leftIcon:t,rightIcon:i,variant:n=Pp.Primary,size:o=jp.M,iconSize:r,loading:a,fullWidth:s,withShadow:l,textColor:c,disabled:d,onClick:p,...u},h)=>{const m=Mt(),g=r||(o===jp.L?18:16),$=o===jp.L?co.S:co.XS,x=c||(d?m.v2.colors.grey[400]:m.v2.colors.white[500]),[f,b]=Ct(!1),y=St(async e=>{e.stopPropagation(),b(!0),await(p?.(e)),b(!1)},[p]);return ft(Up,{ref:h,$variant:n,$size:o,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:d,onClick:a||f?void 0:y,...u,children:a||f?e?ft(Gd,{size:m.v2.text.size[$],textColor:x}):ft(zs,{}):bt(yt,{children:[t&&ft(t,{size:g,fill:x}),e?ft(uo,{size:$,weight:500,color:x,nowrap:!0,children:e}):null,i&&ft(i,{size:g,fill:x})]})})});Wp.displayName=Wp.name;const Vp=Rt.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?Bt`
1677
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1678
+ `:Bt`
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
+ `,Gp=Rt.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?Bt`
1694
+ background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1695
+ `:Bt`
1696
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1697
+ `}
1698
+ `,qp=Rt.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
+ `,Hp=({label:e,icon:t,loading:i,disabled:n,onClick:o})=>{const[r,a]=Ct(!1);return bt(Vp,{$hovered:r,type:"button",disabled:n||i,onClick:o,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[ft(Gp,{$hovered:r,$hasIcon:!!t,children:t&&ft(t,{size:36})}),bt(qp,{$hasIcon:!!t,children:[i?ft(Gd,{size:16}):ft(uo,{variant:lo.Span,align:"center",children:e}),ft(dt,{rotate:90,size:24})]})]})},Kp=({buttons:e})=>ft(ya,{$gap:12,children:e.map(e=>ft(Hp,{...e},e.label))}),Yp=Rt.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
+ `,Jp=Rt.div`
1713
+ width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
1714
+ margin: 8px;
1715
+ display: flex;
1716
+ flex-direction: column;
1717
+ gap: 4px;
1718
+ `,Xp=({cellsPerRow:e,items:t})=>{const i=Mt(),{CopyButton:n}=Wr();return ft(Yp,{children:t.map(({id:o,title:r,label:a,withCopy:s,badge:l})=>bt(Jp,{$cellsPerRow:e||t.length,children:[ft(uo,{size:co.XXXS,color:i.v2.colors.silver[200],nowrap:!0,children:r}),bt(ba,{$gap:4,children:[l&&ft(mo,{...l}),a&&ft(uo,{size:co.XS,nowrap:!0,children:a}),s&&ft(n,{value:a||l?.label?.toString()||"",size:Pr.XS})]})]},o))})};var Zp;!function(e){e.S="s",e.L="l"}(Zp||(Zp={}));const Qp=Rt.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
+ `,eu=Rt.button`
1727
+ flex: 1;
1728
+ display: flex;
1729
+ align-items: center;
1730
+ justify-content: center;
1731
+ gap: 8px;
1732
+ padding: ${({$size:e})=>e===Zp.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:i,theme:n})=>e?Bt`
1738
+ cursor: not-allowed;
1739
+ background-color: ${t?(i||n.v2.colors.black[500])+br["040"]:"transparent"};
1740
+ `:Bt`
1741
+ cursor: pointer;
1742
+ background-color: ${t?i||n.v2.colors.black[500]:"transparent"};
1743
+ &:hover {
1744
+ background-color: ${t?i||n.v2.colors.black[500]:n.v2.colors.silver[800]};
1745
+ }
1746
+ `}
1747
+ `,tu=({size:e=Zp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Mt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Zp.S?co.XXS:co.XS,l=e===Zp.S?400:500;return ft(Qp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>bt(eu,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&ft(c,{fill:a}),r&&ft(uo,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},iu=Rt.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:i})=>e||t?i.v2.colors.silver[700]:i.v2.colors.silver[800]};
1761
+ `,nu=Rt.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
+ `,ou=({value:e,onChange:t,placeholder:i,width:n,segment:o})=>{const r=Mt(),[a,s]=Ct(!1),[l,c]=Ct(!1),[d,p]=Ct(!1),u=a?r.v2.colors.white[500]:r.v2.colors.silver[200],h=!!o?.options?.length,m=vt(()=>{if(h)return o?.options.find(e=>e.value===o.selected)?.label},[h,o?.options,o?.selected]),g=vt(()=>i||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[i,h,m]);return bt(iu,{$width:n,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[ft(rt,{size:18,fill:u}),ft(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&&ft("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:ft(tu,{options:o.options,selected:o.selected,setSelected:o.setSelected,size:Zp.S})})]})};var ru;!function(e){e.S="small",e.L="large"}(ru||(ru={}));const au=Rt.div`
1779
+ width: fit-content;
1780
+ display: flex;
1781
+ align-items: center;
1782
+ gap: 8px;
1783
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1784
+ `,su=Rt.div`
1785
+ width: ${({$size:e})=>e===ru.S?"16px":"20px"};
1786
+ height: ${({$size:e})=>e===ru.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
+ `,lu=({label:e,tooltip:t,size:i=ru.L,disabled:n,partiallyChecked:o,value:r,onChange:a})=>{const s=Mt(),[l,c]=Ct(!1),d=o||r,p=i===ru.S?12:16,u=n?s.v2.colors.grey[400]:s.v2.colors.white[500],h=d?"transparent":n?s.v2.colors.grey[700]:l?s.v2.colors.silver[400]:s.v2.colors.silver[600],m=n?s.v2.colors.grey[600]:d?s.v2.colors.purple[500]:s.v2.colors.silver[900];return bt(au,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||a(!!o||!r)},$disabled:n,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[ft(su,{$size:i,$borderColor:h,$backgroundColor:m,children:o?ft(Je,{size:p,fill:u}):r?ft(He,{size:p,fill:u}):null}),e&&ft(Ha,{text:t,withIcon:!0,children:ft(uo,{size:i===ru.S?co.XXS:co.XS,nowrap:!0,children:e})})]})},cu=Rt.div`
1794
+ display: flex;
1795
+ flex-direction: ${({$direction:e})=>e===$i.Horizontal?"row":"column"};
1796
+ gap: ${({$direction:e})=>e===$i.Horizontal?16:8}px;
1797
+ `,du=({direction:e=$i.Vertical,title:t,size:i,disabled:n,withSelectAll:o,options:r,values:a,setValues:s})=>{const l=i===ru.S?co.XXS:co.XS,c=vt(()=>r.every(e=>a[e.id]),[r,a]),d=vt(()=>r.some(e=>a[e.id])&&r.some(e=>!a[e.id]),[r,a]),p=(e,t)=>{s(i=>{const n={...i};return e?n[e]=t:r.forEach(e=>n[e.id]=t),n})};return bt(cu,{$direction:e,children:[t&&o?ft(lu,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:i}):t&&!o?ft(uo,{size:l,children:t}):null,r.map(e=>ft(lu,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:n,size:i},`${t}-checkbox-${e.id}`))]})};var pu,uu;!function(e){e.Left="left",e.Right="right"}(pu||(pu={})),function(e){e.Top="top",e.Bottom="bottom"}(uu||(uu={}));const hu=Rt.div`
1798
+ position: relative;
1799
+ `,mu=Rt.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===uu.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
1814
+ z-index: 1;
1815
+ `,gu=Rt.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
+ `,$u=Rt.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?Bt`
1832
+ background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1833
+ `:Bt`
1834
+ background-color: transparent;
1835
+ &:hover {
1836
+ background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1837
+ }
1838
+ `}
1839
+ `,xu=({defaultOpen:e,alignX:t,alignY:i,items:n,selectedIds:o,setSelectedIds:r,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Mt(),m=!!d||!!p||!!u,[g,$]=Ct(e??!m),[x,f]=Ct({x:t||pu.Left,y:i||uu.Bottom}),b=e=>{$(e=>!e),f({x:t||(e.clientX>window.innerWidth/2?pu.Right:pu.Left),y:i||(e.clientY>window.innerHeight/2?uu.Top:uu.Bottom)})},y=e=>{r(a?o.includes(e)?o.filter(t=>t!==e):[...o,e]:[e]),m&&!a&&$(!1)},w=Et(null);Jr(w,()=>$(!1));const[v,C]=Ct(""),k=vt(()=>v?n.filter(e=>e?.label?.toLowerCase().includes(v.toLowerCase())):n,[n.length,v]);return bt(hu,{ref:w,children:[d&&ft(Wp,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&ft(Ur,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&bt(mu,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&ft(ou,{value:v,onChange:C,width:"100%"}),ft(gu,{$maxHeight:c,children:k.map(e=>{if(!e)return null;const{id:t,label:i,icon:n,withCheckbox:r}=e,a=o.includes(t);return bt($u,{$selected:a&&!r,onClick:()=>y(t),children:[r&&ft(lu,{value:a,onChange:()=>y(t)}),n&&ft(n,{size:14,fill:h.v2.colors.white[500]}),ft(uo,{size:co.XS,nowrap:!0,children:i})]},t)})}),a&&ft(Wp,{label:"Done",onClick:()=>$(!1)})]})]})};var fu;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(fu||(fu={}));const bu=({onAnyClick:e,actions:t})=>ft(ba,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case fu.Button:return ft(Wp,{...t.buttonProps,onClick:i=>{t.buttonProps?.onClick?.(i),e?.()}},t.id);case fu.ButtonDropData:return ft(xu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:i=>{t.buttonProps?.onClick?.(i[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),yu=Rt.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
+ `,wu=({icon:e,title:t,subTitle:i,withCopy:n,badge:o,children:r})=>{const a=Mt(),{CopyButton:s}=Wr();return bt(ba,{$gap:i?8:6,$alignItems:"center",children:[i?ft(yu,{children:ft(e,{size:24})}):ft(e,{size:24}),bt(ya,{children:[bt(ba,{$gap:6,$alignItems:"center",children:[ft(uo,{nowrap:!0,children:t}),n&&ft(s,{value:t,size:Pr.XS}),o&&ft(mo,{...o})]}),i&&ft(uo,{size:co.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:i})]}),r]})};var vu;!function(e){e.S="small",e.M="medium"}(vu||(vu={}));const Cu=Rt.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
+ `,ku=({size:e=vu.M,richTitle:t,search:i,actions:n,children:o})=>{const r=e===vu.S?4:16,a=e===vu.S?12:16;return bt(Cu,{$padding:a,$gap:r,children:[bt(ba,{$gap:r,$justifyContent:"space-between",children:[ft(wu,{...t,children:i&&ft(ou,{...i})}),ft(bu,{actions:n??[]})]}),o]})},Eu=Rt.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})=>zn(e,t,t===Ii.Unknown?"750":"500")};
1863
+ `,Su=Rt.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===Ii.Unknown?zn(e,t,"800"):zn(e,t,"900")+br["015"]};
1872
+ `,Au=({status:e,icon:t,title:i,description:n})=>{const o=Mt(),r=t??_n(e,o),a=[Ai.Default,Ai.Info,Ii.Disabled,Ii.Unknown].includes(e)?o.v2.colors.white[500]:o.v2.colors.black[500];return bt(Eu,{$status:e,children:[ft(Su,{$status:e,children:ft(r,{size:32,fill:a})}),bt(ya,{$gap:2,$justifyContent:"center",children:[ft(uo,{size:co.M,weight:500,color:a,nowrap:!0,children:i}),ft(uo,{size:co.XXS,weight:300,color:a,nowrap:!0,children:n})]})]})},Tu=Rt.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
+ `,Du=["-","N/A"],Iu=({title:e,cells:t})=>{const i=Mt();return bt(Tu,{children:[ft(uo,{size:co.XXS,color:i.v2.colors.grey[150],children:e}),ft(ba,{$gap:32,children:t.map(t=>bt(ya,{$gap:2,children:[!t.isLoading||t.value&&!Du.includes(t.value)?ft(uo,{size:t.label?co.M:co.L,children:t.value}):ft(zs,{scale:.9}),t.label&&ft(uo,{size:co.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},Nu=Rt(ba)`
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
+ `,Ou=Rt.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
+ `,zu=Rt.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
+ `,Fu=Rt.span`
1904
+ flex-shrink: 0;
1905
+ font-size: 14px;
1906
+ color: #5ffb98; // TODO: add to theme
1907
+ `,_u=({value:e,hideCopy:t=!1,onDone:i})=>{const{CopyButton:n}=Wr({onDone:i}),o=Et(null),[r,a]=Ct(!1);return kt(()=>{const e=()=>{if(o.current){const{scrollWidth:e,clientWidth:t}=o.current;a(e>t)}};e();const t=new ResizeObserver(e);return o.current&&t.observe(o.current),()=>{t.disconnect()}},[e]),bt(Nu,{children:[bt(Ou,{$hideCopy:t,children:[ft(zu,{ref:o,children:e}),r&&ft(Fu,{children:"..."})]}),!t&&ft(n,{value:e,size:Pr.XS})]})},Ru=Rt.div`
1908
+ display: flex;
1909
+ align-items: center;
1910
+ justify-content: space-between;
1911
+ width: calc(100%);
1912
+ `,Bu=Rt.div`
1913
+ display: flex;
1914
+ align-items: center;
1915
+ gap: 16px;
1916
+ padding: 6px 0;
1917
+ `,Mu=Rt.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
+ `,Lu=Rt.div`
1926
+ display: flex;
1927
+ align-items: center;
1928
+ gap: 12px;
1929
+ `,Pu=({icon:e,title:t,subTitle:i,actions:n,onClose:o,onCloseDisabled:r})=>bt(Ru,{children:[bt(Bu,{children:[e&&ft(Mu,{children:ft(e,{size:24})}),(t||i)&&bt(ya,{$gap:6,children:[t&&ft(uo,{size:co.S,weight:500,children:t}),i&&ft(uo,{size:co.XXS,children:i})]})]}),bt(Lu,{children:[n?.length?ft(Ur,{icon:ht,size:Pr.M,onClick:()=>alert("todo")}):null,o&&ft(Ur,{icon:Ye,size:Pr.M,onClick:o,disabled:r})]})]}),ju=Rt.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})=>wr.in[e]};
1948
+ `,Uu=Rt.div`
1949
+ display: flex;
1950
+ flex-direction: column;
1951
+ gap: 12px;
1952
+
1953
+ height: calc(100% - ${56}px);
1954
+ overflow-y: auto;
1955
+ `,Wu=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Rr(e),e?Kt(bt(yt,{children:[!t&&ft(Ca,{onClick:o?.onCloseDisabled?void 0:o?.onClose}),bt(ju,{$position:i,$width:n,children:[o&&ft(Pu,{...o}),ft(Uu,{children:r})]})]}),document.body):null),Vu=Rt.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
+ `,Gu=Rt.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
+ `,qu=({label:e,tooltip:t,required:i,width:n,smallAndDark:o})=>e||t||i?bt(ba,{$width:n,$justifyContent:"space-between",children:[e&&ft(Vu,{$smallAndDark:o,children:e}),bt(ba,{$gap:4,children:[i&&ft(Gu,{children:"*"}),t&&ft(Ha,{text:t,withIcon:!0})]})]}):null,Hu=({errorMessage:e,helpMessage:t})=>{const i=Mt(),n=e?i.v2.colors.red[500]:i.v2.colors.silver[200],o=ft(qe,{size:12,fill:n});return e||t?bt(ba,{$gap:4,children:[ft("div",{children:o}),ft(uo,{size:co.XXS,weight:400,color:n,children:e||t})]}):null},Ku=Rt.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:i})=>t?e.v2.colors.grey[600]:i?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&&Bt`
1977
+ &:hover,
1978
+ &:active,
1979
+ &:focus-within {
1980
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1981
+ }
1982
+ `}
1983
+ `,Yu=Rt.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
+ `,Ju=Rt.div`
2010
+ display: flex;
2011
+ align-items: center;
2012
+ justify-content: center;
2013
+ cursor: pointer;
2014
+ `,Xu=({label:e,required:t,tooltip:i,leftIcon:n,rightIcon:o,hasError:r,errorMessage:a,helpMessage:s,type:l=Si.Text,name:c,value:d,onChange:p,disabled:u,maxWidth:h,width:m,small:g=!1,...$})=>{const x=Mt(),f=l===Si.Password,[b,y]=Ct(!1),w=d?x.v2.colors.white[500]:u?x.v2.colors.grey[400]:x.v2.colors.silver[200],v=g?14:18;return bt(ya,{$width:m,$gap:6,children:[ft(qu,{label:e,tooltip:i,required:t}),bt(Ku,{$small:g,$disabled:u,$error:r||!!a,children:[n?ft(n,{size:v,fill:w}):null,ft(Yu,{"data-id":c,type:b||l===Si.Number?Si.Text:l,name:c,value:d,onChange:e=>{e.stopPropagation(),l===Si.Number&&(e.target.value=eo(e.target.value)),p?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:u,$maxWidth:h,$width:m,$small:g,...$}),f?ft(Ju,{onClick:()=>y(e=>!e),children:ft(b?nt:ot,{size:v,fill:w})}):o?ft(o,{size:v,fill:w}):null]}),ft(Hu,{errorMessage:a,helpMessage:s})]})},Zu=({options:e,values:t,setValues:i,withMultiSelect:n,withSearch:o,...r})=>{const a=vt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=vt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return ft(xu,{withMultiSelect:n,withSearch:o,alignX:pu.Left,items:a,selectedIds:t,setSelectedIds:i,children:({ChevronIcon:e,handleClick:t})=>ft(Xu,{placeholder:"Select options...",...r,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},Qu=Rt.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
+ `,eh=Rt(ba)`
2023
+ position: absolute;
2024
+ left: 50%;
2025
+ transform: translateX(-50%);
2026
+ gap: 16px;
2027
+ `,th=({left:e=[],center:t=[],right:i=[]})=>bt(Qu,{children:[ft(ba,{$gap:16,children:e}),ft(eh,{children:t}),ft(ba,{$gap:16,children:i})]}),ih=Rt.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:i})=>e?ft(ih,{$right:i,children:t.map(e=>e?ft(Ha,{text:e.tooltip||"",children:ft(Wp,{...e,variant:Pp.Secondary,size:jp.S,label:e.label})},e.id):null)}):null,oh=({values:e,setValues:t,label:i,tooltip:n,required:o,errorMessage:r,helpMessage:a,placeholder:s,disabled:l})=>{const c=Mt(),d=e.length<=1,p=l,u=l||d&&p;return bt(ya,{$gap:6,children:[ft(qu,{label:i,tooltip:n,required:o}),ft(ya,{$gap:8,children:(e.length?e:[""]).map((i,n)=>{const o=n===e.length-1;return bt(ba,{$gap:8,$alignItems:"center",children:[ft(Xu,{width:"100%",autoFocus:Un(i)&&!d&&o,value:i,onChange:i=>((i,n)=>{const o=[...e||[]];o[n]=i,t(o)})(i.target.value,n),disabled:l,placeholder:s,hasError:!!r}),ft(Wp,{leftIcon:et,variant:Pp.Secondary,size:jp.S,disabled:p,onClick:()=>(()=>{const i=[...e||[]];i.push(""),t(i)})()}),ft(Wp,{leftIcon:u?at:()=>ft(at,{fill:c.v2.colors.red[500]}),variant:Pp.Secondary,size:jp.S,disabled:u,onClick:()=>(i=>{const n=[...e||[]].filter((e,t)=>t!==i);n.length||n.push(""),t(n)})(n)})]},`input-list-${n}`)})}),ft(Hu,{errorMessage:r,helpMessage:a})]})},rh=({col:e,colIdx:t,row:i,rowIdx:n,rowsLength:o,handleChange:r,errorMessage:a,disabled:s})=>{const{keyName:l,placeholder:c,inputType:d,componentType:p,options:u,renderCondition:h}=e,m=i[l];if(h&&!h(i))return null;switch(p){case Ei.Dropdown:case"multi-dropdown":const e=Array.isArray(m)&&u?.filter(e=>m.includes(e.id)).map(e=>e.id)||[],i="multi-dropdown"===p;return ft(Zu,{placeholder:c,options:u||[],withMultiSelect:i,withSearch:i,values:e,setValues:e=>r(l,e,n),disabled:s,hasError:!!a});default:const h=o>1&&0===n&&0===t&&Un(m);return ft(Xu,{placeholder:c,autoFocus:h,type:d,value:m,onChange:({target:{value:e}})=>r(l,e,n),disabled:s,hasError:!!a})}},ah=Rt.table`
2042
+ width: 100%;
2043
+ border-collapse: separate;
2044
+ border-spacing: 0 8px;
2045
+ `,sh=Rt.td`
2046
+ padding: 0 8px 0 0;
2047
+ `,lh=Rt.td`
2048
+ width: 72px;
2049
+ padding-bottom: 2px;
2050
+ vertical-align: bottom;
2051
+ `,ch=({columns:e,values:t,setValues:i,label:n,tooltip:o,required:r,disabled:a,errorMessage:s,helpMessage:l,limitFieldsPerRow:c})=>{const d=Mt(),p=vt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),u=(e,n,o)=>{const r=t.length?oi(t):[oi(p)];r[o][e]=n,i(r)},h=vt(()=>{if(c){const t=[];for(let i=0;;i+=c){const n=e.slice(i,i+c);if(!n.length)break;t.push(n)}return t}return[e]},[c,e]),m=t.length?t:[p];return bt(ya,{$gap:6,children:[ft(qu,{label:n,tooltip:o,required:r}),ft(ah,{children:ft("tbody",{children:m.map((e,n)=>bt(wt,{children:[c&&n>0?ft("tr",{children:ft(sh,{colSpan:h.length})}):null,h.map((o,r)=>bt("tr",{children:[o.map((t,i)=>t.renderCondition&&!t.renderCondition(e)?null:bt(sh,{children:[ft(qu,{label:t.label,tooltip:t.tooltip,smallAndDark:!0}),ft(Ta,{$height:"4px"}),ft(rh,{col:t,colIdx:i,row:e,rowIdx:n,rowsLength:m.length,handleChange:u,disabled:a,errorMessage:s})]},`input-table-row-${n}-col-${r}-${i}`)),0===r&&ft(lh,{children:bt(ba,{$gap:8,$justifyContent:"center",children:[ft(Wp,{leftIcon:et,variant:Pp.Secondary,size:jp.S,disabled:a,onClick:()=>(()=>{const e=oi(t);e.push(oi(p)),i(e)})()}),ft(Wp,{leftIcon:a?at:()=>ft(at,{fill:d.v2.colors.red[500]}),variant:Pp.Secondary,size:jp.S,disabled:a,onClick:()=>(e=>{const n=t.filter((t,i)=>i!==e);n.length||n.push(oi(p)),i(n)})(n)})]})})]},`input-table-matrix-${n}-${r}`))]},`input-table-row-${n}`))})}),ft(Hu,{errorMessage:s,helpMessage:l})]})},dh=Rt.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]+br["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: ${wr.in.center};
2066
+ `,ph=({isOpen:e,onClose:t,richTitle:i,actions:n})=>e?bt(dh,{children:[ft(wu,{...i}),ft(bu,{onAnyClick:t,actions:n})]}):null,uh=Rt.div`
2067
+ border-radius: 100%;
2068
+ background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2069
+ position: relative;
2070
+ `,hh=Rt.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
+ `,mh=Rt(uo)`
2085
+ position: absolute;
2086
+ top: 50%;
2087
+ left: 50%;
2088
+ transform: translate(-50%, -50%);
2089
+ `,gh=({percentage:e})=>bt(uh,{children:[ft(hh,{}),"number"==typeof e?ft(mh,{size:co.M,weight:500,children:`${e}%`}):null]}),$h={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 xh(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return $h[n]?{value:t,unit:n}:{value:t,unit:"px"}}function fh(e){const t=xh(e);return`${t.value}${t.unit}`}const bh=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),yh=({loading:e=!0,color:t,scale:i=1,speedMultiplier:n=1,cssOverride:o={},style:r={},...a})=>{const s=Mt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=xh(2),d=c+4.2,p=d/2+d/5.5,u=4*d*i,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:i,...r,...o},m=(e,t)=>({position:"absolute",width:fh(1.5),height:fh(4),borderRadius:fh(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${bh} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[ft("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),ft("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),ft("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),ft("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),ft("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),ft("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),ft("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),ft("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},wh=Rt.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
+ `,vh=({scale:e,icon:t})=>{const i=Mt();return ft(wh,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:ft(wh,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:ft(wh,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:ft(wh,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:ft(wh,{$size:23*e,$color:"#50F6E8",children:ft(t,{size:16*e,fill:i.v2.colors.black[500]})})})})})})},Ch=434,kh=635,Eh=Rt.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
+ `,Sh=Rt.div`
2108
+ position: absolute;
2109
+ top: 50%;
2110
+ left: 50%;
2111
+ transform: translate(-50%, -50%);
2112
+ `,Ah=()=>bt(Eh,{children:[ft(Sh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[ft("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)"}),ft("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:[ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),ft("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),ft("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),ft("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),ft("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),ft("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),ft("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),ft(Sh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[ft("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)"}),ft("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:[ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),ft("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),ft("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),ft("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),ft("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),ft("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),ft("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),ft("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),ft(Sh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[ft("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)"}),ft("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:[ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),ft(Sh,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[ft("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)"}),ft("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:[ft("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),ft("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),ft("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),ft("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),ft("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),ft("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),ft("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),ft("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),ft("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),ft(Sh,{children:ft(q,{size:112})})]}),Th=Pt`
2113
+ 0% {
2114
+ background-position: 0% 50%;
2115
+ }
2116
+ 100% {
2117
+ background-position: 100% 50%;
2118
+ }
2119
+ `,Dh=Rt(uo)`
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: ${Th} 1s reverse linear infinite;
2125
+ `,Ih=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),o=i%60;return`${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`},Nh=({icon:e,title:t,titleColor:i,titleSize:n=co.S,subTitle:o,subTitleColor:r,subTitleSize:a=co.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=mt})=>{const $=Mt(),[x,f]=Ct(()=>s?Ih(s):"");kt(()=>{if(!s)return;f(Ih(s));const e=setInterval(()=>f(Ih(s)),1e3);return()=>clearInterval(e)},[s]);const b=i||$.v2.colors.white[500],y=r||$.v2.colors.silver[200],w=c||$.v2.colors.black[500];return bt(ya,{$gap:16,$alignItems:"center",children:[m?ft(vh,{scale:1.7,icon:g}):d?ft(gh,{percentage:h}):p?ft(yh,{scale:u}):null,(t||o||s||e)&&bt(ya,{$gap:8,$alignItems:"center",children:[bt(ba,{$gap:4,children:[e&&ft(e,{}),l?ft(Dh,{align:"center",size:n,$titleColor:b,$gradientColor:w,children:t}):ft(uo,{align:"center",size:n,color:b,children:t})]}),o?ft(uo,{align:"center",size:a,color:y,children:o}):null,x?ft(uo,{align:"center",size:a,color:b,children:x}):null]})]})},Oh=Rt.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: ${wr.in.center};
2138
+ `,zh=Rt.div`
2139
+ position: relative;
2140
+ `,Fh=Rt.div`
2141
+ position: absolute;
2142
+ top: 16px;
2143
+ left: 16px;
2144
+ `,_h=({isOpen:e,hideOverlay:t=!1,relativeToParent:i=!1,onBack:n,onClose:o,children:r})=>{if(Rr(e),!e)return null;const a=bt(yt,{children:[!t&&ft(Ca,{$relativeToParent:i,onClick:o}),ft(Oh,{$relativeToParent:i,children:bt(zh,{children:[n&&ft(Fh,{children:ft(Ur,{icon:e=>ft(dt,{rotate:-90,...e}),size:Pr.L,onClick:n})}),r]})})]});return i?a:Kt(a,document.body)},Rh=Rt.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
+ `,Bh=({height:e,icons:t})=>ft(Rh,{$height:e,children:t.map(({id:e,selected:t,icon:i,onClick:n})=>ft(Wp,{label:"",leftIcon:i,iconSize:24,onClick:n,variant:t?Pp.Primary:Pp.Text},e))}),Mh=Rt.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
+ `,Lh=({icon:e=Ye,title:t="No data",subTitle:i,button:n})=>{const o=Mt().v2.colors.silver[200];return bt(ya,{$gap:12,$alignItems:"center",children:[ft(Mh,{children:ft(e,{size:32,fill:o})}),bt(ya,{$gap:4,$alignItems:"center",children:[ft(uo,{size:co.S,align:"center",children:t}),i&&ft(uo,{size:co.XXS,align:"center",color:o,children:i})]}),n&&ft(Wp,{variant:Pp.Secondary,...n})]})},Ph=Rt.div`
2163
+ display: flex;
2164
+ align-items: center;
2165
+ gap: 10px;
2166
+ ${({$fullWidth:e})=>e&&Bt`
2167
+ width: calc(100% - 16px);
2168
+ `}
2169
+ padding: 4px 12px 4px 4px;
2170
+ border-radius: 8px;
2171
+ background-color: ${({theme:e,$status:t})=>zn(e,t,[Ai.Info].includes(t)?"1000":"900")};
2172
+ `,jh=Rt.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})=>zn(e,t,[Ai.Info].includes(t)?"900":"800")};
2180
+ `,Uh=Rt.div`
2181
+ margin-left: auto;
2182
+ margin-right: 8px;
2183
+ cursor: pointer;
2184
+ &:hover {
2185
+ transform: scale(1.2);
2186
+ }
2187
+ `,Wh=({status:e,message:t,action:i,fullWidth:n,smallIcon:o})=>{const r=Mt(),a=_n(e,r),s=zn(r,e,e===Ai.Default?"300":e===Ai.Info?"400":"500");return bt(Ph,{$status:e,$fullWidth:n,children:[ft("div",{children:ft(jh,{$status:e,$smallIcon:o,children:ft(a,{size:o?18:24})})}),ft(uo,{color:s,size:co.XXXS,weight:400,children:t}),i&&ft(Uh,{onClick:i.onClick,children:ft(uo,{color:s,size:co.XXS,weight:500,underline:!0,children:i.label})})]})};var Vh;!function(e){e.S="small",e.L="large"}(Vh||(Vh={}));const Gh=Rt.div`
2188
+ width: fit-content;
2189
+ display: flex;
2190
+ align-items: center;
2191
+ gap: 8px;
2192
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2193
+ `,qh=Rt.div`
2194
+ width: ${({$size:e})=>e===Vh.S?"16px":"20px"};
2195
+ height: ${({$size:e})=>e===Vh.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
+ `,Hh=({label:e,value:t,onChange:i,disabled:n,size:o=Vh.L})=>{const r=Mt(),[a,s]=Ct(!1),l=t,c=o===Vh.S?6:8,d=n?r.v2.colors.grey[400]:r.v2.colors.white[500],p=l?"transparent":n?r.v2.colors.grey[700]:a?r.v2.colors.silver[400]:r.v2.colors.silver[600],u=n?r.v2.colors.grey[600]:l?r.v2.colors.purple[500]:r.v2.colors.silver[900];return bt(Gh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||i(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[ft(qh,{$size:o,$borderColor:p,$backgroundColor:u,children:t?ft(gt,{size:c,fill:d}):null}),e&&ft(uo,{size:o===Vh.S?co.XXS:co.XS,children:e})]})},Kh=Rt.div`
2203
+ display: flex;
2204
+ flex-direction: ${({$flexDirection:e})=>e};
2205
+ gap: ${({$gap:e})=>e}px;
2206
+ `,Yh=({label:e,direction:t,disabled:i,size:n,options:o,values:r,setValues:a})=>bt(Kh,{$flexDirection:t===$i.Horizontal?"row":"column",$gap:t===$i.Horizontal?16:8,children:[e&&ft(uo,{children:e}),o.map(t=>ft(Hh,{...t,value:r[t.id],onChange:e=>{return i=t.id,n=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:i,size:n},`${e}-radio-${t.id}`))]});var Jh;!function(e){e.Data="data",e.Pretty="pretty"}(Jh||(Jh={}));const Xh=Rt.div`
2207
+ height: ${({$maxHeight:e})=>e};
2208
+ width: 100%;
2209
+ display: flex;
2210
+ flex-direction: column;
2211
+ overflow: hidden;
2212
+ `,Zh=Rt.div`
2213
+ width: 100%;
2214
+ flex: 1;
2215
+ display: flex;
2216
+ flex-direction: column;
2217
+ overflow: hidden;
2218
+ `,Qh=Rt.div`
2219
+ flex-shrink: 0;
2220
+ z-index: 1;
2221
+ `,em=Rt.div`
2222
+ display: flex;
2223
+ width: 100%;
2224
+ `,tm=Rt.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 Bt`
2234
+ background-color: ${t};
2235
+ `;switch(e){case Jh.Data:return Bt`
2236
+ background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2237
+ `;case Jh.Pretty:return Bt`
2238
+ background-color: transparent;
2239
+ `;default:return""}}}
2240
+ `,im=Rt.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
+ `,nm=Rt.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:i,$isLastRow:n,$isFirstCell:o,$isLastCell:r})=>{switch(e){case Jh.Data:return Bt`
2261
+ border-bottom: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
2262
+ border-radius: ${n?o?"0 0 0 4px":r?"0 0 4px 0":"0":"0"};
2263
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:i?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2264
+ `;case Jh.Pretty:return Bt`
2265
+ border: none;
2266
+ border-radius: ${o?"12px 0 0 12px":r?"0 12px 12px 0":"0"};
2267
+ background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:i?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2268
+ `;default:return""}}}
2269
+ `,om=Rt.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
+ `,rm=({variant:e,columns:t,rows:i,getRowActions:n,rowActionsPushRightPosition:o,withCheckboxes:r})=>{const[a,s]=Ct(null),l=vt(()=>i.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=a===c,x=n(l),f=(e,t)=>({$isLastRow:c===i.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return bt(em,{children:[r&&ft(nm,{$variant:e,style:{flex:"0 0 68px"},...f(!0,!1),children:!g&&ft(lu,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:i,textAlign:n,minWidth:a},s)=>{const l=d.find(e=>e.key===i),p=0===s&&!r,u=s===t.length-1,h="right"===n?"flex-end":"center"===n?"center":"flex-start";return bt(nm,{$variant:e,$minWidth:a,...f(p,u),children:[ft(ba,{$width:"100%",$justifyContent:h,children:l?.component?ft(l.component,{}):ft(uo,{size:co.XS,children:l?.rawValue||"-"})}),x.length?ft(nh,{isOpen:$&&u,actions:x,positionRight:o}):null]},`row-${c}-cell-${s}`)})]},`row-${c}`)}),[i,a,n,o,r,t]);return ft(Qd,{gap:e===Jh.Pretty?8:0,elements:l})},am=({columnKey:e,sortDirection:t,sortByKey:i,onSort:n})=>{const o=Mt(),r=i===e?o.v2.colors.white[500]:o.v2.colors.grey[400],a=t===xi.Ascending?0:180;return ft(Ur,{icon:e=>ft(dt,{fill:r,rotate:a,...e}),onClick:()=>n(e)})},sm=({columnKey:e,filters:t,onFilter:i,rowsUnfiltered:n})=>{const o=Mt(),r=t[e]?.length?o.v2.colors.white[500]:o.v2.colors.grey[400],a=vt(()=>Array.from(new Set(n.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})),[n,e]);return ft(xu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>i(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>ft($t,{fill:r,...e})}})},lm=({variant:e,backgroundColor:t,columns:i,rowsUnfiltered:n,sortDirection:o,sortByKey:r,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>bt(em,{children:[c&&ft(tm,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:ft(lu,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),i.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},$)=>{const x=0===$&&!c,f=$===i.length-1;return bt(tm,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:f,children:[bt(om,{$textAlign:g,children:[ft(uo,{size:co.XS,align:g,children:p}),!u&&ft(am,{columnKey:d,sortDirection:o,sortByKey:r,onSort:a}),!h&&ft(sm,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})]}),!f&&e===Jh.Data&&ft(im,{})]},`column-${d}`)})]}),cm=({variant:e,maxHeight:t="256px",headerBackgroundColor:i,isLoading:n,columns:o,rows:r,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=Ct(xi.Ascending),[p,u]=Ct(""),[h,m]=Ct({}),g=St(e=>{u(e),d(e=>e===xi.Ascending?xi.Descending:xi.Ascending)},[]),$=St((e,t)=>{m(i=>({...i,[e]:t}))},[]),x=vt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i&&(i.rawValue?.toString()||i.component?.({})?.props?.children?.toString())||""};return(p?[...r].sort((t,i)=>{const n=e(t,p),o=e(i,p);return(c===xi.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)))(n,o)}):r).filter(t=>{for(const[i,n]of Object.entries(h))if(n.length&&!n.includes(e(t,i)))return!1;return!0})},[r,p,c,h]),{partiallySelected:f,allSelected:b}=vt(()=>{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 ft(Xh,{$maxHeight:t,children:bt(Zh,{$variant:e,children:[ft(Qh,{children:ft(lm,{variant:e,backgroundColor:i,columns:o,rowsUnfiltered:r,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:$,withCheckboxes:l,partiallySelected:f,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),x.length?ft(rm,{variant:e,columns:o,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}):ft(wa,{style:{marginTop:"0.5rem"},children:n?ft(Nh,{withSpinner:!0}):ft(Lh,{})})]})})},dm=Rt.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?Bt`
2285
+ cursor: not-allowed;
2286
+ background-color: ${({theme:e})=>e.v2.colors.grey[800]};
2287
+ `:t?Bt`
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
+ `:Bt`
2297
+ background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2298
+ `}
2299
+ `,pm=({label:e,leftIcon:t,rightIcon:i,onClick:n,disabled:o})=>{const r=Mt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500];return bt(dm,{$disabled:o,$withClick:!!n,onClick:()=>!o&&n?.(),children:[t&&ft(t,{fill:a,size:16}),ft(uo,{color:a,size:co.XS,nowrap:!0,children:e}),i&&ft(i,{fill:a,size:16})]})},um=Rt.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:i})=>t?e.v2.colors.grey[600]:i?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&&Bt`
2311
+ &:hover,
2312
+ &:active,
2313
+ &:focus-within {
2314
+ border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2315
+ }
2316
+ `}
2317
+ `,hm=Rt.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
+ `,mm=({label:e,required:t,tooltip:i,errorMessage:n,helpMessage:o,name:r,value:a,onChange:s,disabled:l,maxWidth:c,minHeight:d,...p})=>{const u=Et(null),h=()=>{u.current&&(u.current.style.height="auto",u.current.style.height=`${u.current.scrollHeight}px`)};return bt(ya,{$gap:6,children:[ft(qu,{label:e,tooltip:i,required:t}),ft(um,{$disabled:l,$error:!!n,children:ft(hm,{ref:u,"data-id":r,name:r,value:a,onChange:e=>{e.stopPropagation(),h(),s?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:h,onBlur:h,disabled:l,$maxWidth:c,$minHeight:d,...p})}),ft(Hu,{errorMessage:n,helpMessage:o})]})};var gm,$m,xm;!function(e){e.Default="default",e.SuccessError="successError"}(gm||(gm={})),function(e){e.S="small",e.L="large"}($m||($m={})),function(e){e.Left="left",e.Right="right"}(xm||(xm={}));const fm=Rt.div`
2343
+ display: flex;
2344
+ align-items: center;
2345
+ gap: ${({$gap:e})=>e}px;
2346
+ `,bm=Rt.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:i,$variant:n,$value:o,theme:r})=>{if(e)return r.v2.colors.grey[800];if(t&&o)return t;if(i&&!o)return i;switch(n){case gm.SuccessError:return o?r.v2.colors.green[500]:r.v2.colors.red[500];case gm.Default:default:return o?r.v2.colors.purple[500]:r.v2.colors.grey[400]}}};
2357
+
2358
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2359
+ `,ym=Rt.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
+ `,wm=({variant:e=gm.Default,size:t=$m.L,label:i,labelAlign:n=xm.Left,labelColor:o,tooltip:r,value:a,onChange:s,disabled:l,withIcon:c,onIcon:d=He,offIcon:p=Ye,onBgColor:u,offBgColor:h})=>{const m=Mt(),g=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=t===$m.S?10:16,x=o||m.v2.colors.white[500],f=t===$m.S?co.XXXS:co.XS,b=t===$m.S?8:12;return bt(fm,{$gap:b,children:[i&&n===xm.Left&&ft(uo,{color:x,size:f,nowrap:!0,children:i}),bt(bm,{$onBgColor:u,$offBgColor:h,$variant:e,$size:$,$value:a,$disabled:l,onClick:e=>{e.stopPropagation(),l||s(!a)},children:[ft(ym,{$color:g,$size:$,$value:a,$disabled:l}),c&&bt(yt,{children:[ft(d,{size:$,fill:g}),ft(p,{size:$,fill:g})]})]}),i&&n===xm.Right&&ft(uo,{color:x,size:f,nowrap:!0,children:i}),r&&ft(Ha,{text:r,withIcon:!0})]})},vm=Rt.div`
2370
+ display: flex;
2371
+ flex-direction: ${({$direction:e})=>e===$i.Horizontal?"row":"column"};
2372
+ gap: ${({$direction:e})=>e===$i.Horizontal?16:8}px;
2373
+ `,Cm=({direction:e=$i.Vertical,title:t,size:i,disabled:n,options:o,values:r,setValues:a})=>{const s=i===$m.S?co.XS:co.S;return bt(vm,{$direction:e,children:[t&&ft(uo,{size:s,children:t}),o.map(e=>ft(wm,{...e,labelAlign:xm.Right,value:r[e.id],onChange:t=>{return i=e.id,n=t,void a(e=>{const t={...e};return i?t[i]=n:o.forEach(e=>t[e.id]=n),t});var i,n},disabled:n,size:i},`${t}-toggle-${e.id}`))]})},km=Rt.div`
2374
+ min-width: 530px;
2375
+ `,Em=Rt.div`
2376
+ display: flex;
2377
+ flex-direction: column;
2378
+ align-items: center;
2379
+ gap: 16px;
2380
+ padding: 24px;
2381
+ `,Sm=Rt.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
+ `,Am=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Mt();return ft(_h,{isOpen:n,onClose:o,...c,children:bt(km,{children:[bt(Em,{children:[e&&ft(e,{}),ft(uo,{size:co.M,weight:500,color:d.v2.colors.white[500],children:t}),ft(ya,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>ft(uo,{size:co.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&bt(Sm,{children:[ft(Wp,{variant:Pp.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&ft(Wp,{variant:Pp.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{qo as $,di as A,Wp as B,lu as C,La as D,Qn as E,ya as F,Ki as G,Zn as H,Xu as I,Pi as J,pi as K,Nh as L,Go as M,Lh as N,Ha as O,ji as P,Wi as Q,wu as R,Qd as S,wm as T,Xi as U,vh as V,Am as W,Ji as X,Ui as Y,Li as Z,mo as _,qu as a,Nd as a$,$n as a0,br as a1,Lo as a2,Po as a3,zr as a4,an as a5,rn as a6,Ur as a7,Pr as a8,Uo as a9,pu as aA,Xp as aB,un as aC,na as aD,fu as aE,sn as aF,xa as aG,cm as aH,Jh as aI,ph as aJ,Fn as aK,zs as aL,_u as aM,Er as aN,bu as aO,Au as aP,Iu as aQ,Vi as aR,fa as aS,Ac as aT,Ll as aU,xs as aV,vo as aW,ql as aX,_d as aY,Rp as aZ,Ud as a_,Wo as aa,yn as ab,Zp as ac,Zo as ad,Vo as ae,oa as af,pa as ag,la as ah,Ii as ai,fi as aj,$m as ak,lo as al,da as am,ca as an,lr as ao,nn as ap,Ci as aq,rr as ar,Wr as as,Yr as at,$a as au,Vn as av,ku as aw,er as ax,xu as ay,uu as az,Hu as b,up as b$,Ja as b0,Hs as b1,cp as b2,rp as b3,Hc as b4,Kd as b5,zp as b6,bo as b7,Qo as b8,md as b9,Ea as bA,Sa as bB,Cd as bC,wn as bD,Aa as bE,Sc as bF,vl as bG,Lp as bH,Tr as bI,ro as bJ,Or as bK,cr as bL,hl as bM,Mi as bN,dn as bO,En as bP,bn as bQ,fp as bR,Lr as bS,ln as bT,si as bU,en as bV,ai as bW,Br as bX,Xr as bY,Va as bZ,va as b_,Gc as ba,ms as bb,_r as bc,vn as bd,jo as be,Us as bf,Lc as bg,hn as bh,vi as bi,nr as bj,so as bk,Ba as bl,ka as bm,rs as bn,Ro as bo,Xd as bp,mn as bq,qs as br,Di as bs,Jn as bt,_n as bu,ir as bv,ri as bw,il as bx,Cn as by,sl as bz,Si as c,Bi as c$,Jr as c0,Yn as c1,Xl as c2,on as c3,Zr as c4,Vr as c5,ur as c6,_s as c7,Xs as c8,ki as c9,Gn as cA,to as cB,ea as cC,Ri as cD,wi as cE,hc as cF,xn as cG,ga as cH,rl as cI,gn as cJ,cc as cK,Jo as cL,pn as cM,ys as cN,Nn as cO,Qs as cP,As as cQ,li as cR,Fi as cS,mi as cT,_i as cU,zi as cV,yi as cW,Ti as cX,gi as cY,$i as cZ,hi as c_,Xn as ca,qr as cb,Pn as cc,ei as cd,Zi as ce,Sp as cf,Oc as cg,An as ch,Dp as ci,or as cj,Kr as ck,hs as cl,wr as cm,Mn as cn,Mr as co,Oi as cp,Mo as cq,_l as cr,Js as cs,Sd as ct,Rn as cu,jn as cv,Ys as cw,bl as cx,wl as cy,nh as cz,ch as d,_h as d$,bi as d0,Hi as d1,qi as d2,Gi as d3,Ni as d4,Qi as d5,Yi as d6,xi as d7,ui as d8,ti as d9,ia as dA,aa as dB,sa as dC,Rr as dD,Tl as dE,kl as dF,Vc as dG,dd as dH,od as dI,$d as dJ,wd as dK,el as dL,Gd as dM,Ca as dN,Xc as dO,Ta as dP,$o as dQ,xo as dR,fo as dS,kh as dT,Ch as dU,Ah as dV,Hp as dW,Kp as dX,du as dY,ru as dZ,th as d_,cn as da,fn as db,kn as dc,Sn as dd,Tn as de,Dn as df,In as dg,On as dh,zn as di,Bn as dj,Wn as dk,qn as dl,Kn as dm,eo as dn,io as dp,no as dq,oo as dr,ao as ds,Ho as dt,Ko as du,Yo as dv,fr as dw,Sr as dx,yr as dy,xr as dz,xm as e,Bh as e0,Hh as e1,Yh as e2,Vh as e3,vu as e4,pm as e5,Cm as e6,gm as e7,oh as f,ba as g,jp as h,Un as i,Pp as j,Ei as k,ci as l,oi as m,wa as n,Wu as o,co as p,ou as q,Wh as r,Ai as s,uo as t,tn as u,tu as v,mm as w,ni as x,Zu as y,Ln as z};