@odigos/ui-kit 0.0.213 → 0.0.214

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.
@@ -1,2388 +0,0 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon as r,DeleteAttributeIcon as i,AddClusterInfoIcon as n,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as f,PhpLogo as x,CPlusPlusLogo as y,CSharpLogo as b,DotnetLogo as $,PythonLogo as v,NodejsLogo as w,GoLogo as S,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as E,UptraceLogo as A,TraceloopLogo as D,TingyunLogo as T,TempoLogo as N,TelemetryHubLogo as I,SumoLogicLogo as _,SplunkLogo as O,SignozLogo as R,SeqLogo as F,AwsS3Logo as z,QuickwitLogo as L,GigapipeLogo as P,QrynLogo as M,PrometheusLogo as B,OpenTelemetryLogo as U,OracleLogo as j,OpsVerseLogo as W,OpenObserveLogo as G,OneUptimeLogo as V,OdigosLogo as X,ObserveLogo as H,NewRelicLogo as J,MiddlewareLogo as K,LumigoLogo as q,LokiLogo as Y,LogzioLogo as Q,LightstepLogo as Z,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as oe,InstanaLogo as re,HyperDxLogo as ie,HoneycombLogo as ne,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as fe,ClickhouseLogo as xe,ChronosphereLogo as ye,ChecklyLogo as be,CauselyLogo as $e,BonreeLogo as ve,BetterStackLogo as we,AzureMonitorLogo as Se,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Ee,AlibabaCloudLogo as Ae,AlaudaLogo as De,InstrumentationRuleIcon as Te,DestinationIcon as Ne,SourceIcon as Ie,NamespacesIcon as _e,PayloadCollectionIcon as Oe,HeadersCollectionIcon as Re,CustomInstrumentationIcon as Fe,CodeAttributesIcon as ze,TracesIcon as Le,MetricsIcon as Pe,LogsIcon as Me,VmLogo as Be,QuestionCircleIcon as Ue,XSquareIcon as je,VSquareIcon as We,ExclamationTriangleIcon as Ge,ExclamationCircleIcon as Ve,ISquareIcon as Xe,VIcon as He,CopyIcon as Je,XIcon as Ke,MinusIcon as qe,ListIcon as Ye,CodeIcon as Qe,ExtendArrowIcon as Ze,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as rt,EyeOpenIcon as it,SearchIcon as nt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as ft}from"../icons.js";import{create as xt}from"zustand";import{jsx as yt,jsxs as bt,Fragment as $t}from"react/jsx-runtime";import{Fragment as vt,useMemo as wt,useState as St,useEffect as Ct,useRef as kt,useCallback as Et,useContext as At,createContext as Dt,forwardRef as Tt,memo as Nt}from"react";import It from"javascript-time-ago";import{p as _t,c as Ot,s as Rt,l as Ft}from"./vendor-C150cdxb.js";import zt,{css as Lt,useTheme as Pt,ThemeProvider as Mt,keyframes as Bt}from"styled-components";import{Handle as Ut,Position as jt,ReactFlowProvider as Wt,ReactFlow as Gt,Controls as Vt,useReactFlow as Xt}from"@xyflow/react";import Ht,{createPortal as Jt}from"react-dom";import{Highlight as Kt,themes as qt}from"prism-react-renderer";import{ErrorBoundary as Yt}from"react-error-boundary";import Qt from"lottie-react";import{VList as Zt}from"virtua";const eo=e=>e.charAt(0).toUpperCase()+e.slice(1),to=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,o(r)]:[e,r]));return Object.entries(e).reduce((e,[r,i])=>{try{const n=JSON.parse(i);Array.isArray(n)?e[r]=JSON.stringify(t(n)):e[r]="object"==typeof n&&null!==n?JSON.stringify(o(n)):i}catch(n){"object"==typeof i&&null!==i?Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]=JSON.stringify(o(i)):e[r]=i}return e},{})};var oo;!function(e){e.SIGNALS="SIGNALS"}(oo||(oo={}));const ro=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,i,n]=e;if(r===oo.SIGNALS)switch(i){case"INCLUDES":return t?.includes(n);case"EXCLUDES":return!t?.includes(n);default:return!0}const a=o.find(e=>e.name===r||e.key===r);if(!a)return!1;switch(i){case"===":case"==":return a.value===n;case"!==":case"!=":return a.value!==n;case">":return Number(a.value)>Number(n);case"<":return Number(a.value)<Number(n);case">=":return Number(a.value)>=Number(n);case"<=":return Number(a.value)<=Number(n);default:return!0}},io=e=>JSON.parse(JSON.stringify(e)),no=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),ao=(e,t,o)=>{const r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++)r[e]in i&&"object"==typeof i[r[e]]||(i[r[e]]={}),i=i[r[e]];i[r[r.length-1]]=o},so=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},lo=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},co=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var po,uo,ho,mo,go,fo,xo,yo,bo,$o,vo,wo,So,Co,ko,Eo,Ao,Do,To,No,Io,_o,Oo,Ro,Fo,zo,Lo,Po,Mo,Bo,Uo,jo,Wo,Go,Vo,Xo,Ho,Jo,Ko,qo,Yo,Qo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(po||(po={})),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"}(uo||(uo={})),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"}(ho||(ho={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(mo||(mo={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(go||(go={})),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"}(fo||(fo={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(xo||(xo={})),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"}(yo||(yo={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(bo||(bo={})),function(e){e.Ascending="ascending",e.Descending="descending"}($o||($o={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(vo||(vo={})),function(e){e.K8s="k8s",e.Vm="vm"}(wo||(wo={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(So||(So={})),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"}(Co||(Co={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(ko||(ko={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(Eo||(Eo={})),function(e){e.DataStream="DataStream"}(Ao||(Ao={})),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"}(Do||(Do={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(To||(To={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(No||(No={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Io||(Io={})),function(e){e.Loading="loading",e.Disabled="disabled"}(_o||(_o={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Oo||(Oo={})),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"}(Ro||(Ro={})),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"}(Fo||(Fo={})),function(e){e.Labeled="labeled"}(zo||(zo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Lo||(Lo={})),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"}(Po||(Po={})),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"}(Mo||(Mo={})),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"}(Bo||(Bo={})),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"}(Uo||(Uo={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(jo||(jo={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Wo||(Wo={})),function(e){e.HeaderKeys="headerKeys"}(Go||(Go={})),function(e){e.Java="java",e.Golang="golang"}(Vo||(Vo={}));class Zo{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 er{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,r){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=r||""}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"}(Xo||(Xo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ho||(Ho={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Jo||(Jo={})),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"}(Ko||(Ko={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(qo||(qo={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Yo||(Yo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Qo||(Qo={}));const tr={[Yo.Logs]:Qo.Logs,[Yo.Metrics]:Qo.Metrics,[Yo.Traces]:Qo.Traces},or={[Qo.Logs]:Yo.Logs,[Qo.Metrics]:Yo.Metrics,[Qo.Traces]:Yo.Traces},rr=(e,t)=>{let o=[...e];return t.namespaces?.length&&(o=o.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(o=o.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(o=o.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(o=o.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:o})=>t===`${e}#${o}`)))),t.podsAgentInjectionStatus?.length&&(o=o.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===No.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},ir="https://docs.odigos.io",nr="default",ar="this-cluster",sr="This Cluster",lr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},cr={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)'},dr={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos."},pr={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},ur=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===nr&&!e.dataStreamNames.length):[],hr=(e,t="",o={})=>{for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],n=t?`${t}.${r}`:r;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const r=`${n}[${t}]`;null!==e&&"object"==typeof e?hr(e,r,o):o[r]=e}):o[n]=i:hr(i,n,o)}return o},mr=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]}`},gr=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`}},fr=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const r=e[t%16];t++;return("1"===o?r:"0"===o?63&r|128:15&r|64).toString(16)})},xr=l=>{const c=l?.toLowerCase(),d=c?.includes(po.Samplers),p=c===po.Attributes;if(d)return e;if(p)return t;return{[uo.K8sAttributes]:a,[uo.AddClusterInfo]:n,[uo.DeleteAttributes]:i,[uo.PiiMasking]:t,[uo.RenameAttributes]:r,[uo.URLTemplatization]:o,[uo.ErrorSampler]:e,[uo.ProbabilisticSampler]:e,[uo.LatencySampler]:e,[uo.ServiceNameSampler]:e,[uo.SpanAttributeSampler]:e}[l]||s},yr=e=>{const t=e?.filter(({status:e})=>e===No.Error),o=e?.filter(({status:e})=>e===No.Warning),r=e?.filter(({status:e})=>e===_o.Disabled),i=e?.filter(({status:e})=>e===_o.Loading),n=t.length>0,a=o.length>0,s=r.length>0;return{errors:t,hasErrors:n,warnings:o,hasWarnings:a,disableds:r,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:n?No.Error:a?No.Warning:s?No.Info:void 0}},br=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},$r=e=>({[Co.Java]:C,[Co.Go]:S,[Co.JavaScript]:w,[Co.Python]:v,[Co.DotNet]:$,[Co.CSharp]:b,[Co.CPlusPlus]:y,[Co.Php]:x,[Co.Ruby]:f,[Co.Rust]:g,[Co.Swift]:m,[Co.Elixir]:h,[Co.MySql]:u,[Co.Nginx]:p,[Co.Postgres]:d,[Co.Redis]:c,[Co.Kafka]:l,[Co.Ignored]:s,[Co.Unknown]:s,[Co.Processing]:s,[Co.NoContainers]:s,[Co.NoRunningPods]:s}[e]||s),vr=e=>e?.map(({language:e})=>$r(e))||[],wr=e=>e?.map(e=>$r(e))||[],Sr=e=>e.detectedLanguages?.length?wr(e.detectedLanguages):vr(e.containers),Cr=(e,t)=>{const o={[Po.Alauda]:De,[Po.AlibabaCloud]:Ae,[Po.AppDynamics]:Ee,[Po.Axiom]:ke,[Po.AzureBlob]:Ce,[Po.AzureMonitor]:Se,[Po.BetterStack]:we,[Po.Bonree]:ve,[Po.Causely]:$e,[Po.Checkly]:be,[Po.Chronosphere]:ye,[Po.ClickHouse]:xe,[Po.CloudWatch]:fe,[Po.Coralogix]:ge,[Po.Dash0]:me,[Po.Datadog]:he,[Po.Dynamic]:U,[Po.Dynatrace]:ue,[Po.ElasticApm]:pe,[Po.ElasticSearch]:de,[Po.GoogleCloud]:ce,[Po.GoogleCloudOTLP]:ce,[Po.GrafanaCloudLoki]:le,[Po.GrafanaCloudPrometheus]:le,[Po.GrafanaCloudTempo]:le,[Po.Greptime]:se,[Po.Groundcover]:ae,[Po.Honeycomb]:ne,[Po.HyperDX]:ie,[Po.Instana]:re,[Po.Jaeger]:oe,[Po.Kafka]:l,[Po.Kloudmate]:te,[Po.Last9]:ee,[Po.Lightstep]:Z,[Po.LogzIo]:Q,[Po.Loki]:Y,[Po.Lumigo]:q,[Po.Middleware]:K,[Po.NewRelic]:J,[Po.Observe]:H,[Po.Odigos]:X,[Po.OneUptime]:V,[Po.OpenObserve]:G,[Po.Opsverse]:W,[Po.Oracle]:j,[Po.OTLP]:U,[Po.OTLPHttp]:U,[Po.Prometheus]:B,[Po.Qryn]:M,[Po.QrynOss]:P,[Po.Quickwit]:L,[Po.S3]:z,[Po.Seq]:F,[Po.Signalfx]:O,[Po.Signoz]:R,[Po.Splunk]:O,[Po.SplunkSapm]:O,[Po.SplunkOtlp]:O,[Po.SumoLogic]:_,[Po.TelemetryHub]:I,[Po.Tempo]:N,[Po.Tingyun]:T,[Po.Traceloop]:D,[Po.Uptrace]:A,[Po.VictoriaMetrics]:E,[Po.VictoriaMetricsCloud]:E,[Po.XRay]:k}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},kr=e=>({[Eo.Namespace]:_e,[Eo.Source]:Ie,[Eo.Destination]:Ne,[Eo.Action]:o,[Eo.InstrumentationRule]:Te}[e]),Er=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,Ar=(e,t,o)=>{const{extended:r,prioritizeDisplayName:i}=o||{};let n="",a="";switch(t){case Eo.InstrumentationRule:const t=e;n=t.type,a=t.ruleName;break;case Eo.Source:const o=e;n=o.name,a=o.otelServiceName;break;case Eo.Action:const r=e;n=r.type,a=r.name;break;case Eo.Destination:const i=e;n=i.destinationType.displayName,a=i.name;break;case Eo.Namespace:const s=e;n=s.name,a=s.name}return r?n+(a&&a!==n?` (${a})`:""):i&&a||n},Dr=(e,t)=>{if(t===Eo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,r]=e.split("=");t[o]=r}),t}return e},Tr=e=>({[jo.CodeAttributes]:ze,[jo.CustomInstrumentation]:Fe,[jo.HeadersCollection]:Re,[jo.PayloadCollection]:Oe,[jo.UnknownType]:s}[e]||s),Nr=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?Co.Processing:Co.NoRunningPods;const r=o?.filter(e=>e.language!==Co.Ignored);if(!r.length)return Co.NoContainers;const i=r.find(e=>e.language!==Co.Unknown);return i?i.language:Co.Unknown},Ir=(e,t,o)=>(t===Eo.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},_r=e=>({[Yo.Logs]:Me,[Yo.Metrics]:Pe,[Yo.Traces]:Le}[e]),Or=e=>{if(!e)return X;return{[wo.K8s]:a,[wo.Vm]:Be}[e]},Rr=e=>{if(!e)return"Unknown";return{[wo.K8s]:"Kubernetes Cluster",[wo.Vm]:"Virtual Machine"}[e]},Fr=(e,t,o)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[o],i=[];return void 0!==r&&(Array.isArray(r)?i.push(...r):i.push(r)),i.push(...Fr(e,t,o)),i}):[]},zr=(e,t)=>{if(t===Eo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Lr=(e,t,o)=>{switch(t){case No.Default:return e.v2.colors.purple[o];case No.Info:return e.v2.colors.blue[o];case No.Error:return e.v2.colors.red[o];case No.Warning:return e.v2.colors.yellow[o];case No.Success:return e.v2.colors.green[o];case Oo.Disabled:case Oo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},Pr=e=>{switch(e){case Ho.Updating:case Jo.Pending:case Ko.ContainerCreating:case qo.Waiting:return No.Info;case Ho.Healthy:case Jo.Succeeded:case Jo.Running:case Ko.Running:case qo.Running:return No.Success;case Ho.Degraded:return No.Warning;case Ho.Failed:case Jo.Failed:case Ko.Error:case Ko.CrashLoopBackOff:case Ko.CreateContainerError:case Ko.CreateContainerConfigError:case Ko.ErrImagePull:case Ko.ErrImageNeverPull:case Ko.ImagePullBackOff:case Ko.InvalidImageName:case Ko.RegistryUnavailable:case Ko.NetworkNotReady:case Ko.OOMKilled:case Ko.ContainerCannotRun:case qo.Terminated:case Ko.DeadlineExceeded:case Ko.StartError:return No.Error;case Ho.Down:case Ko.Completed:return Oo.Disabled;case Ho.Unknown:case Jo.Unknown:default:return Oo.Unknown}},Mr=(e,t)=>{const o={[No.Default]:o=>X({fill:Lr(t,e,"300"),...o}),[No.Info]:o=>Xe({fill:Lr(t,e,"400"),...o}),[No.Error]:o=>Ve({fill:Lr(t,e,"500"),...o}),[No.Warning]:o=>Ge({fill:Lr(t,e,"500"),...o}),[No.Success]:o=>We({fill:Lr(t,e,"500"),...o}),[Oo.Disabled]:o=>je({fill:Lr(t,e,"400"),...o}),[Oo.Unknown]:o=>Ue({fill:Lr(t,e,"300"),...o})};return o[e]},Br=e=>{switch(e){case Uo.Success:return No.Success;case Uo.Error:case Uo.Failure:return No.Error;case Uo.Notice:return No.Warning;case Uo.Unsupported:case Uo.Unknown:return No.Info;case Uo.Irrelevant:case Uo.Disabled:return _o.Disabled;case Uo.Waiting:return _o.Loading;case Uo.Pending:default:return No.Default}},Ur=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},jr=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Wr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Gr=(e,t)=>{const o=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Wr(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:r[e.name]})))}return o},Vr=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==No.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},Xr=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Hr=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},Jr=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Kr=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},qr=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Yr=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Qr=e=>Yr.test(e),Zr=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",ei=e=>e?.map(({status:e,type:t,reason:o,message:r})=>({status:e,type:Zr(t),reason:o?Zr(o):"",message:r}))||[],ti=(e,t)=>{const o=Wr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},oi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>or[e]):[],ri=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>or[e]):[],ii=e=>e.replace(/[^\d]/g,""),ni=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ai=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},si=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const r=e[o];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>si(e)))}else if("object"==typeof r&&null!==r){const e=si(r);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(r)||(t[o]=r)}),t},li=(e,t=2)=>JSON.stringify(e||{},null,t),ci=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),di=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),pi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var ui,hi;!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"}(ui||(ui={})),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"}(hi||(hi={}));const mi=zt.p`
2
- margin: 0;
3
- color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
4
- font-family: ${({theme:e})=>e.font_family.primary};
5
- font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
6
- font-weight: ${({$weight:e})=>e};
7
- text-align: ${({$align:e})=>e};
8
- text-transform: ${({$transform:e})=>e};
9
- line-height: ${({theme:e,$lineHeight:t,$size:o})=>t||`${e.v2.text.size[o]+2}px`};
10
- opacity: ${({$opacity:e})=>e};
11
-
12
- ${({$nowrap:e})=>e&&Lt`
13
- text-wrap: nowrap;
14
- white-space: nowrap;
15
- overflow: hidden;
16
- text-overflow: ellipsis;
17
- `}
18
-
19
- ${({$underline:e})=>e&&Lt`
20
- text-decoration: underline;
21
- `}
22
-
23
- ${({$withClick:e})=>e&&Lt`
24
- cursor: pointer;
25
- &:hover {
26
- text-decoration: underline;
27
- }
28
- `}
29
- `,gi=({children:e,variant:t=ui.P,color:o,size:r=hi.S,weight:i=400,opacity:n=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return yt(mi,{as:t,$color:o,$size:r,$weight:i,$opacity:n,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>bt(vt,{children:[e,t!==m.length-1&&yt("br",{})]},`typography-${t}-${e}`))})},fi=zt.div`
30
- color: ${({$color:e,theme:t})=>e||t.text.secondary};
31
- font-size: ${({$size:e})=>void 0!==e?e:16}px;
32
- font-weight: ${({$weight:e})=>void 0!==e?e:300};
33
- text-align: ${({$align:e})=>e||"left"};
34
- opacity: ${({$opacity:e})=>void 0!==e?e:1};
35
- text-decoration: ${({$decoration:e})=>e||"none"};
36
- text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
37
- font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
38
- white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
39
- text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
40
- `,xi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,r]=e.split('"');return{original:e,href:o,label:r.replace("</a>","").replace(">","")}})},yi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},bi=(e,t)=>{const o=xi(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const r=yi(e);r?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)});return e.split(" ").map(e=>{if(e.includes("LINK-")){const[r,i]=e.split("###"),n=o?.[parseInt(r.replace("LINK-",""))];return bt(vt,{children:[yt("a",{href:n?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:n?.label}),i?`${i} `:" "]},e)}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=r?.[parseInt(t.replace("STRONG-",""))];return bt(vt,{children:[yt("strong",{style:{fontWeight:600},children:i?.label}),o?`${o} `:" "]},e)}return e+" "})},$i=({children:e,color:t,size:o,weight:r,align:i,family:n,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Pt(),u=wt(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return yt(fi,{$color:t,$size:o,$weight:r,$align:i,$family:n,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>bt(vt,{children:[bi(e,p),t!==u.length-1?yt("br",{}):null]},`text-${t}-${e}`)):e})},vi=zt.div`
41
- padding: 4px 0 0 0;
42
- `,wi=zt($i)`
43
- font-size: 12px;
44
- color: ${({theme:e})=>e.text.error};
45
- `,Si=({children:e})=>yt(vi,{children:yt(wi,{children:e})}),Ci=zt.div`
46
- position: relative;
47
- width: 100%;
48
- `,ki=zt.div`
49
- width: calc(100% - 16px);
50
- display: flex;
51
- align-items: center;
52
- height: 36px;
53
- gap: 8px;
54
- padding-left: 12px;
55
- transition: border-color 0.3s;
56
- border-radius: 32px;
57
- border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
58
-
59
- &:hover {
60
- border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
61
- }
62
- &:focus-within {
63
- border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
64
- }
65
- `,Ei=zt.input`
66
- flex: 1;
67
- border: none;
68
- outline: none;
69
- background: none;
70
- color: ${({theme:e})=>e.text.secondary};
71
- font-size: 14px;
72
- font-family: ${({theme:e})=>e.font_family.primary};
73
- font-weight: 300;
74
- &::placeholder {
75
- color: ${({theme:e})=>e.text.secondary};
76
- font-family: ${({theme:e})=>e.font_family.primary};
77
- opacity: 0.4;
78
- font-size: 14px;
79
- font-weight: 300;
80
- line-height: 22px;
81
- }
82
-
83
- &:disabled {
84
- cursor: not-allowed;
85
- }
86
- `,Ai=zt.ul`
87
- position: absolute;
88
- max-height: 500px;
89
- top: 32px;
90
- border-radius: 24px;
91
- width: calc(100% - 32px);
92
- overflow-y: auto;
93
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
94
- border: 1px solid ${({theme:e})=>e.colors.border};
95
- z-index: 9999;
96
- padding: 12px;
97
- `,Di=zt.li`
98
- width: calc(100% - 24px);
99
- padding: 8px 12px;
100
- cursor: ${({$isList:e})=>e?"default":"pointer"};
101
- border-radius: 24px;
102
- gap: 8px;
103
- display: flex;
104
- align-items: ${({$isList:e})=>e?"flex-start":"center"};
105
- background: transparent;
106
- &:hover {
107
- background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
108
- }
109
- `,Ti=zt.div`
110
- width: 100%;
111
- `,Ni=zt.div`
112
- display: flex;
113
- width: 100%;
114
- `,Ii=zt.div`
115
- width: 1px;
116
- height: 52px;
117
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
118
- position: absolute;
119
- left: 33px;
120
- `,_i=zt.div`
121
- display: flex;
122
- flex-direction: column;
123
- gap: 4px;
124
- `,Oi=zt($i)`
125
- flex: 1;
126
- font-size: 14px;
127
- `,Ri=zt($i)`
128
- color: ${({theme:e})=>e.text.grey};
129
- font-size: 10px;
130
- line-height: 150%;
131
- `,Fi=zt.ul`
132
- padding-left: 0px;
133
- margin: 4px 0 0 0;
134
- list-style: none;
135
- width: 100%;
136
- `,zi=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const r=zi(o.items,t);r.length&&e.push({...o,items:r})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,Li=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:r,defaultText:i,onTextChange:n,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=St(o?.label||i||""),[u,h]=St(zi(t,d)),[m,g]=St(!1);St(-1),Ct(()=>h(zi(t,d)),[t]);const f=o?.icon,x=e=>{e&&(p(e.label),n?.(e.label)),g(!e),r?.(e)};return bt(Ci,{style:a,children:[bt(ki,{$hasError:!!l,children:[f&&yt(f,{}),yt(Ei,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,r=zi(t,o),i=1===r.length&&r[0].label===o?r[0]:void 0;p(o),n?.(o),h(r),x(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?yt(Ai,{children:u.map(e=>yt(Pi,{option:e,onClick:x},e.type||e.label))}):null,l&&yt(Si,{children:l})]})},Pi=({option:e,renderIcon:t=!0,onClick:o})=>{const r=!!e.items&&e.items.length>0,i=e.icon;return bt(Di,{"data-id":`option-${e.type||e.label}`,$isList:r,onMouseDown:()=>r?null:o(e),children:[i&&t&&yt(i,{}),bt(Ti,{children:[bt(_i,{children:[yt(Oi,{children:e.label}),yt(Ri,{children:e.description})]}),r&&yt(Fi,{children:e.items?.map(e=>bt(Ni,{children:[yt(Ii,{}),yt(Pi,{option:e,renderIcon:!1,onClick:o})]},e.type||e.label))})]})]})},Mi=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Bi=[{type:uo.K8sAttributes,icon:xr(uo.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Yo.Traces,Yo.Metrics,Yo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:uo.AddClusterInfo,icon:xr(uo.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Yo.Traces,Yo.Metrics,Yo.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:uo.DeleteAttributes,icon:xr(uo.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Yo.Traces,Yo.Metrics,Yo.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:uo.RenameAttributes,icon:xr(uo.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Yo.Traces,Yo.Metrics,Yo.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:uo.PiiMasking,icon:xr(uo.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Yo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:uo.URLTemplatization,icon:xr(uo.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[Yo.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:pi("v1.21.0")}],Ui=[{type:uo.ErrorSampler,icon:xr(po.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Yo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:uo.LatencySampler,icon:xr(po.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Yo.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:uo.ProbabilisticSampler,icon:xr(po.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Yo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:uo.ServiceNameSampler,icon:xr(po.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Yo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:uo.SpanAttributeSampler,icon:xr(po.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Yo.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."}],ji=[{label:"Attributes",icon:xr(po.Attributes),items:Bi},{label:"Samplers",icon:xr(po.Samplers),items:Ui}];var Wi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Wi||(Wi={}));const Gi={[Wi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Wi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Wi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Wi.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."},[Wi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Wi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Vi=[{type:jo.CodeAttributes,icon:Tr(jo.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:[Co.Go,Co.Python]},{type:jo.CustomInstrumentation,icon:Tr(jo.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:[Co.Go,Co.Java]},{type:jo.HeadersCollection,icon:Tr(jo.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:[Co.Go,Co.Java,Co.JavaScript]},{type:jo.PayloadCollection,icon:Tr(jo.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:[Co.Go]}],Xi=[{id:Yo.Logs,value:"Logs"},{id:Yo.Metrics,value:"Metrics"},{id:Yo.Traces,value:"Traces"}],Hi={[Co.Go]:"Go",[Co.Java]:"Java",[Co.JavaScript]:"Node.js",[Co.Python]:"Python",[Co.DotNet]:".NET",[Co.CSharp]:"C#",[Co.CPlusPlus]:"C++",[Co.Php]:"PHP",[Co.Ruby]:"Ruby",[Co.Rust]:"Rust",[Co.Swift]:"Swift",[Co.Elixir]:"Elixir",[Co.MySql]:"MySQL",[Co.Nginx]:"Nginx",[Co.Postgres]:"PostgreSQL",[Co.Redis]:"Redis",[Co.Kafka]:"Kafka",[Co.Ignored]:"Ignored",[Co.Unknown]:"Unknown",[Co.Processing]:"Processing",[Co.NoContainers]:"No Containers",[Co.NoRunningPods]:"No Running Pods"},Ji=[{id:Co.Go,value:Hi[Co.Go],icon:$r(Co.Go)},{id:Co.Java,value:Hi[Co.Java],icon:$r(Co.Java)},{id:Co.JavaScript,value:Hi[Co.JavaScript],icon:$r(Co.JavaScript)},{id:Co.Python,value:Hi[Co.Python],icon:$r(Co.Python)},{id:Co.Php,value:Hi[Co.Php],icon:$r(Co.Php)},{id:Co.Ruby,value:Hi[Co.Ruby],icon:$r(Co.Ruby)},{id:Co.Rust,value:Hi[Co.Rust],icon:$r(Co.Rust)},{id:Co.DotNet,value:Hi[Co.DotNet],icon:$r(Co.DotNet)},{id:Co.CSharp,value:Hi[Co.CSharp],icon:$r(Co.CSharp)},{id:Co.CPlusPlus,value:Hi[Co.CPlusPlus],icon:$r(Co.CPlusPlus)},{id:Co.Swift,value:Hi[Co.Swift],icon:$r(Co.Swift)},{id:Co.Elixir,value:Hi[Co.Elixir],icon:$r(Co.Elixir)}],Ki={[Co.Go]:{community:[{id:Bo.GolangCommunity,value:Bo.GolangCommunity,icon:$r(Co.Go)}],enterprise:[{id:Bo.GolangEnterprise,value:Bo.GolangEnterprise,icon:$r(Co.Go)}]},[Co.JavaScript]:{community:[{id:Bo.NodejsCommunity,value:Bo.NodejsCommunity,icon:$r(Co.JavaScript)}],enterprise:[{id:Bo.NodejsEnterprise,value:Bo.NodejsEnterprise,icon:$r(Co.JavaScript)}]},[Co.Python]:{community:[{id:Bo.PythonCommunity,value:Bo.PythonCommunity,icon:$r(Co.Python)}],enterprise:[{id:Bo.PythonEnterprise,value:Bo.PythonEnterprise,icon:$r(Co.Python)}]},[Co.Java]:{community:[{id:Bo.JavaCommunity,value:Bo.JavaCommunity,icon:$r(Co.Java)}],enterprise:[{id:Bo.JavaEnterprise,value:Bo.JavaEnterprise,icon:$r(Co.Java)},{id:Bo.JavaEbpfInstrumentations,value:Bo.JavaEbpfInstrumentations,icon:$r(Co.Java)}]},[Co.DotNet]:{community:[{id:Bo.DotNetCommunity,value:Bo.DotNetCommunity,icon:$r(Co.DotNet)}],enterprise:[{id:Bo.DotNetEnterprise,value:Bo.DotNetEnterprise,icon:$r(Co.DotNet)}]},[Co.Ruby]:{community:[{id:Bo.RubyCommunity,value:Bo.RubyCommunity,icon:$r(Co.Ruby)}],enterprise:[{id:Bo.RubyEnterprise,value:Bo.RubyEnterprise,icon:$r(Co.Ruby)}]},[Co.Php]:{community:[{id:Bo.PhpCommunity,value:Bo.PhpCommunity,icon:$r(Co.Php)}],enterprise:[]},[Co.CSharp]:{community:[],enterprise:[{id:Bo.CPlusPlusEnterprise,value:Bo.CPlusPlusEnterprise,icon:$r(Co.CSharp)}]},[Co.MySql]:{community:[],enterprise:[{id:Bo.MySqlEnterprise,value:Bo.MySqlEnterprise,icon:$r(Co.MySql)}]},[Co.CPlusPlus]:{community:[],enterprise:[]},[Co.Rust]:{community:[],enterprise:[]},[Co.Swift]:{community:[],enterprise:[]},[Co.Elixir]:{community:[],enterprise:[]},[Co.Nginx]:{community:[],enterprise:[]},[Co.Postgres]:{community:[],enterprise:[]},[Co.Redis]:{community:[],enterprise:[]},[Co.Kafka]:{community:[],enterprise:[]},[Co.Ignored]:{community:[],enterprise:[]},[Co.Unknown]:{community:[],enterprise:[]},[Co.Processing]:{community:[],enterprise:[]},[Co.NoContainers]:{community:[],enterprise:[]},[Co.NoRunningPods]:{community:[],enterprise:[]}},qi=6048e5,Yi=xt()(_t(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:lr.DARK_MODE,storage:"undefined"!=typeof window?Ot(()=>localStorage):void 0})),Qi={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:nr},Zi=xt(e=>({...Qi,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Qi)})),en=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),tn=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const r=t===Eo.Namespace?"namespacesLoading":t===Eo.Source?"sourcesLoading":t===Eo.Destination?"destinationsLoading":t===Eo.Action?"actionsLoading":t===Eo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==r&&e({[r]:o})},setEntities:(t,o)=>{const r=t===Eo.Namespace?"namespaces":t===Eo.Source?"sources":t===Eo.Destination?"destinations":t===Eo.Action?"actions":t===Eo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e({[r]:o})},addEntities:(t,o)=>{const r=t===Eo.Namespace?"namespaces":t===Eo.Source?"sources":t===Eo.Destination?"destinations":t===Eo.Action?"actions":t===Eo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const t=[...e[r]],i=new Map;return t.forEach((e,t)=>{i.set(JSON.stringify(Er(e)),t)}),o.forEach(e=>{const o=JSON.stringify(Er(e)),r=i.get(o);void 0!==r?t[r]={...t[r],...e}:(i.set(o,t.length),t.push(e))}),{[r]:t}})},removeEntities:(t,o)=>{const r=t===Eo.Namespace?"namespaces":t===Eo.Source?"sources":t===Eo.Destination?"destinations":t===Eo.Action?"actions":t===Eo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==r&&e(e=>{const i=new Set;o.forEach(e=>{const o=t===Eo.Source?JSON.stringify(Er(e)):String(e);i.add(o)});const n=e[r].filter(e=>{const o=t===Eo.Source?JSON.stringify(Er(e)):String(Er(e));return!i.has(o)});return{[r]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),on=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),rn=xt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:on})),nn=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),an=xt((e,t)=>({notifications:[],addNotification:o=>{const r=new Date,i=`${r.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:n}=t();n.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var sn;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(sn||(sn={}));const ln=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),cn=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),dn=xt((e,t)=>({progress:{},setProgress:(o,r)=>{const i=t(),n=ln();return"number"==typeof r.total&&(n.total=r.total),"number"==typeof r.current&&(n.current=r.current),Array.isArray(r.list)&&(n.list=r.list),e({progress:{...i.progress,[o]:cn(n)}})},addProgress:(o,r,i)=>{const n=t(),a=ln(o,n.progress);return a.current+=r,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...n.progress,[o]:cn(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),pn=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),un={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},hn=(e,t)=>e.destinationType.type!==t.destinationType.type,mn=xt(e=>({...un,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>hn(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>hn(e,t))})),clearStore:()=>e(()=>({...un}))})),gn={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8854FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{600:"#F576A2"},orange:{600:"#F29142"}}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},fn={v2:gn.v2,darkMode:!0,colors:{...gn.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:gn.font_family},xn={v2:gn.v2,darkMode:!1,colors:{...gn.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:gn.font_family},yn=e=>e?fn:xn;var bn=Object.freeze({__proto__:null,baseTheme:gn,darkModeTheme:fn,getTheme:yn,lightModeTheme:xn});Rt('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const $n=({children:e})=>{const{darkMode:t}=Yi();return yt(Mt,{theme:yn(t),children:e})},vn={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var wn=Object.freeze({__proto__:null,hex:vn});const Sn={in:{left:Bt`
137
- from { transform: translateX(-100%); }
138
- to { transform: translateX(0); }
139
- `,right:Bt`
140
- from { transform: translateX(100%); }
141
- to { transform: translateX(0); }
142
- `,top:Bt`
143
- from { transform: translateY(-100%); }
144
- to { transform: translateY(0); }
145
- `,bottom:Bt`
146
- from { transform: translateY(100%); }
147
- to { transform: translateY(0); }
148
- `,center:Bt`
149
- from { transform: translate(-50%, 100%); }
150
- to { transform: translate(-50%, -50%); }
151
- `},out:{left:Bt`
152
- from { transform: translateX(0); }
153
- to { transform: translateX(-100%); }
154
- `,right:Bt`
155
- from { transform: translateX(0); }
156
- to { transform: translateX(100%); }
157
- `,top:Bt`
158
- from { transform: translateY(0); }
159
- to { transform: translateY(-100%); }
160
- `,bottom:Bt`
161
- from { transform: translateY(0); }
162
- to { transform: translateY(100%); }
163
- `,center:Bt`
164
- from { transform: translate(-50%, -50%); }
165
- to { transform: translate(-50%, 100%); }
166
- `}},Cn={in:Bt`
167
- from {
168
- width: 0%;
169
- }
170
- to {
171
- width: 100%;
172
- }
173
- `,out:Bt`
174
- from {
175
- width: 100%;
176
- }
177
- to {
178
- width: 0%;
179
- }
180
- `},kn=Bt`
181
- 0% {
182
- transform: scale(1);
183
- opacity: 1;
184
- }
185
- 75%, 100% {
186
- transform: scale(2);
187
- opacity: 0;
188
- }
189
- `,En=Bt`
190
- 0% {
191
- background-position: -500px 0;
192
- }
193
- 100% {
194
- background-position: 500px 0;
195
- }
196
- `,An={in:Bt`
197
- from {
198
- opacity: 0;
199
- }
200
- to {
201
- opacity: 1;
202
- }
203
- `,out:Bt`
204
- from {
205
- opacity: 1;
206
- }
207
- to {
208
- opacity: 0;
209
- }
210
- `};var Dn=Object.freeze({__proto__:null,fade:An,ping:kn,progress:Cn,shimmer:En,slide:Sn});const Tn=zt.span`
211
- display: flex;
212
- align-items: center;
213
- justify-content: center;
214
-
215
- min-height: 16px;
216
- min-width: 16px;
217
- width: fit-content;
218
- padding: 4px;
219
- gap: 2px;
220
-
221
- border-radius: 50px;
222
- border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":vn["050"]):t?"transparent":e.colors.border};
223
- background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
224
- color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
225
- font-family: ${({theme:e})=>e.font_family.secondary};
226
- font-size: 12px;
227
- white-space: nowrap;
228
-
229
- ${({theme:e,$filled:t,$status:o,$clickable:r})=>r&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+vn["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+vn["020"]};\n }`}
230
- `,Nn=({label:e,filled:t,status:o,withIcon:r,onClick:i})=>{const n=Pt(),a=o&&r?Mr(o,n):null;return bt(Tn,{$filled:t,$status:o,$clickable:!!i,onClick:i,children:[!!a&&yt(a,{}),e]})},In=zt.div`
231
- height: fit-content;
232
- border: 2px solid transparent;
233
- padding: 2px;
234
- border-radius: 32px;
235
- background-color: transparent;
236
- transition: border-color 0.3s ease;
237
- &:focus-within {
238
- border-color: ${({theme:e})=>e.colors.secondary};
239
- }
240
- `,_n={primary:Lt`
241
- border: 1px solid ${({theme:e})=>e.text.secondary+vn["024"]};
242
- background: ${({theme:e})=>e.colors.secondary};
243
- color: ${({theme:e})=>e.colors.primary};
244
- &:hover {
245
- background: ${({theme:e})=>e.colors.secondary+vn["080"]};
246
- }
247
- &:active {
248
- background: ${({theme:e})=>e.text.secondary+vn["060"]};
249
- }
250
- `,secondary:Lt`
251
- border: 1px solid ${({theme:e})=>e.colors.border};
252
- background: ${({theme:e})=>e.colors.primary};
253
- color: ${({theme:e})=>e.colors.secondary};
254
- &:hover {
255
- border: 1px solid ${({theme:e})=>e.text.darker_grey};
256
- background: ${({theme:e})=>e.colors.secondary+vn["010"]};
257
- }
258
- &:active {
259
- border: 1px solid ${({theme:e})=>e.text.dark_grey};
260
- background: ${({theme:e})=>e.colors.secondary+vn["015"]};
261
- }
262
- `,tertiary:Lt`
263
- border-color: transparent;
264
- background: transparent;
265
- &:hover {
266
- background: ${({theme:e})=>e.colors.dropdown_bg_2+vn["040"]};
267
- }
268
- &:active {
269
- background: ${({theme:e})=>e.colors.dropdown_bg_2};
270
- }
271
- `,danger:Lt`
272
- border-color: transparent;
273
- background: ${({theme:e})=>e.text.error};
274
- &:hover {
275
- background: ${({theme:e})=>e.text.error+vn["090"]};
276
- }
277
- &:active {
278
- background: ${({theme:e})=>e.text.error+vn["080"]};
279
- }
280
- `,warning:Lt`
281
- border-color: transparent;
282
- background: ${({theme:e})=>e.text.warning};
283
- &:hover {
284
- background: ${({theme:e})=>e.text.warning+vn["090"]};
285
- }
286
- &:active {
287
- background: ${({theme:e})=>e.text.warning+vn["080"]};
288
- }
289
- `},On=zt.button`
290
- height: 36px;
291
- border-radius: 32px;
292
- cursor: pointer;
293
- display: flex;
294
- align-items: center;
295
- justify-content: center;
296
- gap: 8px;
297
- padding: 0 12px;
298
- font-family: ${({theme:e})=>e.font_family.secondary};
299
- text-transform: uppercase;
300
- text-decoration: underline;
301
- font-weight: 600;
302
- outline: none;
303
- ${({$variant:e})=>e&&_n[e]}
304
- ${({disabled:e,$variant:t})=>e&&Lt`
305
- opacity: 0.5;
306
- cursor: not-allowed;
307
-
308
- ${"primary"===t?Lt`
309
- color: ${({theme:e})=>e.colors.secondary};
310
- background: ${({theme:e})=>e.text.secondary+vn["010"]};
311
- &:hover {
312
- background: ${({theme:e})=>e.text.secondary+vn["015"]};
313
- }
314
- `:""}
315
- `}
316
- `,Rn=({children:e,variant:t="primary",onClick:o,...r})=>{const i=kt(null);return yt(In,{$variant:t,children:yt(On,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...r,children:e})})},Fn=e=>{function t(){return void 0===e?{}:io(e)}const[o,r]=St(t()),[i,n]=St({}),a=Et((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[r,i]of Object.entries(e)){const e=r;if(Array.isArray(i)){const r=t[e];Array.isArray(r)&&i.length===r.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(a(e,r[t])).length:e===r[t])||(o[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const r=a(i,t[e]);Object.keys(r).length>0&&(o[e]=r)}else i!==t[e]&&(o[e]=t[e])}return o},[]),s=(e,t)=>0===Object.keys(a(e,t)).length,l=wt(()=>void 0!==e&&!s(e,o),[e,o]);Ct(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(i)&&r(i)},[e,o]);const c=Et((e,t)=>no("formData"===e?o:i,t.toString()),[o,i]);return{formData:o,formErrors:i,getFormDiff:a,areFormValuesEqual:s,isFormDirty:l,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?r(o=>({...o,[e]:t})):r(e=>{const r=io(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&r({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const r=io(e);let i=r;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,r})}else o&&n({...o})},resetFormData:e=>{r(e||t()),n({})},getNestedValue:c}},zn={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},Ln=()=>{const{addNotification:e}=an(),{formData:t,formErrors:o,handleFormChange:r,handleErrorChange:i,resetFormData:n}=Fn(zn),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:o,handleFormChange:r,resetFormData:n,validateForm:o=>{const r={};let n=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Xr(t)&&(r[e]=cr.FIELD_IS_REQUIRED)}}),t.type===uo.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=cr.FIELD_IS_REQUIRED;break}}return n=!Object.values(r).length,!n&&o?.withAlert&&e({type:No.Warning,title:o.alertTitle,message:cr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),n},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:i,disabled:n,fields:s})=>{const l={...io(zn),type:e,signals:t,name:o,notes:i,disabled:n};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case ho.LabelsAttributes:case ho.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case ho.CollectContainerAttributes:case ho.CollectReplicaSetAttributes:case ho.CollectWorkloadId:case ho.CollectClusterId:case ho.ClusterAttributes:case ho.OverwriteExistingValues:case ho.AttributeNamesToDelete:case ho.Renames:case ho.PiiCategories:case ho.FallbackSamplingRatio:case ho.SamplingPercentage:case ho.EndpointsFilters:case ho.ServicesNameFilters:case ho.AttributeFilters:case ho.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),r(void 0,void 0,l)}}},Pn=e=>{Ct(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Mn=()=>{const{setCurrentModal:e}=nn(),{setDrawerType:t,setDrawerEntityId:o}=en(),{setActiveNodeType:r,setActiveNodeId:i,activeNodeId:n}=Mi();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(n===l?(r(null),i(null)):(r(c),i(l)),p){case Eo.Source:case Eo.Destination:case Eo.Action:case Eo.InstrumentationRule:t(p),o(d);break;case Lo.AddSource:e(Eo.Source);break;case Lo.AddDestination:e(Eo.Destination);break;case Lo.AddAction:e(Eo.Action);break;case Lo.AddRule:e(Eo.InstrumentationRule)}}}},Bn=()=>{const{setDrawerType:e,setDrawerEntityId:t}=en(),{markAsDismissed:o,markAsSeen:r}=an();return{onClickNotification:(i,n)=>{const{id:a,crdType:s,target:l}=i,{dismissToast:c}=n||{};if(s&&l)switch(s){case Eo.InstrumentationRule:e(Eo.InstrumentationRule),t(Dr(l,Eo.InstrumentationRule));break;case Eo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(Eo.Source),t(Dr(l,Eo.Source));break;case Eo.Action:e(Eo.Action),t(Dr(l,Eo.Action));break;case Eo.Destination:case"Destination":e(Eo.Destination),t(Dr(l,Eo.Destination))}r(a),c&&o(a)}}},Un=()=>{const e=kt(null),[t,o]=St(0),[r,i]=St(0);return Ct(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();o(t),i(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var jn;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(jn||(jn={}));const Wn=zt.div`
317
- width: ${({$size:e})=>1.5*e}px;
318
- height: ${({$size:e})=>1.5*e}px;
319
- display: flex;
320
- align-items: center;
321
- justify-content: center;
322
- border-radius: 100%;
323
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
324
- &:hover {
325
- background: ${({theme:e})=>e.v2.colors.silver[900]};
326
- }
327
- `,Gn=({icon:e,size:t=jn.S,onClick:o,disabled:r})=>yt(Wn,{$size:t,$disabled:r,onClick:e=>{o&&!r&&(e.stopPropagation(),o(e))},children:yt(e,{size:t})}),Vn=({onDone:e}={})=>{const[t,o]=St(!1),[r,i]=St(-1),n=Et(async(r,n)=>{if(!t){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(r)}catch(e){}else{const e=document.createElement("textarea");e.value=r,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:Et(({value:e,size:o})=>yt(Gn,{icon:t?He:Je,size:o,onClick:()=>n(e)}),[t]),isCopied:t,copiedIndex:r,clickCopy:n}},Xn=e=>{const{addNotification:t}=an(),{formData:o,handleFormChange:r,formErrors:i,handleErrorChange:n,resetFormData:a}=Fn(e);return{formData:o,formErrors:i,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let i=!0;return o.name?Hr(o.name)?r.name=void 0:(i=!1,r.name=cr.ILLEGAL_K8S_LABEL):(i=!1,r.name=cr.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:No.Warning,title:e.alertTitle,message:cr.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,r),i},loadFormWithDrawerItem:({name:t})=>{const o={...io(e),name:t};r(void 0,void 0,o)}}},Hn={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Jn=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:r}=an(),{formData:i,formErrors:n,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Fn(Hn),[c,d]=St([]),[p,u]=St([]);Ct(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:r,displayName:i,initialValue:n,renderCondition:a}=e;if(o===Do.Dropdown){const e=Wr(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:n,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:i,value:n,renderCondition:a,...Wr(r,{})}})).map(e=>{if(o){const t="string"==typeof o?Wr(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),Ct(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Ct(()=>{if(t&&0===oi(i.exportedSignals).length){const{logs:e,metrics:o,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:r.supported})}},[t,i.exportedSignals]);return{formData:i,formErrors:n,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:r,required:i})=>{i&&!r&&(o=!1,t[e]=cr.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&r({type:No.Warning,title:e.alertTitle,message:cr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:r,fields:i})=>{const n={...io(Hn),type:e,name:t,disabled:o,exportedSignals:r,fields:Object.entries(Wr(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,n),n},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Kn={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Xo.HttpRequest]:null,[Xo.HttpResponse]:null,[Xo.DbQuery]:null,[Xo.Messaging]:null},codeAttributes:{[Wo.Column]:null,[Wo.FilePath]:null,[Wo.Function]:null,[Wo.LineNumber]:null,[Wo.Namespace]:null,[Wo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Vo.Java]:null,[Vo.Golang]:null}},qn=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Fn(Kn);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,payloadCollection:i,codeAttributes:n,headersCollection:a,customInstrumentations:s})=>{const l={...io(Kn),ruleName:e,notes:t,disabled:r};i&&(l.payloadCollection={[Xo.HttpRequest]:i[Xo.HttpRequest]?{}:null,[Xo.HttpResponse]:i[Xo.HttpResponse]?{}:null,[Xo.DbQuery]:i[Xo.DbQuery]?{}:null,[Xo.Messaging]:i[Xo.Messaging]?{}:null}),n&&(l.codeAttributes={[Wo.Column]:n[Wo.Column]||null,[Wo.FilePath]:n[Wo.FilePath]||null,[Wo.Function]:n[Wo.Function]||null,[Wo.LineNumber]:n[Wo.LineNumber]||null,[Wo.Namespace]:n[Wo.Namespace]||null,[Wo.StackTrace]:n[Wo.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Vo.Java]:s[Vo.Java]||null,[Vo.Golang]:s[Vo.Golang]||null}),o(void 0,void 0,l)}}},Yn=({active:e,key:t,withAltKey:o,withCtrlKey:r,withShiftKey:i,withMetaKey:n},a)=>(Ct(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!n||n&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,r,i,n,a]),null),Qn=(e,t)=>{Ct(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Zn=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const r=kt(null),[i,n]=St(!1),[a,s]=St({top:0,left:0});Qn(r,()=>{i&&(n(!1),o?.())});return{popupRef:r,popupOpen:i,setPopupOpen:n,popupPosition:a,handlePosition:(o,i)=>{const{innerWidth:n,innerHeight:a}=window;let l=i,c=o;l>=a/2&&(l+=-(r.current?.clientHeight||e)),c>=n/2&&(c+=-(r.current?.clientWidth||t)),s({top:l,left:c})}}},ea=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Wr(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),ta={otelServiceName:"",currentStreamName:""},oa=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Fn(ta);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const r={...io(ta),otelServiceName:e||t||""};o(void 0,void 0,r)}}},ra=Dt({platformType:wo.K8s,tier:vo.Community,version:"v0.0.0"}),ia=({children:e,platformType:t,tier:o,version:r})=>{const i=wt(()=>({platformType:t,tier:o,version:r}),[t,o,r]);return yt(ra.Provider,{value:i,children:e})},na=(e,t)=>!t||pi(e)>=pi(t),aa=e=>{const t=At(ra),o=na(t.version,e),r=t.platformType===wo.Vm;return{...t,isVersionSupported:o,isVm:r}},sa=Dt({formType:void 0}),la=({children:e,formType:t})=>{const o=wt(()=>({formType:t}),[t]);return yt(sa.Provider,{value:o,children:e})},ca=()=>At(sa),da=new Set([Mo.StaticPod]),pa=e=>{const t=e.workloads.filter(({selected:e})=>e).length,o=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===o,isSomeSourced:t>0&&t<o,isFutureApps:e.selected||!1}},ua=(e,t,o)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(o.showOnlySelected){const{isAllSourced:t,isSomeSourced:o,isFutureApps:r}=pa(e);return t||o||r}return!0},ha=(e,t,o)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!o.showOnlySelected||e.selected),ma=(e,t,o)=>{const r=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,i=r&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,n=e.selected&&(!r||i)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:n,numberOfInstances:e.numberOfInstances}},ga=(e,t,o)=>({...ma(e,t),currentStreamName:t}),fa=(e,t,o)=>{const r="boolean"==typeof o,i=e.dataStreamNames?.includes(t),n=(r?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!r)&&n,currentStreamName:t}},xa=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:o}=aa(),r=e=>o!==vo.Onprem&&da.has(e),{selectedStreamName:i}=Zi(),{namespaces:n,addEntities:a}=tn(),[s,l]=St(!1),[c,d]=St({}),[p,u]=St(!1),[h,m]=St(""),[g,f]=St({}),[x,y]=St({}),[b,$]=St(""),[v,w]=St(Eo.Source),[S,C]=St(!1),[k,E]=St(!1),A=wt(()=>{const e=(e,t)=>!b||v!==t||v===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,Eo.Namespace)).forEach(([o,r])=>{const i=r.filter(t=>{return e(t.name,Eo.Source)&&(o=t,!S||o.selected)&&(e=>!k||(e.numberOfInstances||0)>0)(t);var o});(!b||b&&(v===Eo.Namespace||v===Eo.Source&&i.length))&&(t[o]=i)}),t},[x,b,v,S,k]);return Ct(()=>{(async()=>{l(!0);const e=await t();l(!1);const o=e.data;if(!o?.length)return;const r=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n={},s={},c={};for(const e of r){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));n[e.name]=t.map(e=>ma(e,i)),s[e.name]=t.map(e=>ga(e,i)),c[e.name]=fa(e,i)}a(Eo.Namespace,o.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=mn.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const o=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==o&&(s[e][o]={...s[e][o],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(n),y(s),f(c)})()},[i]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,o])=>{o.forEach(o=>{const r=c[t]?.find(e=>e.name===o.name&&e.kind===o.kind);r?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,o])=>{const r=n?.find(e=>e.name===t);(o.selected&&!r?.dataStreamNames?.includes(i)||!o.selected&&r?.dataStreamNames?.includes(i))&&(e[t]=o)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(n.find(t=>t.name===e)){const o="boolean"==typeof t;m(t=>t!==e||o?e:""),o&&(y(o=>({...o,[e]:(o[e]||[]).map(e=>t&&r(e.kind)?e:{...e,selected:t,currentStreamName:i})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const o={};for(const[n,a]of Object.entries(t))o[n]=a.map(t=>e&&r(t.kind)?t:{...t,selected:e,currentStreamName:i});return o})},selectedSources:x,onSelectSource:(e,t)=>{const o=t||h;if(!o)return;if(r(e.kind))return;const n=[...x[o]||[]],a=n.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...n[a],selected:!n[a].selected,currentStreamName:i};n[a]=e}else n.push({...e,selected:!0,currentStreamName:i});y(e=>({...e,[o]:n})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const o=t||h;if(!o)return;const r=n.find(e=>e.name===t);r&&f(t=>({...t,[o]:fa(r,i,e)}))},searchText:b,setSearchText:$,searchBy:v,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:C,showRunningOnly:k,setShowRunningOnly:E}};try{It.addDefaultLocale(Ft)}catch(e){}const ya=()=>{const e=kt(new It(Ft.locale));return{formatTimeAgo:Et(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ba=zt.div`
328
- flex: 1;
329
- align-self: stretch;
330
- display: flex;
331
- flex-direction: column;
332
- gap: 24px;
333
- overflow-x: scroll;
334
-
335
- max-height: calc(100vh - 24px - ${({$heightOffset:e})=>e||0}px);
336
- padding: 24px 24px 0 24px;
337
- `,$a=zt.div`
338
- position: relative;
339
-
340
- // inherit all the properties of the parent (PageContent)
341
- flex: inherit;
342
- align-self: inherit;
343
- display: inherit;
344
- flex-direction: inherit;
345
- gap: inherit;
346
- overflow-x: inherit;
347
- `,va=zt.div`
348
- display: flex;
349
- flex-direction: row;
350
- flex-wrap: ${({$wrap:e="unset"})=>e};
351
- align-items: ${({$alignItems:e="center"})=>e};
352
- justify-content: ${({$justifyContent:e="unset"})=>e};
353
- gap: ${({$gap:e=2})=>e}px;
354
- width: ${({$width:e})=>e||"unset"};
355
- height: ${({$height:e})=>e||"unset"};
356
- margin: ${({$margin:e="unset"})=>e};
357
- padding: ${({$padding:e="unset"})=>e};
358
- `,wa=zt.div`
359
- display: flex;
360
- flex-direction: column;
361
- flex-wrap: ${({$wrap:e="unset"})=>e};
362
- align-items: ${({$alignItems:e="unset"})=>e};
363
- justify-content: ${({$justifyContent:e="unset"})=>e};
364
- gap: ${({$gap:e=2})=>e}px;
365
- width: ${({$width:e})=>e||"unset"};
366
- height: ${({$height:e})=>e||"unset"};
367
- margin: ${({$margin:e="unset"})=>e};
368
- padding: ${({$padding:e="unset"})=>e};
369
- `,Sa=zt(wa)`
370
- width: ${({$width:e})=>e||"100%"};
371
- height: ${({$height:e})=>e||"unset"};
372
- padding: ${({$padding:e})=>e||"unset"};
373
- align-items: center;
374
- justify-content: center;
375
- `,Ca=zt.div`
376
- display: flex;
377
- flex-direction: column;
378
- padding: 12px;
379
- overflow-y: scroll;
380
- `,ka=zt.div`
381
- position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
382
- top: 0;
383
- left: 0;
384
- right: 0;
385
- bottom: 0;
386
- z-index: 1000;
387
- background: rgba(0, 0, 0, 0.6);
388
- backdrop-filter: blur(2px);
389
- `,Ea=zt.div`
390
- width: 800px;
391
- min-height: ${({$minHeight:e})=>e||"unset"};
392
- height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
393
- margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
394
- padding: 0 2px;
395
- overflow-y: scroll;
396
- `,Aa=zt(wa)`
397
- max-width: ${({$maxWidth:e})=>e||"unset"};
398
- width: 100%;
399
- `,Da=zt(va)`
400
- gap: 16px;
401
- padding: 16px;
402
- `,Ta=zt.div`
403
- width: 100%;
404
- max-height: ${({$maxHeight:e})=>e||"unset"};
405
- overflow-y: auto;
406
- `,Na=zt.div`
407
- position: fixed;
408
- top: 50%;
409
- left: 50%;
410
- transform: translate(-50%, -50%);
411
- z-index: 1000;
412
- width: fit-content;
413
- background: ${({theme:e})=>e.colors.translucent_bg};
414
- border: ${({theme:e})=>`1px solid ${e.colors.border}`};
415
- border-radius: 40px;
416
- box-shadow: ${({theme:e})=>{const t=e.colors.primary+vn["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
417
- animation-name: ${Sn.in.center};
418
- `,Ia=zt.div`
419
- display: flex;
420
- justify-content: space-between;
421
- align-items: center;
422
- height: 80px;
423
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
424
- padding: 0 24px;
425
- `,_a=zt.div`
426
- cursor: pointer;
427
- display: flex;
428
- align-items: center;
429
- gap: 8px;
430
- `,Oa=zt.div`
431
- display: flex;
432
- align-items: center;
433
- gap: 8px;
434
- `,Ra=zt(Sa)`
435
- min-width: 350px;
436
- min-height: 150px;
437
- `,Fa=zt.div`
438
- position: absolute;
439
- left: 50%;
440
- transform: translateX(-50%);
441
- display: flex;
442
- align-items: center;
443
- justify-content: center;
444
- width: 100%;
445
- pointer-events: none;
446
- `,za=zt($i)`
447
- text-transform: uppercase;
448
- font-family: ${({theme:e})=>e.font_family.secondary};
449
- pointer-events: auto;
450
- `,La=zt($i)`
451
- text-transform: uppercase;
452
- font-weight: 500;
453
- font-size: 14px;
454
- font-family: ${({theme:e})=>e.font_family.secondary};
455
- text-decoration: underline;
456
- cursor: pointer;
457
- `,Pa=({isOpen:e,noOverlay:t,header:o,actionComponent:r,onClose:i,children:n,closeOnEscape:a=!0})=>(Yn({key:"Escape",active:e&&a},()=>i()),Pn(e),e?Ht.createPortal(bt($t,{children:[yt(ka,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),bt(Na,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),children:[o&&bt(Ia,{children:[bt(_a,{onClick:i,children:[yt(Ke,{}),yt(La,{children:"Cancel"})]}),yt(Fa,{children:yt(za,{children:o.title})}),yt(Oa,{children:r})]}),yt(Ra,{children:n})]})]}),document.body):null),Ma=zt.div`
458
- width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
459
- height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
460
- margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
461
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+vn["050"]};
462
- opacity: ${({$opacity:e})=>e||1};
463
- `,Ba=({orientation:e="horizontal",type:t,thickness:o=1,length:r,margin:i,opacity:n})=>yt(Ma,{$orientation:e,$type:t,$thickness:o,$length:r,$margin:i,$opacity:n}),Ua=zt.div`
464
- position: absolute;
465
- ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
466
- ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
467
- ${({$left:e})=>void 0!==e&&`left: ${e}px;`}
468
- ${({$right:e})=>void 0!==e&&`right: ${e}px;`}
469
- z-index: 9999;
470
-
471
- background-color: ${({theme:e})=>e.colors.info};
472
- border: 1px solid ${({theme:e})=>e.colors.border};
473
- border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
474
- max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
475
- width: ${({$width:e})=>void 0!==e?e:"unset"};
476
-
477
- ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
478
- `,ja=zt.div`
479
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
480
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
481
- `,Wa=zt.div`
482
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
483
- `,Ga=zt.div`
484
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
485
- border-top: 1px solid ${({theme:e})=>e.colors.border};
486
- `,Va=Tt(({isOpen:e,asPortal:t,...o},r)=>{const i=wt(()=>{const{children:e,top:i,bottom:n,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return bt(Ua,{ref:r,$top:i,$bottom:n,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&yt(ja,{$padding:c,children:u}),yt(Wa,{$padding:c,children:e}),h&&yt(Ga,{$padding:c,children:h})]})},[r,o,t]);return e?t?Ht.createPortal(i,document.body):i:null});Va.displayName=Va.name;const Xa=zt.div`
487
- width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
488
- position: relative;
489
- display: flex;
490
- align-items: center;
491
- gap: 4px;
492
- cursor: help;
493
- `,Ha=zt($i)`
494
- word-break: break-word;
495
- white-space: pre-wrap;
496
- `,Ja=({withIcon:e,titleIcon:t,title:o,text:r,timestamp:i,children:n,fullWidth:a=!1})=>{const s=Pt(),{popupRef:l,popupOpen:c,setPopupOpen:d,popupPosition:p,handlePosition:u}=Zn({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(r?.length||0),300)}),h=wt(()=>!!xi(r||"")?.length,[r]),m=e=>{const{type:t,clientX:o,clientY:r}=e;h?u(p.left||o,p.top||r):u(o,r),d("mouseleave"!==t)};return r?bt(Xa,{$fullWidth:a,onMouseEnter:m,onMouseMove:m,onMouseLeave:m,children:[n,e&&yt(Ue,{fill:s.v2.colors.silver[200]}),bt(Va,{ref:l,isOpen:c,top:p.top,left:p.left,asPortal:!0,withPointerEvents:h,onMouseEnter:h?m:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px",children:[(!!t||!!o)&&bt(va,{style:{marginBottom:"4px"},$gap:4,children:[t&&yt(t,{size:12,fill:s.text.secondary},"icon"),o&&yt($i,{size:12,color:s.text.secondary,children:o},"title")]}),yt(Ha,{size:12,color:s.text.info,children:r}),!!i&&yt($i,{size:10,color:s.text.darker_grey,family:"secondary",style:{marginTop:"8px"},children:new Date(i).toLocaleString()})]})]}):yt($t,{children:n})},Ka=zt.button`
497
- position: relative;
498
- width: ${({$size:e})=>e}px;
499
- height: ${({$size:e})=>e}px;
500
- border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
501
- border-radius: 100%;
502
- background-color: ${({$backgroundColor:e})=>e||"transparent"};
503
- display: flex;
504
- align-items: center;
505
- justify-content: center;
506
- cursor: pointer;
507
- &:hover {
508
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+vn["070"]:e.colors.dropdown_bg_2};
509
- }
510
- `,qa=zt.div`
511
- position: absolute;
512
- top: ${({$size:e})=>e/5}px;
513
- right: ${({$size:e})=>e/5}px;
514
- width: 6px;
515
- height: 6px;
516
- border-radius: 100%;
517
- background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
518
-
519
- &::after {
520
- content: '';
521
- position: absolute;
522
- inset: 0;
523
- border-radius: 100%;
524
- background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
525
- animation: ${kn} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
526
- }
527
- `,Ya=({children:e,onClick:t,tooltip:o,size:r=36,withPing:i,pingColor:n,withBorder:a,backgroundColor:s,...l})=>yt(Ja,{text:o,children:bt(Ka,{$size:r,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[i&&yt(qa,{$size:r,$color:n}),e]})}),Qa=zt.div`
528
- position: relative;
529
- &.animated {
530
- overflow: hidden;
531
- padding-bottom: 1px;
532
- border-radius: 32px;
533
- animation: ${({$isLeaving:e})=>e?Sn.out.bottom:Sn.in.bottom} ${({$duration:e})=>e/10}ms forwards;
534
- }
535
- `,Za=zt.div`
536
- position: absolute;
537
- bottom: -1px;
538
- left: 0;
539
- z-index: -1;
540
- width: 100%;
541
- height: 100%;
542
- border-radius: 32px;
543
- background-color: ${({$type:e,theme:t})=>t.text[e]};
544
- animation: ${Cn.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
545
- `,es=zt.div`
546
- display: flex;
547
- align-items: center;
548
- flex: 1;
549
- gap: 8px;
550
- padding: 0 12px;
551
- border-radius: 32px;
552
- background-color: ${({$type:e,theme:t})=>t.colors[e]};
553
- `,ts=zt.div`
554
- display: flex;
555
- align-items: center;
556
- margin: 0 auto 0 0;
557
- padding: 8px 0;
558
- max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
559
- min-height: 12px;
560
- `,os=zt($i)`
561
- font-size: 14px;
562
- color: ${({$type:e,theme:t})=>t.text[e]};
563
- `,rs=zt($i)`
564
- color: ${({$type:e,theme:t})=>t.text[e]};
565
- font-size: 12px;
566
- `,is=zt(va)``,ns=zt($i)`
567
- text-transform: uppercase;
568
- text-decoration: underline;
569
- font-size: 12px;
570
- font-family: ${({theme:e})=>e.font_family.secondary};
571
- white-space: nowrap;
572
- cursor: pointer;
573
- &:hover {
574
- transform: scale(1.1);
575
- transition: transform 0.3s;
576
- }
577
- `,as=({type:e,icon:t,title:o,message:r,action:i,onClose:n,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Pt(),[d,p]=St(!1),u=kt(null),h=kt(null),m=e=>{n&&(p(!0),n({asSeen:e?.asSeen}))};Ct(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||Mr(e,c);return bt(Qa,{className:n?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[bt(es,{"data-id":"toast",$type:e,style:l,children:[yt(g,{fill:c.text[e]}),bt(ts,{$withAction:!!i,$overrideMaxWidth:s,children:[o&&yt(os,{$type:e,children:o}),o&&r&&yt(Ba,{orientation:"vertical",type:e}),r&&yt(rs,{$type:e,children:r})]}),(!!i||!!n)&&bt(is,{children:[i&&yt(ns,{"data-id":"toast-action",onClick:i.onClick,children:i.label}),n&&yt(Ya,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:yt(Ke,{size:12})})]})]}),n&&yt(Za,{ref:h,$duration:a,$type:e})]})},ss=zt.div`
578
- padding: 24px 32px;
579
- `,ls=zt.div`
580
- padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
581
- `,cs=zt($i)`
582
- font-size: 20px;
583
- line-height: 28px;
584
- `,ds=zt($i)`
585
- color: ${({theme:e})=>e.text.grey};
586
- width: 416px;
587
- font-style: normal;
588
- font-weight: 300;
589
- line-height: 24px;
590
- `,ps=zt.div`
591
- display: flex;
592
- justify-content: space-between;
593
- gap: 12px;
594
- `,us=zt(Rn)`
595
- width: 250px;
596
- `,hs=zt.div`
597
- margin-bottom: 12px;
598
- `,ms=({isOpen:e,noOverlay:t,title:o="",description:r="",note:i,approveButton:n,denyButton:a,closeOnEscape:s=!0})=>{Yn({key:"Enter",active:e&&s},()=>n.onClick());const l=()=>a.onClick();return yt(Pa,{isOpen:e,noOverlay:t,onClose:l,children:bt(ss,{children:[yt(cs,{children:o}),yt(ls,{$withNote:!!i,children:yt(ds,{children:r})}),!!i&&yt(hs,{children:yt(as,{type:i.type,title:i.title,message:i.message})}),bt(ps,{children:[yt(us,{"data-id":"approve",variant:n.variant||"primary",onClick:()=>n.onClick(),children:n.text}),yt(us,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},gs=({isOpen:e,noOverlay:t,name:o,onApprove:r,onDeny:i})=>yt(ms,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:No.Warning,onClick:r},denyButton:{text:"Go Back",onClick:i}}),fs=zt.div`
599
- display: flex;
600
- align-items: center;
601
- gap: 8px;
602
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
603
- opacity: ${({$disabled:e})=>e?.6:1};
604
- `,xs=zt.div`
605
- width: 18px;
606
- height: 18px;
607
- border-radius: 6px;
608
- border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e||t?"transparent":o.colors.secondary};
609
- display: flex;
610
- align-items: center;
611
- justify-content: center;
612
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+vn["020"]};
613
- pointer-events: ${({$disabled:e})=>e?"none":"auto"};
614
- transition: border 0.3s;
615
- &:hover {
616
- border: 1px solid ${({theme:e})=>e.colors.secondary};
617
- }
618
- `,ys=({title:e,titleColor:t,tooltip:o,value:r=!1,partiallyChecked:i=!1,onChange:n,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Pt(),[p,u]=St(r);Ct(()=>u(r),[r]);return bt(wa,{children:[bt(fs,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),n?n(!!i||!p):u(e=>!!i||!e))},style:s,children:[yt(xs,{$isChecked:p,$isPartiallyChecked:i,$disabled:a,children:i?yt(qe,{fill:d.text.white}):p?yt(He,{fill:d.text.white}):null}),e&&yt(Ja,{text:o,withIcon:!0,children:yt($i,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&yt(Si,{children:l})]})},bs=zt(va)`
619
- gap: 0;
620
- `,$s=zt.button`
621
- padding: 4px 8px;
622
- background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
623
- border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
624
- border: 1px solid ${({theme:e})=>e.colors.border};
625
- display: flex;
626
- align-items: center;
627
- justify-content: center;
628
- cursor: pointer;
629
- &:hover {
630
- border: 1px solid ${({theme:e})=>e.colors.secondary};
631
- }
632
- `,vs=({isPrettyMode:e,setIsPrettyMode:t})=>bt(bs,{children:[yt($s,{$position:"left",$selected:e,onClick:()=>t(!0),children:yt(Ye,{})}),yt($s,{$position:"right",$selected:!e,onClick:()=>t(!1),children:yt(Qe,{})})]}),ws=zt.table`
633
- border-collapse: collapse;
634
- font-family: ${({theme:e})=>e.font_family.primary};
635
- `,Ss=zt.tbody``,Cs=zt.tr`
636
- td:first-child {
637
- padding-left: 0 !important;
638
- }
639
- td:last-child {
640
- padding-right: 0 !important;
641
- }
642
- `,ks=zt.td`
643
- vertical-align: top;
644
- padding: 4px 6px;
645
- `,Es=zt($i)`
646
- white-space: nowrap;
647
- `,As=zt.span`
648
- white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
649
- overflow-wrap: break-word;
650
- word-break: break-word;
651
- word-wrap: break-word;
652
- /* Fallback for older browsers */
653
- -ms-word-break: break-all;
654
- font-size: 12px;
655
- `,Ds=({language:e,code:t,theme:o,flatten:r,pretty:i})=>{const{darkMode:n}=Pt(),a=o?qt[o]:n?qt.palenight:qt.vsLight;let s="";if("json"===e){const e=Wr(t,{}),o=si(e);s=li(r?hr(o):o)}else s=t;return i&&"json"===e?yt(Ts,{darkMode:n,str:s}):yt(Kt,{theme:a||(n?qt.palenight:qt.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:o})=>yt("pre",{children:o.map((o,r)=>yt("div",{...e({line:o}),children:o.map((e,o)=>yt(As,{...t({token:e})},`line-${r}-token-${o}`))},`line-${r}`))})})},Ts=({darkMode:e,str:t})=>{const o=Pt(),r=(e,t)=>{const r=new Array(e).fill(e=>bt(Cs,{...e,children:[yt(ks,{}),yt(ks,{})]}));return yt(vt,{children:r.map((e,r)=>yt(e,{style:0===r?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${t}-${r}`))})};return yt(Kt,{theme:e?qt.palenight:qt.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:i})=>yt(ws,{children:yt(Ss,{children:i.map((i,n)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],r=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(r.split("@")[0])&&(o[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:r}})})(i),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?bt(vt,{children:[r(2,n),bt(Cs,{...s,children:[yt(ks,{children:yt(Es,{children:a[0].content})}),yt(ks,{})]})]},`line-${n}`):2===a.length?yt(Cs,{...s,children:a.map((e,r)=>{const{text:i,components:a}=((e,t)=>{const[o,...r]=e.split("@");return{text:o,components:r?.map((e,o)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return yt(Ja,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return yt("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let e=Mr(i,t);return e||(e=Mr(No.Warning,t)),yt(e,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===r;return yt(ks,{children:bt(va,{children:[yt(va,{children:a}),yt(As,{$noWrap:s,...t({token:e}),children:i})]})},`line-${n}-token-${r}`)})},`line-${n}`):(a.length,null)})})})})},Ns={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 o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return Ns[r]?{value:t,unit:r}:{value:t,unit:"px"}}function _s(e){const t=Is(e);return`${t.value}${t.unit}`}const Os=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Rs=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Pt(),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*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:_s(1.5),height:_s(4),borderRadius:_s(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Os} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[yt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),yt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),yt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),yt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),yt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),yt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Fs=zt.div`
656
- margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
657
- display: flex;
658
- align-items: center;
659
- justify-content: center;
660
- `,zs=({extend:e,size:t=14,align:o="center"})=>yt(Fs,{$align:o,children:yt(Ze,{size:t,rotate:e?180:0})}),Ls=zt.div`
661
- border-radius: 24px;
662
- background-color: ${({theme:e,$status:t})=>t===No.Error?e.text.error+vn["010"]:t===No.Warning?e.text.warning+vn["010"]:e.colors.secondary+vn["005"]};
663
- &:hover {
664
- background-color: ${({theme:e,$status:t})=>t===No.Error?e.text.error+vn["020"]:t===No.Warning?e.text.warning+vn["020"]:e.colors.secondary+vn["010"]};
665
- }
666
- cursor: pointer;
667
- transition: background 0.3s;
668
- `,Ps=zt.div`
669
- display: flex;
670
- align-items: center;
671
- gap: 12px;
672
- padding: 12px 18px;
673
- `,Ms=zt.div`
674
- display: flex;
675
- flex-direction: column;
676
- gap: 8px;
677
- padding: 6px 18px 12px 18px;
678
- `,Bs=zt.div`
679
- display: flex;
680
- align-items: center;
681
- gap: 12px;
682
- `,Us=zt($i)`
683
- white-space: nowrap;
684
- `,js=zt(wa)`
685
- width: 16px;
686
- `,Ws=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:r="Everything Successful"})=>{const i=Pt(),[n,a]=St(!1),s=wt(()=>ei(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=wt(()=>yr(s),[s]);Ct(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?No.Error:p?No.Warning:u?No.Info:No.Success,f=Mr(g,i),x=c?t:p||u?o:m?"Loading...":r,y=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,$=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,v=Et(()=>a(e=>!e),[]);return bt(Ls,{onClick:v,$status:g,children:[bt(Ps,{children:[yt(m?Rs:f,{}),yt($i,{color:y,size:14,children:x}),yt($i,{color:$,size:12,family:"secondary",children:b}),yt(zs,{extend:n,align:"right"})]}),n&&yt(Ms,{children:s.map(({status:e,type:t,reason:o,message:r},n)=>{const a=e===_o.Loading?()=>yt(Rs,{scale:.8}):e===_o.Disabled?Mr(No.Info,i):Mr(e,i),s=e===_o.Disabled?i.text.info:e===No.Error?i.text.error:e===No.Warning?i.text.warning:i.text.info,l=e===_o.Disabled?i.text.info_secondary:e===No.Error?i.text.error_secondary:e===No.Warning?i.text.warning_secondary:i.text.info_secondary;return bt(Bs,{children:[yt(js,{children:yt(a,{})}),bt($i,{color:s,size:12,children:[yt(Us,{color:l,size:12,weight:700,children:t}),r||o]})]},`condition-${n}`)})})]})},Gs=zt.div`
687
- display: flex;
688
- align-items: center;
689
- gap: ${({$size:e})=>e/3}px;
690
- padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
691
- width: ${({$width:e})=>e||"fit-content"};
692
- border-radius: 360px;
693
- border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+vn["050"]}`:"none"};
694
- background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+vn["030"]} 100%)`:"transparent"};
695
- `,Vs=zt.div`
696
- display: flex;
697
- align-items: center;
698
- `,Xs=zt.div`
699
- display: flex;
700
- align-items: center;
701
- `,Hs=({title:e,subtitle:t,status:o=No.Default,forceIcon:r,withIcon:i,withBorder:n,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Pt(),u=[_o.Loading,_o.Disabled].includes(o)?No.Info:o,h=r?()=>yt(r,{size:l+2,fill:p.text[u]}):o===_o.Loading?()=>yt(Rs,{scale:.8}):()=>Mr(u,p)?.({size:l+2});return bt(Gs,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:n,$withBackground:a,children:[i&&yt(Vs,{children:yt(h,{})}),(!!e||!!t)&&bt(Xs,{children:[!!e&&yt($i,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&yt(Ba,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&yt($i,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Js=({label:e,onClick:t,variant:o="tertiary",textProps:r,...i})=>{const n=Pt();return bt(Rn,{onClick:t,variant:o,...i,children:[yt(et,{fill:"primary"===o?n.text.primary:n.text.info}),yt($i,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?n.text.primary:void 0,...r,children:e||pr.ADD})]})},Ks=zt(va)`
702
- width: 100%;
703
- border-radius: 8px;
704
- background-color: ${({theme:e})=>e.colors.secondary+vn["010"]};
705
- pre {
706
- color: ${({theme:e})=>e.text.default};
707
- font-size: 12px;
708
- overflow-x: auto;
709
- width: 100%;
710
- padding-left: 12px;
711
- }
712
- `,qs=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:r}=Vn();return bt(Ks,{children:[yt("pre",{children:e}),yt(Ya,{onClick:r=>{r.stopPropagation(),o(e),t?.()},tooltip:r?"Copied!":"Copy",children:yt(r?He:Je,{})})]})},Ys=({label:e,onClick:t,variant:o="tertiary",...r})=>{const i=Pt();return bt(Rn,{onClick:t,variant:o,...r,children:[yt(tt,{fill:"primary"===o?i.text.primary:i.text.info}),yt($i,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0,children:e||pr.EDIT})]})},Qs=({onClick:e})=>yt(as,{type:No.Default,icon:Xe,message:dr.QUICK_BACK_TO_SUMMARY,action:{label:dr.GO_TO_SUMMARY,onClick:e}}),Zs=zt($i)`
713
- max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
714
- white-space: nowrap;
715
- overflow-x: auto;
716
-
717
- &::after {
718
- // This is to prevent the "browser default tooltip" from appearing when the title is too long
719
- content: '';
720
- display: block;
721
- }
722
- `,el=({maxWidth:e,text:t,textSize:o=16,textColor:r})=>{const[i,n]=St(!1),a=kt(null);return Ct(()=>{if(a.current){const{clientWidth:t}=a.current;n(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),bt(va,{$gap:0,children:[t&&yt(Ja,{text:i?t:void 0,children:yt(Zs,{ref:a,$maxWidth:e-o,size:o,color:r,children:t})}),i&&yt(Zs,{$maxWidth:o,size:o,color:r,children:"..."})]})},tl=({src:e="",alt:t="",size:o=16})=>{const[r,i]=St(!1);return e&&!r?yt("img",{src:e,alt:t,width:o,height:o,onError:()=>i(!0)}):yt(s,{size:o})},ol=zt.div`
723
- display: flex;
724
- align-items: center;
725
- justify-content: center;
726
- width: ${({$size:e})=>e}px;
727
- height: ${({$size:e})=>e}px;
728
- border-radius: 8px;
729
- background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+vn["030"]} 100%)`}};
730
- `,rl=({icon:e,src:t="",alt:o="",status:r,size:i=36})=>yt(ol,{$status:r,$size:i,children:t?yt(tl,{src:t,alt:o,size:i-12}):yt(e||s,{size:i-12})}),il=zt.div`
731
- position: relative;
732
- display: flex;
733
- flex-wrap: wrap;
734
- align-items: center;
735
- justify-content: center;
736
- width: ${({$size:e})=>e}px;
737
- height: ${({$size:e})=>e}px;
738
- `,nl=zt.div`
739
- position: absolute;
740
- top: ${({$top:e})=>e}px;
741
- left: ${({$left:e})=>e}px;
742
- z-index: ${({$zIndex:e})=>e};
743
- display: flex;
744
- align-items: center;
745
- justify-content: center;
746
- width: ${({$size:e})=>e}px;
747
- height: ${({$size:e})=>e}px;
748
- border-radius: 100%;
749
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+vn["030"]};
750
- background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+vn["030"]} 100%)`}};
751
- `,al=({icons:e=[],iconSrcs:t=[],status:o,size:r=36,id:i})=>{const n=Pt(),a=1===e.length||1===t.length?r-12:r/2.7;if(t.length>0)return yt(al,{icons:t.map(e=>()=>yt(tl,{src:e,size:a})),status:o,size:r,id:i});if(1===e.length)return yt(rl,{icon:e[0],status:o,size:r});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return yt(il,{$status:o,$size:r,children:e.map((t,r)=>r>2?null:yt(nl,{$status:o,$size:1.5*a,$top:s(r),$left:l(r),$zIndex:r+1,children:2===r&&e.length>3?bt($i,{family:"secondary",color:n.text.dark_grey,size:.8*a,children:["+",e.length-2]}):yt(t,{size:a})},`icon-${i}-${r}`))})},sl=Xi.map(({id:e})=>e),ll=({monitors:e=sl,withTooltips:t,withLabels:o,size:r=12,color:i})=>{const n=Pt(),a=i||n.text.grey;return yt(va,{$gap:o?r:r/2,children:e.map(e=>{const i=eo(e.toLowerCase()),n=_r(e);return n?yt(Ja,{text:t?i:"",children:bt(va,{$gap:r/3,children:[yt(n,{size:o?r+2:r,fill:a}),o&&yt($i,{size:r,color:a,children:i})]})},e):null})})},cl=zt.div`
752
- visibility: hidden;
753
- `,dl=zt.div`
754
- display: flex;
755
- flex-direction: column;
756
- align-self: stretch;
757
- padding: 16px;
758
- width: calc(100% - 32px);
759
- border-radius: 16px;
760
- background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+vn["010"]:e.colors.secondary+vn["005"])};
761
- opacity: ${({$faded:e})=>e?.5:1};
762
-
763
- ${({theme:e,$status:t,$bgColorHover:o,$withClick:r})=>r?Lt`
764
- &:hover {
765
- cursor: pointer;
766
- background-color: ${o||(t?e.text[t]+vn["020"]:e.colors.secondary+vn["010"])};
767
- ${cl} {
768
- visibility: visible;
769
- }
770
- }
771
- `:`\n &:hover {\n ${cl} {\n visibility: visible;\n }\n }\n `}
772
- `,pl=zt.div`
773
- display: flex;
774
- align-items: center;
775
- gap: 8px;
776
- margin-left: auto;
777
- `,ul=zt($i)`
778
- margin-right: 16px;
779
- `,hl=zt($i)`
780
- font-size: 10px;
781
- color: ${({theme:e})=>e.text.grey};
782
- `,ml=({title:e,subTitle:t,hoverText:o,onClick:r,renderActions:i,iconProps:{icon:n,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:f,isCheckboxDisabled:x,isChecked:y,isLoading:b,onCheckboxChange:$}={},extendableProps:{withExtend:v,isExtended:w,renderExtended:S}={},...C})=>{const k=Pt(),[E,A]=St(w||!1),[D,T]=St(0),N=kt(null),I=kt(null),_=kt(null);return Ct(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((f?125:85)+t))}},[f]),bt(dl,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!r,onClick:r,...C,children:[bt(va,{$gap:8,children:[bt(va,{$gap:16,children:[b?yt(Rs,{}):f?yt(ys,{value:y,onChange:$,disabled:x}):null,a?.length||l?.length?yt(al,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):n||s?yt(rl,{icon:n,src:s,status:c}):null]}),bt(wa,{$gap:4,children:[e&&yt(el,{maxWidth:D,text:e,textSize:14}),bt(va,{$gap:4,children:[t&&yt(el,{maxWidth:D-(_.current?.clientWidth||0),text:t,textSize:10,textColor:k.text.grey}),h&&h.length>0&&bt(va,{$gap:4,ref:_,children:[t&&yt(hl,{children:"•"}),yt(ll,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?yt(va,{$gap:4,children:g?.map((e,t)=>yt(vt,{children:e},`componentsUnderTitles-${t}`))}):null]}),bt(pl,{ref:I,children:[!!o&&yt(cl,{children:yt(ul,{size:14,family:"secondary",children:o})}),i&&i(),v&&bt(vt,{children:[yt(Ba,{orientation:"vertical",length:"16px",margin:"0 2px"}),yt(Ya,{onClick:()=>A(e=>!e),children:yt(zs,{extend:E})})]})]})]}),E&&S&&bt(wa,{children:[yt(Ba,{margin:"16px 0"}),S()]})]})},gl=zt(va)`
783
- width: 100%;
784
- justify-content: space-between;
785
- `,fl=zt($i)`
786
- font-size: 12px;
787
- color: ${({theme:e})=>e.text.grey};
788
- `,xl=zt($i)`
789
- font-size: 10px;
790
- color: ${({theme:e})=>e.text.darker_grey};
791
- `,yl=zt.div`
792
- display: flex;
793
- align-items: center;
794
- gap: 8px;
795
- margin-left: auto;
796
- `,bl=zt($i)`
797
- font-size: 12px;
798
- text-align: right;
799
- `,$l=({title:e,subTitle:t,tooltip:o,value:r})=>bt(gl,{children:[yt(wa,{$gap:4,children:bt(Ja,{text:o||"",children:[e&&yt(fl,{children:e},"title"),t&&yt(xl,{children:t},"subtitle")]})}),yt(yl,{children:r?.status?yt(Hs,{status:"transitioning"===r.status?_o.Loading:r.status,title:r.text||r.status,withBorder:!0,withIcon:!0}):yt(bl,{children:r?.text||"-"})})]}),vl=zt(wa)`
800
- width: 100%;
801
- `,wl=({containerName:e,actualDevices:t,started:o,ready:r,instrumentationInstances:i})=>{const n=wt(()=>{const e=[];return o?.name&&e.push(yt(Hs,{status:Kr(o.value)?ni(o.value)?No.Success:No.Error:No.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),r?.name&&e.push(yt(Hs,{status:Kr(r.value)?ni(r.value)?No.Success:No.Error:No.Default,title:r.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[o?.name,o?.value,r?.name,r?.value]);return yt(ml,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:n},renderActions:()=>yt(Hs,{status:No.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>yt(vl,{$gap:24,children:i.map((e,t)=>bt(vl,{$gap:8,children:[yt($l,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===No.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>yt($l,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},Sl=({title:e="Data not found",subTitle:t})=>{const o=Pt().v2.colors.grey[400];return bt(Sa,{children:[bt(va,{$gap:8,children:[yt(ot,{fill:o}),yt(gi,{size:hi.XS,color:o,align:"center",children:e})]}),t&&yt(gi,{size:hi.XXS,color:o,align:"center",children:t})]})},Cl=zt(wa)`
802
- max-width: 300px;
803
- padding: 12px;
804
- border-radius: 12px;
805
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
806
- justify-content: center;
807
- `,kl=Nt(({id:e,data:t})=>{const{title:o,subTitle:r}=t;return yt(Cl,{"data-id":e,children:yt(Sl,{title:o,subTitle:r})})});kl.displayName=kl.name;const El=zt.div`
808
- padding: 6px;
809
- border-radius: 12px;
810
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
811
- cursor: pointer;
812
- ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
813
- `,Al=zt.div`
814
- position: relative;
815
- `,Dl=zt.div`
816
- position: absolute;
817
- top: 100%;
818
- margin-top: 4px;
819
- left: 50%;
820
- transform: translateX(-50%);
821
- display: flex;
822
- flex-direction: column;
823
- align-items: center;
824
- gap: 2px;
825
- width: 140px;
826
- text-align: center;
827
- `,Tl=Nt(({id:e,data:t})=>{const{id:o,status:r,title:i,icons:n,isVirtual:a}=t,s=Pt(),l=a||r!==No.Error?null:Mr(r,s);return bt($t,{children:[yt(Ut,{type:"source",position:jt.Right,style:{visibility:"hidden"}}),yt(Ut,{type:"target",position:jt.Left,style:{visibility:"hidden"}}),bt(Al,{"data-id":e,children:[yt(El,{$isVirtual:a,children:yt(al,{id:o,icons:n,status:a?void 0:r})}),bt(Dl,{children:[l&&yt(l,{}),yt($i,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:i})]})]})]})});Tl.displayName=Tl.name;const Nl={duration:300,padding:.1,includeHiddenNodes:!0},Il=zt.div`
828
- height: 100%;
829
- .react-flow__attribution {
830
- visibility: hidden;
831
- }
832
- `,_l=zt.div`
833
- button {
834
- padding: 8px;
835
- margin: 8px;
836
- border-radius: 8px;
837
- border: 1px solid ${({theme:e})=>e.colors.border} !important;
838
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
839
- path {
840
- fill: ${({theme:e})=>e.text.secondary};
841
- }
842
- &:hover {
843
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
844
- }
845
- }
846
- `,Ol={[Fo.MapItem]:Tl,[Fo.NoData]:kl},Rl=({trigger:e})=>{const{fitView:t}=Xt(),o=kt(!0);return Ct(()=>{o.current?o.current=!1:e>0&&requestAnimationFrame(()=>t(Nl))},[e,t]),null},Fl=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:r,fitViewTrigger:i=0,zoomOnScroll:n=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l})=>{const{onClickNode:c}=Mn(),{setActiveNodeType:d,setActiveNodeId:p}=Mi();return bt(Gt,{zoomOnScroll:n,nodes:e,nodeTypes:Ol,edges:t,onNodeClick:c,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:e=>{setTimeout(()=>o(e),0)},onEdgesChange:e=>{setTimeout(()=>r(e),0)},onBlur:()=>{d(null),p(null)},onlyRenderVisibleElements:!0,children:[yt(Rl,{trigger:i}),yt(_l,{children:yt(Vt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Nl})})]})},zl=e=>yt(Il,{children:yt(Wt,{children:yt(Fl,{...e})})}),Ll=zt.div`
847
- display: flex;
848
-
849
- align-items: center;
850
- gap: 6px;
851
- margin-bottom: 4px;
852
- `,Pl=zt($i)`
853
- font-size: 14px;
854
- opacity: 0.8;
855
- line-height: 22px;
856
- overflow: hidden;
857
- white-space: nowrap;
858
- text-overflow: ellipsis;
859
- color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
860
- `,Ml=zt($i)`
861
- font-size: 12px;
862
- color: ${({theme:e})=>e.text.darker_grey};
863
- opacity: 0.8;
864
- `,Bl=({title:e,required:t,tooltip:o,style:r,status:i})=>e?yt(Ll,{style:r,children:bt(Ja,{text:o,withIcon:!0,children:[yt(Pl,{$status:i,children:e}),!t&&yt(Ml,{children:"(optional)"})]})}):null,Ul=zt.div`
865
- display: flex;
866
- flex-direction: column;
867
- position: relative;
868
- width: 100%;
869
- `,jl=zt.div`
870
- width: 100%;
871
- display: flex;
872
- align-items: center;
873
- height: 36px;
874
- gap: 12px;
875
- transition: border-color 0.3s;
876
- border-radius: 32px;
877
- border: 1px solid ${({theme:e})=>e.colors.border};
878
- ${({$disabled:e})=>e&&Lt`
879
- cursor: not-allowed;
880
- opacity: 0.6;
881
- `}
882
- ${({$isActive:e,$hasError:t,$status:o})=>e?Lt`
883
- border-color: ${({theme:e})=>e.colors.secondary};
884
- `:t?Lt`
885
- border-color: ${({theme:e})=>e.text.error};
886
- `:o?Lt`
887
- border-color: ${({theme:e})=>e.text[o]};
888
- `:""}
889
- &:hover {
890
- border-color: ${({theme:e})=>e.colors.secondary};
891
- }
892
- &:focus-within {
893
- border-color: ${({theme:e})=>e.colors.secondary};
894
- }
895
- `,Wl=zt.input`
896
- padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
897
- flex: 1;
898
- min-width: 150px;
899
- width: 100%;
900
- border: none;
901
- outline: none;
902
- background: none;
903
- color: ${({theme:e})=>e.text.secondary};
904
- font-size: 14px;
905
- font-family: ${({theme:e})=>e.font_family.primary};
906
- font-weight: 300;
907
- &::placeholder {
908
- color: ${({theme:e})=>e.text.secondary};
909
- font-family: ${({theme:e})=>e.font_family.primary};
910
- opacity: 0.4;
911
- font-size: 14px;
912
- font-weight: 300;
913
- line-height: 22px; /* 157.143% */
914
- }
915
- &:disabled {
916
- cursor: not-allowed;
917
- opacity: 0.6;
918
- }
919
- &::-webkit-inner-spin-button,
920
- &::-webkit-outer-spin-button {
921
- -webkit-appearance: none;
922
- margin: 0;
923
- }
924
- `,Gl=zt.div`
925
- display: flex;
926
- align-items: center;
927
- margin-left: 12px;
928
- `,Vl=zt(Gl)`
929
- cursor: pointer;
930
- `,Xl=zt.button`
931
- background-color: ${({theme:e})=>e.colors.primary};
932
- border: none;
933
- color: ${({theme:e})=>e.text.secondary};
934
- padding: 8px 16px;
935
- border-radius: 20px;
936
- cursor: pointer;
937
- margin-left: 8px;
938
- &:hover {
939
- background-color: ${({theme:e})=>e.colors.secondary};
940
- }
941
- &:disabled {
942
- background-color: ${({theme:e})=>e.colors.border};
943
- cursor: not-allowed;
944
- }
945
- `,Hl=({icon:e,buttonLabel:t,onButtonClick:o,hasError:r,errorMessage:i,title:n,tooltip:a,required:s,value:l,onChange:c,type:d=To.Text,name:p,status:u,...h})=>{const m=Pt(),g=d===To.Password,[f,x]=St(!1);return bt(Ul,{children:[yt(Bl,{title:n,required:s,tooltip:a,status:u}),bt(jl,{$disabled:h.disabled,$hasError:r||!!i,$isActive:!!h.autoFocus,$status:u,children:[g?yt(Vl,{onClick:()=>x(e=>!e),children:yt(f?rt:it,{size:14,fill:m.text.grey})}):e?yt(Gl,{children:yt(e,{size:14,fill:m.text.grey})}):null,yt(Wl,{"data-id":p,type:f||d===To.Number?To.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===To.Number&&(e.target.value=ii(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&yt(Xl,{onClick:o,disabled:h.disabled,children:t})]}),!!i&&yt(Si,{children:i})]})},Jl=zt.div`
946
- display: flex;
947
- flex-direction: column;
948
- min-width: 120px;
949
- width: 100%;
950
- opacity: ${({$disabled:e})=>e?.5:1};
951
- `,Kl=zt.div`
952
- position: relative;
953
- `,ql=zt.div`
954
- display: flex;
955
- align-items: center;
956
- justify-content: space-between;
957
- height: 36px;
958
- padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
959
- border-radius: 32px;
960
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
961
-
962
- ${({$isOpen:e,$isMulti:t,theme:o})=>e&&!t?Lt`
963
- border: 1px solid ${o.text.grey};
964
- background: ${o.colors.dropdown_bg_2};
965
- `:Lt`
966
- border: 1px solid ${o.colors.border};
967
- background: transparent;
968
- `};
969
-
970
- ${({$hasError:e,$status:t})=>e?Lt`
971
- border-color: ${({theme:e})=>e.text.error};
972
- `:t?Lt`
973
- border-color: ${({theme:e})=>e.text[t]};
974
- `:""}
975
-
976
- &:hover {
977
- border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:r})=>o?"auto":e&&t?r.colors.border:r.colors.secondary};
978
- }
979
- `,Yl=zt.div`
980
- display: flex;
981
- align-items: center;
982
- gap: 4px;
983
- `,Ql=({options:e,value:t,onSelect:o,onDeselect:r,title:i,tooltip:n,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=St(!1),[f,x]=St(!1),y=kt(null);Qn(y,()=>g(!1));const b=()=>{(()=>{if(y.current){const e=y.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},$=Array.isArray(t)?t.length:0;return bt(Jl,{$disabled:s,children:[yt(Bl,{title:i,required:d,tooltip:n,status:h}),bt(Kl,{ref:y,children:[bt(ql,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[yt(oc,{value:t,placeholder:a,onDeselect:r}),bt(Yl,{children:[l&&yt(Nn,{label:$,filled:!!$}),yt(zs,{extend:m})]})]}),m&&yt(nc,{openUpwards:f,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{r?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&yt(Si,{children:p})]})},Zl=zt(Yl)`
984
- max-width: calc(100% - 50px);
985
- overflow-x: auto;
986
- `,ec=zt($i)`
987
- display: flex;
988
- align-items: center;
989
- gap: 2px;
990
- padding: 4px 12px;
991
- background: ${({theme:e})=>e.colors.dropdown_bg_2};
992
- border-radius: 360px;
993
- white-space: nowrap;
994
- text-overflow: ellipsis;
995
- img {
996
- &:hover {
997
- transform: scale(2);
998
- transition: transform 0.3s;
999
- }
1000
- }
1001
- `,tc=zt($i)``,oc=({value:e,placeholder:t,onDeselect:o})=>{const r=Pt();return Array.isArray(e)?e.length?yt(Zl,{children:e.map(e=>bt(ec,{size:14,children:[e.value,yt(Ba,{orientation:"vertical",length:"10px",margin:"0 4px"}),yt(Ke,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})]},`multi-label-${e.id}`))}):yt(tc,{size:14,color:r.text.darker_grey,children:t}):yt(tc,{size:14,color:e?.value?void 0:r.text.darker_grey,children:e?.value||t})},rc=zt.div`
1002
- position: absolute;
1003
- ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1004
- left: 0;
1005
- z-index: 1;
1006
- display: flex;
1007
- flex-direction: column;
1008
- overflow-y: auto;
1009
- width: calc(100% - 16px);
1010
- max-height: 200px;
1011
- gap: 8px;
1012
- padding: 8px;
1013
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1014
- border: 1px solid ${({theme:e})=>e.colors.border};
1015
- border-radius: 24px;
1016
- `,ic=zt.div`
1017
- display: flex;
1018
- flex-direction: column;
1019
- align-items: center;
1020
- `,nc=({openUpwards:e,options:t,value:o,onSelect:r,onDeselect:i,isMulti:n,showSearch:a})=>{const[s,l]=St(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return bt(rc,{$openUpwards:e,children:[a&&bt(ic,{children:[yt(Hl,{placeholder:"Search...",icon:nt,value:s,onChange:e=>l(e.target.value)}),yt(Ba,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?yt(Sl,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>yt(sc,{option:e,value:o,isMulti:n,onSelect:r,onDeselect:i},`dropdown-option-${e.id||t}`))]})},ac=zt.div`
1021
- padding: 8px 12px;
1022
- cursor: pointer;
1023
- display: flex;
1024
- justify-content: space-between;
1025
- align-items: center;
1026
- border-radius: 32px;
1027
- &:hover,
1028
- &.selected {
1029
- background: ${({theme:e})=>e.colors.majestic_blue+vn["024"]};
1030
- }
1031
- `,sc=({option:e,value:t,isMulti:o,onSelect:r,onDeselect:i})=>{const n=Pt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?r?.(e):i?.(e);return o?yt(ac,{className:a?"selected":"",onClick:()=>s(!a),children:yt(ys,{title:e.value||"",titleColor:n.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):bt(ac,{className:a?"selected":"",onClick:()=>a?i?.(e):r?.(e),children:[bt(va,{$gap:8,children:[e.icon&&yt(e.icon,{}),yt($i,{size:14,children:e.value})]}),a&&yt(He,{})]})},lc=zt(wa)`
1032
- gap: 12px;
1033
- `,cc=zt(va)`
1034
- width: 100%;
1035
- gap: 12px;
1036
- align-items: flex-end;
1037
- `,dc=({clientX:e=0,flipX:t,clientY:o=0,flipY:r,isOpen:i,onClose:n,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Pt(),{popupRef:m,popupPosition:g,handlePosition:f}=Zn({onClickOutside:n});return Yn({key:"Enter",active:i},a),Ct(()=>f(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:yt(Va,{ref:m,isOpen:i,top:r?void 0:g.top,bottom:r?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:bt(lc,{children:[yt(Ja,{text:d,withIcon:!0,children:yt($i,{size:14,children:c})}),bt(cc,{children:[u,bt(va,{$gap:6,children:[yt(Ya,{withBorder:!0,onClick:n,tooltip:"Cancel",children:yt(Ke,{})}),yt(Ya,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:yt(He,{fill:h.text.primary})}),s&&yt(Ya,{onClick:l,tooltip:"Undo",children:yt(at,{})})]})]}),p&&yt(as,{type:No.Warning,message:p})]})})},pc=zt.div`
1038
- position: relative;
1039
- `,uc=({defaultLanguage:e=Co.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:r})=>{const{tier:i}=aa(),{addNotification:n}=an(),{formData:a,handleFormChange:s,resetFormData:l}=Fn({language:e,version:t,otelDistroName:o}),[c,d]=St(!1),p=()=>{d(!1),l()},u=wt(()=>{if(!a.language)return[];const e=Ki[a.language].community,t=i===vo.Onprem?Ki[a.language].enterprise:[];return e.concat(t)},[a.language,i]);return bt(pc,{children:[yt(Ya,{tooltip:dr.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:yt(tt,{})}),yt(dc,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||Qr(a.version)?(await r({...a}),p()):n({type:No.Warning,message:cr.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await r({language:null,version:"",otelDistroName:null}),p()},title:dr.OVERRIDE_RUNTIME_DETAILS,warning:dr.OVERRIDE_RUNTIME_WARNING,children:bt(wa,{$gap:12,children:[bt(va,{$gap:12,children:[yt(Ql,{title:dr.LANGUAGE,options:Ji,value:Ji.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),yt(Hl,{title:dr.RUNTIME_VERSION,placeholder:dr.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&yt(Ql,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},hc=zt(va)`
1040
- width: 100%;
1041
- justify-content: center;
1042
- `,mc=({containerName:e,language:t,runtimeVersion:o,overriden:r,instrumented:i,instrumentationMessage:n,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Pt(),c=i?No.Success:n?No.Info:No.Warning,d=i?Io.INSTRUMENTED:n?Io.NOT_INSTRUMENTED:Io.INSTRUMENTING;return yt(ml,{title:e,subTitle:`${t?Hi[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:$r(t)},extendableProps:{isExtended:!!n,renderExtended:()=>yt(hc,{children:yt($i,{size:12,family:"secondary",color:l.text.info,children:Zr(n)})})},renderActions:()=>bt($t,{children:[yt(Hs,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),r&&yt(Hs,{status:No.Default,forceIcon:st,title:dr.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&yt(uc,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},gc=zt.tr`
1043
- cursor: ${({$withHover:e})=>e?"pointer":"default"};
1044
- opacity: ${({$faded:e})=>e?.5:1};
1045
- `,fc=zt.td`
1046
- position: relative;
1047
- width: fit-content;
1048
- padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
1049
- color: ${({theme:e})=>e.text.secondary};
1050
- font-family: ${({theme:e})=>e.font_family.primary};
1051
- font-size: 14px;
1052
- white-space: nowrap;
1053
- `,xc=zt($i)`
1054
- font-size: 14px;
1055
- color: ${({$color:e,theme:t})=>e??t.text.secondary};
1056
- line-height: 16px;
1057
-
1058
- overflow: hidden;
1059
- overflow-wrap: break-word;
1060
- white-space: wrap;
1061
- text-wrap: wrap;
1062
- text-overflow: ellipsis;
1063
- display: -webkit-box;
1064
- -webkit-line-clamp: 2;
1065
- -webkit-box-orient: vertical;
1066
- `,yc=zt.div`
1067
- position: absolute;
1068
- top: 0;
1069
- left: 0;
1070
- z-index: -1;
1071
- width: ${({$width:e})=>e}px;
1072
- height: ${({$height:e})=>e}px;
1073
- border-radius: 16px;
1074
- background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+vn["020"]:e.colors.majestic_blue+vn["030"]:o?e.text[o]+vn["010"]:e.colors.secondary+vn["005"]};
1075
- `,bc=({index:e,columns:t,cells:o,onClick:r,status:i,faded:n})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Un(),[c,d]=St(!1);return yt(gc,{ref:a,onMouseEnter:()=>!!r&&d(!0),onMouseLeave:()=>!!r&&d(!1),onClick:()=>!!r&&r(),$withHover:!!r,$faded:n,children:t.map(({key:t},r)=>{const n=o.find(({columnKey:e})=>e===t);if(!n)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=n;return bt(fc,{$isFirst:0===r,children:[u?yt(rl,{icon:u}):h?yt(h,{}):yt(Ja,{text:p&&a?String(a):"",children:yt(xc,{$color:d,children:Xr(a)?"-":a})}),0===r&&yt(yc,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i})]},`table-row-${t}-${a}-${e}-${r}`)})})},$c=zt.div`
1076
- width: 100%;
1077
- `,vc=zt.table`
1078
- position: relative;
1079
- z-index: 0;
1080
- width: 100%;
1081
- border-collapse: separate;
1082
- border-spacing: 0 12px;
1083
- `,wc=zt.thead`
1084
- // only supported with "border-collapse: collapse;"
1085
- // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1086
- // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1087
- `,Sc=zt.th`
1088
- // only required with "border-collapse: separate;"
1089
- border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1090
- border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1091
-
1092
- padding: 8px;
1093
- `,Cc=zt(va)`
1094
- cursor: pointer;
1095
- &:hover {
1096
- * {
1097
- color: ${({theme:e})=>e.text.secondary};
1098
- }
1099
- }
1100
- `,kc=zt($i)`
1101
- color: ${({theme:e})=>e.text.darker_grey};
1102
- font-family: ${({theme:e})=>e.font_family.secondary};
1103
- text-transform: uppercase;
1104
- font-size: 12px;
1105
- font-weight: 500;
1106
- text-wrap: nowrap;
1107
- `,Ec=zt.tbody``,Ac=({columns:e,rows:t})=>{const[o,r]=St($o.Ascending),[i,n]=St("name"),a=Et(e=>{i===e?r(e=>e===$o.Ascending?$o.Descending:$o.Ascending):(n(e),r($o.Ascending))},[i]),s=wt(()=>{const r=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const n=r(e,i),a=r(t,i);return(o===$o.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,a)}):t).map(({status:t,faded:o,cells:r,onClick:i},n)=>yt(bc,{index:n,columns:e,cells:r,onClick:i,status:t,faded:o},`row-${n}`))},[e,t,i,o]);return yt($c,{children:bt(vc,{children:[yt(wc,{children:yt("tr",{children:e.map(({key:e,title:t,sortable:o})=>yt(Sc,{children:o?bt(Cc,{onClick:()=>a(e),children:[yt(lt,{}),yt(kc,{children:t})]}):yt(kc,{children:t})},`column-${e}`))})}),yt(Ec,{children:s})]})})};var Dc;!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"}(Dc||(Dc={}));const Tc=zt.div`
1108
- display: flex;
1109
- flex-wrap: wrap;
1110
- gap: 16px 32px;
1111
- width: 100%;
1112
- `,Nc=zt.div`
1113
- display: flex;
1114
- flex-direction: column;
1115
- gap: 2px;
1116
- width: ${({$width:e})=>e};
1117
- `,Ic=zt($i)`
1118
- color: ${({theme:e})=>e.text.grey};
1119
- font-size: 10px;
1120
- line-height: 16px;
1121
- `,_c=zt($i)`
1122
- font-size: 12px;
1123
- white-space: pre-wrap;
1124
- `,Oc=({data:e})=>yt(Tc,{children:e?.map(({type:e,title:t,titleIcon:o,tooltip:r,value:i},n)=>bt(Nc,{$width:e&&[Dc.Code,Dc.Table].includes(e)?"inherit":e&&[Dc.Loader,Dc.Divider,Dc.CopyText].includes(e)?"100%":"unset",children:[yt(Ja,{text:r,withIcon:!0,children:bt(va,{$alignItems:"center",$gap:4,children:[o&&yt(o,{size:14}),!!t&&yt(Ic,{transform:"capitalize",children:t})]})}),yt(Rc,{type:e,value:i})]},`data-field-${t||(i?JSON.stringify(i):n)}`))}),Rc=({type:e,value:t})=>{const o=Pt();switch(e){case Dc.Divider:return yt(Ba,{length:"100%",margin:"0"});case Dc.Loader:return yt(Sa,{children:yt(Rs,{scale:1.2})});case Dc.Monitors:return yt(ll,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Dc.Badge:{const{label:e,filled:o,...r}=Wr(t,{label:"-",filled:!1});return yt(Nn,{label:e,filled:o,...r})}case Dc.Code:{const{language:e,code:o,...r}=Wr(t,{language:"",code:""});return yt(Ds,{language:e,code:o,...r})}case Dc.Table:{const{columns:e,rows:o,...r}=Wr(t,{columns:[],rows:[{status:void 0,cells:[]}]});return yt(Ac,{columns:e,rows:o,...r})}case Dc.ActiveStatus:return yt(Hs,{status:"true"==t?No.Success:No.Error,title:"true"==t?dr.ENABLED:dr.DISABLED,size:10,withIcon:!0,withBorder:!0});case Dc.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return yt(qs,{value:e})}default:return yt(_c,{children:ai("string"==typeof t?t||"-":"")})}},Fc=zt.div`
1125
- display: flex;
1126
- flex-direction: column;
1127
- align-items: flex-start;
1128
- align-self: stretch;
1129
- gap: 16px;
1130
- padding: 24px;
1131
- border-radius: 24px;
1132
- border: 1px solid ${({theme:e})=>e.colors.border};
1133
- background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+vn["010"]:"transparent"};
1134
- transition: background-color 0.3s;
1135
- `,zc=zt.div`
1136
- width: 100%;
1137
- display: flex;
1138
- flex-direction: column;
1139
- gap: 4px;
1140
- cursor: ${({$clickable:e})=>e?"pointer":"default"};
1141
- `,Lc=zt($i)`
1142
- width: 100%;
1143
- display: flex;
1144
- align-items: center;
1145
- gap: 8px;
1146
- font-size: 16px;
1147
- `,Pc=zt($i)`
1148
- font-size: 12px;
1149
- color: ${({theme:e})=>e.text.grey};
1150
- `,Mc=zt(va)`
1151
- margin-left: auto;
1152
- gap: 8px;
1153
- `,Bc=({title:e="Details",titleBadge:t,titleIcon:o,description:r,action:i,withExtend:n,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=St(a),[p,u]=St(!1);return bt(Fc,{$hovered:p,children:[e||o||r||i?bt(zc,{$clickable:n||!1,onClick:()=>n&&d(e=>!e),onMouseEnter:()=>n&&u(!0),onMouseLeave:()=>n&&u(!1),children:[bt(va,{children:[bt(va,{$alignItems:"center",$gap:8,children:[o&&yt(va,{$alignItems:"center",children:yt(o,{size:20})}),!!e&&yt(Lc,{transform:"capitalize",children:e}),t===_o.Loading?yt(Rs,{}):void 0!==t&&yt(Nn,{label:t})]}),(!!i||n)&&bt(Mc,{children:["function"==typeof i?yt(i,{hovered:p}):i,n&&yt(zs,{extend:c})]})]}),!!r&&yt(Pc,{children:r})]}):null,(!n||n&&c)&&(l||yt(Oc,{data:s}))]})},Uc=zt.div`
1154
- visibility: hidden;
1155
- `,jc=zt(va)`
1156
- align-self: stretch;
1157
- width: calc(100% - 32px);
1158
- padding: 16px;
1159
- border-radius: 16px;
1160
- background-color: ${({theme:e})=>e.colors.secondary+vn["005"]};
1161
- ${({theme:e,$withClick:t})=>t?Lt`
1162
- &:hover {
1163
- cursor: pointer;
1164
- background-color: ${e.colors.secondary+vn["010"]};
1165
- ${Uc} {
1166
- visibility: visible;
1167
- }
1168
- }
1169
- `:`\n &:hover {\n ${Uc} {\n visibility: visible;\n }\n }\n `}
1170
- `,Wc=zt(va)`
1171
- margin-left: auto;
1172
- gap: 8px;
1173
- `,Gc=zt($i)`
1174
- font-size: 10px;
1175
- color: ${({theme:e})=>e.text.grey};
1176
- `,Vc=({title:e,subTitle:t,icons:o,iconSrcs:r,onClick:i,renderActions:n})=>{const a=Pt(),[s,l]=St(0),c=kt(null),d=kt(null);return Ct(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),bt(jc,{ref:c,$gap:8,$withClick:!!i,onClick:i,children:[yt(al,{id:`${e}-${t}`,icons:o,iconSrcs:r}),e&&yt(el,{maxWidth:s/2,text:e,textSize:14}),e&&t&&yt(Gc,{children:"•"}),t&&yt(el,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),yt(Wc,{ref:d,children:n&&bt($t,{children:[yt(Ba,{orientation:"vertical",length:"24px",margin:"0"}),n()]})})]})},Xc=({isOpen:e,noOverlay:t,name:o,type:r,isLastItem:i,onApprove:n,onDeny:a})=>{const s=r===Eo.Source?"uninstrument":"delete";return yt(ms,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:No.Warning,title:`You're about to ${s} the last ${r||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:n},denyButton:{text:"Go Back",onClick:a}})},Hc=zt(Rn)`
1177
- display: flex;
1178
- align-items: center;
1179
- justify-content: center;
1180
- font-size: 14px;
1181
- gap: 6px;
1182
- min-width: 100px;
1183
- `,Jc=({endpoint:e="/",variant:t="secondary"})=>bt(Hc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[yt(ct,{size:18}),"Docs"]}),Kc=zt(va)`
1184
- border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1185
- `,qc=zt.div`
1186
- display: flex;
1187
- align-items: center;
1188
- border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1189
- cursor: pointer;
1190
- `,Yc=zt($i)`
1191
- padding: 12px;
1192
- font-size: 14px;
1193
- color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1194
- `,Qc=({tabs:e,hideBorder:t=!1})=>e?.length?yt(Kc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:o,selected:r})=>bt(qc,{onClick:o,$selected:r,children:[yt(Yc,{$selected:r,children:e}),t&&yt(t,{})]},`tab-${e}`))}):null,Zc=zt.section`
1195
- padding: 0px 32px;
1196
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1197
- `,ed=zt.div`
1198
- height: 76px;
1199
- display: flex;
1200
- justify-content: space-between;
1201
- flex-shrink: 0;
1202
- align-self: stretch;
1203
- `,td=zt.div`
1204
- display: flex;
1205
- align-items: center;
1206
- gap: ${({$gap:e})=>e||16}px;
1207
- `,od=zt($i)`
1208
- font-size: 18px;
1209
- line-height: 26px;
1210
- max-width: ${({$maxWidth:e})=>e};
1211
- overflow: hidden;
1212
- white-space: nowrap;
1213
- text-overflow: ellipsis;
1214
- `,rd=zt(Rn)`
1215
- gap: 8px;
1216
- `,id=zt(Rn)``,nd=({onClose:e,width:t,icons:o,iconSrcs:r,title:i,titleTooltip:n,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>bt(Zc,{children:[bt(ed,{children:[bt(td,{children:[o?.length||r?.length?yt(al,{icons:o,iconSrcs:r,id:`drawer-header-${i}`}):null,("function"==typeof a?yt(a,{}):a||null)||yt(Ja,{text:n||i,withIcon:!!n,children:i&&yt(od,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:i})})]}),bt(td,{$gap:2,children:[s,l.map((e,t)=>yt(rd,{...e},`header-action-button-${t}`)),yt(id,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:yt(Ke,{size:12})})]})]}),yt(Qc,{tabs:c,hideBorder:!0})]}),ad=zt.div`
1217
- display: flex;
1218
- justify-content: space-between;
1219
- gap: 8px;
1220
- padding: 24px 18px 24px 32px;
1221
- border-top: 1px solid ${({theme:e})=>e.colors.border};
1222
- background-color: ${({theme:e})=>e.colors.translucent_bg};
1223
- transform: translateY(100%);
1224
- animation-name: ${Sn.in.bottom};
1225
- `,sd=zt(va)`
1226
- margin-right: auto;
1227
- `,ld=zt(va)`
1228
- margin: 0 auto;
1229
- `,cd=zt(va)`
1230
- margin-left: auto;
1231
- `,dd=zt(Rn)`
1232
- min-width: 140px;
1233
- font-size: 14px;
1234
- `,pd=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:r=[]})=>e?bt(ad,{children:[yt(sd,{children:t.map((e,t)=>yt(dd,{...e},`footer-left-button-${t}`))}),yt(ld,{children:o.map((e,t)=>yt(dd,{...e},`footer-center-button-${t}`))}),yt(cd,{children:r.map((e,t)=>yt(dd,{...e},`footer-right-button-${t}`))})]}):null,ud=zt.div`
1235
- position: fixed;
1236
- top: 0;
1237
- bottom: 0;
1238
- ${({$position:e})=>e}: 0;
1239
- z-index: 1000;
1240
- width: ${({$width:e})=>e};
1241
- background: ${({theme:e})=>e.colors.translucent_bg};
1242
- box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+vn["010"]};
1243
- overflow-y: auto;
1244
- animation-name: ${({$position:e})=>Sn.in[e]};
1245
- `,hd=zt.div`
1246
- display: flex;
1247
- flex-direction: column;
1248
- height: 100%;
1249
- `,md=zt.div`
1250
- flex-grow: 1;
1251
- padding: 24px 32px;
1252
- overflow-y: auto;
1253
- `,gd=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:r="right",width:i="300px",children:n,header:a,footer:s})=>(Yn({key:"Escape",active:e&&o},()=>t()),Pn(e),e?Ht.createPortal(bt($t,{children:[yt(ka,{hidden:!e,onClick:t}),yt(ud,{"data-id":"drawer",$position:r,$width:i,children:bt(hd,{children:[yt(nd,{onClose:t,width:i,...a}),yt(md,{children:n}),yt(pd,{...s})]})})]}),document.body):null),fd=({error:e})=>{const t=Pt(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return bt("div",{style:o.container,children:[yt("h2",{children:"Something went wrong!"}),yt("pre",{style:o.errorMessage,children:e?.message||"Unknown Error"}),bt("details",{style:o.errorStackWrapper,children:[yt("summary",{children:"Stack Trace"}),yt("pre",{style:o.errorStack,children:e?.stack||"Unknown Stack"})]}),yt("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),yt(Rn,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},xd=({children:e})=>yt(Yt,{FallbackComponent:({error:e,...t})=>yt($n,{children:yt(fd,{...t,error:e})}),children:e}),yd=zt(va)`
1254
- position: relative;
1255
- width: calc(100% - 24px);
1256
- padding: 12px;
1257
- background-color: ${({theme:e})=>e.colors.dark_grey};
1258
- border-bottom: 1px solid ${({theme:e})=>e.colors.border+vn["050"]};
1259
- `,bd=zt(va)`
1260
- margin-right: auto;
1261
- margin-left: 32px;
1262
- gap: 12px;
1263
- `,$d=zt(va)`
1264
- margin-left: auto;
1265
- margin-right: 32px;
1266
- gap: 12px;
1267
- `,vd=zt(va)`
1268
- position: absolute;
1269
- left: 50%;
1270
- transform: translateX(-50%);
1271
- gap: 12px;
1272
- `,wd=({left:e=[],center:t=[],right:o=[]})=>bt(yd,{children:[yt(bd,{children:e.map((e,t)=>e&&yt(vt,{children:e},t))}),yt(vd,{children:t.map((e,t)=>e&&yt(vt,{children:e},t))}),yt($d,{children:o.map((e,t)=>e&&yt(vt,{children:e},t))})]}),Sd=zt($i)`
1273
- color: ${({theme:e})=>e.text.grey};
1274
- `,Cd=({icon:e,title:t,badge:o,badgeTooltip:r,loading:i})=>bt(va,{$gap:6,children:[e&&yt(e,{}),yt(Sd,{size:14,children:t}),void 0!==o&&yt(Ja,{text:r,children:yt(Nn,{label:o})}),i&&yt(Rs,{})]}),kd=zt.div`
1275
- width: fit-content;
1276
- height: fit-content;
1277
- padding: 4px;
1278
- gap: 4px;
1279
- border-radius: 32px;
1280
- border: 1px solid ${({theme:e})=>e.colors.border+vn["070"]};
1281
-
1282
- display: flex;
1283
- flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1284
- align-items: center;
1285
- justify-content: center;
1286
- `,Ed=zt.div`
1287
- width: 32px;
1288
- height: 32px;
1289
-
1290
- border-radius: 100%;
1291
- background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+vn["070"]:e.colors.secondary+vn["012"]};
1292
- transition: background-color 0.3s;
1293
-
1294
- display: flex;
1295
- align-items: center;
1296
- justify-content: center;
1297
-
1298
- cursor: pointer;
1299
- `,Ad=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:r})=>bt(kd,{$orientation:e,$flip:t,children:[o.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>yt(Ja,{text:r,children:yt(Ed,{$selected:t,onClick:o,children:yt(e,{size:20})})},`main-nav-icon-${i}`)),!!o.length&&!!r.length&&yt(Ba,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),r.map(({icon:e,selected:t,onClick:o,tooltip:r},i)=>yt(Ja,{text:r,children:yt(Ed,{$selected:t,onClick:o,children:yt(e,{size:20})})},`sub-nav-icon-${i}`))]}),Dd=zt.div`
1300
- display: flex;
1301
- flex-direction: column;
1302
- width: 100%;
1303
- `,Td=zt.div`
1304
- display: flex;
1305
- flex-direction: column;
1306
- gap: 8px;
1307
- `,Nd=zt.div`
1308
- display: flex;
1309
- align-items: center;
1310
- gap: 16px;
1311
- `,Id=zt(Ya)`
1312
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1313
- opacity: ${({$disabled:e})=>e?.5:1};
1314
- `,_d=({initialValues:e=[],value:t,onChange:o,title:r,tooltip:i,required:n,errorMessage:a})=>{const[s,l]=St(t||e);Ct(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=kt(JSON.stringify(c));Ct(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const r=[...o];return r[t]=e,r})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return bt(Dd,{children:[yt(Bl,{title:r,required:n,tooltip:i}),yt(Td,{children:s.map((e,t)=>{const o=t===s.length-1;return bt(Nd,{children:[yt(Hl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:Xr(e)&&!u&&o}),t===s.length-1&&yt(Id,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:yt(et,{})}),yt(Id,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t),children:yt(at,{})})]},`input-list-${t}`)})}),!!a&&yt(Si,{children:a})]})},Od=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,maxWidth:n,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:f,renderCondition:x}=e,y=o[c];if(x&&!x(o))return null;return yt("td",{style:{maxWidth:n,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Do.Dropdown:const e=f?.find(e=>e.id===y);return yt(Ql,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:e,onSelect:e=>a(c,e.id,r),onDeselect:()=>a(c,"",r),hasError:!!s&&(!h||h&&Xr(y))});case"multi-dropdown":const o=Array.isArray(y)&&f?.filter(e=>y.includes(e.id))||[];return yt(Ql,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(y)?y:[],e.id];a(c,t,r)},onDeselect:e=>{const t=(Array.isArray(y)?y:[]).filter(t=>t!==e.id);a(c,t,r)},hasError:!!s&&(!h||h&&Xr(y))});default:const g=i>1&&r===i-1&&0===t&&Xr(y);return yt(Hl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:y,onChange:({target:{value:e}})=>a(c,e,r),style:{maxWidth:n,paddingLeft:10},hasError:!!s&&(!h||h&&Xr(y))})}})()},`input-table-${r}-${c}`)},Rd=zt.div`
1315
- display: flex;
1316
- flex-direction: column;
1317
- width: 100%;
1318
- `,Fd=zt.button`
1319
- margin-top: ${({$marginTop:e})=>e};
1320
- background: none;
1321
- border: none;
1322
- cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1323
- opacity: ${({disabled:e})=>e?.5:1};
1324
- `,zd=({columns:e,initialValues:t=[],value:o,onChange:r,errorMessage:i,limitFieldsPerRow:n,title:a=""})=>{const[s,l]=St({}),[c,d]=St(o||t),p=wt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);Ct(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const r=p.get(t);if((!r?.renderCondition||r.renderCondition(e))&&(r?.required&&Xr(o)))return!1}return!0}),h=kt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((n||e.length)+.4))}px`;Ct(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,r&&r(u))},[u]);const f=(e,t,o)=>{d(r=>{const i=io(r);return i[o][e]=t,i})},x=wt(()=>{if(n){const t=[];for(let o=0;;o+=n){const r=e.slice(o,o+n);if(!r.length)break;t.push(r)}return t}return[e]},[n,e]);return bt(Rd,{children:[yt(Bl,{title:a}),bt("table",{style:{borderCollapse:"collapse"},children:[!n&&yt("thead",{children:bt("tr",{children:[e.map(({title:e,tooltip:t,required:o})=>yt("th",{style:{maxWidth:g},children:yt(Bl,{title:e,required:o,tooltip:t})},`input-table-head-${e}`)),yt("th",{})]})}),yt("tbody",{children:c.map((t,o)=>bt(vt,{children:[n&&o>0?yt("tr",{children:yt("td",{colSpan:x.length,children:yt(Ba,{})})}):null,x.map((r,a)=>bt("tr",{children:[r.map((e,r)=>yt(Od,{col:e,colIdx:r,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:n,errorMessage:i,handleChange:f},`input-table-row-${o}-col-${r}`)),0===a&&yt("td",{children:yt(Fd,{$marginTop:n?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>f(e,o===To.Number?"0":"",t)));var t},children:yt(at,{})})})]},`input-table-matrix-${o}-${a}`))]},`input-table-row-${o}`))})]}),!!i&&yt(Si,{children:i}),yt(Js,{onClick:()=>{d(e=>{const t=io(e);return t.push(io(s)),t})},disabled:m})]})},Ld=zt.div`
1325
- display: flex;
1326
- flex-direction: column;
1327
- width: 100%;
1328
- `,Pd=zt.div`
1329
- display: flex;
1330
- flex-direction: column;
1331
- gap: 8px;
1332
- `,Md=zt.div`
1333
- display: flex;
1334
- align-items: center;
1335
- gap: 8px;
1336
- `,Bd=zt.div`
1337
- width: 100%;
1338
- max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1339
- `,Ud=zt(Ya)`
1340
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1341
- opacity: ${({$disabled:e})=>e?.5:1};
1342
- `,jd={key:"",value:""},Wd=({initialKeyValuePairs:e=[],value:t,onChange:o,title:r,tooltip:i,disabled:n,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=St(t||e);Ct(()=>{p.length||u([{...jd}])},[]);const h=p.filter(({key:e,value:t})=>!Xr(e.trim())&&!Xr(t.trim())),m=kt(JSON.stringify(h));Ct(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(r=>{const i=[...r];return i[o][e]=t,i})},f=p.length<=1,x=n||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),y=n||f&&x;return bt(Ld,{children:[yt(Bl,{title:r,required:a,tooltip:i}),yt(Pd,{children:p.map(({key:e,value:t},o)=>bt(Md,{children:[yt(Bd,{$maxWidth:d,children:yt(Hl,{placeholder:l,disabled:n,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!a||a&&!e),autoFocus:Xr(t)&&!f&&o===p.length-1})}),yt(Bd,{$maxWidth:o===p.length-1?d-38:d,children:yt(Hl,{placeholder:c,disabled:n,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!a||a&&Xr(t)),autoFocus:!1})}),o===p.length-1&&yt(Ud,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...jd}),t})},children:yt(et,{})}),yt(Ud,{size:30,$disabled:y,onClick:y?void 0:()=>(e=>{f?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o),children:yt(at,{})})]},`key-value-input-list-${o}`))}),!!s&&yt(Si,{children:s})]})},Gd=Bt`
1343
- 0% {
1344
- background-position: 0% 50%;
1345
- }
1346
- 100% {
1347
- background-position: 100% 50%;
1348
- }
1349
- `,Vd=zt($i)`
1350
- background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1351
- background-size: 250% 100%; /* Expand background to allow movement */
1352
- background-clip: text;
1353
- color: transparent;
1354
- animation: ${Gd} 1s reverse linear infinite;
1355
- `,Xd=({children:e="Loading...",textColor:t,stripColor:o,...r})=>{const i=Pt(),n=t||i.v2.colors.white[500],a=o||i.v2.colors.black[500];return yt(Vd,{$textColor:n,$stripColor:a,...r,children:e})},Hd=zt.div`
1356
- display: flex;
1357
- flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1358
- gap: ${({$isVertical:e})=>e?"12px":"24px"};
1359
- ${({$hasError:e})=>e&&Lt`
1360
- border: 1px solid ${({theme:e})=>e.text.error};
1361
- border-radius: 32px;
1362
- padding: 8px;
1363
- `}
1364
- `,Jd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Kd=({isVertical:e,title:t="Monitors",required:o,errorMessage:r,allowedSignals:i,selectedSignals:n,setSelectedSignals:a})=>{const[s,l]=St(1===n.length),c=kt(JSON.stringify(n));Ct(()=>{const e=n;e.length||Xi.forEach(({id:t})=>{Jd(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[i]);return bt("div",{children:[t&&yt(Bl,{title:t,required:o}),yt(Hd,{$isVertical:e,$hasError:!!r,children:Xi.map(e=>{const t=Jd(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,n);return t?yt(ys,{title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,r=t?[...n,o]:n.filter(e=>e!==o);a(r),l(1===r.length)})(e.id,t)},e.id):null})}),!!r&&yt(Si,{children:r})]})},qd=zt.div`
1365
- display: flex;
1366
- gap: 8px;
1367
- align-items: center;
1368
- `,Yd=zt(Rn)`
1369
- display: flex;
1370
- align-items: center;
1371
- justify-content: center;
1372
- gap: 8px;
1373
- min-width: 90px;
1374
- `,Qd=({buttons:e})=>{const t=Pt(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),r=({button:e,rotate:o})=>e.icon?yt(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?yt("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return yt(qd,{children:e.map((e,t)=>yt(Ja,{text:e.tooltip||"",children:bt(Yd,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[o({button:e,index:t})&&r({button:e,rotate:0}),e.label,!o({button:e,index:t})&&r({button:e,rotate:180})]},t)},t))})},Zd=zt.div`
1375
- width: 100%;
1376
- height: 100%;
1377
-
1378
- * {
1379
- animation: none !important;
1380
- transition: none !important;
1381
- }
1382
- `,ep=({width:e="100%",height:t="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:n})=>{const a=kt(null),s=wt(()=>o?r.map((e,t)=>yt("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${t}`)):r,[r,o]),l=Et(e=>{if(!n||!a.current)return;const t=a.current.findItemIndex(e);n(t)},[n]),c=yt(Zt,{ref:a,style:{width:e,height:t},onScroll:n?l:void 0,children:s});return i?yt(Zd,{children:c}):c},tp=zt.div`
1383
- display: flex;
1384
- justify-content: space-between;
1385
- align-items: center;
1386
- gap: 16px;
1387
- `,op=zt.div`
1388
- display: flex;
1389
- flex-direction: column;
1390
- gap: 4px;
1391
- `,rp=zt.div`
1392
- display: flex;
1393
- align-items: center;
1394
- gap: 8px;
1395
- `,ip=zt($i)``,np=zt($i)``,ap=({title:e,description:t,badgeLabel:o,icon:r,actionButton:i,size:n="medium"})=>{const a="small"===n?16:"medium"===n?20:24,s="small"===n?12:"medium"===n?14:16;return bt(tp,{children:[bt(op,{children:[bt(rp,{children:[r&&yt(r,{size:a}),yt(ip,{weight:300,size:a,children:e}),void 0!==o&&yt(Nn,{label:o,filled:!!o})]}),yt(np,{weight:200,opacity:.8,size:s,children:t})]}),i&&yt("div",{children:i})]})},sp=zt.div`
1396
- position: relative;
1397
- gap: 0;
1398
- z-index: 0;
1399
- display: grid;
1400
- grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1401
- `,lp=zt.button`
1402
- flex: 1;
1403
- display: flex;
1404
- align-items: center;
1405
- justify-content: center;
1406
- gap: 4px;
1407
- padding: 6px 12px;
1408
- background-color: transparent;
1409
- border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1410
- border: 1px solid ${({theme:e})=>e.colors.border};
1411
- cursor: pointer;
1412
- &:hover {
1413
- border: 1px solid ${({theme:e})=>e.colors.secondary};
1414
- }
1415
- `,cp=zt.div`
1416
- position: absolute;
1417
- top: ${({$y:e})=>e}px;
1418
- left: ${({$x:e})=>e}px;
1419
- z-index: -1;
1420
- width: ${({$width:e})=>e}px;
1421
- height: ${({$height:e})=>e}px;
1422
- background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1423
- border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1424
- transition: all 0.3s;
1425
- `,dp=({options:e=[],selected:t,setSelected:o})=>{const r=e.findIndex(e=>e.value===t),[i,n]=St(e[r]?.selectedBgColor||""),[a,s]=St({width:0,height:0}),[l,c]=St({x:0,y:0}),d=kt(null);return Ct(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*r,y:0}))},[t,r]),bt(sp,{$count:e.length,children:[e.map(({icon:r,label:i,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return bt(lp,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(a),n(s||"")},children:[r&&yt(r,{}),i&&yt($i,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:i})]},`segment-${i||c}-${a}`)}),yt(cp,{$bgColor:i,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===r,$isLastItem:r===e.length-1})]})},pp=zt(Rn)`
1426
- gap: 8px;
1427
- text-transform: none;
1428
- text-decoration: none;
1429
- border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1430
- &.not-selected {
1431
- background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+vn["060"]};
1432
- &:hover {
1433
- background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1434
- }
1435
- }
1436
- &.selected {
1437
- background-color: ${({theme:e})=>e.colors.majestic_blue+vn["030"]};
1438
- }
1439
- `,up=zt($i)`
1440
- white-space: nowrap;
1441
- overflow: hidden;
1442
- text-overflow: ellipsis;
1443
- font-size: 14px;
1444
- `,hp=({label:e,onClick:t,icon:o,iconSrc:r,badgeLabel:i,badgeFilled:n,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Pt();return bt(pp,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[o&&yt("div",{children:yt(o,{fill:p.text.info})}),r&&yt("div",{children:yt("img",{src:r,alt:"",width:16,height:16})}),yt(up,{children:e}),a&&yt("div",{children:yt(He,{fill:p.colors.majestic_blue_soft})}),void 0!==i&&yt(Nn,{label:i,filled:n||a})]})},mp=zt.div`
1445
- display: flex;
1446
- flex-direction: column;
1447
- gap: 16px;
1448
- ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1449
- `,gp=zt.div`
1450
- display: flex;
1451
- align-items: center;
1452
- gap: 16px;
1453
- `,fp=zt.div`
1454
- width: 50px;
1455
- height: 50px;
1456
- border-radius: 8px;
1457
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1458
- background-size: 200% 100%;
1459
- animation: ${En} 10s infinite linear;
1460
- `,xp=zt(wa)`
1461
- flex: 1;
1462
- gap: 12px;
1463
- `,yp=zt.div`
1464
- width: ${({$width:e})=>e};
1465
- height: 16px;
1466
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
1467
- background-size: 200% 100%;
1468
- animation: ${En} 1.5s infinite linear;
1469
- border-radius: 4px;
1470
- `,bp=({size:e=5,maxWidth:t})=>yt(mp,{$maxWidth:t,children:[...Array(e)].map((e,t)=>bt(gp,{children:[yt(fp,{}),bt(xp,{children:[yt(yp,{$width:"80%"}),yt(yp,{$width:"100%"})]})]},t))});var $p;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}($p||($p={}));const vp=zt.div`
1471
- display: flex;
1472
- flex-direction: column;
1473
- gap: 32px;
1474
- `,wp=zt.div`
1475
- display: flex;
1476
- gap: 16px;
1477
- padding: 8px;
1478
- opacity: ${({$state:e})=>e===$p.Active?1:e===$p.Disabled?.5:.8};
1479
- transition: all 0.3s;
1480
- `,Sp=zt(va)`
1481
- justify-content: center;
1482
- width: 24px;
1483
- height: 24px;
1484
- border-radius: 32px;
1485
- border: ${({theme:e,$state:t})=>t===$p.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1486
- opacity: ${({$state:e})=>e===$p.Finished?.8:1};
1487
- `,Cp=zt(wa)`
1488
- justify-content: center;
1489
- gap: 8px;
1490
- `,kp=zt($i)``,Ep=zt($i)``,Ap=({data:e,currentStep:t=0})=>{const[o,r]=St([]);return Ct(()=>{r(e.map((e,o)=>o<t-1?{...e,state:$p.Finished,subtitle:e.subtitle||No.Success}:o===t-1?{...e,state:$p.Active,subtitle:""}:{...e,state:$p.Disabled,subtitle:""}))},[t,e]),yt(vp,{children:o.map((e,t)=>bt(wp,{$state:e.state,children:[yt(Sp,{$state:e.state,children:[$p.Active,$p.Disabled].includes(e.state)?yt($i,{size:12,children:e.stepNumber}):e.state===$p.Finished?yt(He,{size:20}):null}),bt(Cp,{children:[yt(kp,{family:"secondary",children:e.title}),e.subtitle&&yt(Ep,{size:10,weight:300,children:e.subtitle})]})]},t))})},Dp=zt(va)`
1491
- width: fit-content;
1492
- gap: 6px;
1493
- padding: 6px 12px;
1494
- border-radius: 360px;
1495
- background-color: ${({$type:e,theme:t})=>t.colors[e]};
1496
- `,Tp=zt($i)`
1497
- color: ${({$type:e,theme:t})=>t.text[e]};
1498
- `,Np=({type:e=No.Info,icon:t,title:o,size:r,family:i,children:n,...a})=>bt(Dp,{$type:e,children:[t&&yt(t,{}),yt(Tp,{$type:e,size:r||12,family:i||"secondary",...a,children:n||o})]}),Ip=zt.div`
1499
- display: flex;
1500
- flex-direction: column;
1501
- position: relative;
1502
- width: 100%;
1503
- `,_p=zt.div`
1504
- width: 100%;
1505
- display: flex;
1506
- align-items: center;
1507
- gap: 12px;
1508
- transition: border-color 0.3s;
1509
- border-radius: 24px;
1510
- border: 1px solid ${({theme:e})=>e.colors.border};
1511
- ${({$disabled:e})=>e&&Lt`
1512
- background-color: ${({theme:e})=>e.colors.border};
1513
- cursor: not-allowed;
1514
- opacity: 0.6;
1515
- `}
1516
-
1517
- ${({$hasError:e})=>e&&Lt`
1518
- border-color: ${({theme:e})=>e.text.error};
1519
- `}
1520
-
1521
- ${({$isActive:e})=>e&&Lt`
1522
- border-color: ${({theme:e})=>e.colors.secondary};
1523
- `}
1524
-
1525
- &:hover {
1526
- border-color: ${({theme:e})=>e.colors.secondary};
1527
- }
1528
- &:focus-within {
1529
- border-color: ${({theme:e})=>e.colors.secondary};
1530
- }
1531
- `,Op=zt.textarea`
1532
- flex: 1;
1533
- border: none;
1534
- outline: none;
1535
- background: none;
1536
- color: ${({theme:e})=>e.text.secondary};
1537
- font-size: 14px;
1538
- padding: 12px 20px 0;
1539
- font-family: ${({theme:e})=>e.font_family.primary};
1540
- font-weight: 300;
1541
- line-height: 22px;
1542
- &::placeholder {
1543
- color: ${({theme:e})=>e.text.secondary};
1544
- font-family: ${({theme:e})=>e.font_family.primary};
1545
- opacity: 0.4;
1546
- font-size: 14px;
1547
- font-weight: 300;
1548
- line-height: 22px; /* 157.143% */
1549
- }
1550
-
1551
- &:disabled {
1552
- background-color: ${({theme:e})=>e.colors.border};
1553
- cursor: not-allowed;
1554
- }
1555
- `,Rp=({errorMessage:e,title:t,tooltip:o,required:r,onChange:i,name:n,...a})=>{const s=kt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return bt(Ip,{children:[yt(Bl,{title:t,required:r,tooltip:o}),yt(_p,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:yt(Op,{ref:s,"data-id":n,name:n,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&yt(Si,{children:e})]})},Fp=zt.div`
1556
- display: flex;
1557
- align-items: center;
1558
- gap: 12px;
1559
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1560
- opacity: ${({$disabled:e})=>e?.6:1};
1561
- `,zp=zt.div`
1562
- width: 24px;
1563
- height: 12px;
1564
- border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
1565
- border-radius: 20px;
1566
- display: flex;
1567
- align-items: center;
1568
- padding: 2px;
1569
- background-color: transparent;
1570
- pointer-events: ${({$disabled:e})=>e?"none":"auto"};
1571
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1572
- opacity: ${({$isActive:e})=>e?1:.5};
1573
- transition: border-color 0.3s, opacity 0.3s;
1574
- &::before {
1575
- content: '';
1576
- width: 12px;
1577
- height: 12px;
1578
- border-radius: 50%;
1579
- background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
1580
- transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1581
- transition: background-color 0.3s, transform 0.3s;
1582
- }
1583
- `,Lp=({title:e,tooltip:t,initialValue:o=!1,onChange:r,disabled:i,allowPropagation:n=!1,flipHorizontally:a})=>{const[s,l]=St(o);Ct(()=>l(o),[o]);return bt(Fp,{$disabled:i,onClick:e=>{i||(n||e.stopPropagation(),r?r(!s):l(e=>!e))},children:[!a&&yt(zp,{$disabled:i,$isActive:s}),(e||t)&&yt(Ja,{text:t,withIcon:!0,children:e&&yt($i,{size:14,children:e})}),a&&yt(zp,{$disabled:i,$isActive:s})]})};var Pp={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=zt.div`
1584
- width: ${({$width:e})=>e}px;
1585
- height: ${({$height:e})=>e}px;
1586
- position: relative;
1587
- `,Bp=({width:e=620})=>{const{darkMode:t}=Pt(),o=e/(620/220);return yt(Mp,{$width:e,$height:o,children:yt(Qt,{autoplay:!0,loop:!0,animationData:Pp,style:{width:o,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}})})},Up=zt.div`
1588
- display: flex;
1589
- align-items: center;
1590
- justify-content: center;
1591
- gap: 4px;
1592
- min-width: ${({$minWidth:e})=>e};
1593
- width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
1594
- padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1595
- border-radius: 100px;
1596
- background-color: ${({$backgroundColor:e})=>e};
1597
- `,jp=({label:e,leftIcon:t,rightIcon:o,tooltip:r,status:i=Oo.Unknown,useSecondaryTone:n=!1,invertColors:a=!1,textSize:s,textColor:l,backgroundColor:c,minWidth:d="unset",fullWidth:p=!1})=>{const u=Pt(),h=e?.toString(),m=i?[Oo.Disabled].includes(i)?Lr(u,i,a?"400":"700"):[Oo.Unknown].includes(i)?Lr(u,i,"600"):Lr(u,i,a?n?"400":"300":n?"700":"500"):u.v2.colors.grey[200],g=l||(a&&![Oo.Unknown].includes(i)?m:[Oo.Disabled].includes(i)?u.v2.colors.grey[400]:[No.Error,No.Warning,No.Success].includes(i)?u.v2.colors.black[500]:u.v2.colors.white[500]),f=c||(a&&![Oo.Unknown].includes(i)?[Oo.Disabled].includes(i)?u.v2.colors.grey[700]:u.v2.colors.silver[600]:m);return yt(Ja,{text:r,fullWidth:p,children:bt(Up,{$backgroundColor:f,$minWidth:d,$fullWidth:p,$hasLabel:!!h,children:[t&&yt(t,{fill:g,size:14}),h&&yt(gi,{color:g,size:s||hi.XXS,nowrap:!0,children:h}),o&&yt(o,{fill:g,size:14})]})})};var Wp,Gp;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Wp||(Wp={})),function(e){e.S="small",e.M="medium",e.L="large"}(Gp||(Gp={}));const Vp=zt.button`
1598
- display: flex;
1599
- align-items: center;
1600
- justify-content: center;
1601
- gap: 8px;
1602
- ${({$fullWidth:e})=>e&&Lt`
1603
- width: 100%;
1604
- `}
1605
- border: none;
1606
- border-radius: 6px;
1607
- ${({$size:e,$hasLabel:t})=>e===Gp.S?Lt`
1608
- height: 32px;
1609
- ${t?Lt`
1610
- padding: 8px 16px;
1611
- `:Lt`
1612
- width: 32px;
1613
- `}
1614
- `:e===Gp.M?Lt`
1615
- height: 38px;
1616
- ${t?Lt`
1617
- padding: 8px 18px;
1618
- `:Lt`
1619
- width: 38px;
1620
- `}
1621
- `:Lt`
1622
- height: 44px;
1623
- ${t?Lt`
1624
- padding: 8px 22px;
1625
- `:Lt`
1626
- width: 44px;
1627
- `}
1628
- `}
1629
-
1630
- cursor: pointer;
1631
- &:disabled {
1632
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1633
- cursor: not-allowed;
1634
- }
1635
- &:enabled {
1636
- ${({$withShadow:e})=>e?Lt`
1637
- box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1638
- `:""}
1639
- ${({$variant:e})=>e===Wp.Primary?Lt`
1640
- background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1641
- &:hover {
1642
- background-color: ${({theme:e})=>e.v2.colors.purple[600]};
1643
- }
1644
- &:active {
1645
- background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1646
- }
1647
- `:e===Wp.Secondary?Lt`
1648
- background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1649
- &:hover {
1650
- background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1651
- }
1652
- &:active {
1653
- background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1654
- }
1655
- `:e===Wp.Text?Lt`
1656
- background-color: transparent;
1657
- &:hover {
1658
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1659
- }
1660
- &:active {
1661
- background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1662
- }
1663
- `:""}
1664
- }
1665
- `,Xp=Tt(({label:e,leftIcon:t,rightIcon:o,variant:r=Wp.Primary,size:i=Gp.M,iconSize:n,loading:a,fullWidth:s,withShadow:l,textColor:c,disabled:d,onClick:p,...u},h)=>{const m=Pt(),g=n||(i===Gp.L?18:16),f=i===Gp.L?hi.S:hi.XS,x=c||(d?m.v2.colors.grey[400]:m.v2.colors.white[500]),[y,b]=St(!1),$=Et(async e=>{e.stopPropagation(),b(!0),await(p?.(e)),b(!1)},[p]);return yt(Vp,{ref:h,$variant:r,$size:i,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:d,onClick:a||y?void 0:$,...u,children:a||y?e?yt(Xd,{size:m.v2.text.size[f],textColor:x}):yt(Rs,{}):bt($t,{children:[t&&yt(t,{size:g,fill:x}),e?yt(gi,{size:f,weight:500,color:x,nowrap:!0,children:e}):null,o&&yt(o,{size:g,fill:x})]})})});Xp.displayName=Xp.name;const Hp=zt.button`
1666
- width: 100%;
1667
- padding: 0;
1668
- padding-right: 12px;
1669
- display: flex;
1670
- align-items: center;
1671
- justify-content: flex-start;
1672
- gap: 12px;
1673
- border-radius: 8px;
1674
- border: none;
1675
- ${({$hovered:e})=>e?Lt`
1676
- background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1677
- `:Lt`
1678
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1679
- `}
1680
- overflow: hidden;
1681
- cursor: pointer;
1682
- &:disabled {
1683
- cursor: not-allowed;
1684
- opacity: 0.5;
1685
- }
1686
- `,Jp=zt.div`
1687
- width: ${({$hasIcon:e})=>e?"56px":"0"};
1688
- height: 56px;
1689
- display: flex;
1690
- align-items: center;
1691
- justify-content: center;
1692
- ${({$hovered:e})=>e?Lt`
1693
- background-color: ${({theme:e})=>e.v2.colors.silver[600]};
1694
- `:Lt`
1695
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1696
- `}
1697
- `,Kp=zt.div`
1698
- width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
1699
- display: flex;
1700
- justify-content: space-between;
1701
- align-items: center;
1702
- gap: 8px;
1703
- `,qp=({label:e,icon:t,loading:o,disabled:r,onClick:i})=>{const[n,a]=St(!1);return bt(Hp,{$hovered:n,type:"button",disabled:r||o,onClick:i,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[yt(Jp,{$hovered:n,$hasIcon:!!t,children:t&&yt(t,{size:36})}),bt(Kp,{$hasIcon:!!t,children:[o?yt(Xd,{size:16}):yt(gi,{variant:ui.Span,align:"center",children:e}),yt(dt,{rotate:90,size:24})]})]})},Yp=({buttons:e})=>yt(wa,{$gap:12,children:e.map(e=>yt(qp,{...e},e.label))}),Qp=zt.div`
1704
- display: flex;
1705
- align-items: center;
1706
- flex-wrap: wrap;
1707
- width: calc(100% - 24px);
1708
- padding: 4px 12px;
1709
- border-radius: 12px;
1710
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1711
- `,Zp=zt.div`
1712
- width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
1713
- margin: 8px;
1714
- display: flex;
1715
- flex-direction: column;
1716
- gap: 4px;
1717
- `,eu=({cellsPerRow:e,items:t})=>{const o=Pt(),{CopyButton:r}=Vn();return yt(Qp,{children:t.map(({id:i,title:n,label:a,withCopy:s,badge:l})=>bt(Zp,{$cellsPerRow:e||t.length,children:[yt(gi,{size:hi.XXXS,color:o.v2.colors.silver[200],nowrap:!0,children:n}),bt(va,{$gap:4,children:[l&&yt(jp,{...l}),a&&yt(gi,{size:hi.XS,nowrap:!0,children:a}),s&&yt(r,{value:a||l?.label?.toString()||"",size:jn.XS})]})]},i))})};var tu;!function(e){e.S="s",e.L="l"}(tu||(tu={}));const ou=zt.div`
1718
- display: flex;
1719
- align-items: center;
1720
- gap: 2px;
1721
- padding: 3px;
1722
- border-radius: 8px;
1723
- border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1724
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1725
- `,ru=zt.button`
1726
- flex: 1;
1727
- display: flex;
1728
- align-items: center;
1729
- justify-content: center;
1730
- gap: 8px;
1731
- padding: ${({$size:e})=>e===tu.S?"4px 8px":"8px 16px"};
1732
- border-radius: 6px;
1733
- border: none;
1734
- box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1735
-
1736
- ${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:r})=>e?Lt`
1737
- cursor: not-allowed;
1738
- background-color: ${t?(o||r.v2.colors.black[500])+vn["040"]:"transparent"};
1739
- `:Lt`
1740
- cursor: pointer;
1741
- background-color: ${t?o||r.v2.colors.black[500]:"transparent"};
1742
- &:hover {
1743
- background-color: ${t?o||r.v2.colors.black[500]:r.v2.colors.silver[800]};
1744
- }
1745
- `}
1746
- `,iu=({size:e=tu.L,options:t=[],selected:o,setSelected:r,disabled:i})=>{const n=Pt(),a=i?n.v2.colors.grey[400]:n.v2.colors.white[500],s=e===tu.S?hi.XXS:hi.XS,l=e===tu.S?400:500;return yt(ou,{"data-id":"segment",$count:t.length,children:t.map(({value:t,label:n,icon:c,selectedBgColor:d},p)=>bt(ru,{"data-id":n?`segment-${n}`:void 0,onClick:()=>!i&&r(t),$size:e,$disabled:i,$isSelected:o===t,$selectedBgColor:d,children:[c&&yt(c,{fill:a}),n&&yt(gi,{size:s,weight:l,color:a,nowrap:!0,children:n})]},`segment-${n||p}-${t}`))})},nu=zt.div`
1747
- box-sizing: border-box !important;
1748
- width: ${({$width:e})=>e??"fit-content"};
1749
- padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
1750
- display: flex;
1751
- align-self: stretch;
1752
- align-items: center;
1753
- gap: 8px;
1754
- overflow: hidden;
1755
- border-radius: 6px;
1756
-
1757
- border: none;
1758
- border-radius: 6px;
1759
- background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
1760
- `,au=zt.input`
1761
- min-width: 0;
1762
- flex: 1;
1763
- font-family: ${({theme:e})=>e.font_family.primary};
1764
- font-size: 14px;
1765
- font-weight: 400;
1766
- line-height: 20px;
1767
-
1768
- cursor: text;
1769
- color: ${({$textColor:e})=>e};
1770
- &::placeholder {
1771
- color: ${({$textColor:e})=>e};
1772
- }
1773
-
1774
- overflow: hidden;
1775
- text-overflow: ellipsis;
1776
- white-space: nowrap;
1777
- `,su=({value:e,onChange:t,placeholder:o,width:r,segment:i})=>{const n=Pt(),[a,s]=St(!1),[l,c]=St(!1),[d,p]=St(!1),u=a?n.v2.colors.white[500]:n.v2.colors.silver[200],h=!!i?.options?.length,m=wt(()=>{if(h)return i?.options.find(e=>e.value===i.selected)?.label},[h,i?.options,i?.selected]),g=wt(()=>o||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[o,h,m]);return bt(nu,{$width:r,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[yt(nt,{size:18,fill:u}),yt(au,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&yt("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:yt(iu,{options:i.options,selected:i.selected,setSelected:i.setSelected,size:tu.S})})]})},lu=zt.span`
1778
- font-family: ${({theme:e})=>e.font_family.primary};
1779
- font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1780
- font-weight: 400;
1781
- color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1782
- `,cu=zt.span`
1783
- font-family: ${({theme:e})=>e.font_family.primary};
1784
- font-size: 14px;
1785
- font-weight: 400;
1786
- color: ${({theme:e})=>e.v2.colors.red[500]};
1787
- `,du=({label:e,tooltip:t,required:o,badge:r,width:i,smallAndDark:n})=>e||t||o?bt(va,{$width:i,$justifyContent:"space-between",children:[e&&yt(lu,{$smallAndDark:n,children:e}),bt(va,{$gap:4,children:[r&&yt(jp,{...r,textSize:hi.XXXS}),o&&yt(cu,{children:"*"}),t&&yt(Ja,{text:t,withIcon:!0})]})]}):null,pu=({errorMessage:e,warnMessage:t,helpMessage:o})=>{const r=Pt(),i=e?r.v2.colors.red[500]:t?r.v2.colors.yellow[500]:r.v2.colors.silver[200],n=yt(Xe,{size:12,fill:i});return e||t||o?bt(va,{$alignItems:"center",children:[n&&yt(wa,{children:n}),yt(gi,{size:hi.XXS,weight:400,color:i,children:e||t||o})]}):null};var uu;!function(e){e.S="small",e.L="large"}(uu||(uu={}));const hu=zt.div`
1788
- width: fit-content;
1789
- display: flex;
1790
- align-items: center;
1791
- gap: 8px;
1792
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1793
- `,mu=zt.div`
1794
- width: ${({$size:e})=>e===uu.S?"16px":"20px"};
1795
- height: ${({$size:e})=>e===uu.S?"16px":"20px"};
1796
- display: flex;
1797
- align-items: center;
1798
- justify-content: center;
1799
- border-radius: 4px;
1800
- border: 1px solid ${({$borderColor:e})=>e};
1801
- background-color: ${({$backgroundColor:e})=>e};
1802
- `,gu=({name:e,label:t,tooltip:o,badge:r,size:i=uu.L,disabled:n,partiallyChecked:a,value:s,onChange:l,errorMessage:c,warnMessage:d,helpMessage:p})=>{const u=Pt(),[h,m]=St(!1),g=a||s,f=i===uu.S?12:16,x=n?u.v2.colors.grey[400]:u.v2.colors.white[500],y=g?"transparent":n?u.v2.colors.grey[700]:h?u.v2.colors.silver[400]:u.v2.colors.silver[600],b=n?u.v2.colors.grey[600]:g?u.v2.colors.purple[500]:u.v2.colors.silver[900];return bt(wa,{$gap:4,children:[bt(va,{$justifyContent:"space-between",children:[bt(hu,{"data-id":e||"checkbox"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),n||l(!!a||!s)},$disabled:n,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[yt(mu,{$size:i,$borderColor:y,$backgroundColor:b,children:a?yt(qe,{size:f,fill:x}):s?yt(He,{size:f,fill:x}):null}),t&&yt(gi,{size:i===uu.S?hi.XXS:hi.XS,nowrap:!0,children:t})]}),yt(du,{tooltip:o,badge:r})]}),yt(pu,{errorMessage:c,warnMessage:d,helpMessage:p})]})},fu=zt.div`
1803
- display: flex;
1804
- flex-direction: ${({$direction:e})=>e===bo.Horizontal?"row":"column"};
1805
- gap: ${({$direction:e})=>e===bo.Horizontal?16:8}px;
1806
- `,xu=({direction:e=bo.Vertical,title:t,size:o,disabled:r,withSelectAll:i,options:n,values:a,setValues:s})=>{const l=o===uu.S?hi.XXS:hi.XS,c=wt(()=>n.every(e=>a[e.id]),[n,a]),d=wt(()=>n.some(e=>a[e.id])&&n.some(e=>!a[e.id]),[n,a]),p=(e,t)=>{s(o=>{const r={...o};return e?r[e]=t:n.forEach(e=>r[e.id]=t),r})};return bt(fu,{$direction:e,children:[t&&i?yt(gu,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?yt(gi,{size:l,children:t}):null,n.map(e=>yt(gu,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:r,size:o},`${t}-checkbox-${e.id}`))]})};var yu,bu;!function(e){e.Left="left",e.Right="right"}(yu||(yu={})),function(e){e.Top="top",e.Bottom="bottom"}(bu||(bu={}));const $u=zt.div`
1807
- position: relative;
1808
- `,vu=zt.div`
1809
- display: flex;
1810
- flex-direction: column;
1811
- gap: 0;
1812
-
1813
- min-width: 120px;
1814
- width: ${({$fullWidth:e})=>e?"calc(100% - 16px)":"fit-content"};
1815
- padding: 8px;
1816
- border-radius: 6px;
1817
- background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1818
- box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1819
-
1820
- position: absolute;
1821
- ${({$alignX:e})=>`${e}: 0;`}
1822
- ${({$alignY:e,$withOffsetY:t})=>`${e===bu.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
1823
- z-index: 1;
1824
- `,wu=zt.div`
1825
- display: flex;
1826
- flex-direction: column;
1827
- gap: 0;
1828
-
1829
- width: 100%;
1830
- max-height: ${({$maxHeight:e})=>e||"230px"};
1831
- overflow-y: auto;
1832
- `,Su=zt.div`
1833
- display: flex;
1834
- align-items: center;
1835
- gap: 8px;
1836
- width: calc(100% - 16px);
1837
- padding: 8px;
1838
- border-radius: 6px;
1839
- cursor: pointer;
1840
- ${({$selected:e})=>e?Lt`
1841
- background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1842
- `:Lt`
1843
- background-color: transparent;
1844
- &:hover {
1845
- background-color: ${({theme:e})=>e.v2.colors.grey[700]};
1846
- }
1847
- `}
1848
- `,Cu=({defaultOpen:e,alignX:t,alignY:o,items:r,selectedIds:i,setSelectedIds:n,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Pt(),m=!!d||!!p||!!u,[g,f]=St(e??!m),[x,y]=St({x:t||yu.Left,y:o||bu.Bottom}),b=e=>{f(e=>!e),y({x:t||(e.clientX>window.innerWidth/2?yu.Right:yu.Left),y:o||(e.clientY>window.innerHeight/2?bu.Top:bu.Bottom)})},$=e=>{n(a?i.includes(e)?i.filter(t=>t!==e):[...i,e]:[e]),m&&!a&&f(!1)},v=kt(null);Qn(v,()=>f(!1));const[w,S]=St(""),C=wt(()=>w?r.filter(e=>e?.label?.toLowerCase().includes(w.toLowerCase())):r,[r.length,w]);return bt($u,{ref:v,children:[d&&yt(Xp,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&yt(Gn,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&bt(vu,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&yt(su,{value:w,onChange:S,width:"100%"}),yt(wu,{$maxHeight:c,children:C.map(e=>{if(!e)return null;const{id:t,label:o,icon:r,withCheckbox:n}=e,a=i.includes(t);return bt(Su,{$selected:a&&!n,onClick:()=>$(t),children:[n&&yt(gu,{value:a,onChange:()=>$(t)}),r&&yt(r,{size:14,fill:h.v2.colors.white[500]}),yt(gi,{size:hi.XS,nowrap:!0,children:o})]},t)})}),a&&yt(Xp,{label:"Done",onClick:()=>f(!1)})]})]})};var ku;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(ku||(ku={}));const Eu=({onAnyClick:e,actions:t})=>yt(va,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case ku.Button:return yt(Xp,{...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}},t.id);case ku.ButtonDropData:return yt(Cu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),Au=zt.div`
1849
- display: flex;
1850
- align-items: center;
1851
- justify-content: center;
1852
- padding: 8px;
1853
- border-radius: 8px;
1854
- background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1855
- `,Du=({icon:e,title:t,subTitle:o,withCopy:r,badge:i,children:n})=>{const a=Pt(),{CopyButton:s}=Vn();return bt(va,{$gap:o?8:6,$alignItems:"center",children:[o?yt(Au,{children:yt(e,{size:24})}):yt(e,{size:24}),bt(wa,{children:[bt(va,{$gap:6,$alignItems:"center",children:[yt(gi,{nowrap:!0,children:t}),r&&yt(s,{value:t,size:jn.XS}),i&&yt(jp,{...i})]}),o&&yt(gi,{size:hi.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:o})]}),n]})};var Tu;!function(e){e.S="small",e.M="medium"}(Tu||(Tu={}));const Nu=zt.div`
1856
- display: flex;
1857
- flex-direction: column;
1858
- gap: ${({$gap:e})=>e}px;
1859
- width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
1860
- align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
1861
- padding: ${({$padding:e})=>e}px;
1862
- border-radius: 16px;
1863
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1864
- `,Iu=({size:e=Tu.M,fullHeight:t=!1,richTitle:o,search:r,actions:i,children:n})=>{const a=e===Tu.S?4:16,s=e===Tu.S?12:16;return bt(Nu,{$padding:s,$gap:a,$fullHeight:t,children:[bt(va,{$gap:a,$justifyContent:"space-between",children:[yt(Du,{...o,children:r&&yt(su,{...r})}),yt(Eu,{actions:i??[]})]}),n]})},_u=zt.div`
1865
- flex: 1;
1866
- align-self: stretch;
1867
- display: flex;
1868
- align-items: center;
1869
- gap: 8px;
1870
- padding: 16px;
1871
- border-radius: 12px;
1872
- background-color: ${({theme:e,$status:t})=>Lr(e,t,t===Oo.Unknown?"750":"500")};
1873
- `,Ou=zt.div`
1874
- display: flex;
1875
- align-items: center;
1876
- justify-content: center;
1877
- width: fit-content;
1878
- height: fit-content;
1879
- padding: 8px;
1880
- border-radius: 12px;
1881
- background-color: ${({theme:e,$status:t})=>t===Oo.Unknown?Lr(e,t,"800"):Lr(e,t,"900")+vn["015"]};
1882
- `,Ru=({status:e,icon:t,title:o,description:r})=>{const i=Pt(),n=t??Mr(e,i),a=[No.Default,No.Info,Oo.Disabled,Oo.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return bt(_u,{$status:e,children:[yt(Ou,{$status:e,children:yt(n,{size:32,fill:a})}),bt(wa,{$gap:2,$justifyContent:"center",children:[yt(gi,{size:hi.M,weight:500,color:a,nowrap:!0,children:o}),yt(gi,{size:hi.XXS,weight:300,color:a,nowrap:!0,children:r})]})]})},Fu=zt.div`
1883
- flex: 1;
1884
- align-self: stretch;
1885
- display: flex;
1886
- flex-direction: column;
1887
- gap: 12px;
1888
- padding: 12px;
1889
- border-radius: 12px;
1890
- background-color: ${({theme:e})=>e.v2.colors.silver[800]};
1891
- `,zu=["-","N/A"],Lu=({title:e,cells:t})=>{const o=Pt();return bt(Fu,{children:[yt(gi,{size:hi.XXS,color:o.v2.colors.grey[150],children:e}),yt(va,{$gap:32,children:t.map(t=>bt(wa,{$gap:2,children:[!t.isLoading||t.value&&!zu.includes(t.value)?yt(gi,{size:t.label?hi.M:hi.L,children:t.value}):yt(Rs,{scale:.9}),t.label&&yt(gi,{size:hi.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},Pu=zt(va)`
1892
- width: calc(100% - 20px);
1893
- padding: 10px;
1894
- border-radius: 6px;
1895
- background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1896
- display: flex;
1897
- align-items: center;
1898
- justify-content: space-between;
1899
- gap: 12px;
1900
- `,Mu=zt.div`
1901
- position: relative;
1902
- width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
1903
- display: flex;
1904
- align-items: center;
1905
- gap: 4px;
1906
- `,Bu=zt.pre`
1907
- flex: 1;
1908
- margin: 0;
1909
- padding: 0;
1910
- font-size: 14px;
1911
- color: #5ffb98; // TODO: add to theme
1912
- overflow-x: auto;
1913
- `,Uu=zt.span`
1914
- flex-shrink: 0;
1915
- font-size: 14px;
1916
- color: #5ffb98; // TODO: add to theme
1917
- `,ju=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:r}=Vn({onDone:o}),i=kt(null),[n,a]=St(!1);return Ct(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;a(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),bt(Pu,{children:[bt(Mu,{$hideCopy:t,children:[yt(Bu,{ref:i,children:e}),n&&yt(Uu,{children:"..."})]}),!t&&yt(r,{value:e,size:jn.XS})]})},Wu=zt.div`
1918
- display: flex;
1919
- align-items: center;
1920
- justify-content: space-between;
1921
- width: calc(100%);
1922
- `,Gu=zt.div`
1923
- display: flex;
1924
- align-items: center;
1925
- gap: 16px;
1926
- padding: 6px 0;
1927
- `,Vu=zt.div`
1928
- display: flex;
1929
- align-items: center;
1930
- justify-content: center;
1931
- width: 36px;
1932
- height: 36px;
1933
- border-radius: 8px;
1934
- background: ${({theme:e})=>e.v2.colors.silver[800]};
1935
- `,Xu=zt.div`
1936
- display: flex;
1937
- align-items: center;
1938
- gap: 12px;
1939
- `,Hu=({icon:e,title:t,subTitle:o,actions:r,onClose:i,onCloseDisabled:n})=>bt(Wu,{children:[bt(Gu,{children:[e&&yt(Vu,{children:yt(e,{size:24})}),(t||o)&&bt(wa,{$gap:6,children:[t&&yt(gi,{size:hi.S,weight:500,children:t}),o&&yt(gi,{size:hi.XXS,children:o})]})]}),bt(Xu,{children:[r?.length?yt(Gn,{icon:ht,size:jn.M,onClick:()=>alert("todo")}):null,i&&yt(Gn,{icon:Ke,size:jn.M,onClick:i,disabled:n})]})]}),Ju=zt.div`
1940
- position: fixed;
1941
- top: 0;
1942
- bottom: 0;
1943
- ${({$position:e})=>e}: 0;
1944
- z-index: 1000;
1945
-
1946
- display: flex;
1947
- flex-direction: column;
1948
- gap: 12px;
1949
-
1950
- width: calc(${({$width:e})=>e} - 32px);
1951
- padding: 12px;
1952
- border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
1953
- background: ${({theme:e})=>e.v2.colors.black[500]};
1954
- box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
1955
- overflow: hidden;
1956
-
1957
- animation-name: ${({$position:e})=>Sn.in[e]};
1958
- `,Ku=zt.div`
1959
- display: flex;
1960
- flex-direction: column;
1961
- gap: 12px;
1962
-
1963
- height: calc(100% - ${56}px);
1964
- overflow-y: auto;
1965
- `,qu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:r="600px",header:i,children:n})=>(Pn(e),e?Jt(bt($t,{children:[!t&&yt(ka,{onClick:i?.onCloseDisabled?void 0:i?.onClose}),bt(Ju,{$position:o,$width:r,children:[i&&yt(Hu,{...i}),yt(Ku,{children:n})]})]}),document.body):null),Yu=zt.div`
1966
- padding: ${({$small:e})=>e?"4px":"8px 12px"};
1967
-
1968
- display: flex;
1969
- align-self: stretch;
1970
- align-items: center;
1971
- gap: 8px;
1972
- border-radius: 6px;
1973
-
1974
- border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
1975
- background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
1976
- ${({$disabled:e,$error:t})=>!e&&!t&&Lt`
1977
- &:hover,
1978
- &:active,
1979
- &:focus-within {
1980
- border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1981
- }
1982
- `}
1983
- `,Qu=zt.input`
1984
- max-width: ${({$maxWidth:e})=>e||"unset"};
1985
- width: ${({$width:e})=>e||"unset"};
1986
-
1987
- flex: 1;
1988
- font-family: ${({theme:e})=>e.font_family.primary};
1989
- font-size: ${({$small:e})=>e?"12px":"14px"};
1990
- font-weight: 400;
1991
-
1992
- cursor: text;
1993
- color: ${({theme:e})=>e.v2.colors.white[500]};
1994
- &::placeholder {
1995
- color: ${({theme:e})=>e.v2.colors.silver[600]};
1996
- }
1997
-
1998
- &:disabled {
1999
- cursor: not-allowed;
2000
- color: ${({theme:e})=>e.v2.colors.grey[400]};
2001
- &::placeholder {
2002
- color: ${({theme:e})=>e.v2.colors.grey[400]};
2003
- }
2004
- }
2005
-
2006
- overflow: hidden;
2007
- text-overflow: ellipsis;
2008
- white-space: nowrap;
2009
- `,Zu=zt.div`
2010
- display: flex;
2011
- align-items: center;
2012
- justify-content: center;
2013
- cursor: pointer;
2014
- `,eh=({label:e,required:t,tooltip:o,badge:r,leftIcon:i,rightIcon:n,hasError:a,errorMessage:s,warnMessage:l,helpMessage:c,type:d=To.Text,name:p,value:u,onChange:h,disabled:m,maxWidth:g,width:f,small:x=!1,...y})=>{const b=Pt(),$=d===To.Password,[v,w]=St(!1),[S,C]=St(null),k=a||!!s||!!S,E=u?b.v2.colors.white[500]:m?b.v2.colors.grey[400]:b.v2.colors.silver[200],A=x?14:18;return bt(wa,{$width:f,$gap:6,children:[yt(du,{label:e,tooltip:o,required:t,badge:r}),bt(Yu,{$small:x,$disabled:m,$error:k,children:[i?yt(i,{size:A,fill:E}):null,yt(Qu,{"data-id":p,type:v||d===To.Number?To.Text:d,name:p,value:u,onChange:e=>{e.stopPropagation();const t=e.target.value;d===To.Number&&(e.target.value=ii(t),t&&t!==e.target.value?C("Please enter a valid number"):C(null)),h?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:m,$maxWidth:g,$width:f,$small:x,...y}),$?yt(Zu,{onClick:()=>w(e=>!e),children:yt(v?rt:it,{size:A,fill:E})}):n?yt(n,{size:A,fill:E}):null]}),yt(pu,{errorMessage:S||s,warnMessage:l,helpMessage:c})]})},th=({options:e,values:t,setValues:o,withMultiSelect:r,withSearch:i,...n})=>{const a=wt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=wt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return yt(Cu,{withMultiSelect:r,withSearch:i,alignX:yu.Left,items:a,selectedIds:t,setSelectedIds:o,children:({ChevronIcon:e,handleClick:t})=>yt(eh,{placeholder:"Select options...",...n,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},oh=zt.header`
2015
- position: relative;
2016
- width: calc(100% - 36px);
2017
- padding: 12px 18px;
2018
- background-color: ${({theme:e})=>e.v2.colors.black[500]};
2019
- display: flex;
2020
- align-items: center;
2021
- justify-content: space-between;
2022
- `,rh=zt(va)`
2023
- position: absolute;
2024
- left: 50%;
2025
- transform: translateX(-50%);
2026
- gap: 16px;
2027
- `,ih=({left:e=[],center:t=[],right:o=[]})=>bt(oh,{children:[yt(va,{$gap:16,children:e}),yt(rh,{children:t}),yt(va,{$gap:16,children:o})]}),nh=zt.div`
2028
- display: flex;
2029
- align-items: center;
2030
- gap: 2px;
2031
- width: fit-content;
2032
- padding: 4px;
2033
- border-radius: 8px;
2034
- background-color: ${({theme:e})=>e.v2.colors.silver[600]};
2035
- box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
2036
-
2037
- position: absolute;
2038
- right: ${({$right:e})=>e||"12px"};
2039
- top: 50%;
2040
- transform: translateY(-50%);
2041
- `,ah=({isOpen:e,actions:t,positionRight:o})=>e?yt(nh,{$right:o,children:t.map(e=>e?yt(Ja,{text:e.tooltip||"",children:yt(Xp,{...e,variant:Wp.Secondary,size:Gp.S,label:e.label})},e.id):null)}):null,sh=({values:e,setValues:t,name:o,label:r,tooltip:i,badge:n,required:a,errorMessage:s,warnMessage:l,helpMessage:c,placeholder:d,disabled:p})=>{const u=Pt(),h=e.length<=1,m=p,g=p||h&&m;return bt(wa,{"data-id":o,$gap:6,children:[yt(du,{label:r,tooltip:i,required:a,badge:n}),yt(wa,{$gap:8,children:(e.length?e:[""]).map((o,r)=>{const i=r===e.length-1;return bt(va,{$gap:8,$alignItems:"center",children:[yt(eh,{width:"100%",autoFocus:Xr(o)&&!h&&i,value:o,onChange:o=>((o,r)=>{const i=[...e||[]];i[r]=o,t(i)})(o.target.value,r),disabled:p,placeholder:d,hasError:!!s}),yt(Xp,{leftIcon:et,variant:Wp.Secondary,size:Gp.S,disabled:m,onClick:()=>(()=>{const o=[...e||[]];o.push(""),t(o)})()}),yt(Xp,{leftIcon:g?at:()=>yt(at,{fill:u.v2.colors.red[500]}),variant:Wp.Secondary,size:Gp.S,disabled:g,onClick:()=>(o=>{const r=[...e||[]].filter((e,t)=>t!==o);r.length||r.push(""),t(r)})(r)})]},`input-list-${r}`)})}),yt(pu,{errorMessage:s,warnMessage:l,helpMessage:c})]})},lh=({col:e,colIdx:t,row:o,rowIdx:r,rowsLength:i,handleChange:n,errorMessage:a,disabled:s})=>{const{keyName:l,componentType:c,inputType:d,label:p,placeholder:u,options:h,renderCondition:m}=e,g=o[l];if(m&&!m(o))return null;switch(c){case Do.Dropdown:case"multi-dropdown":const e=Array.isArray(g)&&h?.filter(e=>g.includes(e.id)).map(e=>e.id)||[],o="multi-dropdown"===c;return yt(th,{label:u?p:void 0,placeholder:u||p,options:h||[],withMultiSelect:o,withSearch:o,values:e,setValues:e=>n(l,e,r),disabled:s,hasError:!!a});default:const m=i>1&&0===r&&0===t&&Xr(g);return yt(eh,{label:u?p:void 0,placeholder:u||p,autoFocus:m,type:d,value:g,onChange:({target:{value:e}})=>n(l,e,r),disabled:s,hasError:!!a})}},ch=zt.table`
2042
- width: 100%;
2043
- border-collapse: separate;
2044
- border-spacing: 0 8px;
2045
- `,dh=zt.td`
2046
- padding: 0 8px 0 0;
2047
- `,ph=zt.td`
2048
- width: 72px;
2049
- padding-bottom: 2px;
2050
- vertical-align: bottom;
2051
- `,uh=({columns:e,values:t,setValues:o,name:r,label:i,tooltip:n,badge:a,required:s,disabled:l,errorMessage:c,warnMessage:d,helpMessage:p,limitFieldsPerRow:u})=>{const h=Pt(),m=wt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),g=(e,r,i)=>{const n=t.length?io(t):[io(m)];n[i][e]=r,o(n)},f=wt(()=>{if(u){const t=[];for(let o=0;;o+=u){const r=e.slice(o,o+u);if(!r.length)break;t.push(r)}return t}return[e]},[u,e]),x=t.length?t:[m];return bt(wa,{"data-id":r,$gap:0,children:[yt(du,{label:i,tooltip:n,required:s,badge:a}),yt(ch,{children:yt("tbody",{children:x.map((e,r)=>bt(vt,{children:[u&&r>0?yt("tr",{children:yt(dh,{colSpan:f.length})}):null,f.map((i,n)=>bt("tr",{children:[i.map((t,o)=>t.renderCondition&&!t.renderCondition(e)?null:yt(dh,{children:yt(lh,{col:t,colIdx:o,row:e,rowIdx:r,rowsLength:x.length,handleChange:g,disabled:l,errorMessage:c})},`input-table-row-${r}-col-${n}-${o}`)),0===n&&yt(ph,{children:bt(va,{$gap:8,$justifyContent:"center",children:[yt(Xp,{leftIcon:et,variant:Wp.Secondary,size:Gp.S,disabled:l,onClick:()=>(()=>{const e=io(t);e.push(io(m)),o(e)})()}),yt(Xp,{leftIcon:l?at:()=>yt(at,{fill:h.v2.colors.red[500]}),variant:Wp.Secondary,size:Gp.S,disabled:l,onClick:()=>(e=>{const r=t.filter((t,o)=>o!==e);r.length||r.push(io(m)),o(r)})(r)})]})})]},`input-table-matrix-${r}-${n}`))]},`input-table-row-${r}`))})}),yt(pu,{errorMessage:c,warnMessage:d,helpMessage:p})]})},hh=zt.div`
2052
- display: flex;
2053
- align-items: center;
2054
- justify-content: space-between;
2055
- gap: 32px;
2056
-
2057
- padding: 18px 16px;
2058
- border-radius: 18px;
2059
- background-color: ${({theme:e})=>e.v2.colors.black[500]+vn["095"]};
2060
- box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2061
-
2062
- position: fixed;
2063
- bottom: 0;
2064
- left: 50%;
2065
- z-index: 1;
2066
- animation-name: ${Sn.in.center};
2067
- `,mh=({isOpen:e,onClose:t,richTitle:o,actions:r})=>e?bt(hh,{children:[yt(Du,{...o}),yt(Eu,{onAnyClick:t,actions:r})]}):null,gh=zt.div`
2068
- border-radius: 100%;
2069
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2070
- position: relative;
2071
- `,fh=zt.div`
2072
- width: 80px;
2073
- height: 80px;
2074
- border-radius: 100%;
2075
- border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
2076
- border-right-color: transparent;
2077
- border-left-color: transparent;
2078
- border-bottom-color: transparent;
2079
- animation: spin 1s linear infinite;
2080
- @keyframes spin {
2081
- to {
2082
- transform: rotate(360deg);
2083
- }
2084
- }
2085
- `,xh=zt(gi)`
2086
- position: absolute;
2087
- top: 50%;
2088
- left: 50%;
2089
- transform: translate(-50%, -50%);
2090
- `,yh=({percentage:e})=>bt(gh,{children:[yt(fh,{}),"number"==typeof e?yt(xh,{size:hi.M,weight:500,children:`${e}%`}):null]}),bh={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 $h(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const r=(e.match(/[^0-9]*$/)||"").toString();return bh[r]?{value:t,unit:r}:{value:t,unit:"px"}}function vh(e){const t=$h(e);return`${t.value}${t.unit}`}const wh=((e,t,o)=>{const r=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return r;const i=document.createElement("style");document.head.appendChild(i);const n=i.sheet,a=`\n @keyframes ${r} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),r})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Sh=({loading:e=!0,color:t,scale:o=1,speedMultiplier:r=1,cssOverride:i={},style:n={},...a})=>{const s=Pt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=$h(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...i},m=(e,t)=>({position:"absolute",width:vh(1.5),height:vh(4),borderRadius:vh(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${wh} ${1.2/r}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt("span",{style:h,...a,children:[yt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),yt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),yt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),yt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),yt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),yt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),yt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Ch=zt.div`
2091
- width: ${({$size:e})=>e}px;
2092
- height: ${({$size:e})=>e}px;
2093
- border-radius: 100%;
2094
- background: ${({$color:e})=>e};
2095
- display: flex;
2096
- align-items: center;
2097
- justify-content: center;
2098
- `,kh=({scale:e,icon:t})=>{const o=Pt();return yt(Ch,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:yt(Ch,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:yt(Ch,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:yt(Ch,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:yt(Ch,{$size:23*e,$color:"#50F6E8",children:yt(t,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},Eh=434,Ah=635,Dh=zt.div`
2099
- width: ${434}px;
2100
- height: ${635}px;
2101
- display: flex;
2102
- flex-direction: column;
2103
- align-items: center;
2104
- justify-content: center;
2105
- padding: 16px;
2106
- background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
2107
- position: relative;
2108
- `,Th=zt.div`
2109
- position: absolute;
2110
- top: 50%;
2111
- left: 50%;
2112
- transform: translate(-50%, -50%);
2113
- `,Nh=()=>bt(Dh,{children:[yt(Th,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[yt("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),yt("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),yt("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),yt("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),yt("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),yt("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),yt("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),yt(Th,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[yt("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),yt("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),yt("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),yt("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),yt("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),yt("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),yt("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),yt("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Th,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[yt("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),yt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),yt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),yt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),yt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),yt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),yt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Th,{children:bt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[yt("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),yt("defs",{children:bt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[yt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),yt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),yt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),yt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),yt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),yt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),yt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),yt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),yt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),yt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),yt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),yt(Th,{children:yt(X,{size:112})})]}),Ih=Bt`
2114
- 0% {
2115
- background-position: 0% 50%;
2116
- }
2117
- 100% {
2118
- background-position: 100% 50%;
2119
- }
2120
- `,_h=zt(gi)`
2121
- background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
2122
- background-size: 250% 100%; /* Expand background to allow movement */
2123
- background-clip: text;
2124
- color: transparent;
2125
- animation: ${Ih} 1s reverse linear infinite;
2126
- `,Oh=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),r=Math.floor(o/60),i=o%60;return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`},Rh=({icon:e,title:t,titleColor:o,titleSize:r=hi.S,subTitle:i,subTitleColor:n,subTitleSize:a=hi.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=mt})=>{const f=Pt(),[x,y]=St(()=>s?Oh(s):"");Ct(()=>{if(!s)return;y(Oh(s));const e=setInterval(()=>y(Oh(s)),1e3);return()=>clearInterval(e)},[s]);const b=o||f.v2.colors.white[500],$=n||f.v2.colors.silver[200],v=c||f.v2.colors.black[500];return bt(wa,{$gap:16,$alignItems:"center",children:[m?yt(kh,{scale:1.7,icon:g}):d?yt(yh,{percentage:h}):p?yt(Sh,{scale:u}):null,(t||i||s||e)&&bt(wa,{$gap:8,$alignItems:"center",children:[bt(va,{$gap:4,children:[e&&yt(e,{}),l?yt(_h,{align:"center",size:r,$titleColor:b,$gradientColor:v,children:t}):yt(gi,{align:"center",size:r,color:b,children:t})]}),i?yt(gi,{align:"center",size:a,color:$,children:i}):null,x?yt(gi,{align:"center",size:a,color:b,children:x}):null]})]})},Fh=zt.div`
2127
- position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2128
- top: 50%;
2129
- left: 50%;
2130
- transform: translate(-50%, -50%);
2131
- z-index: 1000;
2132
- width: fit-content;
2133
- border-radius: 20px;
2134
- background: ${({theme:e})=>e.v2.colors.black[500]};
2135
- box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2136
- overflow: hidden;
2137
-
2138
- animation-name: ${Sn.in.center};
2139
- `,zh=zt.div`
2140
- position: relative;
2141
- `,Lh=zt.div`
2142
- position: absolute;
2143
- top: 16px;
2144
- left: 16px;
2145
- `,Ph=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:r,onClose:i,children:n})=>{if(Pn(e),!e)return null;const a=bt($t,{children:[!t&&yt(ka,{$relativeToParent:o,onClick:i}),yt(Fh,{$relativeToParent:o,children:bt(zh,{children:[r&&yt(Lh,{children:yt(Gn,{icon:e=>yt(dt,{rotate:-90,...e}),size:jn.L,onClick:r})}),n]})})]});return o?a:Jt(a,document.body)},Mh=zt.aside`
2146
- display: flex;
2147
- flex-direction: column;
2148
- gap: 8px;
2149
- height: ${({$height:e})=>e};
2150
- width: fit-content;
2151
- padding: 16px 12px;
2152
- background-color: ${({theme:e})=>e.v2.colors.black[500]};
2153
- overflow-y: auto;
2154
- `,Bh=({height:e,icons:t})=>yt(Mh,{$height:e,children:t.map(({id:e,selected:t,icon:o,onClick:r})=>yt(Xp,{label:"",leftIcon:o,iconSize:24,onClick:r,variant:t?Wp.Primary:Wp.Text},e))}),Uh=zt.div`
2155
- display: flex;
2156
- align-items: center;
2157
- justify-content: center;
2158
- width: fit-content;
2159
- height: fit-content;
2160
- padding: 8px;
2161
- border-radius: 100%;
2162
- background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2163
- `,jh=({icon:e=Ke,title:t="No data",subTitle:o,button:r})=>{const i=Pt().v2.colors.silver[200];return bt(wa,{$gap:12,$alignItems:"center",children:[yt(Uh,{children:yt(e,{size:32,fill:i})}),bt(wa,{$gap:4,$alignItems:"center",children:[yt(gi,{size:hi.S,align:"center",children:t}),o&&yt(gi,{size:hi.XXS,align:"center",color:i,children:o})]}),r&&yt(Xp,{variant:Wp.Secondary,...r})]})},Wh=zt.div`
2164
- display: flex;
2165
- align-items: center;
2166
- gap: 10px;
2167
- ${({$fullWidth:e})=>e&&Lt`
2168
- width: calc(100% - 16px);
2169
- `}
2170
- padding: 4px 12px 4px 4px;
2171
- border-radius: 8px;
2172
- background-color: ${({theme:e,$status:t})=>Lr(e,t,[No.Info].includes(t)?"1000":"900")};
2173
- `,Gh=zt.div`
2174
- width: ${({$smallIcon:e})=>e?"24px":"32px"};
2175
- height: ${({$smallIcon:e})=>e?"24px":"32px"};
2176
- display: flex;
2177
- align-items: center;
2178
- justify-content: center;
2179
- border-radius: 6px;
2180
- background-color: ${({theme:e,$status:t})=>Lr(e,t,[No.Info].includes(t)?"900":"800")};
2181
- `,Vh=zt.div`
2182
- margin-left: auto;
2183
- margin-right: 8px;
2184
- cursor: pointer;
2185
- &:hover {
2186
- transform: scale(1.2);
2187
- }
2188
- `,Xh=({status:e,message:t,action:o,fullWidth:r,smallIcon:i})=>{const n=Pt(),a=Mr(e,n),s=Lr(n,e,e===No.Default?"300":e===No.Info?"400":"500");return bt(Wh,{$status:e,$fullWidth:r,children:[yt("div",{children:yt(Gh,{$status:e,$smallIcon:i,children:yt(a,{size:i?18:24})})}),yt(gi,{color:s,size:hi.XXXS,weight:400,children:t}),o&&yt(Vh,{onClick:o.onClick,children:yt(gi,{color:s,size:hi.XXS,weight:500,underline:!0,children:o.label})})]})};var Hh;!function(e){e.S="small",e.L="large"}(Hh||(Hh={}));const Jh=zt.div`
2189
- width: fit-content;
2190
- display: flex;
2191
- align-items: center;
2192
- gap: 8px;
2193
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2194
- `,Kh=zt.div`
2195
- width: ${({$size:e})=>e===Hh.S?"16px":"20px"};
2196
- height: ${({$size:e})=>e===Hh.S?"16px":"20px"};
2197
- display: flex;
2198
- align-items: center;
2199
- justify-content: center;
2200
- border-radius: 100%;
2201
- border: 1px solid ${({$borderColor:e})=>e};
2202
- background-color: ${({$backgroundColor:e})=>e};
2203
- `,qh=({label:e,value:t,onChange:o,disabled:r,size:i=Hh.L})=>{const n=Pt(),[a,s]=St(!1),l=t,c=i===Hh.S?6:8,d=r?n.v2.colors.grey[400]:n.v2.colors.white[500],p=l?"transparent":r?n.v2.colors.grey[700]:a?n.v2.colors.silver[400]:n.v2.colors.silver[600],u=r?n.v2.colors.grey[600]:l?n.v2.colors.purple[500]:n.v2.colors.silver[900];return bt(Jh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),r||o(!t)},$disabled:r,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[yt(Kh,{$size:i,$borderColor:p,$backgroundColor:u,children:t?yt(gt,{size:c,fill:d}):null}),e&&yt(gi,{size:i===Hh.S?hi.XXS:hi.XS,children:e})]})},Yh=zt.div`
2204
- display: flex;
2205
- flex-direction: ${({$flexDirection:e})=>e};
2206
- gap: ${({$gap:e})=>e}px;
2207
- `,Qh=({label:e,direction:t,disabled:o,size:r,options:i,values:n,setValues:a})=>bt(Yh,{$flexDirection:t===bo.Horizontal?"row":"column",$gap:t===bo.Horizontal?16:8,children:[e&&yt(gi,{children:e}),i.map(t=>yt(qh,{...t,value:n[t.id],onChange:e=>{return o=t.id,r=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=r,t});var o,r},disabled:o,size:r},`${e}-radio-${t.id}`))]}),Zh=({currentStep:e,data:t,gap:o=12})=>yt(wa,{$gap:o,children:t.map(t=>{const o=t.step<e,r=t.step===e;return bt(va,{$gap:8,children:[o||t.forceDoneBadge?yt(jp,{status:No.Success,label:"",leftIcon:He}):yt(jp,{status:No.Default,label:t.step.toString()}),yt(gi,{size:r?hi.M:hi.XS,weight:r?500:400,opacity:r?1:.7,children:t.label})]},`stepper-item-${t.step}`)})});var em;!function(e){e.Data="data",e.Pretty="pretty"}(em||(em={}));const tm=zt.div`
2208
- height: ${({$maxHeight:e})=>e};
2209
- width: 100%;
2210
- display: flex;
2211
- flex-direction: column;
2212
- overflow: hidden;
2213
- `,om=zt.div`
2214
- width: 100%;
2215
- flex: 1;
2216
- display: flex;
2217
- flex-direction: column;
2218
- overflow: hidden;
2219
- `,rm=zt.div`
2220
- flex-shrink: 0;
2221
- z-index: 1;
2222
- `,im=zt.div`
2223
- display: flex;
2224
- width: 100%;
2225
- `,nm=zt.div`
2226
- position: relative;
2227
- min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2228
- flex: 1;
2229
- padding: 18px 24px;
2230
- border: none;
2231
- border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
2232
- box-sizing: border-box;
2233
-
2234
- ${({$variant:e,$backgroundColor:t})=>{if(t)return Lt`
2235
- background-color: ${t};
2236
- `;switch(e){case em.Data:return Lt`
2237
- background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2238
- `;case em.Pretty:return Lt`
2239
- background-color: transparent;
2240
- `;default:return""}}}
2241
- `,am=zt.div`
2242
- position: absolute;
2243
- top: 50%;
2244
- right: 0;
2245
- transform: translateY(-50%);
2246
- width: 1px;
2247
- height: 18px;
2248
- background: ${({theme:e})=>e.v2.colors.silver[500]};
2249
- `,sm=zt.div`
2250
- position: relative;
2251
-
2252
- min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2253
- flex: 1;
2254
- display: flex;
2255
- align-items: center;
2256
-
2257
- padding: 18px 24px;
2258
- cursor: ${({$withClick:e})=>e?"pointer":"default"};
2259
- box-sizing: border-box;
2260
-
2261
- ${({$variant:e,$selected:t,$hovered:o,$isLastRow:r,$isFirstCell:i,$isLastCell:n})=>{switch(e){case em.Data:return Lt`
2262
- border-bottom: ${({theme:e})=>r?"none":`1px solid ${e.v2.colors.silver[500]}`};
2263
- border-radius: ${r?i?"0 0 0 4px":n?"0 0 4px 0":"0":"0"};
2264
- background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2265
- `;case em.Pretty:return Lt`
2266
- border: none;
2267
- border-radius: ${i?"12px 0 0 12px":n?"0 12px 12px 0":"0"};
2268
- background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2269
- `;default:return""}}}
2270
- `,lm=zt.div`
2271
- width: 100%;
2272
- display: flex;
2273
- align-items: center;
2274
- justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2275
- gap: 4px;
2276
- text-align: ${({$textAlign:e})=>e||"left"};
2277
- `,cm=({variant:e,columns:t,rows:o,getRowActions:r,rowActionsPushRightPosition:i,withCheckboxes:n})=>{const[a,s]=St(null),l=wt(()=>o.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,f=a===c,x=r(l),y=(e,t)=>({$isLastRow:c===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&f,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return bt(im,{children:[n&&yt(sm,{$variant:e,style:{flex:"0 0 68px"},...y(!0,!1),children:!g&&yt(gu,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:o,textAlign:r,minWidth:a},s)=>{const l=d.find(e=>e.key===o),p=0===s&&!n,u=s===t.length-1,h="right"===r?"flex-end":"center"===r?"center":"flex-start";return bt(sm,{$variant:e,$minWidth:a,...y(p,u),children:[yt(va,{$width:"100%",$justifyContent:h,children:l?.component?yt(l.component,{}):yt(gi,{size:hi.XS,children:l?.rawValue||"-"})}),x.length?yt(ah,{isOpen:f&&u,actions:x,positionRight:i}):null]},`row-${c}-cell-${s}`)})]},`row-${c}`)}),[o,a,r,i,n,t]);return yt(ep,{gap:e===em.Pretty?8:0,elements:l})},dm=({columnKey:e,sortDirection:t,sortByKey:o,onSort:r})=>{const i=Pt(),n=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],a=t===$o.Ascending?0:180;return yt(Gn,{icon:e=>yt(dt,{fill:n,rotate:a,...e}),onClick:()=>r(e)})},pm=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:r})=>{const i=Pt(),n=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],a=wt(()=>Array.from(new Set(r.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})),[r,e]);return yt(Cu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>yt(ft,{fill:n,...e})}})},um=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:r,sortDirection:i,sortByKey:n,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>bt(im,{children:[c&&yt(nm,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:yt(gu,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),o.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},f)=>{const x=0===f&&!c,y=f===o.length-1;return bt(nm,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:y,children:[bt(lm,{$textAlign:g,children:[yt(gi,{size:hi.XS,align:g,children:p}),!u&&yt(dm,{columnKey:d,sortDirection:i,sortByKey:n,onSort:a}),!h&&yt(pm,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:r})]}),!y&&e===em.Data&&yt(am,{})]},`column-${d}`)})]}),hm=({variant:e,maxHeight:t="256px",headerBackgroundColor:o,isLoading:r,columns:i,rows:n,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=St($o.Ascending),[p,u]=St(""),[h,m]=St({}),g=Et(e=>{u(e),d(e=>e===$o.Ascending?$o.Descending:$o.Ascending)},[]),f=Et((e,t)=>{m(o=>({...o,[e]:t}))},[]),x=wt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...n].sort((t,o)=>{const r=e(t,p),i=e(o,p);return(c===$o.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)))(r,i)}):n).filter(t=>{for(const[o,r]of Object.entries(h))if(r.length&&!r.includes(e(t,o)))return!1;return!0})},[n,p,c,h]),{partiallySelected:y,allSelected:b}=wt(()=>{const e=x.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[x]);return yt(tm,{$maxHeight:t,children:bt(om,{$variant:e,children:[yt(rm,{children:yt(um,{variant:e,backgroundColor:o,columns:i,rowsUnfiltered:n,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:f,withCheckboxes:l,partiallySelected:y,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),x.length?yt(cm,{variant:e,columns:i,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}):yt(Sa,{style:{marginTop:"0.5rem"},children:r?yt(Rh,{withSpinner:!0}):yt(jh,{})})]})})},mm=zt.div`
2278
- display: flex;
2279
- align-items: center;
2280
- justify-content: center;
2281
- gap: 8px;
2282
- width: fit-content;
2283
- padding: 8px;
2284
- border-radius: 4px;
2285
- ${({$disabled:e,$withClick:t})=>e?Lt`
2286
- cursor: not-allowed;
2287
- background-color: ${({theme:e})=>e.v2.colors.grey[800]};
2288
- `:t?Lt`
2289
- cursor: pointer;
2290
- background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2291
- &:hover {
2292
- background-color: ${({theme:e})=>e.v2.colors.silver[400]};
2293
- }
2294
- &:active {
2295
- background-color: ${({theme:e})=>e.v2.colors.silver[500]};
2296
- }
2297
- `:Lt`
2298
- background-color: ${({theme:e})=>e.v2.colors.silver[300]};
2299
- `}
2300
- `,gm=({label:e,leftIcon:t,rightIcon:o,onClick:r,disabled:i})=>{const n=Pt(),a=i?n.v2.colors.grey[400]:n.v2.colors.white[500];return bt(mm,{$disabled:i,$withClick:!!r,onClick:()=>!i&&r?.(),children:[t&&yt(t,{fill:a,size:16}),yt(gi,{color:a,size:hi.XS,nowrap:!0,children:e}),o&&yt(o,{fill:a,size:16})]})},fm=zt.div`
2301
- padding: 8px 12px;
2302
-
2303
- display: flex;
2304
- align-self: stretch;
2305
- align-items: flex-start;
2306
- gap: 8px;
2307
- border-radius: 6px;
2308
-
2309
- border: 1px solid ${({theme:e,$disabled:t,$error:o})=>t?e.v2.colors.grey[600]:o?e.v2.colors.red[500]:e.v2.colors.silver[500]};
2310
- background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
2311
- ${({$disabled:e,$error:t})=>!e&&!t&&Lt`
2312
- &:hover,
2313
- &:active,
2314
- &:focus-within {
2315
- border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2316
- }
2317
- `}
2318
- `,xm=zt.textarea`
2319
- max-width: ${({$maxWidth:e})=>e||"unset"};
2320
- min-height: ${({$minHeight:e})=>e||"50px"};
2321
- flex: 1;
2322
- font-family: ${({theme:e})=>e.font_family.primary};
2323
- font-size: 14px;
2324
- font-weight: 400;
2325
- resize: none;
2326
-
2327
- background: transparent;
2328
- border: none;
2329
- outline: none;
2330
- cursor: text;
2331
- color: ${({theme:e})=>e.v2.colors.white[500]};
2332
- &::placeholder {
2333
- color: ${({theme:e})=>e.v2.colors.silver[600]};
2334
- }
2335
-
2336
- &:disabled {
2337
- cursor: not-allowed;
2338
- color: ${({theme:e})=>e.v2.colors.grey[400]};
2339
- &::placeholder {
2340
- color: ${({theme:e})=>e.v2.colors.grey[400]};
2341
- }
2342
- }
2343
- `,ym=({label:e,required:t,tooltip:o,badge:r,errorMessage:i,warnMessage:n,helpMessage:a,name:s,value:l,onChange:c,disabled:d,maxWidth:p,minHeight:u,...h})=>{const m=kt(null),g=()=>{m.current&&(m.current.style.height="auto",m.current.style.height=`${m.current.scrollHeight}px`)};return bt(wa,{$gap:6,children:[yt(du,{label:e,tooltip:o,required:t,badge:r}),yt(fm,{$disabled:d,$error:!!i,children:yt(xm,{ref:m,"data-id":s,name:s,value:l,onChange:e=>{e.stopPropagation(),g(),c?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:g,onBlur:g,disabled:d,$maxWidth:p,$minHeight:u,...h})}),yt(pu,{errorMessage:i,warnMessage:n,helpMessage:a})]})};var bm,$m,vm;!function(e){e.Default="default",e.SuccessError="successError"}(bm||(bm={})),function(e){e.S="small",e.L="large"}($m||($m={})),function(e){e.Left="left",e.Right="right"}(vm||(vm={}));const wm=zt.div`
2344
- display: flex;
2345
- align-items: center;
2346
- gap: ${({$gap:e})=>e}px;
2347
- `,Sm=zt.div`
2348
- position: relative;
2349
- display: flex;
2350
- align-items: center;
2351
- justify-content: space-between;
2352
-
2353
- width: ${({$size:e})=>2*e+2}px;
2354
- height: ${({$size:e})=>e}px;
2355
- padding: ${4}px;
2356
- border-radius: ${({$size:e})=>2*e}px;
2357
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:r,$value:i,theme:n})=>{if(e)return n.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(r){case bm.SuccessError:return i?n.v2.colors.green[500]:n.v2.colors.red[500];case bm.Default:default:return i?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
2358
-
2359
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2360
- `,Cm=zt.div`
2361
- position: absolute;
2362
- top: 50%;
2363
- left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
2364
- transform: translateY(-50%);
2365
- width: ${({$size:e})=>e}px;
2366
- height: ${({$size:e})=>e}px;
2367
- border-radius: 100%;
2368
- background-color: ${({$color:e})=>e};
2369
- 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)"};
2370
- `,km=({variant:e=bm.Default,size:t=$m.L,name:o,label:r,labelAlign:i=vm.Right,labelColor:n,tooltip:a,badge:s,value:l,onChange:c,disabled:d,withIcon:p,onIcon:u=He,offIcon:h=Ke,onBgColor:m,offBgColor:g,errorMessage:f,warnMessage:x,helpMessage:y})=>{const b=Pt(),$=d?b.v2.colors.grey[400]:b.v2.colors.white[500],v=t===$m.S?10:16,w=n||b.v2.colors.silver[200],S=t===$m.S?hi.XXXS:hi.XS,C=t===$m.S?8:12;return bt(wa,{$gap:4,children:[bt(va,{$justifyContent:"space-between",children:[bt(wm,{"data-id":o||"toggle"+(r?`-${r}`:""),$gap:C,children:[r&&i===vm.Left&&yt(gi,{color:w,size:S,nowrap:!0,children:r}),bt(Sm,{$onBgColor:m,$offBgColor:g,$variant:e,$size:v,$value:l,$disabled:d,onClick:e=>{e.stopPropagation(),d||c(!l)},children:[yt(Cm,{$color:$,$size:v,$value:l,$disabled:d}),p&&bt($t,{children:[yt(u,{size:v,fill:$}),yt(h,{size:v,fill:$})]})]}),r&&i===vm.Right&&yt(gi,{color:w,size:S,nowrap:!0,children:r})]}),yt(du,{tooltip:a,badge:s})]}),yt(pu,{errorMessage:f,warnMessage:x,helpMessage:y})]})},Em=zt.div`
2371
- display: flex;
2372
- flex-direction: ${({$direction:e})=>e===bo.Horizontal?"row":"column"};
2373
- gap: ${({$direction:e})=>e===bo.Horizontal?16:8}px;
2374
- `,Am=({direction:e=bo.Vertical,title:t,size:o,disabled:r,options:i,values:n,setValues:a})=>{const s=o===$m.S?hi.XS:hi.S;return bt(Em,{$direction:e,children:[t&&yt(gi,{size:s,children:t}),i.map(e=>yt(km,{...e,labelAlign:vm.Right,value:n[e.id],onChange:t=>{return o=e.id,r=t,void a(e=>{const t={...e};return o?t[o]=r:i.forEach(e=>t[e.id]=r),t});var o,r},disabled:r,size:o},`${t}-toggle-${e.id}`))]})},Dm=zt.div`
2375
- min-width: 530px;
2376
- `,Tm=zt.div`
2377
- display: flex;
2378
- flex-direction: column;
2379
- align-items: center;
2380
- gap: 16px;
2381
- padding: 24px;
2382
- `,Nm=zt.div`
2383
- display: flex;
2384
- justify-content: center;
2385
- gap: 16px;
2386
- padding: 16px 24px;
2387
- background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2388
- `,Im=({visual:e,title:t,description:o,isOpen:r,onClose:i,onDeny:n,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Pt();return yt(Ph,{isOpen:r,onClose:i,...c,children:bt(Dm,{children:[bt(Tm,{children:[e&&yt(e,{}),yt(gi,{size:hi.M,weight:500,color:d.v2.colors.white[500],children:t}),yt(wa,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>yt(gi,{size:hi.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(n||s)&&bt(Nm,{children:[yt(Xp,{variant:Wp.Secondary,label:a,onClick:()=>{n?.(),i()}}),s&&yt(Xp,{variant:Wp.Primary,label:l,onClick:()=>{s(),i()}})]})]})})};export{Xo as $,ho as A,Xp as B,gu as C,qu as D,ym as E,wa as F,ro as G,th as H,eh as I,Wr as J,mo as K,Rh as L,Xi as M,jh as N,Zi as O,ri as P,Yo as Q,Du as R,ep as S,vo as T,oi as U,kh as V,Im as W,cr as X,Wo as Y,Ja as Z,Go as _,du as a,Lp as a$,er as a0,Zo as a1,Vo as a2,jo as a3,jp as a4,Hi as a5,$r as a6,sr as a7,ar as a8,da as a9,bu as aA,yu as aB,eu as aC,fr as aD,na as aE,ku as aF,pr as aG,ba as aH,hm as aI,em as aJ,mh as aK,Zh as aL,Pr as aM,Rs as aN,ju as aO,An as aP,Eu as aQ,Ru as aR,Lu as aS,Ho as aT,$a as aU,Dc as aV,Bl as aW,ys as aX,Si as aY,Hl as aZ,zd as a_,ha as aa,ua as ab,Eo as ac,Bi as ad,Ui as ae,dr as af,Gn as ag,jn as ah,Wi as ai,Gi as aj,Cr as ak,tu as al,Vi as am,Oo as an,$m as ao,ui as ap,pa as aq,dn as ar,sn as as,Vn as at,Yn as au,ya as av,Jr as aw,Iu as ax,tn as ay,Cu as az,va as b,Va as b$,Wd as b0,_d as b1,Ya as b2,Js as b3,dp as b4,ap as b5,Jc as b6,Kd as b7,Rp as b8,$i as b9,Ar as bA,ll as bB,Aa as bC,Da as bD,Cd as bE,kr as bF,Ta as bG,Ac as bH,Sl as bI,Bp as bJ,Nn as bK,ci as bL,Rn as bM,pn as bN,ml as bO,Uo as bP,mr as bQ,Tr as bR,Sr as bS,bp as bT,Un as bU,ur as bV,co as bW,rr as bX,lo as bY,Mn as bZ,Zn as b_,en as ba,gd as bb,Xc as bc,gs as bd,Ln as be,Er as bf,ji as bg,Ws as bh,Bc as bi,xr as bj,ko as bk,nn as bl,pi as bm,Pa as bn,Ea as bo,as as bp,Li as bq,Qd as br,yr as bs,Hs as bt,_o as bu,ei as bv,Mr as bw,rn as bx,so as by,rl as bz,pu as c,yo as c$,Ca as c0,hp as c1,Qn as c2,Zr as c3,Ql as c4,lr as c5,ea as c6,Xn as c7,mn as c8,nr as c9,$l as cA,wl as cB,ah as cC,Kr as cD,ni as cE,oa as cF,Mo as cG,Co as cH,mc as cI,vr as cJ,xa as cK,al as cL,br as cM,dc as cN,Yi as cO,gr as cP,vs as cQ,Fr as cR,el as cS,Ds as cT,po as cU,Lo as cV,xo as cW,Po as cX,zo as cY,So as cZ,Io as c_,zs as ca,Qs as cb,Ao as cc,ti as cd,Jn as ce,Gr as cf,eo as cg,tr as ch,Ap as ci,Oc as cj,Ir as ck,Np as cl,an as cm,qn as cn,ms as co,Sn as cp,jr as cq,Bn as cr,Fo as cs,Mi as ct,zl as cu,Ys as cv,Ad as cw,Br as cx,Vr as cy,qs as cz,io as d,Yp as d$,bo as d0,fo as d1,Bo as d2,wo as d3,qo as d4,Ko as d5,Jo as d6,Ro as d7,or as d8,Qo as d9,qi as dA,$n as dB,Dn as dC,wn as dD,bn as dE,ia as dF,la as dG,ca as dH,Pn as dI,Tl as dJ,kl as dK,Vc as dL,pd as dM,nd as dN,xd as dO,wd as dP,tl as dQ,Xd as dR,ka as dS,Qc as dT,xi as dU,yi as dV,bi as dW,Ah as dX,Eh as dY,Nh as dZ,qp as d_,$o as da,go as db,to as dc,hr as dd,no as de,wr as df,Dr as dg,Nr as dh,_r as di,Or as dj,Rr as dk,zr as dl,Lr as dm,Ur as dn,Hr as dp,qr as dq,Qr as dr,ii as ds,ai as dt,si as du,li as dv,ao as dw,di as dx,Ji as dy,Ki as dz,Sa as e,xu as e0,uu as e1,ih as e2,Ph as e3,Bh as e4,qh as e5,Qh as e6,Hh as e7,Tu as e8,gm as e9,Am as ea,bm as eb,hi as f,su as g,Xh as h,No as i,Wp as j,gi as k,vn as l,To as m,Xr as n,uh as o,km as p,vm as q,sh as r,Ba as s,Gp as t,aa as u,Do as v,uo as w,Fn as x,ir as y,iu as z};