@odigos/ui-kit 0.0.219 → 0.0.221
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 +30 -0
- package/lib/chunks/{index-YIqbBRyO.js → index-B0bRHrR6.js} +1 -1
- package/lib/chunks/ui-components-BRgXOh8V.js +2469 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +3 -2
- package/lib/components/styled.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -2
- package/lib/containers/_v2/settings/index.d.ts +2 -0
- package/lib/containers/_v2/settings/toolbar/index.d.ts +12 -0
- package/lib/containers/v2.js +68 -63
- package/lib/containers.js +127 -127
- package/lib/contexts/odigos-context.d.ts +1 -0
- package/lib/contexts.js +1 -1
- package/lib/functions/get-entity-id/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useScrollTo.d.ts +11 -0
- package/lib/hooks.js +1 -1
- package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -0
- package/lib/snippets/v2.js +7 -7
- 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 +0 -1
- package/lib/types/config/index.d.ts +3 -2
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-Dj10kYlT.js +0 -2469
|
@@ -1,2469 +0,0 @@
|
|
|
1
|
-
import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as o,RenameAttributeIcon as i,DeleteAttributeIcon as r,AddClusterInfoIcon as n,K8sLogo as a,ImageErrorIcon as s,KafkaLogo as l,RedisLogo as c,PostgresLogo as d,NginxLogo as p,MysqlLogo as u,ElixirLogo as h,SwiftLogo as m,RustLogo as g,RubyLogo as f,PhpLogo as x,CPlusPlusLogo as y,CSharpLogo as b,DotnetLogo as $,PythonLogo as v,NodejsLogo as w,GoLogo as S,JavaLogo as C,AwsXrayLogo as k,VictoriaMetricsLogo as E,UptraceLogo as A,TraceloopLogo as D,TingyunLogo as T,TempoLogo as N,TelemetryHubLogo as I,SumoLogicLogo as _,SplunkLogo as O,SignozLogo as R,SeqLogo as F,AwsS3Logo as z,QuickwitLogo as L,GigapipeLogo as P,QrynLogo as M,PrometheusLogo as B,OpenTelemetryLogo as U,OracleLogo as j,OpsVerseLogo as W,OpenObserveLogo as H,OneUptimeLogo as X,OdigosLogo as G,ObserveLogo as V,NewRelicLogo as K,MiddlewareLogo as J,LumigoLogo as q,LokiLogo as Y,LogzioLogo as Q,LightstepLogo as Z,Last9Logo as ee,KloudmateLogo as te,JaegerLogo as oe,InstanaLogo as ie,HyperDxLogo as re,HoneycombLogo as ne,GroundcoverLogo as ae,GreptimeLogo as se,GrafanaLogo as le,GoogleCloudPlatformLogo as ce,ElasticSearchLogo as de,ElasticApmLogo as pe,DynatraceLogo as ue,DatadogLogo as he,Dash0Logo as me,CoralogixLogo as ge,AwsCloudwatchLogo as fe,ClickhouseLogo as xe,ChronosphereLogo as ye,ChecklyLogo as be,CauselyLogo as $e,BonreeLogo as ve,BetterStackLogo as we,AzureMonitorLogo as Se,AzureBlobLogo as Ce,AxiomLogo as ke,AppDynamicsLogo as Ee,AlibabaCloudLogo as Ae,AlaudaLogo as De,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 He,ExclamationTriangleIcon as Xe,ExclamationCircleIcon as Ge,ISquareIcon as Ve,AwsLogo as Ke,AwsSecretsManagerLogo as Je,AwsStepFunctionsLogo as qe,AwsEventBridgeLogo as Ye,AwsBedrockLogo as Qe,AwsApiGatewayLogo as Ze,AwsEc2Logo as et,AwsKinesisLogo as tt,AwsLambdaLogo as ot,AwsSnsLogo as it,AwsSqsLogo as rt,AwsDynamoDbLogo as nt,AwsStsLogo as at,VIcon as st,CopyIcon as lt,XIcon as ct,MinusIcon as dt,ListIcon as pt,CodeIcon as ut,ExtendArrowIcon as ht,PlusIcon as mt,EditIcon as gt,NoDataIcon as ft,RefreshIcon as xt,EyeClosedIcon as yt,EyeOpenIcon as bt,SearchIcon as $t,TrashIcon as vt,EditedIcon as wt,SortArrowsIcon as St,NotebookIcon as Ct,DotsHorizontalIcon as kt,ChevronUpIcon as Et,ChevronDownIcon as At,ArrowIcon as Dt,DotsVerticalIcon as Tt,DotIcon as Nt,FilterIcon as It}from"../icons.js";import{create as _t}from"zustand";import{jsx as Ot,jsxs as Rt,Fragment as Ft}from"react/jsx-runtime";import{Fragment as zt,useMemo as Lt,useState as Pt,useEffect as Mt,useRef as Bt,useCallback as Ut,useContext as jt,createContext as Wt,forwardRef as Ht,memo as Xt}from"react";import Gt from"javascript-time-ago";import{p as Vt,c as Kt,s as Jt,l as qt}from"./vendor-C150cdxb.js";import Yt,{css as Qt,useTheme as Zt,ThemeProvider as eo,keyframes as to}from"styled-components";import{Handle as oo,Position as io,ReactFlowProvider as ro,ReactFlow as no,Controls as ao,ControlButton as so,useReactFlow as lo}from"@xyflow/react";import co,{createPortal as po}from"react-dom";import{Highlight as uo,themes as ho}from"prism-react-renderer";import{ErrorBoundary as mo}from"react-error-boundary";import go from"lottie-react";import{VList as fo}from"virtua";const xo=e=>e.charAt(0).toUpperCase()+e.slice(1),yo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,i])=>Array.isArray(i)?[e,t(i)]:"object"==typeof i&&null!==i?[e,o(i)]:[e,i]));return Object.entries(e).reduce((e,[i,r])=>{try{const n=JSON.parse(r);Array.isArray(n)?e[i]=JSON.stringify(t(n)):e[i]="object"==typeof n&&null!==n?JSON.stringify(o(n)):r}catch(n){"object"==typeof r&&null!==r?Array.isArray(r)?e[i]=JSON.stringify(t(r)):e[i]=JSON.stringify(o(r)):e[i]=r}return e},{})};var bo;!function(e){e.SIGNALS="SIGNALS"}(bo||(bo={}));const $o=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[i,r,n]=e;if(i===bo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(n);case"EXCLUDES":return!t?.includes(n);default:return!0}const a=o.find(e=>e.name===i||e.key===i);if(!a)return!1;switch(r){case"===":case"==":return a.value===n;case"!==":case"!=":return a.value!==n;case">":return Number(a.value)>Number(n);case"<":return Number(a.value)<Number(n);case">=":return Number(a.value)>=Number(n);case"<=":return Number(a.value)<=Number(n);default:return!0}},vo=e=>JSON.parse(JSON.stringify(e)),wo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),So=(e,t,o)=>{const i=t.split(".");let r=e;for(let e=0;e<i.length-1;e++)i[e]in r&&"object"==typeof r[i[e]]||(r[i[e]]={}),r=r[i[e]];r[i[i.length-1]]=o},Co=(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},ko=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},Eo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var Ao,Do,To,No,Io,_o,Oo,Ro,Fo,zo,Lo,Po,Mo,Bo,Uo,jo,Wo,Ho,Xo,Go,Vo,Ko,Jo,qo,Yo,Qo,Zo,ei,ti,oi,ii,ri,ni,ai,si,li,ci,di,pi,ui,hi,mi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(Ao||(Ao={})),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"}(Do||(Do={})),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"}(To||(To={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(No||(No={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Io||(Io={})),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"}(Oo||(Oo={})),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"}(Ro||(Ro={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Fo||(Fo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(zo||(zo={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Lo||(Lo={})),function(e){e.K8s="k8s",e.Vm="vm"}(Po||(Po={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Mo||(Mo={})),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"}(Bo||(Bo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Uo||(Uo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(jo||(jo={})),function(e){e.DataStream="DataStream"}(Wo||(Wo={})),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"}(Ho||(Ho={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Xo||(Xo={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Go||(Go={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Vo||(Vo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ko||(Ko={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Jo||(Jo={})),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"}(qo||(qo={})),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"}(Yo||(Yo={})),function(e){e.Labeled="labeled"}(Qo||(Qo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Zo||(Zo={})),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"}(ei||(ei={})),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"}(ti||(ti={})),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"}(oi||(oi={})),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"}(ii||(ii={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(ri||(ri={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(ni||(ni={})),function(e){e.HeaderKeys="headerKeys"}(ai||(ai={})),function(e){e.Java="java",e.Golang="golang"}(si||(si={}));class gi{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 fi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,i){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=i||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(li||(li={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(ci||(ci={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(di||(di={})),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"}(pi||(pi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ui||(ui={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(hi||(hi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(mi||(mi={}));const xi={[hi.Logs]:mi.Logs,[hi.Metrics]:mi.Metrics,[hi.Traces]:mi.Traces},yi={[mi.Logs]:hi.Logs,[mi.Metrics]:hi.Metrics,[mi.Traces]:hi.Traces},bi=(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===Go.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},$i="https://docs.odigos.io",vi="default",wi="this-cluster",Si="This Cluster",Ci={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},ki={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)'},Ei={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."},Ai={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Di=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===vi&&!e.dataStreamNames.length):[],Ti=(e,t="",o={})=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i],n=t?`${t}.${i}`:i;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const i=`${n}[${t}]`;null!==e&&"object"==typeof e?Ti(e,i,o):o[i]=e}):o[n]=r:Ti(r,n,o)}return o},Ni=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]}`},Ii=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`}},_i=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const i=e[t%16];t++;return("1"===o?i:"0"===o?63&i|128:15&i|64).toString(16)})},Oi=l=>{const c=l?.toLowerCase(),d=c?.includes(Ao.Samplers),p=c===Ao.Attributes;if(d)return e;if(p)return t;return{[Do.K8sAttributes]:a,[Do.AddClusterInfo]:n,[Do.DeleteAttributes]:r,[Do.PiiMasking]:t,[Do.RenameAttributes]:i,[Do.URLTemplatization]:o,[Do.ErrorSampler]:e,[Do.ProbabilisticSampler]:e,[Do.LatencySampler]:e,[Do.ServiceNameSampler]:e,[Do.SpanAttributeSampler]:e}[l]||s},Ri=e=>{const t=e?.filter(({status:e})=>e===Go.Error),o=e?.filter(({status:e})=>e===Go.Warning),i=e?.filter(({status:e})=>e===Ko.Disabled),r=e?.filter(({status:e})=>e===Ko.Loading),n=t.length>0,a=o.length>0,s=i.length>0;return{errors:t,hasErrors:n,warnings:o,hasWarnings:a,disableds:i,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:n?Go.Error:a?Go.Warning:s?Go.Info:void 0}},Fi=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zi=e=>({[Bo.Java]:C,[Bo.Go]:S,[Bo.JavaScript]:w,[Bo.Python]:v,[Bo.DotNet]:$,[Bo.CSharp]:b,[Bo.CPlusPlus]:y,[Bo.Php]:x,[Bo.Ruby]:f,[Bo.Rust]:g,[Bo.Swift]:m,[Bo.Elixir]:h,[Bo.MySql]:u,[Bo.Nginx]:p,[Bo.Postgres]:d,[Bo.Redis]:c,[Bo.Kafka]:l,[Bo.Ignored]:s,[Bo.Unknown]:s,[Bo.Processing]:s,[Bo.NoContainers]:s,[Bo.NoRunningPods]:s}[e]||s),Li=e=>e?.map(({language:e})=>zi(e))||[],Pi=e=>e?.map(e=>zi(e))||[],Mi=e=>e.detectedLanguages?.length?Pi(e.detectedLanguages):Li(e.containers),Bi=(e,t)=>{const o={[ei.Alauda]:De,[ei.AlibabaCloud]:Ae,[ei.AppDynamics]:Ee,[ei.Axiom]:ke,[ei.AzureBlob]:Ce,[ei.AzureMonitor]:Se,[ei.BetterStack]:we,[ei.Bonree]:ve,[ei.Causely]:$e,[ei.Checkly]:be,[ei.Chronosphere]:ye,[ei.ClickHouse]:xe,[ei.CloudWatch]:fe,[ei.Coralogix]:ge,[ei.Dash0]:me,[ei.Datadog]:he,[ei.Dynamic]:U,[ei.Dynatrace]:ue,[ei.ElasticApm]:pe,[ei.ElasticSearch]:de,[ei.GoogleCloud]:ce,[ei.GoogleCloudOTLP]:ce,[ei.GrafanaCloudLoki]:le,[ei.GrafanaCloudPrometheus]:le,[ei.GrafanaCloudTempo]:le,[ei.Greptime]:se,[ei.Groundcover]:ae,[ei.Honeycomb]:ne,[ei.HyperDX]:re,[ei.Instana]:ie,[ei.Jaeger]:oe,[ei.Kafka]:l,[ei.Kloudmate]:te,[ei.Last9]:ee,[ei.Lightstep]:Z,[ei.LogzIo]:Q,[ei.Loki]:Y,[ei.Lumigo]:q,[ei.Middleware]:J,[ei.NewRelic]:K,[ei.Observe]:V,[ei.Odigos]:G,[ei.OneUptime]:X,[ei.OpenObserve]:H,[ei.Opsverse]:W,[ei.Oracle]:j,[ei.OTLP]:U,[ei.OTLPHttp]:U,[ei.Prometheus]:B,[ei.Qryn]:M,[ei.QrynOss]:P,[ei.Quickwit]:L,[ei.S3]:z,[ei.Seq]:F,[ei.Signalfx]:O,[ei.Signoz]:R,[ei.Splunk]:O,[ei.SplunkSapm]:O,[ei.SplunkOtlp]:O,[ei.SumoLogic]:_,[ei.TelemetryHub]:I,[ei.Tempo]:N,[ei.Tingyun]:T,[ei.Traceloop]:D,[ei.Uptrace]:A,[ei.VictoriaMetrics]:E,[ei.VictoriaMetricsCloud]:E,[ei.XRay]:k}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Ui=e=>({[jo.Namespace]:Oe,[jo.Source]:_e,[jo.Destination]:Ie,[jo.Action]:o,[jo.InstrumentationRule]:Ne,[jo.SamplingRule]:Te}[e]),ji=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,Wi=(e,t,o)=>{const{extended:i,prioritizeDisplayName:r}=o||{};let n="",a="";switch(t){case jo.InstrumentationRule:const t=e;n=t.type,a=t.ruleName;break;case jo.Source:const o=e;n=o.name,a=o.otelServiceName;break;case jo.Action:const i=e;n=i.type,a=i.name;break;case jo.Destination:const r=e;n=r.destinationType.displayName,a=r.name;break;case jo.Namespace:const s=e;n=s.name,a=s.name}return i?n+(a&&a!==n?` (${a})`:""):r&&a||n},Hi=(e,t)=>{if(t===jo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,i]=e.split("=");t[o]=i}),t}return e},Xi=e=>({[ri.CodeAttributes]:Le,[ri.CustomInstrumentation]:ze,[ri.HeadersCollection]:Fe,[ri.PayloadCollection]:Re,[ri.UnknownType]:s}[e]||s),Gi=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?Bo.Processing:Bo.NoRunningPods;const i=o?.filter(e=>e.language!==Bo.Ignored);if(!i.length)return Bo.NoContainers;const r=i.find(e=>e.language!==Bo.Unknown);return r?r.language:Bo.Unknown},Vi=(e,t,o)=>(t===jo.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},Ki=e=>({[hi.Logs]:Be,[hi.Metrics]:Me,[hi.Traces]:Pe}[e]),Ji=e=>{if(!e)return G;return{[Po.K8s]:a,[Po.Vm]:Ue}[e]},qi=e=>{if(!e)return"Unknown";return{[Po.K8s]:"Kubernetes Cluster",[Po.Vm]:"Virtual Machine"}[e]},Yi=(e,t,o)=>{const i=e[t];return i?i.flatMap(e=>{const i=e[o],r=[];return void 0!==i&&(Array.isArray(i)?r.push(...i):r.push(i)),r.push(...Yi(e,t,o)),r}):[]},Qi=(e,t)=>{if(t===jo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Zi=(e,t,o)=>{switch(t){case Go.Default:return e.v2.colors.purple[o];case Go.Info:return e.v2.colors.blue[o];case Go.Error:return e.v2.colors.red[o];case Go.Warning:return e.v2.colors.yellow[o];case Go.Success:return e.v2.colors.green[o];case Jo.Disabled:case Jo.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},er=e=>{switch(e){case ci.Updating:case di.Pending:case pi.ContainerCreating:case ui.Waiting:return Go.Info;case ci.Healthy:case di.Succeeded:case di.Running:case pi.Running:case ui.Running:return Go.Success;case ci.Degraded:return Go.Warning;case ci.Failed:case di.Failed:case pi.Error:case pi.CrashLoopBackOff:case pi.CreateContainerError:case pi.CreateContainerConfigError:case pi.ErrImagePull:case pi.ErrImageNeverPull:case pi.ImagePullBackOff:case pi.InvalidImageName:case pi.RegistryUnavailable:case pi.NetworkNotReady:case pi.OOMKilled:case pi.ContainerCannotRun:case ui.Terminated:case pi.DeadlineExceeded:case pi.StartError:return Go.Error;case ci.Down:case pi.Completed:return Jo.Disabled;case ci.Unknown:case di.Unknown:default:return Jo.Unknown}},tr=(e,t)=>{const o={[Go.Default]:o=>G({fill:Zi(t,e,"300"),...o}),[Go.Info]:o=>Ve({fill:Zi(t,e,"400"),...o}),[Go.Error]:o=>Ge({fill:Zi(t,e,"500"),...o}),[Go.Warning]:o=>Xe({fill:Zi(t,e,"500"),...o}),[Go.Success]:o=>He({fill:Zi(t,e,"500"),...o}),[Jo.Disabled]:o=>We({fill:Zi(t,e,"400"),...o}),[Jo.Unknown]:o=>je({fill:Zi(t,e,"300"),...o})};return o[e]},or=e=>{switch(e){case ii.Success:return Go.Success;case ii.Error:case ii.Failure:return Go.Error;case ii.Notice:return Go.Warning;case ii.Unsupported:case ii.Unknown:return Go.Info;case ii.Irrelevant:case ii.Disabled:return Ko.Disabled;case ii.Waiting:return Ko.Loading;case ii.Pending:default:return Go.Default}},ir=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},rr={redis:c,mysql:u,postgresql:d,postgres:d,kafka:l,elasticsearch:de,clickhouse:xe,oracle:j,aws:Ke},nr={sts:at,dynamodb:nt,s3:z,sqs:rt,sns:it,lambda:ot,kinesis:tt,ec2:et,apigateway:Ze,apigatewayv2:Ze,bedrock:Qe,bedrockruntime:Qe,eventbridge:Ye,sfn:qe,stepfunctions:qe,secretsmanager:Je,cloudwatch:fe},ar=e=>{const t=e.attributes,o=t["db.system"];if(o){const e=rr[o.toLowerCase()];if(e)return e}const i=t["messaging.system"];if(i){const e=rr[i.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=nr[e];if(t)return t}return Ke}const n=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(rr))if(n.includes(e))return t;return Ie},sr=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function lr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const cr=(e,t)=>{const o=[],i=JSON.parse(JSON.stringify(e));for(const e of i){const i=lr(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&o.push(...e.items[r].fields.map(e=>({...e,initialValue:i[e.name]})))}return o},dr=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Go.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},pr=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ur=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)},hr=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},mr=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},gr=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,fr=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,xr=e=>fr.test(e),yr=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",br=e=>e?.map(({status:e,type:t,reason:o,message:i})=>({status:e,type:yr(t),reason:o?yr(o):"",message:i}))||[],$r=(e,t)=>{const o=lr(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}))},vr=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>yi[e]):[],wr=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>yi[e]):[],Sr=e=>e.replace(/[^\d]/g,""),Cr=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},kr=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},Er=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const i=e[o];if(Array.isArray(i)){const e=i.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Er(e)))}else if("object"==typeof i&&null!==i){const e=Er(i);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(i)||(t[o]=i)}),t},Ar=(e,t=2)=>JSON.stringify(e||{},null,t),Dr=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Tr=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Nr=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)},Ir=Yt.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
|
-
`,_r=Yt.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
|
-
`,Or=Yt.div`
|
|
22
|
-
padding: ${({$padding:e})=>e||"12px"};
|
|
23
|
-
`,Rr=Yt.div`
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: row;
|
|
26
|
-
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
27
|
-
align-items: ${({$alignItems:e="center"})=>e};
|
|
28
|
-
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
29
|
-
gap: ${({$gap:e=2})=>e}px;
|
|
30
|
-
width: ${({$width:e})=>e||"unset"};
|
|
31
|
-
height: ${({$height:e})=>e||"unset"};
|
|
32
|
-
margin: ${({$margin:e="unset"})=>e};
|
|
33
|
-
padding: ${({$padding:e="unset"})=>e};
|
|
34
|
-
`,Fr=Yt.div`
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
38
|
-
align-items: ${({$alignItems:e="unset"})=>e};
|
|
39
|
-
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
40
|
-
gap: ${({$gap:e=2})=>e}px;
|
|
41
|
-
width: ${({$width:e})=>e||"unset"};
|
|
42
|
-
height: ${({$height:e})=>e||"unset"};
|
|
43
|
-
margin: ${({$margin:e="unset"})=>e};
|
|
44
|
-
padding: ${({$padding:e="unset"})=>e};
|
|
45
|
-
`,zr=Yt(Fr)`
|
|
46
|
-
width: ${({$width:e})=>e||"100%"};
|
|
47
|
-
height: ${({$height:e})=>e||"unset"};
|
|
48
|
-
padding: ${({$padding:e})=>e||"unset"};
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
`,Lr=Yt.div`
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
padding: 12px;
|
|
55
|
-
overflow-y: scroll;
|
|
56
|
-
`,Pr=Yt.div`
|
|
57
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
58
|
-
top: 0;
|
|
59
|
-
left: 0;
|
|
60
|
-
right: 0;
|
|
61
|
-
bottom: 0;
|
|
62
|
-
z-index: 1000;
|
|
63
|
-
background: rgba(0, 0, 0, 0.6);
|
|
64
|
-
backdrop-filter: blur(2px);
|
|
65
|
-
`,Mr=Yt.div`
|
|
66
|
-
width: 800px;
|
|
67
|
-
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
68
|
-
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
69
|
-
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
70
|
-
padding: 0 2px;
|
|
71
|
-
overflow-y: scroll;
|
|
72
|
-
`,Br=Yt(Fr)`
|
|
73
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
74
|
-
width: 100%;
|
|
75
|
-
`,Ur=Yt(Rr)`
|
|
76
|
-
gap: 16px;
|
|
77
|
-
padding: 16px;
|
|
78
|
-
`,jr=Yt.div`
|
|
79
|
-
width: 100%;
|
|
80
|
-
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
81
|
-
overflow-y: auto;
|
|
82
|
-
`;var Wr,Hr;!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"}(Wr||(Wr={})),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"}(Hr||(Hr={}));const Xr=Yt.p`
|
|
83
|
-
margin: 0;
|
|
84
|
-
color: ${({$color:e,theme:t})=>e||t.v2.colors.grey[50]};
|
|
85
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
86
|
-
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
87
|
-
font-weight: ${({$weight:e})=>e};
|
|
88
|
-
text-align: ${({$align:e})=>e};
|
|
89
|
-
text-transform: ${({$transform:e})=>e};
|
|
90
|
-
line-height: ${({theme:e,$lineHeight:t,$size:o})=>t||`${e.v2.text.size[o]+2}px`};
|
|
91
|
-
opacity: ${({$opacity:e})=>e};
|
|
92
|
-
|
|
93
|
-
${({$nowrap:e})=>e&&Qt`
|
|
94
|
-
text-wrap: nowrap;
|
|
95
|
-
white-space: nowrap;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
text-overflow: ellipsis;
|
|
98
|
-
`}
|
|
99
|
-
|
|
100
|
-
${({$underline:e})=>e&&Qt`
|
|
101
|
-
text-decoration: underline;
|
|
102
|
-
`}
|
|
103
|
-
|
|
104
|
-
${({$withClick:e})=>e&&Qt`
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
&:hover {
|
|
107
|
-
text-decoration: underline;
|
|
108
|
-
}
|
|
109
|
-
`}
|
|
110
|
-
`,Gr=({children:e,variant:t=Wr.P,color:o,size:i=Hr.S,weight:r=400,opacity:n=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return Ot(Xr,{as:t,$color:o,$size:i,$weight:r,$opacity:n,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>Rt(zt,{children:[e,t!==m.length-1&&Ot("br",{})]},`typography-${t}-${e}`))})},Vr=Yt.div`
|
|
111
|
-
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
112
|
-
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
113
|
-
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
114
|
-
text-align: ${({$align:e})=>e||"left"};
|
|
115
|
-
opacity: ${({$opacity:e})=>void 0!==e?e:1};
|
|
116
|
-
text-decoration: ${({$decoration:e})=>e||"none"};
|
|
117
|
-
text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
|
|
118
|
-
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
119
|
-
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
120
|
-
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
121
|
-
`,Kr=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,i]=e.split('"');return{original:e,href:o,label:i.replace("</a>","").replace(">","")}})},Jr=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},qr=(e,t)=>{const o=Kr(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const i=Jr(e);i?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)});return e.split(" ").map(e=>{if(e.includes("LINK-")){const[i,r]=e.split("###"),n=o?.[parseInt(i.replace("LINK-",""))];return Rt(zt,{children:[Ot("a",{href:n?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:n?.label}),r?`${r} `:" "]},e)}if(e.includes("STRONG-")){const[t,o]=e.split("###"),r=i?.[parseInt(t.replace("STRONG-",""))];return Rt(zt,{children:[Ot("strong",{style:{fontWeight:600},children:r?.label}),o?`${o} `:" "]},e)}return e+" "})},Yr=({children:e,color:t,size:o,weight:i,align:r,family:n,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Zt(),u=Lt(()=>(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 Ot(Vr,{$color:t,$size:o,$weight:i,$align:r,$family:n,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>Rt(zt,{children:[qr(e,p),t!==u.length-1?Ot("br",{}):null]},`text-${t}-${e}`)):e})},Qr=Yt.div`
|
|
122
|
-
padding: 4px 0 0 0;
|
|
123
|
-
`,Zr=Yt(Yr)`
|
|
124
|
-
font-size: 12px;
|
|
125
|
-
color: ${({theme:e})=>e.text.error};
|
|
126
|
-
`,en=({children:e})=>Ot(Qr,{children:Ot(Zr,{children:e})}),tn=Yt.div`
|
|
127
|
-
position: relative;
|
|
128
|
-
width: 100%;
|
|
129
|
-
`,on=Yt.div`
|
|
130
|
-
width: calc(100% - 16px);
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
height: 36px;
|
|
134
|
-
gap: 8px;
|
|
135
|
-
padding-left: 12px;
|
|
136
|
-
transition: border-color 0.3s;
|
|
137
|
-
border-radius: 32px;
|
|
138
|
-
border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
|
|
139
|
-
|
|
140
|
-
&:hover {
|
|
141
|
-
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
142
|
-
}
|
|
143
|
-
&:focus-within {
|
|
144
|
-
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
145
|
-
}
|
|
146
|
-
`,rn=Yt.input`
|
|
147
|
-
flex: 1;
|
|
148
|
-
border: none;
|
|
149
|
-
outline: none;
|
|
150
|
-
background: none;
|
|
151
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
152
|
-
font-size: 14px;
|
|
153
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
154
|
-
font-weight: 300;
|
|
155
|
-
&::placeholder {
|
|
156
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
157
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
158
|
-
opacity: 0.4;
|
|
159
|
-
font-size: 14px;
|
|
160
|
-
font-weight: 300;
|
|
161
|
-
line-height: 22px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&:disabled {
|
|
165
|
-
cursor: not-allowed;
|
|
166
|
-
}
|
|
167
|
-
`,nn=Yt.ul`
|
|
168
|
-
position: absolute;
|
|
169
|
-
max-height: 500px;
|
|
170
|
-
top: 32px;
|
|
171
|
-
border-radius: 24px;
|
|
172
|
-
width: calc(100% - 32px);
|
|
173
|
-
overflow-y: auto;
|
|
174
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
175
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
176
|
-
z-index: 9999;
|
|
177
|
-
padding: 12px;
|
|
178
|
-
`,an=Yt.li`
|
|
179
|
-
width: calc(100% - 24px);
|
|
180
|
-
padding: 8px 12px;
|
|
181
|
-
cursor: ${({$isList:e})=>e?"default":"pointer"};
|
|
182
|
-
border-radius: 24px;
|
|
183
|
-
gap: 8px;
|
|
184
|
-
display: flex;
|
|
185
|
-
align-items: ${({$isList:e})=>e?"flex-start":"center"};
|
|
186
|
-
background: transparent;
|
|
187
|
-
&:hover {
|
|
188
|
-
background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
|
|
189
|
-
}
|
|
190
|
-
`,sn=Yt.div`
|
|
191
|
-
width: 100%;
|
|
192
|
-
`,ln=Yt.div`
|
|
193
|
-
display: flex;
|
|
194
|
-
width: 100%;
|
|
195
|
-
`,cn=Yt.div`
|
|
196
|
-
width: 1px;
|
|
197
|
-
height: 52px;
|
|
198
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
199
|
-
position: absolute;
|
|
200
|
-
left: 33px;
|
|
201
|
-
`,dn=Yt.div`
|
|
202
|
-
display: flex;
|
|
203
|
-
flex-direction: column;
|
|
204
|
-
gap: 4px;
|
|
205
|
-
`,pn=Yt(Yr)`
|
|
206
|
-
flex: 1;
|
|
207
|
-
font-size: 14px;
|
|
208
|
-
`,un=Yt(Yr)`
|
|
209
|
-
color: ${({theme:e})=>e.text.grey};
|
|
210
|
-
font-size: 10px;
|
|
211
|
-
line-height: 150%;
|
|
212
|
-
`,hn=Yt.ul`
|
|
213
|
-
padding-left: 0px;
|
|
214
|
-
margin: 4px 0 0 0;
|
|
215
|
-
list-style: none;
|
|
216
|
-
width: 100%;
|
|
217
|
-
`,mn=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const i=mn(o.items,t);i.length&&e.push({...o,items:i})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,gn=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:i,defaultText:r,onTextChange:n,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=Pt(o?.label||r||""),[u,h]=Pt(mn(t,d)),[m,g]=Pt(!1);Pt(-1),Mt(()=>h(mn(t,d)),[t]);const f=o?.icon,x=e=>{e&&(p(e.label),n?.(e.label)),g(!e),i?.(e)};return Rt(tn,{style:a,children:[Rt(on,{$hasError:!!l,children:[f&&Ot(f,{}),Ot(rn,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,i=mn(t,o),r=1===i.length&&i[0].label===o?i[0]:void 0;p(o),n?.(o),h(i),x(r)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Ot(nn,{children:u.map(e=>Ot(fn,{option:e,onClick:x},e.type||e.label))}):null,l&&Ot(en,{children:l})]})},fn=({option:e,renderIcon:t=!0,onClick:o})=>{const i=!!e.items&&e.items.length>0,r=e.icon;return Rt(an,{"data-id":`option-${e.type||e.label}`,$isList:i,onMouseDown:()=>i?null:o(e),children:[r&&t&&Ot(r,{}),Rt(sn,{children:[Rt(dn,{children:[Ot(pn,{children:e.label}),Ot(un,{children:e.description})]}),i&&Ot(hn,{children:e.items?.map(e=>Rt(ln,{children:[Ot(cn,{}),Ot(fn,{option:e,renderIcon:!1,onClick:o})]},e.type||e.label))})]})]})},xn=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),yn=[{type:Do.K8sAttributes,icon:Oi(Do.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[hi.Traces,hi.Metrics,hi.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Do.AddClusterInfo,icon:Oi(Do.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[hi.Traces,hi.Metrics,hi.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:Do.DeleteAttributes,icon:Oi(Do.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[hi.Traces,hi.Metrics,hi.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:Do.RenameAttributes,icon:Oi(Do.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[hi.Traces,hi.Metrics,hi.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:Do.PiiMasking,icon:Oi(Do.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[hi.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Do.URLTemplatization,icon:Oi(Do.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[hi.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:Nr("v1.21.0")}],bn=[{type:Do.ErrorSampler,icon:Oi(Ao.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[hi.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Do.LatencySampler,icon:Oi(Ao.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[hi.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:Do.ProbabilisticSampler,icon:Oi(Ao.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[hi.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Do.ServiceNameSampler,icon:Oi(Ao.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[hi.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Do.SpanAttributeSampler,icon:Oi(Ao.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[hi.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."}],$n=[{label:"Attributes",icon:Oi(Ao.Attributes),items:yn},{label:"Samplers",icon:Oi(Ao.Samplers),items:bn}];var vn;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(vn||(vn={}));const wn={[vn.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[vn.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[vn.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[vn.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."},[vn.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[vn.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Sn=[{type:ri.CodeAttributes,icon:Xi(ri.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:[Bo.Go,Bo.Python]},{type:ri.CustomInstrumentation,icon:Xi(ri.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:[Bo.Go,Bo.Java]},{type:ri.HeadersCollection,icon:Xi(ri.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:[Bo.Go,Bo.Java,Bo.JavaScript]},{type:ri.PayloadCollection,icon:Xi(ri.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:[Bo.Go]}],Cn="Cancel",kn="Save",En="Edit rule",An="Edit auto rule",Dn="Create rule",Tn="Delete rule",Nn="Save",In="Rule name",_n="Rule type",On="Rule Enabled",Rn="Note",Fn="HTTP route",zn="Method",Ln="Keep Percentage",Pn="Drop Percentage",Mn="Keep traces with duration larger than",Bn="Keep traces with errors",Un="Keep at least this percentage of matching traces",jn="Keep at most this percentage of matching traces",Wn="Custom percentage",Hn="Disabled rule",Xn="Sample",Gn="Keep all",Vn="Drop all",Kn="Operation type",Jn="HTTP route prefix",qn="Templated path",Yn="Templated path prefix",Qn="Kafka topic",Zn="Custom duration (ms)",ea="No preview available",ta="Server address",oa="Drop at most this percentage of matching traces",ia="Unnamed rule",ra="Sampling Preview",na="Source Scope",aa="Operation",sa="Duration",la="Errors",ca="Keep Percentage",da="Drop Percentage",pa="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ua="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",ha="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ma="Retain traces with errors from the selected services and operations.",ga="Specify the exact percentage of matching traces to keep",fa="Specify the exact percentage of matching traces to drop",xa="Type rule name",ya="Add note here...",ba="Type here",$a="Search source name",va="e.g. collector.my.vendor.com",wa="Optional notes (not used by the system). Add any context or details for this sampling rule.",Sa="Rule will apply to all sources in the cluster",Ca="All sources",ka="-",Ea="All",Aa="All operations",Da="HTTP server endpoint",Ta="HTTP client endpoint",Na="Kafka consumer",Ia="Kafka producer",_a="Sampling Rules",Oa='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ra="Refresh",Fa="Create rule",za="Sampling docs",La="75vw",Pa="Delete rule?",Ma="Are you sure you want to delete this sampling rule?",Ba="Delete",Ua="Cancel",ja="Auto rule - Kubernetes Health Probes",Wa="Auto rule - Keep All Error Traces",Ha="Auto rule - Drop Traces Cluster-Wide",Xa="A rule with the same matching conditions already exists.",Ga="Edit 'Noisy Operation' auto rule",Va="Automatically detect and sample health probe traces across the cluster.",Ka="Edit 'Highly Relevant' auto rule",Ja="Automatically keep all error traces across the entire cluster.",qa="Edit 'Cost Reduction' auto rule",Ya="Automatically drop a percentage of traces across the entire cluster.",Qa={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Za={noisy:"Create 'Noisy Operations' sampling rule",highlyRelevant:"Create 'Highly Relevant Operations' sampling rule",costReduction:"Create 'Cost Reduction' sampling rule"},es={noisy:"Edit 'Noisy Operations' sampling rule",highlyRelevant:"Edit 'Highly Relevant Operations' sampling rule",costReduction:"Edit 'Cost Reduction' sampling rule"},ts={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},os=[{id:hi.Logs,value:"Logs"},{id:hi.Metrics,value:"Metrics"},{id:hi.Traces,value:"Traces"}],is={[Bo.Go]:"Go",[Bo.Java]:"Java",[Bo.JavaScript]:"Node.js",[Bo.Python]:"Python",[Bo.DotNet]:".NET",[Bo.CSharp]:"C#",[Bo.CPlusPlus]:"C++",[Bo.Php]:"PHP",[Bo.Ruby]:"Ruby",[Bo.Rust]:"Rust",[Bo.Swift]:"Swift",[Bo.Elixir]:"Elixir",[Bo.MySql]:"MySQL",[Bo.Nginx]:"Nginx",[Bo.Postgres]:"PostgreSQL",[Bo.Redis]:"Redis",[Bo.Kafka]:"Kafka",[Bo.Ignored]:"Ignored",[Bo.Unknown]:"Unknown",[Bo.Processing]:"Processing",[Bo.NoContainers]:"No Containers",[Bo.NoRunningPods]:"No Running Pods"},rs=[{id:Bo.Go,value:is[Bo.Go],icon:zi(Bo.Go)},{id:Bo.Java,value:is[Bo.Java],icon:zi(Bo.Java)},{id:Bo.JavaScript,value:is[Bo.JavaScript],icon:zi(Bo.JavaScript)},{id:Bo.Python,value:is[Bo.Python],icon:zi(Bo.Python)},{id:Bo.Php,value:is[Bo.Php],icon:zi(Bo.Php)},{id:Bo.Ruby,value:is[Bo.Ruby],icon:zi(Bo.Ruby)},{id:Bo.Rust,value:is[Bo.Rust],icon:zi(Bo.Rust)},{id:Bo.DotNet,value:is[Bo.DotNet],icon:zi(Bo.DotNet)},{id:Bo.CSharp,value:is[Bo.CSharp],icon:zi(Bo.CSharp)},{id:Bo.CPlusPlus,value:is[Bo.CPlusPlus],icon:zi(Bo.CPlusPlus)},{id:Bo.Swift,value:is[Bo.Swift],icon:zi(Bo.Swift)},{id:Bo.Elixir,value:is[Bo.Elixir],icon:zi(Bo.Elixir)}],ns={[Bo.Go]:{community:[{id:oi.GolangCommunity,value:oi.GolangCommunity,icon:zi(Bo.Go)}],enterprise:[{id:oi.GolangEnterprise,value:oi.GolangEnterprise,icon:zi(Bo.Go)}]},[Bo.JavaScript]:{community:[{id:oi.NodejsCommunity,value:oi.NodejsCommunity,icon:zi(Bo.JavaScript)}],enterprise:[{id:oi.NodejsEnterprise,value:oi.NodejsEnterprise,icon:zi(Bo.JavaScript)}]},[Bo.Python]:{community:[{id:oi.PythonCommunity,value:oi.PythonCommunity,icon:zi(Bo.Python)}],enterprise:[{id:oi.PythonEnterprise,value:oi.PythonEnterprise,icon:zi(Bo.Python)}]},[Bo.Java]:{community:[{id:oi.JavaCommunity,value:oi.JavaCommunity,icon:zi(Bo.Java)}],enterprise:[{id:oi.JavaEnterprise,value:oi.JavaEnterprise,icon:zi(Bo.Java)},{id:oi.JavaEbpfInstrumentations,value:oi.JavaEbpfInstrumentations,icon:zi(Bo.Java)}]},[Bo.DotNet]:{community:[{id:oi.DotNetCommunity,value:oi.DotNetCommunity,icon:zi(Bo.DotNet)}],enterprise:[{id:oi.DotNetEnterprise,value:oi.DotNetEnterprise,icon:zi(Bo.DotNet)}]},[Bo.Ruby]:{community:[{id:oi.RubyCommunity,value:oi.RubyCommunity,icon:zi(Bo.Ruby)}],enterprise:[{id:oi.RubyEnterprise,value:oi.RubyEnterprise,icon:zi(Bo.Ruby)}]},[Bo.Php]:{community:[{id:oi.PhpCommunity,value:oi.PhpCommunity,icon:zi(Bo.Php)}],enterprise:[]},[Bo.CSharp]:{community:[],enterprise:[{id:oi.CPlusPlusEnterprise,value:oi.CPlusPlusEnterprise,icon:zi(Bo.CSharp)}]},[Bo.MySql]:{community:[],enterprise:[{id:oi.MySqlEnterprise,value:oi.MySqlEnterprise,icon:zi(Bo.MySql)}]},[Bo.CPlusPlus]:{community:[],enterprise:[]},[Bo.Rust]:{community:[],enterprise:[]},[Bo.Swift]:{community:[],enterprise:[]},[Bo.Elixir]:{community:[],enterprise:[]},[Bo.Nginx]:{community:[],enterprise:[]},[Bo.Postgres]:{community:[],enterprise:[]},[Bo.Redis]:{community:[],enterprise:[]},[Bo.Kafka]:{community:[],enterprise:[]},[Bo.Ignored]:{community:[],enterprise:[]},[Bo.Unknown]:{community:[],enterprise:[]},[Bo.Processing]:{community:[],enterprise:[]},[Bo.NoContainers]:{community:[],enterprise:[]},[Bo.NoRunningPods]:{community:[],enterprise:[]}},as=6048e5,ss=_t()(Vt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ci.DARK_MODE,storage:"undefined"!=typeof window?Kt(()=>localStorage):void 0})),ls={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:vi},cs=_t(e=>({...ls,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(ls)})),ds=_t(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),ps=_t(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const i=t===jo.Namespace?"namespacesLoading":t===jo.Source?"sourcesLoading":t===jo.Destination?"destinationsLoading":t===jo.Action?"actionsLoading":t===jo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==i&&e({[i]:o})},setEntities:(t,o)=>{const i=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e({[i]:o})},addEntities:(t,o)=>{const i=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e(e=>{const t=[...e[i]],r=new Map;return t.forEach((e,t)=>{r.set(JSON.stringify(ji(e)),t)}),o.forEach(e=>{const o=JSON.stringify(ji(e)),i=r.get(o);void 0!==i?t[i]={...t[i],...e}:(r.set(o,t.length),t.push(e))}),{[i]:t}})},removeEntities:(t,o)=>{const i=t===jo.Namespace?"namespaces":t===jo.Source?"sources":t===jo.Destination?"destinations":t===jo.Action?"actions":t===jo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==i&&e(e=>{const r=new Set;o.forEach(e=>{const o=t===jo.Source?JSON.stringify(ji(e)):String(e);r.add(o)});const n=e[i].filter(e=>{const o=t===jo.Source?JSON.stringify(ji(e)):String(ji(e));return!r.has(o)});return{[i]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),us=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),hs=_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:us})),ms=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),gs=_t((e,t)=>({notifications:[],addNotification:o=>{const i=new Date,r=`${i.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:n}=t();n.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:r,time:i.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var fs;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(fs||(fs={}));const xs=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),ys=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),bs=_t((e,t)=>({progress:{},setProgress:(o,i)=>{const r=t(),n=xs();return"number"==typeof i.total&&(n.total=i.total),"number"==typeof i.current&&(n.current=i.current),Array.isArray(i.list)&&(n.list=i.list),e({progress:{...r.progress,[o]:ys(n)}})},addProgress:(o,i,r)=>{const n=t(),a=xs(o,n.progress);return a.current+=i,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...n.progress,[o]:ys(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),$s=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),vs={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ws=(e,t)=>e.destinationType.type!==t.destinationType.type,Ss=_t(e=>({...vs,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=>ws(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=>ws(e,t))})),clearStore:()=>e(()=>({...vs}))})),Cs={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"}},ks={v2:Cs.v2,darkMode:!0,colors:{...Cs.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:Cs.font_family},Es={v2:Cs.v2,darkMode:!1,colors:{...Cs.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:Cs.font_family},As=e=>e?ks:Es;var Ds=Object.freeze({__proto__:null,baseTheme:Cs,darkModeTheme:ks,getTheme:As,lightModeTheme:Es});Jt('@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 Ts=({children:e})=>{const{darkMode:t}=ss();return Ot(eo,{theme:As(t),children:e})},Ns={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 Is=Object.freeze({__proto__:null,hex:Ns});const _s={in:{left:to`
|
|
218
|
-
from { transform: translateX(-100%); }
|
|
219
|
-
to { transform: translateX(0); }
|
|
220
|
-
`,right:to`
|
|
221
|
-
from { transform: translateX(100%); }
|
|
222
|
-
to { transform: translateX(0); }
|
|
223
|
-
`,top:to`
|
|
224
|
-
from { transform: translateY(-100%); }
|
|
225
|
-
to { transform: translateY(0); }
|
|
226
|
-
`,bottom:to`
|
|
227
|
-
from { transform: translateY(100%); }
|
|
228
|
-
to { transform: translateY(0); }
|
|
229
|
-
`,center:to`
|
|
230
|
-
from { transform: translate(-50%, 100%); }
|
|
231
|
-
to { transform: translate(-50%, -50%); }
|
|
232
|
-
`},out:{left:to`
|
|
233
|
-
from { transform: translateX(0); }
|
|
234
|
-
to { transform: translateX(-100%); }
|
|
235
|
-
`,right:to`
|
|
236
|
-
from { transform: translateX(0); }
|
|
237
|
-
to { transform: translateX(100%); }
|
|
238
|
-
`,top:to`
|
|
239
|
-
from { transform: translateY(0); }
|
|
240
|
-
to { transform: translateY(-100%); }
|
|
241
|
-
`,bottom:to`
|
|
242
|
-
from { transform: translateY(0); }
|
|
243
|
-
to { transform: translateY(100%); }
|
|
244
|
-
`,center:to`
|
|
245
|
-
from { transform: translate(-50%, -50%); }
|
|
246
|
-
to { transform: translate(-50%, 100%); }
|
|
247
|
-
`}},Os={in:to`
|
|
248
|
-
from {
|
|
249
|
-
width: 0%;
|
|
250
|
-
}
|
|
251
|
-
to {
|
|
252
|
-
width: 100%;
|
|
253
|
-
}
|
|
254
|
-
`,out:to`
|
|
255
|
-
from {
|
|
256
|
-
width: 100%;
|
|
257
|
-
}
|
|
258
|
-
to {
|
|
259
|
-
width: 0%;
|
|
260
|
-
}
|
|
261
|
-
`},Rs=to`
|
|
262
|
-
0% {
|
|
263
|
-
transform: scale(1);
|
|
264
|
-
opacity: 1;
|
|
265
|
-
}
|
|
266
|
-
75%, 100% {
|
|
267
|
-
transform: scale(2);
|
|
268
|
-
opacity: 0;
|
|
269
|
-
}
|
|
270
|
-
`,Fs=to`
|
|
271
|
-
0% {
|
|
272
|
-
background-position: -500px 0;
|
|
273
|
-
}
|
|
274
|
-
100% {
|
|
275
|
-
background-position: 500px 0;
|
|
276
|
-
}
|
|
277
|
-
`,zs={in:to`
|
|
278
|
-
from {
|
|
279
|
-
opacity: 0;
|
|
280
|
-
}
|
|
281
|
-
to {
|
|
282
|
-
opacity: 1;
|
|
283
|
-
}
|
|
284
|
-
`,out:to`
|
|
285
|
-
from {
|
|
286
|
-
opacity: 1;
|
|
287
|
-
}
|
|
288
|
-
to {
|
|
289
|
-
opacity: 0;
|
|
290
|
-
}
|
|
291
|
-
`};var Ls=Object.freeze({__proto__:null,fade:zs,ping:Rs,progress:Os,shimmer:Fs,slide:_s});const Ps=Yt.span`
|
|
292
|
-
display: flex;
|
|
293
|
-
align-items: center;
|
|
294
|
-
justify-content: center;
|
|
295
|
-
|
|
296
|
-
min-height: 16px;
|
|
297
|
-
min-width: 16px;
|
|
298
|
-
width: fit-content;
|
|
299
|
-
padding: 4px;
|
|
300
|
-
gap: 2px;
|
|
301
|
-
|
|
302
|
-
border-radius: 50px;
|
|
303
|
-
border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":Ns["050"]):t?"transparent":e.colors.border};
|
|
304
|
-
background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
|
|
305
|
-
color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
|
|
306
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
307
|
-
font-size: 12px;
|
|
308
|
-
white-space: nowrap;
|
|
309
|
-
|
|
310
|
-
${({theme:e,$filled:t,$status:o,$clickable:i})=>i&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+Ns["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Ns["020"]};\n }`}
|
|
311
|
-
`,Ms=({label:e,filled:t,status:o,withIcon:i,onClick:r})=>{const n=Zt(),a=o&&i?tr(o,n):null;return Rt(Ps,{$filled:t,$status:o,$clickable:!!r,onClick:r,children:[!!a&&Ot(a,{}),e]})},Bs=Yt.div`
|
|
312
|
-
height: fit-content;
|
|
313
|
-
border: 2px solid transparent;
|
|
314
|
-
padding: 2px;
|
|
315
|
-
border-radius: 32px;
|
|
316
|
-
background-color: transparent;
|
|
317
|
-
transition: border-color 0.3s ease;
|
|
318
|
-
&:focus-within {
|
|
319
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
320
|
-
}
|
|
321
|
-
`,Us={primary:Qt`
|
|
322
|
-
border: 1px solid ${({theme:e})=>e.text.secondary+Ns["024"]};
|
|
323
|
-
background: ${({theme:e})=>e.colors.secondary};
|
|
324
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
325
|
-
&:hover {
|
|
326
|
-
background: ${({theme:e})=>e.colors.secondary+Ns["080"]};
|
|
327
|
-
}
|
|
328
|
-
&:active {
|
|
329
|
-
background: ${({theme:e})=>e.text.secondary+Ns["060"]};
|
|
330
|
-
}
|
|
331
|
-
`,secondary:Qt`
|
|
332
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
333
|
-
background: ${({theme:e})=>e.colors.primary};
|
|
334
|
-
color: ${({theme:e})=>e.colors.secondary};
|
|
335
|
-
&:hover {
|
|
336
|
-
border: 1px solid ${({theme:e})=>e.text.darker_grey};
|
|
337
|
-
background: ${({theme:e})=>e.colors.secondary+Ns["010"]};
|
|
338
|
-
}
|
|
339
|
-
&:active {
|
|
340
|
-
border: 1px solid ${({theme:e})=>e.text.dark_grey};
|
|
341
|
-
background: ${({theme:e})=>e.colors.secondary+Ns["015"]};
|
|
342
|
-
}
|
|
343
|
-
`,tertiary:Qt`
|
|
344
|
-
border-color: transparent;
|
|
345
|
-
background: transparent;
|
|
346
|
-
&:hover {
|
|
347
|
-
background: ${({theme:e})=>e.colors.dropdown_bg_2+Ns["040"]};
|
|
348
|
-
}
|
|
349
|
-
&:active {
|
|
350
|
-
background: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
351
|
-
}
|
|
352
|
-
`,danger:Qt`
|
|
353
|
-
border-color: transparent;
|
|
354
|
-
background: ${({theme:e})=>e.text.error};
|
|
355
|
-
&:hover {
|
|
356
|
-
background: ${({theme:e})=>e.text.error+Ns["090"]};
|
|
357
|
-
}
|
|
358
|
-
&:active {
|
|
359
|
-
background: ${({theme:e})=>e.text.error+Ns["080"]};
|
|
360
|
-
}
|
|
361
|
-
`,warning:Qt`
|
|
362
|
-
border-color: transparent;
|
|
363
|
-
background: ${({theme:e})=>e.text.warning};
|
|
364
|
-
&:hover {
|
|
365
|
-
background: ${({theme:e})=>e.text.warning+Ns["090"]};
|
|
366
|
-
}
|
|
367
|
-
&:active {
|
|
368
|
-
background: ${({theme:e})=>e.text.warning+Ns["080"]};
|
|
369
|
-
}
|
|
370
|
-
`},js=Yt.button`
|
|
371
|
-
height: 36px;
|
|
372
|
-
border-radius: 32px;
|
|
373
|
-
cursor: pointer;
|
|
374
|
-
display: flex;
|
|
375
|
-
align-items: center;
|
|
376
|
-
justify-content: center;
|
|
377
|
-
gap: 8px;
|
|
378
|
-
padding: 0 12px;
|
|
379
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
380
|
-
text-transform: uppercase;
|
|
381
|
-
text-decoration: underline;
|
|
382
|
-
font-weight: 600;
|
|
383
|
-
outline: none;
|
|
384
|
-
${({$variant:e})=>e&&Us[e]}
|
|
385
|
-
${({disabled:e,$variant:t})=>e&&Qt`
|
|
386
|
-
opacity: 0.5;
|
|
387
|
-
cursor: not-allowed;
|
|
388
|
-
|
|
389
|
-
${"primary"===t?Qt`
|
|
390
|
-
color: ${({theme:e})=>e.colors.secondary};
|
|
391
|
-
background: ${({theme:e})=>e.text.secondary+Ns["010"]};
|
|
392
|
-
&:hover {
|
|
393
|
-
background: ${({theme:e})=>e.text.secondary+Ns["015"]};
|
|
394
|
-
}
|
|
395
|
-
`:""}
|
|
396
|
-
`}
|
|
397
|
-
`,Ws=({children:e,variant:t="primary",onClick:o,...i})=>{const r=Bt(null);return Ot(Bs,{$variant:t,children:Ot(js,{ref:r,$variant:t,onClick:e=>{o&&o(e),r.current?.blur()},...i,children:e})})},Hs=e=>{function t(){return void 0===e?{}:vo(e)}const[o,i]=Pt(t()),[r,n]=Pt({}),a=Ut((e,t)=>{const o={};if(!t||"object"!=typeof t)return e?{...e}:o;for(const[i,r]of Object.entries(e)){const e=i;if(Array.isArray(r)){const i=t[e];Array.isArray(i)&&r.length===i.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(a(e,i[t])).length:e===i[t])||(o[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])o[e]=t[e];else{const i=a(r,t[e]);Object.keys(i).length>0&&(o[e]=i)}else r!==t[e]&&(o[e]=t[e])}return o},[]),s=(e,t)=>0===Object.keys(a(e,t)).length,l=Lt(()=>void 0!==e&&!s(e,o),[e,o]);Mt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(o)&&"{}"!==JSON.stringify(r)&&i(r)},[e,o]);const c=Ut((e,t)=>wo("formData"===e?o:r,t.toString()),[o,r]);return{formData:o,formErrors:r,getFormDiff:a,areFormValuesEqual:s,isFormDirty:l,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?i(o=>({...o,[e]:t})):i(e=>{const i=vo(e);let r=i;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,i})}else o&&i({...o})},handleErrorChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const i=vo(e);let r=i;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,i})}else o&&n({...o})},resetFormData:e=>{i(e||t()),n({})},getNestedValue:c}},Xs={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}},Gs=()=>{const{addNotification:e}=gs(),{formData:t,formErrors:o,handleFormChange:i,handleErrorChange:r,resetFormData:n}=Hs(Xs),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:o,handleFormChange:i,resetFormData:n,validateForm:o=>{const i={};let n=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":pr(t)&&(i[e]=ki.FIELD_IS_REQUIRED)}}),t.type===Do.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){i.fields=ki.FIELD_IS_REQUIRED;break}}return n=!Object.values(i).length,!n&&o?.withAlert&&e({type:Go.Warning,title:o.alertTitle,message:ki.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,i),n},loadFormWithDrawerItem:({type:e,signals:t,name:o,notes:r,disabled:n,fields:s})=>{const l={...vo(Xs),type:e,signals:t,name:o,notes:r,disabled:n};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case To.LabelsAttributes:case To.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case To.CollectContainerAttributes:case To.CollectReplicaSetAttributes:case To.CollectWorkloadId:case To.CollectClusterId:case To.ClusterAttributes:case To.OverwriteExistingValues:case To.AttributeNamesToDelete:case To.Renames:case To.PiiCategories:case To.FallbackSamplingRatio:case To.SamplingPercentage:case To.EndpointsFilters:case To.ServicesNameFilters:case To.AttributeFilters:case To.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),i(void 0,void 0,l)}}},Vs=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Ks=()=>{const{setCurrentModal:e}=ms(),{setDrawerType:t,setDrawerEntityId:o}=ds(),{setActiveNodeType:i,setActiveNodeId:r,activeNodeId:n}=xn();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(n===l?(i(null),r(null)):(i(c),r(l)),p){case jo.Source:case jo.Destination:case jo.Action:case jo.InstrumentationRule:t(p),o(d);break;case Zo.AddSource:e(jo.Source);break;case Zo.AddDestination:e(jo.Destination);break;case Zo.AddAction:e(jo.Action);break;case Zo.AddRule:e(jo.InstrumentationRule)}}}},Js=()=>{const{setDrawerType:e,setDrawerEntityId:t}=ds(),{markAsDismissed:o,markAsSeen:i}=gs();return{onClickNotification:(r,n)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=n||{};if(s&&l)switch(s){case jo.InstrumentationRule:e(jo.InstrumentationRule),t(Hi(l,jo.InstrumentationRule));break;case jo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jo.Source),t(Hi(l,jo.Source));break;case jo.Action:e(jo.Action),t(Hi(l,jo.Action));break;case jo.Destination:case"Destination":e(jo.Destination),t(Hi(l,jo.Destination))}i(a),c&&o(a)}}},qs=()=>{const e=Bt(null),[t,o]=Pt(0),[i,r]=Pt(0);return Mt(()=>{const t=()=>{if(e.current){const{width:t,height:i}=e.current.getBoundingClientRect();o(t),r(i)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:i}};var Ys;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ys||(Ys={}));const Qs=Yt.div`
|
|
398
|
-
width: ${({$size:e})=>1.5*e}px;
|
|
399
|
-
height: ${({$size:e})=>1.5*e}px;
|
|
400
|
-
display: flex;
|
|
401
|
-
align-items: center;
|
|
402
|
-
justify-content: center;
|
|
403
|
-
border-radius: 100%;
|
|
404
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
405
|
-
&:hover {
|
|
406
|
-
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
407
|
-
}
|
|
408
|
-
`,Zs=({icon:e,size:t=Ys.S,onClick:o,disabled:i})=>Ot(Qs,{$size:t,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:Ot(e,{size:t})}),el=({onDone:e}={})=>{const[t,o]=Pt(!1),[i,r]=Pt(-1),n=Ut(async(i,n)=>{if(!t){if(o(!0),void 0!==n&&r(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(i)}catch(e){}else{const e=document.createElement("textarea");e.value=i,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),r(-1)},1e3)}},[t,e]);return{CopyButton:Ut(({value:e,size:o})=>Ot(Zs,{icon:t?st:lt,size:o,onClick:()=>n(e)}),[t]),isCopied:t,copiedIndex:i,clickCopy:n}},tl=e=>{const{addNotification:t}=gs(),{formData:o,handleFormChange:i,formErrors:r,handleErrorChange:n,resetFormData:a}=Hs(e);return{formData:o,formErrors:r,handleFormChange:i,resetFormData:a,validateForm:e=>{const i={};let r=!0;return o.name?ur(o.name)?i.name=void 0:(r=!1,i.name=ki.ILLEGAL_K8S_LABEL):(r=!1,i.name=ki.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Go.Warning,title:e.alertTitle,message:ki.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,i),r},loadFormWithDrawerItem:({name:t})=>{const o={...vo(e),name:t};i(void 0,void 0,o)}}},ol={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},il=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:i}=gs(),{formData:r,formErrors:n,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Hs(ol),[c,d]=Pt([]),[p,u]=Pt([]);Mt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:i,displayName:r,initialValue:n,renderCondition:a}=e;if(o===Ho.Dropdown){const e=lr(i,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:r,value:n,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:o,title:r,value:n,renderCondition:a,...lr(i,{})}})).map(e=>{if(o){const t="string"==typeof o?lr(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),Mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Mt(()=>{if(t&&0===vr(r.exportedSignals).length){const{logs:e,metrics:o,traces:i}=t;a("exportedSignals",{logs:e.supported,metrics:o.supported,traces:i.supported})}},[t,r.exportedSignals]);return{formData:r,formErrors:n,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:i,required:r})=>{r&&!i&&(o=!1,t[e]=ki.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&i({type:Go.Warning,title:e.alertTitle,message:ki.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:i,fields:r})=>{const n={...vo(ol),type:e,name:t,disabled:o,exportedSignals:i,fields:Object.entries(lr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,n),n},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},rl={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[li.HttpRequest]:null,[li.HttpResponse]:null,[li.DbQuery]:null,[li.Messaging]:null},codeAttributes:{[ni.Column]:null,[ni.FilePath]:null,[ni.Function]:null,[ni.LineNumber]:null,[ni.Namespace]:null,[ni.StackTrace]:null},headersCollection:null,customInstrumentations:{[si.Java]:null,[si.Golang]:null}},nl=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:i,resetFormData:r}=Hs(rl);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:i,payloadCollection:r,codeAttributes:n,headersCollection:a,customInstrumentations:s})=>{const l={...vo(rl),ruleName:e,notes:t,disabled:i};r&&(l.payloadCollection={[li.HttpRequest]:r[li.HttpRequest]?{}:null,[li.HttpResponse]:r[li.HttpResponse]?{}:null,[li.DbQuery]:r[li.DbQuery]?{}:null,[li.Messaging]:r[li.Messaging]?{}:null}),n&&(l.codeAttributes={[ni.Column]:n[ni.Column]||null,[ni.FilePath]:n[ni.FilePath]||null,[ni.Function]:n[ni.Function]||null,[ni.LineNumber]:n[ni.LineNumber]||null,[ni.Namespace]:n[ni.Namespace]||null,[ni.StackTrace]:n[ni.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[si.Java]:s[si.Java]||null,[si.Golang]:s[si.Golang]||null}),o(void 0,void 0,l)}}},al=({active:e,key:t,withAltKey:o,withCtrlKey:i,withShiftKey:r,withMetaKey:n},a)=>(Mt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!i||i&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!n||n&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,i,r,n,a]),null),sl=(e,t)=>{Mt(()=>{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])},ll=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o,positionMode:i="local"}={})=>{const r=Bt(null),[n,a]=Pt(!1),[s,l]=Pt({top:0,left:0}),[c,d]=Pt({edge:"top",align:"left"});sl(r,()=>{n&&(a(!1),o?.())});return{popupRef:r,popupOpen:n,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(o,n)=>{if("local"===i)return void l({top:n,left:o});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,p=r.current?.clientHeight||e,u=o/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:n<s/2?"top":"bottom",align:h});let m=n,g=o;if(m>=s/2&&(m+=-p),"center"===h){g=o-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=o-c);l({top:m,left:g})}}},cl=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?lr(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),dl={otelServiceName:"",currentStreamName:""},pl=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:i,resetFormData:r}=Hs(dl);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:r,validateForm:()=>(i(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const i={...vo(dl),otelServiceName:e||t||""};o(void 0,void 0,i)}}},ul=Wt({platformType:Po.K8s,tier:Lo.Community,version:"v0.0.0"}),hl=({children:e,platformType:t,tier:o,version:i})=>{const r=Lt(()=>({platformType:t,tier:o,version:i}),[t,o,i]);return Ot(ul.Provider,{value:r,children:e})},ml=(e,t)=>!t||Nr(e)>=Nr(t),gl=e=>{const t=jt(ul),o=ml(t.version,e),i=t.platformType===Po.Vm;return{...t,isVersionSupported:o,isVm:i}},fl=Wt({formType:void 0}),xl=({children:e,formType:t})=>{const o=Lt(()=>({formType:t}),[t]);return Ot(fl.Provider,{value:o,children:e})},yl=()=>jt(fl),bl=new Set([ti.StaticPod]),$l=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}},vl=(e,t,o)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(o.showOnlySelected){const{isAllSourced:t,isSomeSourced:o,isFutureApps:i}=$l(e);return t||o||i}return!0},wl=(e,t,o)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!o.showOnlySelected||e.selected),Sl=(e,t,o)=>{const i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,n=e.selected&&(!i||r)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:n,numberOfInstances:e.numberOfInstances}},Cl=(e,t,o)=>({...Sl(e,t),currentStreamName:t}),kl=(e,t,o)=>{const i="boolean"==typeof o,r=e.dataStreamNames?.includes(t),n=(i?o:e.selected)||!1;return{namespace:e.name,selected:!(!r&&!i)&&n,currentStreamName:t}},El=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:o}=gl(),i=e=>o!==Lo.Onprem&&bl.has(e),{selectedStreamName:r}=cs(),{namespaces:n,addEntities:a}=ps(),[s,l]=Pt(!1),[c,d]=Pt({}),[p,u]=Pt(!1),[h,m]=Pt(""),[g,f]=Pt({}),[x,y]=Pt({}),[b,$]=Pt(""),[v,w]=Pt(jo.Source),[S,C]=Pt(!1),[k,E]=Pt(!1),A=Lt(()=>{const e=(e,t)=>!b||v!==t||v===t&&e.toLowerCase().includes(b),t={};return Object.entries(x).filter(([t])=>e(t,jo.Namespace)).forEach(([o,i])=>{const r=i.filter(t=>{return e(t.name,jo.Source)&&(o=t,!S||o.selected)&&(e=>!k||(e.numberOfInstances||0)>0)(t);var o});(!b||b&&(v===jo.Namespace||v===jo.Source&&r.length))&&(t[o]=r)}),t},[x,b,v,S,k]);return Mt(()=>{(async()=>{l(!0);const e=await t();l(!1);const o=e.data;if(!o?.length)return;const i=[...o].sort((e,t)=>e.name.localeCompare(t.name)),n={},s={},c={};for(const e of i){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));n[e.name]=t.map(e=>Sl(e,r)),s[e.name]=t.map(e=>Cl(e,r)),c[e.name]=kl(e,r)}a(jo.Namespace,o.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=Ss.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const o=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==o&&(s[e][o]={...s[e][o],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(n),y(s),f(c)})()},[r]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(x).forEach(([t,o])=>{o.forEach(o=>{const i=c[t]?.find(e=>e.name===o.name&&e.kind===o.kind);i?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,o])=>{const i=n?.find(e=>e.name===t);(o.selected&&!i?.dataStreamNames?.includes(r)||!o.selected&&i?.dataStreamNames?.includes(r))&&(e[t]=o)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(n.find(t=>t.name===e)){const o="boolean"==typeof t;m(t=>t!==e||o?e:""),o&&(y(o=>({...o,[e]:(o[e]||[]).map(e=>t&&i(e.kind)?e:{...e,selected:t,currentStreamName:r})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),y(t=>{const o={};for(const[n,a]of Object.entries(t))o[n]=a.map(t=>e&&i(t.kind)?t:{...t,selected:e,currentStreamName:r});return o})},selectedSources:x,onSelectSource:(e,t)=>{const o=t||h;if(!o)return;if(i(e.kind))return;const n=[...x[o]||[]],a=n.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...n[a],selected:!n[a].selected,currentStreamName:r};n[a]=e}else n.push({...e,selected:!0,currentStreamName:r});y(e=>({...e,[o]:n})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const o=t||h;if(!o)return;const i=n.find(e=>e.name===t);i&&f(t=>({...t,[o]:kl(i,r,e)}))},searchText:b,setSearchText:$,searchBy:v,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:C,showRunningOnly:k,setShowRunningOnly:E}};try{Gt.addDefaultLocale(qt)}catch(e){}const Al=()=>{const e=Bt(new Gt(qt.locale));return{formatTimeAgo:Ut(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Dl=Yt.div`
|
|
409
|
-
position: fixed;
|
|
410
|
-
top: 50%;
|
|
411
|
-
left: 50%;
|
|
412
|
-
transform: translate(-50%, -50%);
|
|
413
|
-
z-index: 1000;
|
|
414
|
-
width: fit-content;
|
|
415
|
-
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
416
|
-
border: ${({theme:e})=>`1px solid ${e.colors.border}`};
|
|
417
|
-
border-radius: 40px;
|
|
418
|
-
box-shadow: ${({theme:e})=>{const t=e.colors.primary+Ns["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}`}};
|
|
419
|
-
animation-name: ${_s.in.center};
|
|
420
|
-
`,Tl=Yt.div`
|
|
421
|
-
display: flex;
|
|
422
|
-
justify-content: space-between;
|
|
423
|
-
align-items: center;
|
|
424
|
-
height: 80px;
|
|
425
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
426
|
-
padding: 0 24px;
|
|
427
|
-
`,Nl=Yt.div`
|
|
428
|
-
cursor: pointer;
|
|
429
|
-
display: flex;
|
|
430
|
-
align-items: center;
|
|
431
|
-
gap: 8px;
|
|
432
|
-
`,Il=Yt.div`
|
|
433
|
-
display: flex;
|
|
434
|
-
align-items: center;
|
|
435
|
-
gap: 8px;
|
|
436
|
-
`,_l=Yt(zr)`
|
|
437
|
-
min-width: 350px;
|
|
438
|
-
min-height: 150px;
|
|
439
|
-
`,Ol=Yt.div`
|
|
440
|
-
position: absolute;
|
|
441
|
-
left: 50%;
|
|
442
|
-
transform: translateX(-50%);
|
|
443
|
-
display: flex;
|
|
444
|
-
align-items: center;
|
|
445
|
-
justify-content: center;
|
|
446
|
-
width: 100%;
|
|
447
|
-
pointer-events: none;
|
|
448
|
-
`,Rl=Yt(Yr)`
|
|
449
|
-
text-transform: uppercase;
|
|
450
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
451
|
-
pointer-events: auto;
|
|
452
|
-
`,Fl=Yt(Yr)`
|
|
453
|
-
text-transform: uppercase;
|
|
454
|
-
font-weight: 500;
|
|
455
|
-
font-size: 14px;
|
|
456
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
457
|
-
text-decoration: underline;
|
|
458
|
-
cursor: pointer;
|
|
459
|
-
`,zl=({isOpen:e,noOverlay:t,header:o,actionComponent:i,onClose:r,children:n,closeOnEscape:a=!0})=>(al({key:"Escape",active:e&&a},()=>r()),Vs(e),e?co.createPortal(Rt(Ft,{children:[Ot(Pr,{hidden:!e,onClick:r,style:{opacity:t?0:1}}),Rt(Dl,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:""),children:[o&&Rt(Tl,{children:[Rt(Nl,{onClick:r,children:[Ot(ct,{}),Ot(Fl,{children:"Cancel"})]}),Ot(Ol,{children:Ot(Rl,{children:o.title})}),Ot(Il,{children:i})]}),Ot(_l,{children:n})]})]}),document.body):null),Ll=Yt.div`
|
|
460
|
-
width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
|
|
461
|
-
height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
|
|
462
|
-
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
463
|
-
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Ns["050"]};
|
|
464
|
-
opacity: ${({$opacity:e})=>e||1};
|
|
465
|
-
`,Pl=({orientation:e="horizontal",type:t,thickness:o=1,length:i,margin:r,opacity:n})=>Ot(Ll,{$orientation:e,$type:t,$thickness:o,$length:i,$margin:r,$opacity:n}),Ml=Yt.div`
|
|
466
|
-
/* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
|
|
467
|
-
position: ${({$asPortal:e})=>e?"fixed":"absolute"};
|
|
468
|
-
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
469
|
-
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
470
|
-
${({$left:e})=>void 0!==e&&`left: ${e}px;`}
|
|
471
|
-
${({$right:e})=>void 0!==e&&`right: ${e}px;`}
|
|
472
|
-
z-index: 9999;
|
|
473
|
-
|
|
474
|
-
background-color: ${({theme:e})=>e.colors.info};
|
|
475
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
476
|
-
border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
|
|
477
|
-
max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
|
|
478
|
-
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
479
|
-
|
|
480
|
-
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
481
|
-
`,Bl=Yt.div`
|
|
482
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
483
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
484
|
-
`,Ul=Yt.div`
|
|
485
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
486
|
-
`,jl=Yt.div`
|
|
487
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
488
|
-
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
489
|
-
`,Wl=Ht(({isOpen:e,asPortal:t,...o},i)=>{const r=Lt(()=>{const{children:e,top:r,bottom:n,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return Rt(Ml,{ref:i,$top:r,$bottom:n,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Ot(Bl,{$padding:c,children:u}),Ot(Ul,{$padding:c,children:e}),h&&Ot(jl,{$padding:c,children:h})]})},[i,o,t]);return e?t?co.createPortal(r,document.body):r:null});Wl.displayName=Wl.name;const Hl=Yt.div`
|
|
490
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
-
position: relative;
|
|
492
|
-
display: flex;
|
|
493
|
-
align-items: center;
|
|
494
|
-
gap: 4px;
|
|
495
|
-
cursor: help;
|
|
496
|
-
${({$ellipsis:e})=>e&&"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}
|
|
497
|
-
`,Xl=Yt.div`
|
|
498
|
-
display: flex;
|
|
499
|
-
flex-direction: column;
|
|
500
|
-
align-items: flex-start;
|
|
501
|
-
gap: 8px;
|
|
502
|
-
width: 100%;
|
|
503
|
-
`,Gl=Yt.div`
|
|
504
|
-
display: flex;
|
|
505
|
-
width: 100%;
|
|
506
|
-
flex-shrink: 0;
|
|
507
|
-
box-sizing: border-box;
|
|
508
|
-
line-height: 0;
|
|
509
|
-
|
|
510
|
-
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
511
|
-
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
512
|
-
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
513
|
-
`,Vl=Yt.div`
|
|
514
|
-
width: 0;
|
|
515
|
-
height: 0;
|
|
516
|
-
border-style: solid;
|
|
517
|
-
border-left: 6.5px solid transparent;
|
|
518
|
-
border-right: 6.5px solid transparent;
|
|
519
|
-
flex-shrink: 0;
|
|
520
|
-
|
|
521
|
-
${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
|
|
522
|
-
`,Kl=Yt.div`
|
|
523
|
-
display: flex;
|
|
524
|
-
flex-direction: column;
|
|
525
|
-
align-items: stretch;
|
|
526
|
-
min-width: 0;
|
|
527
|
-
`,Jl=Yt.div`
|
|
528
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
529
|
-
border-radius: 4px;
|
|
530
|
-
padding: 8px;
|
|
531
|
-
box-sizing: border-box;
|
|
532
|
-
min-width: 0;
|
|
533
|
-
`,ql=({withIcon:e,titleIcon:t,title:o,text:i,timestamp:r,children:n,fullWidth:a=!1,keepAlive:s=!1,ellipsis:l=!1})=>{const c=Zt(),{popupRef:d,popupOpen:p,setPopupOpen:u,popupPosition:h,arrowPlacement:m,handlePosition:g}=ll({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(i?.length||0),300)}),f=Lt(()=>!!Kr(i||"")?.length,[i]),x=e=>{const{type:t,clientX:o,clientY:i}=e;f?g(h.left||o,h.top||i):g(o,i),u("mouseleave"!==t)};return i||s?Rt(Hl,{$fullWidth:a,$ellipsis:l,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[n,e&&Ot(je,{fill:c.v2.colors.white[500]}),Ot(Wl,{ref:d,isOpen:p&&!!i,top:h.top,left:h.left,asPortal:!0,withPointerEvents:f,onMouseEnter:f?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:Rt(Kl,{children:["top"===m.edge&&Ot(Gl,{$align:m.align,children:Ot(Vl,{$pointsUp:!0})}),Ot(Jl,{children:Rt(Xl,{children:[(!!t||!!o)&&Rt(Rr,{$gap:4,style:{alignItems:"center"},children:[t&&Ot(t,{size:16},"icon"),o&&Ot(Gr,{size:Hr.XS,children:o},"title")]}),!!i&&Ot(Gr,{size:Hr.XXXS,children:i}),!!r&&Ot(Gr,{size:Hr.XXXS,color:c.v2.colors.silver[200],children:new Date(r).toLocaleString()})]})}),"bottom"===m.edge&&Ot(Gl,{$align:m.align,children:Ot(Vl,{$pointsUp:!1})})]})})]}):Ot(Ft,{children:n})},Yl=Yt.button`
|
|
534
|
-
position: relative;
|
|
535
|
-
width: ${({$size:e})=>e}px;
|
|
536
|
-
height: ${({$size:e})=>e}px;
|
|
537
|
-
border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
|
|
538
|
-
border-radius: 100%;
|
|
539
|
-
background-color: ${({$backgroundColor:e})=>e||"transparent"};
|
|
540
|
-
display: flex;
|
|
541
|
-
align-items: center;
|
|
542
|
-
justify-content: center;
|
|
543
|
-
cursor: pointer;
|
|
544
|
-
&:hover {
|
|
545
|
-
background-color: ${({theme:e,$backgroundColor:t})=>t?t+Ns["070"]:e.colors.dropdown_bg_2};
|
|
546
|
-
}
|
|
547
|
-
`,Ql=Yt.div`
|
|
548
|
-
position: absolute;
|
|
549
|
-
top: ${({$size:e})=>e/5}px;
|
|
550
|
-
right: ${({$size:e})=>e/5}px;
|
|
551
|
-
width: 6px;
|
|
552
|
-
height: 6px;
|
|
553
|
-
border-radius: 100%;
|
|
554
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
555
|
-
|
|
556
|
-
&::after {
|
|
557
|
-
content: '';
|
|
558
|
-
position: absolute;
|
|
559
|
-
inset: 0;
|
|
560
|
-
border-radius: 100%;
|
|
561
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
562
|
-
animation: ${Rs} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
563
|
-
}
|
|
564
|
-
`,Zl=({children:e,onClick:t,tooltip:o,size:i=36,withPing:r,pingColor:n,withBorder:a,backgroundColor:s,...l})=>Ot(ql,{text:o,children:Rt(Yl,{$size:i,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[r&&Ot(Ql,{$size:i,$color:n}),e]})}),ec=Yt.div`
|
|
565
|
-
position: relative;
|
|
566
|
-
&.animated {
|
|
567
|
-
overflow: hidden;
|
|
568
|
-
padding-bottom: 1px;
|
|
569
|
-
border-radius: 32px;
|
|
570
|
-
animation: ${({$isLeaving:e})=>e?_s.out.bottom:_s.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
571
|
-
}
|
|
572
|
-
`,tc=Yt.div`
|
|
573
|
-
position: absolute;
|
|
574
|
-
bottom: -1px;
|
|
575
|
-
left: 0;
|
|
576
|
-
z-index: -1;
|
|
577
|
-
width: 100%;
|
|
578
|
-
height: 100%;
|
|
579
|
-
border-radius: 32px;
|
|
580
|
-
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
581
|
-
animation: ${Os.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
582
|
-
`,oc=Yt.div`
|
|
583
|
-
display: flex;
|
|
584
|
-
align-items: center;
|
|
585
|
-
flex: 1;
|
|
586
|
-
gap: 8px;
|
|
587
|
-
padding: 0 12px;
|
|
588
|
-
border-radius: 32px;
|
|
589
|
-
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
590
|
-
`,ic=Yt.div`
|
|
591
|
-
display: flex;
|
|
592
|
-
align-items: center;
|
|
593
|
-
margin: 0 auto 0 0;
|
|
594
|
-
padding: 8px 0;
|
|
595
|
-
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
596
|
-
min-height: 12px;
|
|
597
|
-
`,rc=Yt(Yr)`
|
|
598
|
-
font-size: 14px;
|
|
599
|
-
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
600
|
-
`,nc=Yt(Yr)`
|
|
601
|
-
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
602
|
-
font-size: 12px;
|
|
603
|
-
`,ac=Yt(Rr)``,sc=Yt(Yr)`
|
|
604
|
-
text-transform: uppercase;
|
|
605
|
-
text-decoration: underline;
|
|
606
|
-
font-size: 12px;
|
|
607
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
608
|
-
white-space: nowrap;
|
|
609
|
-
cursor: pointer;
|
|
610
|
-
&:hover {
|
|
611
|
-
transform: scale(1.1);
|
|
612
|
-
transition: transform 0.3s;
|
|
613
|
-
}
|
|
614
|
-
`,lc=({type:e,icon:t,title:o,message:i,action:r,onClose:n,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Zt(),[d,p]=Pt(!1),u=Bt(null),h=Bt(null),m=e=>{n&&(p(!0),n({asSeen:e?.asSeen}))};Mt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||tr(e,c);return Rt(ec,{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:[Rt(oc,{"data-id":"toast",$type:e,style:l,children:[Ot(g,{fill:c.text[e]}),Rt(ic,{$withAction:!!r,$overrideMaxWidth:s,children:[o&&Ot(rc,{$type:e,children:o}),o&&i&&Ot(Pl,{orientation:"vertical",type:e}),i&&Ot(nc,{$type:e,children:i})]}),(!!r||!!n)&&Rt(ac,{children:[r&&Ot(sc,{"data-id":"toast-action",onClick:r.onClick,children:r.label}),n&&Ot(Zl,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Ot(ct,{size:12})})]})]}),n&&Ot(tc,{ref:h,$duration:a,$type:e})]})},cc=Yt.div`
|
|
615
|
-
padding: 24px 32px;
|
|
616
|
-
`,dc=Yt.div`
|
|
617
|
-
padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
|
|
618
|
-
`,pc=Yt(Yr)`
|
|
619
|
-
font-size: 20px;
|
|
620
|
-
line-height: 28px;
|
|
621
|
-
`,uc=Yt(Yr)`
|
|
622
|
-
color: ${({theme:e})=>e.text.grey};
|
|
623
|
-
width: 416px;
|
|
624
|
-
font-style: normal;
|
|
625
|
-
font-weight: 300;
|
|
626
|
-
line-height: 24px;
|
|
627
|
-
`,hc=Yt.div`
|
|
628
|
-
display: flex;
|
|
629
|
-
justify-content: space-between;
|
|
630
|
-
gap: 12px;
|
|
631
|
-
`,mc=Yt(Ws)`
|
|
632
|
-
width: 250px;
|
|
633
|
-
`,gc=Yt.div`
|
|
634
|
-
margin-bottom: 12px;
|
|
635
|
-
`,fc=({isOpen:e,noOverlay:t,title:o="",description:i="",note:r,approveButton:n,denyButton:a,closeOnEscape:s=!0})=>{al({key:"Enter",active:e&&s},()=>n.onClick());const l=()=>a.onClick();return Ot(zl,{isOpen:e,noOverlay:t,onClose:l,children:Rt(cc,{children:[Ot(pc,{children:o}),Ot(dc,{$withNote:!!r,children:Ot(uc,{children:i})}),!!r&&Ot(gc,{children:Ot(lc,{type:r.type,title:r.title,message:r.message})}),Rt(hc,{children:[Ot(mc,{"data-id":"approve",variant:n.variant||"primary",onClick:()=>n.onClick(),children:n.text}),Ot(mc,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},xc=({isOpen:e,noOverlay:t,name:o,onApprove:i,onDeny:r})=>Ot(fc,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Go.Warning,onClick:i},denyButton:{text:"Go Back",onClick:r}}),yc=Yt.div`
|
|
636
|
-
display: flex;
|
|
637
|
-
align-items: center;
|
|
638
|
-
gap: 8px;
|
|
639
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
640
|
-
opacity: ${({$disabled:e})=>e?.6:1};
|
|
641
|
-
`,bc=Yt.div`
|
|
642
|
-
width: 18px;
|
|
643
|
-
height: 18px;
|
|
644
|
-
border-radius: 6px;
|
|
645
|
-
border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e||t?"transparent":o.colors.secondary};
|
|
646
|
-
display: flex;
|
|
647
|
-
align-items: center;
|
|
648
|
-
justify-content: center;
|
|
649
|
-
background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+Ns["020"]};
|
|
650
|
-
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
651
|
-
transition: border 0.3s;
|
|
652
|
-
&:hover {
|
|
653
|
-
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
654
|
-
}
|
|
655
|
-
`,$c=({title:e,titleColor:t,tooltip:o,value:i=!1,partiallyChecked:r=!1,onChange:n,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Zt(),[p,u]=Pt(i);Mt(()=>u(i),[i]);return Rt(Fr,{children:[Rt(yc,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),n?n(!!r||!p):u(e=>!!r||!e))},style:s,children:[Ot(bc,{$isChecked:p,$isPartiallyChecked:r,$disabled:a,children:r?Ot(dt,{fill:d.text.white}):p?Ot(st,{fill:d.text.white}):null}),e&&Ot(ql,{text:o,withIcon:!0,children:Ot(Yr,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&Ot(en,{children:l})]})},vc=Yt(Rr)`
|
|
656
|
-
gap: 0;
|
|
657
|
-
`,wc=Yt.button`
|
|
658
|
-
padding: 4px 8px;
|
|
659
|
-
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
660
|
-
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
661
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
662
|
-
display: flex;
|
|
663
|
-
align-items: center;
|
|
664
|
-
justify-content: center;
|
|
665
|
-
cursor: pointer;
|
|
666
|
-
&:hover {
|
|
667
|
-
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
668
|
-
}
|
|
669
|
-
`,Sc=({isPrettyMode:e,setIsPrettyMode:t})=>Rt(vc,{children:[Ot(wc,{$position:"left",$selected:e,onClick:()=>t(!0),children:Ot(pt,{})}),Ot(wc,{$position:"right",$selected:!e,onClick:()=>t(!1),children:Ot(ut,{})})]}),Cc=Yt.table`
|
|
670
|
-
border-collapse: collapse;
|
|
671
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
672
|
-
`,kc=Yt.tbody``,Ec=Yt.tr`
|
|
673
|
-
td:first-child {
|
|
674
|
-
padding-left: 0 !important;
|
|
675
|
-
}
|
|
676
|
-
td:last-child {
|
|
677
|
-
padding-right: 0 !important;
|
|
678
|
-
}
|
|
679
|
-
`,Ac=Yt.td`
|
|
680
|
-
vertical-align: top;
|
|
681
|
-
padding: 4px 6px;
|
|
682
|
-
`,Dc=Yt(Yr)`
|
|
683
|
-
white-space: nowrap;
|
|
684
|
-
`,Tc=Yt.span`
|
|
685
|
-
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
686
|
-
overflow-wrap: break-word;
|
|
687
|
-
word-break: break-word;
|
|
688
|
-
word-wrap: break-word;
|
|
689
|
-
/* Fallback for older browsers */
|
|
690
|
-
-ms-word-break: break-all;
|
|
691
|
-
font-size: 12px;
|
|
692
|
-
`,Nc=({language:e,code:t,theme:o,flatten:i,pretty:r})=>{const{darkMode:n}=Zt(),a=o?ho[o]:n?ho.palenight:ho.vsLight;let s="";if("json"===e){const e=lr(t,{}),o=Er(e);s=Ar(i?Ti(o):o)}else s=t;return r&&"json"===e?Ot(Ic,{darkMode:n,str:s}):Ot(uo,{theme:a||(n?ho.palenight:ho.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:o})=>Ot("pre",{children:o.map((o,i)=>Ot("div",{...e({line:o}),children:o.map((e,o)=>Ot(Tc,{...t({token:e})},`line-${i}-token-${o}`))},`line-${i}`))})})},Ic=({darkMode:e,str:t})=>{const o=Zt(),i=(e,t)=>{const i=new Array(e).fill(e=>Rt(Ec,{...e,children:[Ot(Ac,{}),Ot(Ac,{})]}));return Ot(zt,{children:i.map((e,i)=>Ot(e,{style:0===i?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${t}-${i}`))})};return Ot(uo,{theme:e?ho.palenight:ho.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:r})=>Ot(Cc,{children:Ot(kc,{children:r.map((r,n)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],i=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(i.split("@")[0])&&(o[0]="boolean"),i.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:i}})})(r),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?Rt(zt,{children:[i(2,n),Rt(Ec,{...s,children:[Ot(Ac,{children:Ot(Dc,{children:a[0].content})}),Ot(Ac,{})]})]},`line-${n}`):2===a.length?Ot(Ec,{...s,children:a.map((e,i)=>{const{text:r,components:a}=((e,t)=>{const[o,...i]=e.split("@");return{text:o,components:i?.map((e,o)=>{if(!e.includes("="))return null;const[i,r]=e.split("=");switch(i){case"tooltip":return Ot(ql,{withIcon:!0,text:r},`${i}-${r}-${o}`);case"status":if("none"===r)return Ot("div",{style:{width:16,height:16}},`${i}-${r}-${o}`);let e=tr(r,t);return e||(e=tr(Go.Warning,t)),Ot(e,{},`${i}-${r}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===i;return Ot(Ac,{children:Rt(Rr,{children:[Ot(Rr,{children:a}),Ot(Tc,{$noWrap:s,...t({token:e}),children:r})]})},`line-${n}-token-${i}`)})},`line-${n}`):(a.length,null)})})})})},_c={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 Oc(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const i=(e.match(/[^0-9]*$/)||"").toString();return _c[i]?{value:t,unit:i}:{value:t,unit:"px"}}function Rc(e){const t=Oc(e);return`${t.value}${t.unit}`}const Fc=((e,t,o)=>{const i=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return i;const r=document.createElement("style");document.head.appendChild(r);const n=r.sheet,a=`\n @keyframes ${i} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),i})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),zc=({loading:e=!0,color:t,scale:o=1,speedMultiplier:i=1,cssOverride:r={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=Oc(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...r},m=(e,t)=>({position:"absolute",width:Rc(1.5),height:Rc(4),borderRadius:Rc(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Fc} ${1.2/i}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},Lc=Yt.div`
|
|
693
|
-
margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
|
|
694
|
-
display: flex;
|
|
695
|
-
align-items: center;
|
|
696
|
-
justify-content: center;
|
|
697
|
-
`,Pc=({extend:e,size:t=14,align:o="center"})=>Ot(Lc,{$align:o,children:Ot(ht,{size:t,rotate:e?180:0})}),Mc=Yt.div`
|
|
698
|
-
border-radius: 24px;
|
|
699
|
-
background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+Ns["010"]:t===Go.Warning?e.text.warning+Ns["010"]:e.colors.secondary+Ns["005"]};
|
|
700
|
-
&:hover {
|
|
701
|
-
background-color: ${({theme:e,$status:t})=>t===Go.Error?e.text.error+Ns["020"]:t===Go.Warning?e.text.warning+Ns["020"]:e.colors.secondary+Ns["010"]};
|
|
702
|
-
}
|
|
703
|
-
cursor: pointer;
|
|
704
|
-
transition: background 0.3s;
|
|
705
|
-
`,Bc=Yt.div`
|
|
706
|
-
display: flex;
|
|
707
|
-
align-items: center;
|
|
708
|
-
gap: 12px;
|
|
709
|
-
padding: 12px 18px;
|
|
710
|
-
`,Uc=Yt.div`
|
|
711
|
-
display: flex;
|
|
712
|
-
flex-direction: column;
|
|
713
|
-
gap: 8px;
|
|
714
|
-
padding: 6px 18px 12px 18px;
|
|
715
|
-
`,jc=Yt.div`
|
|
716
|
-
display: flex;
|
|
717
|
-
align-items: center;
|
|
718
|
-
gap: 12px;
|
|
719
|
-
`,Wc=Yt(Yr)`
|
|
720
|
-
white-space: nowrap;
|
|
721
|
-
`,Hc=Yt(Fr)`
|
|
722
|
-
width: 16px;
|
|
723
|
-
`,Xc=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:i="Everything Successful"})=>{const r=Zt(),[n,a]=Pt(!1),s=Lt(()=>br(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=Lt(()=>Ri(s),[s]);Mt(()=>{a(c||p||u)},[c,p,u]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Go.Error:p?Go.Warning:u?Go.Info:Go.Success,f=tr(g,r),x=c?t:p||u?o:m?"Loading...":i,y=c?r.text.error:p?r.text.warning:r.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,$=c?r.text.error_secondary:p?r.text.warning_secondary:r.text.info_secondary,v=Ut(()=>a(e=>!e),[]);return Rt(Mc,{onClick:v,$status:g,children:[Rt(Bc,{children:[Ot(m?zc:f,{}),Ot(Yr,{color:y,size:14,children:x}),Ot(Yr,{color:$,size:12,family:"secondary",children:b}),Ot(Pc,{extend:n,align:"right"})]}),n&&Ot(Uc,{children:s.map(({status:e,type:t,reason:o,message:i},n)=>{const a=e===Ko.Loading?()=>Ot(zc,{scale:.8}):e===Ko.Disabled?tr(Go.Info,r):tr(e,r),s=e===Ko.Disabled?r.text.info:e===Go.Error?r.text.error:e===Go.Warning?r.text.warning:r.text.info,l=e===Ko.Disabled?r.text.info_secondary:e===Go.Error?r.text.error_secondary:e===Go.Warning?r.text.warning_secondary:r.text.info_secondary;return Rt(jc,{children:[Ot(Hc,{children:Ot(a,{})}),Rt(Yr,{color:s,size:12,children:[Ot(Wc,{color:l,size:12,weight:700,children:t}),i||o]})]},`condition-${n}`)})})]})},Gc=Yt.div`
|
|
724
|
-
display: flex;
|
|
725
|
-
align-items: center;
|
|
726
|
-
gap: ${({$size:e})=>e/3}px;
|
|
727
|
-
padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
|
|
728
|
-
width: ${({$width:e})=>e||"fit-content"};
|
|
729
|
-
border-radius: 360px;
|
|
730
|
-
border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+Ns["050"]}`:"none"};
|
|
731
|
-
background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+Ns["030"]} 100%)`:"transparent"};
|
|
732
|
-
`,Vc=Yt.div`
|
|
733
|
-
display: flex;
|
|
734
|
-
align-items: center;
|
|
735
|
-
`,Kc=Yt.div`
|
|
736
|
-
display: flex;
|
|
737
|
-
align-items: center;
|
|
738
|
-
`,Jc=({title:e,subtitle:t,status:o=Go.Default,forceIcon:i,withIcon:r,withBorder:n,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Zt(),u=[Ko.Loading,Ko.Disabled].includes(o)?Go.Info:o,h=i?()=>Ot(i,{size:l+2,fill:p.text[u]}):o===Ko.Loading?()=>Ot(zc,{scale:.8}):()=>tr(u,p)?.({size:l+2});return Rt(Gc,{$status:u,$width:s,$size:l,$withIcon:r,$withBorder:n,$withBackground:a,children:[r&&Ot(Vc,{children:Ot(h,{})}),(!!e||!!t)&&Rt(Kc,{children:[!!e&&Ot(Yr,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&Ot(Pl,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&Ot(Yr,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},qc=({label:e,onClick:t,variant:o="tertiary",textProps:i,...r})=>{const n=Zt();return Rt(Ws,{onClick:t,variant:o,...r,children:[Ot(mt,{fill:"primary"===o?n.text.primary:n.text.info}),Ot(Yr,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?n.text.primary:void 0,...i,children:e||Ai.ADD})]})},Yc=Yt(Rr)`
|
|
739
|
-
width: 100%;
|
|
740
|
-
border-radius: 8px;
|
|
741
|
-
background-color: ${({theme:e})=>e.colors.secondary+Ns["010"]};
|
|
742
|
-
pre {
|
|
743
|
-
color: ${({theme:e})=>e.text.default};
|
|
744
|
-
font-size: 12px;
|
|
745
|
-
overflow-x: auto;
|
|
746
|
-
width: 100%;
|
|
747
|
-
padding-left: 12px;
|
|
748
|
-
}
|
|
749
|
-
`,Qc=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:i}=el();return Rt(Yc,{children:[Ot("pre",{children:e}),Ot(Zl,{onClick:i=>{i.stopPropagation(),o(e),t?.()},tooltip:i?"Copied!":"Copy",children:Ot(i?st:lt,{})})]})},Zc=({label:e,onClick:t,variant:o="tertiary",...i})=>{const r=Zt();return Rt(Ws,{onClick:t,variant:o,...i,children:[Ot(gt,{fill:"primary"===o?r.text.primary:r.text.info}),Ot(Yr,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?r.text.primary:void 0,children:e||Ai.EDIT})]})},ed=({onClick:e})=>Ot(lc,{type:Go.Default,icon:Ve,message:Ei.QUICK_BACK_TO_SUMMARY,action:{label:Ei.GO_TO_SUMMARY,onClick:e}}),td=Yt(Yr)`
|
|
750
|
-
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
751
|
-
white-space: nowrap;
|
|
752
|
-
overflow-x: auto;
|
|
753
|
-
|
|
754
|
-
&::after {
|
|
755
|
-
// This is to prevent the "browser default tooltip" from appearing when the title is too long
|
|
756
|
-
content: '';
|
|
757
|
-
display: block;
|
|
758
|
-
}
|
|
759
|
-
`,od=({maxWidth:e,text:t,textSize:o=16,textColor:i})=>{const[r,n]=Pt(!1),a=Bt(null);return Mt(()=>{if(a.current){const{clientWidth:t}=a.current;n(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),Rt(Rr,{$gap:0,children:[t&&Ot(ql,{text:r?t:void 0,children:Ot(td,{ref:a,$maxWidth:e-o,size:o,color:i,children:t})}),r&&Ot(td,{$maxWidth:o,size:o,color:i,children:"..."})]})},id=({src:e="",alt:t="",size:o=16})=>{const[i,r]=Pt(!1);return e&&!i?Ot("img",{src:e,alt:t,width:o,height:o,onError:()=>r(!0)}):Ot(s,{size:o})},rd=Yt.div`
|
|
760
|
-
display: flex;
|
|
761
|
-
align-items: center;
|
|
762
|
-
justify-content: center;
|
|
763
|
-
width: ${({$size:e})=>e}px;
|
|
764
|
-
height: ${({$size:e})=>e}px;
|
|
765
|
-
border-radius: 8px;
|
|
766
|
-
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ns["030"]} 100%)`}};
|
|
767
|
-
`,nd=({icon:e,src:t="",alt:o="",status:i,size:r=36})=>Ot(rd,{$status:i,$size:r,children:t?Ot(id,{src:t,alt:o,size:r-12}):Ot(e||s,{size:r-12})}),ad=Yt.div`
|
|
768
|
-
position: relative;
|
|
769
|
-
display: flex;
|
|
770
|
-
flex-wrap: wrap;
|
|
771
|
-
align-items: center;
|
|
772
|
-
justify-content: center;
|
|
773
|
-
width: ${({$size:e})=>e}px;
|
|
774
|
-
height: ${({$size:e})=>e}px;
|
|
775
|
-
`,sd=Yt.div`
|
|
776
|
-
position: absolute;
|
|
777
|
-
top: ${({$top:e})=>e}px;
|
|
778
|
-
left: ${({$left:e})=>e}px;
|
|
779
|
-
z-index: ${({$zIndex:e})=>e};
|
|
780
|
-
display: flex;
|
|
781
|
-
align-items: center;
|
|
782
|
-
justify-content: center;
|
|
783
|
-
width: ${({$size:e})=>e}px;
|
|
784
|
-
height: ${({$size:e})=>e}px;
|
|
785
|
-
border-radius: 100%;
|
|
786
|
-
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Ns["030"]};
|
|
787
|
-
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ns["030"]} 100%)`}};
|
|
788
|
-
`,ld=({icons:e=[],iconSrcs:t=[],status:o,size:i=36,id:r})=>{const n=Zt(),a=1===e.length||1===t.length?i-12:i/2.7;if(t.length>0)return Ot(ld,{icons:t.map(e=>()=>Ot(id,{src:e,size:a})),status:o,size:i,id:r});if(1===e.length)return Ot(nd,{icon:e[0],status:o,size:i});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return Ot(ad,{$status:o,$size:i,children:e.map((t,i)=>i>2?null:Ot(sd,{$status:o,$size:1.5*a,$top:s(i),$left:l(i),$zIndex:i+1,children:2===i&&e.length>3?Rt(Yr,{family:"secondary",color:n.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Ot(t,{size:a})},`icon-${r}-${i}`))})},cd=os.map(({id:e})=>e),dd=({monitors:e=cd,withTooltips:t,withLabels:o,size:i=12,color:r})=>{const n=Zt(),a=r||n.text.grey;return Ot(Rr,{$gap:o?i:i/2,children:e.map(e=>{const r=xo(e.toLowerCase()),n=Ki(e);return n?Ot(ql,{text:t?r:"",children:Rt(Rr,{$gap:i/3,children:[Ot(n,{size:o?i+2:i,fill:a}),o&&Ot(Yr,{size:i,color:a,children:r})]})},e):null})})},pd=Yt.div`
|
|
789
|
-
visibility: hidden;
|
|
790
|
-
`,ud=Yt.div`
|
|
791
|
-
display: flex;
|
|
792
|
-
flex-direction: column;
|
|
793
|
-
align-self: stretch;
|
|
794
|
-
padding: 16px;
|
|
795
|
-
width: calc(100% - 32px);
|
|
796
|
-
border-radius: 16px;
|
|
797
|
-
background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+Ns["010"]:e.colors.secondary+Ns["005"])};
|
|
798
|
-
opacity: ${({$faded:e})=>e?.5:1};
|
|
799
|
-
|
|
800
|
-
${({theme:e,$status:t,$bgColorHover:o,$withClick:i})=>i?Qt`
|
|
801
|
-
&:hover {
|
|
802
|
-
cursor: pointer;
|
|
803
|
-
background-color: ${o||(t?e.text[t]+Ns["020"]:e.colors.secondary+Ns["010"])};
|
|
804
|
-
${pd} {
|
|
805
|
-
visibility: visible;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
`:`\n &:hover {\n ${pd} {\n visibility: visible;\n }\n }\n `}
|
|
809
|
-
`,hd=Yt.div`
|
|
810
|
-
display: flex;
|
|
811
|
-
align-items: center;
|
|
812
|
-
gap: 8px;
|
|
813
|
-
margin-left: auto;
|
|
814
|
-
`,md=Yt(Yr)`
|
|
815
|
-
margin-right: 16px;
|
|
816
|
-
`,gd=Yt(Yr)`
|
|
817
|
-
font-size: 10px;
|
|
818
|
-
color: ${({theme:e})=>e.text.grey};
|
|
819
|
-
`,fd=({title:e,subTitle:t,hoverText:o,onClick:i,renderActions:r,iconProps:{icon:n,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:f,isCheckboxDisabled:x,isChecked:y,isLoading:b,onCheckboxChange:$}={},extendableProps:{withExtend:v,isExtended:w,renderExtended:S}={},...C})=>{const k=Zt(),[E,A]=Pt(w||!1),[D,T]=Pt(0),N=Bt(null),I=Bt(null),_=Bt(null);return Mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;T(e-((f?125:85)+t))}},[f]),Rt(ud,{ref:N,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!i,onClick:i,...C,children:[Rt(Rr,{$gap:8,children:[Rt(Rr,{$gap:16,children:[b?Ot(zc,{}):f?Ot($c,{value:y,onChange:$,disabled:x}):null,a?.length||l?.length?Ot(ld,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):n||s?Ot(nd,{icon:n,src:s,status:c}):null]}),Rt(Fr,{$gap:4,children:[e&&Ot(od,{maxWidth:D,text:e,textSize:14}),Rt(Rr,{$gap:4,children:[t&&Ot(od,{maxWidth:D-(_.current?.clientWidth||0),text:t,textSize:10,textColor:k.text.grey}),h&&h.length>0&&Rt(Rr,{$gap:4,ref:_,children:[t&&Ot(gd,{children:"•"}),Ot(dd,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Ot(Rr,{$gap:4,children:g?.map((e,t)=>Ot(zt,{children:e},`componentsUnderTitles-${t}`))}):null]}),Rt(hd,{ref:I,children:[!!o&&Ot(pd,{children:Ot(md,{size:14,family:"secondary",children:o})}),r&&r(),v&&Rt(zt,{children:[Ot(Pl,{orientation:"vertical",length:"16px",margin:"0 2px"}),Ot(Zl,{onClick:()=>A(e=>!e),children:Ot(Pc,{extend:E})})]})]})]}),E&&S&&Rt(Fr,{children:[Ot(Pl,{margin:"16px 0"}),S()]})]})},xd=Yt(Rr)`
|
|
820
|
-
width: 100%;
|
|
821
|
-
justify-content: space-between;
|
|
822
|
-
`,yd=Yt(Yr)`
|
|
823
|
-
font-size: 12px;
|
|
824
|
-
color: ${({theme:e})=>e.text.grey};
|
|
825
|
-
`,bd=Yt(Yr)`
|
|
826
|
-
font-size: 10px;
|
|
827
|
-
color: ${({theme:e})=>e.text.darker_grey};
|
|
828
|
-
`,$d=Yt.div`
|
|
829
|
-
display: flex;
|
|
830
|
-
align-items: center;
|
|
831
|
-
gap: 8px;
|
|
832
|
-
margin-left: auto;
|
|
833
|
-
`,vd=Yt(Yr)`
|
|
834
|
-
font-size: 12px;
|
|
835
|
-
text-align: right;
|
|
836
|
-
`,wd=({title:e,subTitle:t,tooltip:o,value:i})=>Rt(xd,{children:[Ot(Fr,{$gap:4,children:Rt(ql,{text:o||"",children:[e&&Ot(yd,{children:e},"title"),t&&Ot(bd,{children:t},"subtitle")]})}),Ot($d,{children:i?.status?Ot(Jc,{status:"transitioning"===i.status?Ko.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):Ot(vd,{children:i?.text||"-"})})]}),Sd=Yt(Fr)`
|
|
837
|
-
width: 100%;
|
|
838
|
-
`,Cd=({containerName:e,actualDevices:t,started:o,ready:i,instrumentationInstances:r})=>{const n=Lt(()=>{const e=[];return o?.name&&e.push(Ot(Jc,{status:mr(o.value)?Cr(o.value)?Go.Success:Go.Error:Go.Default,title:o.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&e.push(Ot(Jc,{status:mr(i.value)?Cr(i.value)?Go.Success:Go.Error:Go.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[o?.name,o?.value,i?.name,i?.value]);return Ot(fd,{title:e.value,subTitle:r.length?`${r.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:n},renderActions:()=>Ot(Jc,{status:Go.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!r.length,renderExtended:()=>Ot(Sd,{$gap:24,children:r.map((e,t)=>Rt(Sd,{$gap:8,children:[Ot(wd,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Go.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>Ot(wd,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},kd=({title:e="Data not found",subTitle:t})=>{const o=Zt().v2.colors.grey[400];return Rt(zr,{children:[Rt(Rr,{$gap:8,children:[Ot(ft,{fill:o}),Ot(Gr,{size:Hr.XS,color:o,align:"center",children:e})]}),t&&Ot(Gr,{size:Hr.XXS,color:o,align:"center",children:t})]})},Ed=Yt(Fr)`
|
|
839
|
-
max-width: 300px;
|
|
840
|
-
padding: 12px;
|
|
841
|
-
border-radius: 12px;
|
|
842
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
843
|
-
justify-content: center;
|
|
844
|
-
`,Ad=Xt(({id:e,data:t})=>{const{title:o,subTitle:i}=t;return Ot(Ed,{"data-id":e,children:Ot(kd,{title:o,subTitle:i})})});Ad.displayName=Ad.name;const Dd=Yt.div`
|
|
845
|
-
padding: 6px;
|
|
846
|
-
border-radius: 12px;
|
|
847
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
848
|
-
cursor: pointer;
|
|
849
|
-
${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
|
|
850
|
-
`,Td=Yt.div`
|
|
851
|
-
position: relative;
|
|
852
|
-
`,Nd=Yt.div`
|
|
853
|
-
position: absolute;
|
|
854
|
-
top: 100%;
|
|
855
|
-
margin-top: 4px;
|
|
856
|
-
left: 50%;
|
|
857
|
-
transform: translateX(-50%);
|
|
858
|
-
display: flex;
|
|
859
|
-
flex-direction: column;
|
|
860
|
-
align-items: center;
|
|
861
|
-
gap: 2px;
|
|
862
|
-
width: 140px;
|
|
863
|
-
text-align: center;
|
|
864
|
-
`,Id=Xt(({id:e,data:t})=>{const{id:o,status:i,title:r,icons:n,isVirtual:a}=t,s=Zt(),l=a||i!==Go.Error?null:tr(i,s);return Rt(Ft,{children:[Ot(oo,{type:"source",position:io.Right,style:{visibility:"hidden"}}),Ot(oo,{type:"target",position:io.Left,style:{visibility:"hidden"}}),Rt(Td,{"data-id":e,children:[Ot(Dd,{$isVirtual:a,children:Ot(ld,{id:o,icons:n,status:a?void 0:i})}),Rt(Nd,{children:[l&&Ot(l,{}),Ot(Yr,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:r})]})]})]})});Id.displayName=Id.name;const _d={duration:300,padding:.1,includeHiddenNodes:!0},Od=Yt.div`
|
|
865
|
-
height: 100%;
|
|
866
|
-
.react-flow__attribution {
|
|
867
|
-
visibility: hidden;
|
|
868
|
-
}
|
|
869
|
-
`,Rd=Yt.div`
|
|
870
|
-
button {
|
|
871
|
-
padding: 8px;
|
|
872
|
-
margin: 8px;
|
|
873
|
-
border-radius: 8px;
|
|
874
|
-
border: 1px solid ${({theme:e})=>e.colors.border} !important;
|
|
875
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
876
|
-
path {
|
|
877
|
-
fill: ${({theme:e})=>e.text.secondary};
|
|
878
|
-
}
|
|
879
|
-
&:hover {
|
|
880
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
881
|
-
}
|
|
882
|
-
&:last-child svg {
|
|
883
|
-
transform: scale(1.4);
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
`,Fd={[Yo.MapItem]:Id,[Yo.NoData]:Ad},zd=({trigger:e})=>{const{fitView:t}=lo(),o=Bt(!0);return Mt(()=>{o.current?o.current=!1:e>0&&requestAnimationFrame(()=>t(_d))},[e,t]),null},Ld=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:i,fitViewTrigger:r=0,zoomOnScroll:n=!1,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onRefresh:c})=>{const{onClickNode:d}=Ks(),{setActiveNodeType:p,setActiveNodeId:u}=xn();return Rt(no,{zoomOnScroll:n,nodes:e,nodeTypes:Fd,edges:t,onNodeClick:d,onEdgeClick:a,onNodeMouseEnter:s,onNodeMouseLeave:l,onNodesChange:o,onEdgesChange:i,onBlur:()=>{p(null),u(null)},children:[Ot(zd,{trigger:r}),Ot(Rd,{children:Ot(ao,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:_d,children:c&&Ot(so,{onClick:c,children:Ot(xt,{size:20})})})})]})},Pd=e=>Ot(Od,{children:Ot(ro,{children:Ot(Ld,{...e})})}),Md=Yt.div`
|
|
887
|
-
display: flex;
|
|
888
|
-
|
|
889
|
-
align-items: center;
|
|
890
|
-
gap: 6px;
|
|
891
|
-
margin-bottom: 4px;
|
|
892
|
-
`,Bd=Yt(Yr)`
|
|
893
|
-
font-size: 14px;
|
|
894
|
-
opacity: 0.8;
|
|
895
|
-
line-height: 22px;
|
|
896
|
-
overflow: hidden;
|
|
897
|
-
white-space: nowrap;
|
|
898
|
-
text-overflow: ellipsis;
|
|
899
|
-
color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
|
|
900
|
-
`,Ud=Yt(Yr)`
|
|
901
|
-
font-size: 12px;
|
|
902
|
-
color: ${({theme:e})=>e.text.darker_grey};
|
|
903
|
-
opacity: 0.8;
|
|
904
|
-
`,jd=({title:e,required:t,tooltip:o,style:i,status:r})=>e?Ot(Md,{style:i,children:Rt(ql,{text:o,withIcon:!0,children:[Ot(Bd,{$status:r,children:e}),!t&&Ot(Ud,{children:"(optional)"})]})}):null,Wd=Yt.div`
|
|
905
|
-
display: flex;
|
|
906
|
-
flex-direction: column;
|
|
907
|
-
position: relative;
|
|
908
|
-
width: 100%;
|
|
909
|
-
`,Hd=Yt.div`
|
|
910
|
-
width: 100%;
|
|
911
|
-
display: flex;
|
|
912
|
-
align-items: center;
|
|
913
|
-
height: 36px;
|
|
914
|
-
gap: 12px;
|
|
915
|
-
transition: border-color 0.3s;
|
|
916
|
-
border-radius: 32px;
|
|
917
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
918
|
-
${({$disabled:e})=>e&&Qt`
|
|
919
|
-
cursor: not-allowed;
|
|
920
|
-
opacity: 0.6;
|
|
921
|
-
`}
|
|
922
|
-
${({$isActive:e,$hasError:t,$status:o})=>e?Qt`
|
|
923
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
924
|
-
`:t?Qt`
|
|
925
|
-
border-color: ${({theme:e})=>e.text.error};
|
|
926
|
-
`:o?Qt`
|
|
927
|
-
border-color: ${({theme:e})=>e.text[o]};
|
|
928
|
-
`:""}
|
|
929
|
-
&:hover {
|
|
930
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
931
|
-
}
|
|
932
|
-
&:focus-within {
|
|
933
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
934
|
-
}
|
|
935
|
-
`,Xd=Yt.input`
|
|
936
|
-
padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
|
|
937
|
-
flex: 1;
|
|
938
|
-
min-width: 150px;
|
|
939
|
-
width: 100%;
|
|
940
|
-
border: none;
|
|
941
|
-
outline: none;
|
|
942
|
-
background: none;
|
|
943
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
944
|
-
font-size: 14px;
|
|
945
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
946
|
-
font-weight: 300;
|
|
947
|
-
&::placeholder {
|
|
948
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
949
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
950
|
-
opacity: 0.4;
|
|
951
|
-
font-size: 14px;
|
|
952
|
-
font-weight: 300;
|
|
953
|
-
line-height: 22px; /* 157.143% */
|
|
954
|
-
}
|
|
955
|
-
&:disabled {
|
|
956
|
-
cursor: not-allowed;
|
|
957
|
-
opacity: 0.6;
|
|
958
|
-
}
|
|
959
|
-
&::-webkit-inner-spin-button,
|
|
960
|
-
&::-webkit-outer-spin-button {
|
|
961
|
-
-webkit-appearance: none;
|
|
962
|
-
margin: 0;
|
|
963
|
-
}
|
|
964
|
-
`,Gd=Yt.div`
|
|
965
|
-
display: flex;
|
|
966
|
-
align-items: center;
|
|
967
|
-
margin-left: 12px;
|
|
968
|
-
`,Vd=Yt(Gd)`
|
|
969
|
-
cursor: pointer;
|
|
970
|
-
`,Kd=Yt.button`
|
|
971
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
972
|
-
border: none;
|
|
973
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
974
|
-
padding: 8px 16px;
|
|
975
|
-
border-radius: 20px;
|
|
976
|
-
cursor: pointer;
|
|
977
|
-
margin-left: 8px;
|
|
978
|
-
&:hover {
|
|
979
|
-
background-color: ${({theme:e})=>e.colors.secondary};
|
|
980
|
-
}
|
|
981
|
-
&:disabled {
|
|
982
|
-
background-color: ${({theme:e})=>e.colors.border};
|
|
983
|
-
cursor: not-allowed;
|
|
984
|
-
}
|
|
985
|
-
`,Jd=({icon:e,buttonLabel:t,onButtonClick:o,hasError:i,errorMessage:r,title:n,tooltip:a,required:s,value:l,onChange:c,type:d=Xo.Text,name:p,status:u,...h})=>{const m=Zt(),g=d===Xo.Password,[f,x]=Pt(!1);return Rt(Wd,{children:[Ot(jd,{title:n,required:s,tooltip:a,status:u}),Rt(Hd,{$disabled:h.disabled,$hasError:i||!!r,$isActive:!!h.autoFocus,$status:u,children:[g?Ot(Vd,{onClick:()=>x(e=>!e),children:Ot(f?yt:bt,{size:14,fill:m.text.grey})}):e?Ot(Gd,{children:Ot(e,{size:14,fill:m.text.grey})}):null,Ot(Xd,{"data-id":p,type:f||d===Xo.Number?Xo.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Xo.Number&&(e.target.value=Sr(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&Ot(Kd,{onClick:o,disabled:h.disabled,children:t})]}),!!r&&Ot(en,{children:r})]})},qd=Yt.div`
|
|
986
|
-
display: flex;
|
|
987
|
-
flex-direction: column;
|
|
988
|
-
min-width: 120px;
|
|
989
|
-
width: 100%;
|
|
990
|
-
opacity: ${({$disabled:e})=>e?.5:1};
|
|
991
|
-
`,Yd=Yt.div`
|
|
992
|
-
position: relative;
|
|
993
|
-
`,Qd=Yt.div`
|
|
994
|
-
display: flex;
|
|
995
|
-
align-items: center;
|
|
996
|
-
justify-content: space-between;
|
|
997
|
-
height: 36px;
|
|
998
|
-
padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
|
|
999
|
-
border-radius: 32px;
|
|
1000
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1001
|
-
|
|
1002
|
-
${({$isOpen:e,$isMulti:t,theme:o})=>e&&!t?Qt`
|
|
1003
|
-
border: 1px solid ${o.text.grey};
|
|
1004
|
-
background: ${o.colors.dropdown_bg_2};
|
|
1005
|
-
`:Qt`
|
|
1006
|
-
border: 1px solid ${o.colors.border};
|
|
1007
|
-
background: transparent;
|
|
1008
|
-
`};
|
|
1009
|
-
|
|
1010
|
-
${({$hasError:e,$status:t})=>e?Qt`
|
|
1011
|
-
border-color: ${({theme:e})=>e.text.error};
|
|
1012
|
-
`:t?Qt`
|
|
1013
|
-
border-color: ${({theme:e})=>e.text[t]};
|
|
1014
|
-
`:""}
|
|
1015
|
-
|
|
1016
|
-
&:hover {
|
|
1017
|
-
border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:i})=>o?"auto":e&&t?i.colors.border:i.colors.secondary};
|
|
1018
|
-
}
|
|
1019
|
-
`,Zd=Yt.div`
|
|
1020
|
-
display: flex;
|
|
1021
|
-
align-items: center;
|
|
1022
|
-
gap: 4px;
|
|
1023
|
-
`,ep=({options:e,value:t,onSelect:o,onDeselect:i,title:r,tooltip:n,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=Pt(!1),[f,x]=Pt(!1),y=Bt(null);sl(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 Rt(qd,{$disabled:s,children:[Ot(jd,{title:r,required:d,tooltip:n,status:h}),Rt(Yd,{ref:y,children:[Rt(Qd,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Ot(rp,{value:t,placeholder:a,onDeselect:i}),Rt(Zd,{children:[l&&Ot(Ms,{label:$,filled:!!$}),Ot(Pc,{extend:m})]})]}),m&&Ot(sp,{openUpwards:f,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{i?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Ot(en,{children:p})]})},tp=Yt(Zd)`
|
|
1024
|
-
max-width: calc(100% - 50px);
|
|
1025
|
-
overflow-x: auto;
|
|
1026
|
-
`,op=Yt(Yr)`
|
|
1027
|
-
display: flex;
|
|
1028
|
-
align-items: center;
|
|
1029
|
-
gap: 2px;
|
|
1030
|
-
padding: 4px 12px;
|
|
1031
|
-
background: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1032
|
-
border-radius: 360px;
|
|
1033
|
-
white-space: nowrap;
|
|
1034
|
-
text-overflow: ellipsis;
|
|
1035
|
-
img {
|
|
1036
|
-
&:hover {
|
|
1037
|
-
transform: scale(2);
|
|
1038
|
-
transition: transform 0.3s;
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
`,ip=Yt(Yr)``,rp=({value:e,placeholder:t,onDeselect:o})=>{const i=Zt();return Array.isArray(e)?e.length?Ot(tp,{children:e.map(e=>Rt(op,{size:14,children:[e.value,Ot(Pl,{orientation:"vertical",length:"10px",margin:"0 4px"}),Ot(ct,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})]},`multi-label-${e.id}`))}):Ot(ip,{size:14,color:i.text.darker_grey,children:t}):Ot(ip,{size:14,color:e?.value?void 0:i.text.darker_grey,children:e?.value||t})},np=Yt.div`
|
|
1042
|
-
position: absolute;
|
|
1043
|
-
${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
|
|
1044
|
-
left: 0;
|
|
1045
|
-
z-index: 1;
|
|
1046
|
-
display: flex;
|
|
1047
|
-
flex-direction: column;
|
|
1048
|
-
overflow-y: auto;
|
|
1049
|
-
width: calc(100% - 16px);
|
|
1050
|
-
max-height: 200px;
|
|
1051
|
-
gap: 8px;
|
|
1052
|
-
padding: 8px;
|
|
1053
|
-
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1054
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1055
|
-
border-radius: 24px;
|
|
1056
|
-
`,ap=Yt.div`
|
|
1057
|
-
display: flex;
|
|
1058
|
-
flex-direction: column;
|
|
1059
|
-
align-items: center;
|
|
1060
|
-
`,sp=({openUpwards:e,options:t,value:o,onSelect:i,onDeselect:r,isMulti:n,showSearch:a})=>{const[s,l]=Pt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return Rt(np,{$openUpwards:e,children:[a&&Rt(ap,{children:[Ot(Jd,{placeholder:"Search...",icon:$t,value:s,onChange:e=>l(e.target.value)}),Ot(Pl,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?Ot(kd,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>Ot(cp,{option:e,value:o,isMulti:n,onSelect:i,onDeselect:r},`dropdown-option-${e.id||t}`))]})},lp=Yt.div`
|
|
1061
|
-
padding: 8px 12px;
|
|
1062
|
-
cursor: pointer;
|
|
1063
|
-
display: flex;
|
|
1064
|
-
justify-content: space-between;
|
|
1065
|
-
align-items: center;
|
|
1066
|
-
border-radius: 32px;
|
|
1067
|
-
&:hover,
|
|
1068
|
-
&.selected {
|
|
1069
|
-
background: ${({theme:e})=>e.colors.majestic_blue+Ns["024"]};
|
|
1070
|
-
}
|
|
1071
|
-
`,cp=({option:e,value:t,isMulti:o,onSelect:i,onDeselect:r})=>{const n=Zt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?i?.(e):r?.(e);return o?Ot(lp,{className:a?"selected":"",onClick:()=>s(!a),children:Ot($c,{title:e.value||"",titleColor:n.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):Rt(lp,{className:a?"selected":"",onClick:()=>a?r?.(e):i?.(e),children:[Rt(Rr,{$gap:8,children:[e.icon&&Ot(e.icon,{}),Ot(Yr,{size:14,children:e.value})]}),a&&Ot(st,{})]})},dp=Yt(Fr)`
|
|
1072
|
-
gap: 12px;
|
|
1073
|
-
`,pp=Yt(Rr)`
|
|
1074
|
-
width: 100%;
|
|
1075
|
-
gap: 12px;
|
|
1076
|
-
align-items: flex-end;
|
|
1077
|
-
`,up=({clientX:e=0,flipX:t,clientY:o=0,flipY:i,isOpen:r,onClose:n,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Zt(),{popupRef:m,popupPosition:g,handlePosition:f}=ll({onClickOutside:n});return al({key:"Enter",active:r},a),Mt(()=>f(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:Ot(Wl,{ref:m,isOpen:r,top:i?void 0:g.top,bottom:i?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:Rt(dp,{children:[Ot(ql,{text:d,withIcon:!0,children:Ot(Yr,{size:14,children:c})}),Rt(pp,{children:[u,Rt(Rr,{$gap:6,children:[Ot(Zl,{withBorder:!0,onClick:n,tooltip:"Cancel",children:Ot(ct,{})}),Ot(Zl,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Ot(st,{fill:h.text.primary})}),s&&Ot(Zl,{onClick:l,tooltip:"Undo",children:Ot(vt,{})})]})]}),p&&Ot(lc,{type:Go.Warning,message:p})]})})},hp=Yt.div`
|
|
1078
|
-
position: relative;
|
|
1079
|
-
`,mp=({defaultLanguage:e=Bo.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:i})=>{const{tier:r}=gl(),{addNotification:n}=gs(),{formData:a,handleFormChange:s,resetFormData:l}=Hs({language:e,version:t,otelDistroName:o}),[c,d]=Pt(!1),p=()=>{d(!1),l()},u=Lt(()=>{if(!a.language)return[];const e=ns[a.language].community,t=r===Lo.Onprem?ns[a.language].enterprise:[];return e.concat(t)},[a.language,r]);return Rt(hp,{children:[Ot(Zl,{tooltip:Ei.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Ot(gt,{})}),Ot(up,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||xr(a.version)?(await i({...a}),p()):n({type:Go.Warning,message:ki.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),p()},title:Ei.OVERRIDE_RUNTIME_DETAILS,warning:Ei.OVERRIDE_RUNTIME_WARNING,children:Rt(Fr,{$gap:12,children:[Rt(Rr,{$gap:12,children:[Ot(ep,{title:Ei.LANGUAGE,options:rs,value:rs.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Ot(Jd,{title:Ei.RUNTIME_VERSION,placeholder:Ei.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Ot(ep,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},gp=Yt(Rr)`
|
|
1080
|
-
width: 100%;
|
|
1081
|
-
justify-content: center;
|
|
1082
|
-
`,fp=({containerName:e,language:t,runtimeVersion:o,overriden:i,instrumented:r,instrumentationMessage:n,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Zt(),c=r?Go.Success:n?Go.Info:Go.Warning,d=r?Vo.INSTRUMENTED:n?Vo.NOT_INSTRUMENTED:Vo.INSTRUMENTING;return Ot(fd,{title:e,subTitle:`${t?is[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:zi(t)},extendableProps:{isExtended:!!n,renderExtended:()=>Ot(gp,{children:Ot(Yr,{size:12,family:"secondary",color:l.text.info,children:yr(n)})})},renderActions:()=>Rt(Ft,{children:[Ot(Jc,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),i&&Ot(Jc,{status:Go.Default,forceIcon:wt,title:Ei.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Ot(mp,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},xp=Yt.tr`
|
|
1083
|
-
cursor: ${({$withHover:e})=>e?"pointer":"default"};
|
|
1084
|
-
opacity: ${({$faded:e})=>e?.5:1};
|
|
1085
|
-
`,yp=Yt.td`
|
|
1086
|
-
position: relative;
|
|
1087
|
-
width: fit-content;
|
|
1088
|
-
padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
|
|
1089
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
1090
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1091
|
-
font-size: 14px;
|
|
1092
|
-
white-space: nowrap;
|
|
1093
|
-
`,bp=Yt(Yr)`
|
|
1094
|
-
font-size: 14px;
|
|
1095
|
-
color: ${({$color:e,theme:t})=>e??t.text.secondary};
|
|
1096
|
-
line-height: 16px;
|
|
1097
|
-
|
|
1098
|
-
overflow: hidden;
|
|
1099
|
-
overflow-wrap: break-word;
|
|
1100
|
-
white-space: wrap;
|
|
1101
|
-
text-wrap: wrap;
|
|
1102
|
-
text-overflow: ellipsis;
|
|
1103
|
-
display: -webkit-box;
|
|
1104
|
-
-webkit-line-clamp: 2;
|
|
1105
|
-
-webkit-box-orient: vertical;
|
|
1106
|
-
`,$p=Yt.div`
|
|
1107
|
-
position: absolute;
|
|
1108
|
-
top: 0;
|
|
1109
|
-
left: 0;
|
|
1110
|
-
z-index: -1;
|
|
1111
|
-
width: ${({$width:e})=>e}px;
|
|
1112
|
-
height: ${({$height:e})=>e}px;
|
|
1113
|
-
border-radius: 16px;
|
|
1114
|
-
background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+Ns["020"]:e.colors.majestic_blue+Ns["030"]:o?e.text[o]+Ns["010"]:e.colors.secondary+Ns["005"]};
|
|
1115
|
-
`,vp=({index:e,columns:t,cells:o,onClick:i,status:r,faded:n})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=qs(),[c,d]=Pt(!1);return Ot(xp,{ref:a,onMouseEnter:()=>!!i&&d(!0),onMouseLeave:()=>!!i&&d(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:n,children:t.map(({key:t},i)=>{const n=o.find(({columnKey:e})=>e===t);if(!n)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=n;return Rt(yp,{$isFirst:0===i,children:[u?Ot(nd,{icon:u}):h?Ot(h,{}):Ot(ql,{text:p&&a?String(a):"",children:Ot(bp,{$color:d,children:pr(a)?"-":a})}),0===i&&Ot($p,{$height:s,$width:l,$top:s*e,$hovered:c,$status:r})]},`table-row-${t}-${a}-${e}-${i}`)})})},wp=Yt.div`
|
|
1116
|
-
width: 100%;
|
|
1117
|
-
`,Sp=Yt.table`
|
|
1118
|
-
position: relative;
|
|
1119
|
-
z-index: 0;
|
|
1120
|
-
width: 100%;
|
|
1121
|
-
border-collapse: separate;
|
|
1122
|
-
border-spacing: 0 12px;
|
|
1123
|
-
`,Cp=Yt.thead`
|
|
1124
|
-
// only supported with "border-collapse: collapse;"
|
|
1125
|
-
// border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1126
|
-
// border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1127
|
-
`,kp=Yt.th`
|
|
1128
|
-
// only required with "border-collapse: separate;"
|
|
1129
|
-
border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1130
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1131
|
-
|
|
1132
|
-
padding: 8px;
|
|
1133
|
-
`,Ep=Yt(Rr)`
|
|
1134
|
-
cursor: pointer;
|
|
1135
|
-
&:hover {
|
|
1136
|
-
* {
|
|
1137
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
`,Ap=Yt(Yr)`
|
|
1141
|
-
color: ${({theme:e})=>e.text.darker_grey};
|
|
1142
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1143
|
-
text-transform: uppercase;
|
|
1144
|
-
font-size: 12px;
|
|
1145
|
-
font-weight: 500;
|
|
1146
|
-
text-wrap: nowrap;
|
|
1147
|
-
`,Dp=Yt.tbody``,Tp=({columns:e,rows:t})=>{const[o,i]=Pt(zo.Ascending),[r,n]=Pt("name"),a=Ut(e=>{r===e?i(e=>e===zo.Ascending?zo.Descending:zo.Ascending):(n(e),i(zo.Ascending))},[r]),s=Lt(()=>{const i=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(r?[...t].sort((e,t)=>{const n=i(e,r),a=i(t,r);return(o===zo.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,a)}):t).map(({status:t,faded:o,cells:i,onClick:r},n)=>Ot(vp,{index:n,columns:e,cells:i,onClick:r,status:t,faded:o},`row-${n}`))},[e,t,r,o]);return Ot(wp,{children:Rt(Sp,{children:[Ot(Cp,{children:Ot("tr",{children:e.map(({key:e,title:t,sortable:o})=>Ot(kp,{children:o?Rt(Ep,{onClick:()=>a(e),children:[Ot(St,{}),Ot(Ap,{children:t})]}):Ot(Ap,{children:t})},`column-${e}`))})}),Ot(Dp,{children:s})]})})};var Np;!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"}(Np||(Np={}));const Ip=Yt.div`
|
|
1148
|
-
display: flex;
|
|
1149
|
-
flex-wrap: wrap;
|
|
1150
|
-
gap: 16px 32px;
|
|
1151
|
-
width: 100%;
|
|
1152
|
-
`,_p=Yt.div`
|
|
1153
|
-
display: flex;
|
|
1154
|
-
flex-direction: column;
|
|
1155
|
-
gap: 2px;
|
|
1156
|
-
width: ${({$width:e})=>e};
|
|
1157
|
-
`,Op=Yt(Yr)`
|
|
1158
|
-
color: ${({theme:e})=>e.text.grey};
|
|
1159
|
-
font-size: 10px;
|
|
1160
|
-
line-height: 16px;
|
|
1161
|
-
`,Rp=Yt(Yr)`
|
|
1162
|
-
font-size: 12px;
|
|
1163
|
-
white-space: pre-wrap;
|
|
1164
|
-
`,Fp=({data:e})=>Ot(Ip,{children:e?.map(({type:e,title:t,titleIcon:o,tooltip:i,value:r},n)=>Rt(_p,{$width:e&&[Np.Code,Np.Table].includes(e)?"inherit":e&&[Np.Loader,Np.Divider,Np.CopyText].includes(e)?"100%":"unset",children:[Ot(ql,{text:i,withIcon:!0,children:Rt(Rr,{$alignItems:"center",$gap:4,children:[o&&Ot(o,{size:14}),!!t&&Ot(Op,{transform:"capitalize",children:t})]})}),Ot(zp,{type:e,value:r})]},`data-field-${t||(r?JSON.stringify(r):n)}`))}),zp=({type:e,value:t})=>{const o=Zt();switch(e){case Np.Divider:return Ot(Pl,{length:"100%",margin:"0"});case Np.Loader:return Ot(zr,{children:Ot(zc,{scale:1.2})});case Np.Monitors:return Ot(dd,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Np.Badge:{const{label:e,filled:o,...i}=lr(t,{label:"-",filled:!1});return Ot(Ms,{label:e,filled:o,...i})}case Np.Code:{const{language:e,code:o,...i}=lr(t,{language:"",code:""});return Ot(Nc,{language:e,code:o,...i})}case Np.Table:{const{columns:e,rows:o,...i}=lr(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Ot(Tp,{columns:e,rows:o,...i})}case Np.ActiveStatus:return Ot(Jc,{status:"true"==t?Go.Success:Go.Error,title:"true"==t?Ei.ENABLED:Ei.DISABLED,size:10,withIcon:!0,withBorder:!0});case Np.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Ot(Qc,{value:e})}default:return Ot(Rp,{children:kr("string"==typeof t?t||"-":"")})}},Lp=Yt.div`
|
|
1165
|
-
display: flex;
|
|
1166
|
-
flex-direction: column;
|
|
1167
|
-
align-items: flex-start;
|
|
1168
|
-
align-self: stretch;
|
|
1169
|
-
gap: 16px;
|
|
1170
|
-
padding: 24px;
|
|
1171
|
-
border-radius: 24px;
|
|
1172
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1173
|
-
background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Ns["010"]:"transparent"};
|
|
1174
|
-
transition: background-color 0.3s;
|
|
1175
|
-
`,Pp=Yt.div`
|
|
1176
|
-
width: 100%;
|
|
1177
|
-
display: flex;
|
|
1178
|
-
flex-direction: column;
|
|
1179
|
-
gap: 4px;
|
|
1180
|
-
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
1181
|
-
`,Mp=Yt(Yr)`
|
|
1182
|
-
width: 100%;
|
|
1183
|
-
display: flex;
|
|
1184
|
-
align-items: center;
|
|
1185
|
-
gap: 8px;
|
|
1186
|
-
font-size: 16px;
|
|
1187
|
-
`,Bp=Yt(Yr)`
|
|
1188
|
-
font-size: 12px;
|
|
1189
|
-
color: ${({theme:e})=>e.text.grey};
|
|
1190
|
-
`,Up=Yt(Rr)`
|
|
1191
|
-
margin-left: auto;
|
|
1192
|
-
gap: 8px;
|
|
1193
|
-
`,jp=({title:e="Details",titleBadge:t,titleIcon:o,description:i,action:r,withExtend:n,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=Pt(a),[p,u]=Pt(!1);return Rt(Lp,{$hovered:p,children:[e||o||i||r?Rt(Pp,{$clickable:n||!1,onClick:()=>n&&d(e=>!e),onMouseEnter:()=>n&&u(!0),onMouseLeave:()=>n&&u(!1),children:[Rt(Rr,{children:[Rt(Rr,{$alignItems:"center",$gap:8,children:[o&&Ot(Rr,{$alignItems:"center",children:Ot(o,{size:20})}),!!e&&Ot(Mp,{transform:"capitalize",children:e}),t===Ko.Loading?Ot(zc,{}):void 0!==t&&Ot(Ms,{label:t})]}),(!!r||n)&&Rt(Up,{children:["function"==typeof r?Ot(r,{hovered:p}):r,n&&Ot(Pc,{extend:c})]})]}),!!i&&Ot(Bp,{children:i})]}):null,(!n||n&&c)&&(l||Ot(Fp,{data:s}))]})},Wp=Yt.div`
|
|
1194
|
-
visibility: hidden;
|
|
1195
|
-
`,Hp=Yt(Rr)`
|
|
1196
|
-
align-self: stretch;
|
|
1197
|
-
width: calc(100% - 32px);
|
|
1198
|
-
padding: 16px;
|
|
1199
|
-
border-radius: 16px;
|
|
1200
|
-
background-color: ${({theme:e})=>e.colors.secondary+Ns["005"]};
|
|
1201
|
-
${({theme:e,$withClick:t})=>t?Qt`
|
|
1202
|
-
&:hover {
|
|
1203
|
-
cursor: pointer;
|
|
1204
|
-
background-color: ${e.colors.secondary+Ns["010"]};
|
|
1205
|
-
${Wp} {
|
|
1206
|
-
visibility: visible;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
`:`\n &:hover {\n ${Wp} {\n visibility: visible;\n }\n }\n `}
|
|
1210
|
-
`,Xp=Yt(Rr)`
|
|
1211
|
-
margin-left: auto;
|
|
1212
|
-
gap: 8px;
|
|
1213
|
-
`,Gp=Yt(Yr)`
|
|
1214
|
-
font-size: 10px;
|
|
1215
|
-
color: ${({theme:e})=>e.text.grey};
|
|
1216
|
-
`,Vp=({title:e,subTitle:t,icons:o,iconSrcs:i,onClick:r,renderActions:n})=>{const a=Zt(),[s,l]=Pt(0),c=Bt(null),d=Bt(null);return Mt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),Rt(Hp,{ref:c,$gap:8,$withClick:!!r,onClick:r,children:[Ot(ld,{id:`${e}-${t}`,icons:o,iconSrcs:i}),e&&Ot(od,{maxWidth:s/2,text:e,textSize:14}),e&&t&&Ot(Gp,{children:"•"}),t&&Ot(od,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),Ot(Xp,{ref:d,children:n&&Rt(Ft,{children:[Ot(Pl,{orientation:"vertical",length:"24px",margin:"0"}),n()]})})]})},Kp=({isOpen:e,noOverlay:t,name:o,type:i,isLastItem:r,onApprove:n,onDeny:a})=>{const s=i===jo.Source?"uninstrument":"delete";return Ot(fc,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:r?{type:Go.Warning,title:`You're about to ${s} the last ${i||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:n},denyButton:{text:"Go Back",onClick:a}})},Jp=Yt(Ws)`
|
|
1217
|
-
display: flex;
|
|
1218
|
-
align-items: center;
|
|
1219
|
-
justify-content: center;
|
|
1220
|
-
font-size: 14px;
|
|
1221
|
-
gap: 6px;
|
|
1222
|
-
min-width: 100px;
|
|
1223
|
-
`,qp=({endpoint:e="/",variant:t="secondary"})=>Rt(Jp,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Ot(Ct,{size:18}),"Docs"]}),Yp=Yt(Rr)`
|
|
1224
|
-
border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
|
|
1225
|
-
`,Qp=Yt.div`
|
|
1226
|
-
display: flex;
|
|
1227
|
-
align-items: center;
|
|
1228
|
-
border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
|
|
1229
|
-
cursor: pointer;
|
|
1230
|
-
`,Zp=Yt(Yr)`
|
|
1231
|
-
padding: 12px;
|
|
1232
|
-
font-size: 14px;
|
|
1233
|
-
color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
|
|
1234
|
-
`,eu=({tabs:e,hideBorder:t=!1})=>e?.length?Ot(Yp,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:o,selected:i})=>Rt(Qp,{onClick:o,$selected:i,children:[Ot(Zp,{$selected:i,children:e}),t&&Ot(t,{})]},`tab-${e}`))}):null,tu=Yt.section`
|
|
1235
|
-
padding: 0px 32px;
|
|
1236
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
1237
|
-
`,ou=Yt.div`
|
|
1238
|
-
height: 76px;
|
|
1239
|
-
display: flex;
|
|
1240
|
-
justify-content: space-between;
|
|
1241
|
-
flex-shrink: 0;
|
|
1242
|
-
align-self: stretch;
|
|
1243
|
-
`,iu=Yt.div`
|
|
1244
|
-
display: flex;
|
|
1245
|
-
align-items: center;
|
|
1246
|
-
gap: ${({$gap:e})=>e||16}px;
|
|
1247
|
-
`,ru=Yt(Yr)`
|
|
1248
|
-
font-size: 18px;
|
|
1249
|
-
line-height: 26px;
|
|
1250
|
-
max-width: ${({$maxWidth:e})=>e};
|
|
1251
|
-
overflow: hidden;
|
|
1252
|
-
white-space: nowrap;
|
|
1253
|
-
text-overflow: ellipsis;
|
|
1254
|
-
`,nu=Yt(Ws)`
|
|
1255
|
-
gap: 8px;
|
|
1256
|
-
`,au=Yt(Ws)``,su=({onClose:e,width:t,icons:o,iconSrcs:i,title:r,titleTooltip:n,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>Rt(tu,{children:[Rt(ou,{children:[Rt(iu,{children:[o?.length||i?.length?Ot(ld,{icons:o,iconSrcs:i,id:`drawer-header-${r}`}):null,("function"==typeof a?Ot(a,{}):a||null)||Ot(ql,{text:n||r,withIcon:!!n,children:r&&Ot(ru,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:r})})]}),Rt(iu,{$gap:2,children:[s,l.map((e,t)=>Ot(nu,{...e},`header-action-button-${t}`)),Ot(au,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Ot(ct,{size:12})})]})]}),Ot(eu,{tabs:c,hideBorder:!0})]}),lu=Yt.div`
|
|
1257
|
-
display: flex;
|
|
1258
|
-
justify-content: space-between;
|
|
1259
|
-
gap: 8px;
|
|
1260
|
-
padding: 24px 18px 24px 32px;
|
|
1261
|
-
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
1262
|
-
background-color: ${({theme:e})=>e.colors.translucent_bg};
|
|
1263
|
-
transform: translateY(100%);
|
|
1264
|
-
animation-name: ${_s.in.bottom};
|
|
1265
|
-
`,cu=Yt(Rr)`
|
|
1266
|
-
margin-right: auto;
|
|
1267
|
-
`,du=Yt(Rr)`
|
|
1268
|
-
margin: 0 auto;
|
|
1269
|
-
`,pu=Yt(Rr)`
|
|
1270
|
-
margin-left: auto;
|
|
1271
|
-
`,uu=Yt(Ws)`
|
|
1272
|
-
min-width: 140px;
|
|
1273
|
-
font-size: 14px;
|
|
1274
|
-
`,hu=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:i=[]})=>e?Rt(lu,{children:[Ot(cu,{children:t.map((e,t)=>Ot(uu,{...e},`footer-left-button-${t}`))}),Ot(du,{children:o.map((e,t)=>Ot(uu,{...e},`footer-center-button-${t}`))}),Ot(pu,{children:i.map((e,t)=>Ot(uu,{...e},`footer-right-button-${t}`))})]}):null,mu=Yt.div`
|
|
1275
|
-
position: fixed;
|
|
1276
|
-
top: 0;
|
|
1277
|
-
bottom: 0;
|
|
1278
|
-
${({$position:e})=>e}: 0;
|
|
1279
|
-
z-index: 1000;
|
|
1280
|
-
width: ${({$width:e})=>e};
|
|
1281
|
-
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
1282
|
-
box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Ns["010"]};
|
|
1283
|
-
overflow-y: auto;
|
|
1284
|
-
animation-name: ${({$position:e})=>_s.in[e]};
|
|
1285
|
-
`,gu=Yt.div`
|
|
1286
|
-
display: flex;
|
|
1287
|
-
flex-direction: column;
|
|
1288
|
-
height: 100%;
|
|
1289
|
-
`,fu=Yt.div`
|
|
1290
|
-
flex-grow: 1;
|
|
1291
|
-
padding: 24px 32px;
|
|
1292
|
-
overflow-y: auto;
|
|
1293
|
-
`,xu=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:i="right",width:r="300px",children:n,header:a,footer:s})=>(al({key:"Escape",active:e&&o},()=>t()),Vs(e),e?co.createPortal(Rt(Ft,{children:[Ot(Pr,{hidden:!e,onClick:t}),Ot(mu,{"data-id":"drawer",$position:i,$width:r,children:Rt(gu,{children:[Ot(su,{onClose:t,width:r,...a}),Ot(fu,{children:n}),Ot(hu,{...s})]})})]}),document.body):null),yu=({error:e})=>{const t=Zt(),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 Rt("div",{style:o.container,children:[Ot("h2",{children:"Something went wrong!"}),Ot("pre",{style:o.errorMessage,children:e?.message||"Unknown Error"}),Rt("details",{style:o.errorStackWrapper,children:[Ot("summary",{children:"Stack Trace"}),Ot("pre",{style:o.errorStack,children:e?.stack||"Unknown Stack"})]}),Ot("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),Ot(Ws,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},bu=({children:e})=>Ot(mo,{FallbackComponent:({error:e,...t})=>Ot(Ts,{children:Ot(yu,{...t,error:e})}),children:e}),$u=Yt(Rr)`
|
|
1294
|
-
position: relative;
|
|
1295
|
-
width: calc(100% - 24px);
|
|
1296
|
-
padding: 12px;
|
|
1297
|
-
background-color: ${({theme:e})=>e.colors.dark_grey};
|
|
1298
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border+Ns["050"]};
|
|
1299
|
-
`,vu=Yt(Rr)`
|
|
1300
|
-
margin-right: auto;
|
|
1301
|
-
margin-left: 32px;
|
|
1302
|
-
gap: 12px;
|
|
1303
|
-
`,wu=Yt(Rr)`
|
|
1304
|
-
margin-left: auto;
|
|
1305
|
-
margin-right: 32px;
|
|
1306
|
-
gap: 12px;
|
|
1307
|
-
`,Su=Yt(Rr)`
|
|
1308
|
-
position: absolute;
|
|
1309
|
-
left: 50%;
|
|
1310
|
-
transform: translateX(-50%);
|
|
1311
|
-
gap: 12px;
|
|
1312
|
-
`,Cu=({left:e=[],center:t=[],right:o=[]})=>Rt($u,{children:[Ot(vu,{children:e.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(Su,{children:t.map((e,t)=>e&&Ot(zt,{children:e},t))}),Ot(wu,{children:o.map((e,t)=>e&&Ot(zt,{children:e},t))})]}),ku=Yt(Yr)`
|
|
1313
|
-
color: ${({theme:e})=>e.text.grey};
|
|
1314
|
-
`,Eu=({icon:e,title:t,badge:o,badgeTooltip:i,loading:r})=>Rt(Rr,{$gap:6,children:[e&&Ot(e,{}),Ot(ku,{size:14,children:t}),void 0!==o&&Ot(ql,{text:i,children:Ot(Ms,{label:o})}),r&&Ot(zc,{})]}),Au=Yt.div`
|
|
1315
|
-
width: fit-content;
|
|
1316
|
-
height: fit-content;
|
|
1317
|
-
padding: 4px;
|
|
1318
|
-
gap: 4px;
|
|
1319
|
-
border-radius: 32px;
|
|
1320
|
-
border: 1px solid ${({theme:e})=>e.colors.border+Ns["070"]};
|
|
1321
|
-
|
|
1322
|
-
display: flex;
|
|
1323
|
-
flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
|
|
1324
|
-
align-items: center;
|
|
1325
|
-
justify-content: center;
|
|
1326
|
-
`,Du=Yt.div`
|
|
1327
|
-
width: 32px;
|
|
1328
|
-
height: 32px;
|
|
1329
|
-
|
|
1330
|
-
border-radius: 100%;
|
|
1331
|
-
background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Ns["070"]:e.colors.secondary+Ns["012"]};
|
|
1332
|
-
transition: background-color 0.3s;
|
|
1333
|
-
|
|
1334
|
-
display: flex;
|
|
1335
|
-
align-items: center;
|
|
1336
|
-
justify-content: center;
|
|
1337
|
-
|
|
1338
|
-
cursor: pointer;
|
|
1339
|
-
`,Tu=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:i})=>Rt(Au,{$orientation:e,$flip:t,children:[o.map(({icon:e,selected:t,onClick:o,tooltip:i},r)=>Ot(ql,{text:i,children:Ot(Du,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`main-nav-icon-${r}`)),!!o.length&&!!i.length&&Ot(Pl,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:e,selected:t,onClick:o,tooltip:i},r)=>Ot(ql,{text:i,children:Ot(Du,{$selected:t,onClick:o,children:Ot(e,{size:20})})},`sub-nav-icon-${r}`))]}),Nu=Yt.div`
|
|
1340
|
-
display: flex;
|
|
1341
|
-
flex-direction: column;
|
|
1342
|
-
width: 100%;
|
|
1343
|
-
`,Iu=Yt.div`
|
|
1344
|
-
display: flex;
|
|
1345
|
-
flex-direction: column;
|
|
1346
|
-
gap: 8px;
|
|
1347
|
-
`,_u=Yt.div`
|
|
1348
|
-
display: flex;
|
|
1349
|
-
align-items: center;
|
|
1350
|
-
gap: 16px;
|
|
1351
|
-
`,Ou=Yt(Zl)`
|
|
1352
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1353
|
-
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1354
|
-
`,Ru=({initialValues:e=[],value:t,onChange:o,title:i,tooltip:r,required:n,errorMessage:a})=>{const[s,l]=Pt(t||e);Mt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=Bt(JSON.stringify(c));Mt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const i=[...o];return i[t]=e,i})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return Rt(Nu,{children:[Ot(jd,{title:i,required:n,tooltip:r}),Ot(Iu,{children:s.map((e,t)=>{const o=t===s.length-1;return Rt(_u,{children:[Ot(Jd,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:pr(e)&&!u&&o}),t===s.length-1&&Ot(Ou,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:Ot(mt,{})}),Ot(Ou,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t),children:Ot(vt,{})})]},`input-list-${t}`)})}),!!a&&Ot(en,{children:a})]})},Fu=({col:e,colIdx:t,row:o,rowIdx:i,rowsLength:r,maxWidth:n,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:f,renderCondition:x}=e,y=o[c];if(x&&!x(o))return null;return Ot("td",{style:{maxWidth:n,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case Ho.Dropdown:const e=f?.find(e=>e.id===y);return Ot(ep,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:e,onSelect:e=>a(c,e.id,i),onDeselect:()=>a(c,"",i),hasError:!!s&&(!h||h&&pr(y))});case"multi-dropdown":const o=Array.isArray(y)&&f?.filter(e=>y.includes(e.id))||[];return Ot(ep,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:f||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(y)?y:[],e.id];a(c,t,i)},onDeselect:e=>{const t=(Array.isArray(y)?y:[]).filter(t=>t!==e.id);a(c,t,i)},hasError:!!s&&(!h||h&&pr(y))});default:const g=r>1&&i===r-1&&0===t&&pr(y);return Ot(Jd,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:y,onChange:({target:{value:e}})=>a(c,e,i),style:{maxWidth:n,paddingLeft:10},hasError:!!s&&(!h||h&&pr(y))})}})()},`input-table-${i}-${c}`)},zu=Yt.div`
|
|
1355
|
-
display: flex;
|
|
1356
|
-
flex-direction: column;
|
|
1357
|
-
width: 100%;
|
|
1358
|
-
`,Lu=Yt.button`
|
|
1359
|
-
margin-top: ${({$marginTop:e})=>e};
|
|
1360
|
-
background: none;
|
|
1361
|
-
border: none;
|
|
1362
|
-
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1363
|
-
opacity: ${({disabled:e})=>e?.5:1};
|
|
1364
|
-
`,Pu=({columns:e,initialValues:t=[],value:o,onChange:i,errorMessage:r,limitFieldsPerRow:n,title:a=""})=>{const[s,l]=Pt({}),[c,d]=Pt(o||t),p=Lt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);Mt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const i=p.get(t);if((!i?.renderCondition||i.renderCondition(e))&&(i?.required&&pr(o)))return!1}return!0}),h=Bt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((n||e.length)+.4))}px`;Mt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,i&&i(u))},[u]);const f=(e,t,o)=>{d(i=>{const r=vo(i);return r[o][e]=t,r})},x=Lt(()=>{if(n){const t=[];for(let o=0;;o+=n){const i=e.slice(o,o+n);if(!i.length)break;t.push(i)}return t}return[e]},[n,e]);return Rt(zu,{children:[Ot(jd,{title:a}),Rt("table",{style:{borderCollapse:"collapse"},children:[!n&&Ot("thead",{children:Rt("tr",{children:[e.map(({title:e,tooltip:t,required:o})=>Ot("th",{style:{maxWidth:g},children:Ot(jd,{title:e,required:o,tooltip:t})},`input-table-head-${e}`)),Ot("th",{})]})}),Ot("tbody",{children:c.map((t,o)=>Rt(zt,{children:[n&&o>0?Ot("tr",{children:Ot("td",{colSpan:x.length,children:Ot(Pl,{})})}):null,x.map((i,a)=>Rt("tr",{children:[i.map((e,i)=>Ot(Fu,{col:e,colIdx:i,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:n,errorMessage:r,handleChange:f},`input-table-row-${o}-col-${i}`)),0===a&&Ot("td",{children:Ot(Lu,{$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===Xo.Number?"0":"",t)));var t},children:Ot(vt,{})})})]},`input-table-matrix-${o}-${a}`))]},`input-table-row-${o}`))})]}),!!r&&Ot(en,{children:r}),Ot(qc,{onClick:()=>{d(e=>{const t=vo(e);return t.push(vo(s)),t})},disabled:m})]})},Mu=Yt.div`
|
|
1365
|
-
display: flex;
|
|
1366
|
-
flex-direction: column;
|
|
1367
|
-
width: 100%;
|
|
1368
|
-
`,Bu=Yt.div`
|
|
1369
|
-
display: flex;
|
|
1370
|
-
flex-direction: column;
|
|
1371
|
-
gap: 8px;
|
|
1372
|
-
`,Uu=Yt.div`
|
|
1373
|
-
display: flex;
|
|
1374
|
-
align-items: center;
|
|
1375
|
-
gap: 8px;
|
|
1376
|
-
`,ju=Yt.div`
|
|
1377
|
-
width: 100%;
|
|
1378
|
-
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
1379
|
-
`,Wu=Yt(Zl)`
|
|
1380
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1381
|
-
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1382
|
-
`,Hu={key:"",value:""},Xu=({initialKeyValuePairs:e=[],value:t,onChange:o,title:i,tooltip:r,disabled:n,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=Pt(t||e);Mt(()=>{p.length||u([{...Hu}])},[]);const h=p.filter(({key:e,value:t})=>!pr(e.trim())&&!pr(t.trim())),m=Bt(JSON.stringify(h));Mt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(i=>{const r=[...i];return r[o][e]=t,r})},f=p.length<=1,x=n||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),y=n||f&&x;return Rt(Mu,{children:[Ot(jd,{title:i,required:a,tooltip:r}),Ot(Bu,{children:p.map(({key:e,value:t},o)=>Rt(Uu,{children:[Ot(ju,{$maxWidth:d,children:Ot(Jd,{placeholder:l,disabled:n,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!a||a&&!e),autoFocus:pr(t)&&!f&&o===p.length-1})}),Ot(ju,{$maxWidth:o===p.length-1?d-38:d,children:Ot(Jd,{placeholder:c,disabled:n,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!a||a&&pr(t)),autoFocus:!1})}),o===p.length-1&&Ot(Wu,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Hu}),t})},children:Ot(mt,{})}),Ot(Wu,{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:Ot(vt,{})})]},`key-value-input-list-${o}`))}),!!s&&Ot(en,{children:s})]})},Gu=to`
|
|
1383
|
-
0% {
|
|
1384
|
-
background-position: 0% 50%;
|
|
1385
|
-
}
|
|
1386
|
-
100% {
|
|
1387
|
-
background-position: 100% 50%;
|
|
1388
|
-
}
|
|
1389
|
-
`,Vu=Yt(Yr)`
|
|
1390
|
-
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1391
|
-
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1392
|
-
background-clip: text;
|
|
1393
|
-
color: transparent;
|
|
1394
|
-
animation: ${Gu} 1s reverse linear infinite;
|
|
1395
|
-
`,Ku=({children:e="Loading...",textColor:t,stripColor:o,...i})=>{const r=Zt(),n=t||r.v2.colors.white[500],a=o||r.v2.colors.black[500];return Ot(Vu,{$textColor:n,$stripColor:a,...i,children:e})},Ju=Yt.div`
|
|
1396
|
-
display: flex;
|
|
1397
|
-
flex-direction: ${({$isVertical:e})=>e?"column":"row"};
|
|
1398
|
-
gap: ${({$isVertical:e})=>e?"12px":"24px"};
|
|
1399
|
-
${({$hasError:e})=>e&&Qt`
|
|
1400
|
-
border: 1px solid ${({theme:e})=>e.text.error};
|
|
1401
|
-
border-radius: 32px;
|
|
1402
|
-
padding: 8px;
|
|
1403
|
-
`}
|
|
1404
|
-
`,qu=(e,t)=>!t?.length||!!t?.find(t=>t===e),Yu=({isVertical:e,title:t="Monitors",required:o,errorMessage:i,allowedSignals:r,selectedSignals:n,setSelectedSignals:a})=>{const[s,l]=Pt(1===n.length),c=Bt(JSON.stringify(n));Mt(()=>{const e=n;e.length||os.forEach(({id:t})=>{qu(t,r)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[r]);return Rt("div",{children:[t&&Ot(jd,{title:t,required:o}),Ot(Ju,{$isVertical:e,$hasError:!!i,children:os.map(e=>{const t=qu(e.id,r),o=((e,t)=>!!t?.find(t=>t===e))(e.id,n);return t?Ot($c,{title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,i=t?[...n,o]:n.filter(e=>e!==o);a(i),l(1===i.length)})(e.id,t)},e.id):null})}),!!i&&Ot(en,{children:i})]})},Qu=Yt.div`
|
|
1405
|
-
display: flex;
|
|
1406
|
-
gap: 8px;
|
|
1407
|
-
align-items: center;
|
|
1408
|
-
`,Zu=Yt(Ws)`
|
|
1409
|
-
display: flex;
|
|
1410
|
-
align-items: center;
|
|
1411
|
-
justify-content: center;
|
|
1412
|
-
gap: 8px;
|
|
1413
|
-
min-width: 90px;
|
|
1414
|
-
`,eh=({buttons:e})=>{const t=Zt(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),i=({button:e,rotate:o})=>e.icon?Ot(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Ot("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Ot(Qu,{children:e.map((e,t)=>Ot(ql,{text:e.tooltip||"",children:Rt(Zu,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[o({button:e,index:t})&&i({button:e,rotate:0}),e.label,!o({button:e,index:t})&&i({button:e,rotate:180})]},t)},t))})},th=Yt.div`
|
|
1415
|
-
width: 100%;
|
|
1416
|
-
height: 100%;
|
|
1417
|
-
|
|
1418
|
-
* {
|
|
1419
|
-
animation: none !important;
|
|
1420
|
-
transition: none !important;
|
|
1421
|
-
}
|
|
1422
|
-
`,oh=({width:e="100%",height:t="100%",gap:o=0,elements:i,noAnimation:r=!1,onTopIndexChange:n})=>{const a=Bt(null),s=Lt(()=>o?i.map((e,t)=>Ot("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${t}`)):i,[i,o]),l=Ut(e=>{if(!n||!a.current)return;const t=a.current.findItemIndex(e);n(t)},[n]),c=Ot(fo,{ref:a,style:{width:e,height:t},onScroll:n?l:void 0,children:s});return r?Ot(th,{children:c}):c},ih=Yt.div`
|
|
1423
|
-
display: flex;
|
|
1424
|
-
justify-content: space-between;
|
|
1425
|
-
align-items: center;
|
|
1426
|
-
gap: 16px;
|
|
1427
|
-
`,rh=Yt.div`
|
|
1428
|
-
display: flex;
|
|
1429
|
-
flex-direction: column;
|
|
1430
|
-
gap: 4px;
|
|
1431
|
-
`,nh=Yt.div`
|
|
1432
|
-
display: flex;
|
|
1433
|
-
align-items: center;
|
|
1434
|
-
gap: 8px;
|
|
1435
|
-
`,ah=Yt(Yr)``,sh=Yt(Yr)``,lh=({title:e,description:t,badgeLabel:o,icon:i,actionButton:r,size:n="medium"})=>{const a="small"===n?16:"medium"===n?20:24,s="small"===n?12:"medium"===n?14:16;return Rt(ih,{children:[Rt(rh,{children:[Rt(nh,{children:[i&&Ot(i,{size:a}),Ot(ah,{weight:300,size:a,children:e}),void 0!==o&&Ot(Ms,{label:o,filled:!!o})]}),Ot(sh,{weight:200,opacity:.8,size:s,children:t})]}),r&&Ot("div",{children:r})]})},ch=Yt.div`
|
|
1436
|
-
position: relative;
|
|
1437
|
-
gap: 0;
|
|
1438
|
-
z-index: 0;
|
|
1439
|
-
display: grid;
|
|
1440
|
-
grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
|
|
1441
|
-
`,dh=Yt.button`
|
|
1442
|
-
flex: 1;
|
|
1443
|
-
display: flex;
|
|
1444
|
-
align-items: center;
|
|
1445
|
-
justify-content: center;
|
|
1446
|
-
gap: 4px;
|
|
1447
|
-
padding: 6px 12px;
|
|
1448
|
-
background-color: transparent;
|
|
1449
|
-
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1450
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1451
|
-
cursor: pointer;
|
|
1452
|
-
&:hover {
|
|
1453
|
-
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1454
|
-
}
|
|
1455
|
-
`,ph=Yt.div`
|
|
1456
|
-
position: absolute;
|
|
1457
|
-
top: ${({$y:e})=>e}px;
|
|
1458
|
-
left: ${({$x:e})=>e}px;
|
|
1459
|
-
z-index: -1;
|
|
1460
|
-
width: ${({$width:e})=>e}px;
|
|
1461
|
-
height: ${({$height:e})=>e}px;
|
|
1462
|
-
background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1463
|
-
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1464
|
-
transition: all 0.3s;
|
|
1465
|
-
`,uh=({options:e=[],selected:t,setSelected:o})=>{const i=e.findIndex(e=>e.value===t),[r,n]=Pt(e[i]?.selectedBgColor||""),[a,s]=Pt({width:0,height:0}),[l,c]=Pt({x:0,y:0}),d=Bt(null);return Mt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*i,y:0}))},[t,i]),Rt(ch,{$count:e.length,children:[e.map(({icon:i,label:r,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return Rt(dh,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(a),n(s||"")},children:[i&&Ot(i,{}),r&&Ot(Yr,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:r})]},`segment-${r||c}-${a}`)}),Ot(ph,{$bgColor:r,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===i,$isLastItem:i===e.length-1})]})},hh=Yt(Ws)`
|
|
1466
|
-
gap: 8px;
|
|
1467
|
-
text-transform: none;
|
|
1468
|
-
text-decoration: none;
|
|
1469
|
-
border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
|
|
1470
|
-
&.not-selected {
|
|
1471
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Ns["060"]};
|
|
1472
|
-
&:hover {
|
|
1473
|
-
background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
&.selected {
|
|
1477
|
-
background-color: ${({theme:e})=>e.colors.majestic_blue+Ns["030"]};
|
|
1478
|
-
}
|
|
1479
|
-
`,mh=Yt(Yr)`
|
|
1480
|
-
white-space: nowrap;
|
|
1481
|
-
overflow: hidden;
|
|
1482
|
-
text-overflow: ellipsis;
|
|
1483
|
-
font-size: 14px;
|
|
1484
|
-
`,gh=({label:e,onClick:t,icon:o,iconSrc:i,badgeLabel:r,badgeFilled:n,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Zt();return Rt(hh,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[o&&Ot("div",{children:Ot(o,{fill:p.text.info})}),i&&Ot("div",{children:Ot("img",{src:i,alt:"",width:16,height:16})}),Ot(mh,{children:e}),a&&Ot("div",{children:Ot(st,{fill:p.colors.majestic_blue_soft})}),void 0!==r&&Ot(Ms,{label:r,filled:n||a})]})},fh=Yt.div`
|
|
1485
|
-
display: flex;
|
|
1486
|
-
flex-direction: column;
|
|
1487
|
-
gap: 16px;
|
|
1488
|
-
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1489
|
-
`,xh=Yt.div`
|
|
1490
|
-
display: flex;
|
|
1491
|
-
align-items: center;
|
|
1492
|
-
gap: 16px;
|
|
1493
|
-
`,yh=Yt.div`
|
|
1494
|
-
width: 50px;
|
|
1495
|
-
height: 50px;
|
|
1496
|
-
border-radius: 8px;
|
|
1497
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1498
|
-
background-size: 200% 100%;
|
|
1499
|
-
animation: ${Fs} 10s infinite linear;
|
|
1500
|
-
`,bh=Yt(Fr)`
|
|
1501
|
-
flex: 1;
|
|
1502
|
-
gap: 12px;
|
|
1503
|
-
`,$h=Yt.div`
|
|
1504
|
-
width: ${({$width:e})=>e};
|
|
1505
|
-
height: 16px;
|
|
1506
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1507
|
-
background-size: 200% 100%;
|
|
1508
|
-
animation: ${Fs} 1.5s infinite linear;
|
|
1509
|
-
border-radius: 4px;
|
|
1510
|
-
`,vh=({size:e=5,maxWidth:t})=>Ot(fh,{$maxWidth:t,children:[...Array(e)].map((e,t)=>Rt(xh,{children:[Ot(yh,{}),Rt(bh,{children:[Ot($h,{$width:"80%"}),Ot($h,{$width:"100%"})]})]},t))});var wh;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(wh||(wh={}));const Sh=Yt.div`
|
|
1511
|
-
display: flex;
|
|
1512
|
-
flex-direction: column;
|
|
1513
|
-
gap: 32px;
|
|
1514
|
-
`,Ch=Yt.div`
|
|
1515
|
-
display: flex;
|
|
1516
|
-
gap: 16px;
|
|
1517
|
-
padding: 8px;
|
|
1518
|
-
opacity: ${({$state:e})=>e===wh.Active?1:e===wh.Disabled?.5:.8};
|
|
1519
|
-
transition: all 0.3s;
|
|
1520
|
-
`,kh=Yt(Rr)`
|
|
1521
|
-
justify-content: center;
|
|
1522
|
-
width: 24px;
|
|
1523
|
-
height: 24px;
|
|
1524
|
-
border-radius: 32px;
|
|
1525
|
-
border: ${({theme:e,$state:t})=>t===wh.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
|
|
1526
|
-
opacity: ${({$state:e})=>e===wh.Finished?.8:1};
|
|
1527
|
-
`,Eh=Yt(Fr)`
|
|
1528
|
-
justify-content: center;
|
|
1529
|
-
gap: 8px;
|
|
1530
|
-
`,Ah=Yt(Yr)``,Dh=Yt(Yr)``,Th=({data:e,currentStep:t=0})=>{const[o,i]=Pt([]);return Mt(()=>{i(e.map((e,o)=>o<t-1?{...e,state:wh.Finished,subtitle:e.subtitle||Go.Success}:o===t-1?{...e,state:wh.Active,subtitle:""}:{...e,state:wh.Disabled,subtitle:""}))},[t,e]),Ot(Sh,{children:o.map((e,t)=>Rt(Ch,{$state:e.state,children:[Ot(kh,{$state:e.state,children:[wh.Active,wh.Disabled].includes(e.state)?Ot(Yr,{size:12,children:e.stepNumber}):e.state===wh.Finished?Ot(st,{size:20}):null}),Rt(Eh,{children:[Ot(Ah,{family:"secondary",children:e.title}),e.subtitle&&Ot(Dh,{size:10,weight:300,children:e.subtitle})]})]},t))})},Nh=Yt(Rr)`
|
|
1531
|
-
width: fit-content;
|
|
1532
|
-
gap: 6px;
|
|
1533
|
-
padding: 6px 12px;
|
|
1534
|
-
border-radius: 360px;
|
|
1535
|
-
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1536
|
-
`,Ih=Yt(Yr)`
|
|
1537
|
-
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1538
|
-
`,_h=({type:e=Go.Info,icon:t,title:o,size:i,family:r,children:n,...a})=>Rt(Nh,{$type:e,children:[t&&Ot(t,{}),Ot(Ih,{$type:e,size:i||12,family:r||"secondary",...a,children:n||o})]}),Oh=Yt.div`
|
|
1539
|
-
display: flex;
|
|
1540
|
-
flex-direction: column;
|
|
1541
|
-
position: relative;
|
|
1542
|
-
width: 100%;
|
|
1543
|
-
`,Rh=Yt.div`
|
|
1544
|
-
width: 100%;
|
|
1545
|
-
display: flex;
|
|
1546
|
-
align-items: center;
|
|
1547
|
-
gap: 12px;
|
|
1548
|
-
transition: border-color 0.3s;
|
|
1549
|
-
border-radius: 24px;
|
|
1550
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1551
|
-
${({$disabled:e})=>e&&Qt`
|
|
1552
|
-
background-color: ${({theme:e})=>e.colors.border};
|
|
1553
|
-
cursor: not-allowed;
|
|
1554
|
-
opacity: 0.6;
|
|
1555
|
-
`}
|
|
1556
|
-
|
|
1557
|
-
${({$hasError:e})=>e&&Qt`
|
|
1558
|
-
border-color: ${({theme:e})=>e.text.error};
|
|
1559
|
-
`}
|
|
1560
|
-
|
|
1561
|
-
${({$isActive:e})=>e&&Qt`
|
|
1562
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1563
|
-
`}
|
|
1564
|
-
|
|
1565
|
-
&:hover {
|
|
1566
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1567
|
-
}
|
|
1568
|
-
&:focus-within {
|
|
1569
|
-
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1570
|
-
}
|
|
1571
|
-
`,Fh=Yt.textarea`
|
|
1572
|
-
flex: 1;
|
|
1573
|
-
border: none;
|
|
1574
|
-
outline: none;
|
|
1575
|
-
background: none;
|
|
1576
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
1577
|
-
font-size: 14px;
|
|
1578
|
-
padding: 12px 20px 0;
|
|
1579
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1580
|
-
font-weight: 300;
|
|
1581
|
-
line-height: 22px;
|
|
1582
|
-
&::placeholder {
|
|
1583
|
-
color: ${({theme:e})=>e.text.secondary};
|
|
1584
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1585
|
-
opacity: 0.4;
|
|
1586
|
-
font-size: 14px;
|
|
1587
|
-
font-weight: 300;
|
|
1588
|
-
line-height: 22px; /* 157.143% */
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
&:disabled {
|
|
1592
|
-
background-color: ${({theme:e})=>e.colors.border};
|
|
1593
|
-
cursor: not-allowed;
|
|
1594
|
-
}
|
|
1595
|
-
`,zh=({errorMessage:e,title:t,tooltip:o,required:i,onChange:r,name:n,...a})=>{const s=Bt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return Rt(Oh,{children:[Ot(jd,{title:t,required:i,tooltip:o}),Ot(Rh,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:Ot(Fh,{ref:s,"data-id":n,name:n,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),r?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&Ot(en,{children:e})]})},Lh=Yt.div`
|
|
1596
|
-
display: flex;
|
|
1597
|
-
align-items: center;
|
|
1598
|
-
gap: 12px;
|
|
1599
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1600
|
-
opacity: ${({$disabled:e})=>e?.6:1};
|
|
1601
|
-
`,Ph=Yt.div`
|
|
1602
|
-
width: 24px;
|
|
1603
|
-
height: 12px;
|
|
1604
|
-
border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
|
|
1605
|
-
border-radius: 20px;
|
|
1606
|
-
display: flex;
|
|
1607
|
-
align-items: center;
|
|
1608
|
-
padding: 2px;
|
|
1609
|
-
background-color: transparent;
|
|
1610
|
-
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
1611
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1612
|
-
opacity: ${({$isActive:e})=>e?1:.5};
|
|
1613
|
-
transition: border-color 0.3s, opacity 0.3s;
|
|
1614
|
-
&::before {
|
|
1615
|
-
content: '';
|
|
1616
|
-
width: 12px;
|
|
1617
|
-
height: 12px;
|
|
1618
|
-
border-radius: 50%;
|
|
1619
|
-
background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
|
|
1620
|
-
transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
|
|
1621
|
-
transition: background-color 0.3s, transform 0.3s;
|
|
1622
|
-
}
|
|
1623
|
-
`,Mh=({title:e,tooltip:t,initialValue:o=!1,onChange:i,disabled:r,allowPropagation:n=!1,flipHorizontally:a})=>{const[s,l]=Pt(o);Mt(()=>l(o),[o]);return Rt(Lh,{$disabled:r,onClick:e=>{r||(n||e.stopPropagation(),i?i(!s):l(e=>!e))},children:[!a&&Ot(Ph,{$disabled:r,$isActive:s}),(e||t)&&Ot(ql,{text:t,withIcon:!0,children:e&&Ot(Yr,{size:14,children:e})}),a&&Ot(Ph,{$disabled:r,$isActive:s})]})};var Bh={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 Uh=Yt.div`
|
|
1624
|
-
width: ${({$width:e})=>e}px;
|
|
1625
|
-
height: ${({$height:e})=>e}px;
|
|
1626
|
-
position: relative;
|
|
1627
|
-
`,jh=({width:e=620})=>{const{darkMode:t}=Zt(),o=e/(620/220);return Ot(Uh,{$width:e,$height:o,children:Ot(go,{autoplay:!0,loop:!0,animationData:Bh,style:{width:o,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}})})},Wh=Yt.div`
|
|
1628
|
-
display: flex;
|
|
1629
|
-
align-items: center;
|
|
1630
|
-
justify-content: center;
|
|
1631
|
-
gap: 4px;
|
|
1632
|
-
min-width: ${({$minWidth:e})=>e};
|
|
1633
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
1634
|
-
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
1635
|
-
border-radius: 100px;
|
|
1636
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
1637
|
-
`,Hh=({label:e,leftIcon:t,rightIcon:o,tooltip:i,status:r=Jo.Unknown,useSecondaryTone:n=!1,invertColors:a=!1,textSize:s,textColor:l,backgroundColor:c,minWidth:d="unset",fullWidth:p=!1})=>{const u=Zt(),h=e?.toString(),m=r?[Jo.Disabled].includes(r)?Zi(u,r,a?"400":"700"):[Jo.Unknown].includes(r)?Zi(u,r,"600"):Zi(u,r,a?n?"400":"300":n?"700":"500"):u.v2.colors.grey[200],g=l||(a&&![Jo.Unknown].includes(r)?m:[Jo.Disabled].includes(r)?u.v2.colors.grey[400]:[Go.Error,Go.Warning,Go.Success].includes(r)?u.v2.colors.black[500]:u.v2.colors.white[500]),f=c||(a&&![Jo.Unknown].includes(r)?[Jo.Disabled].includes(r)?u.v2.colors.grey[700]:u.v2.colors.silver[600]:m);return Ot(ql,{text:i,fullWidth:p,children:Rt(Wh,{$backgroundColor:f,$minWidth:d,$fullWidth:p,$hasLabel:!!h,children:[t&&Ot(t,{fill:g,size:14}),h&&Ot(Gr,{color:g,size:s||Hr.XXS,nowrap:!0,children:h}),o&&Ot(o,{fill:g,size:14})]})})},Xh=Yt.span`
|
|
1638
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1639
|
-
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
1640
|
-
font-weight: 400;
|
|
1641
|
-
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
1642
|
-
`,Gh=Yt.span`
|
|
1643
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1644
|
-
font-size: 14px;
|
|
1645
|
-
font-weight: 400;
|
|
1646
|
-
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
1647
|
-
`,Vh=({label:e,tooltip:t,required:o,badge:i,width:r,smallAndDark:n})=>e||t||o?Rt(Rr,{$width:r,$justifyContent:"space-between",children:[e&&Ot(Xh,{$smallAndDark:n,children:e}),Rt(Rr,{$gap:4,children:[i&&Ot(Hh,{...i,textSize:Hr.XXXS}),o&&Ot(Gh,{children:"*"}),t&&Ot(ql,{text:t,withIcon:!0})]})]}):null,Kh=({errorMessage:e,warnMessage:t,helpMessage:o})=>{const i=Zt(),r=e?i.v2.colors.red[500]:t?i.v2.colors.yellow[500]:i.v2.colors.silver[200],n=Ot(Ve,{size:12,fill:r});return e||t||o?Rt(Rr,{$alignItems:"center",children:[n&&Ot(Fr,{children:n}),Ot(Gr,{size:Hr.XXS,weight:400,color:r,children:e||t||o})]}):null},Jh=Yt.div`
|
|
1648
|
-
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
1649
|
-
|
|
1650
|
-
display: flex;
|
|
1651
|
-
align-self: stretch;
|
|
1652
|
-
align-items: center;
|
|
1653
|
-
gap: 8px;
|
|
1654
|
-
border-radius: 6px;
|
|
1655
|
-
|
|
1656
|
-
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]};
|
|
1657
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1658
|
-
${({$disabled:e,$error:t})=>!e&&!t&&Qt`
|
|
1659
|
-
&:hover,
|
|
1660
|
-
&:active,
|
|
1661
|
-
&:focus-within {
|
|
1662
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1663
|
-
}
|
|
1664
|
-
`}
|
|
1665
|
-
`,qh=Yt.input`
|
|
1666
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1667
|
-
width: ${({$width:e})=>e||"unset"};
|
|
1668
|
-
|
|
1669
|
-
flex: 1;
|
|
1670
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1671
|
-
font-size: ${({$small:e})=>e?"12px":"14px"};
|
|
1672
|
-
font-weight: 400;
|
|
1673
|
-
|
|
1674
|
-
cursor: text;
|
|
1675
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1676
|
-
&::placeholder {
|
|
1677
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
&:disabled {
|
|
1681
|
-
cursor: not-allowed;
|
|
1682
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1683
|
-
&::placeholder {
|
|
1684
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
overflow: hidden;
|
|
1689
|
-
text-overflow: ellipsis;
|
|
1690
|
-
white-space: nowrap;
|
|
1691
|
-
`,Yh=Yt.div`
|
|
1692
|
-
display: flex;
|
|
1693
|
-
align-items: center;
|
|
1694
|
-
justify-content: center;
|
|
1695
|
-
cursor: pointer;
|
|
1696
|
-
`,Qh=({label:e,required:t,tooltip:o,badge:i,leftIcon:r,rightIcon:n,hasError:a,errorMessage:s,warnMessage:l,helpMessage:c,type:d=Xo.Text,name:p,value:u,onChange:h,disabled:m,maxWidth:g,width:f,small:x=!1,...y})=>{const b=Zt(),$=d===Xo.Password,[v,w]=Pt(!1),[S,C]=Pt(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 Rt(Fr,{$width:f,$gap:6,children:[Ot(Vh,{label:e,tooltip:o,required:t,badge:i}),Rt(Jh,{$small:x,$disabled:m,$error:k,children:[r?Ot(r,{size:A,fill:E}):null,Ot(qh,{"data-id":p,type:v||d===Xo.Number?Xo.Text:d,name:p,value:u,onChange:e=>{e.stopPropagation();const t=e.target.value;d===Xo.Number&&(e.target.value=Sr(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}),$?Ot(Yh,{onClick:()=>w(e=>!e),children:Ot(v?yt:bt,{size:A,fill:E})}):n?Ot(n,{size:A,fill:E}):null]}),Ot(Kh,{errorMessage:S||s,warnMessage:l,helpMessage:c})]})};var Zh,em;!function(e){e.S="s",e.L="l"}(Zh||(Zh={})),function(e){e.Filled="filled",e.Underline="underline"}(em||(em={}));const tm=Yt.div`
|
|
1697
|
-
display: flex;
|
|
1698
|
-
align-items: center;
|
|
1699
|
-
gap: 2px;
|
|
1700
|
-
padding: 3px;
|
|
1701
|
-
border-radius: 8px;
|
|
1702
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
1703
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1704
|
-
`,om=Yt.button`
|
|
1705
|
-
flex: 1;
|
|
1706
|
-
display: flex;
|
|
1707
|
-
align-items: center;
|
|
1708
|
-
justify-content: center;
|
|
1709
|
-
gap: 8px;
|
|
1710
|
-
padding: ${({$size:e})=>e===Zh.S?"4px 8px":"8px 16px"};
|
|
1711
|
-
border-radius: 6px;
|
|
1712
|
-
border: none;
|
|
1713
|
-
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
1714
|
-
|
|
1715
|
-
${({$disabled:e,$isSelected:t,$selectedBgColor:o,theme:i})=>e?Qt`
|
|
1716
|
-
cursor: not-allowed;
|
|
1717
|
-
background-color: ${t?(o||i.v2.colors.black[500])+Ns["040"]:"transparent"};
|
|
1718
|
-
`:Qt`
|
|
1719
|
-
cursor: pointer;
|
|
1720
|
-
background-color: ${t?o||i.v2.colors.black[500]:"transparent"};
|
|
1721
|
-
&:hover {
|
|
1722
|
-
background-color: ${t?o||i.v2.colors.black[500]:i.v2.colors.silver[800]};
|
|
1723
|
-
}
|
|
1724
|
-
`}
|
|
1725
|
-
`,im=Yt.div`
|
|
1726
|
-
display: flex;
|
|
1727
|
-
align-items: stretch;
|
|
1728
|
-
`,rm=Yt.button`
|
|
1729
|
-
display: flex;
|
|
1730
|
-
height: 34px;
|
|
1731
|
-
padding: 8px 12px 8px 16px;
|
|
1732
|
-
justify-content: center;
|
|
1733
|
-
align-items: center;
|
|
1734
|
-
gap: 8px;
|
|
1735
|
-
border: none;
|
|
1736
|
-
border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
|
|
1737
|
-
border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
|
|
1738
|
-
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
|
|
1739
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1740
|
-
transition:
|
|
1741
|
-
border-color 0.2s,
|
|
1742
|
-
background-color 0.2s,
|
|
1743
|
-
border-radius 0.2s;
|
|
1744
|
-
&:hover {
|
|
1745
|
-
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
1746
|
-
}
|
|
1747
|
-
`,nm=({"data-id":e,size:t=Zh.L,variant:o=em.Filled,options:i=[],selected:r,setSelected:n,disabled:a})=>{const s=Zt(),l=o===em.Underline,c=l?rm:om;return Ot(l?im:tm,{"data-id":e,children:i.map(({value:e,label:o,icon:i,tooltip:d,selectedBgColor:p,disabled:u},h)=>{const m=r===e,g=u||a,f=g?s.v2.colors.grey[400]:l||m?s.v2.colors.white[500]:s.v2.colors.grey[300],x=t===Zh.S?Hr.XXS:Hr.XS,y=m?500:400,b=Rt(Ft,{children:[i&&Ot(i,{fill:f}),o&&Ot(Gr,{size:x,weight:y,color:f,nowrap:!0,children:o})]});return Ot(c,{onClick:()=>!g&&n(e),$disabled:g,$isSelected:m,$size:t,...!l&&{$selectedBgColor:p},children:d?Ot(ql,{text:d,withIcon:!0,children:b}):b},`segment-${o||h}-${e}`)})})},am=Yt.div`
|
|
1748
|
-
box-sizing: border-box !important;
|
|
1749
|
-
width: ${({$width:e})=>e??"fit-content"};
|
|
1750
|
-
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
1751
|
-
display: flex;
|
|
1752
|
-
align-self: stretch;
|
|
1753
|
-
align-items: center;
|
|
1754
|
-
gap: 8px;
|
|
1755
|
-
overflow: hidden;
|
|
1756
|
-
border-radius: 6px;
|
|
1757
|
-
|
|
1758
|
-
border: none;
|
|
1759
|
-
border-radius: 6px;
|
|
1760
|
-
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:o,$emphasizeBackgroundColor:i,theme:r})=>{const n=o??r.v2.colors.silver[800],a=i??r.v2.colors.silver[700];return e||t?a:n}};
|
|
1761
|
-
`,sm=Yt.input`
|
|
1762
|
-
min-width: 0;
|
|
1763
|
-
flex: 1;
|
|
1764
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1765
|
-
font-size: 14px;
|
|
1766
|
-
font-weight: 400;
|
|
1767
|
-
line-height: 20px;
|
|
1768
|
-
|
|
1769
|
-
cursor: text;
|
|
1770
|
-
color: ${({$textColor:e})=>e};
|
|
1771
|
-
&::placeholder {
|
|
1772
|
-
color: ${({$textColor:e})=>e};
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
overflow: hidden;
|
|
1776
|
-
text-overflow: ellipsis;
|
|
1777
|
-
white-space: nowrap;
|
|
1778
|
-
`,lm=({"data-id":e,value:t,onChange:o,placeholder:i,width:r,segment:n,idleBackgroundColor:a,emphasizeBackgroundColor:s})=>{const l=Zt(),[c,d]=Pt(!1),[p,u]=Pt(!1),[h,m]=Pt(!1),g=c?l.v2.colors.white[500]:l.v2.colors.silver[200],f=!!n?.options?.length,x=Lt(()=>{if(f)return n?.options.find(e=>e.value===n.selected)?.label},[f,n?.options,n?.selected]),y=Lt(()=>i||(f&&x?`Search by ${x.toLowerCase()}`:"Search..."),[i,f,x]);return Rt(am,{$width:r,$withSegment:f,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),$isHovered:p&&!h,$isActive:c,$idleBackgroundColor:a,$emphasizeBackgroundColor:s,children:[Ot($t,{size:18,fill:g}),Ot(sm,{"data-id":e??"search",name:"search",type:"text",placeholder:y,value:t,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>d(!0),onBlur:()=>d(!1),$textColor:g}),f&&Ot("div",{style:{flexShrink:0},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:Ot(nm,{"data-id":n["data-id"],options:n.options,selected:n.selected,setSelected:n.setSelected,size:Zh.S})})]})},cm=Yt.div`
|
|
1779
|
-
border-radius: 100%;
|
|
1780
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1781
|
-
position: relative;
|
|
1782
|
-
`,dm=Yt.div`
|
|
1783
|
-
width: 80px;
|
|
1784
|
-
height: 80px;
|
|
1785
|
-
border-radius: 100%;
|
|
1786
|
-
border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
|
|
1787
|
-
border-right-color: transparent;
|
|
1788
|
-
border-left-color: transparent;
|
|
1789
|
-
border-bottom-color: transparent;
|
|
1790
|
-
animation: spin 1s linear infinite;
|
|
1791
|
-
@keyframes spin {
|
|
1792
|
-
to {
|
|
1793
|
-
transform: rotate(360deg);
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
`,pm=Yt(Gr)`
|
|
1797
|
-
position: absolute;
|
|
1798
|
-
top: 50%;
|
|
1799
|
-
left: 50%;
|
|
1800
|
-
transform: translate(-50%, -50%);
|
|
1801
|
-
`,um=({percentage:e})=>Rt(cm,{children:[Ot(dm,{}),"number"==typeof e?Ot(pm,{size:Hr.M,weight:500,children:`${e}%`}):null]}),hm={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 mm(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const i=(e.match(/[^0-9]*$/)||"").toString();return hm[i]?{value:t,unit:i}:{value:t,unit:"px"}}function gm(e){const t=mm(e);return`${t.value}${t.unit}`}const fm=((e,t,o)=>{const i=`react-spinners-${e}-${o}`;if("undefined"==typeof window||!window.document)return i;const r=document.createElement("style");document.head.appendChild(r);const n=r.sheet,a=`\n @keyframes ${i} {\n ${t}\n }\n `;return n&&n.insertRule(a,0),i})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),xm=({loading:e=!0,color:t,scale:o=1,speedMultiplier:i=1,cssOverride:r={},style:n={},...a})=>{const s=Zt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=mm(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...n,...r},m=(e,t)=>({position:"absolute",width:gm(1.5),height:gm(4),borderRadius:gm(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${fm} ${1.2/i}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return Rt("span",{style:h,...a,children:[Ot("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Ot("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Ot("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Ot("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Ot("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Ot("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Ot("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},ym=Yt.div`
|
|
1802
|
-
width: ${({$size:e})=>e}px;
|
|
1803
|
-
height: ${({$size:e})=>e}px;
|
|
1804
|
-
border-radius: 100%;
|
|
1805
|
-
background: ${({$color:e})=>e};
|
|
1806
|
-
display: flex;
|
|
1807
|
-
align-items: center;
|
|
1808
|
-
justify-content: center;
|
|
1809
|
-
`,bm=({scale:e,icon:t})=>{const o=Zt();return Ot(ym,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:Ot(ym,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:Ot(ym,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:Ot(ym,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:Ot(ym,{$size:23*e,$color:"#50F6E8",children:Ot(t,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},$m=434,vm=635,wm=Yt.div`
|
|
1810
|
-
width: ${434}px;
|
|
1811
|
-
height: ${635}px;
|
|
1812
|
-
display: flex;
|
|
1813
|
-
flex-direction: column;
|
|
1814
|
-
align-items: center;
|
|
1815
|
-
justify-content: center;
|
|
1816
|
-
padding: 16px;
|
|
1817
|
-
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
1818
|
-
position: relative;
|
|
1819
|
-
`,Sm=Yt.div`
|
|
1820
|
-
position: absolute;
|
|
1821
|
-
top: 50%;
|
|
1822
|
-
left: 50%;
|
|
1823
|
-
transform: translate(-50%, -50%);
|
|
1824
|
-
`,Cm=()=>Rt(wm,{children:[Ot(Sm,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Ot(Sm,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Ot("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Ot("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Ot("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Ot("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Ot("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Ot("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Ot("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Sm,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Sm,{children:Rt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Ot("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)"}),Ot("defs",{children:Rt("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Ot("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Ot("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Ot("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Ot("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Ot("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Ot("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Ot("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Ot("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Ot("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Ot("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Ot("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Ot(Sm,{children:Ot(G,{size:112})})]}),km=to`
|
|
1825
|
-
0% {
|
|
1826
|
-
background-position: 0% 50%;
|
|
1827
|
-
}
|
|
1828
|
-
100% {
|
|
1829
|
-
background-position: 100% 50%;
|
|
1830
|
-
}
|
|
1831
|
-
`,Em=Yt(Gr)`
|
|
1832
|
-
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1833
|
-
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1834
|
-
background-clip: text;
|
|
1835
|
-
color: transparent;
|
|
1836
|
-
animation: ${km} 1s reverse linear infinite;
|
|
1837
|
-
`,Am=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),i=Math.floor(o/60),r=o%60;return`${String(i).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Dm=({icon:e,title:t,titleColor:o,titleSize:i=Hr.S,subTitle:r,subTitleColor:n,subTitleSize:a=Hr.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,withSpinnerOld:p,scaleSpinnerOld:u=1,percentage:h,withVisual:m,visualIcon:g=kt})=>{const f=Zt(),[x,y]=Pt(()=>s?Am(s):"");Mt(()=>{if(!s)return;y(Am(s));const e=setInterval(()=>y(Am(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 Rt(Fr,{$gap:16,$alignItems:"center",children:[m?Ot(bm,{scale:1.7,icon:g}):d?Ot(um,{percentage:h}):p?Ot(xm,{scale:u}):null,(t||r||s||e)&&Rt(Fr,{$gap:8,$alignItems:"center",children:[Rt(Rr,{$gap:4,children:[e&&Ot(e,{}),l?Ot(Em,{align:"center",size:i,$titleColor:b,$gradientColor:v,children:t}):Ot(Gr,{align:"center",size:i,color:b,children:t})]}),r?Ot(Gr,{align:"center",size:a,color:$,children:r}):null,x?Ot(Gr,{align:"center",size:a,color:b,children:x}):null]})]})};var Tm,Nm;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Tm||(Tm={})),function(e){e.S="small",e.M="medium",e.L="large"}(Nm||(Nm={}));const Im=Yt.button`
|
|
1838
|
-
display: flex;
|
|
1839
|
-
align-items: center;
|
|
1840
|
-
justify-content: center;
|
|
1841
|
-
gap: 8px;
|
|
1842
|
-
${({$fullWidth:e})=>e&&Qt`
|
|
1843
|
-
width: 100%;
|
|
1844
|
-
`}
|
|
1845
|
-
border: none;
|
|
1846
|
-
border-radius: 6px;
|
|
1847
|
-
${({$size:e,$hasLabel:t})=>e===Nm.S?Qt`
|
|
1848
|
-
height: 32px;
|
|
1849
|
-
${t?Qt`
|
|
1850
|
-
padding: 8px 16px;
|
|
1851
|
-
`:Qt`
|
|
1852
|
-
width: 32px;
|
|
1853
|
-
`}
|
|
1854
|
-
`:e===Nm.M?Qt`
|
|
1855
|
-
height: 38px;
|
|
1856
|
-
${t?Qt`
|
|
1857
|
-
padding: 8px 18px;
|
|
1858
|
-
`:Qt`
|
|
1859
|
-
width: 38px;
|
|
1860
|
-
`}
|
|
1861
|
-
`:Qt`
|
|
1862
|
-
height: 44px;
|
|
1863
|
-
${t?Qt`
|
|
1864
|
-
padding: 8px 22px;
|
|
1865
|
-
`:Qt`
|
|
1866
|
-
width: 44px;
|
|
1867
|
-
`}
|
|
1868
|
-
`}
|
|
1869
|
-
|
|
1870
|
-
cursor: pointer;
|
|
1871
|
-
&:disabled {
|
|
1872
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1873
|
-
cursor: not-allowed;
|
|
1874
|
-
}
|
|
1875
|
-
&:enabled {
|
|
1876
|
-
${({$withShadow:e})=>e?Qt`
|
|
1877
|
-
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
1878
|
-
`:""}
|
|
1879
|
-
${({$variant:e})=>e===Tm.Primary?Qt`
|
|
1880
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
1881
|
-
&:hover {
|
|
1882
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
1883
|
-
}
|
|
1884
|
-
&:active {
|
|
1885
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
1886
|
-
}
|
|
1887
|
-
`:e===Tm.Secondary?Qt`
|
|
1888
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1889
|
-
&:hover {
|
|
1890
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1891
|
-
}
|
|
1892
|
-
&:active {
|
|
1893
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1894
|
-
}
|
|
1895
|
-
`:e===Tm.Text?Qt`
|
|
1896
|
-
background-color: transparent;
|
|
1897
|
-
&:hover {
|
|
1898
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1899
|
-
}
|
|
1900
|
-
&:active {
|
|
1901
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1902
|
-
}
|
|
1903
|
-
`:""}
|
|
1904
|
-
}
|
|
1905
|
-
`,_m=Ht(({"data-id":e,label:t,tooltip:o,leftIcon:i,rightIcon:r,variant:n=Tm.Primary,size:a=Nm.M,iconSize:s,loading:l,fullWidth:c,withShadow:d,textColor:p,disabled:u,onClick:h,...m},g)=>{const f=Zt(),x=s||(a===Nm.L?18:16),y=a===Nm.L?Hr.S:Hr.XS,b=p||(u?f.v2.colors.grey[400]:f.v2.colors.white[500]),[$,v]=Pt(!1),w=Ut(async e=>{e.stopPropagation(),v(!0),await(h?.(e)),v(!1)},[h]);return Ot(Im,{ref:g,"data-id":e,$variant:n,$size:a,$fullWidth:c,$withShadow:d,$hasLabel:!!t,disabled:u,onClick:l||$?void 0:w,...m,children:Ot(ql,{text:o,withIcon:!0,children:l||$?t?Ot(Ku,{size:f.v2.text.size[y],textColor:b}):Ot(zc,{}):Rt(Ft,{children:[i&&Ot(i,{size:x,fill:b}),t?Ot(Gr,{size:y,weight:500,color:b,nowrap:!0,children:t}):null,r&&Ot(r,{size:x,fill:b})]})})})});_m.displayName=_m.name;const Om=Yt.div`
|
|
1906
|
-
display: flex;
|
|
1907
|
-
align-items: center;
|
|
1908
|
-
justify-content: center;
|
|
1909
|
-
width: fit-content;
|
|
1910
|
-
height: fit-content;
|
|
1911
|
-
padding: 8px;
|
|
1912
|
-
border-radius: 100%;
|
|
1913
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1914
|
-
`,Rm=({icon:e=ct,title:t="No data",subTitle:o,button:i})=>{const r=Zt().v2.colors.silver[200];return Rt(Fr,{$gap:12,$alignItems:"center",children:[Ot(Om,{children:Ot(e,{size:32,fill:r})}),Rt(Fr,{$gap:4,$alignItems:"center",children:[Ot(Gr,{size:Hr.S,align:"center",children:t}),o&&Ot(Gr,{size:Hr.XXS,align:"center",color:r,children:o})]}),i&&Ot(_m,{variant:Tm.Secondary,...i})]})};var Fm;!function(e){e.S="small",e.L="large"}(Fm||(Fm={}));const zm=Yt.div`
|
|
1915
|
-
width: fit-content;
|
|
1916
|
-
display: flex;
|
|
1917
|
-
align-items: center;
|
|
1918
|
-
gap: 8px;
|
|
1919
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1920
|
-
`,Lm=Yt.div`
|
|
1921
|
-
width: ${({$size:e})=>e===Fm.S?"16px":"20px"};
|
|
1922
|
-
height: ${({$size:e})=>e===Fm.S?"16px":"20px"};
|
|
1923
|
-
display: flex;
|
|
1924
|
-
align-items: center;
|
|
1925
|
-
justify-content: center;
|
|
1926
|
-
border-radius: 4px;
|
|
1927
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
1928
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
1929
|
-
`,Pm=({name:e,label:t,tooltip:o,badge:i,size:r=Fm.L,disabled:n,partiallyChecked:a,value:s,onChange:l,errorMessage:c,warnMessage:d,helpMessage:p})=>{const u=Zt(),[h,m]=Pt(!1),g=a||s,f=r===Fm.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 Rt(Fr,{$gap:4,children:[Rt(Rr,{$justifyContent:"space-between",children:[Rt(zm,{"data-id":e||"checkbox"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),n||l(!!a||!s)},$disabled:n,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[Ot(Lm,{$size:r,$borderColor:y,$backgroundColor:b,children:a?Ot(dt,{size:f,fill:x}):s?Ot(st,{size:f,fill:x}):null}),t&&Ot(Gr,{size:r===Fm.S?Hr.XXS:Hr.XS,nowrap:!0,children:t})]}),Ot(Vh,{tooltip:o,badge:i})]}),Ot(Kh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},Mm=Yt.div`
|
|
1930
|
-
display: flex;
|
|
1931
|
-
flex-direction: ${({$direction:e})=>e===Fo.Horizontal?"row":"column"};
|
|
1932
|
-
gap: ${({$direction:e})=>e===Fo.Horizontal?16:8}px;
|
|
1933
|
-
`,Bm=({direction:e=Fo.Vertical,title:t,size:o,disabled:i,withSelectAll:r,options:n,values:a,setValues:s})=>{const l=o===Fm.S?Hr.XXS:Hr.XS,c=Lt(()=>n.every(e=>a[e.id]),[n,a]),d=Lt(()=>n.some(e=>a[e.id])&&n.some(e=>!a[e.id]),[n,a]),p=(e,t)=>{s(o=>{const i={...o};return e?i[e]=t:n.forEach(e=>i[e.id]=t),i})};return Rt(Mm,{$direction:e,children:[t&&r?Ot(Pm,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!r?Ot(Gr,{size:l,children:t}):null,n.map(e=>Ot(Pm,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:i,size:o},`${t}-checkbox-${e.id}`))]})};var Um,jm;!function(e){e.Left="left",e.Right="right"}(Um||(Um={})),function(e){e.Top="top",e.Bottom="bottom"}(jm||(jm={}));const Wm=Yt.div`
|
|
1934
|
-
position: relative;
|
|
1935
|
-
`,Hm=Yt.div`
|
|
1936
|
-
display: flex;
|
|
1937
|
-
flex-direction: column;
|
|
1938
|
-
gap: 0;
|
|
1939
|
-
|
|
1940
|
-
min-width: 120px;
|
|
1941
|
-
width: ${({$fullWidth:e})=>e?"calc(100% - 16px)":"fit-content"};
|
|
1942
|
-
padding: 8px;
|
|
1943
|
-
border-radius: 6px;
|
|
1944
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1945
|
-
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
1946
|
-
|
|
1947
|
-
position: absolute;
|
|
1948
|
-
${({$alignX:e})=>`${e}: 0;`}
|
|
1949
|
-
${({$alignY:e,$withOffsetY:t})=>`${e===jm.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
|
|
1950
|
-
z-index: 1;
|
|
1951
|
-
`,Xm=Yt.div`
|
|
1952
|
-
display: flex;
|
|
1953
|
-
flex-direction: column;
|
|
1954
|
-
gap: 0;
|
|
1955
|
-
|
|
1956
|
-
width: 100%;
|
|
1957
|
-
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
1958
|
-
overflow-y: auto;
|
|
1959
|
-
`,Gm=Yt.div`
|
|
1960
|
-
display: flex;
|
|
1961
|
-
align-items: center;
|
|
1962
|
-
gap: 8px;
|
|
1963
|
-
width: calc(100% - 16px);
|
|
1964
|
-
padding: 8px;
|
|
1965
|
-
border-radius: 6px;
|
|
1966
|
-
cursor: pointer;
|
|
1967
|
-
${({$selected:e})=>e?Qt`
|
|
1968
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1969
|
-
`:Qt`
|
|
1970
|
-
background-color: transparent;
|
|
1971
|
-
&:hover {
|
|
1972
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
1973
|
-
}
|
|
1974
|
-
`}
|
|
1975
|
-
`,Vm=({defaultOpen:e,open:t,onOpenChange:o,alignX:i,alignY:r,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=Zt(),y=void 0!==t,b=!!u||!!h||!!f,[$,v]=Pt(e??!b),w=y?t:$,S=Ut(e=>{y||v(e),o?.(e)},[y,o]),[C,k]=Pt({x:i||Um.Left,y:r||jm.Bottom}),E=e=>{S(!w),k({x:i||(e.clientX>window.innerWidth/2?Um.Right:Um.Left),y:r||(e.clientY>window.innerHeight/2?jm.Top:jm.Bottom)})},A=e=>{s(l?a.includes(e)?a.filter(t=>t!==e):[...a,e]:[e]),b&&!l&&S(!1)},D=Bt(null);sl(D,()=>S(!1));const[T,N]=Pt(""),I=Lt(()=>T?n.filter(e=>e?.label?.toLowerCase().includes(T.toLowerCase())):n,[n.length,T]);return Rt(Wm,{ref:D,children:[u&&Ot(_m,{...u,fullWidth:d,rightIcon:w?Et:At,onClick:E}),h&&Ot(Zs,{...h,onClick:E}),"function"==typeof f?f({ChevronIcon:w?Et:At,handleClick:E}):f,w&&Rt(Hm,{$alignX:C.x,$alignY:C.y,$fullWidth:d,$withOffsetY:b,children:[c&&Ot(lm,{value:T,onChange:N,width:"100%"}),m?Ot(Dm,{withSpinner:!0,title:"Loading...",titleSize:Hr.XS}):0===I.length&&g?Ot(Rm,{subTitle:g}):Ot(Xm,{$maxHeight:p,children:I.map(e=>{if(!e)return null;const{id:t,label:o,icon:i,withCheckbox:r}=e,n=a.includes(t);return Rt(Gm,{"data-id":`option-${t}`,$selected:n&&!r,onClick:()=>A(t),children:[r&&Ot(Pm,{value:n,onChange:()=>A(t)}),i&&Ot(i,{size:14,fill:x.v2.colors.white[500]}),Ot(Gr,{size:Hr.XS,nowrap:!0,children:o})]},t)})}),l&&Ot(_m,{label:"Done",onClick:()=>S(!1)})]})]})},Km=({"data-id":e,options:t,value:o,onSelect:i,placeholder:r="Search...",isLoading:n})=>{const[a,s]=Pt(""),[l,c]=Pt(!1),d=Lt(()=>o?t.find(e=>e.id===o)?.label??"":"",[o,t]),p=l?a:d,u=Lt(()=>{if(!a)return t;const e=a.toLowerCase();return t.filter(t=>t.label.toLowerCase().includes(e))},[t,a]),h=Ut(()=>{s(""),c(!0)},[]),m=Ut(e=>{s(e.target.value),l||c(!0),!e.target.value&&o&&i(null)},[l,o,i]),g=Ut(e=>{c(e),e||s("")},[]),f=Ut(e=>{const o=t.find(t=>t.id===e[0]);o&&(i(o),s(""),c(!1))},[t,i]),x=l&&(n||u.length>0||a.length>0);return Ot(Vm,{open:x,onOpenChange:g,items:u,selectedIds:o?[o]:[],setSelectedIds:f,isLoading:n,emptyMessage:"No results found",fullWidth:!0,alignY:jm.Bottom,children:Ot(Qh,{name:e,leftIcon:$t,placeholder:r,value:p,onChange:m,onFocus:h})})},Jm=Yt.button`
|
|
1976
|
-
width: 100%;
|
|
1977
|
-
padding: 0;
|
|
1978
|
-
padding-right: 12px;
|
|
1979
|
-
display: flex;
|
|
1980
|
-
align-items: center;
|
|
1981
|
-
justify-content: flex-start;
|
|
1982
|
-
gap: 12px;
|
|
1983
|
-
border-radius: 8px;
|
|
1984
|
-
border: none;
|
|
1985
|
-
${({$hovered:e})=>e?Qt`
|
|
1986
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1987
|
-
`:Qt`
|
|
1988
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1989
|
-
`}
|
|
1990
|
-
overflow: hidden;
|
|
1991
|
-
cursor: pointer;
|
|
1992
|
-
&:disabled {
|
|
1993
|
-
cursor: not-allowed;
|
|
1994
|
-
opacity: 0.5;
|
|
1995
|
-
}
|
|
1996
|
-
`,qm=Yt.div`
|
|
1997
|
-
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
1998
|
-
height: 56px;
|
|
1999
|
-
display: flex;
|
|
2000
|
-
align-items: center;
|
|
2001
|
-
justify-content: center;
|
|
2002
|
-
${({$hovered:e})=>e?Qt`
|
|
2003
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
2004
|
-
`:Qt`
|
|
2005
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
2006
|
-
`}
|
|
2007
|
-
`,Ym=Yt.div`
|
|
2008
|
-
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
2009
|
-
display: flex;
|
|
2010
|
-
justify-content: space-between;
|
|
2011
|
-
align-items: center;
|
|
2012
|
-
gap: 8px;
|
|
2013
|
-
`,Qm=({label:e,icon:t,loading:o,disabled:i,onClick:r})=>{const[n,a]=Pt(!1);return Rt(Jm,{$hovered:n,type:"button",disabled:i||o,onClick:r,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[Ot(qm,{$hovered:n,$hasIcon:!!t,children:t&&Ot(t,{size:36})}),Rt(Ym,{$hasIcon:!!t,children:[o?Ot(Ku,{size:16}):Ot(Gr,{variant:Wr.Span,align:"center",children:e}),Ot(Dt,{rotate:90,size:24})]})]})},Zm=({buttons:e})=>Ot(Fr,{$gap:12,children:e.map(e=>Ot(Qm,{...e},e.label))}),eg=Yt.div`
|
|
2014
|
-
display: flex;
|
|
2015
|
-
align-items: center;
|
|
2016
|
-
flex-wrap: wrap;
|
|
2017
|
-
width: calc(100% - 24px);
|
|
2018
|
-
padding: 4px 12px;
|
|
2019
|
-
border-radius: 12px;
|
|
2020
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
2021
|
-
`,tg=Yt.div`
|
|
2022
|
-
width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
|
|
2023
|
-
margin: 8px;
|
|
2024
|
-
display: flex;
|
|
2025
|
-
flex-direction: column;
|
|
2026
|
-
gap: 4px;
|
|
2027
|
-
`,og=({cellsPerRow:e,items:t})=>{const o=Zt(),{CopyButton:i}=el();return Ot(eg,{children:t.map(({id:r,title:n,label:a,withCopy:s,badge:l})=>Rt(tg,{$cellsPerRow:e||t.length,children:[Ot(Gr,{size:Hr.XXXS,color:o.v2.colors.silver[200],nowrap:!0,children:n}),Rt(Rr,{$gap:4,children:[l&&Ot(Hh,{...l}),a&&Ot(Gr,{size:Hr.XS,nowrap:!0,children:a}),s&&Ot(i,{value:a||l?.label?.toString()||"",size:Ys.XS})]})]},r))})};var ig;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(ig||(ig={}));const rg=({onAnyClick:e,actions:t})=>Ot(Rr,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case ig.Button:return Ot(_m,{...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}},t.id);case ig.ButtonDropData:return Ot(Vm,{...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}})}),ng=Yt.div`
|
|
2028
|
-
display: flex;
|
|
2029
|
-
align-items: center;
|
|
2030
|
-
justify-content: center;
|
|
2031
|
-
padding: 8px;
|
|
2032
|
-
border-radius: 8px;
|
|
2033
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
2034
|
-
`,ag=({icon:e,title:t,subTitle:o,withCopy:i,badge:r,children:n})=>{const a=Zt(),{CopyButton:s}=el();return Rt(Rr,{$gap:o?8:6,$alignItems:"center",children:[e&&(o?Ot(ng,{children:Ot(e,{size:24})}):Ot(e,{size:24})),t||r||o?Rt(Fr,{children:[t||r?Rt(Rr,{$gap:6,$alignItems:"center",children:[t&&Ot(Gr,{nowrap:!0,children:t}),i&&t&&Ot(s,{value:t,size:Ys.XS}),r&&Ot(Hh,{...r})]}):null,o&&Ot(Gr,{size:Hr.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:o})]}):null,n]})};var sg;!function(e){e.S="small",e.M="medium"}(sg||(sg={}));const lg=Yt.div`
|
|
2035
|
-
display: flex;
|
|
2036
|
-
flex-direction: column;
|
|
2037
|
-
gap: ${({$gap:e})=>e}px;
|
|
2038
|
-
width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
|
|
2039
|
-
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
2040
|
-
padding: ${({$padding:e})=>e}px;
|
|
2041
|
-
border-radius: 16px;
|
|
2042
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2043
|
-
`,cg=({size:e=sg.M,fullHeight:t=!1,richTitle:o,search:i,actions:r,children:n})=>{const a=e===sg.S?4:16,s=e===sg.S?12:16;return Rt(lg,{$padding:s,$gap:a,$fullHeight:t,children:[i||o||r?Rt(Rr,{$gap:a,$justifyContent:"space-between",children:[i||o?Ot(ag,{...o,children:i&&Ot(lm,{...i})}):null,Ot(rg,{actions:r??[]})]}):null,n]})},dg=Yt.div`
|
|
2044
|
-
flex: 1;
|
|
2045
|
-
align-self: stretch;
|
|
2046
|
-
display: flex;
|
|
2047
|
-
align-items: center;
|
|
2048
|
-
gap: 8px;
|
|
2049
|
-
padding: 16px;
|
|
2050
|
-
border-radius: 12px;
|
|
2051
|
-
background-color: ${({theme:e,$status:t})=>Zi(e,t,t===Jo.Unknown?"750":"500")};
|
|
2052
|
-
`,pg=Yt.div`
|
|
2053
|
-
display: flex;
|
|
2054
|
-
align-items: center;
|
|
2055
|
-
justify-content: center;
|
|
2056
|
-
width: fit-content;
|
|
2057
|
-
height: fit-content;
|
|
2058
|
-
padding: 8px;
|
|
2059
|
-
border-radius: 12px;
|
|
2060
|
-
background-color: ${({theme:e,$status:t})=>t===Jo.Unknown?Zi(e,t,"800"):Zi(e,t,"900")+Ns["015"]};
|
|
2061
|
-
`,ug=({status:e,icon:t,title:o,description:i})=>{const r=Zt(),n=t??tr(e,r),a=[Go.Default,Go.Info,Jo.Disabled,Jo.Unknown].includes(e)?r.v2.colors.white[500]:r.v2.colors.black[500];return Rt(dg,{$status:e,children:[Ot(pg,{$status:e,children:Ot(n,{size:32,fill:a})}),Rt(Fr,{$gap:2,$justifyContent:"center",children:[Ot(Gr,{size:Hr.M,weight:500,color:a,nowrap:!0,children:o}),Ot(Gr,{size:Hr.XXS,weight:300,color:a,nowrap:!0,children:i})]})]})},hg=Yt.div`
|
|
2062
|
-
flex: 1;
|
|
2063
|
-
align-self: stretch;
|
|
2064
|
-
display: flex;
|
|
2065
|
-
flex-direction: column;
|
|
2066
|
-
gap: 12px;
|
|
2067
|
-
padding: 12px;
|
|
2068
|
-
border-radius: 12px;
|
|
2069
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
2070
|
-
`,mg=["-","N/A"],gg=({title:e,cells:t})=>{const o=Zt();return Rt(hg,{children:[Ot(Gr,{size:Hr.XXS,color:o.v2.colors.grey[150],children:e}),Ot(Rr,{$gap:32,children:t.map(t=>Rt(Fr,{$gap:2,children:[!t.isLoading||t.value&&!mg.includes(t.value)?Ot(Gr,{size:t.label?Hr.M:Hr.L,children:t.value}):Ot(zc,{scale:.9}),t.label&&Ot(Gr,{size:Hr.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},fg=Yt(Rr)`
|
|
2071
|
-
width: calc(100% - 20px);
|
|
2072
|
-
padding: 10px;
|
|
2073
|
-
border-radius: 6px;
|
|
2074
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
2075
|
-
display: flex;
|
|
2076
|
-
align-items: center;
|
|
2077
|
-
justify-content: space-between;
|
|
2078
|
-
gap: 12px;
|
|
2079
|
-
`,xg=Yt.div`
|
|
2080
|
-
position: relative;
|
|
2081
|
-
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
2082
|
-
display: flex;
|
|
2083
|
-
align-items: center;
|
|
2084
|
-
gap: 4px;
|
|
2085
|
-
`,yg=Yt.pre`
|
|
2086
|
-
flex: 1;
|
|
2087
|
-
margin: 0;
|
|
2088
|
-
padding: 0;
|
|
2089
|
-
font-size: 14px;
|
|
2090
|
-
color: #5ffb98; // TODO: add to theme
|
|
2091
|
-
overflow-x: auto;
|
|
2092
|
-
`,bg=Yt.span`
|
|
2093
|
-
flex-shrink: 0;
|
|
2094
|
-
font-size: 14px;
|
|
2095
|
-
color: #5ffb98; // TODO: add to theme
|
|
2096
|
-
`,$g=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:i}=el({onDone:o}),r=Bt(null),[n,a]=Pt(!1);return Mt(()=>{const e=()=>{if(r.current){const{scrollWidth:e,clientWidth:t}=r.current;a(e>t)}};e();const t=new ResizeObserver(e);return r.current&&t.observe(r.current),()=>{t.disconnect()}},[e]),Rt(fg,{children:[Rt(xg,{$hideCopy:t,children:[Ot(yg,{ref:r,children:e}),n&&Ot(bg,{children:"..."})]}),!t&&Ot(i,{value:e,size:Ys.XS})]})},vg=Yt.div`
|
|
2097
|
-
display: flex;
|
|
2098
|
-
align-items: center;
|
|
2099
|
-
justify-content: space-between;
|
|
2100
|
-
width: 100%;
|
|
2101
|
-
overflow: hidden;
|
|
2102
|
-
`,wg=Yt.div`
|
|
2103
|
-
display: flex;
|
|
2104
|
-
align-items: center;
|
|
2105
|
-
gap: 16px;
|
|
2106
|
-
padding: 6px 0;
|
|
2107
|
-
min-width: 0;
|
|
2108
|
-
flex: 1;
|
|
2109
|
-
overflow: hidden;
|
|
2110
|
-
`,Sg=Yt.div`
|
|
2111
|
-
display: flex;
|
|
2112
|
-
align-items: center;
|
|
2113
|
-
justify-content: center;
|
|
2114
|
-
flex: 0 0 36px;
|
|
2115
|
-
width: 36px;
|
|
2116
|
-
height: 36px;
|
|
2117
|
-
border-radius: 8px;
|
|
2118
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
2119
|
-
`,Cg=Yt.div`
|
|
2120
|
-
display: flex;
|
|
2121
|
-
align-items: center;
|
|
2122
|
-
gap: 12px;
|
|
2123
|
-
flex-shrink: 0;
|
|
2124
|
-
`,kg=({icon:e,title:t,subTitle:o,actions:i,onClose:r,onCloseDisabled:n})=>Rt(vg,{children:[Rt(wg,{children:[e&&Ot(Sg,{children:Ot(e,{size:24})}),(t||o)&&Rt(Fr,{$gap:6,children:[t&&Ot(Gr,{size:Hr.S,weight:500,children:t}),o&&Ot(Gr,{size:Hr.XXS,children:o})]})]}),Rt(Cg,{children:[i?.length?Ot(Zs,{icon:Tt,size:Ys.M,onClick:()=>alert("todo")}):null,r&&Ot(Zs,{icon:ct,size:Ys.M,onClick:r,disabled:n})]})]}),Eg=Yt.div`
|
|
2125
|
-
display: flex;
|
|
2126
|
-
align-items: center;
|
|
2127
|
-
gap: 10px;
|
|
2128
|
-
${({$fullWidth:e})=>e&&Qt`
|
|
2129
|
-
width: calc(100% - 16px);
|
|
2130
|
-
`}
|
|
2131
|
-
padding: 4px 12px 4px 4px;
|
|
2132
|
-
border-radius: 8px;
|
|
2133
|
-
background-color: ${({theme:e,$status:t})=>Zi(e,t,[Go.Info].includes(t)?"1000":"900")};
|
|
2134
|
-
`,Ag=Yt.div`
|
|
2135
|
-
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
2136
|
-
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
2137
|
-
display: flex;
|
|
2138
|
-
align-items: center;
|
|
2139
|
-
justify-content: center;
|
|
2140
|
-
border-radius: 6px;
|
|
2141
|
-
background-color: ${({theme:e,$status:t})=>Zi(e,t,[Go.Info].includes(t)?"900":"800")};
|
|
2142
|
-
`,Dg=Yt.div`
|
|
2143
|
-
margin-left: auto;
|
|
2144
|
-
margin-right: 8px;
|
|
2145
|
-
cursor: pointer;
|
|
2146
|
-
&:hover {
|
|
2147
|
-
transform: scale(1.2);
|
|
2148
|
-
}
|
|
2149
|
-
`,Tg=({status:e,message:t,action:o,fullWidth:i,smallIcon:r})=>{const n=Zt(),a=tr(e,n),s=Zi(n,e,e===Go.Default?"300":e===Go.Info?"400":"500");return Rt(Eg,{$status:e,$fullWidth:i,children:[Ot("div",{children:Ot(Ag,{$status:e,$smallIcon:r,children:Ot(a,{size:r?18:24})})}),Ot(Gr,{color:s,size:Hr.XXXS,weight:400,children:t}),o&&Ot(Dg,{"data-id":o["data-id"],onClick:o.onClick,children:Ot(Gr,{color:s,size:Hr.XXS,weight:500,underline:!0,children:o.label})})]})},Ng=Yt.div`
|
|
2150
|
-
display: flex;
|
|
2151
|
-
align-items: center;
|
|
2152
|
-
gap: 8px;
|
|
2153
|
-
padding: 4px 12px;
|
|
2154
|
-
`,Ig=Yt.div`
|
|
2155
|
-
flex: 1;
|
|
2156
|
-
`,_g=Yt.div`
|
|
2157
|
-
width: 150px;
|
|
2158
|
-
`,Og=({note:e,actions:t,children:o})=>o?Ot(Ng,{children:o}):Rt(Ng,{children:[e&&Ot(Tg,{...e}),Ot(Ig,{}),t?.map((e,t)=>Ot(_g,{children:Ot(_m,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${t}`))]}),Rg=Yt.div`
|
|
2159
|
-
position: fixed;
|
|
2160
|
-
top: 0;
|
|
2161
|
-
bottom: 0;
|
|
2162
|
-
${({$position:e})=>e}: 0;
|
|
2163
|
-
z-index: 1000;
|
|
2164
|
-
|
|
2165
|
-
display: flex;
|
|
2166
|
-
flex-direction: column;
|
|
2167
|
-
gap: 12px;
|
|
2168
|
-
|
|
2169
|
-
width: calc(${({$width:e})=>e} - 32px);
|
|
2170
|
-
padding: 12px;
|
|
2171
|
-
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
2172
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2173
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
2174
|
-
overflow: hidden;
|
|
2175
|
-
|
|
2176
|
-
${({$disableAnimation:e,$position:t})=>!e&&Qt`
|
|
2177
|
-
animation-name: ${_s.in[t]};
|
|
2178
|
-
`}
|
|
2179
|
-
`,Fg=Yt.div`
|
|
2180
|
-
display: flex;
|
|
2181
|
-
flex-direction: column;
|
|
2182
|
-
gap: 12px;
|
|
2183
|
-
|
|
2184
|
-
height: calc(100% - ${56}px);
|
|
2185
|
-
overflow-y: auto;
|
|
2186
|
-
`,zg=({isOpen:e,hideOverlay:t=!1,disableAnimation:o=!1,position:i="right",width:r="600px",header:n,footer:a,children:s})=>(Vs(e),e?po(Rt(Ft,{children:[!t&&Ot(Pr,{onClick:n?.onCloseDisabled?void 0:n?.onClose}),Rt(Rg,{$position:i,$width:r,$disableAnimation:o,children:[n&&Ot(kg,{...n}),Ot(Fg,{children:s}),a&&Ot(Og,{...a})]})]}),document.body):null),Lg=({options:e,values:t,setValues:o,withMultiSelect:i,withSearch:r,...n})=>{const a=Lt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=Lt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return Ot(Vm,{withMultiSelect:i,withSearch:r,alignX:Um.Left,items:a,selectedIds:t,setSelectedIds:o,children:({ChevronIcon:e,handleClick:t})=>Ot(Qh,{placeholder:"Select options...",...n,rightIcon:e,value:s,onChange:()=>{},onClick:t})})},Pg=Yt.header`
|
|
2187
|
-
position: relative;
|
|
2188
|
-
width: calc(100% - 36px);
|
|
2189
|
-
padding: 12px 18px;
|
|
2190
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2191
|
-
display: flex;
|
|
2192
|
-
align-items: center;
|
|
2193
|
-
justify-content: space-between;
|
|
2194
|
-
`,Mg=Yt(Rr)`
|
|
2195
|
-
position: absolute;
|
|
2196
|
-
left: 50%;
|
|
2197
|
-
transform: translateX(-50%);
|
|
2198
|
-
gap: 16px;
|
|
2199
|
-
`,Bg=({left:e=[],center:t=[],right:o=[]})=>Rt(Pg,{children:[Ot(Rr,{$gap:16,children:e}),Ot(Mg,{children:t}),Ot(Rr,{$gap:16,children:o})]}),Ug=Yt.div`
|
|
2200
|
-
display: flex;
|
|
2201
|
-
align-items: center;
|
|
2202
|
-
gap: 2px;
|
|
2203
|
-
width: fit-content;
|
|
2204
|
-
padding: 4px;
|
|
2205
|
-
border-radius: 8px;
|
|
2206
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
2207
|
-
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
2208
|
-
|
|
2209
|
-
position: absolute;
|
|
2210
|
-
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
2211
|
-
left: ${({$left:e})=>e||"unset"};
|
|
2212
|
-
top: 50%;
|
|
2213
|
-
transform: translateY(-50%);
|
|
2214
|
-
`,jg=({isOpen:e,actions:t,positionRight:o,positionLeft:i})=>e?Ot(Ug,{$right:o,$left:i,children:t.map(e=>{if(!e)return null;const{tooltip:t,...o}=e;return Ot(ql,{text:t||"",children:Ot(_m,{...o,variant:Tm.Secondary,size:Nm.S})},o.id)})}):null,Wg=({values:e,setValues:t,name:o,label:i,tooltip:r,badge:n,required:a,errorMessage:s,warnMessage:l,helpMessage:c,placeholder:d,disabled:p})=>{const u=Zt(),h=e.length<=1,m=p,g=p||h&&m;return Rt(Fr,{"data-id":o,$gap:6,children:[Ot(Vh,{label:i,tooltip:r,required:a,badge:n}),Ot(Fr,{$gap:8,children:(e.length?e:[""]).map((o,i)=>{const r=i===e.length-1;return Rt(Rr,{$gap:8,$alignItems:"center",children:[Ot(Qh,{width:"100%",autoFocus:pr(o)&&!h&&r,value:o,onChange:o=>((o,i)=>{const r=[...e||[]];r[i]=o,t(r)})(o.target.value,i),disabled:p,placeholder:d,hasError:!!s}),Ot(_m,{leftIcon:mt,variant:Tm.Secondary,size:Nm.S,disabled:m,onClick:()=>(()=>{const o=[...e||[]];o.push(""),t(o)})()}),Ot(_m,{leftIcon:g?vt:()=>Ot(vt,{fill:u.v2.colors.red[500]}),variant:Tm.Secondary,size:Nm.S,disabled:g,onClick:()=>(o=>{const i=[...e||[]].filter((e,t)=>t!==o);i.length||i.push(""),t(i)})(i)})]},`input-list-${i}`)})}),Ot(Kh,{errorMessage:s,warnMessage:l,helpMessage:c})]})},Hg=({col:e,colIdx:t,row:o,rowIdx:i,rowsLength:r,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 Ho.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===c,t=Array.isArray(g)?g:null!=g&&""!==g?[String(g)]:[],o=h?.filter(e=>t.includes(e.id)).map(e=>e.id)||[];return Ot(Lg,{name:l,label:u?p:void 0,placeholder:u||p,options:h||[],withMultiSelect:e,withSearch:e,values:o,setValues:t=>n(l,e?t:t[0]??"",i),disabled:s,hasError:!!a},l)}default:const e=r>1&&0===i&&0===t&&pr(g);return Ot(Qh,{name:l,label:u?p:void 0,placeholder:u||p,autoFocus:e,type:d,value:g,onChange:({target:{value:e}})=>n(l,e,i),disabled:s,hasError:!!a})}},Xg=Yt.table`
|
|
2215
|
-
width: 100%;
|
|
2216
|
-
border-collapse: separate;
|
|
2217
|
-
border-spacing: 0 8px;
|
|
2218
|
-
`,Gg=Yt.td`
|
|
2219
|
-
padding: 0 8px 0 0;
|
|
2220
|
-
`,Vg=Yt.td`
|
|
2221
|
-
width: 72px;
|
|
2222
|
-
padding-bottom: 2px;
|
|
2223
|
-
vertical-align: bottom;
|
|
2224
|
-
`,Kg=({columns:e,values:t,setValues:o,name:i,label:r,tooltip:n,badge:a,required:s,disabled:l,errorMessage:c,warnMessage:d,helpMessage:p,limitFieldsPerRow:u})=>{const h=Zt(),m=Lt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),g=(e,i,r)=>{const n=t.length?vo(t):[vo(m)];n[r][e]=i,o(n)},f=Lt(()=>{if(u){const t=[];for(let o=0;;o+=u){const i=e.slice(o,o+u);if(!i.length)break;t.push(i)}return t}return[e]},[u,e]),x=t.length?t:[m];return Rt(Fr,{"data-id":i,$gap:0,children:[Ot(Vh,{label:r,tooltip:n,required:s,badge:a}),Ot(Xg,{children:Ot("tbody",{children:x.map((e,i)=>Rt(zt,{children:[u&&i>0?Ot("tr",{children:Ot(Gg,{colSpan:f.length})}):null,f.map((r,n)=>Rt("tr",{children:[r.map((t,o)=>t.renderCondition&&!t.renderCondition(e)?null:Ot(Gg,{children:Ot(Hg,{col:t,colIdx:o,row:e,rowIdx:i,rowsLength:x.length,handleChange:g,disabled:l,errorMessage:c})},`input-table-row-${i}-col-${n}-${o}`)),0===n&&Ot(Vg,{children:Rt(Rr,{$gap:8,$justifyContent:"center",children:[Ot(_m,{leftIcon:mt,variant:Tm.Secondary,size:Nm.S,disabled:l,onClick:()=>(()=>{const e=vo(t);e.push(vo(m)),o(e)})()}),Ot(_m,{leftIcon:l?vt:()=>Ot(vt,{fill:h.v2.colors.red[500]}),variant:Tm.Secondary,size:Nm.S,disabled:l,onClick:()=>(e=>{const i=t.filter((t,o)=>o!==e);i.length||i.push(vo(m)),o(i)})(i)})]})})]},`input-table-matrix-${i}-${n}`))]},`input-table-row-${i}`))})}),Ot(Kh,{errorMessage:c,warnMessage:d,helpMessage:p})]})},Jg=Yt.div`
|
|
2225
|
-
display: flex;
|
|
2226
|
-
align-items: center;
|
|
2227
|
-
justify-content: space-between;
|
|
2228
|
-
gap: 32px;
|
|
2229
|
-
|
|
2230
|
-
padding: 18px 16px;
|
|
2231
|
-
border-radius: 18px;
|
|
2232
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+Ns["095"]};
|
|
2233
|
-
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
2234
|
-
|
|
2235
|
-
position: fixed;
|
|
2236
|
-
bottom: 0;
|
|
2237
|
-
left: 50%;
|
|
2238
|
-
z-index: 1;
|
|
2239
|
-
animation-name: ${_s.in.center};
|
|
2240
|
-
`,qg=({isOpen:e,onClose:t,richTitle:o,actions:i})=>e?Rt(Jg,{children:[Ot(ag,{...o}),Ot(rg,{onAnyClick:t,actions:i})]}):null,Yg=Yt.div`
|
|
2241
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
2242
|
-
top: 50%;
|
|
2243
|
-
left: 50%;
|
|
2244
|
-
transform: translate(-50%, -50%);
|
|
2245
|
-
z-index: 1000;
|
|
2246
|
-
width: fit-content;
|
|
2247
|
-
border-radius: 20px;
|
|
2248
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2249
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
2250
|
-
overflow: hidden;
|
|
2251
|
-
|
|
2252
|
-
animation-name: ${_s.in.center};
|
|
2253
|
-
`,Qg=Yt.div`
|
|
2254
|
-
position: relative;
|
|
2255
|
-
`,Zg=Yt.div`
|
|
2256
|
-
position: absolute;
|
|
2257
|
-
top: 16px;
|
|
2258
|
-
left: 16px;
|
|
2259
|
-
`,ef=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:i,onClose:r,children:n})=>{if(Vs(e),!e)return null;const a=Rt(Ft,{children:[!t&&Ot(Pr,{$relativeToParent:o,onClick:r}),Ot(Yg,{$relativeToParent:o,children:Rt(Qg,{children:[i&&Ot(Zg,{children:Ot(Zs,{icon:e=>Ot(Dt,{rotate:-90,...e}),size:Ys.L,onClick:i})}),n]})})]});return o?a:po(a,document.body)},tf=Yt.aside`
|
|
2260
|
-
display: flex;
|
|
2261
|
-
flex-direction: column;
|
|
2262
|
-
gap: 8px;
|
|
2263
|
-
height: ${({$height:e})=>e};
|
|
2264
|
-
width: fit-content;
|
|
2265
|
-
padding: 16px 12px;
|
|
2266
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2267
|
-
overflow-y: auto;
|
|
2268
|
-
`,of=({height:e,icons:t})=>Ot(tf,{$height:e,children:t.map(({id:e,selected:t,icon:o,onClick:i})=>Ot(_m,{label:"",leftIcon:o,iconSize:24,onClick:i,variant:t?Tm.Primary:Tm.Text},e))});var rf;!function(e){e.S="small",e.L="large"}(rf||(rf={}));const nf=Yt.div`
|
|
2269
|
-
width: fit-content;
|
|
2270
|
-
display: flex;
|
|
2271
|
-
align-items: center;
|
|
2272
|
-
gap: 8px;
|
|
2273
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2274
|
-
`,af=Yt.div`
|
|
2275
|
-
width: ${({$size:e})=>e===rf.S?"16px":"20px"};
|
|
2276
|
-
height: ${({$size:e})=>e===rf.S?"16px":"20px"};
|
|
2277
|
-
display: flex;
|
|
2278
|
-
align-items: center;
|
|
2279
|
-
justify-content: center;
|
|
2280
|
-
border-radius: 100%;
|
|
2281
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
2282
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
2283
|
-
`,sf=({"data-id":e,label:t,value:o,onChange:i,disabled:r,size:n=rf.L})=>{const a=Zt(),[s,l]=Pt(!1),c=o,d=n===rf.S?6:8,p=r?a.v2.colors.grey[400]:a.v2.colors.white[500],u=c?"transparent":r?a.v2.colors.grey[700]:s?a.v2.colors.silver[400]:a.v2.colors.silver[600],h=r?a.v2.colors.grey[600]:c?a.v2.colors.purple[500]:a.v2.colors.silver[900];return Rt(nf,{"data-id":e??"radio"+(t?`-${t}`:""),onClick:e=>{e.stopPropagation(),r||i(!o)},$disabled:r,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[Ot(af,{$size:n,$borderColor:u,$backgroundColor:h,children:o?Ot(Nt,{size:d,fill:p}):null}),t&&Ot(Gr,{size:n===rf.S?Hr.XXS:Hr.XS,children:t})]})},lf=Yt.div`
|
|
2284
|
-
display: flex;
|
|
2285
|
-
flex-direction: ${({$flexDirection:e})=>e};
|
|
2286
|
-
gap: ${({$gap:e})=>e}px;
|
|
2287
|
-
`,cf=({label:e,direction:t,disabled:o,size:i,options:r,values:n,setValues:a})=>Rt(lf,{$flexDirection:t===Fo.Horizontal?"row":"column",$gap:t===Fo.Horizontal?16:8,children:[e&&Ot(Gr,{children:e}),r.map(t=>Ot(sf,{...t,value:n[t.id],onChange:e=>{return o=t.id,i=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=i,t});var o,i},disabled:o,size:i},`${e}-radio-${t.id}`))]}),df=({currentStep:e,data:t,gap:o=12})=>Ot(Fr,{$gap:o,children:t.map(t=>{const o=t.step<e,i=t.step===e;return Rt(Rr,{$gap:8,children:[o||t.forceDoneBadge?Ot(Hh,{status:Go.Success,label:"",leftIcon:st}):Ot(Hh,{status:Go.Default,label:t.step.toString()}),Ot(Gr,{size:i?Hr.M:Hr.XS,weight:i?500:400,opacity:i?1:.7,children:t.label})]},`stepper-item-${t.step}`)})});var pf;!function(e){e.Data="data",e.Pretty="pretty"}(pf||(pf={}));const uf=Yt.div`
|
|
2288
|
-
height: ${({$maxHeight:e})=>e};
|
|
2289
|
-
width: 100%;
|
|
2290
|
-
display: flex;
|
|
2291
|
-
flex-direction: column;
|
|
2292
|
-
overflow: hidden;
|
|
2293
|
-
`,hf=Yt.div`
|
|
2294
|
-
width: 100%;
|
|
2295
|
-
flex: 1;
|
|
2296
|
-
display: flex;
|
|
2297
|
-
flex-direction: column;
|
|
2298
|
-
`,mf=Yt.div`
|
|
2299
|
-
flex-shrink: 0;
|
|
2300
|
-
z-index: 1;
|
|
2301
|
-
`,gf=Yt.div`
|
|
2302
|
-
position: relative;
|
|
2303
|
-
display: flex;
|
|
2304
|
-
width: 100%;
|
|
2305
|
-
`,ff=Yt.div`
|
|
2306
|
-
position: relative;
|
|
2307
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
2308
|
-
flex: ${({$flex:e})=>e??1};
|
|
2309
|
-
overflow: hidden;
|
|
2310
|
-
padding: 18px 24px;
|
|
2311
|
-
border: none;
|
|
2312
|
-
border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
|
|
2313
|
-
box-sizing: border-box;
|
|
2314
|
-
|
|
2315
|
-
${({$variant:e,$backgroundColor:t})=>{if(t)return Qt`
|
|
2316
|
-
background-color: ${t};
|
|
2317
|
-
`;switch(e){case pf.Data:return Qt`
|
|
2318
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
2319
|
-
`;case pf.Pretty:return Qt`
|
|
2320
|
-
background-color: transparent;
|
|
2321
|
-
`;default:return""}}}
|
|
2322
|
-
`,xf=Yt.div`
|
|
2323
|
-
position: absolute;
|
|
2324
|
-
top: 50%;
|
|
2325
|
-
right: 0;
|
|
2326
|
-
transform: translateY(-50%);
|
|
2327
|
-
width: 1px;
|
|
2328
|
-
height: 18px;
|
|
2329
|
-
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2330
|
-
`,yf=Yt.div`
|
|
2331
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
2332
|
-
flex: ${({$flex:e})=>e??1};
|
|
2333
|
-
overflow: hidden;
|
|
2334
|
-
display: flex;
|
|
2335
|
-
align-items: center;
|
|
2336
|
-
|
|
2337
|
-
padding: 18px 24px;
|
|
2338
|
-
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
2339
|
-
box-sizing: border-box;
|
|
2340
|
-
|
|
2341
|
-
${({$variant:e,$selected:t,$hovered:o,$isLastRow:i,$isFirstCell:r,$isLastCell:n})=>{switch(e){case pf.Data:return Qt`
|
|
2342
|
-
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
2343
|
-
border-radius: ${i?r?"0 0 0 4px":n?"0 0 4px 0":"0":"0"};
|
|
2344
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
2345
|
-
`;case pf.Pretty:return Qt`
|
|
2346
|
-
border: none;
|
|
2347
|
-
border-radius: ${r?"12px 0 0 12px":n?"0 12px 12px 0":"0"};
|
|
2348
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
2349
|
-
`;default:return""}}}
|
|
2350
|
-
`,bf=Yt.div`
|
|
2351
|
-
width: 100%;
|
|
2352
|
-
display: flex;
|
|
2353
|
-
align-items: center;
|
|
2354
|
-
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
2355
|
-
gap: 4px;
|
|
2356
|
-
text-align: ${({$textAlign:e})=>e||"left"};
|
|
2357
|
-
`,$f=({variant:e,columns:t,rows:o,getRowActions:i,rowActionsPushRightPosition:r,rowActionsPushLeftPosition:n,withCheckboxes:a})=>{const[s,l]=Pt(null),c=Lt(()=>o.map((c,d)=>{const{cells:p,onClick:u,isSelected:h=!1,onSelect:m,onDeselect:g,hideCheckbox:f}=c,x=s===d,y=i(c),b=(e,t)=>({$isLastRow:d===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:h,$withClick:!!u,onClick:()=>u?.(),$hovered:!!u&&x,onMouseEnter:()=>l(d),onMouseLeave:()=>l(null)});return Rt(gf,{children:[a&&Ot(yf,{$variant:e,style:{flex:"0 0 68px"},...b(!0,!1),children:!f&&Ot(Pm,{value:h,onChange:()=>h?g?.():m?.()})},"checkbox-column"),t.map(({key:o,withTooltip:i,textAlign:s,flex:l,minWidth:c},u)=>{const h=p.find(e=>e.key===o),m=0===u&&!a,g=u===t.length-1,f=y.length&&(r&&g||n&&m||!r&&!n&&g),$=Ot(Rr,{$width:"100%",$justifyContent:"right"===s?"flex-end":"center"===s?"center":"flex-start",children:h?.component?Ot(h.component,{}):Ot(Gr,{size:Hr.XS,children:h?.rawValue||"-"})});return Rt(yf,{$variant:e,$flex:l,$minWidth:c,...b(m,g),children:[i?Ot(ql,{text:h?.rawValue?.toString()||"",ellipsis:!0,children:$}):$,f?Ot(jg,{isOpen:x,actions:y,positionRight:r,positionLeft:n}):null]},`row-${d}-cell-${u}`)})]},`row-${d}`)}),[o,s,i,r,n,a,t]);return Ot(oh,{gap:e===pf.Pretty?8:0,elements:c})},vf=({columnKey:e,sortDirection:t,sortByKey:o,onSort:i})=>{const r=Zt(),n=o===e?r.v2.colors.white[500]:r.v2.colors.grey[400],a=t===zo.Ascending?0:180;return Ot(Zs,{icon:e=>Ot(Dt,{fill:n,rotate:a,...e}),onClick:()=>i(e)})},wf=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:i})=>{const r=Zt(),n=t[e]?.length?r.v2.colors.white[500]:r.v2.colors.grey[400],a=Lt(()=>Array.from(new Set(i.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[i,e]);return Ot(Vm,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Ot(It,{fill:n,...e})}})},Sf=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:i,sortDirection:r,sortByKey:n,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>Rt(gf,{children:[c&&Ot(ff,{$variant:e,$backgroundColor:t,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:Ot(Pm,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),o.map(({key:d,label:p,withTooltip:u,noSort:h,noFilter:m,flex:g,minWidth:f,textAlign:x},y)=>{const b=0===y&&!c,$=y===o.length-1,v=Ot(Gr,{size:Hr.XS,align:x,children:p});return Rt(ff,{$variant:e,$backgroundColor:t,$flex:g,$minWidth:f,$isFirst:b,$isLast:$,children:[Rt(bf,{$textAlign:x,children:[u?Ot(ql,{text:p,children:v}):v,!h&&Ot(vf,{columnKey:d,sortDirection:r,sortByKey:n,onSort:a}),!m&&Ot(wf,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:i})]}),!$&&e===pf.Data&&Ot(xf,{})]},`column-${d}`)})]}),Cf=({variant:e,maxHeight:t="256px",headerBackgroundColor:o,hideHeader:i=!1,isLoading:r,columns:n,rows:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d})=>{const[p,u]=Pt(zo.Ascending),[h,m]=Pt(""),[g,f]=Pt({}),x=Ut(e=>{m(e),u(e=>e===zo.Ascending?zo.Descending:zo.Ascending)},[]),y=Ut((e,t)=>{f(o=>({...o,[e]:t}))},[]),b=Lt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(h?[...a].sort((t,o)=>{const i=e(t,h),r=e(o,h);return(p===zo.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(i,r)}):a).filter(t=>{for(const[o,i]of Object.entries(g))if(i.length&&!i.includes(e(t,o)))return!1;return!0})},[a,h,p,g]),{partiallySelected:$,allSelected:v}=Lt(()=>{const e=b.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[b]);return Ot(uf,{$maxHeight:t,children:Rt(hf,{$variant:e,children:[!i&&Ot(mf,{children:Ot(Sf,{variant:e,backgroundColor:o,columns:n,rowsUnfiltered:a,sortDirection:p,sortByKey:h,onSort:x,filters:g,onFilter:y,withCheckboxes:d,partiallySelected:$,allSelected:v,onSelectAll:e=>{e?b.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):b.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),b.length?Ot($f,{variant:e,columns:n,rows:b,getRowActions:s||(()=>[]),rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d}):Ot(zr,{style:{marginTop:"0.5rem"},children:r?Ot(Dm,{withSpinner:!0}):Ot(Rm,{})})]})})},kf=Yt.div`
|
|
2358
|
-
display: flex;
|
|
2359
|
-
align-items: center;
|
|
2360
|
-
justify-content: center;
|
|
2361
|
-
gap: 8px;
|
|
2362
|
-
width: fit-content;
|
|
2363
|
-
padding: 8px;
|
|
2364
|
-
border-radius: 4px;
|
|
2365
|
-
${({$disabled:e,$withClick:t})=>e?Qt`
|
|
2366
|
-
cursor: not-allowed;
|
|
2367
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
2368
|
-
`:t?Qt`
|
|
2369
|
-
cursor: pointer;
|
|
2370
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2371
|
-
&:hover {
|
|
2372
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[400]};
|
|
2373
|
-
}
|
|
2374
|
-
&:active {
|
|
2375
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2376
|
-
}
|
|
2377
|
-
`:Qt`
|
|
2378
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2379
|
-
`}
|
|
2380
|
-
`,Ef=({label:e,leftIcon:t,rightIcon:o,onClick:i,disabled:r})=>{const n=Zt(),a=r?n.v2.colors.grey[400]:n.v2.colors.white[500];return Rt(kf,{$disabled:r,$withClick:!!i,onClick:()=>!r&&i?.(),children:[t&&Ot(t,{fill:a,size:16}),Ot(Gr,{color:a,size:Hr.XS,nowrap:!0,children:e}),o&&Ot(o,{fill:a,size:16})]})},Af=Yt.div`
|
|
2381
|
-
padding: 6px 12px;
|
|
2382
|
-
|
|
2383
|
-
display: flex;
|
|
2384
|
-
align-self: stretch;
|
|
2385
|
-
align-items: flex-start;
|
|
2386
|
-
gap: 8px;
|
|
2387
|
-
border-radius: 6px;
|
|
2388
|
-
|
|
2389
|
-
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]};
|
|
2390
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
2391
|
-
${({$disabled:e,$error:t})=>!e&&!t&&Qt`
|
|
2392
|
-
&:hover,
|
|
2393
|
-
&:active,
|
|
2394
|
-
&:focus-within {
|
|
2395
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2396
|
-
}
|
|
2397
|
-
`}
|
|
2398
|
-
`,Df=Yt.textarea`
|
|
2399
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
2400
|
-
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
2401
|
-
flex: 1;
|
|
2402
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
2403
|
-
font-size: 14px;
|
|
2404
|
-
font-weight: 400;
|
|
2405
|
-
resize: none;
|
|
2406
|
-
|
|
2407
|
-
background: transparent;
|
|
2408
|
-
border: none;
|
|
2409
|
-
outline: none;
|
|
2410
|
-
cursor: text;
|
|
2411
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
2412
|
-
&::placeholder {
|
|
2413
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
&:disabled {
|
|
2417
|
-
cursor: not-allowed;
|
|
2418
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
2419
|
-
&::placeholder {
|
|
2420
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
`,Tf=({label:e,required:t,tooltip:o,badge:i,errorMessage:r,warnMessage:n,helpMessage:a,name:s,value:l,onChange:c,disabled:d,maxWidth:p,minHeight:u,...h})=>{const m=Bt(null),g=()=>{m.current&&(m.current.style.height="auto",m.current.style.height=`${m.current.scrollHeight}px`)};return Rt(Fr,{$gap:6,children:[Ot(Vh,{label:e,tooltip:o,required:t,badge:i}),Ot(Af,{$disabled:d,$error:!!r,children:Ot(Df,{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})}),Ot(Kh,{errorMessage:r,warnMessage:n,helpMessage:a})]})};var Nf,If,_f;!function(e){e.Default="default",e.SuccessError="successError"}(Nf||(Nf={})),function(e){e.S="small",e.L="large"}(If||(If={})),function(e){e.Left="left",e.Right="right"}(_f||(_f={}));const Of=Yt.div`
|
|
2424
|
-
display: flex;
|
|
2425
|
-
align-items: center;
|
|
2426
|
-
gap: ${({$gap:e})=>e}px;
|
|
2427
|
-
`,Rf=Yt.div`
|
|
2428
|
-
position: relative;
|
|
2429
|
-
display: flex;
|
|
2430
|
-
align-items: center;
|
|
2431
|
-
justify-content: space-between;
|
|
2432
|
-
|
|
2433
|
-
width: ${({$size:e})=>2*e+2}px;
|
|
2434
|
-
height: ${({$size:e})=>e}px;
|
|
2435
|
-
padding: ${4}px;
|
|
2436
|
-
border-radius: ${({$size:e})=>2*e}px;
|
|
2437
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:i,$value:r,theme:n})=>{if(e)return n.v2.colors.grey[800];if(t&&r)return t;if(o&&!r)return o;switch(i){case Nf.SuccessError:return r?n.v2.colors.green[500]:n.v2.colors.red[500];case Nf.Default:default:return r?n.v2.colors.purple[500]:n.v2.colors.grey[400]}}};
|
|
2438
|
-
|
|
2439
|
-
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
2440
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2441
|
-
`,Ff=Yt.div`
|
|
2442
|
-
position: absolute;
|
|
2443
|
-
top: 50%;
|
|
2444
|
-
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
2445
|
-
transform: translateY(-50%);
|
|
2446
|
-
width: ${({$size:e})=>e}px;
|
|
2447
|
-
height: ${({$size:e})=>e}px;
|
|
2448
|
-
border-radius: 100%;
|
|
2449
|
-
background-color: ${({$color:e})=>e};
|
|
2450
|
-
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)"};
|
|
2451
|
-
`,zf=({variant:e=Nf.Default,size:t=If.L,name:o,label:i,labelAlign:r=_f.Right,labelColor:n,tooltip:a,badge:s,value:l,onChange:c,disabled:d,withIcon:p,onIcon:u=st,offIcon:h=ct,onBgColor:m,offBgColor:g,errorMessage:f,warnMessage:x,helpMessage:y})=>{const b=Zt(),$=d?b.v2.colors.grey[400]:b.v2.colors.white[500],v=t===If.S?10:16,w=n||b.v2.colors.silver[200],S=t===If.S?Hr.XXXS:Hr.XS,C=t===If.S?8:12;return Rt(Fr,{$gap:4,children:[Rt(Rr,{$justifyContent:"space-between",children:[Rt(Of,{"data-id":o||"toggle"+(i?`-${i}`:""),$gap:C,children:[i&&r===_f.Left&&Ot(Gr,{color:w,size:S,nowrap:!0,children:i}),Rt(Rf,{$onBgColor:m,$offBgColor:g,$variant:e,$size:v,$value:l,$disabled:d,onClick:e=>{e.stopPropagation(),d||c(!l)},children:[Ot(Ff,{$color:$,$size:v,$value:l,$disabled:d}),p&&Rt(Ft,{children:[Ot(u,{size:v,fill:$}),Ot(h,{size:v,fill:$})]})]}),i&&r===_f.Right&&Ot(Gr,{color:w,size:S,nowrap:!0,children:i})]}),Ot(Vh,{tooltip:a,badge:s})]}),Ot(Kh,{errorMessage:f,warnMessage:x,helpMessage:y})]})},Lf=Yt.div`
|
|
2452
|
-
display: flex;
|
|
2453
|
-
flex-direction: ${({$direction:e})=>e===Fo.Horizontal?"row":"column"};
|
|
2454
|
-
gap: ${({$direction:e})=>e===Fo.Horizontal?16:8}px;
|
|
2455
|
-
`,Pf=({direction:e=Fo.Vertical,title:t,size:o,disabled:i,options:r,values:n,setValues:a})=>{const s=o===If.S?Hr.XS:Hr.S;return Rt(Lf,{$direction:e,children:[t&&Ot(Gr,{size:s,children:t}),r.map(e=>Ot(zf,{...e,labelAlign:_f.Right,value:n[e.id],onChange:t=>{return o=e.id,i=t,void a(e=>{const t={...e};return o?t[o]=i:r.forEach(e=>t[e.id]=i),t});var o,i},disabled:i,size:o},`${t}-toggle-${e.id}`))]})},Mf=Yt.div`
|
|
2456
|
-
min-width: 530px;
|
|
2457
|
-
`,Bf=Yt.div`
|
|
2458
|
-
display: flex;
|
|
2459
|
-
flex-direction: column;
|
|
2460
|
-
align-items: center;
|
|
2461
|
-
gap: 16px;
|
|
2462
|
-
padding: 24px;
|
|
2463
|
-
`,Uf=Yt.div`
|
|
2464
|
-
display: flex;
|
|
2465
|
-
justify-content: center;
|
|
2466
|
-
gap: 16px;
|
|
2467
|
-
padding: 16px 24px;
|
|
2468
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2469
|
-
`,jf=({visual:e,title:t,description:o,isOpen:i,onClose:r,onDeny:n,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Zt();return Ot(ef,{isOpen:i,onClose:r,...c,children:Rt(Mf,{children:[Rt(Bf,{children:[e&&Ot(e,{}),Ot(Gr,{size:Hr.M,weight:500,color:d.v2.colors.white[500],children:t}),Ot(Fr,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>Ot(Gr,{size:Hr.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(n||s)&&Rt(Uf,{children:[Ot(_m,{variant:Tm.Secondary,label:a,onClick:()=>{n?.(),r()}}),s&&Ot(_m,{variant:Tm.Primary,label:l,onClick:()=>{s(),r()}})]})]})})};export{Hh as $,ig as A,Nm as B,Nc as C,Pl as D,cs as E,Fr as F,vn as G,wr as H,Qh as I,hi as J,No as K,vr as L,lr as M,Rm as N,ki as O,Tg as P,Go as Q,ni as R,cg as S,Gr as T,ql as U,ai as V,li as W,fi as X,gi as Y,si as Z,ri as _,Tm as a,Aa as a$,is as a0,zi as a1,gl as a2,Si as a3,wi as a4,bl as a5,wl as a6,vl as a7,Lo as a8,jo as a9,pa as aA,na as aB,Sa as aC,Km as aD,$a as aE,Fm as aF,Bo as aG,ha as aH,sa as aI,Mn as aJ,Zn as aK,ma as aL,la as aM,Bn as aN,If as aO,ra as aP,ea as aQ,ia as aR,ka as aS,ts as aT,zn as aU,Xn as aV,Vn as aW,Gn as aX,Da as aY,Kn as aZ,Ta as a_,xa as aa,In as ab,_n as ac,Zh as ad,ya as ae,wa as af,Rn as ag,ua as ah,aa as ai,va as aj,ta as ak,sf as al,ba as am,qn as an,Fn as ao,Yn as ap,Jn as aq,Vm as ar,Qn as as,ga as at,fa as au,Ln as av,Pn as aw,Un as ax,jn as ay,Wn as az,zr as b,gg as b$,Na as b0,Ia as b1,ja as b2,On as b3,ca as b4,Wa as b5,Ha as b6,da as b7,oa as b8,yn as b9,Ka as bA,Ya as bB,qa as bC,al as bD,Al as bE,hr as bF,jm as bG,Um as bH,og as bI,Nn as bJ,En as bK,Tn as bL,es as bM,ml as bN,Ai as bO,Ir as bP,Cf as bQ,pf as bR,qg as bS,df as bT,er as bU,zc as bV,$g as bW,zs as bX,ag as bY,rg as bZ,ug as b_,bn as ba,Ei as bb,Zs as bc,Ys as bd,Dm as be,wn as bf,Bi as bg,Lg as bh,ps as bi,Sn as bj,Jo as bk,Wr as bl,$l as bm,bs as bn,fs as bo,zg as bp,Cn as bq,Dn as br,Qa as bs,Za as bt,La as bu,Or as bv,kn as bw,Va as bx,Ga as by,Ja as bz,Rr as c,Ur as c$,ci as c0,_r as c1,Hn as c2,Ea as c3,An as c4,Xa as c5,za as c6,Ra as c7,Fa as c8,Oa as c9,Kp as cA,xc as cB,Gs as cC,ji as cD,$n as cE,Xc as cF,jp as cG,Oi as cH,Uo as cI,ms as cJ,Nr as cK,zl as cL,Mr as cM,lc as cN,gn as cO,eh as cP,Ri as cQ,Jc as cR,Ko as cS,br as cT,tr as cU,hs as cV,Co as cW,nd as cX,Wi as cY,dd as cZ,Br as c_,_a as ca,em as cb,jf as cc,Ua as cd,Ba as ce,Ma as cf,Pa as cg,Np as ch,jd as ci,$c as cj,en as ck,Jd as cl,Pu as cm,Mh as cn,Xu as co,Ru as cp,Zl as cq,qc as cr,uh as cs,lh as ct,qp as cu,Yu as cv,zh as cw,Yr as cx,ds as cy,xu as cz,Pm as d,dr as d$,Eu as d0,Ui as d1,jr as d2,Tp as d3,kd as d4,jh as d5,Ms as d6,Dr as d7,Ws as d8,$s as d9,vi as dA,Pc as dB,ed as dC,Wo as dD,$r as dE,il as dF,cr as dG,xo as dH,xi as dI,Th as dJ,Fp as dK,Vi as dL,_h as dM,gs as dN,nl as dO,fc as dP,_s as dQ,sr as dR,Js as dS,Yo as dT,ar as dU,xn as dV,Pd as dW,Zc as dX,Tu as dY,lm as dZ,or as d_,fd as da,ii as db,oh as dc,Ni as dd,Xi as de,Mi as df,vh as dg,qs as dh,Di as di,Eo as dj,bi as dk,ko as dl,Ks as dm,ll as dn,Wl as dp,Lr as dq,gh as dr,sl as ds,yr as dt,ep as du,os as dv,Ci as dw,cl as dx,tl as dy,Ss as dz,Hr as e,ns as e$,Qc as e0,wd as e1,Cd as e2,jg as e3,mr as e4,Cr as e5,pl as e6,ti as e7,fp as e8,Li as e9,yi as eA,mi as eB,zo as eC,Io as eD,yo as eE,Ti as eF,wo as eG,Pi as eH,Hi as eI,Gi as eJ,Ki as eK,Ji as eL,qi as eM,Qi as eN,Zi as eO,ir as eP,ur as eQ,gr as eR,xr as eS,Sr as eT,kr as eU,Er as eV,Ar as eW,So as eX,Tr as eY,Ca as eZ,rs as e_,El as ea,ld as eb,Fi as ec,up as ed,ss as ee,Ii as ef,Sc as eg,Yi as eh,od as ei,bm as ej,Ao as ek,Zo as el,Oo as em,ei as en,Qo as eo,Mo as ep,Vo as eq,Ro as er,Fo as es,_o as et,oi as eu,Po as ev,ui as ew,pi as ex,di as ey,qo as ez,To as f,as as f0,Ts as f1,Ls as f2,Is as f3,Ds as f4,hl as f5,xl as f6,yl as f7,Vs as f8,Id as f9,Pf as fA,Nf as fB,Ad as fa,Vp as fb,hu as fc,su as fd,bu as fe,Cu as ff,id as fg,Ku as fh,Pr as fi,eu as fj,Kr as fk,Jr as fl,qr as fm,vm as fn,$m as fo,Cm as fp,Qm as fq,Zm as fr,Bm as fs,Bg as ft,ef as fu,of as fv,cf as fw,rf as fx,sg as fy,Ef as fz,_i as g,Ns as h,Vh as i,Kh as j,Xo as k,pr as l,Kg as m,zf as n,_f as o,Wg as p,_m as q,Ho as r,Do as s,Hs as t,el as u,vo as v,$i as w,nm as x,Tf as y,$o as z};
|