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