@odigos/ui-kit 0.0.176 → 0.0.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/lib/chunks/ui-components-fec63ef8.js +2289 -0
- package/lib/components/_v2/drop-data/index.d.ts +9 -7
- package/lib/components/_v2/loader/index.d.ts +3 -1
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/central-connections/source-drawer/index.d.ts +1 -1
- package/lib/containers/_v2/index.d.ts +1 -0
- package/lib/containers/_v2/system-drawer/describe/index.d.ts +10 -0
- package/lib/containers/_v2/system-drawer/diagnose/index.d.ts +6 -0
- package/lib/containers/_v2/system-drawer/index.d.ts +10 -0
- package/lib/containers/v2.js +27 -20
- package/lib/containers.js +1 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/common/diagnose-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/diagnose/index.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals/index.d.ts +1 -2
- package/lib/visuals/visual-green-rings/index.d.ts +7 -0
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-849a6a02.js +0 -2288
- package/lib/visuals/visual-star/index.d.ts +0 -2
- package/lib/visuals/visual-success/index.d.ts +0 -2
|
@@ -0,0 +1,2289 @@
|
|
|
1
|
+
import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as o,K8sLogo as n,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,JavaLogo as s,GoLogo as l,NodejsLogo as c,PythonLogo as d,DotnetLogo as p,CSharpLogo as u,CPlusPlusLogo as h,PhpLogo as m,RubyLogo as g,RustLogo as $,SwiftLogo as f,ElixirLogo as x,MysqlLogo as b,NginxLogo as y,PostgresLogo as w,RedisLogo as k,KafkaLogo as v,AlaudaLogo as C,AlibabaCloudLogo as E,AppDynamicsLogo as S,AxiomLogo as A,AzureBlobLogo as D,AzureMonitorLogo as T,BetterStackLogo as z,BonreeLogo as F,CauselyLogo as O,ChecklyLogo as I,ChronosphereLogo as N,ClickhouseLogo as _,AwsCloudwatchLogo as B,CoralogixLogo as R,Dash0Logo as L,DatadogLogo as M,OpenTelemetryLogo as P,DynatraceLogo as j,ElasticApmLogo as U,ElasticSearchLogo as W,GoogleCloudPlatformLogo as V,GrafanaLogo as H,GreptimeLogo as q,GroundcoverLogo as G,HoneycombLogo as K,HyperDxLogo as Y,InstanaLogo as J,JaegerLogo as X,KloudmateLogo as Z,Last9Logo as Q,LightstepLogo as ee,LogzioLogo as te,LokiLogo as oe,LumigoLogo as ne,MiddlewareLogo as ie,NewRelicLogo as ae,ObserveLogo as re,OdigosLogo as se,OneUptimeLogo as le,OpenObserveLogo as ce,OpsVerseLogo as de,OracleLogo as pe,PrometheusLogo as ue,QrynLogo as he,GigapipeLogo as me,QuickwitLogo as ge,AwsS3Logo as $e,SeqLogo as fe,SplunkLogo as xe,SignozLogo as be,SumoLogicLogo as ye,TelemetryHubLogo as we,TempoLogo as ke,TingyunLogo as ve,TraceloopLogo as Ce,UptraceLogo as Ee,VictoriaMetricsLogo as Se,AwsXrayLogo as Ae,NamespacesIcon as De,SourceIcon as Te,DestinationIcon as ze,ActionIcon as Fe,InstrumentationRuleIcon as Oe,CodeAttributesIcon as Ie,CustomInstrumentationIcon as Ne,HeadersCollectionIcon as _e,PayloadCollectionIcon as Be,LogsIcon as Re,MetricsIcon as Le,TracesIcon as Me,VmLogo as Pe,ISquareIcon as je,ExclamationCircleIcon as Ue,ExclamationTriangleIcon as We,VSquareIcon as Ve,XSquareIcon as He,QuestionCircleIcon as qe,VIcon as Ge,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as nt,EyeOpenIcon as it,SearchIcon as at,TrashIcon as rt,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,YamlIcon as mt,DotsHorizontalIcon as gt,DotIcon as $t,FilterIcon as ft}from"../icons.js";import{create as xt}from"zustand";import bt,{Fragment as yt,useMemo as wt,useState as kt,useEffect as vt,useRef as Ct,useCallback as Et,forwardRef as St,memo as At,createContext as Dt,useContext as Tt}from"react";import zt from"javascript-time-ago";import{p as Ft,c as Ot,s as It,u as Nt,e as _t}from"./vendor-0965fadc.js";import Bt,{css as Rt,useTheme as Lt,ThemeProvider as Mt,keyframes as Pt}from"styled-components";import{Handle as jt,Position as Ut,ReactFlow as Wt,Controls as Vt}from"@xyflow/react";import Ht,{createPortal as qt}from"react-dom";import{ErrorBoundary as Gt}from"react-error-boundary";import Kt from"lottie-react";import{Highlight as Yt,themes as Jt}from"prism-react-renderer";const Xt=e=>e.charAt(0).toUpperCase()+e.slice(1),Zt=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,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[n]=JSON.stringify(t(a)):e[n]="object"==typeof a&&null!==a?JSON.stringify(o(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(o(i)):e[n]=i}return e},{})};var Qt;!function(e){e.SIGNALS="SIGNALS"}(Qt||(Qt={}));const eo=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Qt.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=o.find(e=>e.name===n);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},to=e=>JSON.parse(JSON.stringify(e)),oo=(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},no=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},io=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ao,ro,so,lo,co,po,uo,ho,mo,go,$o,fo,xo,bo,yo,wo,ko,vo,Co,Eo,So,Ao,Do,To,zo,Fo,Oo,Io,No,_o,Bo,Ro,Lo,Mo,Po,jo,Uo,Wo,Vo,Ho,qo;!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"}(ro||(ro={})),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"}(so||(so={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(lo||(lo={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(co||(co={})),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"}(po||(po={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(uo||(uo={})),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"}(ho||(ho={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mo||(mo={})),function(e){e.Ascending="ascending",e.Descending="descending"}(go||(go={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($o||($o={})),function(e){e.K8s="k8s",e.Vm="vm"}(fo||(fo={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(xo||(xo={})),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"}(yo||(yo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wo||(wo={})),function(e){e.DataStream="DataStream"}(ko||(ko={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(vo||(vo={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Co||(Co={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Eo||(Eo={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(So||(So={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ao||(Ao={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Do||(Do={})),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"}(To||(To={})),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"}(zo||(zo={})),function(e){e.Labeled="labeled"}(Fo||(Fo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Oo||(Oo={})),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"}(Io||(Io={})),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"}(No||(No={})),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.PhpEnterprise="php-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(_o||(_o={})),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"}(Bo||(Bo={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Ro||(Ro={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Lo||(Lo={})),function(e){e.HeaderKeys="headerKeys"}(Mo||(Mo={})),function(e){e.Java="java",e.Golang="golang"}(Po||(Po={}));class Go{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 Ko{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(jo||(jo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Uo||(Uo={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wo||(Wo={})),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"}(Vo||(Vo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Ho||(Ho={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(qo||(qo={}));const Yo=(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===Eo.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Jo="default",Xo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Zo={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)'},Qo={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream Name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SUMMARY:"Summary",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",CONTAINER_NAME:"Container Name",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes"},en={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"},tn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Jo&&!e.dataStreamNames.length):[],on=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],a=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${a}[${t}]`;null!==e&&"object"==typeof e?on(e,n,o):o[n]=e}):o[a]=i:on(i,a,o)}return o},nn=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]}`},an=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`}},rn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},sn=s=>{const l=s?.toLowerCase(),c=l?.includes(ao.Samplers),d=l===ao.Attributes;return c?e:d?t:{[ro.K8sAttributes]:n,[ro.AddClusterInfo]:i,[ro.DeleteAttributes]:a,[ro.PiiMasking]:t,[ro.RenameAttributes]:r,[ro.ErrorSampler]:e,[ro.ProbabilisticSampler]:e,[ro.LatencySampler]:e,[ro.ServiceNameSampler]:e,[ro.SpanAttributeSampler]:e}[s]||o},ln=e=>{const t=e?.filter(({status:e})=>e===Eo.Error),o=e?.filter(({status:e})=>e===Eo.Warning),n=e?.filter(({status:e})=>e===Ao.Disabled),i=e?.filter(({status:e})=>e===Ao.Loading),a=t.length>0,r=o.length>0,s=n.length>0;return{errors:t,hasErrors:a,warnings:o,hasWarnings:r,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?Eo.Error:r?Eo.Warning:s?Eo.Info:void 0}},cn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},dn=e=>({[bo.Java]:s,[bo.Go]:l,[bo.JavaScript]:c,[bo.Python]:d,[bo.DotNet]:p,[bo.CSharp]:u,[bo.CPlusPlus]:h,[bo.Php]:m,[bo.Ruby]:g,[bo.Rust]:$,[bo.Swift]:f,[bo.Elixir]:x,[bo.MySql]:b,[bo.Nginx]:y,[bo.Postgres]:w,[bo.Redis]:k,[bo.Kafka]:v,[bo.Ignored]:o,[bo.Unknown]:o,[bo.Processing]:o,[bo.NoContainers]:o,[bo.NoRunningPods]:o}[e]||o),pn=e=>e?.map(({language:e})=>dn(e))||[],un=(e,t)=>{const o={[Io.Alauda]:C,[Io.AlibabaCloud]:E,[Io.AppDynamics]:S,[Io.Axiom]:A,[Io.AzureBlob]:D,[Io.AzureMonitor]:T,[Io.BetterStack]:z,[Io.Bonree]:F,[Io.Causely]:O,[Io.Checkly]:I,[Io.Chronosphere]:N,[Io.ClickHouse]:_,[Io.CloudWatch]:B,[Io.Coralogix]:R,[Io.Dash0]:L,[Io.Datadog]:M,[Io.Dynamic]:P,[Io.Dynatrace]:j,[Io.ElasticApm]:U,[Io.ElasticSearch]:W,[Io.GoogleCloud]:V,[Io.GoogleCloudOTLP]:V,[Io.GrafanaCloudLoki]:H,[Io.GrafanaCloudPrometheus]:H,[Io.GrafanaCloudTempo]:H,[Io.Greptime]:q,[Io.Groundcover]:G,[Io.Honeycomb]:K,[Io.HyperDX]:Y,[Io.Instana]:J,[Io.Jaeger]:X,[Io.Kafka]:v,[Io.Kloudmate]:Z,[Io.Last9]:Q,[Io.Lightstep]:ee,[Io.LogzIo]:te,[Io.Loki]:oe,[Io.Lumigo]:ne,[Io.Middleware]:ie,[Io.NewRelic]:ae,[Io.Observe]:re,[Io.Odigos]:se,[Io.OneUptime]:le,[Io.OpenObserve]:ce,[Io.Opsverse]:de,[Io.Oracle]:pe,[Io.OTLP]:P,[Io.OTLPHttp]:P,[Io.Prometheus]:ue,[Io.Qryn]:he,[Io.QrynOss]:me,[Io.Quickwit]:ge,[Io.S3]:$e,[Io.Seq]:fe,[Io.Signalfx]:xe,[Io.Signoz]:be,[Io.Splunk]:xe,[Io.SplunkSapm]:xe,[Io.SplunkOtlp]:xe,[Io.SumoLogic]:ye,[Io.TelemetryHub]:we,[Io.Tempo]:ke,[Io.Tingyun]:ve,[Io.Traceloop]:Ce,[Io.Uptrace]:Ee,[Io.VictoriaMetrics]:Se,[Io.VictoriaMetricsCloud]:Se,[Io.XRay]:Ae}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},hn=e=>({[wo.Namespace]:De,[wo.Source]:Te,[wo.Destination]:ze,[wo.Action]:Fe,[wo.InstrumentationRule]:Oe}[e]),mn=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,gn=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case wo.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case wo.Source:const o=e;a=o.name,r=o.otelServiceName;break;case wo.Action:const n=e;a=n.type,r=n.name;break;case wo.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case wo.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},$n=(e,t)=>{if(t===wo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},fn=e=>({[Ro.CodeAttributes]:Ie,[Ro.CustomInstrumentation]:Ne,[Ro.HeadersCollection]:_e,[Ro.PayloadCollection]:Be,[Ro.UnknownType]:o}[e]||o),xn=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?bo.Processing:bo.NoRunningPods;const n=o?.filter(e=>e.language!==bo.Ignored);if(!n.length)return bo.NoContainers;const i=n.find(e=>e.language!==bo.Unknown);return i?i.language:bo.Unknown},bn=(e,t,o)=>(t===wo.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},yn=e=>({[qo.Logs]:Re,[qo.Metrics]:Le,[qo.Traces]:Me}[e]),wn=e=>e?{[fo.K8s]:n,[fo.Vm]:Pe}[e]:se,kn=e=>e?{[fo.K8s]:"Kubernetes Cluster",[fo.Vm]:"Virtual Machine"}[e]:"Unknown",vn=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...vn(e,t,o)),i}):[]},Cn=(e,t)=>{if(t===wo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},En=(e,t,o)=>{switch(t){case Eo.Default:return e.v2.colors.purple[o];case Eo.Info:return e.v2.colors.blue[o];case Eo.Error:return e.v2.colors.red[o];case Eo.Warning:return e.v2.colors.yellow[o];case Eo.Success:return e.v2.colors.green[o];case Do.Disabled:case Do.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},Sn=e=>{switch(e){case Uo.Updating:case Wo.Pending:case Vo.ContainerCreating:case Ho.Waiting:return Eo.Info;case Uo.Healthy:case Wo.Succeeded:case Wo.Running:case Vo.Running:case Ho.Running:return Eo.Success;case Uo.Degraded:return Eo.Warning;case Uo.Failed:case Wo.Failed:case Vo.Error:case Vo.CrashLoopBackOff:case Vo.CreateContainerError:case Vo.CreateContainerConfigError:case Vo.ErrImagePull:case Vo.ErrImageNeverPull:case Vo.ImagePullBackOff:case Vo.InvalidImageName:case Vo.RegistryUnavailable:case Vo.NetworkNotReady:case Vo.OOMKilled:case Vo.ContainerCannotRun:case Ho.Terminated:case Vo.DeadlineExceeded:case Vo.StartError:return Eo.Error;case Uo.Down:case Vo.Completed:return Do.Disabled;case Uo.Unknown:case Wo.Unknown:default:return Do.Unknown}},An=(e,t)=>({[Eo.Default]:o=>se({fill:En(t,e,"300"),...o}),[Eo.Info]:o=>je({fill:En(t,e,"400"),...o}),[Eo.Error]:o=>Ue({fill:En(t,e,"500"),...o}),[Eo.Warning]:o=>We({fill:En(t,e,"500"),...o}),[Eo.Success]:o=>Ve({fill:En(t,e,"500"),...o}),[Do.Disabled]:o=>He({fill:En(t,e,"400"),...o}),[Do.Unknown]:o=>qe({fill:En(t,e,"300"),...o})}[e]),Dn=e=>{switch(e){case Bo.Success:return Eo.Success;case Bo.Error:case Bo.Failure:return Eo.Error;case Bo.Notice:return Eo.Warning;case Bo.Unsupported:case Bo.Unknown:return Eo.Info;case Bo.Irrelevant:case Bo.Disabled:return Ao.Disabled;case Bo.Waiting:return Ao.Loading;case Bo.Pending:default:return Eo.Default}},Tn=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},zn=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Fn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const On=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Fn(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},In=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Eo.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},Nn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),_n=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Bn=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Rn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ln=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Mn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Pn=e=>Mn.test(e),jn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Un=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:jn(t),reason:o?jn(o):"",message:n,lastTransitionTime:i}))||[],Wn=(e,t)=>{const o=Fn(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}))},Vn=e=>e?Object.keys(e).filter(t=>e[t]):[],Hn=e=>e.replace(/[^\d]/g,""),qn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Gn=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},Kn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Kn(e)))}else if("object"==typeof n&&null!==n){const e=Kn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Yn=(e,t=2)=>JSON.stringify(e||{},null,t),Jn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Xn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Zn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return 1e4*parseInt(o[0]||"0",10)+parseInt(o[1]||"0",10)};var Qn,ei;!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"}(Qn||(Qn={})),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"}(ei||(ei={}));const ti=Bt.p`
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: ${({$color:e,theme:t})=>e||t.v2.colors.white[500]};
|
|
4
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
|
+
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
|
+
font-weight: ${({$weight:e})=>e};
|
|
7
|
+
text-align: ${({$align:e})=>e};
|
|
8
|
+
text-transform: ${({$transform:e})=>e};
|
|
9
|
+
line-height: ${({theme:e,$lineHeight:t,$size:o})=>t||`${e.v2.text.size[o]+2}px`};
|
|
10
|
+
|
|
11
|
+
${({$nowrap:e})=>e&&Rt`
|
|
12
|
+
text-wrap: nowrap;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
text-overflow: ellipsis;
|
|
16
|
+
`}
|
|
17
|
+
|
|
18
|
+
${({$underline:e})=>e&&Rt`
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
`}
|
|
21
|
+
`,oi=({children:e,variant:t=Qn.P,color:o,size:n=ei.S,weight:i=400,align:a="left",lineHeight:r,transform:s,nowrap:l,underline:c,...d})=>{const p=e?.toString().split("\n")||[];return bt.createElement(ti,{as:t,$color:o,$size:n,$weight:i,$align:a,$lineHeight:r,$transform:s,$nowrap:l,$underline:c,...d},p.map((e,t)=>bt.createElement(yt,{key:`typography-${t}-${e}`},e,t!==p.length-1&&bt.createElement("br",null))))},ni=Bt.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
min-width: ${({$minWidth:e})=>e};
|
|
27
|
+
width: fit-content;
|
|
28
|
+
padding: 4px 8px;
|
|
29
|
+
border-radius: 100px;
|
|
30
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
31
|
+
`,ii=({label:e,leftIcon:t,rightIcon:o,status:n=Do.Unknown,useSecondaryTone:i=!1,invertColors:a=!1,textSize:r,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Lt(),p=n?[Do.Disabled].includes(n)?En(d,n,a?"400":"700"):[Do.Unknown].includes(n)?En(d,n,"600"):En(d,n,a?i?"400":"300":i?"700":"500"):d.v2.colors.grey[200],u=s||(a&&![Do.Unknown].includes(n)?p:[Do.Disabled].includes(n)?d.v2.colors.grey[400]:[Eo.Error,Eo.Warning,Eo.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),h=l||(a&&![Do.Unknown].includes(n)?[Do.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:p);return bt.createElement(ni,{$backgroundColor:h,$minWidth:c},t&&bt.createElement(t,{fill:u,size:14}),bt.createElement(oi,{color:u,size:r||ei.XXS,nowrap:!0},e),o&&bt.createElement(o,{fill:u,size:14}))},ai=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),ri=[{label:"Attributes",icon:sn(ao.Attributes),items:[{type:ro.K8sAttributes,icon:sn(ro.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[qo.Traces,qo.Metrics,qo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:ro.AddClusterInfo,icon:sn(ro.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[qo.Traces,qo.Metrics,qo.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:ro.DeleteAttributes,icon:sn(ro.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[qo.Traces,qo.Metrics,qo.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:ro.RenameAttributes,icon:sn(ro.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[qo.Traces,qo.Metrics,qo.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:ro.PiiMasking,icon:sn(ro.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[qo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:sn(ao.Samplers),items:[{type:ro.ErrorSampler,icon:sn(ao.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[qo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:ro.LatencySampler,icon:sn(ao.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[qo.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:ro.ProbabilisticSampler,icon:sn(ao.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[qo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:ro.ServiceNameSampler,icon:sn(ao.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[qo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:ro.SpanAttributeSampler,icon:sn(ao.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[qo.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."}]}],si={DETECTED:{TITLE:"Detected by Odigos",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},EXISTS:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},MANAGED:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."},SELF_HOSTED:{TITLE:"Self-hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."}},li=[{type:Ro.CodeAttributes,icon:fn(Ro.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:Ro.CustomInstrumentation,icon:fn(Ro.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. 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:Ro.HeadersCollection,icon:fn(Ro.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:Ro.PayloadCollection,icon:fn(Ro.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]}],ci=[{id:qo.Logs,value:"Logs"},{id:qo.Metrics,value:"Metrics"},{id:qo.Traces,value:"Traces"}],di={[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"},pi=[{id:bo.Go,value:di[bo.Go],icon:dn(bo.Go)},{id:bo.Java,value:di[bo.Java],icon:dn(bo.Java)},{id:bo.JavaScript,value:di[bo.JavaScript],icon:dn(bo.JavaScript)},{id:bo.Python,value:di[bo.Python],icon:dn(bo.Python)},{id:bo.Php,value:di[bo.Php],icon:dn(bo.Php)},{id:bo.Ruby,value:di[bo.Ruby],icon:dn(bo.Ruby)},{id:bo.Rust,value:di[bo.Rust],icon:dn(bo.Rust)},{id:bo.DotNet,value:di[bo.DotNet],icon:dn(bo.DotNet)},{id:bo.CSharp,value:di[bo.CSharp],icon:dn(bo.CSharp)},{id:bo.CPlusPlus,value:di[bo.CPlusPlus],icon:dn(bo.CPlusPlus)},{id:bo.Swift,value:di[bo.Swift],icon:dn(bo.Swift)},{id:bo.Elixir,value:di[bo.Elixir],icon:dn(bo.Elixir)}],ui={[bo.Go]:{community:[{id:_o.GolangCommunity,value:_o.GolangCommunity,icon:dn(bo.Go)}],enterprise:[{id:_o.GolangEnterprise,value:_o.GolangEnterprise,icon:dn(bo.Go)}]},[bo.JavaScript]:{community:[{id:_o.NodejsCommunity,value:_o.NodejsCommunity,icon:dn(bo.JavaScript)}],enterprise:[{id:_o.NodejsEnterprise,value:_o.NodejsEnterprise,icon:dn(bo.JavaScript)}]},[bo.Python]:{community:[{id:_o.PythonCommunity,value:_o.PythonCommunity,icon:dn(bo.Python)}],enterprise:[{id:_o.PythonEnterprise,value:_o.PythonEnterprise,icon:dn(bo.Python)}]},[bo.Java]:{community:[{id:_o.JavaCommunity,value:_o.JavaCommunity,icon:dn(bo.Java)}],enterprise:[{id:_o.JavaEnterprise,value:_o.JavaEnterprise,icon:dn(bo.Java)},{id:_o.JavaEbpfInstrumentations,value:_o.JavaEbpfInstrumentations,icon:dn(bo.Java)}]},[bo.DotNet]:{community:[{id:_o.DotNetCommunity,value:_o.DotNetCommunity,icon:dn(bo.DotNet)}],enterprise:[{id:_o.DotNetEnterprise,value:_o.DotNetEnterprise,icon:dn(bo.DotNet)}]},[bo.Ruby]:{community:[{id:_o.RubyCommunity,value:_o.RubyCommunity,icon:dn(bo.Ruby)}],enterprise:[{id:_o.RubyEnterprise,value:_o.RubyEnterprise,icon:dn(bo.Ruby)}]},[bo.Php]:{community:[{id:_o.PhpCommunity,value:_o.PhpCommunity,icon:dn(bo.Php)}],enterprise:[{id:_o.PhpEnterprise,value:_o.PhpEnterprise,icon:dn(bo.Php)}]},[bo.CSharp]:{community:[],enterprise:[{id:_o.CPlusPlusEnterprise,value:_o.CPlusPlusEnterprise,icon:dn(bo.CSharp)}]},[bo.MySql]:{community:[],enterprise:[{id:_o.MySqlEnterprise,value:_o.MySqlEnterprise,icon:dn(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:[]}},hi=6048e5,mi=xt()(Ft(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Xo.DARK_MODE,storage:"undefined"!=typeof window?Ot(()=>localStorage):void 0})),gi={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},$i=xt(e=>({...gi,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(gi)})),fi=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),xi=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===wo.Namespace?"namespacesLoading":t===wo.Source?"sourcesLoading":t===wo.Destination?"destinationsLoading":t===wo.Action?"actionsLoading":t===wo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===wo.Namespace?"namespaces":t===wo.Source?"sources":t===wo.Destination?"destinations":t===wo.Action?"actions":t===wo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===wo.Namespace?"namespaces":t===wo.Source?"sources":t===wo.Destination?"destinations":t===wo.Action?"actions":t===wo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(mn(t))===JSON.stringify(mn(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===wo.Namespace?"namespaces":t===wo.Source?"sources":t===wo.Destination?"destinations":t===wo.Action?"actions":t===wo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===wo.Source?JSON.stringify(mn(o))===JSON.stringify(mn(e)):mn(o)===e);-1!==o&&i.splice(o,1)}),{[n]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),bi=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),yi=xt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:bi})),wi=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),ki=xt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,i=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:n.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 vi;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(vi||(vi={}));const Ci=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ei=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Si=xt((e,t)=>({progress:{},setProgress:(o,n)=>{const i=t(),a=Ci();return"number"==typeof n.total&&(a.total=n.total),"number"==typeof n.current&&(a.current=n.current),e({progress:{...i.progress,[o]:Ei(a)}})},addProgress:(o,n)=>{const i=t(),a=Ci(o,i.progress);return a.current+=n,e({progress:{...i.progress,[o]:Ei(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ai=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Di={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Ti=(e,t)=>e.destinationType.type!==t.destinationType.type,zi=xt(e=>({...Di,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),setAvailableSources:t=>e({availableSources:t}),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=>Ti(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=>Ti(e,t))})),clearStore:()=>e(()=>({...Di}))})),Fi={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"}},Oi={v2:Fi.v2,darkMode:!0,colors:{...Fi.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:Fi.font_family},Ii={v2:Fi.v2,darkMode:!1,colors:{...Fi.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:Fi.font_family},Ni=e=>e?Oi:Ii;var _i=Object.freeze({__proto__:null,baseTheme:Fi,darkModeTheme:Oi,getTheme:Ni,lightModeTheme:Ii});It('@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 Bi={in:{left:Pt`
|
|
32
|
+
from { transform: translateX(-100%); }
|
|
33
|
+
to { transform: translateX(0); }
|
|
34
|
+
`,right:Pt`
|
|
35
|
+
from { transform: translateX(100%); }
|
|
36
|
+
to { transform: translateX(0); }
|
|
37
|
+
`,top:Pt`
|
|
38
|
+
from { transform: translateY(-100%); }
|
|
39
|
+
to { transform: translateY(0); }
|
|
40
|
+
`,bottom:Pt`
|
|
41
|
+
from { transform: translateY(100%); }
|
|
42
|
+
to { transform: translateY(0); }
|
|
43
|
+
`,center:Pt`
|
|
44
|
+
from { transform: translate(-50%, 100%); }
|
|
45
|
+
to { transform: translate(-50%, -50%); }
|
|
46
|
+
`},out:{left:Pt`
|
|
47
|
+
from { transform: translateX(0); }
|
|
48
|
+
to { transform: translateX(-100%); }
|
|
49
|
+
`,right:Pt`
|
|
50
|
+
from { transform: translateX(0); }
|
|
51
|
+
to { transform: translateX(100%); }
|
|
52
|
+
`,top:Pt`
|
|
53
|
+
from { transform: translateY(0); }
|
|
54
|
+
to { transform: translateY(-100%); }
|
|
55
|
+
`,bottom:Pt`
|
|
56
|
+
from { transform: translateY(0); }
|
|
57
|
+
to { transform: translateY(100%); }
|
|
58
|
+
`,center:Pt`
|
|
59
|
+
from { transform: translate(-50%, -50%); }
|
|
60
|
+
to { transform: translate(-50%, 100%); }
|
|
61
|
+
`}},Ri={in:Pt`
|
|
62
|
+
from {
|
|
63
|
+
width: 0%;
|
|
64
|
+
}
|
|
65
|
+
to {
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
`,out:Pt`
|
|
69
|
+
from {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
to {
|
|
73
|
+
width: 0%;
|
|
74
|
+
}
|
|
75
|
+
`},Li=Pt`
|
|
76
|
+
0% {
|
|
77
|
+
transform: scale(1);
|
|
78
|
+
opacity: 1;
|
|
79
|
+
}
|
|
80
|
+
75%, 100% {
|
|
81
|
+
transform: scale(2);
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
`,Mi=Pt`
|
|
85
|
+
0% {
|
|
86
|
+
background-position: -500px 0;
|
|
87
|
+
}
|
|
88
|
+
100% {
|
|
89
|
+
background-position: 500px 0;
|
|
90
|
+
}
|
|
91
|
+
`,Pi={in:Pt`
|
|
92
|
+
from {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
to {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
`,out:Pt`
|
|
99
|
+
from {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
to {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
`},ji={Provider:({children:e})=>{const{darkMode:t}=mi();return bt.createElement(Mt,{theme:Ni(t)},e)},useTheme:Lt,opacity:Object.freeze({__proto__:null,hex:{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"}}),palletes:_i,animations:Object.freeze({__proto__:null,fade:Pi,ping:Li,progress:Ri,shimmer:Mi,slide:Bi})},Ui=Bt.div`
|
|
106
|
+
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
107
|
+
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
108
|
+
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
109
|
+
text-align: ${({$align:e})=>e||"left"};
|
|
110
|
+
opacity: ${({$opacity:e})=>void 0!==e?e:1};
|
|
111
|
+
text-decoration: ${({$decoration:e})=>e||"none"};
|
|
112
|
+
text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
|
|
113
|
+
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
114
|
+
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
115
|
+
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
116
|
+
`,Wi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,n]=e.split('"');return{original:e,href:o,label:n.replace("</a>","").replace(">","")}})},Vi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Hi=(e,t)=>{const o=Wi(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const n=Vi(e);return n?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,i]=e.split("###"),a=o?.[parseInt(n.replace("LINK-",""))];return bt.createElement(yt,{key:e},bt.createElement("a",{href:a?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=n?.[parseInt(t.replace("STRONG-",""))];return bt.createElement(yt,{key:e},bt.createElement("strong",{style:{fontWeight:600}},i?.label),o?`${o} `:" ")}return e+" "})},qi=({children:e,color:t,size:o,weight:n,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=ji.useTheme(),u=wt(()=>(e?["string","number"].includes(typeof e)?e.toString():Array.isArray(e)?e.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[e]);return bt.createElement(Ui,{$color:t,$size:o,$weight:n,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,$nowrap:c,...d},u.length?u.map((e,t)=>bt.createElement(yt,{key:`text-${t}-${e}`},Hi(e,p),t!==u.length-1?bt.createElement("br",null):null)):e)},Gi=Bt.div`
|
|
117
|
+
padding: 4px 0 0 0;
|
|
118
|
+
`,Ki=Bt(qi)`
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
color: ${({theme:e})=>e.text.error};
|
|
121
|
+
`,Yi=({children:e})=>bt.createElement(Gi,null,bt.createElement(Ki,null,e)),Ji=Bt.div`
|
|
122
|
+
position: relative;
|
|
123
|
+
width: 100%;
|
|
124
|
+
`,Xi=Bt.div`
|
|
125
|
+
width: calc(100% - 16px);
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
height: 36px;
|
|
129
|
+
gap: 8px;
|
|
130
|
+
padding-left: 12px;
|
|
131
|
+
transition: border-color 0.3s;
|
|
132
|
+
border-radius: 32px;
|
|
133
|
+
border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
137
|
+
}
|
|
138
|
+
&:focus-within {
|
|
139
|
+
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
140
|
+
}
|
|
141
|
+
`,Zi=Bt.input`
|
|
142
|
+
flex: 1;
|
|
143
|
+
border: none;
|
|
144
|
+
outline: none;
|
|
145
|
+
background: none;
|
|
146
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
147
|
+
font-size: 14px;
|
|
148
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
149
|
+
font-weight: 300;
|
|
150
|
+
&::placeholder {
|
|
151
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
152
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
153
|
+
opacity: 0.4;
|
|
154
|
+
font-size: 14px;
|
|
155
|
+
font-weight: 300;
|
|
156
|
+
line-height: 22px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&:disabled {
|
|
160
|
+
cursor: not-allowed;
|
|
161
|
+
}
|
|
162
|
+
`,Qi=Bt.ul`
|
|
163
|
+
position: absolute;
|
|
164
|
+
max-height: 500px;
|
|
165
|
+
top: 32px;
|
|
166
|
+
border-radius: 24px;
|
|
167
|
+
width: calc(100% - 32px);
|
|
168
|
+
overflow-y: auto;
|
|
169
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
170
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
171
|
+
z-index: 9999;
|
|
172
|
+
padding: 12px;
|
|
173
|
+
`,ea=Bt.li`
|
|
174
|
+
width: calc(100% - 24px);
|
|
175
|
+
padding: 8px 12px;
|
|
176
|
+
cursor: ${({$isList:e})=>e?"default":"pointer"};
|
|
177
|
+
border-radius: 24px;
|
|
178
|
+
gap: 8px;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: ${({$isList:e})=>e?"flex-start":"center"};
|
|
181
|
+
background: transparent;
|
|
182
|
+
&:hover {
|
|
183
|
+
background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
|
|
184
|
+
}
|
|
185
|
+
`,ta=Bt.div`
|
|
186
|
+
width: 100%;
|
|
187
|
+
`,oa=Bt.div`
|
|
188
|
+
display: flex;
|
|
189
|
+
width: 100%;
|
|
190
|
+
`,na=Bt.div`
|
|
191
|
+
width: 1px;
|
|
192
|
+
height: 52px;
|
|
193
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
194
|
+
position: absolute;
|
|
195
|
+
left: 33px;
|
|
196
|
+
`,ia=Bt.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
gap: 4px;
|
|
200
|
+
`,aa=Bt(qi)`
|
|
201
|
+
flex: 1;
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
`,ra=Bt(qi)`
|
|
204
|
+
color: ${({theme:e})=>e.text.grey};
|
|
205
|
+
font-size: 10px;
|
|
206
|
+
line-height: 150%;
|
|
207
|
+
`,sa=Bt.ul`
|
|
208
|
+
padding-left: 0px;
|
|
209
|
+
margin: 4px 0 0 0;
|
|
210
|
+
list-style: none;
|
|
211
|
+
width: 100%;
|
|
212
|
+
`,la=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const n=la(o.items,t);n.length&&e.push({...o,items:n})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,ca=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:n,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...c})=>{const[d,p]=kt(o?.label||i||""),[u,h]=kt(la(t,d)),[m,g]=kt(!1);kt(-1),vt(()=>h(la(t,d)),[t]);const $=o?.icon,f=e=>{e&&(p(e.label),a?.(e.label)),g(!e),n?.(e)};return bt.createElement(Ji,{style:r},bt.createElement(Xi,{$hasError:!!l},$&&bt.createElement($,null),bt.createElement(Zi,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,n=la(t,o),i=1===n.length&&n[0].label===o?n[0]:void 0;p(o),a?.(o),h(n),f(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})),m&&u.length?bt.createElement(Qi,null,u.map(e=>bt.createElement(da,{key:e.type||e.label,option:e,onClick:f}))):null,l&&bt.createElement(Yi,null,l))},da=({option:e,renderIcon:t=!0,onClick:o})=>{const n=!!e.items&&e.items.length>0,i=e.icon;return bt.createElement(ea,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:o(e)},i&&t&&bt.createElement(i,null),bt.createElement(ta,null,bt.createElement(ia,null,bt.createElement(aa,null,e.label),bt.createElement(ra,null,e.description)),n&&bt.createElement(sa,null,e.items?.map(e=>bt.createElement(oa,{key:e.type||e.label},bt.createElement(na,null),bt.createElement(da,{option:e,renderIcon:!1,onClick:o}))))))},pa=Bt.span`
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
|
|
217
|
+
min-height: 16px;
|
|
218
|
+
min-width: 16px;
|
|
219
|
+
width: fit-content;
|
|
220
|
+
padding: 4px;
|
|
221
|
+
gap: 2px;
|
|
222
|
+
|
|
223
|
+
border-radius: 50px;
|
|
224
|
+
border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":ji.opacity.hex["050"]):t?"transparent":e.colors.border};
|
|
225
|
+
background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
|
|
226
|
+
color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
|
|
227
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
white-space: nowrap;
|
|
230
|
+
|
|
231
|
+
${({theme:e,$filled:t,$status:o,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+ji.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+ji.opacity.hex["020"]};\n }`}
|
|
232
|
+
`,ua=({label:e,filled:t,status:o,withIcon:n,onClick:i})=>{const a=ji.useTheme(),r=o&&n?An(o,a):null;return bt.createElement(pa,{$filled:t,$status:o,$clickable:!!i,onClick:i},!!r&&bt.createElement(r,null),e)},ha=Bt.div`
|
|
233
|
+
height: fit-content;
|
|
234
|
+
border: 2px solid transparent;
|
|
235
|
+
padding: 2px;
|
|
236
|
+
border-radius: 32px;
|
|
237
|
+
background-color: transparent;
|
|
238
|
+
transition: border-color 0.3s ease;
|
|
239
|
+
&:focus-within {
|
|
240
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
241
|
+
}
|
|
242
|
+
`,ma={primary:Rt`
|
|
243
|
+
border: 1px solid ${({theme:e})=>e.text.secondary+ji.opacity.hex["024"]};
|
|
244
|
+
background: ${({theme:e})=>e.colors.secondary};
|
|
245
|
+
color: ${({theme:e})=>e.colors.primary};
|
|
246
|
+
&:hover {
|
|
247
|
+
background: ${({theme:e})=>e.colors.secondary+ji.opacity.hex["080"]};
|
|
248
|
+
}
|
|
249
|
+
&:active {
|
|
250
|
+
background: ${({theme:e})=>e.text.secondary+ji.opacity.hex["060"]};
|
|
251
|
+
}
|
|
252
|
+
`,secondary:Rt`
|
|
253
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
254
|
+
background: ${({theme:e})=>e.colors.primary};
|
|
255
|
+
color: ${({theme:e})=>e.colors.secondary};
|
|
256
|
+
&:hover {
|
|
257
|
+
border: 1px solid ${({theme:e})=>e.text.darker_grey};
|
|
258
|
+
background: ${({theme:e})=>e.colors.secondary+ji.opacity.hex["010"]};
|
|
259
|
+
}
|
|
260
|
+
&:active {
|
|
261
|
+
border: 1px solid ${({theme:e})=>e.text.dark_grey};
|
|
262
|
+
background: ${({theme:e})=>e.colors.secondary+ji.opacity.hex["015"]};
|
|
263
|
+
}
|
|
264
|
+
`,tertiary:Rt`
|
|
265
|
+
border-color: transparent;
|
|
266
|
+
background: transparent;
|
|
267
|
+
&:hover {
|
|
268
|
+
background: ${({theme:e})=>e.colors.dropdown_bg_2+ji.opacity.hex["040"]};
|
|
269
|
+
}
|
|
270
|
+
&:active {
|
|
271
|
+
background: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
272
|
+
}
|
|
273
|
+
`,danger:Rt`
|
|
274
|
+
border-color: transparent;
|
|
275
|
+
background: ${({theme:e})=>e.text.error};
|
|
276
|
+
&:hover {
|
|
277
|
+
background: ${({theme:e})=>e.text.error+ji.opacity.hex["090"]};
|
|
278
|
+
}
|
|
279
|
+
&:active {
|
|
280
|
+
background: ${({theme:e})=>e.text.error+ji.opacity.hex["080"]};
|
|
281
|
+
}
|
|
282
|
+
`,warning:Rt`
|
|
283
|
+
border-color: transparent;
|
|
284
|
+
background: ${({theme:e})=>e.text.warning};
|
|
285
|
+
&:hover {
|
|
286
|
+
background: ${({theme:e})=>e.text.warning+ji.opacity.hex["090"]};
|
|
287
|
+
}
|
|
288
|
+
&:active {
|
|
289
|
+
background: ${({theme:e})=>e.text.warning+ji.opacity.hex["080"]};
|
|
290
|
+
}
|
|
291
|
+
`},ga=Bt.button`
|
|
292
|
+
height: 36px;
|
|
293
|
+
border-radius: 32px;
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
display: flex;
|
|
296
|
+
align-items: center;
|
|
297
|
+
justify-content: center;
|
|
298
|
+
gap: 8px;
|
|
299
|
+
padding: 0 12px;
|
|
300
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
301
|
+
text-transform: uppercase;
|
|
302
|
+
text-decoration: underline;
|
|
303
|
+
font-weight: 600;
|
|
304
|
+
outline: none;
|
|
305
|
+
${({$variant:e})=>e&&ma[e]}
|
|
306
|
+
${({disabled:e,$variant:t})=>e&&Rt`
|
|
307
|
+
opacity: 0.5;
|
|
308
|
+
cursor: not-allowed;
|
|
309
|
+
|
|
310
|
+
${"primary"===t?Rt`
|
|
311
|
+
color: ${({theme:e})=>e.colors.secondary};
|
|
312
|
+
background: ${({theme:e})=>e.text.secondary+ji.opacity.hex["010"]};
|
|
313
|
+
&:hover {
|
|
314
|
+
background: ${({theme:e})=>e.text.secondary+ji.opacity.hex["015"]};
|
|
315
|
+
}
|
|
316
|
+
`:""}
|
|
317
|
+
`}
|
|
318
|
+
`,$a=({children:e,variant:t="primary",onClick:o,...n})=>{const i=Ct(null);return bt.createElement(ha,{$variant:t},bt.createElement(ga,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...n},e))},fa=e=>{function t(){return void 0===e?{}:to(e)}const[o,n]=kt(t()),[i,a]=kt({}),r=(e,t)=>Object.entries(e).every(([e,o])=>Array.isArray(o)?o.length===t[e].length&&o.every((o,n)=>r(o,t[e][n])):"object"==typeof o&&null!==o?r(o,t[e]):o===t[e]),s=wt(()=>void 0!==e&&!r(e,o),[e,o]);return vt(()=>{void 0!==e&&"{}"===JSON.stringify(o)&&n(t())},[e,o]),{formData:o,formErrors:i,areFormValuesEqual:r,isFormDirty:s,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const n=to(e);let i=n;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,n})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{e?a(o=>({...o,[e]:t})):o&&a({...o})},resetFormData:e=>{n(e||t()),a({})}}},xa={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}},ba=()=>{const{addNotification:e}=ki(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:i,resetFormData:a}=fa(xa);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:o=>{const n={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Nn(t)&&(n[e]=Zo.FIELD_IS_REQUIRED)}}),a=!Object.values(n).length,!a&&o?.withAlert&&e({type:Eo.Warning,title:o.alertTitle,message:Zo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),a},loadFormWithDrawerItem:({type:e,signals:t,fields:o})=>{const i={...to(xa),type:e,signals:t};Object.entries(o).forEach(([e,t])=>{if(t)switch(e){case"actionName":i.name=t;break;case"type":case"notes":case"disabled":i[e]=t;break;case so.CollectContainerAttributes:case so.CollectReplicaSetAttributes:case so.CollectWorkloadId:case so.CollectClusterId:case so.LabelsAttributes:case so.AnnotationsAttributes:case so.ClusterAttributes:case so.OverwriteExistingValues:case so.AttributeNamesToDelete:case so.Renames:case so.PiiCategories:case so.FallbackSamplingRatio:case so.SamplingPercentage:case so.EndpointsFilters:case so.ServicesNameFilters:case so.AttributeFilters:i.fields||(i.fields={}),i.fields[e]=t}}),n(void 0,void 0,i)}}},ya=e=>{vt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},wa=()=>{const{setCurrentModal:e}=wi(),{setDrawerType:t,setDrawerEntityId:o}=fi(),{setActiveNodeType:n,setActiveNodeId:i,activeNodeId:a}=ai();return{onClickNode:(r,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(a===l?(n(null),i(null)):(n(c),i(l)),p){case wo.Source:case wo.Destination:case wo.Action:case wo.InstrumentationRule:t(p),o(d);break;case Oo.AddSource:e(wo.Source);break;case Oo.AddDestination:e(wo.Destination);break;case Oo.AddAction:e(wo.Action);break;case Oo.AddRule:e(wo.InstrumentationRule)}}}},ka=()=>{const{setDrawerType:e,setDrawerEntityId:t}=fi(),{markAsDismissed:o,markAsSeen:n}=ki();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:c}=a||{};if(s&&l)switch(s){case wo.InstrumentationRule:e(wo.InstrumentationRule),t($n(l,wo.InstrumentationRule));break;case wo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(wo.Source),t($n(l,wo.Source));break;case wo.Action:e(wo.Action),t($n(l,wo.Action));break;case wo.Destination:case"Destination":e(wo.Destination),t($n(l,wo.Destination))}n(r),c&&o(r)}}},va=()=>{const e=Ct(null),[t,o]=kt(0),[n,i]=kt(0);return vt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Ca;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ca||(Ca={}));const Ea=Bt.div`
|
|
319
|
+
width: ${({$size:e})=>1.5*e}px;
|
|
320
|
+
height: ${({$size:e})=>1.5*e}px;
|
|
321
|
+
display: flex;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
border-radius: 100%;
|
|
325
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
326
|
+
&:hover {
|
|
327
|
+
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
328
|
+
}
|
|
329
|
+
`,Sa=({icon:e,size:t=Ca.S,onClick:o,disabled:n})=>bt.createElement(Ea,{$size:t,$disabled:n,onClick:e=>{o&&!n&&(e.stopPropagation(),o(e))}},bt.createElement(e,{size:t})),Aa=({onDone:e}={})=>{const[t,o]=kt(!1),[n,i]=kt(-1),a=Et(async(n,a)=>{if(!t){if(o(!0),void 0!==a&&i(a),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:Et(({value:e,size:o})=>{const n=t?Ge:Ke;return bt.createElement(Sa,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},Da=e=>{const{addNotification:t}=ki(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=fa(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?_n(o.name)?n.name=void 0:(i=!1,n.name=Zo.ILLEGAL_K8S_LABEL):(i=!1,n.name=Zo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Eo.Warning,title:e.alertTitle,message:Zo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...to(e),name:t};n(void 0,void 0,o)}}},Ta={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},za=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=ki(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=fa(Ta),[c,d]=kt([]),[p,u]=kt([]);return vt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:i,initialValue:a,renderCondition:r}=e;if(o===vo.Dropdown){const e=Fn(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:o,title:i,value:a,renderCondition:r,...Fn(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Fn(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),vt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),vt(()=>{if(t&&0===Vn(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:n,required:i})=>{i&&!n&&(o=!1,t[e]=Zo.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:Eo.Warning,title:e.alertTitle,message:Zo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:i})=>{const a={...to(Ta),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Fn(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Fa=({items:e,rowHeight:t})=>{const o=Ct(null),n=Nt({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>o.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:o,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},Oa={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[jo.HttpRequest]:null,[jo.HttpResponse]:null,[jo.DbQuery]:null,[jo.Messaging]:null},codeAttributes:{[Lo.Column]:null,[Lo.FilePath]:null,[Lo.Function]:null,[Lo.LineNumber]:null,[Lo.Namespace]:null,[Lo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Po.Java]:null,[Po.Golang]:null}},Ia=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=fa(Oa);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...to(Oa),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[jo.HttpRequest]:i[jo.HttpRequest]?{}:null,[jo.HttpResponse]:i[jo.HttpResponse]?{}:null,[jo.DbQuery]:i[jo.DbQuery]?{}:null,[jo.Messaging]:i[jo.Messaging]?{}:null}),a&&(l.codeAttributes={[Lo.Column]:a[Lo.Column]||null,[Lo.FilePath]:a[Lo.FilePath]||null,[Lo.Function]:a[Lo.Function]||null,[Lo.LineNumber]:a[Lo.LineNumber]||null,[Lo.Namespace]:a[Lo.Namespace]||null,[Lo.StackTrace]:a[Lo.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Po.Java]:s[Po.Java]||null,[Po.Golang]:s[Po.Golang]||null}),o(void 0,void 0,l)}}},Na=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:i,withMetaKey:a},r)=>(vt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,n,i,a,r]),null),_a=(e,t)=>{vt(()=>{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])},Ba=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=Ct(null),[i,a]=kt(!1),[r,s]=kt({top:0,left:0});return _a(n,()=>{i&&(a(!1),o?.())}),{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(o,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,c=o;l>=r/2&&(l+=-(n.current?.clientHeight||e)),c>=a/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Ra=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Fn(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),La={otelServiceName:"",currentStreamName:""},Ma=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=fa(La);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...to(La),otelServiceName:e||t||""};o(void 0,void 0,n)}}},Pa=(e,t,o)=>{const n="boolean"==typeof o,i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,a=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=(n?o:e.selected&&(!i||a))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},ja=(e,t,o)=>({...Pa(e,t,o),currentStreamName:t}),Ua=(e,t,o)=>{const n="boolean"==typeof o,i=e.dataStreamNames?.includes(t),a=(n?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!n)&&a,currentStreamName:t}},Wa=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=xi(),{selectedStreamName:n}=$i(),i=Ct(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=zi(),[d,p]=kt(s),[u,h]=kt(""),[m,g]=kt(!1),[$,f]=kt([]),[x,b]=kt(""),[y,w]=kt(r),[k,v]=kt(((e,t,o)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>ja(e,o))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=ja(t,o);-1!==i?n[e][i]=a:n[e].push(a)})}),n})(s,a,n)),C=async(e,o)=>{if(t){if(h(e.name),$.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof o?o:e.selected,currentStreamName:n}))}));else{const{data:i}=await t({namespaceName:e.name}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>Pa(e,n));f(e=>[...e,a]),l({...zi.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>ja(e,n,o))}))}h("")}};vt(()=>(i.current=!0,o?.length&&!zi.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return o.forEach(e=>t[e.name]=t[e.name]||Ua(e,n)),t}),(async()=>{for await(const e of o)i.current&&await C(e)})(),i.current&&c(!0)),()=>{i.current=!1}),[o,n]);const[E,S]=kt(""),[A,D]=kt(wo.Source),[T,z]=kt(!1),[F,O]=kt(!1),I=wt(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,wo.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,wo.Source)&&(!T||t.selected)&&(e=>!F||(e.numberOfInstances||0)>0)(t));(!E||E&&(A===wo.Namespace||A===wo.Source&&i.length))&&(t[o]=i)}),t},[k,E,A,T,F]);return{fetchingNamespace:u,fetchedNamespaces:$,availableSources:d,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,o])=>{o.forEach(o=>{const n=d[t]?.find(e=>e.name===o.name&&e.kind===o.kind);n?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).forEach(([t,i])=>{const a=o?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(n)||!i.selected&&a?.dataStreamNames?.includes(n))&&(e[t]=i)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const n=o.find(t=>t.name===e);if(n){const o="boolean"==typeof t;b(t=>t!==e||o?e:""),C(n,t),o&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),o.forEach(t=>C(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const o=t||x;if(!o)return;const i=[...k[o]||[]],a=i.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[o]:i})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const i=t||x;if(!i)return;const a=o.find(e=>e.name===t);a&&w(t=>({...t,[i]:Ua(a,n,e)}))},searchText:E,setSearchText:S,searchBy:A,setSearchBy:D,showSelectedOnly:T,setShowSelectedOnly:z,showRunningOnly:F,setShowRunningOnly:O}};try{zt.addDefaultLocale(_t)}catch(e){}const Va=()=>{const e=Ct(new zt(_t.locale));return{formatTimeAgo:Et(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Ha=Bt.div`
|
|
330
|
+
flex: 1;
|
|
331
|
+
align-self: stretch;
|
|
332
|
+
display: flex;
|
|
333
|
+
flex-direction: column;
|
|
334
|
+
gap: 24px;
|
|
335
|
+
padding: 24px 24px 0 24px;
|
|
336
|
+
overflow-x: scroll;
|
|
337
|
+
`,qa=Bt.div`
|
|
338
|
+
position: relative;
|
|
339
|
+
|
|
340
|
+
// inherit all the properties of the parent (PageContent)
|
|
341
|
+
flex: inherit;
|
|
342
|
+
align-self: inherit;
|
|
343
|
+
display: inherit;
|
|
344
|
+
flex-direction: inherit;
|
|
345
|
+
gap: inherit;
|
|
346
|
+
overflow-x: inherit;
|
|
347
|
+
`,Ga=Bt.div`
|
|
348
|
+
display: flex;
|
|
349
|
+
flex-direction: row;
|
|
350
|
+
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
351
|
+
align-items: ${({$alignItems:e="center"})=>e};
|
|
352
|
+
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
353
|
+
gap: ${({$gap:e=2})=>e}px;
|
|
354
|
+
width: ${({$width:e})=>e||"unset"};
|
|
355
|
+
padding: ${({$padding:e="unset"})=>e};
|
|
356
|
+
`,Ka=Bt.div`
|
|
357
|
+
display: flex;
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
360
|
+
align-items: ${({$alignItems:e="unset"})=>e};
|
|
361
|
+
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
362
|
+
gap: ${({$gap:e=2})=>e}px;
|
|
363
|
+
width: ${({$width:e})=>e||"unset"};
|
|
364
|
+
padding: ${({$padding:e="unset"})=>e};
|
|
365
|
+
`,Ya=Bt(Ka)`
|
|
366
|
+
width: ${({$width:e})=>e||"100%"};
|
|
367
|
+
height: ${({$height:e})=>e||"unset"};
|
|
368
|
+
align-items: center;
|
|
369
|
+
justify-content: center;
|
|
370
|
+
`,Ja=Bt.div`
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
padding: 12px;
|
|
374
|
+
overflow-y: scroll;
|
|
375
|
+
`,Xa=Bt.div`
|
|
376
|
+
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
377
|
+
top: 0;
|
|
378
|
+
left: 0;
|
|
379
|
+
right: 0;
|
|
380
|
+
bottom: 0;
|
|
381
|
+
z-index: 1000;
|
|
382
|
+
background: rgba(0, 0, 0, 0.6);
|
|
383
|
+
backdrop-filter: blur(2px);
|
|
384
|
+
`,Za=Bt.div`
|
|
385
|
+
width: 800px;
|
|
386
|
+
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
387
|
+
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
388
|
+
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
389
|
+
padding: 0 2px;
|
|
390
|
+
overflow-y: scroll;
|
|
391
|
+
`,Qa=Bt(Ka)`
|
|
392
|
+
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
393
|
+
width: 100%;
|
|
394
|
+
`,er=Bt(Ga)`
|
|
395
|
+
gap: 16px;
|
|
396
|
+
padding: 16px;
|
|
397
|
+
`,tr=Bt.div`
|
|
398
|
+
width: 100%;
|
|
399
|
+
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
400
|
+
overflow-y: auto;
|
|
401
|
+
`,or=Bt.div`
|
|
402
|
+
position: fixed;
|
|
403
|
+
top: 50%;
|
|
404
|
+
left: 50%;
|
|
405
|
+
transform: translate(-50%, -50%);
|
|
406
|
+
z-index: 1000;
|
|
407
|
+
width: fit-content;
|
|
408
|
+
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
409
|
+
border: ${({theme:e})=>`1px solid ${e.colors.border}`};
|
|
410
|
+
border-radius: 40px;
|
|
411
|
+
box-shadow: ${({theme:e})=>{const t=e.colors.primary+ji.opacity.hex["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}`}};
|
|
412
|
+
animation-name: ${ji.animations.slide.in.center};
|
|
413
|
+
`,nr=Bt.div`
|
|
414
|
+
display: flex;
|
|
415
|
+
justify-content: space-between;
|
|
416
|
+
align-items: center;
|
|
417
|
+
height: 80px;
|
|
418
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
419
|
+
padding: 0 24px;
|
|
420
|
+
`,ir=Bt.div`
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
display: flex;
|
|
423
|
+
align-items: center;
|
|
424
|
+
gap: 8px;
|
|
425
|
+
`,ar=Bt.div`
|
|
426
|
+
display: flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
gap: 8px;
|
|
429
|
+
`,rr=Bt(Ya)`
|
|
430
|
+
min-width: 350px;
|
|
431
|
+
min-height: 150px;
|
|
432
|
+
`,sr=Bt.div`
|
|
433
|
+
position: absolute;
|
|
434
|
+
left: 50%;
|
|
435
|
+
transform: translateX(-50%);
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
justify-content: center;
|
|
439
|
+
width: 100%;
|
|
440
|
+
pointer-events: none;
|
|
441
|
+
`,lr=Bt(qi)`
|
|
442
|
+
text-transform: uppercase;
|
|
443
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
444
|
+
pointer-events: auto;
|
|
445
|
+
`,cr=Bt(qi)`
|
|
446
|
+
text-transform: uppercase;
|
|
447
|
+
font-weight: 500;
|
|
448
|
+
font-size: 14px;
|
|
449
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
450
|
+
text-decoration: underline;
|
|
451
|
+
cursor: pointer;
|
|
452
|
+
`,dr=({isOpen:e,noOverlay:t,header:o,actionComponent:n,onClose:i,children:a,closeOnEscape:r=!0})=>(Na({key:"Escape",active:e&&r},()=>i()),ya(e),e?Ht.createPortal(bt.createElement(bt.Fragment,null,bt.createElement(Xa,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),bt.createElement(or,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:"")},o&&bt.createElement(nr,null,bt.createElement(ir,{onClick:i},bt.createElement(Ye,null),bt.createElement(cr,null,"Cancel")),bt.createElement(sr,null,bt.createElement(lr,null,o.title)),bt.createElement(ar,null,n)),bt.createElement(rr,null,a))),document.body):null),pr=Bt.div`
|
|
453
|
+
width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
|
|
454
|
+
height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
|
|
455
|
+
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
456
|
+
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+ji.opacity.hex["050"]};
|
|
457
|
+
opacity: ${({$opacity:e})=>e||1};
|
|
458
|
+
`,ur=({orientation:e="horizontal",type:t,thickness:o=1,length:n,margin:i,opacity:a})=>bt.createElement(pr,{$orientation:e,$type:t,$thickness:o,$length:n,$margin:i,$opacity:a}),hr=Bt.div`
|
|
459
|
+
position: absolute;
|
|
460
|
+
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
461
|
+
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
462
|
+
${({$left:e})=>void 0!==e&&`left: ${e}px;`}
|
|
463
|
+
${({$right:e})=>void 0!==e&&`right: ${e}px;`}
|
|
464
|
+
z-index: 9999;
|
|
465
|
+
|
|
466
|
+
background-color: ${({theme:e})=>e.colors.info};
|
|
467
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
468
|
+
border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
|
|
469
|
+
max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
|
|
470
|
+
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
471
|
+
|
|
472
|
+
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
473
|
+
`,mr=Bt.div`
|
|
474
|
+
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
475
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
476
|
+
`,gr=Bt.div`
|
|
477
|
+
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
478
|
+
`,$r=Bt.div`
|
|
479
|
+
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
480
|
+
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
481
|
+
`,fr=St(({isOpen:e,asPortal:t,...o},n)=>{const i=wt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return bt.createElement(hr,{ref:n,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g},u&&bt.createElement(mr,{$padding:c},u),bt.createElement(gr,{$padding:c},e),h&&bt.createElement($r,{$padding:c},h))},[n,o,t]);return e?t?Ht.createPortal(i,document.body):i:null});fr.displayName=fr.name;const xr=Bt.div`
|
|
482
|
+
position: relative;
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
gap: 4px;
|
|
486
|
+
// cursor: help;
|
|
487
|
+
`,br=Bt(qi)`
|
|
488
|
+
word-break: break-word;
|
|
489
|
+
white-space: pre-wrap;
|
|
490
|
+
`,yr=({withIcon:e,titleIcon:t,title:o,text:n,timestamp:i,children:a})=>{const r=ji.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=Ba({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=wt(()=>!!Wi(n||"")?.length,[n]),h=e=>{const{type:t,clientX:o,clientY:n}=e;u?p(d.left||o,d.top||n):p(o,n),c("mouseleave"!==t)};return n?bt.createElement(xr,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h},a,e&&bt.createElement(qe,{fill:r.v2.colors.silver[200]}),bt.createElement(fr,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!o)&&bt.createElement(Ga,{style:{marginBottom:"4px"},$gap:4},t&&bt.createElement(t,{key:"icon",size:12,fill:r.text.secondary}),o&&bt.createElement(qi,{key:"title",size:12,color:r.text.secondary},o)),bt.createElement(br,{size:12,color:r.text.info},n),!!i&&bt.createElement(qi,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):bt.createElement(bt.Fragment,null,a)},wr=Bt.button`
|
|
491
|
+
position: relative;
|
|
492
|
+
width: ${({$size:e})=>e}px;
|
|
493
|
+
height: ${({$size:e})=>e}px;
|
|
494
|
+
border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
|
|
495
|
+
border-radius: 100%;
|
|
496
|
+
background-color: ${({$backgroundColor:e})=>e||"transparent"};
|
|
497
|
+
display: flex;
|
|
498
|
+
align-items: center;
|
|
499
|
+
justify-content: center;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
&:hover {
|
|
502
|
+
background-color: ${({theme:e,$backgroundColor:t})=>t?t+ji.opacity.hex["070"]:e.colors.dropdown_bg_2};
|
|
503
|
+
}
|
|
504
|
+
`,kr=Bt.div`
|
|
505
|
+
position: absolute;
|
|
506
|
+
top: ${({$size:e})=>e/5}px;
|
|
507
|
+
right: ${({$size:e})=>e/5}px;
|
|
508
|
+
width: 6px;
|
|
509
|
+
height: 6px;
|
|
510
|
+
border-radius: 100%;
|
|
511
|
+
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
512
|
+
|
|
513
|
+
&::after {
|
|
514
|
+
content: '';
|
|
515
|
+
position: absolute;
|
|
516
|
+
inset: 0;
|
|
517
|
+
border-radius: 100%;
|
|
518
|
+
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
519
|
+
animation: ${ji.animations.ping} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
520
|
+
}
|
|
521
|
+
`,vr=({children:e,onClick:t,tooltip:o,size:n=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>bt.createElement(yr,{text:o},bt.createElement(wr,{$size:n,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&bt.createElement(kr,{$size:n,$color:a}),e)),Cr=Bt.div`
|
|
522
|
+
position: relative;
|
|
523
|
+
&.animated {
|
|
524
|
+
overflow: hidden;
|
|
525
|
+
padding-bottom: 1px;
|
|
526
|
+
border-radius: 32px;
|
|
527
|
+
animation: ${({$isLeaving:e})=>e?ji.animations.slide.out.bottom:ji.animations.slide.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
528
|
+
}
|
|
529
|
+
`,Er=Bt.div`
|
|
530
|
+
position: absolute;
|
|
531
|
+
bottom: -1px;
|
|
532
|
+
left: 0;
|
|
533
|
+
z-index: -1;
|
|
534
|
+
width: 100%;
|
|
535
|
+
height: 100%;
|
|
536
|
+
border-radius: 32px;
|
|
537
|
+
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
538
|
+
animation: ${ji.animations.progress.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
539
|
+
`,Sr=Bt.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
align-items: center;
|
|
542
|
+
flex: 1;
|
|
543
|
+
gap: 8px;
|
|
544
|
+
padding: 0 12px;
|
|
545
|
+
border-radius: 32px;
|
|
546
|
+
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
547
|
+
`,Ar=Bt.div`
|
|
548
|
+
display: flex;
|
|
549
|
+
align-items: center;
|
|
550
|
+
margin: 0 auto 0 0;
|
|
551
|
+
padding: 8px 0;
|
|
552
|
+
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
553
|
+
min-height: 12px;
|
|
554
|
+
`,Dr=Bt(qi)`
|
|
555
|
+
font-size: 14px;
|
|
556
|
+
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
557
|
+
`,Tr=Bt(qi)`
|
|
558
|
+
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
559
|
+
font-size: 12px;
|
|
560
|
+
`,zr=Bt(Ga)``,Fr=Bt(qi)`
|
|
561
|
+
text-transform: uppercase;
|
|
562
|
+
text-decoration: underline;
|
|
563
|
+
font-size: 12px;
|
|
564
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
565
|
+
white-space: nowrap;
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
&:hover {
|
|
568
|
+
transform: scale(1.1);
|
|
569
|
+
transition: transform 0.3s;
|
|
570
|
+
}
|
|
571
|
+
`,Or=({type:e,icon:t,title:o,message:n,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const c=ji.useTheme(),[d,p]=kt(!1),u=Ct(null),h=Ct(null),m=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};vt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||An(e,c);return bt.createElement(Cr,{className:a?"animated":"",$duration:r,$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*r;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}}},bt.createElement(Sr,{"data-id":"toast",$type:e,style:l},bt.createElement(g,{fill:c.text[e]}),bt.createElement(Ar,{$withAction:!!i,$overrideMaxWidth:s},o&&bt.createElement(Dr,{$type:e},o),o&&n&&bt.createElement(ur,{orientation:"vertical",type:e}),n&&bt.createElement(Tr,{$type:e},n)),(!!i||!!a)&&bt.createElement(zr,null,i&&bt.createElement(Fr,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&bt.createElement(vr,{"data-id":"toast-close",onClick:()=>m({asSeen:!0})},bt.createElement(Ye,{size:12})))),a&&bt.createElement(Er,{ref:h,$duration:r,$type:e}))},Ir=Bt.div`
|
|
572
|
+
padding: 24px 32px;
|
|
573
|
+
`,Nr=Bt.div`
|
|
574
|
+
padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
|
|
575
|
+
`,_r=Bt(qi)`
|
|
576
|
+
font-size: 20px;
|
|
577
|
+
line-height: 28px;
|
|
578
|
+
`,Br=Bt(qi)`
|
|
579
|
+
color: ${({theme:e})=>e.text.grey};
|
|
580
|
+
width: 416px;
|
|
581
|
+
font-style: normal;
|
|
582
|
+
font-weight: 300;
|
|
583
|
+
line-height: 24px;
|
|
584
|
+
`,Rr=Bt.div`
|
|
585
|
+
display: flex;
|
|
586
|
+
justify-content: space-between;
|
|
587
|
+
gap: 12px;
|
|
588
|
+
`,Lr=Bt($a)`
|
|
589
|
+
width: 250px;
|
|
590
|
+
`,Mr=Bt.div`
|
|
591
|
+
margin-bottom: 12px;
|
|
592
|
+
`,Pr=({isOpen:e,noOverlay:t,title:o="",description:n="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{Na({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return bt.createElement(dr,{isOpen:e,noOverlay:t,onClose:l},bt.createElement(Ir,null,bt.createElement(_r,null,o),bt.createElement(Nr,{$withNote:!!i},bt.createElement(Br,null,n)),!!i&&bt.createElement(Mr,null,bt.createElement(Or,{type:i.type,title:i.title,message:i.message})),bt.createElement(Rr,null,bt.createElement(Lr,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),bt.createElement(Lr,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},jr=({isOpen:e,noOverlay:t,name:o,onApprove:n,onDeny:i})=>bt.createElement(Pr,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Eo.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),Ur=Bt.div`
|
|
593
|
+
display: flex;
|
|
594
|
+
align-items: center;
|
|
595
|
+
gap: 8px;
|
|
596
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
597
|
+
opacity: ${({$disabled:e})=>e?.6:1};
|
|
598
|
+
`,Wr=Bt.div`
|
|
599
|
+
width: 18px;
|
|
600
|
+
height: 18px;
|
|
601
|
+
border-radius: 6px;
|
|
602
|
+
border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e||t?"transparent":o.colors.secondary};
|
|
603
|
+
display: flex;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: center;
|
|
606
|
+
background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+ji.opacity.hex["020"]};
|
|
607
|
+
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
608
|
+
transition: border 0.3s;
|
|
609
|
+
&:hover {
|
|
610
|
+
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
611
|
+
}
|
|
612
|
+
`,Vr=({title:e,titleColor:t,tooltip:o,value:n=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=ji.useTheme(),[p,u]=kt(n);return vt(()=>u(n),[n]),bt.createElement(Ka,null,bt.createElement(Ur,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(c||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},bt.createElement(Wr,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?bt.createElement(Je,{fill:d.text.white}):p?bt.createElement(Ge,{fill:d.text.white}):null),e&&bt.createElement(yr,{text:o,withIcon:!0},bt.createElement(qi,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"}},e))),!!l&&bt.createElement(Yi,null,l))},Hr=Bt(Ga)`
|
|
613
|
+
gap: 0;
|
|
614
|
+
`,qr=Bt.button`
|
|
615
|
+
padding: 4px 8px;
|
|
616
|
+
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
617
|
+
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
618
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
619
|
+
display: flex;
|
|
620
|
+
align-items: center;
|
|
621
|
+
justify-content: center;
|
|
622
|
+
cursor: pointer;
|
|
623
|
+
&:hover {
|
|
624
|
+
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
625
|
+
}
|
|
626
|
+
`,Gr=({isPrettyMode:e,setIsPrettyMode:t})=>bt.createElement(Hr,null,bt.createElement(qr,{$position:"left",$selected:e,onClick:()=>t(!0)},bt.createElement(Xe,null)),bt.createElement(qr,{$position:"right",$selected:!e,onClick:()=>t(!1)},bt.createElement(Ze,null))),Kr=Bt.table`
|
|
627
|
+
border-collapse: collapse;
|
|
628
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
629
|
+
`,Yr=Bt.tbody``,Jr=Bt.tr`
|
|
630
|
+
td:first-child {
|
|
631
|
+
padding-left: 0 !important;
|
|
632
|
+
}
|
|
633
|
+
td:last-child {
|
|
634
|
+
padding-right: 0 !important;
|
|
635
|
+
}
|
|
636
|
+
`,Xr=Bt.td`
|
|
637
|
+
vertical-align: top;
|
|
638
|
+
padding: 4px 6px;
|
|
639
|
+
`,Zr=Bt(qi)`
|
|
640
|
+
white-space: nowrap;
|
|
641
|
+
`,Qr=Bt.span`
|
|
642
|
+
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
643
|
+
overflow-wrap: break-word;
|
|
644
|
+
word-break: break-word;
|
|
645
|
+
word-wrap: break-word;
|
|
646
|
+
/* Fallback for older browsers */
|
|
647
|
+
-ms-word-break: break-all;
|
|
648
|
+
font-size: 12px;
|
|
649
|
+
`,es=({language:e,code:t,theme:o,flatten:n,pretty:i})=>{const{darkMode:a}=ji.useTheme(),r=o?Jt[o]:a?Jt.palenight:Jt.vsLight;let s="";if("json"===e){const e=Fn(t,{}),o=Kn(e);s=Yn(n?on(o):o)}else s=t;return i&&"json"===e?bt.createElement(ts,{darkMode:a,str:s}):bt.createElement(Yt,{theme:r||(a?Jt.palenight:Jt.vsLight),language:e,code:s},({getLineProps:e,getTokenProps:t,tokens:o})=>bt.createElement("pre",null,o.map((o,n)=>bt.createElement("div",{key:`line-${n}`,...e({line:o})},o.map((e,o)=>bt.createElement(Qr,{key:`line-${n}-token-${o}`,...t({token:e})}))))))},ts=({darkMode:e,str:t})=>{const o=ji.useTheme();return bt.createElement(Yt,{theme:e?Jt.palenight:Jt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:n})=>bt.createElement(Kr,null,bt.createElement(Yr,null,n.map((n,i)=>{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],n=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(n.split("@")[0])&&(o[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:n}})})(n),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?bt.createElement(yt,{key:`line-${i}`},((e,t)=>{const n=new Array(2).fill(e=>bt.createElement(Jr,{...e},bt.createElement(Xr,null),bt.createElement(Xr,null)));return bt.createElement(yt,null,n.map((e,n)=>bt.createElement(e,{key:`empty-row-${t}-${n}`,style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}})))})(0,i),bt.createElement(Jr,{...r},bt.createElement(Xr,null,bt.createElement(Zr,null,a[0].content)),bt.createElement(Xr,null))):2===a.length?bt.createElement(Jr,{key:`line-${i}`,...r},a.map((e,n)=>{const{text:a,components:r}=((e,t)=>{const[o,...n]=e.split("@");return{text:o,components:n?.map((e,o)=>{if(!e.includes("="))return null;const[n,i]=e.split("=");switch(n){case"tooltip":return bt.createElement(yr,{key:`${n}-${i}-${o}`,withIcon:!0,text:i});case"status":if("none"===i)return bt.createElement("div",{key:`${n}-${i}-${o}`,style:{width:16,height:16}});let e=An(i,t);return e||(e=An(Eo.Warning,t)),bt.createElement(e,{key:`${n}-${i}-${o}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===n;return bt.createElement(Xr,{key:`line-${i}-token-${n}`},bt.createElement(Ga,null,bt.createElement(Ga,null,r),bt.createElement(Qr,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},os={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 ns(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 n=(e.match(/[^0-9]*$/)||"").toString();return os[n]?{value:t,unit:n}:{value:t,unit:"px"}}function is(e){const t=ns(e);return`${t.value}${t.unit}`}const as=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),rs=({loading:e=!0,color:t,scale:o=1,speedMultiplier:n=1,cssOverride:i={},style:a={},...r})=>{const s=ji.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:c}=ns(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,...a,...i},m=(e,t)=>({position:"absolute",width:is(1.5),height:is(4),borderRadius:is(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${as} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt.createElement("span",{style:h,...r},bt.createElement("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),bt.createElement("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),bt.createElement("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),bt.createElement("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),bt.createElement("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),bt.createElement("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),bt.createElement("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),bt.createElement("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},ss=Bt.div`
|
|
650
|
+
margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
|
|
651
|
+
display: flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
justify-content: center;
|
|
654
|
+
`,ls=({extend:e,size:t=14,align:o="center"})=>bt.createElement(ss,{$align:o},bt.createElement(Qe,{size:t,rotate:e?180:0})),cs=Bt.div`
|
|
655
|
+
border-radius: 24px;
|
|
656
|
+
background-color: ${({theme:e,$status:t})=>t===Eo.Error?e.text.error+ji.opacity.hex["010"]:t===Eo.Warning?e.text.warning+ji.opacity.hex["010"]:e.colors.secondary+ji.opacity.hex["005"]};
|
|
657
|
+
&:hover {
|
|
658
|
+
background-color: ${({theme:e,$status:t})=>t===Eo.Error?e.text.error+ji.opacity.hex["020"]:t===Eo.Warning?e.text.warning+ji.opacity.hex["020"]:e.colors.secondary+ji.opacity.hex["010"]};
|
|
659
|
+
}
|
|
660
|
+
cursor: pointer;
|
|
661
|
+
transition: background 0.3s;
|
|
662
|
+
`,ds=Bt.div`
|
|
663
|
+
display: flex;
|
|
664
|
+
align-items: center;
|
|
665
|
+
gap: 12px;
|
|
666
|
+
padding: 12px 18px;
|
|
667
|
+
`,ps=Bt.div`
|
|
668
|
+
display: flex;
|
|
669
|
+
flex-direction: column;
|
|
670
|
+
gap: 8px;
|
|
671
|
+
padding: 6px 18px 12px 18px;
|
|
672
|
+
`,us=Bt.div`
|
|
673
|
+
display: flex;
|
|
674
|
+
align-items: center;
|
|
675
|
+
gap: 12px;
|
|
676
|
+
`,hs=Bt(qi)`
|
|
677
|
+
white-space: nowrap;
|
|
678
|
+
`,ms=Bt(Ka)`
|
|
679
|
+
width: 16px;
|
|
680
|
+
`,gs=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const i=ji.useTheme(),[a,r]=kt(!1),s=wt(()=>Un(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=wt(()=>ln(s),[s]);vt(()=>{r(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Eo.Error:p?Eo.Warning:u?Eo.Info:Eo.Success,$=An(g,i),f=c?t:p||u?o:m?"Loading...":n,x=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=Et(()=>r(e=>!e),[]);return bt.createElement(cs,{onClick:w,$status:g},bt.createElement(ds,null,m?bt.createElement(rs,null):bt.createElement($,null),bt.createElement(qi,{color:x,size:14},f),bt.createElement(qi,{color:y,size:12,family:"secondary"},b),bt.createElement(ls,{extend:a,align:"right"})),a&&bt.createElement(ps,null,s.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:a},r)=>{const s=e===Ao.Loading?()=>bt.createElement(rs,{scale:.8}):e===Ao.Disabled?An(Eo.Info,i):An(e,i),l=e===Ao.Disabled?i.text.info:e===Eo.Error?i.text.error:e===Eo.Warning?i.text.warning:i.text.info,c=e===Ao.Disabled?i.text.info_secondary:e===Eo.Error?i.text.error_secondary:e===Eo.Warning?i.text.warning_secondary:i.text.info_secondary;return bt.createElement(us,{key:`condition-${r}`},bt.createElement(ms,null,bt.createElement(s,null)),bt.createElement(Ga,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},bt.createElement(qi,{color:l,size:12},bt.createElement(hs,{color:c,size:12,weight:700},t),n||o),bt.createElement(hs,{color:l,size:12},new Date(a).toLocaleString())))})))},$s=Bt.div`
|
|
681
|
+
display: flex;
|
|
682
|
+
align-items: center;
|
|
683
|
+
gap: ${({$size:e})=>e/3}px;
|
|
684
|
+
padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
|
|
685
|
+
width: ${({$width:e})=>e||"fit-content"};
|
|
686
|
+
border-radius: 360px;
|
|
687
|
+
border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+ji.opacity.hex["050"]}`:"none"};
|
|
688
|
+
background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+ji.opacity.hex["030"]} 100%)`:"transparent"};
|
|
689
|
+
`,fs=Bt.div`
|
|
690
|
+
display: flex;
|
|
691
|
+
align-items: center;
|
|
692
|
+
`,xs=Bt.div`
|
|
693
|
+
display: flex;
|
|
694
|
+
align-items: center;
|
|
695
|
+
`,bs=({title:e,subtitle:t,status:o=Eo.Default,forceIcon:n,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=ji.useTheme(),u=[Ao.Loading,Ao.Disabled].includes(o)?Eo.Info:o,h=n?()=>bt.createElement(n,{size:l+2,fill:p.text[u]}):o===Ao.Loading?()=>bt.createElement(rs,{scale:.8}):()=>An(u,p)?.({size:l+2});return bt.createElement($s,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&bt.createElement(fs,null,bt.createElement(h,null)),(!!e||!!t)&&bt.createElement(xs,null,!!e&&bt.createElement(qi,{size:l,family:c,color:p.text[u],nowrap:d},e),!!e&&!!t&&bt.createElement(ur,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&bt.createElement(qi,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d},t)))},ys=({label:e,onClick:t,variant:o="tertiary",textProps:n,...i})=>{const a=Lt();return bt.createElement($a,{onClick:t,variant:o,...i},bt.createElement(et,{fill:"primary"===o?a.text.primary:a.text.info}),bt.createElement(qi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?a.text.primary:void 0,...n},e||en.ADD))},ws=Bt(Ga)`
|
|
696
|
+
width: 100%;
|
|
697
|
+
border-radius: 8px;
|
|
698
|
+
background-color: ${({theme:e})=>e.colors.secondary+ji.opacity.hex["010"]};
|
|
699
|
+
pre {
|
|
700
|
+
color: ${({theme:e})=>e.text.default};
|
|
701
|
+
font-size: 12px;
|
|
702
|
+
overflow-x: auto;
|
|
703
|
+
width: 100%;
|
|
704
|
+
padding-left: 12px;
|
|
705
|
+
}
|
|
706
|
+
`,ks=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:n}=Aa();return bt.createElement(ws,null,bt.createElement("pre",null,e),bt.createElement(vr,{onClick:n=>{n.stopPropagation(),o(e),t?.()},tooltip:n?"Copied!":"Copy"},n?bt.createElement(Ge,null):bt.createElement(Ke,null)))},vs=({label:e,onClick:t,variant:o="tertiary",...n})=>{const i=Lt();return bt.createElement($a,{onClick:t,variant:o,...n},bt.createElement(tt,{fill:"primary"===o?i.text.primary:i.text.info}),bt.createElement(qi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0},e||en.EDIT))},Cs=({onClick:e})=>bt.createElement(Or,{type:Eo.Default,icon:je,message:Qo.QUICK_BACK_TO_SUMMARY,action:{label:Qo.GO_TO_SUMMARY,onClick:e}}),Es=Bt(qi)`
|
|
707
|
+
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
708
|
+
white-space: nowrap;
|
|
709
|
+
overflow-x: auto;
|
|
710
|
+
|
|
711
|
+
&::after {
|
|
712
|
+
// This is to prevent the "browser default tooltip" from appearing when the title is too long
|
|
713
|
+
content: '';
|
|
714
|
+
display: block;
|
|
715
|
+
}
|
|
716
|
+
`,Ss=({maxWidth:e,text:t,textSize:o=16,textColor:n})=>{const[i,a]=kt(!1),r=Ct(null);return vt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),bt.createElement(Ga,{$gap:0},t&&bt.createElement(yr,{text:i?t:void 0},bt.createElement(Es,{ref:r,$maxWidth:e-o,size:o,color:n},t)),i&&bt.createElement(Es,{$maxWidth:o,size:o,color:n},"..."))},As=({src:e="",alt:t="",size:n=16})=>{const[i,a]=kt(!1);return e&&!i?bt.createElement("img",{src:e,alt:t,width:n,height:n,onError:()=>a(!0)}):bt.createElement(o,{size:n})},Ds=Bt.div`
|
|
717
|
+
display: flex;
|
|
718
|
+
align-items: center;
|
|
719
|
+
justify-content: center;
|
|
720
|
+
width: ${({$size:e})=>e}px;
|
|
721
|
+
height: ${({$size:e})=>e}px;
|
|
722
|
+
border-radius: 8px;
|
|
723
|
+
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+ji.opacity.hex["030"]} 100%)`}};
|
|
724
|
+
`,Ts=({icon:e,src:t="",alt:n="",status:i,size:a=36})=>bt.createElement(Ds,{$status:i,$size:a},t?bt.createElement(As,{src:t,alt:n,size:a-12}):e?bt.createElement(e,{size:a-12}):bt.createElement(o,{size:a-12})),zs=Bt.div`
|
|
725
|
+
position: relative;
|
|
726
|
+
display: flex;
|
|
727
|
+
flex-wrap: wrap;
|
|
728
|
+
align-items: center;
|
|
729
|
+
justify-content: center;
|
|
730
|
+
width: ${({$size:e})=>e}px;
|
|
731
|
+
height: ${({$size:e})=>e}px;
|
|
732
|
+
`,Fs=Bt.div`
|
|
733
|
+
position: absolute;
|
|
734
|
+
top: ${({$top:e})=>e}px;
|
|
735
|
+
left: ${({$left:e})=>e}px;
|
|
736
|
+
z-index: ${({$zIndex:e})=>e};
|
|
737
|
+
display: flex;
|
|
738
|
+
align-items: center;
|
|
739
|
+
justify-content: center;
|
|
740
|
+
width: ${({$size:e})=>e}px;
|
|
741
|
+
height: ${({$size:e})=>e}px;
|
|
742
|
+
border-radius: 100%;
|
|
743
|
+
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+ji.opacity.hex["030"]};
|
|
744
|
+
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+ji.opacity.hex["030"]} 100%)`}};
|
|
745
|
+
`,Os=({icons:e=[],iconSrcs:t=[],status:o,size:n=36,id:i})=>{const a=ji.useTheme(),r=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return bt.createElement(Os,{icons:t.map(e=>()=>bt.createElement(As,{src:e,size:r})),status:o,size:n,id:i});if(1===e.length)return bt.createElement(Ts,{icon:e[0],status:o,size:n});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return bt.createElement(zs,{$status:o,$size:n},e.map((t,n)=>n>2?null:bt.createElement(Fs,{key:`icon-${i}-${n}`,$status:o,$size:1.5*r,$top:s(n),$left:l(n),$zIndex:n+1},2===n&&e.length>3?bt.createElement(qi,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):bt.createElement(t,{size:r}))))},Is=ci.map(({id:e})=>e),Ns=({monitors:e=Is,withTooltips:t,withLabels:o,size:n=12,color:i})=>{const a=ji.useTheme(),r=i||a.text.grey;return bt.createElement(Ga,{$gap:o?n:n/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=Xt(i),s=yn(i);return s?bt.createElement(yr,{key:i,text:t?a:""},bt.createElement(Ga,{$gap:n/3},bt.createElement(s,{size:o?n+2:n,fill:r}),o&&bt.createElement(qi,{size:n,color:r},a))):null}))},_s=Bt.div`
|
|
746
|
+
visibility: hidden;
|
|
747
|
+
`,Bs=Bt.div`
|
|
748
|
+
display: flex;
|
|
749
|
+
flex-direction: column;
|
|
750
|
+
align-self: stretch;
|
|
751
|
+
padding: 16px;
|
|
752
|
+
width: calc(100% - 32px);
|
|
753
|
+
border-radius: 16px;
|
|
754
|
+
background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+ji.opacity.hex["010"]:e.colors.secondary+ji.opacity.hex["005"])};
|
|
755
|
+
opacity: ${({$faded:e})=>e?.5:1};
|
|
756
|
+
|
|
757
|
+
${({theme:e,$status:t,$bgColorHover:o,$withClick:n})=>n?Rt`
|
|
758
|
+
&:hover {
|
|
759
|
+
cursor: pointer;
|
|
760
|
+
background-color: ${o||(t?e.text[t]+ji.opacity.hex["020"]:e.colors.secondary+ji.opacity.hex["010"])};
|
|
761
|
+
${_s} {
|
|
762
|
+
visibility: visible;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
`:`\n &:hover {\n ${_s} {\n visibility: visible;\n }\n }\n `}
|
|
766
|
+
`,Rs=Bt.div`
|
|
767
|
+
display: flex;
|
|
768
|
+
align-items: center;
|
|
769
|
+
gap: 8px;
|
|
770
|
+
margin-left: auto;
|
|
771
|
+
`,Ls=Bt(qi)`
|
|
772
|
+
margin-right: 16px;
|
|
773
|
+
`,Ms=Bt(qi)`
|
|
774
|
+
font-size: 10px;
|
|
775
|
+
color: ${({theme:e})=>e.text.grey};
|
|
776
|
+
`,Ps=({title:e,subTitle:t,hoverText:o,onClick:n,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:f,isChecked:x,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...C})=>{const E=ji.useTheme(),[S,A]=kt(k||!1),[D,T]=kt(0),z=Ct(null),F=Ct(null),O=Ct(null);return vt(()=>{if(z.current){const e=z.current.clientWidth,t=F.current?.clientWidth||0;T(e-(($?125:85)+t))}},[$]),bt.createElement(Bs,{ref:z,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C},bt.createElement(Ga,{$gap:8},bt.createElement(Ga,{$gap:16},b?bt.createElement(rs,null):$?bt.createElement(Vr,{value:x,onChange:y,disabled:f}):null,r?.length||l?.length?bt.createElement(Os,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?bt.createElement(Ts,{icon:a,src:s,status:c}):null),bt.createElement(Ka,{$gap:4},e&&bt.createElement(Ss,{maxWidth:D,text:e,textSize:14}),bt.createElement(Ga,{$gap:4},t&&bt.createElement(Ss,{maxWidth:D-(O.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&bt.createElement(Ga,{$gap:4,ref:O},t&&bt.createElement(Ms,null,"•"),bt.createElement(Ns,{monitors:h,withLabels:m,size:10}))),g&&g.length>0?bt.createElement(Ga,{$gap:4},g?.map((e,t)=>bt.createElement(yt,{key:`componentsUnderTitles-${t}`},e))):null),bt.createElement(Rs,{ref:F},!!o&&bt.createElement(_s,null,bt.createElement(Ls,{size:14,family:"secondary"},o)),i&&i(),w&&bt.createElement(yt,null,bt.createElement(ur,{orientation:"vertical",length:"16px",margin:"0 2px"}),bt.createElement(vr,{onClick:()=>A(e=>!e)},bt.createElement(ls,{extend:S}))))),S&&v&&bt.createElement(Ka,null,bt.createElement(ur,{margin:"16px 0"}),v()))},js=Bt(Ga)`
|
|
777
|
+
width: 100%;
|
|
778
|
+
justify-content: space-between;
|
|
779
|
+
`,Us=Bt(qi)`
|
|
780
|
+
font-size: 12px;
|
|
781
|
+
color: ${({theme:e})=>e.text.grey};
|
|
782
|
+
`,Ws=Bt(qi)`
|
|
783
|
+
font-size: 10px;
|
|
784
|
+
color: ${({theme:e})=>e.text.darker_grey};
|
|
785
|
+
`,Vs=Bt.div`
|
|
786
|
+
display: flex;
|
|
787
|
+
align-items: center;
|
|
788
|
+
gap: 8px;
|
|
789
|
+
margin-left: auto;
|
|
790
|
+
`,Hs=Bt(qi)`
|
|
791
|
+
font-size: 12px;
|
|
792
|
+
text-align: right;
|
|
793
|
+
`,qs=({title:e,subTitle:t,tooltip:o,value:n})=>bt.createElement(js,null,bt.createElement(Ka,{$gap:4},bt.createElement(yr,{text:o||""},e&&bt.createElement(Us,{key:"title"},e),t&&bt.createElement(Ws,{key:"subtitle"},t))),bt.createElement(Vs,null,n?.status?bt.createElement(bs,{status:"transitioning"===n.status?Ao.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):bt.createElement(Hs,null,n?.text||"-"))),Gs=Bt(Ka)`
|
|
794
|
+
width: 100%;
|
|
795
|
+
`,Ks=({containerName:e,actualDevices:t,started:o,ready:n,instrumentationInstances:i})=>{const a=wt(()=>{const e=[];return o?.name&&e.push(bt.createElement(bs,{key:"started",status:Rn(o.value)?qn(o.value)?Eo.Success:Eo.Error:Eo.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),n?.name&&e.push(bt.createElement(bs,{key:"ready",status:Rn(n.value)?qn(n.value)?Eo.Success:Eo.Error:Eo.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),e},[o?.name,o?.value,n?.name,n?.value]);return bt.createElement(Ps,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>bt.createElement(bs,{status:Eo.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>bt.createElement(Gs,{$gap:24},i.map((e,t)=>bt.createElement(Gs,{key:`process-${t}`,$gap:8},bt.createElement(qs,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Eo.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>bt.createElement(qs,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},Ys=({title:e="Data not found",subTitle:t})=>{const o=Lt().v2.colors.grey[400];return bt.createElement(Ya,null,bt.createElement(Ga,{$gap:8},bt.createElement(ot,{fill:o}),bt.createElement(oi,{size:ei.XS,color:o,align:"center"},e)),t&&bt.createElement(oi,{size:ei.XXS,color:o,align:"center"},t))},Js=Bt(Ka)`
|
|
796
|
+
max-width: 300px;
|
|
797
|
+
padding: 12px;
|
|
798
|
+
border-radius: 12px;
|
|
799
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
800
|
+
justify-content: center;
|
|
801
|
+
`,Xs=At(({id:e,data:t})=>{const{title:o,subTitle:n}=t;return bt.createElement(Js,{"data-id":e},bt.createElement(Ys,{title:o,subTitle:n}))});Xs.displayName=Xs.name;const Zs=Bt.div`
|
|
802
|
+
padding: 6px;
|
|
803
|
+
border-radius: 12px;
|
|
804
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
805
|
+
cursor: pointer;
|
|
806
|
+
`,Qs=Bt.div`
|
|
807
|
+
position: relative;
|
|
808
|
+
`,el=Bt(Ga)`
|
|
809
|
+
position: absolute;
|
|
810
|
+
bottom: -24px;
|
|
811
|
+
left: 50%;
|
|
812
|
+
transform: translateX(-50%);
|
|
813
|
+
gap: 4px;
|
|
814
|
+
`,tl=Bt.div`
|
|
815
|
+
position: absolute;
|
|
816
|
+
bottom: 100%;
|
|
817
|
+
left: 100%;
|
|
818
|
+
width: 300px;
|
|
819
|
+
padding: 12px;
|
|
820
|
+
border-radius: 16px;
|
|
821
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
822
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
823
|
+
`,ol=({title:e,value:t})=>{const o=Lt();return bt.createElement(Ga,{$justifyContent:"space-between"},bt.createElement(qi,{size:12,color:o.text.info},e),bt.createElement(qi,{size:12,family:"secondary"},t))},nl=At(({id:e,data:t})=>{const{id:o,status:n,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=ai(),c=Lt(),d=n===Eo.Error?An(n,c):null;return bt.createElement(bt.Fragment,null,bt.createElement(jt,{type:"source",position:Ut.Bottom,style:{visibility:"hidden"}}),bt.createElement(jt,{type:"target",position:Ut.Top,style:{visibility:"hidden"}}),bt.createElement(Qs,{"data-id":e},bt.createElement(Zs,null,bt.createElement(Os,{id:o,icons:a,status:n})),bt.createElement(el,null,d&&bt.createElement(d,null),bt.createElement(Ss,{maxWidth:100,text:i})),s===zo.MapItem&&l===e&&bt.createElement(tl,null,bt.createElement(Ga,{$gap:12},bt.createElement(Os,{id:o,icons:a,status:n}),bt.createElement(qi,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:n})=>bt.createElement("div",{key:`from-${o}-to-${e}`},bt.createElement(ur,null),bt.createElement(ol,{title:"Connected Service",value:e}),bt.createElement(ol,{title:"Outgoing Requests",value:t}),bt.createElement(ol,{title:"Last Requested At",value:new Date(n).toLocaleString()}))):bt.createElement(bt.Fragment,null,bt.createElement(ur,null),bt.createElement(Ys,{title:"No outgoing connections",subTitle:" "})))))});nl.displayName=nl.name;const il=Bt.div`
|
|
824
|
+
height: calc(100vh - 160px);
|
|
825
|
+
.react-flow__attribution {
|
|
826
|
+
visibility: hidden;
|
|
827
|
+
}
|
|
828
|
+
`,al=Bt.div`
|
|
829
|
+
button {
|
|
830
|
+
padding: 8px;
|
|
831
|
+
margin: 8px;
|
|
832
|
+
border-radius: 8px;
|
|
833
|
+
border: 1px solid ${({theme:e})=>e.colors.border} !important;
|
|
834
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
835
|
+
path {
|
|
836
|
+
fill: ${({theme:e})=>e.text.secondary};
|
|
837
|
+
}
|
|
838
|
+
&:hover {
|
|
839
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
`,rl={[zo.MapItem]:nl,[zo.NoData]:Xs},sl=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:n,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=wa(),{setActiveNodeType:s,setActiveNodeId:l}=ai();return bt.createElement(il,null,bt.createElement(Wt,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:rl,edges:t,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>o(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0},bt.createElement(al,null,bt.createElement(Vt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},ll=Dt({platformType:fo.K8s,tier:$o.Community,version:"v0.0.0"}),cl=({children:e,platformType:t,tier:o,version:n})=>{const i=wt(()=>({platformType:t,tier:o,version:n}),[t,o,n]);return bt.createElement(ll.Provider,{value:i},e)},dl=(e,t)=>!t||Zn(e)>=Zn(t),pl=e=>{const t=Tt(ll),o=dl(t.version,e),n=t.platformType===fo.Vm;return{...t,isVersionSupported:o,isVm:n}},ul=Bt.div`
|
|
843
|
+
display: flex;
|
|
844
|
+
|
|
845
|
+
align-items: center;
|
|
846
|
+
gap: 6px;
|
|
847
|
+
margin-bottom: 4px;
|
|
848
|
+
`,hl=Bt(qi)`
|
|
849
|
+
font-size: 14px;
|
|
850
|
+
opacity: 0.8;
|
|
851
|
+
line-height: 22px;
|
|
852
|
+
overflow: hidden;
|
|
853
|
+
white-space: nowrap;
|
|
854
|
+
text-overflow: ellipsis;
|
|
855
|
+
color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
|
|
856
|
+
`,ml=Bt(qi)`
|
|
857
|
+
font-size: 12px;
|
|
858
|
+
color: ${({theme:e})=>e.text.darker_grey};
|
|
859
|
+
opacity: 0.8;
|
|
860
|
+
`,gl=({title:e,required:t,tooltip:o,style:n,status:i})=>e?bt.createElement(ul,{style:n},bt.createElement(yr,{text:o,withIcon:!0},bt.createElement(hl,{$status:i},e),!t&&bt.createElement(ml,null,"(optional)"))):null,$l=Bt.div`
|
|
861
|
+
display: flex;
|
|
862
|
+
flex-direction: column;
|
|
863
|
+
position: relative;
|
|
864
|
+
width: 100%;
|
|
865
|
+
`,fl=Bt.div`
|
|
866
|
+
width: 100%;
|
|
867
|
+
display: flex;
|
|
868
|
+
align-items: center;
|
|
869
|
+
height: 36px;
|
|
870
|
+
gap: 12px;
|
|
871
|
+
transition: border-color 0.3s;
|
|
872
|
+
border-radius: 32px;
|
|
873
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
874
|
+
${({$disabled:e})=>e&&Rt`
|
|
875
|
+
cursor: not-allowed;
|
|
876
|
+
opacity: 0.6;
|
|
877
|
+
`}
|
|
878
|
+
${({$isActive:e,$hasError:t,$status:o})=>e?Rt`
|
|
879
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
880
|
+
`:t?Rt`
|
|
881
|
+
border-color: ${({theme:e})=>e.text.error};
|
|
882
|
+
`:o?Rt`
|
|
883
|
+
border-color: ${({theme:e})=>e.text[o]};
|
|
884
|
+
`:""}
|
|
885
|
+
&:hover {
|
|
886
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
887
|
+
}
|
|
888
|
+
&:focus-within {
|
|
889
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
890
|
+
}
|
|
891
|
+
`,xl=Bt.input`
|
|
892
|
+
padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
|
|
893
|
+
flex: 1;
|
|
894
|
+
min-width: 150px;
|
|
895
|
+
width: 100%;
|
|
896
|
+
border: none;
|
|
897
|
+
outline: none;
|
|
898
|
+
background: none;
|
|
899
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
900
|
+
font-size: 14px;
|
|
901
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
902
|
+
font-weight: 300;
|
|
903
|
+
&::placeholder {
|
|
904
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
905
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
906
|
+
opacity: 0.4;
|
|
907
|
+
font-size: 14px;
|
|
908
|
+
font-weight: 300;
|
|
909
|
+
line-height: 22px; /* 157.143% */
|
|
910
|
+
}
|
|
911
|
+
&:disabled {
|
|
912
|
+
cursor: not-allowed;
|
|
913
|
+
opacity: 0.6;
|
|
914
|
+
}
|
|
915
|
+
&::-webkit-inner-spin-button,
|
|
916
|
+
&::-webkit-outer-spin-button {
|
|
917
|
+
-webkit-appearance: none;
|
|
918
|
+
margin: 0;
|
|
919
|
+
}
|
|
920
|
+
`,bl=Bt.div`
|
|
921
|
+
display: flex;
|
|
922
|
+
align-items: center;
|
|
923
|
+
margin-left: 12px;
|
|
924
|
+
`,yl=Bt(bl)`
|
|
925
|
+
cursor: pointer;
|
|
926
|
+
`,wl=Bt.button`
|
|
927
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
928
|
+
border: none;
|
|
929
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
930
|
+
padding: 8px 16px;
|
|
931
|
+
border-radius: 20px;
|
|
932
|
+
cursor: pointer;
|
|
933
|
+
margin-left: 8px;
|
|
934
|
+
&:hover {
|
|
935
|
+
background-color: ${({theme:e})=>e.colors.secondary};
|
|
936
|
+
}
|
|
937
|
+
&:disabled {
|
|
938
|
+
background-color: ${({theme:e})=>e.colors.border};
|
|
939
|
+
cursor: not-allowed;
|
|
940
|
+
}
|
|
941
|
+
`,kl=({icon:e,buttonLabel:t,onButtonClick:o,hasError:n,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:c,type:d=Co.Text,name:p,status:u,...h})=>{const m=ji.useTheme(),g=d===Co.Password,[$,f]=kt(!1);return bt.createElement($l,null,bt.createElement(gl,{title:a,required:s,tooltip:r,status:u}),bt.createElement(fl,{$disabled:h.disabled,$hasError:n||!!i,$isActive:!!h.autoFocus,$status:u},g?bt.createElement(yl,{onClick:()=>f(e=>!e)},$?bt.createElement(nt,{size:14,fill:m.text.grey}):bt.createElement(it,{size:14,fill:m.text.grey})):e?bt.createElement(bl,null,bt.createElement(e,{size:14,fill:m.text.grey})):null,bt.createElement(xl,{"data-id":p,type:$||d===Co.Number?Co.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Co.Number&&(e.target.value=Hn(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&bt.createElement(wl,{onClick:o,disabled:h.disabled},t)),!!i&&bt.createElement(Yi,null,i))},vl=Bt.div`
|
|
942
|
+
display: flex;
|
|
943
|
+
flex-direction: column;
|
|
944
|
+
min-width: 120px;
|
|
945
|
+
width: 100%;
|
|
946
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
947
|
+
`,Cl=Bt.div`
|
|
948
|
+
position: relative;
|
|
949
|
+
`,El=Bt.div`
|
|
950
|
+
display: flex;
|
|
951
|
+
align-items: center;
|
|
952
|
+
justify-content: space-between;
|
|
953
|
+
height: 36px;
|
|
954
|
+
padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
|
|
955
|
+
border-radius: 32px;
|
|
956
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
957
|
+
|
|
958
|
+
${({$isOpen:e,$isMulti:t,theme:o})=>e&&!t?Rt`
|
|
959
|
+
border: 1px solid ${o.text.grey};
|
|
960
|
+
background: ${o.colors.dropdown_bg_2};
|
|
961
|
+
`:Rt`
|
|
962
|
+
border: 1px solid ${o.colors.border};
|
|
963
|
+
background: transparent;
|
|
964
|
+
`};
|
|
965
|
+
|
|
966
|
+
${({$hasError:e,$status:t})=>e?Rt`
|
|
967
|
+
border-color: ${({theme:e})=>e.text.error};
|
|
968
|
+
`:t?Rt`
|
|
969
|
+
border-color: ${({theme:e})=>e.text[t]};
|
|
970
|
+
`:""}
|
|
971
|
+
|
|
972
|
+
&:hover {
|
|
973
|
+
border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:n})=>o?"auto":e&&t?n.colors.border:n.colors.secondary};
|
|
974
|
+
}
|
|
975
|
+
`,Sl=Bt.div`
|
|
976
|
+
display: flex;
|
|
977
|
+
align-items: center;
|
|
978
|
+
gap: 4px;
|
|
979
|
+
`,Al=({options:e,value:t,onSelect:o,onDeselect:n,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=kt(!1),[$,f]=kt(!1),x=Ct(null);_a(x,()=>g(!1));const b=()=>{(()=>{if(x.current){const e=x.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return bt.createElement(vl,{$disabled:s},bt.createElement(gl,{title:i,required:d,tooltip:a,status:h}),bt.createElement(Cl,{ref:x},bt.createElement(El,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b()},bt.createElement(Fl,{value:t,placeholder:r,onDeselect:n}),bt.createElement(Sl,null,l&&bt.createElement(ua,{label:y,filled:!!y}),bt.createElement(ls,{extend:m}))),m&&bt.createElement(Nl,{openUpwards:$,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})),!!p&&bt.createElement(Yi,null,p))},Dl=Bt(Sl)`
|
|
980
|
+
max-width: calc(100% - 50px);
|
|
981
|
+
overflow-x: auto;
|
|
982
|
+
`,Tl=Bt(qi)`
|
|
983
|
+
display: flex;
|
|
984
|
+
align-items: center;
|
|
985
|
+
gap: 2px;
|
|
986
|
+
padding: 4px 12px;
|
|
987
|
+
background: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
988
|
+
border-radius: 360px;
|
|
989
|
+
white-space: nowrap;
|
|
990
|
+
text-overflow: ellipsis;
|
|
991
|
+
img {
|
|
992
|
+
&:hover {
|
|
993
|
+
transform: scale(2);
|
|
994
|
+
transition: transform 0.3s;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
`,zl=Bt(qi)``,Fl=({value:e,placeholder:t,onDeselect:o})=>{const n=ji.useTheme();return Array.isArray(e)?e.length?bt.createElement(Dl,null,e.map(e=>bt.createElement(Tl,{key:`multi-label-${e.id}`,size:14},e.value,bt.createElement(ur,{orientation:"vertical",length:"10px",margin:"0 4px"}),bt.createElement(Ye,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})))):bt.createElement(zl,{size:14,color:n.text.darker_grey},t):bt.createElement(zl,{size:14,color:e?.value?void 0:n.text.darker_grey},e?.value||t)},Ol=Bt.div`
|
|
998
|
+
position: absolute;
|
|
999
|
+
${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
|
|
1000
|
+
left: 0;
|
|
1001
|
+
z-index: 1;
|
|
1002
|
+
display: flex;
|
|
1003
|
+
flex-direction: column;
|
|
1004
|
+
overflow-y: auto;
|
|
1005
|
+
width: calc(100% - 16px);
|
|
1006
|
+
max-height: 200px;
|
|
1007
|
+
gap: 8px;
|
|
1008
|
+
padding: 8px;
|
|
1009
|
+
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1010
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1011
|
+
border-radius: 24px;
|
|
1012
|
+
`,Il=Bt.div`
|
|
1013
|
+
display: flex;
|
|
1014
|
+
flex-direction: column;
|
|
1015
|
+
align-items: center;
|
|
1016
|
+
`,Nl=({openUpwards:e,options:t,value:o,onSelect:n,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=kt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return bt.createElement(Ol,{$openUpwards:e},r&&bt.createElement(Il,null,bt.createElement(kl,{placeholder:"Search...",icon:at,value:s,onChange:e=>l(e.target.value)}),bt.createElement(ur,{thickness:1,margin:"8px 0 0 0"})),0===c.length?bt.createElement(Ys,{subTitle:r&&s?void 0:" "}):c.map((e,t)=>bt.createElement(Bl,{key:`dropdown-option-${e.id||t}`,option:e,value:o,isMulti:a,onSelect:n,onDeselect:i})))},_l=Bt.div`
|
|
1017
|
+
padding: 8px 12px;
|
|
1018
|
+
cursor: pointer;
|
|
1019
|
+
display: flex;
|
|
1020
|
+
justify-content: space-between;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
border-radius: 32px;
|
|
1023
|
+
&:hover,
|
|
1024
|
+
&.selected {
|
|
1025
|
+
background: ${({theme:e})=>e.colors.majestic_blue+ji.opacity.hex["024"]};
|
|
1026
|
+
}
|
|
1027
|
+
`,Bl=({option:e,value:t,isMulti:o,onSelect:n,onDeselect:i})=>{const a=ji.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):i?.(e);return o?bt.createElement(_l,{className:r?"selected":"",onClick:()=>s(!r)},bt.createElement(Vr,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):bt.createElement(_l,{className:r?"selected":"",onClick:()=>r?i?.(e):n?.(e)},bt.createElement(Ga,{$gap:8},e.icon&&bt.createElement(e.icon,null),bt.createElement(qi,{size:14},e.value)),r&&bt.createElement(Ge,null))},Rl=Bt(Ka)`
|
|
1028
|
+
gap: 12px;
|
|
1029
|
+
`,Ll=Bt(Ga)`
|
|
1030
|
+
width: 100%;
|
|
1031
|
+
gap: 12px;
|
|
1032
|
+
align-items: flex-end;
|
|
1033
|
+
`,Ml=({clientX:e=0,flipX:t,clientY:o=0,flipY:n,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=ji.useTheme(),{popupRef:m,popupPosition:g,handlePosition:$}=Ba({onClickOutside:a});return Na({key:"Enter",active:i},r),vt(()=>$(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:bt.createElement(fr,{ref:m,isOpen:i,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},bt.createElement(Rl,null,bt.createElement(yr,{text:d,withIcon:!0},bt.createElement(qi,{size:14},c)),bt.createElement(Ll,null,u,bt.createElement(Ga,{$gap:6},bt.createElement(vr,{withBorder:!0,onClick:a,tooltip:"Cancel"},bt.createElement(Ye,null)),bt.createElement(vr,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:r,tooltip:"Save"},bt.createElement(Ge,{fill:h.text.primary})),s&&bt.createElement(vr,{onClick:l,tooltip:"Undo"},bt.createElement(rt,null)))),p&&bt.createElement(Or,{type:Eo.Warning,message:p})))},Pl=Bt.div`
|
|
1034
|
+
position: relative;
|
|
1035
|
+
`,jl=({defaultLanguage:e=bo.Unknown,defaultVersion:t="",defaultOtelDistroName:o=null,handleSave:n})=>{const{tier:i}=pl(),{addNotification:a}=ki(),{formData:r,handleFormChange:s,resetFormData:l}=fa({language:e,version:t,otelDistroName:o}),[c,d]=kt(!1),p=()=>{d(!1),l()},u=wt(()=>{if(!r.language)return[];const e=ui[r.language].community,t=i===$o.Onprem?ui[r.language].enterprise:[];return e.concat(t)},[r.language,i]);return bt.createElement(Pl,null,bt.createElement(vr,{tooltip:Qo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)}},bt.createElement(tt,null)),bt.createElement(Ml,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!r.version||Pn(r.version)?(await n({...r}),p()):a({type:Eo.Warning,message:Zo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await n({language:null,version:"",otelDistroName:null}),p()},title:Qo.OVERRIDE_RUNTIME_DETAILS,warning:Qo.OVERRIDE_RUNTIME_WARNING},bt.createElement(Ka,{$gap:12},bt.createElement(Ga,{$gap:12},bt.createElement(Al,{title:Qo.LANGUAGE,options:pi,value:pi.find(e=>e.id===r.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),bt.createElement(kl,{title:Qo.RUNTIME_VERSION,placeholder:Qo.VERSION_PLACEHOLDER,value:r.version,onChange:e=>s("version",e.target.value),required:!1})),r.language&&bt.createElement(Al,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===r.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1}))))},Ul=Bt(Ga)`
|
|
1036
|
+
width: 100%;
|
|
1037
|
+
justify-content: center;
|
|
1038
|
+
`,Wl=({containerName:e,language:t,runtimeVersion:o,overriden:n,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Lt(),c=i?Eo.Success:a?Eo.Info:Eo.Warning,d=i?So.INSTRUMENTED:a?So.NOT_INSTRUMENTED:So.INSTRUMENTING;return bt.createElement(Ps,{title:e,subTitle:`${t?di[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:dn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>bt.createElement(Ul,null,bt.createElement(qi,{size:12,family:"secondary",color:l.text.info},jn(a)))},renderActions:()=>bt.createElement(bt.Fragment,null,bt.createElement(bs,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),n&&bt.createElement(bs,{status:Eo.Default,forceIcon:st,title:Qo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&bt.createElement(jl,{defaultLanguage:t,defaultVersion:o,defaultOtelDistroName:r,handleSave:t=>s({...t,containerName:e})}))})},Vl=Bt.tr`
|
|
1039
|
+
cursor: ${({$withHover:e})=>e?"pointer":"default"};
|
|
1040
|
+
opacity: ${({$faded:e})=>e?.5:1};
|
|
1041
|
+
`,Hl=Bt.td`
|
|
1042
|
+
position: relative;
|
|
1043
|
+
width: fit-content;
|
|
1044
|
+
padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
|
|
1045
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
1046
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1047
|
+
font-size: 14px;
|
|
1048
|
+
white-space: nowrap;
|
|
1049
|
+
`,ql=Bt(qi)`
|
|
1050
|
+
font-size: 14px;
|
|
1051
|
+
color: ${({$color:e,theme:t})=>e??t.text.secondary};
|
|
1052
|
+
line-height: 16px;
|
|
1053
|
+
|
|
1054
|
+
overflow: hidden;
|
|
1055
|
+
overflow-wrap: break-word;
|
|
1056
|
+
white-space: wrap;
|
|
1057
|
+
text-wrap: wrap;
|
|
1058
|
+
text-overflow: ellipsis;
|
|
1059
|
+
display: -webkit-box;
|
|
1060
|
+
-webkit-line-clamp: 2;
|
|
1061
|
+
-webkit-box-orient: vertical;
|
|
1062
|
+
`,Gl=Bt.div`
|
|
1063
|
+
position: absolute;
|
|
1064
|
+
top: 0;
|
|
1065
|
+
left: 0;
|
|
1066
|
+
z-index: -1;
|
|
1067
|
+
width: ${({$width:e})=>e}px;
|
|
1068
|
+
height: ${({$height:e})=>e}px;
|
|
1069
|
+
border-radius: 16px;
|
|
1070
|
+
background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+ji.opacity.hex["020"]:e.colors.majestic_blue+ji.opacity.hex["030"]:o?e.text[o]+ji.opacity.hex["010"]:e.colors.secondary+ji.opacity.hex["005"]};
|
|
1071
|
+
`,Kl=({index:e,columns:t,cells:o,onClick:n,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=va(),[c,d]=kt(!1);return bt.createElement(Vl,{ref:r,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:a},t.map(({key:t},n)=>{const a=o.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:d,withTooltip:p,icon:u,component:h}=a;return bt.createElement(Hl,{key:`table-row-${t}-${r}-${e}-${n}`,$isFirst:0===n},u?bt.createElement(Ts,{icon:u}):h?bt.createElement(h,null):bt.createElement(yr,{text:p&&r?String(r):""},bt.createElement(ql,{$color:d},Nn(r)?"-":r)),0===n&&bt.createElement(Gl,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i}))}))},Yl=Bt.div`
|
|
1072
|
+
width: 100%;
|
|
1073
|
+
`,Jl=Bt.table`
|
|
1074
|
+
position: relative;
|
|
1075
|
+
z-index: 0;
|
|
1076
|
+
width: 100%;
|
|
1077
|
+
border-collapse: separate;
|
|
1078
|
+
border-spacing: 0 12px;
|
|
1079
|
+
`,Xl=Bt.thead`
|
|
1080
|
+
// only supported with "border-collapse: collapse;"
|
|
1081
|
+
// border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1082
|
+
// border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1083
|
+
`,Zl=Bt.th`
|
|
1084
|
+
// only required with "border-collapse: separate;"
|
|
1085
|
+
border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1086
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1087
|
+
|
|
1088
|
+
padding: 8px;
|
|
1089
|
+
`,Ql=Bt(Ga)`
|
|
1090
|
+
cursor: pointer;
|
|
1091
|
+
&:hover {
|
|
1092
|
+
* {
|
|
1093
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
`,ec=Bt(qi)`
|
|
1097
|
+
color: ${({theme:e})=>e.text.darker_grey};
|
|
1098
|
+
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1099
|
+
text-transform: uppercase;
|
|
1100
|
+
font-size: 12px;
|
|
1101
|
+
font-weight: 500;
|
|
1102
|
+
text-wrap: nowrap;
|
|
1103
|
+
`,tc=Bt.tbody``,oc=({columns:e,rows:t})=>{const[o,n]=kt(go.Ascending),[i,a]=kt("name"),r=Et(e=>{i===e?n(e=>e===go.Ascending?go.Descending:go.Ascending):(a(e),n(go.Ascending))},[i]),s=wt(()=>{const n=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=n(e,i),r=n(t,i);return(o===go.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)))(a,r)}):t).map(({status:t,faded:o,cells:n,onClick:i},a)=>bt.createElement(Kl,{key:`row-${a}`,index:a,columns:e,cells:n,onClick:i,status:t,faded:o}))},[e,t,i,o]);return bt.createElement(Yl,null,bt.createElement(Jl,null,bt.createElement(Xl,null,bt.createElement("tr",null,e.map(({key:e,title:t,sortable:o})=>bt.createElement(Zl,{key:`column-${e}`},o?bt.createElement(Ql,{onClick:()=>r(e)},bt.createElement(lt,null),bt.createElement(ec,null,t)):bt.createElement(ec,null,t))))),bt.createElement(tc,null,s)))};var nc;!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"}(nc||(nc={}));const ic=Bt.div`
|
|
1104
|
+
display: flex;
|
|
1105
|
+
flex-wrap: wrap;
|
|
1106
|
+
gap: 16px 32px;
|
|
1107
|
+
width: 100%;
|
|
1108
|
+
`,ac=Bt.div`
|
|
1109
|
+
display: flex;
|
|
1110
|
+
flex-direction: column;
|
|
1111
|
+
gap: 2px;
|
|
1112
|
+
width: ${({$width:e})=>e};
|
|
1113
|
+
`,rc=Bt(qi)`
|
|
1114
|
+
color: ${({theme:e})=>e.text.grey};
|
|
1115
|
+
font-size: 10px;
|
|
1116
|
+
line-height: 16px;
|
|
1117
|
+
`,sc=Bt(qi)`
|
|
1118
|
+
font-size: 12px;
|
|
1119
|
+
white-space: pre-wrap;
|
|
1120
|
+
`,lc=({data:e})=>bt.createElement(ic,null,e?.map(({type:e,title:t,titleIcon:o,tooltip:n,value:i},a)=>bt.createElement(ac,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[nc.Code,nc.Table].includes(e)?"inherit":e&&[nc.Loader,nc.Divider,nc.CopyText].includes(e)?"100%":"unset"},bt.createElement(yr,{text:n,withIcon:!0},bt.createElement(Ga,{$alignItems:"center",$gap:4},o&&bt.createElement(o,{size:14}),!!t&&bt.createElement(rc,{transform:"capitalize"},t))),bt.createElement(cc,{type:e,value:i})))),cc=({type:e,value:t})=>{const o=ji.useTheme();switch(e){case nc.Divider:return bt.createElement(ur,{length:"100%",margin:"0"});case nc.Loader:return bt.createElement(Ya,null,bt.createElement(rs,{scale:1.2}));case nc.Monitors:return bt.createElement(Ns,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case nc.Badge:{const{label:e,filled:o,...n}=Fn(t,{label:"-",filled:!1});return bt.createElement(ua,{label:e,filled:o,...n})}case nc.Code:{const{language:e,code:o,...n}=Fn(t,{language:"",code:""});return bt.createElement(es,{language:e,code:o,...n})}case nc.Table:{const{columns:e,rows:o,...n}=Fn(t,{columns:[],rows:[{status:void 0,cells:[]}]});return bt.createElement(oc,{columns:e,rows:o,...n})}case nc.ActiveStatus:return bt.createElement(bs,{status:"true"==t?Eo.Success:Eo.Error,title:"true"==t?Qo.ENABLED:Qo.DISABLED,size:10,withIcon:!0,withBorder:!0});case nc.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return bt.createElement(ks,{value:e})}default:return bt.createElement(sc,null,Gn("string"==typeof t?t||"-":""))}},dc=Bt.div`
|
|
1121
|
+
display: flex;
|
|
1122
|
+
flex-direction: column;
|
|
1123
|
+
align-items: flex-start;
|
|
1124
|
+
align-self: stretch;
|
|
1125
|
+
gap: 16px;
|
|
1126
|
+
padding: 24px;
|
|
1127
|
+
border-radius: 24px;
|
|
1128
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1129
|
+
background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+ji.opacity.hex["010"]:"transparent"};
|
|
1130
|
+
transition: background-color 0.3s;
|
|
1131
|
+
`,pc=Bt.div`
|
|
1132
|
+
width: 100%;
|
|
1133
|
+
display: flex;
|
|
1134
|
+
flex-direction: column;
|
|
1135
|
+
gap: 4px;
|
|
1136
|
+
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
1137
|
+
`,uc=Bt(qi)`
|
|
1138
|
+
width: 100%;
|
|
1139
|
+
display: flex;
|
|
1140
|
+
align-items: center;
|
|
1141
|
+
gap: 8px;
|
|
1142
|
+
font-size: 16px;
|
|
1143
|
+
`,hc=Bt(qi)`
|
|
1144
|
+
font-size: 12px;
|
|
1145
|
+
color: ${({theme:e})=>e.text.grey};
|
|
1146
|
+
`,mc=Bt(Ga)`
|
|
1147
|
+
margin-left: auto;
|
|
1148
|
+
gap: 8px;
|
|
1149
|
+
`,gc=({title:e="Details",titleBadge:t,titleIcon:o,description:n,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[c,d]=kt(r),[p,u]=kt(!1);return bt.createElement(dc,{$hovered:p},e||o||n||i?bt.createElement(pc,{$clickable:a||!1,onClick:()=>a&&d(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},bt.createElement(Ga,null,bt.createElement(Ga,{$alignItems:"center",$gap:8},o&&bt.createElement(Ga,{$alignItems:"center"},bt.createElement(o,{size:20})),!!e&&bt.createElement(uc,{transform:"capitalize"},e),t===Ao.Loading?bt.createElement(rs,null):void 0!==t&&bt.createElement(ua,{label:t})),(!!i||a)&&bt.createElement(mc,null,"function"==typeof i?bt.createElement(i,{hovered:p}):i,a&&bt.createElement(ls,{extend:c}))),!!n&&bt.createElement(hc,null,n)):null,(!a||a&&c)&&(l||bt.createElement(lc,{data:s})))},$c=Bt.div`
|
|
1150
|
+
visibility: hidden;
|
|
1151
|
+
`,fc=Bt(Ga)`
|
|
1152
|
+
align-self: stretch;
|
|
1153
|
+
width: calc(100% - 32px);
|
|
1154
|
+
padding: 16px;
|
|
1155
|
+
border-radius: 16px;
|
|
1156
|
+
background-color: ${({theme:e})=>e.colors.secondary+ji.opacity.hex["005"]};
|
|
1157
|
+
${({theme:e,$withClick:t})=>t?Rt`
|
|
1158
|
+
&:hover {
|
|
1159
|
+
cursor: pointer;
|
|
1160
|
+
background-color: ${e.colors.secondary+ji.opacity.hex["010"]};
|
|
1161
|
+
${$c} {
|
|
1162
|
+
visibility: visible;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
`:`\n &:hover {\n ${$c} {\n visibility: visible;\n }\n }\n `}
|
|
1166
|
+
`,xc=Bt(Ga)`
|
|
1167
|
+
margin-left: auto;
|
|
1168
|
+
gap: 8px;
|
|
1169
|
+
`,bc=Bt(qi)`
|
|
1170
|
+
font-size: 10px;
|
|
1171
|
+
color: ${({theme:e})=>e.text.grey};
|
|
1172
|
+
`,yc=({title:e,subTitle:t,icons:o,iconSrcs:n,onClick:i,renderActions:a})=>{const r=ji.useTheme(),[s,l]=kt(0),c=Ct(null),d=Ct(null);return vt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),bt.createElement(fc,{ref:c,$gap:8,$withClick:!!i,onClick:i},bt.createElement(Os,{id:`${e}-${t}`,icons:o,iconSrcs:n}),e&&bt.createElement(Ss,{maxWidth:s/2,text:e,textSize:14}),e&&t&&bt.createElement(bc,null,"•"),t&&bt.createElement(Ss,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),bt.createElement(xc,{ref:d},a&&bt.createElement(bt.Fragment,null,bt.createElement(ur,{orientation:"vertical",length:"24px",margin:"0"}),a())))},wc=({isOpen:e,noOverlay:t,name:o,type:n,isLastItem:i,onApprove:a,onDeny:r})=>{const s=n===wo.Source?"uninstrument":"delete";return bt.createElement(Pr,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:Eo.Warning,title:`You're about to ${s} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},kc=Bt($a)`
|
|
1173
|
+
display: flex;
|
|
1174
|
+
align-items: center;
|
|
1175
|
+
justify-content: center;
|
|
1176
|
+
font-size: 14px;
|
|
1177
|
+
gap: 6px;
|
|
1178
|
+
min-width: 100px;
|
|
1179
|
+
`,vc=({endpoint:e="/",variant:t="secondary"})=>bt.createElement(kc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer")},bt.createElement(ct,{size:18}),"Docs"),Cc=Bt(Ga)`
|
|
1180
|
+
border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
|
|
1181
|
+
`,Ec=Bt.div`
|
|
1182
|
+
display: flex;
|
|
1183
|
+
align-items: center;
|
|
1184
|
+
border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
|
|
1185
|
+
cursor: pointer;
|
|
1186
|
+
`,Sc=Bt(qi)`
|
|
1187
|
+
padding: 12px;
|
|
1188
|
+
font-size: 14px;
|
|
1189
|
+
color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
|
|
1190
|
+
`,Ac=({tabs:e,hideBorder:t=!1})=>e?.length?bt.createElement(Cc,{$hideBorder:t},e.map(({label:e,icon:t,onClick:o,selected:n})=>bt.createElement(Ec,{key:`tab-${e}`,onClick:o,$selected:n},bt.createElement(Sc,{$selected:n},e),t&&bt.createElement(t,null)))):null,Dc=Bt.section`
|
|
1191
|
+
padding: 0px 32px;
|
|
1192
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
1193
|
+
`,Tc=Bt.div`
|
|
1194
|
+
height: 76px;
|
|
1195
|
+
display: flex;
|
|
1196
|
+
justify-content: space-between;
|
|
1197
|
+
flex-shrink: 0;
|
|
1198
|
+
align-self: stretch;
|
|
1199
|
+
`,zc=Bt.div`
|
|
1200
|
+
display: flex;
|
|
1201
|
+
align-items: center;
|
|
1202
|
+
gap: ${({$gap:e})=>e||16}px;
|
|
1203
|
+
`,Fc=Bt(qi)`
|
|
1204
|
+
font-size: 18px;
|
|
1205
|
+
line-height: 26px;
|
|
1206
|
+
max-width: ${({$maxWidth:e})=>e};
|
|
1207
|
+
overflow: hidden;
|
|
1208
|
+
white-space: nowrap;
|
|
1209
|
+
text-overflow: ellipsis;
|
|
1210
|
+
`,Oc=Bt($a)`
|
|
1211
|
+
gap: 8px;
|
|
1212
|
+
`,Ic=Bt($a)``,Nc=({onClose:e,width:t,icons:o,iconSrcs:n,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:c})=>bt.createElement(Dc,null,bt.createElement(Tc,null,bt.createElement(zc,null,o?.length||n?.length?bt.createElement(Os,{icons:o,iconSrcs:n,id:`drawer-header-${i}`}):null,("function"==typeof r?bt.createElement(r,null):r||null)||bt.createElement(yr,{text:a||i,withIcon:!!a},i&&bt.createElement(Fc,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),bt.createElement(zc,{$gap:2},s,l.map((e,t)=>bt.createElement(Oc,{key:`header-action-button-${t}`,...e})),bt.createElement(Ic,{"data-id":"drawer-close",variant:"secondary",onClick:e},bt.createElement(Ye,{size:12})))),bt.createElement(Ac,{tabs:c,hideBorder:!0})),_c=Bt.div`
|
|
1213
|
+
display: flex;
|
|
1214
|
+
justify-content: space-between;
|
|
1215
|
+
gap: 8px;
|
|
1216
|
+
padding: 24px 18px 24px 32px;
|
|
1217
|
+
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
1218
|
+
background-color: ${({theme:e})=>e.colors.translucent_bg};
|
|
1219
|
+
transform: translateY(100%);
|
|
1220
|
+
animation-name: ${ji.animations.slide.in.bottom};
|
|
1221
|
+
`,Bc=Bt(Ga)`
|
|
1222
|
+
margin-right: auto;
|
|
1223
|
+
`,Rc=Bt(Ga)`
|
|
1224
|
+
margin: 0 auto;
|
|
1225
|
+
`,Lc=Bt(Ga)`
|
|
1226
|
+
margin-left: auto;
|
|
1227
|
+
`,Mc=Bt($a)`
|
|
1228
|
+
min-width: 140px;
|
|
1229
|
+
font-size: 14px;
|
|
1230
|
+
`,Pc=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:n=[]})=>e?bt.createElement(_c,null,bt.createElement(Bc,null,t.map((e,t)=>bt.createElement(Mc,{key:`footer-left-button-${t}`,...e}))),bt.createElement(Rc,null,o.map((e,t)=>bt.createElement(Mc,{key:`footer-center-button-${t}`,...e}))),bt.createElement(Lc,null,n.map((e,t)=>bt.createElement(Mc,{key:`footer-right-button-${t}`,...e})))):null,jc=Bt.div`
|
|
1231
|
+
position: fixed;
|
|
1232
|
+
top: 0;
|
|
1233
|
+
bottom: 0;
|
|
1234
|
+
${({$position:e})=>e}: 0;
|
|
1235
|
+
z-index: 1000;
|
|
1236
|
+
width: ${({$width:e})=>e};
|
|
1237
|
+
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
1238
|
+
box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+ji.opacity.hex["010"]};
|
|
1239
|
+
overflow-y: auto;
|
|
1240
|
+
animation-name: ${({$position:e})=>ji.animations.slide.in[e]};
|
|
1241
|
+
`,Uc=Bt.div`
|
|
1242
|
+
display: flex;
|
|
1243
|
+
flex-direction: column;
|
|
1244
|
+
height: 100%;
|
|
1245
|
+
`,Wc=Bt.div`
|
|
1246
|
+
flex-grow: 1;
|
|
1247
|
+
padding: 24px 32px;
|
|
1248
|
+
overflow-y: auto;
|
|
1249
|
+
`,Vc=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:n="right",width:i="300px",children:a,header:r,footer:s})=>(Na({key:"Escape",active:e&&o},()=>t()),ya(e),e?Ht.createPortal(bt.createElement(bt.Fragment,null,bt.createElement(Xa,{hidden:!e,onClick:t}),bt.createElement(jc,{"data-id":"drawer",$position:n,$width:i},bt.createElement(Uc,null,bt.createElement(Nc,{onClose:t,width:i,...r}),bt.createElement(Wc,null,a),bt.createElement(Pc,{...s})))),document.body):null),Hc=({error:e})=>{const t=ji.useTheme(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return bt.createElement("div",{style:o.container},bt.createElement("h2",null,"Something went wrong!"),bt.createElement("pre",{style:o.errorMessage},e?.message||"Unknown Error"),bt.createElement("details",{style:o.errorStackWrapper},bt.createElement("summary",null,"Stack Trace"),bt.createElement("pre",{style:o.errorStack},e?.stack||"Unknown Stack")),bt.createElement("p",{style:o.infoText},"Try refreshing the page or contact support"),bt.createElement($a,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},qc=({children:e})=>bt.createElement(Gt,{FallbackComponent:e=>bt.createElement(ji.Provider,null,bt.createElement(Hc,{...e}))},e),Gc=Bt(Ga)`
|
|
1250
|
+
position: relative;
|
|
1251
|
+
width: calc(100% - 24px);
|
|
1252
|
+
padding: 12px;
|
|
1253
|
+
background-color: ${({theme:e})=>e.colors.dark_grey};
|
|
1254
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.border+ji.opacity.hex["050"]};
|
|
1255
|
+
`,Kc=Bt(Ga)`
|
|
1256
|
+
margin-right: auto;
|
|
1257
|
+
margin-left: 32px;
|
|
1258
|
+
gap: 12px;
|
|
1259
|
+
`,Yc=Bt(Ga)`
|
|
1260
|
+
margin-left: auto;
|
|
1261
|
+
margin-right: 32px;
|
|
1262
|
+
gap: 12px;
|
|
1263
|
+
`,Jc=Bt(Ga)`
|
|
1264
|
+
position: absolute;
|
|
1265
|
+
left: 50%;
|
|
1266
|
+
transform: translateX(-50%);
|
|
1267
|
+
gap: 12px;
|
|
1268
|
+
`,Xc=({left:e=[],center:t=[],right:o=[]})=>bt.createElement(Gc,null,bt.createElement(Kc,null,e.map((e,t)=>e&&bt.createElement(yt,{key:t},e))),bt.createElement(Jc,null,t.map((e,t)=>e&&bt.createElement(yt,{key:t},e))),bt.createElement(Yc,null,o.map((e,t)=>e&&bt.createElement(yt,{key:t},e)))),Zc=Bt(qi)`
|
|
1269
|
+
color: ${({theme:e})=>e.text.grey};
|
|
1270
|
+
`,Qc=({icon:e,title:t,badge:o,badgeTooltip:n,loading:i})=>bt.createElement(Ga,{$gap:6},e&&bt.createElement(e,null),bt.createElement(Zc,{size:14},t),void 0!==o&&bt.createElement(yr,{text:n},bt.createElement(ua,{label:o})),i&&bt.createElement(rs,null)),ed=Bt.div`
|
|
1271
|
+
width: fit-content;
|
|
1272
|
+
height: fit-content;
|
|
1273
|
+
padding: 4px;
|
|
1274
|
+
gap: 4px;
|
|
1275
|
+
border-radius: 32px;
|
|
1276
|
+
border: 1px solid ${({theme:e})=>e.colors.border+ji.opacity.hex["070"]};
|
|
1277
|
+
|
|
1278
|
+
display: flex;
|
|
1279
|
+
flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
|
|
1280
|
+
align-items: center;
|
|
1281
|
+
justify-content: center;
|
|
1282
|
+
`,td=Bt.div`
|
|
1283
|
+
width: 32px;
|
|
1284
|
+
height: 32px;
|
|
1285
|
+
|
|
1286
|
+
border-radius: 100%;
|
|
1287
|
+
background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+ji.opacity.hex["070"]:e.colors.secondary+ji.opacity.hex["012"]};
|
|
1288
|
+
transition: background-color 0.3s;
|
|
1289
|
+
|
|
1290
|
+
display: flex;
|
|
1291
|
+
align-items: center;
|
|
1292
|
+
justify-content: center;
|
|
1293
|
+
|
|
1294
|
+
cursor: pointer;
|
|
1295
|
+
`,od=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:n})=>bt.createElement(ed,{$orientation:e,$flip:t},o.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>bt.createElement(yr,{key:`main-nav-icon-${i}`,text:n},bt.createElement(td,{$selected:t,onClick:o},bt.createElement(e,{size:20})))),!!o.length&&!!n.length&&bt.createElement(ur,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>bt.createElement(yr,{key:`sub-nav-icon-${i}`,text:n},bt.createElement(td,{$selected:t,onClick:o},bt.createElement(e,{size:20}))))),nd=Bt.div`
|
|
1296
|
+
display: flex;
|
|
1297
|
+
flex-direction: column;
|
|
1298
|
+
width: 100%;
|
|
1299
|
+
`,id=Bt.div`
|
|
1300
|
+
display: flex;
|
|
1301
|
+
flex-direction: column;
|
|
1302
|
+
gap: 8px;
|
|
1303
|
+
`,ad=Bt.div`
|
|
1304
|
+
display: flex;
|
|
1305
|
+
align-items: center;
|
|
1306
|
+
gap: 16px;
|
|
1307
|
+
`,rd=Bt(vr)`
|
|
1308
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1309
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1310
|
+
`,sd=({initialValues:e=[],value:t,onChange:o,title:n,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=kt(t||e);vt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=Ct(JSON.stringify(c));vt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const n=[...o];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return bt.createElement(nd,null,bt.createElement(gl,{title:n,required:a,tooltip:i}),bt.createElement(id,null,s.map((e,t)=>{const o=t===s.length-1;return bt.createElement(ad,{key:`input-list-${t}`},bt.createElement(kl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:Nn(e)&&!u&&o}),t===s.length-1&&bt.createElement(rd,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},bt.createElement(et,null)),bt.createElement(rd,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t)},bt.createElement(rt,null)))})),!!r&&bt.createElement(Yi,null,r))},ld=({col:e,colIdx:t,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:$,renderCondition:f}=e,x=o[c];return f&&!f(o)?null:bt.createElement("td",{key:`input-table-${n}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{switch(g){case vo.Dropdown:const e=$?.find(e=>e.id===x);return bt.createElement(Al,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:e,onSelect:e=>r(c,e.id,n),onDeselect:()=>r(c,"",n),hasError:!!s&&(!h||h&&Nn(x))});case"multi-dropdown":const o=Array.isArray(x)&&$?.filter(e=>x.includes(e.id))||[];return bt.createElement(Al,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(x)?x:[],e.id];r(c,t,n)},onDeselect:e=>{const t=(Array.isArray(x)?x:[]).filter(t=>t!==e.id);r(c,t,n)},hasError:!!s&&(!h||h&&Nn(x))});default:const g=i>1&&n===i-1&&0===t&&Nn(x);return bt.createElement(kl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:x,onChange:({target:{value:e}})=>r(c,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!h||h&&Nn(x))})}})())},cd=Bt.div`
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-direction: column;
|
|
1313
|
+
width: 100%;
|
|
1314
|
+
`,dd=Bt.button`
|
|
1315
|
+
margin-top: ${({$marginTop:e})=>e};
|
|
1316
|
+
background: none;
|
|
1317
|
+
border: none;
|
|
1318
|
+
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1319
|
+
opacity: ${({disabled:e})=>e?.5:1};
|
|
1320
|
+
`,pd=({columns:e,initialValues:t=[],value:o,onChange:n,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=kt({}),[c,d]=kt(o||t),p=wt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);vt(()=>{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 n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&Nn(o))return!1}return!0}),h=Ct(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;vt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u]);const $=(e,t,o)=>{d(n=>{const i=to(n);return i[o][e]=t,i})},f=wt(()=>{if(a){const t=[];for(let o=0;;o+=a){const n=e.slice(o,o+a);if(!n.length)break;t.push(n)}return t}return[e]},[a,e]);return bt.createElement(cd,null,bt.createElement(gl,{title:r}),bt.createElement("table",{style:{borderCollapse:"collapse"}},!a&&bt.createElement("thead",null,bt.createElement("tr",null,e.map(({title:e,tooltip:t,required:o})=>bt.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:g}},bt.createElement(gl,{title:e,required:o,tooltip:t}))),bt.createElement("th",null))),bt.createElement("tbody",null,c.map((t,o)=>bt.createElement(yt,{key:`input-table-row-${o}`},a&&o>0?bt.createElement("tr",null,bt.createElement("td",{colSpan:f.length},bt.createElement(ur,null))):null,f.map((n,r)=>bt.createElement("tr",{key:`input-table-matrix-${o}-${r}`},n.map((e,n)=>bt.createElement(ld,{key:`input-table-row-${o}-col-${n}`,col:e,colIdx:n,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:a,errorMessage:i,handleChange:$})),0===r&&bt.createElement("td",null,bt.createElement(dd,{$marginTop:a?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>$(e,o===Co.Number?"0":"",t)));var t}},bt.createElement(rt,null))))))))),!!i&&bt.createElement(Yi,null,i),bt.createElement(ys,{onClick:()=>{d(e=>{const t=to(e);return t.push(to(s)),t})},disabled:m}))},ud=Bt.div`
|
|
1321
|
+
display: flex;
|
|
1322
|
+
flex-direction: column;
|
|
1323
|
+
width: 100%;
|
|
1324
|
+
`,hd=Bt.div`
|
|
1325
|
+
display: flex;
|
|
1326
|
+
flex-direction: column;
|
|
1327
|
+
gap: 8px;
|
|
1328
|
+
`,md=Bt.div`
|
|
1329
|
+
display: flex;
|
|
1330
|
+
align-items: center;
|
|
1331
|
+
gap: 8px;
|
|
1332
|
+
`,gd=Bt.div`
|
|
1333
|
+
width: 100%;
|
|
1334
|
+
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
1335
|
+
`,$d=Bt(vr)`
|
|
1336
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1337
|
+
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1338
|
+
`,fd={key:"",value:""},xd=({initialKeyValuePairs:e=[],value:t,onChange:o,title:n,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=kt(t||e);vt(()=>{p.length||u([{...fd}])},[]);const h=p.filter(({key:e,value:t})=>!Nn(e.trim())&&!Nn(t.trim())),m=Ct(JSON.stringify(h));vt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(n=>{const i=[...n];return i[o][e]=t,i})},$=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),x=a||$&&f;return bt.createElement(ud,null,bt.createElement(gl,{title:n,required:r,tooltip:i}),bt.createElement(hd,null,p.map(({key:e,value:t},o)=>bt.createElement(md,{key:`key-value-input-list-${o}`},bt.createElement(gd,{$maxWidth:d},bt.createElement(kl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!r||r&&!e),autoFocus:Nn(t)&&!$&&o===p.length-1})),bt.createElement(gd,{$maxWidth:o===p.length-1?d-38:d},bt.createElement(kl,{placeholder:c,disabled:a,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!r||r&&Nn(t)),autoFocus:!1})),o===p.length-1&&bt.createElement($d,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...fd}),t})}},bt.createElement(et,null)),bt.createElement($d,{size:30,$disabled:x,onClick:x?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o)},bt.createElement(rt,null))))),!!s&&bt.createElement(Yi,null,s))},bd=Pt`
|
|
1339
|
+
0% {
|
|
1340
|
+
background-position: 0% 50%;
|
|
1341
|
+
}
|
|
1342
|
+
100% {
|
|
1343
|
+
background-position: 100% 50%;
|
|
1344
|
+
}
|
|
1345
|
+
`,yd=Bt(qi)`
|
|
1346
|
+
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1347
|
+
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1348
|
+
background-clip: text;
|
|
1349
|
+
color: transparent;
|
|
1350
|
+
animation: ${bd} 1s reverse linear infinite;
|
|
1351
|
+
`,wd=({children:e="Loading...",textColor:t,stripColor:o,...n})=>{const i=ji.useTheme(),a=t||i.v2.colors.white[500],r=o||i.v2.colors.black[500];return bt.createElement(yd,{$textColor:a,$stripColor:r,...n},e)},kd=Bt.div`
|
|
1352
|
+
display: flex;
|
|
1353
|
+
flex-direction: ${({$isVertical:e})=>e?"column":"row"};
|
|
1354
|
+
gap: ${({$isVertical:e})=>e?"12px":"24px"};
|
|
1355
|
+
${({$hasError:e})=>e&&Rt`
|
|
1356
|
+
border: 1px solid ${({theme:e})=>e.text.error};
|
|
1357
|
+
border-radius: 32px;
|
|
1358
|
+
padding: 8px;
|
|
1359
|
+
`}
|
|
1360
|
+
`,vd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Cd=({isVertical:e,title:t="Monitors",required:o,errorMessage:n,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=kt(1===a.length),c=Ct(JSON.stringify(a));return vt(()=>{const e=a;e.length||ci.forEach(({id:t})=>{vd(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,r(e),l(1===e.length)),()=>{c.current=""}},[i]),bt.createElement("div",null,t&&bt.createElement(gl,{title:t,required:o}),bt.createElement(kd,{$isVertical:e,$hasError:!!n},ci.map(e=>{const t=vd(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?bt.createElement(Vr,{key:e.id,title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,n=t?[...a,o]:a.filter(e=>e!==o);r(n),l(1===n.length)})(e.id,t)}):null})),!!n&&bt.createElement(Yi,null,n))},Ed=Bt.div`
|
|
1361
|
+
display: flex;
|
|
1362
|
+
gap: 8px;
|
|
1363
|
+
align-items: center;
|
|
1364
|
+
`,Sd=Bt($a)`
|
|
1365
|
+
display: flex;
|
|
1366
|
+
align-items: center;
|
|
1367
|
+
justify-content: center;
|
|
1368
|
+
gap: 8px;
|
|
1369
|
+
min-width: 90px;
|
|
1370
|
+
`,Ad=({buttons:e})=>{const t=ji.useTheme(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),n=({button:e,rotate:o})=>e.icon?bt.createElement(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?bt.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return bt.createElement(Ed,null,e.map((e,t)=>bt.createElement(yr,{key:t,text:e.tooltip||""},bt.createElement(Sd,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},o({button:e,index:t})&&n({button:e,rotate:0}),e.label,!o({button:e,index:t})&&n({button:e,rotate:180})))))},Dd=Bt.div`
|
|
1371
|
+
height: ${({$height:e})=>e}px;
|
|
1372
|
+
width: 100%;
|
|
1373
|
+
overflow: auto;
|
|
1374
|
+
`,Td=Bt.div`
|
|
1375
|
+
height: ${({$height:e})=>e}px;
|
|
1376
|
+
width: 100%;
|
|
1377
|
+
position: relative;
|
|
1378
|
+
`,zd=Bt.div`
|
|
1379
|
+
height: ${({$height:e})=>e}px;
|
|
1380
|
+
width: 100%;
|
|
1381
|
+
position: absolute;
|
|
1382
|
+
top: 0;
|
|
1383
|
+
left: 0;
|
|
1384
|
+
transform: translateY(${({$yOffset:e})=>e}px);
|
|
1385
|
+
`,Fd=({containerHeight:e,elementHeight:t,elements:o})=>{const{overflowRef:n,listHeight:i,listItems:a}=Fa({items:o,rowHeight:t});return bt.createElement(Dd,{ref:n,$height:e},bt.createElement(Td,{$height:i},a.map(({key:e,index:t,size:n,start:i})=>{const a=t>o.length-1,r=o[t];return bt.createElement(zd,{key:e,$height:n,$yOffset:i},a?bt.createElement(Ya,null,bt.createElement(wd,null)):r)})))},Od=Bt.div`
|
|
1386
|
+
display: flex;
|
|
1387
|
+
justify-content: space-between;
|
|
1388
|
+
align-items: center;
|
|
1389
|
+
gap: 16px;
|
|
1390
|
+
`,Id=Bt.div`
|
|
1391
|
+
display: flex;
|
|
1392
|
+
flex-direction: column;
|
|
1393
|
+
gap: 4px;
|
|
1394
|
+
`,Nd=Bt.div`
|
|
1395
|
+
display: flex;
|
|
1396
|
+
align-items: center;
|
|
1397
|
+
gap: 8px;
|
|
1398
|
+
`,_d=Bt(qi)``,Bd=Bt(qi)``,Rd=({title:e,description:t,badgeLabel:o,icon:n,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return bt.createElement(Od,null,bt.createElement(Id,null,bt.createElement(Nd,null,n&&bt.createElement(n,{size:r}),bt.createElement(_d,{weight:300,size:r},e),void 0!==o&&bt.createElement(ua,{label:o,filled:!!o})),bt.createElement(Bd,{weight:200,opacity:.8,size:s},t)),i&&bt.createElement("div",null,i))},Ld=Bt.div`
|
|
1399
|
+
position: relative;
|
|
1400
|
+
gap: 0;
|
|
1401
|
+
z-index: 0;
|
|
1402
|
+
display: grid;
|
|
1403
|
+
grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
|
|
1404
|
+
`,Md=Bt.button`
|
|
1405
|
+
flex: 1;
|
|
1406
|
+
display: flex;
|
|
1407
|
+
align-items: center;
|
|
1408
|
+
justify-content: center;
|
|
1409
|
+
gap: 4px;
|
|
1410
|
+
padding: 6px 12px;
|
|
1411
|
+
background-color: transparent;
|
|
1412
|
+
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1413
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1414
|
+
cursor: pointer;
|
|
1415
|
+
&:hover {
|
|
1416
|
+
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1417
|
+
}
|
|
1418
|
+
`,Pd=Bt.div`
|
|
1419
|
+
position: absolute;
|
|
1420
|
+
top: ${({$y:e})=>e}px;
|
|
1421
|
+
left: ${({$x:e})=>e}px;
|
|
1422
|
+
z-index: -1;
|
|
1423
|
+
width: ${({$width:e})=>e}px;
|
|
1424
|
+
height: ${({$height:e})=>e}px;
|
|
1425
|
+
background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1426
|
+
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1427
|
+
transition: all 0.3s;
|
|
1428
|
+
`,jd=({options:e=[],selected:t,setSelected:o})=>{const n=e.findIndex(e=>e.value===t),[i,a]=kt(e[n]?.selectedBgColor||""),[r,s]=kt({width:0,height:0}),[l,c]=kt({x:0,y:0}),d=Ct(null);return vt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),bt.createElement(Ld,{$count:e.length},e.map(({icon:n,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return bt.createElement(Md,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(r),a(s||"")}},n&&bt.createElement(n,null),i&&bt.createElement(qi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),bt.createElement(Pd,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1}))},Ud=Bt($a)`
|
|
1429
|
+
gap: 8px;
|
|
1430
|
+
text-transform: none;
|
|
1431
|
+
text-decoration: none;
|
|
1432
|
+
border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
|
|
1433
|
+
&.not-selected {
|
|
1434
|
+
background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+ji.opacity.hex["060"]};
|
|
1435
|
+
&:hover {
|
|
1436
|
+
background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
&.selected {
|
|
1440
|
+
background-color: ${({theme:e})=>e.colors.majestic_blue+ji.opacity.hex["030"]};
|
|
1441
|
+
}
|
|
1442
|
+
`,Wd=Bt(qi)`
|
|
1443
|
+
white-space: nowrap;
|
|
1444
|
+
overflow: hidden;
|
|
1445
|
+
text-overflow: ellipsis;
|
|
1446
|
+
font-size: 14px;
|
|
1447
|
+
`,Vd=({label:e,onClick:t,icon:o,iconSrc:n,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=ji.useTheme();return bt.createElement(Ud,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d},o&&bt.createElement("div",null,bt.createElement(o,{fill:p.text.info})),n&&bt.createElement("div",null,bt.createElement("img",{src:n,alt:"",width:16,height:16})),bt.createElement(Wd,null,e),r&&bt.createElement("div",null,bt.createElement(Ge,{fill:p.colors.majestic_blue_soft})),void 0!==i&&bt.createElement(ua,{label:i,filled:a||r}))},Hd=Bt.div`
|
|
1448
|
+
display: flex;
|
|
1449
|
+
flex-direction: column;
|
|
1450
|
+
gap: 16px;
|
|
1451
|
+
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1452
|
+
`,qd=Bt.div`
|
|
1453
|
+
display: flex;
|
|
1454
|
+
align-items: center;
|
|
1455
|
+
gap: 16px;
|
|
1456
|
+
`,Gd=Bt.div`
|
|
1457
|
+
width: 50px;
|
|
1458
|
+
height: 50px;
|
|
1459
|
+
border-radius: 8px;
|
|
1460
|
+
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1461
|
+
background-size: 200% 100%;
|
|
1462
|
+
animation: ${ji.animations.shimmer} 10s infinite linear;
|
|
1463
|
+
`,Kd=Bt(Ka)`
|
|
1464
|
+
flex: 1;
|
|
1465
|
+
gap: 12px;
|
|
1466
|
+
`,Yd=Bt.div`
|
|
1467
|
+
width: ${({$width:e})=>e};
|
|
1468
|
+
height: 16px;
|
|
1469
|
+
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1470
|
+
background-size: 200% 100%;
|
|
1471
|
+
animation: ${ji.animations.shimmer} 1.5s infinite linear;
|
|
1472
|
+
border-radius: 4px;
|
|
1473
|
+
`,Jd=({size:e=5,maxWidth:t})=>bt.createElement(Hd,{$maxWidth:t},[...Array(e)].map((e,t)=>bt.createElement(qd,{key:t},bt.createElement(Gd,null),bt.createElement(Kd,null,bt.createElement(Yd,{$width:"80%"}),bt.createElement(Yd,{$width:"100%"})))));var Xd;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Xd||(Xd={}));const Zd=Bt.div`
|
|
1474
|
+
display: flex;
|
|
1475
|
+
flex-direction: column;
|
|
1476
|
+
gap: 32px;
|
|
1477
|
+
`,Qd=Bt.div`
|
|
1478
|
+
display: flex;
|
|
1479
|
+
gap: 16px;
|
|
1480
|
+
padding: 8px;
|
|
1481
|
+
opacity: ${({$state:e})=>e===Xd.Active?1:e===Xd.Disabled?.5:.8};
|
|
1482
|
+
transition: all 0.3s;
|
|
1483
|
+
`,ep=Bt(Ga)`
|
|
1484
|
+
justify-content: center;
|
|
1485
|
+
width: 24px;
|
|
1486
|
+
height: 24px;
|
|
1487
|
+
border-radius: 32px;
|
|
1488
|
+
border: ${({theme:e,$state:t})=>t===Xd.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
|
|
1489
|
+
opacity: ${({$state:e})=>e===Xd.Finished?.8:1};
|
|
1490
|
+
`,tp=Bt(Ka)`
|
|
1491
|
+
justify-content: center;
|
|
1492
|
+
gap: 8px;
|
|
1493
|
+
`,op=Bt(qi)``,np=Bt(qi)``,ip=({data:e,currentStep:t=0})=>{const[o,n]=kt([]);return vt(()=>{n(e.map((e,o)=>o<t-1?{...e,state:Xd.Finished,subtitle:e.subtitle||Eo.Success}:o===t-1?{...e,state:Xd.Active,subtitle:""}:{...e,state:Xd.Disabled,subtitle:""}))},[t,e]),bt.createElement(Zd,null,o.map((e,t)=>bt.createElement(Qd,{key:t,$state:e.state},bt.createElement(ep,{$state:e.state},[Xd.Active,Xd.Disabled].includes(e.state)?bt.createElement(qi,{size:12},e.stepNumber):e.state===Xd.Finished?bt.createElement(Ge,{size:20}):null),bt.createElement(tp,null,bt.createElement(op,{family:"secondary"},e.title),e.subtitle&&bt.createElement(np,{size:10,weight:300},e.subtitle)))))},ap=Bt(Ga)`
|
|
1494
|
+
width: fit-content;
|
|
1495
|
+
gap: 6px;
|
|
1496
|
+
padding: 6px 12px;
|
|
1497
|
+
border-radius: 360px;
|
|
1498
|
+
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1499
|
+
`,rp=Bt(qi)`
|
|
1500
|
+
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1501
|
+
`,sp=({type:e=Eo.Info,icon:t,title:o,size:n,family:i,children:a,...r})=>bt.createElement(ap,{$type:e},t&&bt.createElement(t,null),bt.createElement(rp,{$type:e,size:n||12,family:i||"secondary",...r},a||o)),lp=Bt.div`
|
|
1502
|
+
display: flex;
|
|
1503
|
+
flex-direction: column;
|
|
1504
|
+
position: relative;
|
|
1505
|
+
width: 100%;
|
|
1506
|
+
`,cp=Bt.div`
|
|
1507
|
+
width: 100%;
|
|
1508
|
+
display: flex;
|
|
1509
|
+
align-items: center;
|
|
1510
|
+
gap: 12px;
|
|
1511
|
+
transition: border-color 0.3s;
|
|
1512
|
+
border-radius: 24px;
|
|
1513
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1514
|
+
${({$disabled:e})=>e&&Rt`
|
|
1515
|
+
background-color: ${({theme:e})=>e.colors.border};
|
|
1516
|
+
cursor: not-allowed;
|
|
1517
|
+
opacity: 0.6;
|
|
1518
|
+
`}
|
|
1519
|
+
|
|
1520
|
+
${({$hasError:e})=>e&&Rt`
|
|
1521
|
+
border-color: ${({theme:e})=>e.text.error};
|
|
1522
|
+
`}
|
|
1523
|
+
|
|
1524
|
+
${({$isActive:e})=>e&&Rt`
|
|
1525
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1526
|
+
`}
|
|
1527
|
+
|
|
1528
|
+
&:hover {
|
|
1529
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1530
|
+
}
|
|
1531
|
+
&:focus-within {
|
|
1532
|
+
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1533
|
+
}
|
|
1534
|
+
`,dp=Bt.textarea`
|
|
1535
|
+
flex: 1;
|
|
1536
|
+
border: none;
|
|
1537
|
+
outline: none;
|
|
1538
|
+
background: none;
|
|
1539
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
1540
|
+
font-size: 14px;
|
|
1541
|
+
padding: 12px 20px 0;
|
|
1542
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1543
|
+
font-weight: 300;
|
|
1544
|
+
line-height: 22px;
|
|
1545
|
+
&::placeholder {
|
|
1546
|
+
color: ${({theme:e})=>e.text.secondary};
|
|
1547
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1548
|
+
opacity: 0.4;
|
|
1549
|
+
font-size: 14px;
|
|
1550
|
+
font-weight: 300;
|
|
1551
|
+
line-height: 22px; /* 157.143% */
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
&:disabled {
|
|
1555
|
+
background-color: ${({theme:e})=>e.colors.border};
|
|
1556
|
+
cursor: not-allowed;
|
|
1557
|
+
}
|
|
1558
|
+
`,pp=({errorMessage:e,title:t,tooltip:o,required:n,onChange:i,name:a,...r})=>{const s=Ct(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return bt.createElement(lp,null,bt.createElement(gl,{title:t,required:n,tooltip:o}),bt.createElement(cp,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},bt.createElement(dp,{ref:s,"data-id":a,name:a,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...r})),!!e&&bt.createElement(Yi,null,e))},up=Bt.div`
|
|
1559
|
+
display: flex;
|
|
1560
|
+
align-items: center;
|
|
1561
|
+
gap: 12px;
|
|
1562
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1563
|
+
opacity: ${({$disabled:e})=>e?.6:1};
|
|
1564
|
+
`,hp=Bt.div`
|
|
1565
|
+
width: 24px;
|
|
1566
|
+
height: 12px;
|
|
1567
|
+
border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
|
|
1568
|
+
border-radius: 20px;
|
|
1569
|
+
display: flex;
|
|
1570
|
+
align-items: center;
|
|
1571
|
+
padding: 2px;
|
|
1572
|
+
background-color: transparent;
|
|
1573
|
+
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
1574
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1575
|
+
opacity: ${({$isActive:e})=>e?1:.5};
|
|
1576
|
+
transition: border-color 0.3s, opacity 0.3s;
|
|
1577
|
+
&::before {
|
|
1578
|
+
content: '';
|
|
1579
|
+
width: 12px;
|
|
1580
|
+
height: 12px;
|
|
1581
|
+
border-radius: 50%;
|
|
1582
|
+
background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
|
|
1583
|
+
transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
|
|
1584
|
+
transition: background-color 0.3s, transform 0.3s;
|
|
1585
|
+
}
|
|
1586
|
+
`,mp=({title:e,tooltip:t,initialValue:o=!1,onChange:n,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=kt(o);return vt(()=>l(o),[o]),bt.createElement(up,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),n?n(!s):l(e=>!e))}},!r&&bt.createElement(hp,{$disabled:i,$isActive:s}),(e||t)&&bt.createElement(yr,{text:t,withIcon:!0},e&&bt.createElement(qi,{size:14},e)),r&&bt.createElement(hp,{$disabled:i,$isActive:s}))};var gp={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const $p=Bt.div`
|
|
1587
|
+
width: ${({$width:e})=>e}px;
|
|
1588
|
+
height: ${({$height:e})=>e}px;
|
|
1589
|
+
position: relative;
|
|
1590
|
+
`,fp=({width:e=620})=>{const{darkMode:t}=ji.useTheme(),o=e/(620/220),n=e;return bt.createElement($p,{$width:n,$height:o},bt.createElement(Kt,{autoplay:!0,loop:!0,animationData:gp,style:{width:o,height:n,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}}))};var xp,bp;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(xp||(xp={})),function(e){e.S="small",e.M="medium",e.L="large"}(bp||(bp={}));const yp=Bt.button`
|
|
1591
|
+
display: flex;
|
|
1592
|
+
align-items: center;
|
|
1593
|
+
justify-content: center;
|
|
1594
|
+
gap: 8px;
|
|
1595
|
+
${({$fullWidth:e})=>e&&Rt`
|
|
1596
|
+
width: 100%;
|
|
1597
|
+
`}
|
|
1598
|
+
border: none;
|
|
1599
|
+
border-radius: 6px;
|
|
1600
|
+
${({$size:e,$hasLabel:t})=>e===bp.S?Rt`
|
|
1601
|
+
height: 32px;
|
|
1602
|
+
${t?Rt`
|
|
1603
|
+
padding: 8px 16px;
|
|
1604
|
+
`:Rt`
|
|
1605
|
+
width: 32px;
|
|
1606
|
+
`}
|
|
1607
|
+
`:e===bp.M?Rt`
|
|
1608
|
+
height: 38px;
|
|
1609
|
+
${t?Rt`
|
|
1610
|
+
padding: 8px 18px;
|
|
1611
|
+
`:Rt`
|
|
1612
|
+
width: 38px;
|
|
1613
|
+
`}
|
|
1614
|
+
`:Rt`
|
|
1615
|
+
height: 44px;
|
|
1616
|
+
${t?Rt`
|
|
1617
|
+
padding: 8px 22px;
|
|
1618
|
+
`:Rt`
|
|
1619
|
+
width: 44px;
|
|
1620
|
+
`}
|
|
1621
|
+
`}
|
|
1622
|
+
|
|
1623
|
+
cursor: pointer;
|
|
1624
|
+
&:disabled {
|
|
1625
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1626
|
+
cursor: not-allowed;
|
|
1627
|
+
}
|
|
1628
|
+
&:enabled {
|
|
1629
|
+
${({$withShadow:e})=>e?Rt`
|
|
1630
|
+
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
1631
|
+
`:""}
|
|
1632
|
+
${({$variant:e})=>e===xp.Primary?Rt`
|
|
1633
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
1634
|
+
&:hover {
|
|
1635
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
1636
|
+
}
|
|
1637
|
+
&:active {
|
|
1638
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
1639
|
+
}
|
|
1640
|
+
`:e===xp.Secondary?Rt`
|
|
1641
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1642
|
+
&:hover {
|
|
1643
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1644
|
+
}
|
|
1645
|
+
&:active {
|
|
1646
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1647
|
+
}
|
|
1648
|
+
`:e===xp.Text?Rt`
|
|
1649
|
+
background-color: transparent;
|
|
1650
|
+
&:hover {
|
|
1651
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1652
|
+
}
|
|
1653
|
+
&:active {
|
|
1654
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1655
|
+
}
|
|
1656
|
+
`:""}
|
|
1657
|
+
}
|
|
1658
|
+
`,wp=St(({label:e,leftIcon:t,rightIcon:o,variant:n=xp.Primary,size:i=bp.M,iconSize:a,loading:r,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const h=ji.useTheme(),m=a||(i===bp.L?18:16),g=i===bp.L?ei.S:ei.XS,$=c?h.v2.colors.grey[400]:h.v2.colors.white[500];return bt.createElement(yp,{ref:u,$variant:n,$size:i,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:r?void 0:e=>{e.stopPropagation(),d?.(e)},...p},r?e?bt.createElement(wd,{size:h.v2.text.size[g],textColor:$}):bt.createElement(rs,null):bt.createElement(bt.Fragment,null,t&&bt.createElement(t,{size:m,fill:$}),e?bt.createElement(oi,{size:g,weight:500,color:$,nowrap:!0},e):null,o&&bt.createElement(o,{size:m,fill:$})))});wp.displayName=wp.name;const kp=Bt.button`
|
|
1659
|
+
width: 100%;
|
|
1660
|
+
padding: 0;
|
|
1661
|
+
padding-right: 12px;
|
|
1662
|
+
display: flex;
|
|
1663
|
+
align-items: center;
|
|
1664
|
+
justify-content: flex-start;
|
|
1665
|
+
gap: 12px;
|
|
1666
|
+
border-radius: 8px;
|
|
1667
|
+
border: none;
|
|
1668
|
+
${({$hovered:e})=>e?Rt`
|
|
1669
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1670
|
+
`:Rt`
|
|
1671
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1672
|
+
`}
|
|
1673
|
+
overflow: hidden;
|
|
1674
|
+
cursor: pointer;
|
|
1675
|
+
&:disabled {
|
|
1676
|
+
cursor: not-allowed;
|
|
1677
|
+
}
|
|
1678
|
+
`,vp=Bt.div`
|
|
1679
|
+
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
1680
|
+
height: 56px;
|
|
1681
|
+
display: flex;
|
|
1682
|
+
align-items: center;
|
|
1683
|
+
justify-content: center;
|
|
1684
|
+
${({$hovered:e})=>e?Rt`
|
|
1685
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1686
|
+
`:Rt`
|
|
1687
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1688
|
+
`}
|
|
1689
|
+
`,Cp=Bt.div`
|
|
1690
|
+
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
1691
|
+
display: flex;
|
|
1692
|
+
justify-content: space-between;
|
|
1693
|
+
align-items: center;
|
|
1694
|
+
gap: 8px;
|
|
1695
|
+
`,Ep=({label:e,icon:t,loading:o,onClick:n})=>{const[i,a]=kt(!1);return bt.createElement(kp,{$hovered:i,type:"button",disabled:o,onClick:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},bt.createElement(vp,{$hovered:i,$hasIcon:!!t},t&&bt.createElement(t,{size:36})),bt.createElement(Cp,{$hasIcon:!!t},o?bt.createElement(wd,{size:16}):bt.createElement(oi,{variant:Qn.Span,align:"center"},e),bt.createElement(dt,{rotate:90,size:24})))},Sp=({buttons:e})=>bt.createElement(Ka,{$gap:12},e.map(e=>bt.createElement(Ep,{key:e.label,...e}))),Ap=Bt.div`
|
|
1696
|
+
display: flex;
|
|
1697
|
+
align-items: center;
|
|
1698
|
+
flex-wrap: wrap;
|
|
1699
|
+
width: calc(100% - 24px);
|
|
1700
|
+
padding: 4px 12px;
|
|
1701
|
+
border-radius: 12px;
|
|
1702
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1703
|
+
`,Dp=Bt.div`
|
|
1704
|
+
width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
|
|
1705
|
+
margin: 8px;
|
|
1706
|
+
display: flex;
|
|
1707
|
+
flex-direction: column;
|
|
1708
|
+
gap: 4px;
|
|
1709
|
+
`,Tp=({cellsPerRow:e,items:t})=>{const o=Lt(),{CopyButton:n}=Aa();return bt.createElement(Ap,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>bt.createElement(Dp,{key:i,$cellsPerRow:e||t.length},bt.createElement(oi,{size:ei.XXXS,color:o.v2.colors.silver[200],nowrap:!0},a),bt.createElement(Ga,{$gap:4},l&&bt.createElement(ii,{...l}),r&&bt.createElement(oi,{size:ei.XS,nowrap:!0},r),s&&bt.createElement(n,{value:r||l?.label?.toString()||"",size:Ca.XS})))))};var zp;!function(e){e.S="s",e.L="l"}(zp||(zp={}));const Fp=Bt.div`
|
|
1710
|
+
position: relative;
|
|
1711
|
+
z-index: 0;
|
|
1712
|
+
display: flex;
|
|
1713
|
+
align-items: center;
|
|
1714
|
+
gap: 2px;
|
|
1715
|
+
padding: 3px;
|
|
1716
|
+
border-radius: 8px;
|
|
1717
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
1718
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1719
|
+
`,Op=Bt.button`
|
|
1720
|
+
flex: 1;
|
|
1721
|
+
display: flex;
|
|
1722
|
+
align-items: center;
|
|
1723
|
+
justify-content: center;
|
|
1724
|
+
gap: 8px;
|
|
1725
|
+
padding: ${({$size:e})=>e===zp.S?"4px 8px":"8px 16px"};
|
|
1726
|
+
border-radius: 6px;
|
|
1727
|
+
border: none;
|
|
1728
|
+
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:"transparent"};
|
|
1729
|
+
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
1730
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1731
|
+
&:hover {
|
|
1732
|
+
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:e.v2.colors.silver[800]};
|
|
1733
|
+
}
|
|
1734
|
+
`,Ip=({size:e=zp.L,options:t=[],selected:o,setSelected:n,disabled:i})=>{const a=Lt(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500],s=e===zp.S?ei.XXS:ei.XS,l=e===zp.S?400:500;return bt.createElement(Fp,{$count:t.length},t.map(({value:t,label:a,icon:c},d)=>{const p=o===t;return bt.createElement(Op,{key:`segment-${a||d}-${t}`,onClick:()=>!i&&n(t),$isSelected:p,$disabled:i,$size:e},c&&bt.createElement(c,{fill:r}),a&&bt.createElement(oi,{size:s,weight:l,color:r,nowrap:!0},a))}))},Np=Bt.div`
|
|
1735
|
+
width: ${({$width:e})=>e?`calc(${e} - 24px)`:"fit-content"};
|
|
1736
|
+
padding: 6px 12px;
|
|
1737
|
+
display: flex;
|
|
1738
|
+
align-self: stretch;
|
|
1739
|
+
align-items: center;
|
|
1740
|
+
gap: 8px;
|
|
1741
|
+
border-radius: 6px;
|
|
1742
|
+
|
|
1743
|
+
border: none;
|
|
1744
|
+
border-radius: 6px;
|
|
1745
|
+
background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
|
|
1746
|
+
`,_p=Bt.input`
|
|
1747
|
+
flex: 1;
|
|
1748
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1749
|
+
font-size: 14px;
|
|
1750
|
+
font-weight: 400;
|
|
1751
|
+
line-height: 20px;
|
|
1752
|
+
|
|
1753
|
+
cursor: text;
|
|
1754
|
+
color: ${({$textColor:e})=>e};
|
|
1755
|
+
&::placeholder {
|
|
1756
|
+
color: ${({$textColor:e})=>e};
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
overflow: hidden;
|
|
1760
|
+
text-overflow: ellipsis;
|
|
1761
|
+
white-space: nowrap;
|
|
1762
|
+
`,Bp=({value:e,onChange:t,placeholder:o,width:n,segment:i})=>{const a=ji.useTheme(),[r,s]=kt(!1),[l,c]=kt(!1),[d,p]=kt(!1),u=r?a.v2.colors.white[500]:a.v2.colors.silver[200],h=!!i?.options?.length,m=wt(()=>{if(h)return i?.options.find(e=>e.value===i.selected)?.label},[h,i?.options,i?.selected]),g=wt(()=>o||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[o,h,m]);return bt.createElement(Np,{$width:n,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:r},bt.createElement(at,{size:18,fill:u}),bt.createElement(_p,{"data-id":"search",name:"search",type:"text",placeholder:g,value:e,onChange:e=>{e.stopPropagation(),t(e.target.value)},onFocus:()=>s(!0),onBlur:()=>s(!1),$textColor:u}),h&&bt.createElement("div",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)},bt.createElement(Ip,{options:i.options,selected:i.selected,setSelected:i.setSelected,size:zp.S})))};var Rp;!function(e){e.S="small",e.L="large"}(Rp||(Rp={}));const Lp=Bt.div`
|
|
1763
|
+
width: fit-content;
|
|
1764
|
+
display: flex;
|
|
1765
|
+
align-items: center;
|
|
1766
|
+
gap: 8px;
|
|
1767
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1768
|
+
`,Mp=Bt.div`
|
|
1769
|
+
width: ${({$size:e})=>e===Rp.S?"16px":"20px"};
|
|
1770
|
+
height: ${({$size:e})=>e===Rp.S?"16px":"20px"};
|
|
1771
|
+
display: flex;
|
|
1772
|
+
align-items: center;
|
|
1773
|
+
justify-content: center;
|
|
1774
|
+
border-radius: 4px;
|
|
1775
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
1776
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
1777
|
+
`,Pp=({label:e,size:t=Rp.L,disabled:o,partiallyChecked:n,value:i,onChange:a})=>{const r=ji.useTheme(),[s,l]=kt(!1),c=n||i,d=t===Rp.S?12:16,p=o?r.v2.colors.grey[400]:r.v2.colors.white[500],u=c?"transparent":o?r.v2.colors.grey[700]:s?r.v2.colors.silver[400]:r.v2.colors.silver[600],h=o?r.v2.colors.grey[600]:c?r.v2.colors.purple[500]:r.v2.colors.silver[900];return bt.createElement(Lp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||a(!!n||!i)},$disabled:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},bt.createElement(Mp,{$size:t,$borderColor:u,$backgroundColor:h},n?bt.createElement(Je,{size:d,fill:p}):i?bt.createElement(Ge,{size:d,fill:p}):null),e&&bt.createElement(oi,{size:t===Rp.S?ei.XXS:ei.XS,nowrap:!0},e))},jp=Bt.div`
|
|
1778
|
+
display: flex;
|
|
1779
|
+
flex-direction: ${({$direction:e})=>e===mo.Horizontal?"row":"column"};
|
|
1780
|
+
gap: ${({$direction:e})=>e===mo.Horizontal?16:8}px;
|
|
1781
|
+
`,Up=({direction:e=mo.Vertical,title:t,size:o,disabled:n,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=o===Rp.S?ei.XXS:ei.XS,c=wt(()=>a.every(e=>r[e.id]),[a,r]),d=wt(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),p=(e,t)=>{s(o=>{const n={...o};return e?n[e]=t:a.forEach(e=>n[e.id]=t),n})};return bt.createElement(jp,{$direction:e},t&&i?bt.createElement(Pp,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?bt.createElement(oi,{size:l},t):null,a.map(e=>bt.createElement(Pp,{key:`${t}-checkbox-${e.id}`,...e,value:r[e.id],onChange:t=>p(e.id,t),disabled:n,size:o})))};var Wp,Vp;!function(e){e.Left="left",e.Right="right"}(Wp||(Wp={})),function(e){e.Top="top",e.Bottom="bottom"}(Vp||(Vp={}));const Hp=Bt.div`
|
|
1782
|
+
position: relative;
|
|
1783
|
+
`,qp=Bt.div`
|
|
1784
|
+
display: flex;
|
|
1785
|
+
flex-direction: column;
|
|
1786
|
+
gap: 0;
|
|
1787
|
+
|
|
1788
|
+
min-width: 120px;
|
|
1789
|
+
width: ${({$fullWidth:e})=>e?"calc(100% - 16px)":"fit-content"};
|
|
1790
|
+
padding: 8px;
|
|
1791
|
+
border-radius: 6px;
|
|
1792
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1793
|
+
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
1794
|
+
|
|
1795
|
+
position: absolute;
|
|
1796
|
+
${({$alignX:e})=>`${e}: 0;`}
|
|
1797
|
+
${({$alignY:e,$withButton:t})=>`${e===Vp.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
|
|
1798
|
+
`,Gp=Bt.div`
|
|
1799
|
+
display: flex;
|
|
1800
|
+
flex-direction: column;
|
|
1801
|
+
gap: 0;
|
|
1802
|
+
|
|
1803
|
+
width: 100%;
|
|
1804
|
+
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
1805
|
+
overflow-y: auto;
|
|
1806
|
+
`,Kp=Bt.div`
|
|
1807
|
+
display: flex;
|
|
1808
|
+
align-items: center;
|
|
1809
|
+
gap: 8px;
|
|
1810
|
+
width: calc(100% - 16px);
|
|
1811
|
+
padding: 8px;
|
|
1812
|
+
border-radius: 6px;
|
|
1813
|
+
cursor: pointer;
|
|
1814
|
+
${({$selected:e})=>e?Rt`
|
|
1815
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1816
|
+
`:Rt`
|
|
1817
|
+
background-color: transparent;
|
|
1818
|
+
&:hover {
|
|
1819
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
1820
|
+
}
|
|
1821
|
+
`}
|
|
1822
|
+
`,Yp=({defaultOpen:e,alignX:t,alignY:o,items:n,selectedIds:i,setSelectedIds:a,withMultiSelect:r,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p})=>{const u=Lt(),h=!!d||!!p,[m,g]=kt(e??!h),[$,f]=kt({x:t||Wp.Left,y:o||Vp.Bottom}),x=e=>{g(e=>!e),f({x:t||(e.clientX>window.innerWidth/2?Wp.Right:Wp.Left),y:o||(e.clientY>window.innerHeight/2?Vp.Top:Vp.Bottom)})},b=e=>{a(r?i.includes(e)?i.filter(t=>t!==e):[...i,e]:[e]),h&&!r&&g(!1)},y=Ct(null);_a(y,()=>g(!1));const[w,k]=kt(""),v=wt(()=>w?n.filter(e=>e?.label?.toLowerCase().includes(w.toLowerCase())):n,[n.length,w]);return bt.createElement(Hp,{ref:y},d&&bt.createElement(wp,{...d,fullWidth:l,rightIcon:m?pt:ut,onClick:x}),p&&bt.createElement(Sa,{...p,onClick:x}),m&&bt.createElement(qp,{$alignX:$.x,$alignY:$.y,$fullWidth:l,$withButton:h},s&&bt.createElement(Bp,{value:w,onChange:k,width:"100%"}),bt.createElement(Gp,{$maxHeight:c},v.map(e=>{if(!e)return null;const{id:t,label:o,icon:n,withCheckbox:a}=e,r=i.includes(t);return bt.createElement(Kp,{key:t,$selected:r,onClick:()=>b(t)},a&&bt.createElement(Pp,{value:r,onChange:()=>b(t)}),n&&bt.createElement(n,{size:14,fill:u.v2.colors.white[500]}),bt.createElement(oi,{size:ei.XS,nowrap:!0},o))})),r&&bt.createElement(wp,{label:"Done",onClick:()=>g(!1)})))};var Jp;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Jp||(Jp={}));const Xp=({onAnyClick:e,actions:t})=>bt.createElement(Ga,{$gap:8,$alignItems:"center"},t?.map(t=>{if(!t)return null;switch(t.type){case Jp.Button:return bt.createElement(wp,{key:t.id,...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}});case Jp.ButtonDropData:return bt.createElement(Yp,{key:t.id,...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps});default:return null}})),Zp=({icon:e,title:t,withCopy:o,badge:n,children:i})=>{const{CopyButton:a}=Aa();return bt.createElement(Ga,{$gap:6,$alignItems:"center"},bt.createElement(e,{size:24}),bt.createElement(oi,{nowrap:!0},t),o&&bt.createElement(a,{value:t,size:Ca.XS}),n&&bt.createElement(ii,{...n}),i)};var Qp;!function(e){e.S="small",e.M="medium"}(Qp||(Qp={}));const eu=Bt.div`
|
|
1823
|
+
display: flex;
|
|
1824
|
+
flex-direction: column;
|
|
1825
|
+
gap: ${({$gap:e})=>e}px;
|
|
1826
|
+
width: ${({$padding:e})=>`calc(100% - ${2*e}px)`};
|
|
1827
|
+
padding: ${({$padding:e})=>e}px;
|
|
1828
|
+
border-radius: 16px;
|
|
1829
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1830
|
+
`,tu=({size:e=Qp.M,richTitle:t,search:o,actions:n,children:i})=>{const a=e===Qp.S?4:16,r=e===Qp.S?12:16;return bt.createElement(eu,{$padding:r,$gap:a},bt.createElement(Ga,{$gap:a,$justifyContent:"space-between"},bt.createElement(Zp,{...t},o&&bt.createElement(Bp,{...o})),bt.createElement(Xp,{actions:n??[]})),i)},ou=Bt.div`
|
|
1831
|
+
flex: 1;
|
|
1832
|
+
align-self: stretch;
|
|
1833
|
+
display: flex;
|
|
1834
|
+
align-items: center;
|
|
1835
|
+
gap: 8px;
|
|
1836
|
+
padding: 16px;
|
|
1837
|
+
border-radius: 12px;
|
|
1838
|
+
background-color: ${({theme:e,$status:t})=>En(e,t,t===Do.Unknown?"750":"500")};
|
|
1839
|
+
`,nu=Bt.div`
|
|
1840
|
+
display: flex;
|
|
1841
|
+
align-items: center;
|
|
1842
|
+
justify-content: center;
|
|
1843
|
+
width: fit-content;
|
|
1844
|
+
height: fit-content;
|
|
1845
|
+
padding: 8px;
|
|
1846
|
+
border-radius: 12px;
|
|
1847
|
+
background-color: ${({theme:e,$status:t})=>t===Do.Unknown?En(e,t,"800"):En(e,t,"900")+ji.opacity.hex["015"]};
|
|
1848
|
+
`,iu=({status:e,icon:t,title:o,description:n})=>{const i=Lt(),a=t??An(e,i),r=[Eo.Default,Eo.Info,Do.Disabled,Do.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return bt.createElement(ou,{$status:e},bt.createElement(nu,{$status:e},bt.createElement(a,{size:32,fill:r})),bt.createElement(Ka,{$gap:2,$justifyContent:"center"},bt.createElement(oi,{size:ei.M,weight:500,color:r,nowrap:!0},o),bt.createElement(oi,{size:ei.XXS,weight:300,color:r,nowrap:!0},n)))},au=Bt.div`
|
|
1849
|
+
flex: 1;
|
|
1850
|
+
align-self: stretch;
|
|
1851
|
+
display: flex;
|
|
1852
|
+
flex-direction: column;
|
|
1853
|
+
gap: 12px;
|
|
1854
|
+
padding: 12px;
|
|
1855
|
+
border-radius: 12px;
|
|
1856
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1857
|
+
`,ru=["-","N/A"],su=({title:e,cells:t})=>{const o=Lt();return bt.createElement(au,null,bt.createElement(oi,{size:ei.XXS,color:o.v2.colors.grey[150]},e),bt.createElement(Ga,{$gap:32},t.map(t=>bt.createElement(Ka,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!ru.includes(t.value)?bt.createElement(oi,{size:t.label?ei.M:ei.L},t.value):bt.createElement(rs,{scale:.9}),t.label&&bt.createElement(oi,{size:ei.XXS},t.label)))))},lu=Bt(Ga)`
|
|
1858
|
+
width: calc(100% - 20px);
|
|
1859
|
+
padding: 10px;
|
|
1860
|
+
border-radius: 6px;
|
|
1861
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1862
|
+
display: flex;
|
|
1863
|
+
align-items: center;
|
|
1864
|
+
justify-content: space-between;
|
|
1865
|
+
gap: 12px;
|
|
1866
|
+
`,cu=Bt.div`
|
|
1867
|
+
position: relative;
|
|
1868
|
+
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1869
|
+
display: flex;
|
|
1870
|
+
align-items: center;
|
|
1871
|
+
gap: 4px;
|
|
1872
|
+
`,du=Bt.pre`
|
|
1873
|
+
flex: 1;
|
|
1874
|
+
margin: 0;
|
|
1875
|
+
padding: 0;
|
|
1876
|
+
font-size: 14px;
|
|
1877
|
+
color: #5ffb98; // TODO: add to theme
|
|
1878
|
+
overflow-x: auto;
|
|
1879
|
+
`,pu=Bt.span`
|
|
1880
|
+
flex-shrink: 0;
|
|
1881
|
+
font-size: 14px;
|
|
1882
|
+
color: #5ffb98; // TODO: add to theme
|
|
1883
|
+
`,uu=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:n}=Aa({onDone:o}),i=Ct(null),[a,r]=kt(!1);return vt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;r(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),bt.createElement(lu,null,bt.createElement(cu,{$hideCopy:t},bt.createElement(du,{ref:i},e),a&&bt.createElement(pu,null,"...")),!t&&bt.createElement(n,{value:e,size:Ca.XS}))},hu=Bt.div`
|
|
1884
|
+
display: flex;
|
|
1885
|
+
align-items: center;
|
|
1886
|
+
justify-content: space-between;
|
|
1887
|
+
width: calc(100%);
|
|
1888
|
+
`,mu=Bt.div`
|
|
1889
|
+
display: flex;
|
|
1890
|
+
align-items: center;
|
|
1891
|
+
gap: 16px;
|
|
1892
|
+
`,gu=Bt.div`
|
|
1893
|
+
display: flex;
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
justify-content: center;
|
|
1896
|
+
width: 36px;
|
|
1897
|
+
height: 36px;
|
|
1898
|
+
border-radius: 8px;
|
|
1899
|
+
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1900
|
+
`,$u=Bt.div`
|
|
1901
|
+
display: flex;
|
|
1902
|
+
align-items: center;
|
|
1903
|
+
gap: 12px;
|
|
1904
|
+
`,fu=({icon:e,title:t,actions:o,onClose:n,onCloseDisabled:i})=>bt.createElement(hu,null,bt.createElement(mu,null,bt.createElement(gu,null,bt.createElement(e,{size:24})),bt.createElement(oi,{size:ei.S},t)),bt.createElement($u,null,o?.length?bt.createElement(Sa,{icon:ht,size:Ca.M,onClick:()=>alert("todo")}):null,bt.createElement(Sa,{icon:Ye,size:Ca.M,onClick:n,disabled:i}))),xu=Bt.div`
|
|
1905
|
+
position: fixed;
|
|
1906
|
+
top: 0;
|
|
1907
|
+
bottom: 0;
|
|
1908
|
+
${({$position:e})=>e}: 0;
|
|
1909
|
+
z-index: 1000;
|
|
1910
|
+
|
|
1911
|
+
display: flex;
|
|
1912
|
+
flex-direction: column;
|
|
1913
|
+
gap: 12px;
|
|
1914
|
+
|
|
1915
|
+
width: calc(${({$width:e})=>e} - 32px);
|
|
1916
|
+
padding: 12px;
|
|
1917
|
+
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
1918
|
+
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1919
|
+
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1920
|
+
overflow: hidden;
|
|
1921
|
+
|
|
1922
|
+
animation-name: ${({$position:e})=>ji.animations.slide.in[e]};
|
|
1923
|
+
`,bu=Bt.div`
|
|
1924
|
+
display: flex;
|
|
1925
|
+
flex-direction: column;
|
|
1926
|
+
gap: 12px;
|
|
1927
|
+
|
|
1928
|
+
height: calc(100% - ${56}px);
|
|
1929
|
+
overflow-y: auto;
|
|
1930
|
+
`,yu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:n="555px",header:i,children:a})=>(ya(e),e?qt(bt.createElement(bt.Fragment,null,!t&&bt.createElement(Xa,{onClick:i.onCloseDisabled?void 0:i.onClose}),bt.createElement(xu,{$position:o,$width:n},bt.createElement(fu,{...i}),bt.createElement(bu,null,a))),document.body):null),wu=Bt.header`
|
|
1931
|
+
position: relative;
|
|
1932
|
+
width: calc(100% - 36px);
|
|
1933
|
+
padding: 12px 18px;
|
|
1934
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1935
|
+
display: flex;
|
|
1936
|
+
align-items: center;
|
|
1937
|
+
justify-content: space-between;
|
|
1938
|
+
`,ku=Bt(Ga)`
|
|
1939
|
+
position: absolute;
|
|
1940
|
+
left: 50%;
|
|
1941
|
+
transform: translateX(-50%);
|
|
1942
|
+
gap: 16px;
|
|
1943
|
+
`,vu=({left:e=[],center:t=[],right:o=[]})=>bt.createElement(wu,null,bt.createElement(Ga,{$gap:16},e),bt.createElement(ku,null,t),bt.createElement(Ga,{$gap:16},o)),Cu=Bt.div`
|
|
1944
|
+
display: flex;
|
|
1945
|
+
align-items: center;
|
|
1946
|
+
gap: 2px;
|
|
1947
|
+
width: fit-content;
|
|
1948
|
+
padding: 4px;
|
|
1949
|
+
border-radius: 8px;
|
|
1950
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1951
|
+
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1952
|
+
|
|
1953
|
+
position: absolute;
|
|
1954
|
+
right: ${({$right:e})=>e||"12px"};
|
|
1955
|
+
top: 50%;
|
|
1956
|
+
transform: translateY(-50%);
|
|
1957
|
+
`,Eu=({isOpen:e,actions:t,positionRight:o})=>e?bt.createElement(Cu,{$right:o},t.map(e=>e?bt.createElement(yr,{key:e.id,text:e.tooltip||""},bt.createElement(wp,{...e,variant:xp.Secondary,size:bp.S,label:e.label})):null)):null,Su=Bt.span`
|
|
1958
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1959
|
+
font-size: 14px;
|
|
1960
|
+
font-weight: 400;
|
|
1961
|
+
color: ${({theme:e})=>e.text.error};
|
|
1962
|
+
`,Au=Bt.span`
|
|
1963
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1964
|
+
font-size: 14px;
|
|
1965
|
+
font-weight: 400;
|
|
1966
|
+
color: ${({theme:e})=>e.v2.colors.silver[200]};
|
|
1967
|
+
`,Du=Bt.div`
|
|
1968
|
+
padding: 12px;
|
|
1969
|
+
display: flex;
|
|
1970
|
+
align-self: stretch;
|
|
1971
|
+
align-items: center;
|
|
1972
|
+
gap: 8px;
|
|
1973
|
+
border-radius: 6px;
|
|
1974
|
+
|
|
1975
|
+
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]};
|
|
1976
|
+
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1977
|
+
${({$disabled:e,$error:t})=>!e&&!t&&Rt`
|
|
1978
|
+
&:hover,
|
|
1979
|
+
&:active,
|
|
1980
|
+
&:focus-within {
|
|
1981
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1982
|
+
}
|
|
1983
|
+
`}
|
|
1984
|
+
`,Tu=Bt.input`
|
|
1985
|
+
flex: 1;
|
|
1986
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1987
|
+
font-size: 14px;
|
|
1988
|
+
font-weight: 400;
|
|
1989
|
+
line-height: 22px;
|
|
1990
|
+
|
|
1991
|
+
cursor: text;
|
|
1992
|
+
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1993
|
+
&::placeholder {
|
|
1994
|
+
color: ${({theme:e})=>e.v2.colors.silver[200]};
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
&:disabled {
|
|
1998
|
+
cursor: not-allowed;
|
|
1999
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
2000
|
+
&::placeholder {
|
|
2001
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
overflow: hidden;
|
|
2006
|
+
text-overflow: ellipsis;
|
|
2007
|
+
white-space: nowrap;
|
|
2008
|
+
`,zu=Bt.div`
|
|
2009
|
+
cursor: pointer;
|
|
2010
|
+
`,Fu=({label:e,required:t,tooltip:o,leftIcon:n,rightIcon:i,errorMessage:a,helpMessage:r,type:s=Co.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const h=ji.useTheme(),m=s===Co.Password,[g,$]=kt(!1),f=c?h.v2.colors.white[500]:p?h.v2.colors.grey[400]:h.v2.colors.silver[200];return bt.createElement(Ka,{$gap:6},bt.createElement(Ga,{$justifyContent:"space-between"},e&&bt.createElement(Au,null,e),bt.createElement(Ga,{$gap:10},o&&bt.createElement(yr,{text:o,withIcon:!0}),t&&bt.createElement(Su,null,"*"))),bt.createElement(Du,{$disabled:p,$error:!!a},n?bt.createElement(n,{size:18,fill:f}):null,bt.createElement(Tu,{"data-id":l,type:g||s===Co.Number?Co.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===Co.Number&&(e.target.value=Hn(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),m?bt.createElement(zu,{onClick:()=>$(e=>!e)},g?bt.createElement(nt,{size:18,strokeWidth:2,fill:f}):bt.createElement(it,{size:18,strokeWidth:2,fill:f})):i?bt.createElement(i,{size:18,fill:f}):null),a?bt.createElement(Ga,{$gap:4},bt.createElement(je,{size:12,fill:h.v2.colors.red[500]}),bt.createElement(oi,{size:ei.XXS,weight:400,color:h.v2.colors.red[500]},a)):r?bt.createElement(Ga,{$gap:4},bt.createElement(je,{size:12,fill:h.v2.colors.silver[200]}),bt.createElement(oi,{size:ei.XXS,weight:400,color:h.v2.colors.silver[200]},r)):null)},Ou=Bt.div`
|
|
2011
|
+
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
2012
|
+
top: 50%;
|
|
2013
|
+
left: 50%;
|
|
2014
|
+
transform: translate(-50%, -50%);
|
|
2015
|
+
z-index: 1000;
|
|
2016
|
+
width: fit-content;
|
|
2017
|
+
border-radius: 20px;
|
|
2018
|
+
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2019
|
+
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
2020
|
+
overflow: hidden;
|
|
2021
|
+
|
|
2022
|
+
animation-name: ${ji.animations.slide.in.center};
|
|
2023
|
+
`,Iu=Bt.div`
|
|
2024
|
+
position: relative;
|
|
2025
|
+
`,Nu=Bt.div`
|
|
2026
|
+
position: absolute;
|
|
2027
|
+
top: 16px;
|
|
2028
|
+
left: 16px;
|
|
2029
|
+
`,_u=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:n,onClose:i,children:a})=>{if(ya(e),!e)return null;const r=bt.createElement(bt.Fragment,null,!t&&bt.createElement(Xa,{$relativeToParent:o,onClick:i}),bt.createElement(Ou,{$relativeToParent:o},bt.createElement(Iu,null,n&&bt.createElement(Nu,null,bt.createElement(Sa,{icon:e=>bt.createElement(dt,{rotate:-90,...e}),size:Ca.L,onClick:n})),a)));return o?r:qt(r,document.body)},Bu=Bt.div`
|
|
2030
|
+
min-width: 530px;
|
|
2031
|
+
`,Ru=Bt.div`
|
|
2032
|
+
display: flex;
|
|
2033
|
+
flex-direction: column;
|
|
2034
|
+
align-items: center;
|
|
2035
|
+
gap: 16px;
|
|
2036
|
+
padding: 24px;
|
|
2037
|
+
`,Lu=Bt.div`
|
|
2038
|
+
display: flex;
|
|
2039
|
+
justify-content: center;
|
|
2040
|
+
gap: 16px;
|
|
2041
|
+
padding: 16px 24px;
|
|
2042
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2043
|
+
`,Mu=({visual:e,title:t,description:o,isOpen:n,onClose:i,onDeny:a,denyLabel:r="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Lt();return bt.createElement(_u,{isOpen:n,onClose:i,...c},bt.createElement(Bu,null,bt.createElement(Ru,null,e&&bt.createElement(e,null),bt.createElement(oi,{size:ei.M,weight:500,color:d.v2.colors.white[500]},t),bt.createElement(Ka,{$alignItems:"center",$gap:4},o.split("\n").map(e=>bt.createElement(oi,{key:e,size:ei.XS,weight:400,color:d.v2.colors.silver[200]},e)))),(a||s)&&bt.createElement(Lu,null,bt.createElement(wp,{variant:xp.Secondary,label:r,onClick:()=>{a?.(),i()}}),s&&bt.createElement(wp,{variant:xp.Primary,label:l,onClick:()=>{s(),i()}}))))},Pu=({isOpen:e,onClose:t,onDeny:o,onApprove:n})=>bt.createElement(Mu,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:e,onClose:t,onDeny:o,denyLabel:"Keep editing",onApprove:n,approveLabel:"Discard changes"}),ju=({isOpen:e,onClose:t,onDeny:o,onApprove:n,action:i="delete",target:a})=>{const r=i.charAt(0).toUpperCase()+i.substring(1),s=a?.endsWith("s")?"these":"this";return bt.createElement(Mu,{title:`${r}${a?` ${a}`:""}?`,description:`Are you sure you want to ${i}${a?` ${s} ${a}`:""}?`,isOpen:e,onClose:t,onDeny:o,denyLabel:"Go back",onApprove:n,approveLabel:r})},Uu=Bt.div`
|
|
2044
|
+
width: ${({$size:e})=>e}px;
|
|
2045
|
+
height: ${({$size:e})=>e}px;
|
|
2046
|
+
border-radius: 100%;
|
|
2047
|
+
background: ${({$color:e})=>e};
|
|
2048
|
+
display: flex;
|
|
2049
|
+
align-items: center;
|
|
2050
|
+
justify-content: center;
|
|
2051
|
+
`,Wu=({scale:e,icon:t})=>{const o=Lt();return bt.createElement(Uu,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)"},bt.createElement(Uu,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)"},bt.createElement(Uu,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)"},bt.createElement(Uu,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)"},bt.createElement(Uu,{$size:23*e,$color:"#50F6E8"},bt.createElement(t,{size:16*e,fill:o.v2.colors.black[500]}))))))},Vu=434,Hu=635,qu=Bt.div`
|
|
2052
|
+
width: ${434}px;
|
|
2053
|
+
height: ${635}px;
|
|
2054
|
+
display: flex;
|
|
2055
|
+
flex-direction: column;
|
|
2056
|
+
align-items: center;
|
|
2057
|
+
justify-content: center;
|
|
2058
|
+
padding: 16px;
|
|
2059
|
+
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
2060
|
+
position: relative;
|
|
2061
|
+
`,Gu=Bt.div`
|
|
2062
|
+
position: absolute;
|
|
2063
|
+
top: 50%;
|
|
2064
|
+
left: 50%;
|
|
2065
|
+
transform: translate(-50%, -50%);
|
|
2066
|
+
`,Ku=()=>bt.createElement(qu,null,bt.createElement(Gu,null,bt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none"},bt.createElement("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)"}),bt.createElement("defs",null,bt.createElement("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)"},bt.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),bt.createElement("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),bt.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),bt.createElement("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),bt.createElement("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),bt.createElement("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),bt.createElement("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),bt.createElement("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),bt.createElement("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"}))))),bt.createElement(Gu,null,bt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none"},bt.createElement("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)"}),bt.createElement("defs",null,bt.createElement("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)"},bt.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),bt.createElement("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),bt.createElement("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),bt.createElement("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),bt.createElement("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),bt.createElement("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),bt.createElement("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),bt.createElement("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),bt.createElement("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),bt.createElement("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),bt.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),bt.createElement(Gu,null,bt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none"},bt.createElement("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)"}),bt.createElement("defs",null,bt.createElement("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)"},bt.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),bt.createElement("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),bt.createElement("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),bt.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),bt.createElement("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),bt.createElement("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),bt.createElement("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),bt.createElement("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),bt.createElement("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),bt.createElement("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),bt.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),bt.createElement(Gu,null,bt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none"},bt.createElement("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)"}),bt.createElement("defs",null,bt.createElement("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)"},bt.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),bt.createElement("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),bt.createElement("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),bt.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),bt.createElement("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),bt.createElement("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),bt.createElement("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),bt.createElement("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),bt.createElement("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),bt.createElement("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),bt.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),bt.createElement(Gu,null,bt.createElement(se,{size:112}))),Yu=({minSupportedVersion:e,currentVersion:t})=>bt.createElement(Mu,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>bt.createElement(Wu,{scale:2.4,icon:()=>bt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none"},bt.createElement("path",{fill:"#151618",d:"M9.4844 0.730003C9.99694 -0.243259 11.4076 -0.24341 11.92 0.730003L11.9685 0.831353L14.3039 6.22012L20.153 6.77755C21.3553 6.89211 21.841 8.38683 20.9358 9.18621L16.5314 13.0731L17.8091 18.8079C18.0716 19.9868 16.8005 20.9109 15.7605 20.2969L10.7017 17.3093L5.64282 20.2969C4.60289 20.9104 3.33173 19.9866 3.59427 18.8079L4.87192 13.0741L0.468608 9.18621C-0.43662 8.38693 0.0482932 6.8924 1.25029 6.77755L7.09837 6.22012L9.43588 0.831353L9.4844 0.730003ZM8.55284 7.02876C8.35287 7.48992 7.9179 7.80589 7.41751 7.85357L2.03952 8.36571L6.09027 11.941C6.46691 12.2737 6.63296 12.7852 6.5237 13.2758L5.34956 18.5459L10.0008 15.8009L10.1669 15.7179C10.5087 15.574 10.8945 15.5741 11.2364 15.7179L11.4036 15.8009L16.0538 18.5459L14.8807 13.2758C14.7714 12.7851 14.9374 12.2737 15.3141 11.941L19.3627 8.36571L13.9858 7.85357C13.4855 7.80587 13.0505 7.4899 12.8505 7.02876L10.7017 2.07342L8.55284 7.02876Z"}))}),title:"Upgrade Required",description:`To use this feature, please upgrade to Odigos v${e} or later.\nCurrent version: ${t}.`}),Ju=Bt.div`
|
|
2067
|
+
padding: 0 12px;
|
|
2068
|
+
`,Xu=({yaml:e})=>{const{clickCopy:t,isCopied:o}=Aa(),n=wt(()=>e?[{id:rn(),type:Jp.Button,buttonProps:{leftIcon:o?Ge:Ke,onClick:()=>t(e||""),disabled:o,size:bp.S,variant:xp.Secondary}}]:[],[e,o]);return bt.createElement(tu,{richTitle:{icon:mt,title:"YAML"},actions:n},bt.createElement(Ju,null,e?bt.createElement(es,{code:e,language:"yaml",theme:"duotoneDark"}):bt.createElement(Ya,null,bt.createElement(Ys,{title:"YAML not found",subTitle:"The YAML for this resource is not available"}))))},Zu=Bt.div`
|
|
2069
|
+
display: flex;
|
|
2070
|
+
align-items: center;
|
|
2071
|
+
justify-content: space-between;
|
|
2072
|
+
gap: 32px;
|
|
2073
|
+
|
|
2074
|
+
padding: 18px 16px;
|
|
2075
|
+
border-radius: 18px;
|
|
2076
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+ji.opacity.hex["095"]};
|
|
2077
|
+
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
2078
|
+
|
|
2079
|
+
position: fixed;
|
|
2080
|
+
bottom: 0;
|
|
2081
|
+
left: 50%;
|
|
2082
|
+
animation-name: ${ji.animations.slide.in.center};
|
|
2083
|
+
`,Qu=({isOpen:e,onClose:t,richTitle:o,actions:n})=>e?bt.createElement(Zu,null,bt.createElement(Zp,{...o}),bt.createElement(Xp,{onAnyClick:t,actions:n})):null,eh=Bt.div`
|
|
2084
|
+
border-radius: 100%;
|
|
2085
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
2086
|
+
position: relative;
|
|
2087
|
+
`,th=Bt.div`
|
|
2088
|
+
width: 80px;
|
|
2089
|
+
height: 80px;
|
|
2090
|
+
border-radius: 100%;
|
|
2091
|
+
border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
|
|
2092
|
+
border-right-color: transparent;
|
|
2093
|
+
border-left-color: transparent;
|
|
2094
|
+
border-bottom-color: transparent;
|
|
2095
|
+
animation: spin 1s linear infinite;
|
|
2096
|
+
@keyframes spin {
|
|
2097
|
+
to {
|
|
2098
|
+
transform: rotate(360deg);
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
`,oh=Bt(oi)`
|
|
2102
|
+
position: absolute;
|
|
2103
|
+
top: 50%;
|
|
2104
|
+
left: 50%;
|
|
2105
|
+
transform: translate(-50%, -50%);
|
|
2106
|
+
`,nh=({percentage:e})=>bt.createElement(eh,null,bt.createElement(th,null),"number"==typeof e?bt.createElement(oh,{size:ei.M,weight:500},`${e}%`):null),ih={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 ah(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 n=(e.match(/[^0-9]*$/)||"").toString();return ih[n]?{value:t,unit:n}:{value:t,unit:"px"}}function rh(e){const t=ah(e);return`${t.value}${t.unit}`}const sh=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),lh=({loading:e=!0,color:t,scale:o=1,speedMultiplier:n=1,cssOverride:i={},style:a={},...r})=>{const s=Lt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=ah(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,...a,...i},m=(e,t)=>({position:"absolute",width:rh(1.5),height:rh(4),borderRadius:rh(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${sh} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return bt.createElement("span",{style:h,...r},bt.createElement("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),bt.createElement("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),bt.createElement("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),bt.createElement("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),bt.createElement("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),bt.createElement("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),bt.createElement("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),bt.createElement("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},ch=Pt`
|
|
2107
|
+
0% {
|
|
2108
|
+
background-position: 0% 50%;
|
|
2109
|
+
}
|
|
2110
|
+
100% {
|
|
2111
|
+
background-position: 100% 50%;
|
|
2112
|
+
}
|
|
2113
|
+
`,dh=Bt(oi)`
|
|
2114
|
+
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
2115
|
+
background-size: 250% 100%; /* Expand background to allow movement */
|
|
2116
|
+
background-clip: text;
|
|
2117
|
+
color: transparent;
|
|
2118
|
+
animation: ${ch} 1s reverse linear infinite;
|
|
2119
|
+
`,ph=e=>{const t=Math.max(0,Date.now()-e),o=Math.floor(t/1e3),n=Math.floor(o/60),i=o%60;return`${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`},uh=({icon:e,title:t,titleColor:o,titleSize:n=ei.S,subTitle:i,subTitleColor:a,subTitleSize:r=ei.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,percentage:p,withVisual:u,visualIcon:h=gt})=>{const m=Lt(),[g,$]=kt(()=>s?ph(s):"");vt(()=>{if(!s)return;$(ph(s));const e=setInterval(()=>$(ph(s)),1e3);return()=>clearInterval(e)},[s]);const f=o||m.v2.colors.white[500],x=a||m.v2.colors.silver[200],b=c||m.v2.colors.black[500];return bt.createElement(Ka,{$gap:16,$alignItems:"center"},!u&&d?"number"==typeof p?bt.createElement(nh,{percentage:p}):bt.createElement(lh,{scale:2}):null,u&&!d?bt.createElement(Wu,{scale:1.7,icon:h}):null,bt.createElement(Ka,{$gap:8,$alignItems:"center"},bt.createElement(Ga,{$gap:4},e&&bt.createElement(e,null),l?bt.createElement(dh,{align:"center",size:n,$titleColor:f,$gradientColor:b},t):bt.createElement(oi,{align:"center",size:n,color:f},t)),i?bt.createElement(oi,{align:"center",size:r,color:x},i):null,s?bt.createElement(oi,{align:"center",size:r,color:f},g):null))},hh=Bt.aside`
|
|
2120
|
+
display: flex;
|
|
2121
|
+
flex-direction: column;
|
|
2122
|
+
gap: 8px;
|
|
2123
|
+
height: ${({$height:e})=>e};
|
|
2124
|
+
width: fit-content;
|
|
2125
|
+
padding: 16px 12px;
|
|
2126
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2127
|
+
overflow-y: auto;
|
|
2128
|
+
`,mh=({height:e,icons:t})=>bt.createElement(hh,{$height:e},t.map(({id:e,selected:t,icon:o,onClick:n})=>bt.createElement(wp,{key:e,label:"",leftIcon:o,iconSize:24,onClick:n,variant:t?xp.Primary:xp.Text}))),gh=Bt.div`
|
|
2129
|
+
display: flex;
|
|
2130
|
+
align-items: center;
|
|
2131
|
+
gap: 10px;
|
|
2132
|
+
${({$fullWidth:e})=>e&&Rt`
|
|
2133
|
+
width: calc(100% - 16px);
|
|
2134
|
+
`}
|
|
2135
|
+
padding: 4px 12px 4px 4px;
|
|
2136
|
+
border-radius: 8px;
|
|
2137
|
+
background-color: ${({theme:e,$status:t})=>En(e,t,[Eo.Info].includes(t)?"1000":"900")};
|
|
2138
|
+
`,$h=Bt.div`
|
|
2139
|
+
width: 32px;
|
|
2140
|
+
height: 32px;
|
|
2141
|
+
display: flex;
|
|
2142
|
+
align-items: center;
|
|
2143
|
+
justify-content: center;
|
|
2144
|
+
border-radius: 6px;
|
|
2145
|
+
background-color: ${({theme:e,$status:t})=>En(e,t,[Eo.Info].includes(t)?"900":"800")};
|
|
2146
|
+
`,fh=Bt.div`
|
|
2147
|
+
margin-left: auto;
|
|
2148
|
+
margin-right: 8px;
|
|
2149
|
+
cursor: pointer;
|
|
2150
|
+
&:hover {
|
|
2151
|
+
transform: scale(1.2);
|
|
2152
|
+
}
|
|
2153
|
+
`,xh=({status:e,message:t,action:o,fullWidth:n})=>{const i=ji.useTheme(),a=An(e,i),r=En(i,e,e===Eo.Default?"300":e===Eo.Info?"400":"500");return bt.createElement(gh,{$status:e,$fullWidth:n},bt.createElement("div",null,bt.createElement($h,{$status:e},bt.createElement(a,{size:24}))),bt.createElement(oi,{color:r,size:ei.XXXS,weight:400},t),o&&bt.createElement(fh,{onClick:o.onClick},bt.createElement(oi,{color:r,size:ei.XXS,weight:500,underline:!0},o.label)))};var bh;!function(e){e.S="small",e.L="large"}(bh||(bh={}));const yh=Bt.div`
|
|
2154
|
+
width: fit-content;
|
|
2155
|
+
display: flex;
|
|
2156
|
+
align-items: center;
|
|
2157
|
+
gap: 8px;
|
|
2158
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2159
|
+
`,wh=Bt.div`
|
|
2160
|
+
width: ${({$size:e})=>e===bh.S?"16px":"20px"};
|
|
2161
|
+
height: ${({$size:e})=>e===bh.S?"16px":"20px"};
|
|
2162
|
+
display: flex;
|
|
2163
|
+
align-items: center;
|
|
2164
|
+
justify-content: center;
|
|
2165
|
+
border-radius: 100%;
|
|
2166
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
2167
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
2168
|
+
`,kh=({label:e,value:t,onChange:o,disabled:n,size:i=bh.L})=>{const a=ji.useTheme(),[r,s]=kt(!1),l=t,c=i===bh.S?6:8,d=n?a.v2.colors.grey[400]:a.v2.colors.white[500],p=l?"transparent":n?a.v2.colors.grey[700]:r?a.v2.colors.silver[400]:a.v2.colors.silver[600],u=n?a.v2.colors.grey[600]:l?a.v2.colors.purple[500]:a.v2.colors.silver[900];return bt.createElement(yh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||o(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},bt.createElement(wh,{$size:i,$borderColor:p,$backgroundColor:u},t?bt.createElement($t,{size:c,fill:d}):null),e&&bt.createElement(oi,{size:i===bh.S?ei.XXS:ei.XS},e))},vh=Bt.div`
|
|
2169
|
+
display: flex;
|
|
2170
|
+
flex-direction: ${({$flexDirection:e})=>e};
|
|
2171
|
+
gap: ${({$gap:e})=>e}px;
|
|
2172
|
+
`,Ch=({label:e,direction:t,disabled:o,size:n,options:i,values:a,setValues:r})=>bt.createElement(vh,{$flexDirection:t===mo.Horizontal?"row":"column",$gap:t===mo.Horizontal?16:8},e&&bt.createElement(oi,null,e),i.map(t=>bt.createElement(kh,{key:`${e}-radio-${t.id}`,...t,value:a[t.id],onChange:e=>{return o=t.id,n=e,void r(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=n,t});var o,n},disabled:o,size:n})));var Eh;!function(e){e.Data="data",e.Pretty="pretty"}(Eh||(Eh={}));const Sh=Bt.div`
|
|
2173
|
+
// max-height: ${({$maxHeight:e})=>e};
|
|
2174
|
+
height: ${({$maxHeight:e})=>e};
|
|
2175
|
+
width: 100%;
|
|
2176
|
+
overflow: auto;
|
|
2177
|
+
`,Ah=Bt.table`
|
|
2178
|
+
width: 100%;
|
|
2179
|
+
|
|
2180
|
+
${({$variant:e})=>{switch(e){case Eh.Data:return Rt`
|
|
2181
|
+
border-collapse: collapse;
|
|
2182
|
+
`;case Eh.Pretty:return Rt`
|
|
2183
|
+
border-collapse: separate;
|
|
2184
|
+
border-spacing: 0 8px;
|
|
2185
|
+
`;default:return""}}}
|
|
2186
|
+
`,Dh=Bt.thead`
|
|
2187
|
+
position: sticky;
|
|
2188
|
+
top: 0;
|
|
2189
|
+
z-index: 1;
|
|
2190
|
+
`,Th=Bt.th`
|
|
2191
|
+
position: relative;
|
|
2192
|
+
min-width: ${({$minWidth:e})=>e||"auto"};
|
|
2193
|
+
padding: 18px 24px;
|
|
2194
|
+
border: none;
|
|
2195
|
+
border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
|
|
2196
|
+
|
|
2197
|
+
${({$variant:e,$backgroundColor:t})=>{if(t)return Rt`
|
|
2198
|
+
background-color: ${t};
|
|
2199
|
+
`;switch(e){case Eh.Data:return Rt`
|
|
2200
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
2201
|
+
`;case Eh.Pretty:return Rt`
|
|
2202
|
+
background-color: transparent;
|
|
2203
|
+
`;default:return""}}}
|
|
2204
|
+
`,zh=Bt.div`
|
|
2205
|
+
position: absolute;
|
|
2206
|
+
top: 50%;
|
|
2207
|
+
right: 0;
|
|
2208
|
+
transform: translateY(-50%);
|
|
2209
|
+
width: 1px;
|
|
2210
|
+
height: 18px;
|
|
2211
|
+
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2212
|
+
`,Fh=Bt.tbody``,Oh=Bt.td`
|
|
2213
|
+
position: relative;
|
|
2214
|
+
padding: 18px 24px;
|
|
2215
|
+
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
2216
|
+
|
|
2217
|
+
${({$variant:e,$selected:t,$hovered:o,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Eh.Data:return Rt`
|
|
2218
|
+
border: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
2219
|
+
border-left: none;
|
|
2220
|
+
border-right: none;
|
|
2221
|
+
border-radius: ${n?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
|
|
2222
|
+
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
2223
|
+
`;case Eh.Pretty:return Rt`
|
|
2224
|
+
border: none;
|
|
2225
|
+
border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
|
|
2226
|
+
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
2227
|
+
`;default:return""}}}
|
|
2228
|
+
`,Ih=Bt.div`
|
|
2229
|
+
width: 100%;
|
|
2230
|
+
display: flex;
|
|
2231
|
+
align-items: center;
|
|
2232
|
+
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
2233
|
+
gap: 4px;
|
|
2234
|
+
text-align: ${({$textAlign:e})=>e||"left"};
|
|
2235
|
+
`,Nh=({variant:e,columns:t,rows:o,getRowActions:n,rowActionsPushRightPosition:i,withCheckboxes:a})=>{const[r,s]=kt(null);return bt.createElement(bt.Fragment,null,o.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=r===c,f=n(l),x=(e,t)=>({$isLastRow:c===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return bt.createElement("tr",{key:`row-${c}`},a&&bt.createElement(Oh,{key:"checkbox-column",$variant:e,...x(!0,!1)},!g&&bt.createElement(Pp,{value:u,onChange:()=>u?m?.():h?.()})),t.map(({key:o,textAlign:n},r)=>{const s=d.find(e=>e.key===o),l=0===r&&!a,p=r===t.length-1;return bt.createElement(Oh,{key:`row-${c}-cell-${r}`,$variant:e,...x(l,p)},s?.component?bt.createElement(Ga,{$justifyContent:"right"===n?"flex-end":"flex-start"},bt.createElement(s.component,null)):bt.createElement(oi,{size:ei.XS,align:n},s?.rawValue||"-"),f.length?bt.createElement(Eu,{isOpen:$&&p,actions:f,positionRight:i}):null)}))}))},_h=({columnKey:e,sortDirection:t,sortByKey:o,onSort:n})=>{const i=Lt(),a=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],r=t===go.Ascending?0:180;return bt.createElement(Sa,{icon:e=>bt.createElement(dt,{fill:a,rotate:r,...e}),onClick:()=>n(e)})},Bh=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:n})=>{const i=Lt(),a=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],r=wt(()=>Array.from(new Set(n.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[n,e]);return bt.createElement(Yp,{items:r,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>bt.createElement(ft,{fill:a,...e})}})},Rh=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:n,sortDirection:i,sortByKey:a,onSort:r,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>bt.createElement("tr",null,c&&bt.createElement(Th,{key:"checkbox-column",$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1},bt.createElement(Pp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})),o.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},$)=>{const f=0===$&&!c,x=$===o.length-1;return bt.createElement(Th,{key:`column-${d}`,$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:f,$isLast:x},bt.createElement(Ih,{$textAlign:g},bt.createElement(oi,{size:ei.XS,align:g},p),!u&&bt.createElement(_h,{columnKey:d,sortDirection:i,sortByKey:a,onSort:r}),!h&&bt.createElement(Bh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})),!x&&e===Eh.Data&&bt.createElement(zh,null))})),Lh=({variant:e,maxHeight:t="unset",headerBackgroundColor:o,isLoading:n,columns:i,rows:a,getRowActions:r,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=kt(go.Ascending),[p,u]=kt(""),[h,m]=kt({}),g=Et(e=>{u(e),d(e=>e===go.Ascending?go.Descending:go.Ascending)},[]),$=Et((e,t)=>{m(o=>({...o,[e]:t}))},[]),f=wt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...a].sort((t,o)=>{const n=e(t,p),i=e(o,p);return(c===go.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,i)}):a).filter(t=>{for(const[o,n]of Object.entries(h))if(n.length&&!n.includes(e(t,o)))return!1;return!0})},[a,p,c,h]),{partiallySelected:x,allSelected:b}=wt(()=>{const e=f.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[f]);return bt.createElement(Sh,{$maxHeight:t},bt.createElement(Ah,{$variant:e},bt.createElement(Dh,null,bt.createElement(Rh,{variant:e,backgroundColor:o,columns:i,rowsUnfiltered:a,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:$,withCheckboxes:l,partiallySelected:x,allSelected:b,onSelectAll:e=>{e?f.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):f.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})),bt.createElement(Fh,null,bt.createElement(Nh,{variant:e,columns:i,rows:f,getRowActions:r||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}))),!f.length&&bt.createElement(Ya,{style:{marginTop:"0.5rem"}},n?bt.createElement(rs,{scale:1.2}):bt.createElement(Ys,null)))},Mh=Bt.div`
|
|
2236
|
+
display: flex;
|
|
2237
|
+
align-items: center;
|
|
2238
|
+
justify-content: center;
|
|
2239
|
+
gap: 8px;
|
|
2240
|
+
width: fit-content;
|
|
2241
|
+
padding: 8px;
|
|
2242
|
+
border-radius: 4px;
|
|
2243
|
+
${({$disabled:e,$withClick:t})=>e?Rt`
|
|
2244
|
+
cursor: not-allowed;
|
|
2245
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
2246
|
+
`:t?Rt`
|
|
2247
|
+
cursor: pointer;
|
|
2248
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2249
|
+
&:hover {
|
|
2250
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[400]};
|
|
2251
|
+
}
|
|
2252
|
+
&:active {
|
|
2253
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2254
|
+
}
|
|
2255
|
+
`:Rt`
|
|
2256
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2257
|
+
`}
|
|
2258
|
+
`,Ph=({label:e,leftIcon:t,rightIcon:o,onClick:n,disabled:i})=>{const a=ji.useTheme(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500];return bt.createElement(Mh,{$disabled:i,$withClick:!!n,onClick:()=>!i&&n?.()},t&&bt.createElement(t,{fill:r,size:16}),bt.createElement(oi,{color:r,size:ei.XS,nowrap:!0},e),o&&bt.createElement(o,{fill:r,size:16}))};var jh,Uh,Wh;!function(e){e.Default="default",e.SuccessError="successError"}(jh||(jh={})),function(e){e.S="small",e.L="large"}(Uh||(Uh={})),function(e){e.Left="left",e.Right="right"}(Wh||(Wh={}));const Vh=Bt.div`
|
|
2259
|
+
display: flex;
|
|
2260
|
+
align-items: center;
|
|
2261
|
+
gap: ${({$gap:e})=>e}px;
|
|
2262
|
+
`,Hh=Bt.div`
|
|
2263
|
+
position: relative;
|
|
2264
|
+
display: flex;
|
|
2265
|
+
align-items: center;
|
|
2266
|
+
justify-content: space-between;
|
|
2267
|
+
|
|
2268
|
+
width: ${({$size:e})=>2*e+2}px;
|
|
2269
|
+
height: ${({$size:e})=>e}px;
|
|
2270
|
+
padding: ${4}px;
|
|
2271
|
+
border-radius: ${({$size:e})=>2*e}px;
|
|
2272
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:i,theme:a})=>{if(e)return a.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(n){case jh.SuccessError:return i?a.v2.colors.green[500]:a.v2.colors.red[500];case jh.Default:default:return i?a.v2.colors.purple[500]:a.v2.colors.grey[400]}}};
|
|
2273
|
+
|
|
2274
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2275
|
+
`,qh=Bt.div`
|
|
2276
|
+
position: absolute;
|
|
2277
|
+
top: 50%;
|
|
2278
|
+
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
2279
|
+
transform: translateY(-50%);
|
|
2280
|
+
width: ${({$size:e})=>e}px;
|
|
2281
|
+
height: ${({$size:e})=>e}px;
|
|
2282
|
+
border-radius: 100%;
|
|
2283
|
+
background-color: ${({$color:e})=>e};
|
|
2284
|
+
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)"};
|
|
2285
|
+
`,Gh=({variant:e=jh.Default,size:t=Uh.L,label:o,labelAlign:n=Wh.Left,tooltip:i,value:a,onChange:r,disabled:s,withIcon:l,onIcon:c=Ge,offIcon:d=Ye,onBgColor:p,offBgColor:u})=>{const h=Lt(),m=s?h.v2.colors.grey[400]:h.v2.colors.white[500],g=t===Uh.S?10:16,$=t===Uh.S?ei.XXXS:ei.XS,f=t===Uh.S?8:12;return bt.createElement(Vh,{$gap:f},o&&n===Wh.Left&&bt.createElement(oi,{size:$,nowrap:!0},o),bt.createElement(Hh,{$onBgColor:p,$offBgColor:u,$variant:e,$size:g,$value:a,$disabled:s,onClick:e=>{e.stopPropagation(),s||r(!a)}},bt.createElement(qh,{$color:m,$size:g,$value:a,$disabled:s}),l&&bt.createElement(bt.Fragment,null,bt.createElement(c,{size:g,fill:m}),bt.createElement(d,{size:g,fill:m}))),o&&n===Wh.Right&&bt.createElement(oi,{size:$,nowrap:!0},o),i&&bt.createElement(yr,{text:i,withIcon:!0}))},Kh=Bt.div`
|
|
2286
|
+
display: flex;
|
|
2287
|
+
flex-direction: ${({$direction:e})=>e===mo.Horizontal?"row":"column"};
|
|
2288
|
+
gap: ${({$direction:e})=>e===mo.Horizontal?16:8}px;
|
|
2289
|
+
`,Yh=({direction:e=mo.Vertical,title:t,size:o,disabled:n,options:i,values:a,setValues:r})=>{const s=o===Uh.S?ei.XS:ei.S;return bt.createElement(Kh,{$direction:e},t&&bt.createElement(oi,{size:s},t),i.map(e=>bt.createElement(Gh,{key:`${t}-toggle-${e.id}`,...e,labelAlign:Wh.Right,value:a[e.id],onChange:t=>{return o=e.id,n=t,void r(e=>{const t={...e};return o?t[o]=n:i.forEach(e=>t[e.id]=n),t});var o,n},disabled:n,size:o})))};export{pl as $,Jp as A,ii as B,Pp as C,Jo as D,wo as E,Ka as F,Eh as G,ju as H,Qu as I,ji as J,Sn as K,uh as L,Tp as M,Ys as N,Do as O,vi as P,Sa as Q,Zp as R,Eo as S,oi as T,uu as U,Ip as V,Xp as W,iu as X,Xu as Y,su as Z,Uo as _,Ga as a,oc as a$,qa as a0,Yu as a1,xi as a2,Yp as a3,Vp as a4,Qo as a5,nc as a6,ro as a7,lo as a8,gl as a9,sn as aA,gs as aB,gc as aC,yo as aD,wi as aE,dr as aF,Ad as aG,Za as aH,Or as aI,Zo as aJ,ca as aK,ur as aL,ln as aM,bs as aN,Un as aO,Ao as aP,An as aQ,yi as aR,oo as aS,Ts as aT,gn as aU,Ns as aV,Qa as aW,er as aX,Qc as aY,hn as aZ,tr as a_,Vr as aa,Yi as ab,so as ac,kl as ad,Co as ae,Nn as af,pd as ag,mp as ah,xd as ai,sd as aj,vo as ak,qi as al,jd as am,Rd as an,vc as ao,Cd as ap,pp as aq,fi as ar,Na as as,en as at,Vc as au,wc as av,jr as aw,ba as ax,mn as ay,ri as az,ei as b,ka as b$,fp as b0,ua as b1,Jn as b2,$a as b3,Ai as b4,Ps as b5,Vn as b6,nn as b7,Fd as b8,fn as b9,Cs as bA,ko as bB,Wn as bC,eo as bD,Fn as bE,qo as bF,za as bG,On as bH,Xt as bI,si as bJ,ip as bK,lc as bL,bn as bM,Mo as bN,Go as bO,Po as bP,Ko as bQ,Lo as bR,jo as bS,Ro as bT,sp as bU,dn as bV,ki as bW,Ia as bX,li as bY,$o as bZ,zn as b_,un as ba,pn as bb,Bo as bc,Jd as bd,va as be,Yo as bf,tn as bg,no as bh,io as bi,wa as bj,Ba as bk,fr as bl,Vd as bm,Ja as bn,_a as bo,jn as bp,Al as bq,di as br,ci as bs,Xo as bt,Ra as bu,Da as bv,zi as bw,vr as bx,ls as by,ys as bz,yr as c,Yn as c$,zo as c0,sl as c1,wd as c2,vs as c3,od as c4,Dn as c5,In as c6,ks as c7,qs as c8,Ks as c9,fo as cA,xo as cB,So as cC,To as cD,Fo as cE,Oo as cF,Io as cG,_o as cH,Wo as cI,Vo as cJ,Ho as cK,Zt as cL,on as cM,$n as cN,xn as cO,yn as cP,wn as cQ,kn as cR,Cn as cS,En as cT,Tn as cU,_n as cV,Ln as cW,Pn as cX,Hn as cY,Gn as cZ,Kn as c_,Eu as ca,Rn as cb,qn as cc,Ma as cd,Wl as ce,No as cf,bo as cg,Wa as ch,Os as ci,cn as cj,Bn as ck,Aa as cl,Ca as cm,Ml as cn,mi as co,an as cp,Gr as cq,vn as cr,Ss as cs,ao as ct,co as cu,po as cv,uo as cw,ho as cx,mo as cy,go as cz,Gh as d,Xn as d0,Zn as d1,pi as d2,ui as d3,hi as d4,ai as d5,ya as d6,Fa as d7,cl as d8,nl as d9,_u as dA,mh as dB,bh as dC,kh as dD,Ch as dE,zp as dF,Ph as dG,jh as dH,Wh as dI,Yh as dJ,Mu as dK,Xs as da,es as db,yc as dc,Nc as dd,Pc as de,qc as df,Xc as dg,As as dh,Ac as di,Wi as dj,Vi as dk,Hi as dl,Pr as dm,Xa as dn,Wu as dp,Vu as dq,Hu as dr,Ku as ds,Ep as dt,Sp as du,Qp as dv,Rp as dw,Up as dx,vu as dy,Fu as dz,Uh as e,Qn as f,Si as g,to as h,yu as i,Ya as j,Bp as k,xh as l,wp as m,xp as n,Pu as o,dl as p,fa as q,rs as r,Va as s,rn as t,$i as u,bp as v,Wp as w,Ha as x,tu as y,Lh as z};
|